2003-09-09 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-09-09 Andrew Cagney <cagney@redhat.com>
2
3 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
4 methods "max_register_raw_size", "max_register_virtual_size" or
5 "register_virtual_size".
6
7 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
8
9 * MAINTAINERS: Update my e-mail address.
10
11 2003-09-09 Andrew Cagney <cagney@redhat.com>
12
13 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
14 (rs6000_push_dummy_call): Store the struct return address.
15 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
16
17 2003-09-09 Andrew Cagney <cagney@redhat.com>
18
19 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
20 "ppc_sysv_abi_push_arguments".
21 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
22 "ppc_sysv_abi_push_arguments".
23 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
24 instead of "push_arguments".
25 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
26
27 2003-09-09 Andrew Cagney <cagney@redhat.com>
28
29 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
30 instead of CALL_DUMMY_ADDRESS.
31
32 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
33
34 * p-lang.c: Eliminate "register".
35 * c-lang.c: Ditto.
36 * expprint.c: Ditto.
37 * f-lang.c: Ditto.
38 * jv-lang.c: Ditto.
39 * language.c: Ditto.
40 * m2-lang.c: Ditto.
41 * parse.c: Ditto.
42 * scm-lang.c: Ditto.
43 * objc-lang.c: Ditto.
44
45 2003-09-09 Nick Clifton <nickc@redhat.com>
46
47 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
48
49 2003-09-04 Andrew Cagney <cagney@redhat.com>
50
51 * avr-tdep.c: Include "dis-asm.h".
52 * cris-tdep.c: Include "dis-asm.h".
53 (cris_delayed_get_disassembler): Use "struct disassemble_info"
54 instead of corresponding typedef.
55 * h8300-tdep.c: Include "dis-asm.h".
56 * ia64-tdep.c: Include "dis-asm.h".
57 * i386-tdep.c: Include "dis-asm.h".
58 (i386_print_insn): Use "struct disassemble_info" instead of
59 corresponding typedef.
60 * m68k-tdep.c: Include "dis-asm.h".
61 * mcore-tdep.c: Include "dis-asm.h".
62 * mips-tdep.c: Include "dis-asm.h".
63 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
64 instead of corresponding typedef.
65 * ns32k-tdep.c: Include "dis-asm.h".
66 * s390-tdep.c: Include "dis-asm.h".
67 * sparc-tdep.c: Include "dis-asm.h".
68 * vax-tdep.c: Include "dis-asm.h".
69 * v850-tdep.c: Include "dis-asm.h".
70 * mn10300-tdep.c: Include "dis-asm.h".
71 * rs6000-tdep.c: Include "dis-asm.h".
72 * xstormy16-tdep.c: Include "dis-asm.h".
73 (_initialize_xstormy16_tdep): Delete "extern" declaration of
74 print_insn_xstormy16.
75 * Makefile.in (v850-tdep.o): Update dependencies.
76 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
77 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
78 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
79 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
80 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
81 (gdbarch_h): Remove $(dis_asm_h).
82 * disasm.c: Include "dis-asm.h".
83 (dis_asm_read_memory): Use "struct disassemble_info" instead of
84 corresponding typedef.
85 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
86 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
87 * gdbarch.sh: Do not include "dis-asm.h".
88 (struct disassemble_info): Declare opaque.
89 (TARGET_PRINT_INSN): Update declaration.
90 * gdbarch.h, gdbarch.c: Re-generate.
91
92 2003-09-08 Andrew Cagney <cagney@redhat.com>
93
94 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
95 CALL_DUMMY_ADDRESS, change to a predicate.
96 * gdbarch.h, gdbarch.c: Re-generate.
97 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
98 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
99 * infcall.c (call_function_by_hand): Ditto.
100 * sparc-tdep.c (sparc_push_return_address): Ditto.
101 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
102 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
103 CALL_DUMMY_ADDRESS with entry_point_address.
104 * v850-tdep.c (v850_push_return_address): Ditto.
105 * s390-tdep.c (s390_push_return_address): Ditto.
106 * rs6000-tdep.c (ppc_push_return_address): Ditto.
107 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
108 * mcore-tdep.c (mcore_push_return_address): Ditto.
109 * cris-tdep.c (cris_push_return_address): Ditto.
110 * arm-tdep.c (arm_push_return_address): Ditto.
111
112 2003-09-08 Andrew Cagney <cagney@redhat.com>
113
114 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
115 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
116 and REG_UNMODIFIED to REG_SAME_VALUE.
117 (execute_cfa_program): Update.
118 (dwarf2_frame_cache): Update. Initialize table to
119 REG_UNSPECIFIED, complain if CFI fails to specify a register's
120 location.
121 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
122
123 2003-09-08 Andrew Cagney <cagney@redhat.com>
124
125 * gnu-nat.c: Remove "inline" function attribute.
126 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
127
128 2003-09-08 Kevin Buettner <kevinb@redhat.com>
129
130 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
131 target.
132
133 2003-09-08 Kevin Buettner <kevinb@redhat.com>
134
135 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
136 (frame_extra_info): Rename this struct to frv_unwind_cache.
137 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
138 Add fields ``prev_sp'' and ``base''.
139 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
140 (frv_saved_pc_after_call, frv_init_extra_frame_info)
141 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
142 Delete.
143 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
144 Revise all callers. Fill in the unwind cache argument and make
145 other adjustments to account for new frame mechanisms.
146 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
147 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
148 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
149 (frv_frame_unwind, frv_frame_base): New structs.
150 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
151 additional arguments expected by this method and adjust function
152 body accordingly.
153 (frv_gdbarch_init): Remove calls to the following functions:
154 set_gdbarch_deprecated_init_frame_pc(),
155 set_gdbarch_deprecated_saved_pc_after_call(),
156 set_gdbarch_deprecated_frame_chain(),
157 set_gdbarch_deprecated_frame_saved_pc(),
158 set_gdbarch_deprecated_frame_init_saved_regs(),
159 set_gdbarch_deprecated_push_arguments(),
160 set_gdbarch_deprecated_push_return_address(),
161 set_gdbarch_deprecated_pop_frame(),
162 set_gdbarch_deprecated_call_dummy_words(),
163 set_gdbarch_deprecated_sizeof_call_dummy_words(),
164 set_gdbarch_deprecated_init_extra_frame_info(),
165 set_gdbarch_deprecated_dummy_write_sp(), and
166 set_gdbarch_deprecated_pc_in_call_dummy().
167 Add calls to the following functions:
168 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
169 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
170 frame_base_set_default().
171 * Makefile.in (frv-tdep.o): Update dependencies.
172
173 2003-09-09 Mark Kettenis <kettenis@gnu.org>
174
175 * dwarf2-frame.c (read_encoded_value): Add support for
176 DW_EH_PE_aligned encoding.
177
178 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
179
180 * infrun.c (normal_stop): Don't print a message if the inferior
181 has exited.
182
183 2003-09-08 Jim Blandy <jimb@redhat.com>
184
185 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
186 * dbxread.c: #include "gdb_assert.h".
187 (read_dbx_symtab): If the objfile has no .data section, use the
188 section index for the .bss section instead.
189
190 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
191
192 * frame.c (deprecated_safe_get_selected_frame): New function.
193 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
194 * findvar.c (read_var_value): Call it.
195
196 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
197
198 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
199 (sh64-tdep.o): Add dependencies.
200 * configure.tgt: Add FIXME to sh-*-linux*.
201 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
202 (sh_gdbarch_init): Always set correct sh_show_regs function
203 pointer. Call sh64_gdbarch_init() if machine type is sh5.
204 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
205 * sh64-tdep.c: New file, containing all sh64 related code from
206 sh-tdep.c.
207 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
208 * config/sh/linux.mt (TDEPFILES): Ditto.
209 * config/sh/nbsd.mt (TDEPFILES): Ditto.
210 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
211 * config/sh/wince.mt (TDEPFILES): Ditto.
212
213 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
214
215 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
216 (stop_wait_callback): Handle !lp->signalled also.
217 (lin_lwp_has_pending, flush_callback): New functions.
218 (lin_lwp_wait): Call flush_callback.
219 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
220 (linux_proc_pending_signals): New function.
221 * linux-nat.h (linux_proc_pending_signals): Add prototype.
222
223 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
224
225 From Nick Kelsey <nickk@ubicom.com>:
226 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
227 when the stop PC is at the beginning of a function also.
228
229 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
230
231 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
232 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
233
234 2003-09-06 Mark Kettenis <kettenis@gnu.org>
235
236 * sol-thread.c: Include "gdb_string.h".
237
238 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
239
240 * gcore.c: Reorder include files in alphabetical order. Include
241 "gdb_assert.h". Various coding style fixes.
242 (derive_stack_segment, derive_heap_segment): Replace check for
243 non-null BOTTOM and TOP with gdb_assert.
244 (derive_heap_segment): Replace check for successful creation of
245 ZERO with gdb_assert.
246 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
247
248 2003-09-04 Andrew Cagney <cagney@redhat.com>
249
250 * thread-db.c (verbose_dlsym): New function.
251 (thread_db_load): Use verbose_dlsym
252 (thread_db_new_objfile): Print that libthread_db was loaded, and
253 that thread debugging was enabled.
254
255 2003-09-04 Andrew Cagney <cagney@redhat.com>
256
257 * configure.tgt: Add "mips64*-*-*" target. Delete
258 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
259 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
260 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
261 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
262 mips*-sony-*, and mips64*-*-elf* targets.
263 * config/mips/embedl.mt: Delete file.
264 * config/mips/embedl64.mt: Delete file.
265 * config/mips/mips.mt: Delete file.
266 * config/mips/mips64.mt: Delete file.
267 * config/mips/tm-embed.h: Delete file.
268 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
269 * config/mips/embed64.mt: Delete out-of-date comment.
270
271 2003-09-04 Andrew Cagney <cagney@redhat.com>
272
273 * hppa-tdep.c (hppa_gdbarch_init): Set
274 "have_nonsteppable_watchpoint".
275 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
276 * mips-tdep.c (mips_dump_tdep): Do not print
277 HAVE_NONSTEPPABLE_WATCHPOINT.
278 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
279 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
280 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
281 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
282
283 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
284
285 * breakpoint.c (watchpoint_check): Remove accidentally checked in
286 unused code. Add comment.
287
288 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
289
290 * breakpoint.c (watchpoint_check): Check for pc being in an
291 epilogue if watchpoint frame couldn't be found.
292
293 2003-09-04 Andrew Cagney <cagney@redhat.com>
294
295 * Makefile.in: Re-generate all dependencies.
296
297 2003-09-03 Andrew Cagney <cagney@redhat.com>
298
299 * arch-utils.h (legacy_print_insn): Delete declaration.
300 * arch-utils.c (legacy_print_insn): Delete function.
301 * disasm.c (deprecated_tm_print_insn_info): Delete.
302 (_initialize_disasm): Delete function, contained code initializing
303 deprecated_tm_print_insn_info.
304 * gdbarch.sh (deprecated_tm_print_insn): Delete.
305 (deprecated_tm_print_insn_info): Delete.
306 (TARGET_PRINT_INSN): Do not provide a default.
307 * gdbarch.h, gdbarch.c: Re-generate.
308
309 2003-09-03 Andrew Cagney <cagney@redhat.com>
310
311 * disasm.c (fprintf_disasm): New function.
312 (gdb_disassemble_info): Call "init_disassemble_info", instead of
313 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
314 reverts 2003-08-14 change.
315 (_initialize_disasm): Call "init_disassemble_info", instead of
316 INIT_DISASSEMBLE_INFO_NO_ARCH.
317
318 2003-09-03 Michael Snyder <msnyder@redhat.com>
319
320 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
321
322 2003-09-03 Andrew Cagney <cagney@redhat.com>
323
324 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
325 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
326 * symfile.c (syms_from_objfile): Update.
327 (reread_symbols): `Update
328 * exec.c (exec_file_attach): Update.
329 (exec_file_attach): Update.
330 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
331 2003-08-29 change.
332 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
333
334 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
335
336 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
337 trad-frame.h.
338 (arm_get_cache): Delete macro.
339 (struct arm_prologue_cache): Update comments. Make saved_regs into
340 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
341 to prev_sp.
342 (thumb_scan_prologue): Update for cache changes. Don't call
343 DEPRECATED_PC_IN_CALL_DUMMY.
344 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
345 argument and use it in desperation search for our prologue. Do not
346 search past the specified PC.
347 (arm_make_prologue_cache): Simplify.
348
349 (arm_prologue_this_id, arm_prologue_prev_register)
350 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
351 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
352 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
353 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
354 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
355
356 (arm_frame_chain_valid, arm_find_callers_reg)
357 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
358 (arm_pop_frame): Delete obsolete methods.
359 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
360
361 (arm_gdbarch_init): Update for new frame methods. Register prologue
362 and sigtramp unwinders. Set the default frame base method.
363
364 * Makefile.in (arm-tdep.o): Update dependencies.
365 * varobj.c (find_frame_addr_in_frame_chain): Call
366 get_frame_base_address.
367 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
368
369 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
370
371 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
372 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
373 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
374 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
375 Take NEXT_FRAME and CACHE arguments. Call
376 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
377 Set unwound_pc in CACHE instead of modifying the frame argument.
378 Don't bother checking the frame type when looking for sigtramp
379 frames.
380 (arm_make_prologue_cache, arm_frame_chain)
381 (arm_init_extra_frame_info): New functions.
382
383 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
384
385 * arm-tdep.c (arm_get_cache): Define.
386 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
387 unwound_sp, unwound_pc, and saved_regs.
388 (thumb_scan_prologue): Take a cache instead of the frame.
389 (arm_scan_prologue): Likewise.
390 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
391 instead of a temporary frame.
392 (arm_init_extra_frame_info): Allocate and use a cache.
393 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
394
395 2003-09-03 Andrew Cagney <cagney@redhat.com>
396
397 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
398 * config/mips/wince.mt (TM_CLIBS): Ditto.
399 * config/sh/wince.mt (TM_CLIBS): Ditto.
400 * config/pa/hppa64.mt (TM_CLIBS): Delete.
401 * config/sparc/sp64.mt (CC): Delete.
402
403 2003-09-03 Andrew Cagney <cagney@redhat.com>
404
405 * defs.h: Do not include "arch-utils.h".
406 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
407 GDB_MULTI_ARCH_PURE.
408 * configure.in (GDB_MULTI_ARCH): Do not define.
409 * configure, config.in: Regenerate.
410 * configure.tgt: Do not set variable "gdb_multi_arch".
411 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
412 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
413 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
414 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
415 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
416 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
417 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
418 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
419 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
420 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
421 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
422 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
423 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
424 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
425 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
426 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
427 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
428 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
429
430 2003-08-30 Michael Chastain <mec@shout.net>
431
432 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
433 * config/m68k/nm-hp300hpux.h: Delete.
434 * config/m68k/tm-hp300hpux.h: Delete.
435 * config/m68k/xm-hp300hpux.h: Delete.
436 * config/m68k/xm-hp300bsd.h: Delete.
437 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
438 tm-hp300hpux.h, xm-hp300hpux.h.
439 * somsolib.c: Remove comment about hp300 shared libraries.
440
441 2003-08-31 Mark Kettenis <kettenis@gnu.org>
442
443 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
444 Only define PTRACE_GET_THREAD_AREA is not already defined.
445 Various style fixes in code and comments and some additional
446 spelling fixes in comments. Move after functions dealing with
447 debug registers.
448 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
449 Fix coding-style.
450
451 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
452 frame_unwind_register_unsigned instead of
453 frame_unwind_unsigned_register.
454
455 2003-08-30 Mark Kettenis <kettenis@gnu.org>
456
457 * configure.in: Search for gethostbyname in libnsl.
458 * configure: Regenerated.
459
460 2003-08-29 Mark Kettenis <kettenis@gnu.org>
461
462 * configure.in: Remove redundant AC_MSG_RESULT in check for
463 uintptr_t in stdint.h.
464 * configure: Regenerated.
465
466 * amd64-nat.h (struct regcache): Add opaque declaration.
467
468 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
469 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
470 Change "register array" to "register cache" in comments.
471 (x86_64_linux_gregset64_reg_offset): New variable.
472 (GETREGS_SUPPLIES): Remove macro.
473 (supply_gregset): Call amd64_supply_native_gregset instead of
474 x86_64_linux_supply_gregset.
475 (fill_gregset): Rename `regno' to `regnum'. Call
476 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
477 (store_regs): Rename `regno' to `regnum'.
478 (store_fpregs): Rename `regno' to `regnum'.
479 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
480 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
481 Reorganize function a bit.
482 (store_inferior_registers): Rename `regno' to `regnum'. Use
483 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
484 Reorganize function a bit.
485 (_initialize_x86_64_linux_nat): New function.
486 * config/i386/x86-64linux.mh.
487
488 2003-08-29 Andrew Cagney <cagney@redhat.com>
489
490 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
491 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
492 (target_remove_watchpoint): Delete macro.
493 (target_insert_watchpoint): Delete macro.
494 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
495 (remote_mips_stopped_by_watchpoint): Delete declaration.
496 (remote_mips_remove_watchpoint): Delete declaration.
497 (remote_mips_set_watchpoint): Delete declaration.
498 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
499 * remote-mips.c (_initialize_remote_mips): Set
500 "to_insert_watchpoint", "to_stopped_by_watchpoint",
501 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
502 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
503 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
504 (mips_stopped_by_watchpoint): Rename
505 remote_mips_stopped_by_watchpoint.
506 (mips_can_hardware_watchpoint): Rename
507 remote_mips_can_use_hardware_watchpoint, update function
508 signature.
509
510 2003-08-29 Mark Kettenis <kettenis@gnu.org>
511
512 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
513 USER_DS. We haven't given them a register number yet.
514
515 * amd64-nat.h: New file.
516 * amd64-nat.c: New file.
517 * amd64fbsd-nat.c: Include "amd64-nat.h".
518 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
519 (amd64fbsd32_r_reg_offset): New variable.
520 (supply_gregset): Simply call amd64_supply_native_gregset.
521 (fill_gregset): Rename `regno' to `regnum'. Simply call
522 amd64_collect_native_gregset.
523 (fill_fpregset): Rename `regno' to `regnum'.
524 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
525 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
526 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
527 `fpregset_t'. Call amd64_supply_native_gregset instead of
528 supply_gregset. Call x86_64_supply_fxsave instead of
529 supply_fpregset.
530 (store_inferior_registers): Rename `regno' to `regnum'. Replace
531 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
532 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
533 `fpregset_t'. Call amd64_collect_native_gregset instead of
534 fill_gregset. Call x86_64_collect_fxsave instead of
535 fill_fpregset.
536 (_initialize_am64fbsd_nat): Initialize
537 amd64_native_gregset32_reg_offset and
538 amd64_native_gregset64_reg_offset.
539 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
540
541 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
542 null pointer. Fix typo in comment.
543
544 * regcache.c (supply_register): Reimplement to call
545 regcache_raw_supply.
546 (regcache_collect): Reimplement by calling regcache_raw_collect.
547
548 2003-08-28 Mark Kettenis <kettenis@gnu.org>
549
550 * regcache.c (register_buffer): Consitify first argument.
551 (regcache_raw_supply, regcache_raw_collect): New
552 functions.
553
554 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
555
556 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
557 by Nathan J. Williams.
558
559 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
560
561 * lin-lwp.c (wait_lwp): New function, copied from
562 stop_wait_callback. Clean up.
563 (stop_wait_callback): Use wait_lwp.
564
565 2003-08-28 Andrew Cagney <cagney@redhat.com>
566
567 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
568 flavour and disassembler options.
569 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
570 (mips_gdbarch_init): Set "print_insn". Delete initialization of
571 deprecated_tm_print_insn_info.
572
573 2003-08-27 Andrew Cagney <cagney@redhat.com>
574
575 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
576 Use target_read_memory.
577 (s390_get_frame_info): Update. Do not reference
578 deprecated_tm_print_insn_info.
579 (s390_check_function_end, s390_is_sigreturn): Ditto.
580
581 2003-08-27 Andrew Cagney <cagney@redhat.com>
582
583 * Makefile.in (cris-tdep.o): Update dependencies.
584 * cris-tdep.c: Include "gdb_assert.h".
585 (cris_gdbarch_init): Set print_insn.
586 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
587 (cris_delayed_get_disassembler): Simplify, directly call the
588 disassembler returned by cris_get_disassembler.
589 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
590 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
591 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
592 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
593 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
594 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
595 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
596 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
597 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
598 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
599 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
600 (gdb_print_insn_sparc): Delete function.
601 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
602 deprecated_tm_print_insn_info.
603 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
604 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
605 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
606 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
607 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
608 * s390-tdep.c (gdb_print_insn_s390): Delete function.
609 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
610 (s390_gdbarch_init): Set print_insn.
611
612 2003-08-27 Andrew Cagney <cagney@redhat.com>
613
614 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
615 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
616 * infcall.c (call_function_by_hand): Convert the entry point
617 address into a code address.
618
619 2003-08-27 Andrew Cagney <cagney@redhat.com>
620
621 * dsrec.c: Include "gdb_string.h".
622 * Makefile.in (dsrec.o): Update dependencies.
623
624 2003-08-27 Michael Chastain <mec@shout.net>
625
626 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
627
628 2003-08-27 Andrew Cagney <cagney@redhat.com>
629
630 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
631 (alpha_osf1_init_abi): Do not set call_dummy_address.
632
633 2003-08-27 David Carlton <carlton@kealia.com>
634
635 From Randolph Chung <tausq@debian.org>:
636 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
637 compiles with -Wformat-nonliteral -Werror.
638
639 2003-08-26 Jim Blandy <jimb@redhat.com>
640
641 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
642 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
643 bfd_lookup_symbol, since we only want symbols in code sections.
644 (look_for_base): Pass zero as the SECT_FLAGS argument to
645 bfd_lookup_symbol, since we're not concerned about which section
646 the symbol is in.
647
648 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
649
650 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
651 we are frameless or the return address register is already known.
652
653 2003-08-26 Andrew Cagney <cagney@redhat.com>
654
655 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
656 in size. Add comments.
657
658 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
659
660 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
661 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
662
663 2003-08-26 Jason Merrill <jason@redhat.com>
664
665 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
666 case out of #ifdef MIPS block.
667
668 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
669
670 PR java/1322
671 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
672 available before calling SECT_OFF_TEXT.
673 * PROBLEMS: Remove description of java/1322.
674
675 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
676
677 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
678 bof, and nat0-nat127 as pseudo-registers.
679 (ia64_frame_cache): New struct used to cache frame info.
680 (ia64_register_reggroup_p): New routine used to override default
681 register grouping so registers without names are still saved and
682 restored.
683 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
684 pseudo values.
685 (ia64_pseudo_register_read): New routine to read pseudo-registers.
686 (ia64_pseudo_register_write): New routine to write pseudo-registers.
687 (ia64_alloc_frame_cache): New routine to create a new
688 ia64_frame_cache.
689 (examine_prologue): Change prototype to add next_frame pointer.
690 Assume frameless until otherwise proven. Verify that the cfm for
691 current frame matches the cfm that should occur for the prologues
692 alloc insn and if equal, mark as not frameless. At end of routine,
693 if not frameless, calculate registers for the previous frame and store
694 in the cache, if a cache is provided.
695 (ia64_skip_prologue): Use new prototype when calling examine_prologue
696 and pass 0 for next_frame.
697 (ia64_store_return_value): Change to use convert_typed_floating()
698 instead of calling ia64_convert_to_raw().
699 (ia64_extract_return_value): Change to use convert_typed_floating()
700 instead of calling ia64_convert_to_virtual().
701 (ia64_frame_cache): New routine to support new frame model.
702 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
703 (ia64_frame_sniffer): Ditto.
704 (ia64_sigtramp_frame_init_saved_regs): Ditto.
705 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
706 (ia64_sigtramp_frame_prev_register): Ditto.
707 (ia64_sigtramp_frame_sniffer): Ditto.
708 (ia64_frame_base_address): Ditto.
709 (ia64_extract_struct_value_address): Change to issue error message.
710 (ia64_frame_align): New routine to align sp.
711 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
712 (ia64_push_arguments): Removed. Logic moved to
713 ia64_push_dummy_call().
714 (ia64_push_return_address): Ditto.
715 (ia64_unwind_dummy_id): New function.
716 (ia64_unwind_pc): Ditto.
717 (ia64_convert_register_p): Ditto.
718 (ia64_register_to_value): Ditto.
719 (ia64_value_to_register): Ditto.
720 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
721 (ia64_register_byte, ia64_register_raw_size): Ditto.
722 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
723 (ia64_saved_pc_after_call): Ditto.
724 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
725 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
726 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
727 (ia64_register_convert_to_raw): Ditto.
728 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
729 (ia64_init_extra_frame_info): Ditto.
730 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
731 (ia64_gdbarch_init): Remove registering of deprecated functions that
732 are no longer used. Add registration of new gdbarch functions.
733 Remove registering deprecated_write_sp. Replace
734 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
735 Delete set_gdbarch_deprecated_register_convertible(),
736 set_gdbarch_deprecated_register_convert_to_virtual(), and
737 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
738 set_gdbarch_deprecated_register_size(),
739 set_gdbarch_deprecated_register_bytes(),
740 set_gdbarch_pcregnum(),
741 set_gdbarch_deprecated_register_byte(),
742 set_gdbarch_deprecated_register_raw_size(),
743 set_gdbarch_deprecated_max_register_raw_size(),
744 set_gdbarch_deprecated_register_virtual_size(),
745 and set_gdbarch_deprecated_max_register_virtual_size() calls.
746 Replace set_gdbarch_deprecated_extract_return_value() with
747 set_gdbarch_extract_return_value(). Remove calls to:
748 set_gdbarch_deprecated_saved_pc_after_call();
749 set_gdbarch_deprecated_frame_chain(),
750 set_gdbarch_deprecated_frame_saved_pc(),
751 set_gdbarch_deprecated_frame_init_saved_regs(),
752 set_gdbarch_deprecated_get_saved_register(),
753 set_gdbarch_deprecated_call_dummy_words(),
754 set_gdbarch_deprecated_sizeof_call_dummy_words(),
755 set_gdbarch_deprecated_init_extra_frame_info(),
756 set_gdbarch_deprecated_frame_args_address(),
757 set_gdbarch_deprecated_frame_locals_address(),
758 and set_gdbarch_deprecated_dummy_write_sp().
759 Add set_gdbarch_convert_register_p(),
760 set_gdbarch_register_to_value(),
761 set_gdbarch_value_to_register(),
762 set_gdbarch_push_dummy_call(),
763 set_gdbarch_frame_align(),
764 set_gdbarch_unwind_dummy_id(),
765 set_gdbarch_unwind_pc(),
766 frame_unwind_append_sniffer(),
767 frame_unwind_append_sniffer(),
768 and frame_base_set_default().
769
770 2003-08-25 Chris Demetriou <cgd@broadcom.com>
771
772 * configure.tgt: Document need for special "mipsisa64" handling.
773 (mipsisa64*-*-linux64): Handle as target linux64.
774 (mipsisa64*-*-*): Handle as target embed64.
775
776 2003-08-18 Michael Chastain <mec@shout.net>
777
778 * PROBLEMS: Document pr gdb/1322, the Java anonymous
779 objfile bug.
780
781 2003-08-24 Mark Kettenis <kettenis@gnu.org>
782
783 * i387-tdep.h: Update copyright date.
784 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
785
786 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
787 CFLAGS games to reflect reality.
788
789 2003-08-24 Andrew Cagney <cagney@redhat.com>
790
791 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
792 GDB_MULTI_ARCH is always non-zero.
793 * osabi.c (_initialize_gdb_osabi): Ditto.
794 (gdbarch_init_osabi): Ditto.
795 * sparc-tdep.c: Ditto for #if code.
796
797 2003-08-23 Mark Kettenis <kettenis@gnu.org>
798
799 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
800 Update comments.
801 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
802 comments.
803 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
804 x86_64_supply_fxsave.
805 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
806 x86_64_supply_fxsave.
807 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
808 x86_64_supply_fxsave.
809
810 2003-08-23 Andreas Jaeger <aj@suse.de>
811
812 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
813 i387_supply_fxsave.
814
815 2003-08-23 Mark Kettenis <kettenis@gnu.org>
816
817 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
818 i387_supply_register.
819 (go32_fetch_registers): Adjust call to i387_supply_fsave.
820 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
821 i387_supply_fsave.
822 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
823 i387_supply_fxsave.
824 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
825 i387_supply_fsave.
826 * i386bsd-nat.c (supply_fpregset): Adjust call to
827 i387_supply_fsave.
828 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
829 call to i387_supply_fxsave. Call i387_supply_fsave instead of
830 supply_fpregset.
831 (store_inferior_registers): Remove extraneous whitespace. Call
832 i387_fill_fsave instead of fill_fpregset.
833 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
834 (supply_fpregset): Likewise.
835 * i386v4-nat.c (supply_fpregset): Adjust call to
836 i387_supply_fsave.
837 * i386-interix-nat.c (supply_fpregset): Adjust call to
838 i387_supply_fsave.
839 * i386-linux-nat.c (supply_fpregset): Adjust call to
840 i387_supply_fsave.
841 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
842 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
843 i387supply_fsave and i387_supply_fxsave.
844 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
845 Incorporate code from `i387_supply_register.
846 (i387_supply_register): Remove.
847 (i387_supply_fxsave): Add `regnum' argument.
848 Update comments.
849 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
850 prototype.
851 (i387_supply_register): remove prototype.
852 Update comments.
853
854 2003-08-22 Michael Chastain <mec@shout.net>
855
856 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
857 Add lines for files in gdb/testsuite/gdb.cp/* that are
858 still not 8.3 unique.
859
860 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
861
862 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
863 TYPE_VPTR_FIELDNO is valid.
864
865 2003-08-19 Mark Kettenis <kettenis@gnu.org>
866
867 * utils.c (set_width_command): Remove prototypes.
868 (set_screen_size): New prototype.
869 (init_page_info): Simplify by fetching the screen size from
870 Readline. Call set_screen_size.
871 (set_screen_size): New function.
872 (set_width): Add missing whitespace in comment.
873 (set_width_command): Call set_screen_size.
874 (set_height_command): New function.
875 (initialize_utils): Fix formatting. Make "set height" command
876 call set_height_command. Remove redundant code that turns off
877 pagination if output isn't a terminal. Remove redundant call to
878 set_width_command.
879
880 2003-08-22 Mark Kettenis <kettenis@gnu.org>
881
882 * sparc64-tdep.h (sparc64_regnum): Fix comment.
883 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
884 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
885 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
886 `case' keyword.
887 (sparc64_register_info): Give the reister with number
888 SPARC64_STATE_REGNUM a name.
889 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
890 %asi and %ccr.
891 (sparc64_push_dummy_call): Take BIAS into account when checking
892 stcak alignment.
893 (sparc_software_single_step): Remove assertions that check whether
894 NPC and NNPC were zero.
895 (sparc_supply_rwindow): Make public. Merge functionality with
896 sparc64_supply_rwindow.
897 (sparc_fill_rwindow): Make public. Merge functionality with
898 sparc64_fill_rwindow.
899 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
900 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
901 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
902 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
903 sparc_supply_rwindow instead of sparc64_supply_rwindow.
904
905 * reggroups.c: Add whitespace after declarations of local
906 variables in functions.
907
908 2003-08-21 Michael Chastain <mec@shout.net>
909
910 * gdbtypes.h: Change array bound type from an int to enum.
911
912 2003-08-21 Andrew Cagney <cagney@redhat.com>
913
914 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
915 * config/sparc/tm-sparc.h: Ditto.
916 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
917 unconditionally.
918 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
919
920 2003-07-13 Mark Kettenis <kettenis@gnu.org>
921
922 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
923 (register_objfile_data, set_objfile_data, objfile_data): New
924 prototypes.
925 * objfiles.c (objfile_alloc_data, objfile_free_data): New
926 prototypes.
927 (allocate_objfile): Call objfile_alloc_data.
928 (free_objfile): Call objfile_free_data.
929 (struct objfile_data): New.
930 (struct objfile_data_registration): New.
931 (struct objfile_data_registry): New.
932 (objfile_data_registry): New variable.
933 (register_objfile_data): New function.
934 (objfile_alloc_data, objfile_free_data): New functions.
935 (set_objfile_data, objfile_data): New functions.
936 * dwarf2-frame.c (dwarf2_frame_data): New variable.
937 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
938 (_initialize_dwarf2_frame): New function and prototype.
939
940 2003-08-21 Andrew Cagney <cagney@redhat.com>
941
942 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
943 a specific architecture.
944 * arch-utils.h (set_architecture_from_arch_mach): Delete
945 declaration.
946 (target_architecture_hook): Delete declaration.
947 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
948 (default_float_format): Assume GDB_MULTI_ARCH.
949 (default_double_format): Assume GDB_MULTI_ARCH.
950 (set_endian_from_file): Delete function.
951 (arch_ok): Delete function.
952 (set_arch): Delete function.
953 (set_architecture_from_arch_mach): Delete function.
954 (set_architecture_from_file): Delete function.
955 (set_architecture): Assume GDB_MULTI_ARCH.
956 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
957
958 2003-08-21 Mark Kettenis <kettenis@gnu.org>
959
960 Rewrite FreeBSD/sparc64 native configuration.
961 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
962 * sparc64fbsd-nat.c: New file.
963 * sparc64fbsd-tdep.c: New file.
964 * sparc64-tdep.c sparc64-tdep.h: New files.
965 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
966 sparc64fbsd-tdep.o): New dependencies.
967 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
968 and sparc64fbsd-tdep.c.
969 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
970 * config/sparc/fbsd.mh: Remove copyright notice.
971 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
972 sparcbsd-nat.o.
973 * config/sparc/fbsd.mt: Remove copyright notice.
974 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
975 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
976 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
977 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
978 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
979 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
980 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
981 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
982 "sparc/tm-sp64.h".
983 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
984 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
985
986 2003-08-21 Michael Chastain <mec@shout.net>
987
988 * symtab.h: Add doco on the space critical structures and
989 some measurements of space usage.
990
991 2003-08-21 Michael Snyder <msnyder@redhat.com>
992
993 * tracepoint.c (trace_dump_command): Trace break address
994 is subject to DECR_PC_AFTER_BREAK.
995 (set_traceframe_context): Make "trace_line" an int.
996 Fixes suggested by Mark Newman <mark.newman@lmco.com>
997
998 2003-08-20 Michael Snyder <msnyder@redhat.com>
999
1000 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1001 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1002 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1003 argument passing.
1004 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1005 functions, replace sh_push_dummy_call.
1006 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1007
1008 2003-08-20 Michael Chastain <mec@shout.net>
1009
1010 * gdbtypes.h (struct main_type): Rearrange to save space.
1011
1012 2003-08-20 Michael Snyder <msnyder@redhat.com>
1013
1014 * trad-frame.c: Comment typo fix.
1015
1016 2003-08-20 Michael Snyder <msnyder@redhat.com>
1017 Kevin Buettner <kevinb@redhat.com>
1018
1019 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1020 (frv_frame_init_saved_regs): Add declaration.
1021 (frame_extra_info): Add new field ``saved_regs''.
1022 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1023 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1024 Update frame related code.
1025 (frv_extract_struct_value_address): Adjust formatting.
1026 * Makefile.in (frv-tdep.o): Update dependencies.
1027 * config/frv/tm-frv.h (target_insert_watchpoint)
1028 (target_remove_watchpoint, target_insert_hw_breakpoint)
1029 (target_remove_hw_breakpoint): Delete these macros.
1030 (remote_insert_watchpoint, remote_remove_watchpoint)
1031 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1032 these declarations.
1033
1034 2003-08-20 Michael Chastain <mec@shout.net>
1035
1036 * defs.h (ENUM_BITFIELD): New macro.
1037 * symtab.h (ENUM_BITFIELD): Use it.
1038 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1039
1040 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1041
1042 * MAINTAINERS (write after approval): Add myself.
1043
1044 2003-08-18 Andrew Cagney <cagney@redhat.com>
1045
1046 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1047 * gdbarch.h, gdbarch.c: Re-generate.
1048 * infcall.c (call_function_by_hand): Adjust the SP by
1049 frame_red_zone_size before allocating any stack space.
1050 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1051 * x86-64-tdep.c (x86_64_frame_align): New function.
1052 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1053
1054 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1055 Remove code adjusting SP so that it skips over the Red Zone.
1056
1057 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1058
1059 * NEWS (New native configurations): Mention FreeBSD/amd64.
1060
1061 2003-08-18 Andrew Cagney <cagney@redhat.com>
1062
1063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1064 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1065 "m68k_frame_p".
1066 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1067
1068 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1069
1070 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1071
1072 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1073
1074 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1075 Define.
1076 * i386-linux-nat.c: Include "linux-nat.h".
1077 (child_post_startup_inferior): New function.
1078
1079 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1080
1081 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1082 at the start of a frameless function. This probably fixes PR
1083 backtrace/1338.
1084
1085 2003-08-17 Michael Chastain <mec@shout.net>
1086
1087 * symfile.c (find_sym_fns): Remove special case for apollo target.
1088
1089 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1090
1091 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1092 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1093 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1094 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1095 (linux_supports_tracevforkdone): New function.
1096 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1097 TRACEVFORKDONE.
1098 (child_follow_fork): Handle vfork.
1099 (linux_handle_extended_wait): Likewise. Also handle exec.
1100 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1101 * NEWS: Mention fork tracing.
1102
1103 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1104
1105 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1106
1107 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1108
1109 * Makefile.in (i386-linux-nat.o): Update dependencies.
1110 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1111 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1112 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1113 * i386-linux-nat.c: Include "linux-nat.h".
1114 (child_post_startup_inferior): New function.
1115 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1116 * infptrace.c (kill_inferior): Wrap in #ifdef.
1117 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1118 attaching to each LWP.
1119 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1120 (init_lin_lwp_ops): Fill in some more operations.
1121 * linux-nat.h (linux_enable_event_reporting)
1122 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1123 prototypes.
1124 * linux-nat.c (linux_enable_event_reporting): New function.
1125 (child_post_attach, linux_child_post_startup_inferior)
1126 (child_post_startup_inferior, child_follow_fork)
1127 (linux_handle_extended_wait, kill_inferior): New functions.
1128
1129 2003-08-16 Andrew Cagney <cagney@redhat.com>
1130
1131 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1132 * gdbarch.h, gdbarch.c: Re-generate.
1133
1134 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1135
1136 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1137
1138 2003-08-16 Andrew Cagney <cagney@redhat.com>
1139
1140 * NEWS: Mention that "set prompt-escape-char" was deleted.
1141 * top.c (get_prompt_1): Delete function.
1142 (gdb_prompt_escape):
1143 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1144 prompt-escape-char" command.
1145 (MAX_PROMPT_SIZE): Delete macro.
1146 (get_prompt): Simplify, do not call get_prompt_1.
1147
1148 2003-08-16 Andrew Cagney <cagney@redhat.com>
1149
1150 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1151 -Werror. -Wformat-nonliteral problems.
1152
1153 2003-08-15 J. Brobecker <brobecker@gnat.com>
1154
1155 Further multiarching work mostly for hppa64-*-hpux11:
1156 * hppa-tdep.h: New file.
1157 * hppa-tdep.c: #include hppa-tdep.c.
1158 (hppa32_num_regs): Renamed from hppa_num_regs.
1159 (hppa64_num_regs): New constant.
1160 (hppa64_call_dummy_breakpoint_offset): New constant.
1161 (hppa32_call_dummy_length): New constant.
1162 (hppa64_call_dummy_length): New constant.
1163 (hppa32_stack_align): Make name 32bit explicit.
1164 (hppa32_register_virtual_type): Likewise.
1165 (hppa32_extract_return_value): Likewise.
1166 (hppa32_use_struct_convention): Likewise.
1167 (hppa32_store_return_value): Likewise.
1168 (hppa64_register_virtual_type): New function.
1169 (hppa64_extract_return_value): New function.
1170 (hppa64_use_struct_convention): New function.
1171 (hppa64_store_return_value): New function.
1172 (hppa_frame_locals_address): Remove declaration, function does
1173 not exist anymore.
1174 (hppa_register_byte): Add support for PA64 ABI.
1175 (hppa_gdbarch_init): Add support for PA64 ABI.
1176 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1177 Make name 32bit explicit.
1178 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1179 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1180 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1181 (hppa64_hpux_frame_base_before_sigtramp): New function.
1182 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1183 * config/pa/tm-hppa64.h: Remove macros that are no longer
1184 necessary now that the gdbarch vector is properly setup.
1185 Transform some macros into function calls. Some minor cleanup.
1186 * config/pa/tm-hppah.h: Update function calls in macros
1187 following the function renaming in hppa-hpux-tdep.c.
1188 * Makefile.in (hppa_tdep_h): New variable.
1189 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1190
1191 2003-08-14 Michael Snyder <msnyder@redhat.com>
1192
1193 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1194
1195 2003-08-13 J. Brobecker <brobecker@gnat.com>
1196
1197 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1198 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1199 routine.
1200
1201 2003-08-13 Michael Snyder <msnyder@redhat.com>
1202
1203 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1204 (frv_saved_pc_after_call): Use deprecated ftype.
1205 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1206 (frv_remote_translate_xfer_address): Remove.
1207 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1208
1209 2003-08-13 J. Brobecker <brobecker@gnat.com>
1210
1211 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1212 initialization after the common gdbarch initialization, not before.
1213
1214 2003-08-13 J. Brobecker <brobecker@gnat.com>
1215
1216 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1217 (ADDR_BITS_REMOVE): Remove, redundant.
1218
1219 2003-08-13 J. Brobecker <brobecker@gnat.com>
1220
1221 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1222 gdbarch method to clear the 2 low bits of text addresses.
1223
1224 2003-08-12 Andrew Cagney <cagney@redhat.com>
1225
1226 * Makefile.in (dsrec.o): Update dependencies.
1227 * dsrec.c: Include "gdb_assert.h".
1228 (make_srec): Use snprintf instead of sprintf, use a literal format
1229 string.
1230
1231 2003-08-12 Andrew Cagney <cagney@redhat.com>
1232
1233 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1234 FRAME_OBSTACK_ZALLOC.
1235
1236 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1237
1238 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1239 SSE registers.
1240
1241 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1242
1243 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1244 amd64fbsd_sc_reg_offset): Add extern declarations.
1245 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1246 declarations.
1247
1248 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1249
1250 * MAINTAINERS (write after approval): Update my mail address.
1251
1252 2003-08-10 Andrew Cagney <cagney@redhat.com>
1253
1254 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1255
1256 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1257
1258 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1259 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1260 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1261 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1262 i386bsd_sc_reg_offset): Add extern declarations.
1263 * i386obsd-nat.c: Include "i386-tdep.h"
1264 (_initialize_i386obsd_nat): Remove extern declarations.
1265 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1266 declarations.
1267 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1268 declarations.
1269
1270 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1271 instead of frame_read_register.
1272 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1273 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1274 SP_REGNUM.
1275 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1276 instead of frame_unwind_unsigned_register. Use
1277 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1278 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1279 instead of read_register. Use builtin_type_void_data_ptr instead
1280 of builtin_type_void_func_ptr when extracting the address of the
1281 jmp_buf.
1282 (i386_extract_return_value, i386_store_return_value,
1283 i386_pseudo_register_read, i386_pseudo_register_write): Use
1284 register_size instead REGISTER_RAW_SIZE.
1285
1286 2003-08-10 Andrew Cagney <cagney@redhat.com>
1287
1288 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1289 sprintf. Make "name" constant.
1290
1291 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1292
1293 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1294 instead of frame_read_register.
1295 (i387_print_float_info): Use get_frame_register and
1296 get_frame_register_unsigned instead of frame_register_read.
1297
1298 * i386fbsd-nat.c: Include "i386-tdep.h".
1299 (child_resume): Make `eflags' an ULONGEST. Use
1300 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1301 instead of register_read and register_write.
1302
1303 * i386bsd-nat.c (fetch_inferior_registers,
1304 store_inferior_registers): Don't use && at the end of a line.
1305 (_initialize_i386bsd_nat): Fix typo.
1306
1307 * frame.c (_initialize_frame): Add missing backslash.
1308
1309 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1310 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1311 and supply_register instead of manipulating the register buffer
1312 directly.
1313
1314 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1315 * config/i386/nm-i386sol2.h
1316 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1317
1318 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1319 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1320 instructions that GCC likes to mingle into the prologue. Fixes
1321 gdb/1253 and gdb/1255.
1322
1323 2003-08-09 Andrew Cagney <cagney@redhat.com>
1324
1325 Fix GDB PR cli/926.
1326 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1327 * command.h (add_setshow_uinteger_cmd): Declare.
1328 * frame.c (set_backtrace_cmd): New function.
1329 (show_backtrace_cmd): New function.
1330 * frame.c (_initialize_frame): Replace "set/show
1331 backtrace-below-main" with "set/show backtrace past-main". Add
1332 command "set/show backtrace limit".
1333 (backtrace_past_main): Rename "backtrace_below_main".
1334 (backtrace_limit): New variable.
1335 (get_prev_frame): Update. Check the backtrace_limit.
1336
1337 2003-08-09 Andrew Cagney <cagney@redhat.com>
1338
1339 * defs.h (xstrprintf): Declare.
1340 * utils.c (xstrprintf): New function.
1341 * breakpoint.c (insert_breakpoints): Replace sprintf and
1342 non-literal format strings, with xstrprintf and cleanups.
1343 (delete_breakpoint,breakpoint_re_set): Ditto.
1344 (commands_command, insert_breakpoints): Ditto.
1345 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1346 (break_at_finish_command_1): Ditto.
1347
1348 2003-08-09 Andrew Cagney <cagney@redhat.com>
1349
1350 * MAINTAINERS (language support): List Adam Fedor as Objective C
1351 maintainer.
1352
1353 2003-08-08 J. Brobecker <brobecker@gnat.com>
1354
1355 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1356 are now multiarched.
1357
1358 2003-08-08 J. Brobecker <brobecker@gnat.com>
1359
1360 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1361 longer necessary now that hppa64 is partially multiarch'ed.
1362
1363 2003-08-08 Andrew Cagney <cagney@redhat.com>
1364
1365 * interps.c (interp_set): Check for a NULL "old_interp".
1366
1367 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1368
1369 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1370 (install-only): Support DESTDIR.
1371 (uninstall): Likewise.
1372 (install-gdbtk): Likewise.
1373
1374 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1375
1376 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1377 contains something meaningful at all times.
1378
1379 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1380
1381 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1382
1383 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1384
1385 * MAINTAINERS (write after approval): Added self.
1386
1387 2003-08-07 Andrew Cagney <cagney@redhat.com>
1388
1389 * inferior.h (AT_SYMBOL): Define.
1390 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1391 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1392 * mips-tdep.c (mips_call_dummy_address): Delete function.
1393 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1394 set call_dummy_address.
1395
1396 2003-08-07 Andrew Cagney <cagney@redhat.com>
1397
1398 * language.c (op_error): Delete function.
1399 (binop_type_check): Delete function.
1400 * language.h (type_op_error, range_op_error): Delete macros.
1401 (op_error): Delete declaration.
1402
1403 2003-08-07 Andrew Cagney <cagney@redhat.com>
1404
1405 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1406
1407 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1408
1409 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1410 (x86_64_push_arguments): Skip the red zone.
1411
1412 2003-08-05 Andrew Cagney <cagney@redhat.com>
1413
1414 * reggroups.c (reggroup_next): Check for the final entry.
1415
1416 2003-08-04 Andrew Cagney <cagney@redhat.com>
1417
1418 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1419 * cli/cli-script.c (define_command): Call query directly, instead
1420 of passing it a buffer.
1421 * ocd.c (ocd_error): Pass error a constant format string.
1422 * remote-mips.c (mips_error): Use fputs_filtered.
1423
1424 * solib-svr4.c (_initialize_svr4_solib): Update
1425 register_gdbarch_data call.
1426 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1427
1428 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1429 (register_gdbarch_data): Delete "free" parameter. Update
1430 comments.
1431 * gdbarch.h, gdbarch.c: Re-generate.
1432 * reggroups.c (_initialize_reggroup): Update.
1433 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1434 * frame-base.c (_initialize_frame_base): Update.
1435 * frame-unwind.c (_initialize_frame_unwind): Update.
1436 * user-regs.c (_initialize_user_regs): Update.
1437 * remote.c (_initialize_remote): Update.
1438 * regcache.c (_initialize_regcache): Update.
1439
1440 * regcache.c (xfree_regcache_descr): Delete function.
1441 (_initialize_regcache): Update call to register_gdbarch_data.
1442 (init_regcache_descr, init_legacy_regcache_descr): Use
1443 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1444
1445 * remote.c (free_remote_state): Delete function.
1446 (_initialize_remote): Update register_gdbarch_data.
1447 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1448 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1449
1450 2003-08-04 Andrew Cagney <cagney@redhat.com>
1451
1452 * reggroups.c (struct reggroup_el): Define.
1453 (struct reggroups): Delete field "nr_group". Replace array
1454 "group" with a "first" to "last" linked list.
1455 (reggroups_init): Update. Allocate using gdbarch's obstack.
1456 (reggroups_free): Delete function.
1457 (add_group): Update. Add "el" parameter.
1458 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1459 (default_groups): Update.
1460 (reggroup_next): Replace reggroups.
1461 (reggroups_dump): Update.
1462 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1463 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1464 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1465
1466 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1467
1468 * Makefile.in (tui-interp.o): Update dependencies.
1469
1470 2003-08-04 David Carlton <carlton@kealia.com>
1471
1472 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1473 to internal_error call.
1474 * source.c (forward_search_command): Add "%s" format argument.
1475 (reverse_search_command): Ditto.
1476 * top.c (quit_confirm): Ditto.
1477 * cli/cli-setshow.c (do_setshow_command): Ditto.
1478 * cp-valprint.c (cp_print_class_method): Replace
1479 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1480 (cp_print_class_member): Ditto.
1481 * event-top.c (command_line_handler): Ditto.
1482 * linux-proc.c (linux_info_proc_cmd): Ditto.
1483 * p-typeprint.c (pascal_type_print_base): Ditto.
1484 * p-valprint.c (pascal_object_print_class_method): Ditto.
1485 (pascal_object_print_class_member): Ditto.
1486 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1487 * remote.c (remote_cisco_section_offsets): Ditto.
1488 * top.c (command_line_input): Ditto.
1489 * utils.c (vwarning,error_stream,quit): Ditto.
1490 * valprint.c (print_floating,print_binary_chars)
1491 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1492
1493 2003-08-04 Andrew Cagney <cagney@redhat.com>
1494
1495 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1496
1497 2003-08-02 Andrew Cagney <cagney@redhat.com>
1498
1499 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1500 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1501 amd64fbsd-nat.c.
1502
1503 2003-08-02 Andrew Cagney <cagney@redhat.com>
1504
1505 * Makefile.in: Update all dependencies and definitions.
1506
1507 2003-08-02 Adam Fedor <fedor@gnu.org>
1508
1509 * linespec.c (is_objc_method_format): New function
1510 (decode_line_1, locate_first_half): Use it.
1511 Fixes PR objc/1298
1512
1513 2003-08-01 Andrew Cagney <cagney@redhat.com>
1514
1515 * NEWS: Mention that m32r is multi-arch.
1516 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1517 * configure.tgt: Recognize m32r-*-*.
1518 * config/m32r/tm-m32r.h: Delete file.
1519 * config/m32r/m32r.mt: New file.
1520 * m32r-rom.c (m32r_upload_command): Use hostent only when
1521 gethostname succeeds, in order to avoid a compilation
1522 warning.
1523 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1524 compiler warning.
1525
1526 2003-08-01 Michael Snyder <msnyder@redhat.com>
1527
1528 * sh-tdep.c (sh_frame_align): New gdbarch method.
1529 (sh_gdbarch_init): Set up frame_align method.
1530
1531 2003-07-31 Michael Snyder <msnyder@redhat.com>
1532
1533 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1534 which is already covered by the new frames infrastructure.
1535
1536 2003-07-31 Andrew Cagney <cagney@redhat.com>
1537
1538 * user-regs.c (struct user_reg): Add "next" link.
1539 (struct user_regs): Replace "user" with "first" and "last" links.
1540 (append_user_reg): Add pre-allocated "reg" parameter.
1541 (builtin_user_regs): Provide initial value for "last".
1542 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1543 (user_regs_init): Allocate memory from the gdbarch obstack.
1544 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1545 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1546 linked list.
1547 (usernum_to_user_reg): New function.
1548 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1549 (value_of_user_reg): Use usernum_to_user_reg.
1550 (user_regs_free): Delete function.
1551 (_initialize_user_regs): Update register_gdbarch_data call.
1552
1553 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1554
1555 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1556
1557 2003-07-30 Michael Snyder <msnyder@redhat.com>
1558
1559 * value.h (value_being_returned): Add a struct_addr argument.
1560 * infcall.c (call_function_by_hand): Pass struct_addr to
1561 value_being_returned.
1562 * infcmd.c (print_return_value): Pass zero as struct_addr.
1563 * values.c (value_being_returned): If struct_addr is passed,
1564 use it instead of trying to recover it from the inferior.
1565
1566 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1567
1568 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1569 the prologue analyzer won't need to attempt to extract the pc
1570 value from the woefully incomplete dummy frame.
1571 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1572 possible. Disable code which modifies the frame.
1573
1574 2003-07-28 Andrew Cagney <cagney@redhat.com>
1575
1576 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1577 to level 2.
1578 (annotate_breakpoints_table, annotate_record): Ditto.
1579 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1580 (annotate_field_name_end, annotate_field_value): Ditto.
1581 (annotate_field_end, annotate_frame_source_begin): Ditto.
1582 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1583 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1584 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1585 (annotate_frame_address_end, annotate_frame_address): Ditto.
1586 (annotate_frame_args, annotate_frame_end): Ditto.
1587 (annotate_frame_where, annotate_arg_begin): Ditto.
1588 (annotate_arg_name_end, annotate_arg_value): Ditto.
1589 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1590 (annotate_function_call, annotate_signal_name): Ditto.
1591 (annotate_signal_string, annotate_signal_name_end): Ditto.
1592 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1593 (annotate_value_begin, annotate_value_history_value): Ditto.
1594 (annotate_value_history_end, annotate_value_end): Ditto.
1595 (annotate_display_begin, annotate_display_number_end): Ditto.
1596 (annotate_display_format, annotate_display_expression): Ditto.
1597 (annotate_display_expression_end, annotate_display_value): Ditto.
1598 (annotate_display_end, annotate_array_section_begin): Ditto.
1599 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1600 (annotate_elt, annotate_array_section_end): Ditto.
1601
1602 2003-07-28 Andrew Cagney <cagney@redhat.com>
1603
1604 * regcache.c (struct regcache_descr): Update comments on
1605 nr_raw_registers.
1606 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1607 sizeof_raw_register_valid_p.
1608 (init_regcache_descr): Set nr_raw_registers and
1609 sizeof_raw_register_valid_p before calling
1610 init_legacy_regcache_descr.
1611
1612 2003-07-28 Andrew Cagney <cagney@redhat.com>
1613
1614 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1615 MOD NUM_REGS.
1616
1617 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1618
1619 * thread.c (info_threads_command): Use get_selected_frame ().
1620 Check that there is at least one non-sentinel frame.
1621
1622 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1623
1624 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1625 (m68hc11_pop_frame): Remove.
1626 (m68hc11_frame_saved_pc): Remove.
1627 (m68hc11_frame_chain): Remove.
1628 (m68hc11_frame_init_saved_regs): Remove.
1629 (m68hc11_init_extra_frame_info): Remove.
1630 (m68hc11_store_struct_return): Remove.
1631 (m68hc11_saved_pc_after_call): Remove.
1632
1633 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1634
1635 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1636 frame unwind information.
1637 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1638 and adapted for frame unwinding.
1639 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1640 (m68hc11_unwind_pc): New function.
1641 (m68hc11_frame_unwind_cache): New function to analyze frames.
1642 (m68hc11_frame_this_id): New function to create new frame struct.
1643 (m68hc11_frame_prev_register): New function to unwind a register from
1644 the frame.
1645 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1646 (m68hc11_frame_p): New function for the above.
1647 (m68hc11_frame_base_address): New function to return fp of frame.
1648 (m68hc11_frame_args_address): Update for frame.
1649 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1650 (m68hc11_unwind_sp): New function.
1651 (m68hc11_unwind_dummy_id): New function.
1652 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1653 calls.
1654
1655 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1656
1657 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1658 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1659 when we are beyond the current pc.
1660
1661 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1662
1663 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1664 from m68hc11_push_arguments.
1665 (m68hc11_push_arguments): Remove.
1666 (m68hc11_push_return_address): Remove.
1667 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1668 handlers; remove deprecated_extra_stack_alignment_needed.
1669
1670 2003-07-27 Andrew Cagney <cagney@redhat.com>
1671
1672 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1673 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1674 REAL_PC and not the pointer.
1675 * hppa-hpux-tdep.c: Include frame.h
1676
1677 2003-07-27 Andrew Cagney <cagney@redhat.com>
1678
1679 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1680 GDB_MULTI_ACH_PARTIAL.
1681
1682 2003-07-27 Andrew Cagney <cagney@redhat.com>
1683
1684 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1685 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1686 operator at start and not end of line.
1687 (decode_prologue): Ditto.
1688 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1689 frame_unwind_register_unsigned instead of
1690 frame_unwind_unsigned_register.
1691 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1692 read_register.
1693 (m32r_push_dummy_call): Use register_size instead of
1694 REGISTER_RAW_SIZE.
1695 (m32r_frame_sniffer): Replace m32r_frame_p.
1696 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1697 * m32r-rom.c (report_transfer_performance): Delete extern
1698 declaration.
1699 (m32r_load, m32r_upload_command): Use print_transfer_performance
1700 instead of report_transfer_performance.
1701 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1702 / add_show_from_set.
1703
1704 2003-07-26 Andrew Cagney <cagney@redhat.com>
1705
1706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1707 store_return_value and extract_struct_value_address.
1708
1709 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
1710
1711 PR c++/1267
1712 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1713 NULL, default to the section containing PC.
1714
1715 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1716
1717 * NEWS: Mention "regs" deprecated for m68hc11 too.
1718
1719 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1720 (m68hc11_print_register): New function to print out one register.
1721 (m68hc11_print_registers_info): New function to print registers.
1722 (show_regs): Deprecate and use the above.
1723 (m68hc11_gdbarch_init): Install the print_registers_info.
1724
1725 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1726
1727 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1728 that we have a SIGTRAP before returning non-zero.
1729
1730 2003-07-23 Michal Ludvig <mludvig@suse.cz>
1731 Elena Zannoni <ezannoni@redhat.com>
1732
1733 * linespec.c (decode_line_2): Avoid crash if
1734 find_function_start_sal() returns empty record.
1735
1736 2003-07-23 Andreas Schwab <schwab@suse.de>
1737
1738 * ia64-tdep.c (ia64_print_insn): New function.
1739 (ia64_gdbarch_init): Set print_insn to it.
1740 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1741 deprecated_tm_print_insn_info.
1742
1743 2003-07-22 Michael Snyder <msnyder@redhat.com>
1744
1745 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1746 handle 8-bit returns (long long).
1747 (h8300h_extract_return_value): Ditto.
1748 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1749
1750 2003-07-22 Andrew Cagney <cagney@redhat.com>
1751
1752 * gdbarch.c Include "gdb_obstack.h".
1753 (struct gdbarch): Add an "obstack".
1754 (alloc_gdbarch_data): Allocate the gdbarch data using
1755 GDBARCH_OBSTACK_CALLOC.
1756 (free_gdbarch_data): Delete function.
1757 (gdbarch_obstack_zalloc): New function.
1758 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1759 Assert that the architecture is not initialized.
1760 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1761 vector from the obstack.
1762 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1763 architecture obstack.
1764 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1765 (set_gdbarch_data): Assert that the data is not initialized.
1766 (struct gdbarch_data): Delete member "free".
1767 (register_gdbarch_data): Do not initialize "free".
1768 * gdbarch.h, gdbarch.c: Re-generate.
1769
1770 2003-07-22 Andrew Cagney <cagney@redhat.com>
1771
1772 * configure.in (build_warnings): Add -Wformat-nonliteral.
1773 * configure: Re-generate.
1774
1775 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1776
1777 * dwarf2loc.c (locexpr_describe_location): Fix typos.
1778
1779 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
1780
1781 * findvar.c (read_var_value): Remove case for thread local storage
1782 variables. It is now entirely handled by the dwarf2 location
1783 expression code.
1784 * printcmd.c (address_info): Ditto.
1785 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1786 enumeration value.
1787 (struct symbol): Remove objfile field, which was used by
1788 LOC_THREAD_LOCAL_STATIC only.
1789 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1790 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1791 usage of objfile pointer.
1792 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1793 thread local variables.
1794 Add include of objfiles.h.
1795 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1796 storage variables.
1797 * Makefile.in (dwarf2loc.o): Update dependencies.
1798
1799 2003-07-22 Andrew Cagney <cagney@redhat.com>
1800
1801 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1802 get_frame_base.
1803 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1804 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1805 (struct value): Add opaque declaration.
1806 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1807
1808 2003-07-21 Andrew Cagney <cagney@redhat.com>
1809
1810 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1811 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1812
1813 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1814
1815 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1816 regcache_cooked_read_unsigned instead of read_register.
1817 (m68hc11_saved_pc_after_call): Likewise.
1818 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1819 instead of write_register.
1820 (m68hc11_register_type): New function.
1821 (m68hc11_register_virtual_type): Remove.
1822 (m68hc11_store_return_value): Convert to use the regcache.
1823 (m68hc11_extract_struct_value_address): Likewise.
1824 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1825 m68hc11_register_type; undeprecate store_return_value and
1826 extract_struct_value_address.
1827
1828 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1829
1830 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1831 and translate to use regcache.
1832 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1833
1834 2003-07-18 Andrew Cagney <cagney@redhat.com>
1835
1836 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1837 * gdbarch.h, gdbarch.c: Re-generate.
1838 * i386-tdep.c (i386_gdbarch_init): Do not set
1839 DWARF2_BUILD_FRAME_INFO.
1840 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1841 unconditionally.
1842 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1843 DWARF2_BUILD_FRAME_INFO.
1844
1845 2003-07-18 Andrew Cagney <cagney@redhat.com>
1846
1847 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1848 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1849
1850 2003-07-18 Andrew Cagney <cagney@redhat.com>
1851
1852 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1853 frame_unwind_address_in_block, instead of frame_pc_unwind.
1854 (dwarf2_frame_cache): Ditto.
1855
1856 2003-07-18 Andrew Cagney <cagney@redhat.com>
1857
1858 * user-regs.h (struct gdbarch): Declare opaque.
1859 * ui-out.h (struct ui_file): Declare opaque.
1860 * dwarf2-frame.h (struct frame_info): Declare opaque.
1861
1862 2003-07-18 Kris Warkentin <kewarken@qnx.com>
1863
1864 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1865 #include "...".
1866 (procfs_meminfo): Change strerror to safe_strerror.
1867 (procfs_can_run): Remove K&R badness.
1868
1869 2003-07-17 Michael Snyder <msnyder@redhat.com>
1870
1871 * remote-sim.c: Comment typo fix.
1872
1873 2003-07-17 Andrew Cagney <cagney@redhat.com>
1874
1875 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1876 configure.
1877 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1878 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1879 GDB_MULTI_ARCH_PARTIAL.
1880
1881 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
1882
1883 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1884 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1885 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1886
1887 2003-07-16 Theodore A. Roth <troth@openavr.org>
1888
1889 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1890 found.
1891 (avr_frame_unwind_cache): Don't unwind FP for main.
1892 Update a comment.
1893 Save the computed prev_sp.
1894 (avr_saved_regs_unwinder): Remove function.
1895 (avr_frame_prev_register): Use PC unwind logic from
1896 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1897
1898 2003-07-16 Andrew Cagney <cagney@redhat.com>
1899
1900 * frame-base.h (frame_base_p_ftype): Delete definition.
1901 (frame_base_append_predicate): Delete declaration.
1902 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1903 (frame_unwind_append_predicate): Delete declaration.
1904 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1905 (append_predicate): Delete parameter "p".
1906 (frame_unwind_append_predicate): Delete function.
1907 (frame_unwind_append_sniffer): Update call to append_predicate.
1908 (frame_unwind_free): Delete function.
1909 (_initialize_frame_unwind): Pass NULL as "free" to
1910 register_gdbarch_data.
1911 (frame_unwind_init): Append the dummy_frame_sniffer.
1912 (frame_unwind_find_by_frame): Simplify.
1913 * frame-base.c (struct frame_base_table): Delete field "p".
1914 (append_predicate): Delete parameter "p".
1915 (frame_base_append_predicate): Delete function.
1916 (frame_base_append_sniffer): Update call to append_predicate.
1917 (frame_base_free): Delete function.
1918 (frame_base_find_by_frame): Simplify.
1919 (_initialize_frame_base): Pass NULL as "free" to
1920 register_gdbarch_data.
1921 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1922 (x86_64_sigtramp_frame_sniffer): Replace
1923 "x86_64_sigtramp_frame_p".
1924 (x86_64_init_abi): Set the frame unwind sniffers.
1925 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1926 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1927 (m68k_gdbarch_init): Set the frame unwind sniffers.
1928 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1929 "i386_sigtramp_frame_p".
1930 (i386_frame_sniffer): Replace "i386_frame_p".
1931 (i386_gdbarch_init): Set the frame unwind sniffers.
1932 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1933 (avr_gdbarch_init): Set the frame unwind sniffers.
1934 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1935 "alpha_sigtramp_frame_p"
1936 (alpha_heuristic_frame_sniffer): Replace
1937 "alpha_heuristic_frame_p".
1938 (alpha_gdbarch_init): Set the frame unwind sniffers.
1939 (alpha_dwarf2_init_abi): Ditto.
1940 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1941 "alpha_debug_frame_p".
1942 (alpha_mdebug_frame_base_sniffer): Replace
1943 "alpha_mdebug_frame_base_p".
1944 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1945 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1946 (d10v_gdbarch_init): Set the frame unwind sniffer.
1947 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1948 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1949 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1950 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1951 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1952 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1953
1954 2003-07-16 Michael Snyder <msnyder@redhat.com>
1955
1956 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1957 should go thru sh_dsp_register_sim_regno, else the dsp regs
1958 will not get the right values.
1959
1960 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1961
1962 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1963 deprecated_store_floating by call to store_typed_floating.
1964 (sh_sh4_register_convert_to_raw): Substitute call to
1965 deprecated_extract_floating by call to extract_typed_floating.
1966
1967 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1968
1969 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1970
1971 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
1972
1973 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1974 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1975 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1976 as possible.
1977 (do_pseudo_register): Remove.
1978 (sh_push_dummy_code): New function.
1979 (sh64_store_struct_return): Rename from sh_store_struct_return.
1980 Only called for sh64 now.
1981 (sh_extract_struct_value_address): Regcache'ify.
1982 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
1983 and accomodate new tasks.
1984 (sh64_push_return_address): Rename from sh_push_return_address.
1985 Only called for sh64 now.
1986 (sh_default_extract_return_value): Rename from sh_extract_return_value.
1987 Regcache'ify.
1988 (sh3e_sh4_extract_return_value): Regcache'ify.
1989 (sh_default_store_return_value): Ditto.
1990 (sh3e_sh4_store_return_value): Ditto.
1991 (sh_default_register_byte): Remove.
1992 (sh_sh4_register_byte): Remove.
1993 (sh_default_register_raw_size): Remove.
1994 (sh_sh4_register_raw_size): Remove.
1995 (sh_register_virtual_size): Remove.
1996 (sh_sh3e_register_virtual_type): Remove.
1997 (sh_sh3e_register_type): New function.
1998 (sh_sh4_register_virtual_type): Remove.
1999 (sh_sh4_register_type): New function.
2000 (sh_default_register_virtual_type): Remove.
2001 (sh_default_register_type): New function.
2002 (do_fv_register_info): Add parameters to accomodate call from
2003 sh_print_registers_info.
2004 (do_dr_register_info): Ditto.
2005 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2006 Add parameters to accomodate call from sh_print_registers_info.
2007 (sh_do_fp_register): Ditto.
2008 (sh64_do_pseudo_register): Call do_dr_register_info,
2009 do_fv_register_info and sh_do_fp_register with default parameters.
2010 (sh_do_register): Add parameters to accomodate call from
2011 sh_print_registers_info.
2012 (sh_print_register): Ditto.
2013 (sh_print_registers_info): Rename from sh_do_registers_info.
2014 Add parameters to be used as gdbarch_print_registers_info
2015 implementation. Accomodate removed do_pseudo_register function
2016 pointer.
2017 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2018 function pointer. Call sh_print_register with default parameters.
2019 (sh64_do_registers_info): Call sh_print_registers_info instead of
2020 sh_do_registers_info.
2021 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2022 detection of deprecated vs. non-deprecated functionality.
2023 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2024 function pointer assignments by direct function calls.
2025
2026 2003-07-15 Andrew Cagney <cagney@redhat.com>
2027
2028 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2029 (frame_register_unwind, create_new_frame): Ditto.
2030 (legacy_get_prev_frame, get_frame_type): Ditto.
2031 (get_frame_base_address): Use frame_base_find_by_frame.
2032 (get_frame_locals_address): Use frame_base_find_by_frame.
2033 (get_frame_args_address): Use frame_base_find_by_frame.
2034 * frame-base.h (frame_base_sniffer_ftype): Declare.
2035 (frame_base_append_sniffer): Declare.
2036 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2037 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2038 (frame_base_append_sniffer): New function.
2039 (frame_base_append_predicate): Add a NULL sniffer.
2040 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2041 (struct frame_base_table): Add "sniffer".
2042 (frame_base_free): Free the "sniffer" table.
2043 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2044 (frame_unwind_append_sniffer): Declare.
2045 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2046 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2047 (struct frame_unwind_table): Add "sniffer", delete "middle".
2048 (append_predicate): Add "sniffer" parameter, append the sniffer.
2049 (frame_unwind_init): Update append_predicate call.
2050 (frame_unwind_append_sniffer): New function.
2051 (frame_unwind_append_predicate): Update append_predicate call.
2052 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2053
2054 2003-07-15 Andrew Cagney <cagney@redhat.com>
2055
2056 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2057 before code inhibiting repeated unwind attempts. Add to
2058 commentary on that test's problems.
2059 * blockframe.c (inside_main_func): Look for "main" in the minimal
2060 symbol table.
2061 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2062 identical.
2063
2064 2003-07-15 Andrew Cagney <cagney@redhat.com>
2065
2066 * complaints.c (struct explanation): Define.
2067 (struct complaints): Change type of "explanation" to "struct
2068 explanation".
2069 (symfile_explanations): Convert to a "struct explanation" table.
2070 (vcomplaint): Update.
2071
2072 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2073
2074 * x86-64-linux-nat.c (regmap): Removed.
2075 (supply_gregset, fill_gregset): Call
2076 x86_64_linux_(fill,supply)_gregset functions.
2077 * x86-64-linux-tdep.c (USER_*): New defines.
2078 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2079 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2080 New functions.
2081 (fetch_core_registers): Ditto.
2082 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2083 * x86-64-linux-tdep.h: New file.
2084 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2085 and core-regset.o.
2086 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2087
2088 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2089
2090 * x86-64-tdep.c (x86_64_store_return_value): Use
2091 regcache_cooked_write_part instead of regcache_cooked_write.
2092
2093 * configure.host: Add x86_64-*-freebsd*.
2094 * configure.tgt: Add x86_64-*-freebsd*.
2095 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2096 * amd64fbsd-nat.c: New file.
2097 * amd64fbsd-tdep.c: New file.
2098 * config/i386/nm-fbsd64.h: New file.
2099 * config/i386/fbsd64.mh: New file.
2100 * config/i386/fbsd64.mt: New file.
2101
2102 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2103
2104 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2105 `sc_regs_offset' and `sc_fpregs_offset'.
2106 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2107 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2108 (alpha_sigtramp_register_address): Rewrite to use new members of
2109 `struct gdbarch_tdep'.
2110 (alpha_gdbarch_init): Initialize new members of struct
2111 gdbarch_tdep'.
2112 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2113 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2114 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2115 (alphafbsd_pc_in_sigtramp): Implement.
2116 (alphafbsd_sigtramp_offset): New function.
2117 (alphafbsd_sigcontext_addr): New function.
2118 (alphafbsd_init_abi): Initialize signal trampoline related members
2119 of `struct gdbarch_tdep'.
2120 (_initialize_alphafbsd_tdep): Add prototype.
2121
2122 2003-07-11 Theodore A. Roth <troth@openavr.org>
2123
2124 * Makefile.in (install-only): Quote sed expression when generating
2125 transformed_name.
2126
2127 2003-07-11 Richard Henderson <rth@redhat.com>
2128
2129 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2130 * dwarf2-frame.c: Include complaints.h.
2131 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2132 variable initialization; return NULL on error.
2133 (decode_frame_entry): New.
2134
2135 2003-07-11 Andrew Cagney <cagney@redhat.com>
2136
2137 * frame.h (frame_address_in_block): Delete declaration.
2138 * blockframe.c (frame_address_in_block): Delete function.
2139 (get_frame_block): Use get_frame_address_in_block.
2140 (block_innermost_frame): Ditto.
2141 * stack.c (print_frame, backtrace_command_1): Ditto.
2142
2143 * frame.h (get_frame_address_in_block): Declare.
2144 (frame_unwind_address_in_block): Declare.
2145 * frame.c (frame_unwind_address_in_block): New function.
2146 (get_frame_address_in_block): New function.
2147
2148 2003-07-10 Andrew Cagney <cagney@redhat.com>
2149
2150 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2151 pre-default. Note: re-generate has no effect.
2152
2153 2003-07-10 Andrew Cagney <cagney@redhat.com>
2154
2155 * gdbarch.sh: When a variable, but not a function, compare against
2156 0. Fix problem in previous patch.
2157 * gdbarch.c: Re-generate.
2158
2159 2003-07-10 Andrew Cagney <cagney@redhat.com>
2160
2161 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2162 functions against NULL, not 0.
2163 * gdbarch.c: Re-generate.
2164
2165 2003-07-10 Fred Fish <fnf@ninemoons.com>
2166
2167 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2168 null string instead of a null pointer.
2169 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2170
2171 2003-07-09 Michael Snyder <msnyder@redhat.com>
2172
2173 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2174
2175 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2176
2177 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2178 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2179 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2180 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2181 * x86-64-tdep.c: ... from here.
2182
2183 2003-07-09 Andreas Schwab <schwab@suse.de>
2184
2185 * m68k-tdep.h (enum struct_return): Define.
2186 (struct gdbarch_tdep): Add struct_return.
2187 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2188 bytes are padded to the right, not to the left. Pass struct value
2189 address in register %a1, not on stack.
2190 (m68k_use_struct_convention): New function.
2191 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2192 struct_return in tdep to pcc_struct_return.
2193 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2194 reg_struct_return.
2195
2196 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2197
2198 * somread.c (som_symfile_offsets): Fix compilation error.
2199
2200 2003-07-09 Andrew Cagney <cagney@redhat.com>
2201
2202 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2203 Add comments about the checks.
2204
2205 2003-07-08 Andrew Cagney <cagney@redhat.com>
2206
2207 * Makefile.in: Make dependency section headers consistent.
2208 (config_h): Move to $BUILD headers section.
2209 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2210 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2211 (ada-exp.tab.c): Move to YACC/LEX section.
2212 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2213 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2214
2215 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2216
2217 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2218 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2219 of strerror with safe_strerror, use ISO C function definitions,
2220 and replace instances of sprintf with snprintf.
2221
2222 2003-07-07 Andrew Cagney <cagney@redhat.com>
2223
2224 * frame.c (get_prev_frame): Enable check for identical frames.
2225 Update comments. Update error messages.
2226
2227 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2228
2229 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2230
2231 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2232
2233 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2234 sort_symtab_syms, no longer necessary.
2235
2236 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2237
2238 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2239
2240 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2241
2242 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2243 (mips_register_byte): Likewise.
2244
2245 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2246
2247 * Makefile.in (sparc_tdep_h): New.
2248 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2249 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2250 * sparc-linux-nat.c: Include "sparc-tdep.h".
2251 * sparc-nat.c: Likewise.
2252 * sparc-tdep.c: Likewise.
2253 * sparc64nbsd-nat.c: Likewise.
2254 * sparcnbsd-nat.c: Likewise.
2255 * sparcnbsd-tdep.c: Likewise.
2256 * sparc-tdep.h: New file.
2257 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2258 and sparc_npc_regnum.
2259
2260 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2261
2262 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2263 (mips_linux_cannot_store_register): List supported instead of
2264 unsupported registers.
2265
2266 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2267
2268 * disasm.c (dump_insns): Separate instructions from addresses.
2269
2270 2003-07-07 Andreas Schwab <schwab@suse.de>
2271
2272 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2273 dependencies.
2274 * m68k-tdep.c (NUM_FREGS): Delete.
2275 (SIG_PC_FP_OFFSET): Delete.
2276 (TARGET_M68K): Delete.
2277 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2278 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2279 P_MOVEL_SP, P_MOVEML_SP): Define.
2280 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2281 P_TRAP): Delete.
2282 (m68k_register_raw_size): Delete.
2283 (m68k_register_virtual_size): Delete.
2284 (m68k_register_type): Renamed from m68k_register_virtual_type and
2285 add gdbarch argument.
2286 (m68k_store_struct_return): Delete.
2287 (m68k_deprecated_extract_return_value): Delete.
2288 (m68k_deprecated_extract_struct_value_address): Delete.
2289 (m68k_frame_chain): Delete.
2290 (m68k_frame_saved_pc): Delete.
2291 (m68k_fix_call_dummy): Delete.
2292 (m68k_push_dummy_frame): Delete.
2293 (m68k_pop_frame): Delete.
2294 (m68k_extract_return_value): New function.
2295 (m68k_store_return_value): Rewrite using regcache.
2296 (m68k_extract_struct_value_address): Rewrite using regcache.
2297 (m68k_push_dummy_call): New function.
2298 (struct m68k_frame_cache): Define.
2299 (m68k_alloc_frame_cache): New function.
2300 (m68k_analyze_frame_setup): New function.
2301 (m68k_analyze_register_saves): New function.
2302 (m68k_analyze_prologue): New function.
2303 (m68k_skip_prologue): Rewrite using above functions.
2304 (m68k_unwind_pc): New function.
2305 (m68k_frame_cache): New function.
2306 (m68k_frame_this_id): New function.
2307 (m68k_frame_prev_register): New function.
2308 (m68k_frame_unwind): New variable.
2309 (m68k_frame_p): New function.
2310 (m68k_sigtramp_frame_cache): New function.
2311 (m68k_sigtramp_frame_this_id): New function.
2312 (m68k_sigtramp_frame_prev_register): New function.
2313 (m68k_sigtramp_frame_unwind): New variable.
2314 (m68k_sigtramp_frame_p): New function.
2315 (m68k_frame_base_address): New function.
2316 (m68k_frame_base): New function.
2317 (m68k_unwind_dummy_id): New function.
2318 (fill_gregset): Use regcache_collect.
2319 (fill_fpregset): Likewise.
2320 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2321 defined.
2322 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2323 deprecated_init_frame_pc, deprecated_store_struct_return,
2324 deprecated_extract_return_value, deprecated_store_return_value,
2325 deprecated_frame_chain, deprecated_frame_saved_pc,
2326 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2327 deprecated_register_virtual_size,
2328 deprecated_max_register_raw_size,
2329 deprecated_max_register_virtual_size,
2330 deprecated_register_virtual_type, deprecated_register_size,
2331 deprecated_register_byte, deprecated_register_bytes,
2332 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2333 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2334 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2335 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2336 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2337 deprecated_push_dummy_frame, deprecated_pop_frame,
2338 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2339 only if SYSCALL_TRAP is defined. Set extract_return_value,
2340 store_return_value, extract_struct_value_address, register_type,
2341 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2342 predicates.
2343 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2344 M68K_MAX_REGISTER_SIZE): Define.
2345 (struct m68k_sigtramp_info): Define.
2346 (struct gdbarch_tdep): Add get_sigtramp_info.
2347 * m68klinux-nat.c (fetch_register): Use register_size instead of
2348 REGISTER_RAW_SIZE. Don't put assignment in if.
2349 (store_register): Likewise.
2350 (fetch_inferior_registers): Likewise.
2351 (store_inferior_registers): Likewise.
2352 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2353 (m68k_linux_frame_saved_pc): Delete.
2354 (m68k_linux_sigcontext_reg_offset,
2355 m68k_linux_ucontext_reg_offset): Define.
2356 (m68k_linux_get_sigtramp_info): New function.
2357 (m68k_linux_extract_return_value): Rewrite using regcache.
2358 (m68k_linux_store_return_value): Likewise.
2359 (m68k_linux_extract_struct_value_address): Likewise.
2360 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2361 Don't set deprecated_frame_saved_pc,
2362 deprecated_extract_return_value, deprecated_store_return_value,
2363 deprecated_extract_struct_value_address. Set
2364 extract_return_value, store_return_value,
2365 extract_struct_value_address.
2366
2367 2003-07-07 Andrew Cagney <cagney@redhat.com>
2368
2369 * expprint.c: Include "user-regs.h" instead of "frame.h".
2370 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2371 frame_map_regnum_to_name.
2372 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2373 (frame_map_name_to_regnum): Simplify, call
2374 user_reg_map_name_to_regnum.
2375 (frame_map_regnum_to_name): Simplify, call
2376 user_reg_map_regnum_to_name.
2377 (frame_register_unwind): Update.
2378 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2379 (_initialize_frame_reg): Call user_reg_add_builtin.
2380 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2381 (value_of_register): Use value_of_user_reg.
2382 * eval.c (evaluate_subexp_standard): Update.
2383 * parse.c (write_dollar_variable): Update.
2384 * d10v-tdep.c (d10v_print_registers_info): Update.
2385 * infcmd.c (registers_info): Update.
2386 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2387 (builtin_regs_h): Delete macro.
2388 (user_regs_h): Define.
2389 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2390 (builtin-regs.o): Delete target.
2391 (user-regs.o): Specify dependencies.
2392 (expprint.o): Update dependencies.
2393 (findvar.o): Update dependencies.
2394 (frame.o): Update dependencies.
2395 (std-regs.o): Update dependencies.
2396
2397 2003-07-06 Christopher Faylor <cgf@redhat.com>
2398
2399 * win32-nat.c (solib_symbols_add): Use one variable for all section
2400 address stuff. Pass variable rather than address of variable to
2401 safe_symbol_file_add.
2402
2403 2003-07-06 Andreas Schwab <schwab@suse.de>
2404
2405 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2406
2407 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2408
2409 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2410
2411 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2412
2413 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2414
2415 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2416
2417 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2418 * config/i386/nto.mh: New file.
2419 * config/i386/nm-nto.h: New file.
2420 * configure.host: Add i[3456]86-*-nto*.
2421
2422 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2423
2424 * remote-vx.c (vx_add_symbols): Fix compilation error.
2425
2426 2003-07-03 Andrew Cagney <cagney@redhat.com>
2427
2428 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2429 * gdbarch.h, gdbarch.c: Re-generate.
2430 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2431 (legacy_register_name): Declare.
2432 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2433 (REGISTER_NAME): Define.
2434 * sparc-tdep.c (legacy_register_name): New function.
2435 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2436 (REGISTER_NAME): Define.
2437 (hppa64_register_name): Declare.
2438 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2439 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2440 (hppa64_register_name): New function.
2441 (hppa_register_name): New function.
2442 * arch-utils.c (legacy_register_name): Delete.
2443 * arch-utils.h (legacy_register_name): Delete.
2444
2445 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2446
2447 * cli/cli-interp.c (cli_interpreter_resume): Update the
2448 cli_uiout's stream to gdb_stdout.
2449
2450 2003-07-03 Andrew Cagney <cagney@redhat.com>
2451
2452 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2453 predicate.
2454 * gdbarch.h, gdbarch.c: Re-generate.
2455 * regcache.c (init_regcache_descr): Use legacy code when either
2456 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2457
2458 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2459
2460 * NEWS: Move "set logging" entry into GDB 6.0 section.
2461
2462 2003-07-02 Jim Blandy <jimb@redhat.com>
2463
2464 * s390-tdep.c (struct frame_extra_info): new member:
2465 'stack_bought_valid'.
2466 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2467 initialize fextra_info->stack_bought.
2468 (s390_frameless_function_invocation): Don't trust the value of
2469 fextra_info_ptr->stack_bought unless
2470 fextra_info->stack_bought_valid is set.
2471
2472 New S390 prologue analyzer.
2473 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2474 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2475 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2476 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2477 compute_x_addr, s390_on_stack, s390_store,
2478 s390_get_signal_frame_info): New functions.
2479 (S390_NUM_SPILL_SLOTS): New macro.
2480 (s390_get_frame_info): Rewritten.
2481 (is_arg_reg): Deleted.
2482
2483 Break out the decoding of S/390 instructions into separate
2484 functions, to make it more legible, and easier to check
2485 against the spec.
2486 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2487 is_rx, is_rxe): New functions.
2488 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2489 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2490 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2491 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2492 enums for opcode values. (Is this an improvement?)
2493
2494 2003-07-02 Andrew Cagney <cagney@redhat.com>
2495
2496 * i386-tdep.c: Revert change committed as part of trad-frame code
2497 below.
2498
2499 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2500
2501 * breakpoint.c (insert_catchpoint): Make static.
2502
2503 2003-07-02 Andreas Schwab <schwab@suse.de>
2504
2505 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2506 former ia64_push_arguments and ia64_push_return_address, and use
2507 regcache functions instead of read/write_register.
2508 (ia64_gdbarch_init): Set push_dummy_call instead of
2509 deprecated_push_arguments and deprecated_push_return_address.
2510
2511 2003-07-01 Andreas Jaeger <aj@suse.de>
2512
2513 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2514 before the call.
2515 Set %rax only to number of SSE registers used.
2516
2517 2003-07-01 Andrew Cagney <cagney@redhat.com>
2518
2519 * trad-frame.h: Update comments, a -1 .addr is reserved.
2520 (trad_frame_value_p, trad_frame_addr_p): Declare.
2521 (trad_frame_reg_p): Declare.
2522 (trad_frame_set_value): Rename trad_frame_register_value.
2523 (trad_frame_set_unknown): Declare.
2524 * trad-frame.c (trad_frame_realreg_p): New function.
2525 (trad_frame_addr_p, trad_frame_value_p): New function.
2526 (trad_frame_set_unknown): New function.
2527 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2528 (trad_frame_prev_register): Use trad_frame_realreg_p,
2529 trad_frame_addr_p and trad_frame_value_p.
2530 (trad_frame_set_value): Rename trad_frame_register_value.
2531 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2532 and trad_frame_set_value.
2533
2534 2003-06-30 Jim Blandy <jimb@redhat.com>
2535
2536 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2537 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2538 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2539 for 16 registers, and then 32 more bytes.
2540 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2541 New macros.
2542 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2543 Move up in the file, since it's now used by is_simple_arg.
2544 (is_simple_arg): Don't assume registers are four bytes long.
2545 Exclude all double arguments. Extended floats are not simple
2546 args.
2547 (is_power_of_two): New function.
2548 (pass_by_copy_ref): Call is_power_of_two, and check that the
2549 length fits in a register, rather than listing all the acceptable
2550 sizes. Extended floats are not passed by reference.
2551 (s390_push_arguments): Don't assume registers are four bytes long.
2552 Reserve an argument register to point to the buffer for structures
2553 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2554 S390_STACK_FRAME_OVERHEAD.
2555
2556 2003-06-30 Andreas Schwab <schwab@suse.de>
2557
2558 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2559 format error message.
2560
2561 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2562
2563 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2564
2565 2003-06-30 David Carlton <carlton@kealia.com>
2566
2567 Band-aid for PR c++/1245.
2568 * Makefile.in (cp-support.o): Depend on complaints_h.
2569 * cp-support.c: Include complaints.h. Add declaration for
2570 find_last_component.
2571 (cp_find_first_component): Separate code into
2572 cp_find_first_component_aux.
2573 (cp_find_first_component_aux): Call demangled_name_complaint.
2574 (demangled_name_complaint): New.
2575
2576 2003-06-30 Andrew Cagney <cagney@redhat.com>
2577
2578 * remote.c (remote_write_bytes): Explicitly compute and then use
2579 the payload size. Update comments to reflect. Fixes problem of
2580 GDB not sending small packets as found by Fred Fish.
2581
2582 2003-06-30 Andrew Cagney <cagney@redhat.com>
2583
2584 * remote.c (remote_async_wait): Fix -Wformat problem.
2585
2586 2003-06-29 Andrew Cagney <cagney@redhat.com>
2587
2588 * remote.c (remote_wait): Call error, and not warning, when the
2589 packet is corrupt.
2590 (remote_async_wait): Ditto.
2591
2592 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2593
2594 * sparc-tdep.c (sparc_y_regnum): Make external again.
2595
2596 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2597
2598 * cli/cli-logging.c (pop_output_files): Add void to function
2599 definition.
2600
2601 2003-06-29 Andrew Cagney <cagney@redhat.com>
2602
2603 * frame.c (frame_register_unwind): Use unsigned char when dumping
2604 the buffer contents.
2605
2606 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2607
2608 * cli/cli-logging.c: New file.
2609 * cli-out.c (struct ui_out_data): Add original_stream.
2610 (cli_redirect): New function.
2611 (cli_ui_out_impl): Add cli_redirect.
2612 (cli_out_new): Initialize original_stream.
2613 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2614 (uo_redirect, ui_out_redirect): New.
2615 * ui-out.h (struct ui_out_impl): Add redirect member.
2616 (redirect_ftype): New.
2617 (ui_out_redirect): Add prototype.
2618 * Makefile.in: Add rules for cli-logging.c.
2619 * NEWS: Mention "set logging".
2620
2621 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2622
2623 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2624
2625 2003-06-27 Andrew Cagney <cagney@redhat.com>
2626
2627 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2628 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2629 * avr-tdep.c (avr_call_dummy_address): Delete function.
2630 (avr_gdbarch_init): Do not set call_dummy_address.
2631
2632 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2633
2634 * symfile.c (syms_from_objfile): Move variables to inner block.
2635 Move the checks for the non-mainline case a bit earlier to avoid
2636 doing some useless computations.
2637
2638 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2639
2640 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2641
2642 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2643
2644 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2645 sections.
2646
2647 2003-06-26 Michael Chastain <mec@shout.net>
2648
2649 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2650 gdb/testsuite/gdb.c++/pr-1210.exp.
2651
2652 2003-06-26 Andrew Cagney <cagney@redhat.com>
2653
2654 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2655 altivec_expression.h and altivec_registers.h.
2656
2657 2003-06-26 Andrew Cagney <cagney@redhat.com>
2658
2659 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2660 info->mach when MIPS16. Patch suggested by Fred Fish.
2661
2662 2003-06-26 Andrew Cagney <cagney@redhat.com>
2663
2664 * utils.c (internal_vproblem): Print the problem to a reason
2665 buffer and then pass to query. Make the msg variable more local.
2666
2667 2003-06-26 Andrew Cagney <cagney@redhat.com>
2668
2669 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2670 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2671 * gdbarch.h, gdbarch.c: Re-generate.
2672 * frame-base.c (default_frame_args_address): Update. Use
2673 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2674 not available.
2675 (default_frame_locals_address): Ditto for
2676 DEPRECATED_FRAME_LOCALS_ADDRESS.
2677 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2678 (vax_frame_num_args): Update.
2679 (vax_gdbarch_init): Update.
2680 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2681 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2682 * mcore-tdep.c (mcore_gdbarch_init): Update.
2683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2684 * ia64-tdep.c (ia64_gdbarch_init): Update.
2685 * symtab.h (address_class): Update comments.
2686 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2687 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2688 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2689 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2690 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2691 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2692 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2693 * alpha-mdebug-tdep.c: Update.
2694 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2695
2696 2003-06-26 Andreas Jaeger <aj@suse.de>
2697
2698 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2699 of SSE registers so that varargs functions work. Rework handling
2700 of passing arguments on the stack.
2701 (x86_64_store_return_value): Return double and float values in SSE
2702 register.
2703
2704 2003-06-24 Michael Chastain <mec@shout.net>
2705
2706 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2707 the "constructor breakpoints ignored" bug.
2708
2709 2003-06-25 David Carlton <carlton@kealia.com>
2710
2711 * MAINTAINERS: Update e-mail address.
2712
2713 2003-06-24 Jim Blandy <jimb@redhat.com>
2714
2715 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2716
2717 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2718 function.
2719 (ppc_linux_init_abi): Register it as the
2720 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2721
2722 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2723 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2724 method.
2725
2726 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2727 (ppc64_standard_linkage_target): Use it.
2728
2729 2003-06-23 Andrew Cagney <cagney@redhat.com>
2730
2731 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2732 for 0 "int0" and 4 "int32" sized registers.
2733 * gdbtypes.c (builtin_type_int0): Define.
2734 (build_gdbtypes): Initialize builtin_type_int0.
2735 * gdbtypes.h (builtin_type_int0): Declare.
2736
2737 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2738
2739 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2740 as characters are unsigned.
2741
2742 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2743
2744 PR gdb/1179
2745 * dwarfread.c (struct_type): Skip static fields without crashing.
2746
2747 2003-06-22 Andrew Cagney <cagney@redhat.com>
2748
2749 GDB 6.0 branch created.
2750 * README: Update.
2751 * PROBLEMS: Update. Empty.
2752 * NEWS: Update.
2753
2754 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2755
2756 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2757 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2758
2759 2003-06-22 Andrew Cagney <cagney@redhat.com>
2760
2761 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2762 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2763 Velikov.
2764
2765 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
2766
2767 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2768 compilers.
2769
2770 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2771
2772 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2773 argument of val_print.
2774 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2775 to the address argument of baseclass_offset or target_read_memory.
2776 Do add it to the argument of cp_print_value_fields.
2777
2778 2003-06-21 Andrew Cagney <cagney@redhat.com>
2779
2780 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2781 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2782 instead of 0..NUM_REGS.
2783 (mips_register_reggroup_p): New function.
2784 (mips_pseudo_register_write): New function.
2785 (mips_pseudo_register_read): New function.
2786 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2787 based on the register's type.
2788 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2789 cooked.
2790 (mips_get_saved_register): Simplify. Assert that REGNO is a
2791 pseudo / cooked.
2792 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2793 (mips_register_type): Replace mips_register_virtual_type. Map
2794 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2795 when available.
2796 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2797 that the register is cooked / virtual.
2798 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2799 Only get the extra info when needed.
2800 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2801 (mips32_heuristic_proc_desc): Fetch the cooked register.
2802 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2803 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2804 (mips_print_register): Use gdbarch_register_type, instead of
2805 REGISTER_VIRTUAL_TYPE.
2806 (print_gp_register_row): Use gdbarch_register_type, instead of
2807 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2808 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2809 Print the pseudo / cooked registers.
2810 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2811 Print the pseudo / cooked registers.
2812 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2813 REG_NUM is pseudo / cooked.
2814 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2815 (mips_n32n64_xfer_return_value): Ditto.
2816 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2817 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2818 (mips_register_sim_regno): New function.
2819 (mips_gdbarch_init): Set deprecated_register_byte,
2820 register_group_p, pseudo_register_write, pseudo_register_read,
2821 register_sim_regno, and num_pseudo_regs. Set register_type,
2822 instead of register_virtual_type.
2823 * Makefile.in (mips-tdep.o): Update dependencies.
2824 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2825 REGISTER_VIRTUAL_TYPE.
2826 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2827 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2828 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2829 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2830 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2831
2832 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
2833
2834 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2835 * cli/cli-cmds.c: Include "gdb_vfork.h".
2836 (shell_escape): Use vfork.
2837
2838 2003-06-21 Andrew Cagney <cagney@redhat.com>
2839
2840 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2841 32 bit floating-point register saves.
2842
2843 * frame.h (deprecated_unwind_get_saved_register): Delete.
2844 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2845 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2846 and deprecated_get_next_frame_hack instead of
2847 deprecated_unwind_get_saved_register.
2848
2849 * mips-tdep.c (mips_dump_tdep): Do not print
2850 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2851
2852 * frame.c (get_frame_register): New function.
2853 (frame_unwind_register_signed): New function.
2854 (get_frame_register_signed): New function.
2855 (frame_unwind_register_unsigned): New function.
2856 (get_frame_register_unsigned): New function.
2857 * frame.h: Add comments on naming schema.
2858 (get_frame_register, frame_unwind_register_signed): Declare.
2859 (get_frame_register_signed, get_frame_register_signed): Declare.
2860 (frame_unwind_register_unsigned): Declare.
2861 (get_frame_register_unsigned): Declare.
2862
2863 2003-06-20 Theodore A. Roth <troth@openavr.org>
2864
2865 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2866
2867 2003-06-20 Theodore A. Roth <troth@openavr.org>
2868
2869 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2870 (avr_read_sp): Ditto.
2871
2872 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
2873
2874 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2875 * config/arm/nm-linux.h: Likewise.
2876 * config/arm/tm-linux.h: Likewise.
2877 * config/ia64/nm-linux.h: Likewise.
2878 * config/ia64/tm-ia64.h: Likewise.
2879 * config/s390/tm-linux.h: Likewise.
2880 * config/s390/tm-s390.h: Likewise.
2881 * s390-nat.c: Likewise.
2882 * s390-tdep.c: Likewise.
2883
2884 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2885 * config/ia64/linux.mt: Likewise.
2886 * config/m68k/linux.mh: Likewise.
2887 * config/mips/linux.mt: Likewise.
2888 * config/powerpc/linux.mh: Likewise.
2889 * config/sh/linux.mt: Likewise.
2890
2891 2003-06-19 Kris Warkentin <kewarken@qnx.com>
2892
2893 * solib.c (solib_open): Change tests for whether to search
2894 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2895 comments.
2896
2897 2003-06-19 Theodore A. Roth <troth@openavr.org>
2898
2899 * avr-tdep.c (avr_frame_address): Delete function.
2900 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2901 set_gdbarch_frame_args_address.
2902
2903 2003-06-19 Andrew Cagney <cagney@redhat.com>
2904
2905 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2906 (REGISTER_CONVERT_FROM_TYPE): Delete.
2907 (mips_register_convert_to_type): Delete declaration.
2908 (mips_register_convert_from_type): Delete declaration.
2909 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2910 kernel/.
2911
2912 2003-06-19 Michael Snyder <msnyder@redhat.com>
2913
2914 * linux-nat.h: New file.
2915 * linux-nat.c: Include linux-nat.h.
2916 * lin-lwp.c: Include linux-nat.h.
2917 Move struct lwp_info def to linux-nat.h.
2918 * linux-proc.c: Include linux-nat.h.
2919 (linux_make_note_section): Iterate over lwps instead of threads.
2920 (linux_do_thread_registers): Use lwp instead of merged pid.
2921 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
2922 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
2923 Add dependency on linux_nat_h.
2924
2925 2003-06-19 Theodore A. Roth <troth@openavr.org>
2926
2927 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2928
2929 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2930
2931 * varobj.c (get_type, get_target_type): Use check_typedef.
2932
2933 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2934
2935 * breakpoint.c (insert_catchpoint): Call internal_error.
2936
2937 2003-06-19 Theodore A. Roth <troth@openavr.org>
2938
2939 * avr-tdep.c (avr_push_dummy_code): Delete function.
2940 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2941
2942 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
2943
2944 * arch-utils.c (default_prepare_to_proceed): Remove.
2945 (generic_prepare_to_proceed): Remove.
2946 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2947 (generic_prepare_to_proceed): Remove prototype.
2948 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2949 * gdbarch.c: Regenerate.
2950 * gdbarch.h: Regenerate.
2951 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2952 * hppah-nat.c (hppa_switched_threads): Remove.
2953 * infrun.c (prepare_to_proceed): New static function, copied from
2954 generic_prepare_to_proceed. Remove select_it argument.
2955 (proceed): Call prepare_to_proceed.
2956 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2957 variables.
2958 (ptrace_wait): Don't set the removed variables.
2959 (hppa_switched_threads): Remove.
2960 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2961 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2962 (lin_lwp_prepare_to_proceed): Remove prototype.
2963 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2964 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2965
2966 2003-06-18 Theodore A. Roth <troth@openavr.org>
2967
2968 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2969 trad-frame.h.
2970 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2971 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2972 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2973 (AVR_PROLOGUE_*): Enumerate prologue types.
2974 (struct frame_extra_info): Remove.
2975 (struct avr_unwind_cache): Define.
2976 (avr_write_sp): Delete function.
2977 (avr_read_fp): Ditto.
2978 (avr_init_extra_frame_info): Ditto.
2979 (avr_pop_frame): Ditto.
2980 (avr_frame_saved_pc): Ditto.
2981 (avr_saved_pc_after_call): Ditto.
2982 (avr_push_return_address): Ditto.
2983 (avr_frame_chain): Ditto.
2984 (avr_store_struct_return): Ditto.
2985 (avr_push_arguments): Ditto.
2986 (avr_scan_prologue): Update comments. Changed to set up the info for
2987 cache unwinding. Now returns end of prologue PC.
2988 (avr_skip_prologue): Better handling of functions lacking a prologue
2989 by using avr_scan_prologue.
2990 (avr_scan_arg_moves): New function.
2991 (avr_saved_regs_unwinder): Ditto.
2992 (avr_frame_unwind_cache): Ditto.
2993 (avr_unwind_pc): Ditto.
2994 (avr_frame_this_id): Ditto.
2995 (avr_frame_prev_register): Ditto.
2996 (avr_frame_p): Ditto.
2997 (avr_frame_base_address ): Ditto.
2998 (avr_unwind_dummy_id): Ditto.
2999 (avr_push_dummy_code): Ditto.
3000 (push_stack_item): Ditto.
3001 (pop_stack_item): Ditto.
3002 (avr_push_dummy_call): Ditto.
3003 (struct stack_item): Define.
3004 (avr_frame_unwind): Declare structure.
3005 (avr_frame_base): Ditto.
3006 (avr_gdbarch_init): Remove calls to
3007 set_gdbarch_deprecated_init_frame_pc,
3008 set_gdbarch_deprecated_target_read_fp,
3009 set_gdbarch_deprecated_dummy_write_sp,
3010 set_gdbarch_deprecated_fp_regnum,
3011 set_gdbarch_deprecated_push_arguments,
3012 set_gdbarch_deprecated_push_return_address,
3013 set_gdbarch_deprecated_pop_frame,
3014 set_gdbarch_deprecated_store_struct_return,
3015 set_gdbarch_deprecated_frame_init_saved_regs,
3016 set_gdbarch_deprecated_init_extra_frame_info,
3017 set_gdbarch_deprecated_frame_chain,
3018 set_gdbarch_deprecated_frame_saved_pc,
3019 set_gdbarch_deprecated_saved_pc_after_call.
3020 Add calls to set_gdbarch_push_dummy_call,
3021 set_gdbarch_push_dummy_code,
3022 frame_unwind_append_predicate,
3023 frame_base_set_default,
3024 set_gdbarch_unwind_dummy_id,
3025 set_gdbarch_unwind_pc.
3026 Wrap a long line.
3027
3028 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3029
3030 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3031 registers for H8/300S.
3032 (h8300_print_registers_info): Ditto.
3033 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3034
3035 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3036
3037 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3038 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3039 (lin_lwp_wait): Likewise. Update comments.
3040 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3041 (pull_pid_from_list, linux_record_stopped_pid): New.
3042
3043 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3044
3045 * ada-lang.c (scan_discrim_bound): Name first argument.
3046 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3047 declared by ALL_BLOCK_SYMBOLS.
3048
3049 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3050
3051 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3052 ("regcache.h"): Include it.
3053 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3054
3055 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3056
3057 * NEWS: Mention gdbserver detach change and "disconnect" command.
3058 * infcmd.c (disconnect_command): New function.
3059 (_initialize_infcmd): Add ``disconnect'' command.
3060 * remote.c (remote_async_detach): Delete.
3061 (remote_detach): Merge remote_async_detach.
3062 (remote_disconnect): New.
3063 (init_remote_ops): Set to_disconnect.
3064 (init_remote_cisco_ops): Likewise.
3065 (init_remote_async_ops): Likewise. Use remote_detach.
3066 * target.c (cleanup_target): Default to_disconnect.
3067 (update_current_target): Inherit to_disconnect.
3068 (target_disconnect, debug_to_disconnect): New functions.
3069 (setup_target_debug): Set to_disconnect.
3070 * target.h (struct target_ops): Add to_disconnect.
3071 (target_disconnect): Add prototype.
3072
3073 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3074
3075 * breakpoint.c (insert_catchpoint): New function.
3076 (insert_breakpoints): Use catch_exceptions to call
3077 insert_catchpoint. Disable catchpoints if they fail to insert.
3078
3079 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3080
3081 * symfile.c (reread_symbols): Clear sym_private.
3082
3083 2003-06-17 Andrew Cagney <cagney@redhat.com>
3084
3085 * trad-frame.h (struct frame_info): Add opaque declaration.
3086 * remote-fileio.h (struct cmd_list_element): Add opaque
3087 declaration.
3088 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3089 comments.
3090
3091 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3092
3093 * remote.c (remote_prepare_to_store): Replace call to
3094 deprecated_read_register_bytes with multiple regcache_raw_read
3095 calls.
3096
3097 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3098
3099 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3100 (nto_find_and_open_solib): Likewise.
3101 (nto_init_solib_absolute_prefix): Likewise.
3102 (_initialize_nto_tdep): Fix indentation.
3103
3104 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3105
3106 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3107
3108 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3109
3110 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3111
3112 2003-06-17 Jim Blandy <jimb@redhat.com>
3113
3114 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3115
3116 2003-06-16 Theodore A. Roth <troth@openavr.org>
3117
3118 * avr-tdep.c (avr_extract_return_value): New function.
3119 (avr_gdbarch_init): Set extract_return_value method.
3120
3121 2003-06-16 Andrew Cagney <cagney@redhat.com>
3122
3123 * frame.h (deprecated_get_next_frame_hack): Declare.
3124 * frame.c (legacy_saved_regs_prev_register): Only require
3125 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3126 there are always saved regs.
3127 (deprecated_generic_get_saved_register): Do not require
3128 DEPRECATED_FRAME_INIT_SAVED_REGS.
3129 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3130 use frame ID unwind instead.
3131 (deprecated_get_next_frame_hack): New function.
3132
3133 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3134
3135 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3136 (h8300_push_dummy_call): ...this function. Some minor optimization.
3137 (h8300_push_return_address): Remove.
3138 (h8300_gdbarch_init): Remove calls to
3139 set_gdbarch_deprecated_dummy_write_sp,
3140 set_gdbarch_deprecated_push_arguments and
3141 set_gdbarch_deprecated_push_return_address.
3142 Add call to set_gdbarch_push_dummy_call.
3143
3144 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3145
3146 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3147 (E_PSEUDO_EXR_REGNUM): Ditto.
3148 (h8300_is_argument_spill): Check for instructions moving argument
3149 registers into safe registers.
3150 (h8300_skip_prologue): Check for stm instruction to push registers
3151 used for register variables onto stack.
3152 (gdb_print_insn_h8300): Remove.
3153 (h8300_examine_prologue): Add a comment.
3154 (h8300_register_name): Take pseudo registers into account.
3155 (h8300s_register_name): Ditto.
3156 (h8300sx_register_name): Ditto.
3157 (h8300_print_register): Ditto.
3158 (h8300_print_registers_info): Define "nice" printing order.
3159 (h8300_saved_pc_after_call): Take pseudo registers into account.
3160 (h8300_register_type): Ditto. Return type used for remote connection
3161 when requesting real CCR or EXR register, return actual type when
3162 requesting pseudo CCR or EXR.
3163 (h8300_pseudo_register_read): New function.
3164 (h8300_pseudo_register_write): Ditto.
3165 (h8300_dbg_reg_to_regnum): Ditto.
3166 (h8300s_dbg_reg_to_regnum): Ditto.
3167 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3168 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3169 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3170 set_gdbarch_print_insn architecture dependent.
3171 Call set_gdbarch_pseudo_register_read and
3172 set_gdbarch_pseudo_register_write.
3173 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3174
3175 2003-06-16 Andrew Cagney <cagney@redhat.com>
3176
3177 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3178 * gdbarch.h, gdbarch.c: Re-generate.
3179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3180 * s390-tdep.c (s390_gdbarch_init): Update.
3181 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3182 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3183 * mips-tdep.c (mips_gdbarch_init): Update.
3184 * mcore-tdep.c (mcore_gdbarch_init): Update.
3185 * cris-tdep.c (cris_gdbarch_init): Update.
3186 * infcall.c (call_function_by_hand): Update.
3187 * ia64-tdep.c (ia64_push_arguments): Update comment.
3188 * frame.c (legacy_get_prev_frame): Do not assume
3189 SAVE_DUMMY_FRAME_TOS_P.
3190 * dummy-frame.c (find_dummy_frame): Update comment.
3191
3192 2003-06-16 Andrew Cagney <cagney@redhat.com>
3193
3194 * regcache.c (do_cooked_read): Do not use register_valid_p.
3195
3196 2003-06-15 Theodore A. Roth <troth@openavr.org>
3197
3198 * avr-tdep.c (avr_register_type): Remove a blank line.
3199 (avr_scan_prologue): Correct some comments.
3200
3201 2003-06-15 Theodore A. Roth <troth@openavr.org>
3202
3203 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3204 prologue types.
3205 Properly scan prologues generated by gcc with the -mcall-prologues
3206 option.
3207 Add code to scan -mcall-prologues for mega devices.
3208
3209 2003-06-15 Theodore A. Roth <troth@openavr.org>
3210
3211 * avr-tdep.c (avr_register_byte): Delete function.
3212 (avr_register_raw_size): Delete function.
3213 (avr_register_virtual_size): Delete function.
3214 (avr_register_virtual_type): Delete function.
3215 (avr_register_type): New function.
3216 (avr_address_to_pointer): Remove unused code.
3217 (avr_read_fp): Need to read FP as two separate bytes due to change to
3218 avr_register_type() usage.
3219 (avr_gdbarch_init): Don't set deprecated_register_size.
3220 Don't set deprecated_register_bytes.
3221 Don't set deprecated_register_byte.
3222 Don't set deprecated_register_raw_size.
3223 Don't set deprecated_max_register_raw_size.
3224 Don't set deprecated_register_virtual_size.
3225 Don't set deprecated_max_register_virtual_size.
3226 Don't set deprecated_register_virtual_type.
3227 Set register_type method.
3228
3229 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3230
3231 * Makefile.in (linux-nat.o): Add rule.
3232 * linux-nat.c: New file.
3233 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3234 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3235 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3236 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3237 * config/arm/linux.mh (NATDEPFILES): Likewise.
3238 * config/i386/linux.mh (NATDEPFILES): Likewise.
3239 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3240 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3241 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3242 * config/mips/linux.mh (NATDEPFILES): Likewise.
3243 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3244 * config/s390/s390.mh (NATDEPFILES): Likewise.
3245 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3246
3247 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3248
3249 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3250 replace out-of-date comment.
3251
3252 2003-06-15 Andrew Cagney <cagney@redhat.com>
3253
3254 * rdi-share/host.h (Fail): Change to a varargs function.
3255 * remote-rdi.c (Fail): Update.
3256
3257 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3258
3259 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3260 (i386_convert_register_p, i386_register_to_value,
3261 i386_register_from_value): Handle types longer than 8 bytes.
3262
3263 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3264
3265 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3266 Move floating-point code to new function in i387-tdep.c.
3267 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3268 New functions containing code moved here from i386-tdep.c.
3269 * i387-tdep.h: Add opaque declaration for `struct type'.
3270 (i387_register_to_value, i387_value_to_register): New prototypes.
3271 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3272 (x86_64_init_abi): Set convert_register_p, register_to_value and
3273 value_to_register here.
3274
3275 2003-06-14 Andrew Cagney <cagney@redhat.com>
3276
3277 * mips-tdep.c (mips_register_to_value): Make static.
3278 (mips_value_to_register): Make static.
3279 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3280 * ia64-tdep.c (ia64_register_raw_size): Make static.
3281 (ia64_register_virtual_size): Make static.
3282 (ia64_register_byte): Make static.
3283 * i387-tdep.c: Include "i387-tdep.h".
3284 (print_387_control_word): Delete function.
3285 (print_387_status_word): Delete function.
3286 (print_387_status_bits): Delete function.
3287 (print_387_control_bits): Delete function.
3288 * Makefile.in (i387-tdep.o): Update dependencies.
3289 * rdi-share/host.h (Fail): Declare.
3290 * remote-rdi.c (Fail): Update to match declaration.
3291
3292 2003-06-14 Andrew Cagney <cagney@redhat.com>
3293
3294 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3295 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3296 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3297 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3298 * README: Delete reference to remote-array.
3299 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3300 (remote-array.o): Delete target.
3301 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3302 * remote-array.c: Delete file.
3303
3304 2003-06-14 Andrew Cagney <cagney@redhat.com>
3305 Mark Kettenis <kettenis@gnu.org>
3306
3307 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3308 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3309 parameter with "frame".
3310 * gdbarch.h, gdbarch.c: Re-generate.
3311 * frame.h (put_frame_register): Declare.
3312 * frame.c (put_frame_register): New function.
3313 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3314 (legacy_register_to_value): Rewrite, use "frame" to get the
3315 register value.
3316 (legacy_value_to_register): Rewrite, use "frame" to find the
3317 register's location before storing.
3318 * arch-utils.h (legacy_convert_register_p): Update.
3319 (legacy_register_to_value, legacy_value_to_register): Update.
3320 * findvar.c (value_from_register): Rewrite, eliminate use of
3321 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3322 "frame" to REGISTER_TO_VALUE.
3323 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3324 lval_reg_frame_relative + lval_register branch of the switch. Do
3325 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3326 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3327 I386_EDI_REGNUM): New defines.
3328 (i386_next_regnum, i386_convert_register_p,
3329 i386_register_to_value, i386_value_to_register): New functions.
3330 (i386_register_convertible, i386_register_convert_to_virtual,
3331 i386_convert_to_raw): Remove functions.
3332 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3333 value_to_register instead of register_convertible,
3334 register_convert_to_virtual and register_convert_to_raw.
3335 * mips-tdep.c (mips_convert_register_p): New function.
3336 (mips_value_to_register): Replace mips_register_convert_from_type.
3337 (mips_register_to_value): Replace mips_register_convert_to_type.
3338 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3339 register_to_value.
3340 * alpha-tdep.c (alpha_convert_register_p): Update.
3341 (alpha_value_to_register): Update, store the register.
3342 (alpha_register_to_value): Update, fetch the register.
3343
3344 2003-06-14 Theodore A. Roth <troth@openavr.org>
3345
3346 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3347 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3348 Don't set deprecated_call_dummy_words.
3349 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3350 Don't set remote_translate_xfer_address.
3351 (avr_io_reg_read_command): Remove commented out debug printf.
3352 Wrap a long line.
3353
3354 2003-06-14 Theodore A. Roth <troth@openavr.org>
3355
3356 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3357 causes gdb to seg fault.
3358
3359 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3360
3361 * sparc-nat.c (fetch_inferior_registers): Correct
3362 a reference to "registers".
3363
3364 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3365
3366 * Makefile.in (exc_request_U_h): Define
3367 (exc_request_S_h): Likewise.
3368 (msg_reply_S_h): Likewise.
3369 (msg_U_h): Likewise.
3370 (notify_S_h): Likewise.
3371 (process_reply_S_h): Likewise.
3372 (gnu-nat.o): Depend on gdb_obstack_h
3373 * gnu-nat.c: Include "gdb_obstack.h".
3374
3375 2003-06-13 Andrew Cagney <cagney@redhat.com>
3376
3377 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3378 * gdbarch.h, gdbarch.c: Re-generate.
3379
3380 2003-06-13 Andrew Cagney <cagney@redhat.com>
3381
3382 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3383 when deprecated REGISTER macros can be deleted.
3384 * gdbarch.h, gdbarch.c: Re-generate.
3385
3386 2003-06-13 Jim Blandy <jimb@redhat.com>
3387
3388 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3389 Linux entry point symbols for _dl_debug_state, too.
3390
3391 2003-06-13 Andrew Cagney <cagney@redhat.com>
3392
3393 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3394 available, do not use the FP register, and always save the TOS.
3395 * dummy-frame.c (dummy_frame_this_id): Do not assert
3396 SAVE_DUMMY_FRAME_TOS.
3397 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3398 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3399 (i386_push_dummy_call): Add 8 to the returned SP.
3400 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3401 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3402 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3403 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3404 (x86_64_push_dummy_call): Return "sp + 16".
3405 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3406 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3407 save_dummy_frame_tos.
3408
3409 2003-06-13 Jim Blandy <jimb@redhat.com>
3410
3411 * frv-tdep.c (frv_use_struct_convention): Delete static
3412 declaration for function deleted in my change of 2003-06-12.
3413
3414 2003-06-13 Theodore A. Roth <troth@openavr.org>
3415
3416 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3417 (avr_pointer_to_address): Shift code addrs left 1 bit.
3418 (avr_convert_from_func_ptr_addr): Delete function since operation is
3419 better handled by avr_address_to_pointer and avr_pointer_to_address.
3420 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3421
3422 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3423
3424 From Kelley Cook <kelleycook@wideopenwest.com>:
3425 * configure.host: Accept i[34567]86 variants.
3426 * configure.tgt: Likewise.
3427 * nlm/configure.in: Likewise.
3428 * nlm/configure: Regenerated.
3429
3430 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3431
3432 * arm-tdep.c (solib-svr4.h): Dont' include it.
3433 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3434 * arm-linux-tdep.c: ... here. Make static.
3435 (arm_linux_init_abi): Register it.
3436 (solib-svr4.h): Include it.
3437 * Makefile.in: Update dependencies.
3438 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3439 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3440
3441 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3442
3443 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3444 indicate registers used for return values.
3445 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3446 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3447 members.
3448 (h8300_init_extra_frame_info): Ditto.
3449 (h8300_frame_locals_address): Removed.
3450 (h8300_frame_args_address): Removed.
3451 (h8300_extract_return_value): Use new regcache structure. Only care
3452 for 16 bit CPUs.
3453 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3454 (h8300_store_return_value): Use new regcache structure. Only care
3455 for 16 bit CPUs.
3456 (h8300h_store_return_value): Same function for 32 bit CPUs.
3457 (h8300_store_struct_return): Removed.
3458 (h8300_extract_struct_value_address): Use new regcache structure.
3459 (h8300h_extract_struct_value_address): Removed.
3460 (h8300_push_dummy_code): New function.
3461 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3462 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3463 set_gdbarch_store_return_value architecture dependent.
3464 Call set_gdbarch_push_dummy_code and
3465 set_gdbarch_extract_struct_value_address.
3466 Remove calls to set_gdbarch_frame_args_address,
3467 set_gdbarch_frame_locals_address,
3468 set_gdbarch_deprecated_store_struct_return,
3469 set_gdbarch_deprecated_extract_return_value,
3470 set_gdbarch_deprecated_extract_struct_value_address,
3471 set_gdbarch_deprecated_call_dummy_words and
3472 set_gdbarch_deprecated_sizeof_call_dummy_words.
3473
3474 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3475
3476 * h8300-tdep.c (h8300_register_byte): Remove.
3477 (h8300h_register_byte): Remove.
3478 (h8300_register_virtual_type): Remove. Substitute by...
3479 (h8300_register_type): New function.
3480 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3481 (h8300h_extract_struct_value_address): Ditto.
3482 (h8300_gdbarch_init): Drop calls to
3483 set_gdbarch_deprecated_register_byte and
3484 set_gdbarch_deprecated_register_virtual_type.
3485 Add call to set_gdbarch_register_type.
3486
3487 2003-06-13 Andrew Cagney <cagney@redhat.com>
3488
3489 * gdbarch.sh: Update comments on registers.
3490 (deprecated_register_byte): Rename register_byte.
3491 (deprecated_register_raw_size): Rename register_raw_size.
3492 (deprecated_register_virtual_size): Rename register_virtual_size.
3493 (deprecated_register_virtual_type): Rename register_virtual_type.
3494 * gdbarch.h, gdbarch.c: Re-generate.
3495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3496 * vax-tdep.c (vax_gdbarch_init): Update.
3497 * v850-tdep.c (v850_gdbarch_init): Update.
3498 * sparc-tdep.c (sparc_gdbarch_init): Update.
3499 * sh-tdep.c (sh_gdbarch_init): Update.
3500 * s390-tdep.c (s390_gdbarch_init): Update.
3501 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3502 * ns32k-tdep.c: Update.
3503 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3504 * mips-tdep.c (mips_gdbarch_init): Update.
3505 * mcore-tdep.c (mcore_gdbarch_init): Update.
3506 * m68k-tdep.c (m68k_gdbarch_init): Update.
3507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3508 * ia64-tdep.c (ia64_gdbarch_init): Update.
3509 * hppa-tdep.c (hppa_gdbarch_init): Update.
3510 * h8300-tdep.c (h8300_gdbarch_init): Update.
3511 * frv-tdep.c (frv_gdbarch_init): Update.
3512 * cris-tdep.c (cris_gdbarch_init): Update.
3513 * avr-tdep.c (avr_gdbarch_init): Update.
3514 * alpha-tdep.c (alpha_gdbarch_init): Update.
3515 * arm-tdep.c (arm_gdbarch_init): Update.
3516
3517 2003-06-13 Andrew Cagney <cagney@redhat.com>
3518
3519 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3520 mips_o32_use_struct_convention with always_use_struct_convention.
3521
3522 2003-06-12 David Carlton <carlton@kealia.com>
3523
3524 * cp-namespace.c (cp_set_block_scope): Comment out
3525 processing_has_namespace_info branch.
3526
3527 2003-06-12 Jim Blandy <jimb@redhat.com>
3528
3529 Recognize and skip 64-bit PowerPC Linux linkage functions.
3530 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3531 insn_pattern, insns_match_pattern, d_field, ds_field): New
3532 functions, macros, and types for working with PPC instructions.
3533 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3534 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3535 ppc64_skip_trampoline_code): New functions, variables, and macros
3536 for recognizing and skipping linkage functions.
3537 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3538 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3539
3540 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3541 register offsets for both the 32- and 64-bit interfaces.
3542
3543 Actually finish the job started by my change of 2003-05-29.
3544 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3545 other #definition of this.
3546 (ppc_linux_skip_trampoline_code): Remove declaration.
3547 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3548 static.
3549 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3550 method for GDBARCH.
3551
3552 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3553 'long' on ppc64-*-linux*.
3554
3555 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3556 isn't #defined, assume the register doesn't exist: act as if
3557 tdep->ppc_mq_regnum were -1.
3558
3559 * configure.host, configure.tgt: Add entries for
3560 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3561 powerpc/linux.mt.
3562 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3563 New files.
3564
3565 * arch-utils.c (always_use_struct_convention): New function.
3566 * arch-utils.h (always_use_struct_convention): New prototype.
3567 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3568 (alpha_gdbarch_init): Register always_use_struct_convention,
3569 instead of alpha_use_struct_convention.
3570 * cris-tdep.c (cris_use_struct_convention): Delete.
3571 (cris_gdbarch_init): Register always_use_struct_convention,
3572 instead of cris_use_struct_convention.
3573 * frv-tdep.c (frv_use_struct_convention): Delete.
3574 (frv_gdbarch_init): Register always_use_struct_convention,
3575 instead of frv_use_struct_convention.
3576 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3577 (h8300_gdbarch_init): Register always_use_struct_convention,
3578 instead of h8300_use_struct_convention.
3579 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3580 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3581 instead of mips_o32_use_struct_convention.
3582
3583 2003-06-12 Andrew Cagney <cagney@redhat.com>
3584
3585 * wince.c: Include "mips-tdep.h".
3586 * mips-tdep.h (mips_next_pc): Declare.
3587 * mcore-tdep.c: Make more local functions static.
3588 * Makefile.in (wince.o): Update dependencies.
3589
3590 2003-06-12 David Carlton <carlton@kealia.com>
3591
3592 * symtab.c (lookup_symbol_aux_minsyms): Replace
3593 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3594 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3595 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3596 SYMBOL_NATURAL_NAME.
3597
3598 2003-06-12 Andreas Schwab <schwab@suse.de>
3599
3600 * Makefile.in (tuiDisassem.o): Update dependencies.
3601
3602 2003-06-12 David Carlton <carlton@bactrian.org>
3603
3604 * symtab.h: Delete declaration of make_symbol_overload_list.
3605 Add declaration of lookup_partial_symbol.
3606 * symtab.c (remove_params): Move to cp-support.c.
3607 (overload_list_add_symbol, make_symbol_overload_list)
3608 (sym_return_val_size, sym_return_val_index): Ditto.
3609 (lookup_partial_symbol): Make extern.
3610 * cp-support.h: Add declaration of make_symbol_overload_list.
3611 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3612 symtab.h, and block.h.
3613 (remove_params): Move here from symtab.c.
3614 (overload_list_add_symbol, make_symbol_overload_list)
3615 (sym_return_val_size, sym_return_val_index): Ditto.
3616 * valops.c: Include cp-support.h.
3617 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3618 frame_h, and block_h.
3619 (valops.o): Depend on cp_support_h.
3620
3621 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3622
3623 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3624 substitute by NUM_REGS throughout.
3625 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3626 (h8300s_register_name): New function for H8S registers.
3627 (h8300sx_register_name): Ditto for H8SX registers.
3628 (h8300_print_register): Revise register printing, avoid depending
3629 on 32 bit long.
3630 (h8300_register_byte): Only care for H8/300 registers.
3631 (h8300h_register_byte): New function for any other architecture.
3632 (h8300_register_raw_size): Remove.
3633 (h8300_register_virtual_type): Revise to return actually useful
3634 type.
3635 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3636 (h8300h_extract_struct_value_address): New function for any other
3637 architecture.
3638 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3639 set_gdbarch_register_name, set_gdbarch_register_byte,
3640 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3641 Remove calls to set_gdbarch_deprecated_register_size,
3642 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3643 set_gdbarch_deprecated_max_register_raw_size,
3644 set_gdbarch_register_virtual_size and
3645 set_gdbarch_deprecated_max_register_virtual_size entirely.
3646 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3647 set_gdbarch_long_double_bit.
3648
3649 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3650
3651 * doublest.c (convert_doublest_to_floatformat): When dealing
3652 with the implied integer bit, only alter mant_bits if we are
3653 processing a full 32 bits of mantissa.
3654
3655 2003-06-11 David Carlton <carlton@bactrian.org>
3656
3657 * dictionary.h: New.
3658 * dictionary.c: New.
3659 * block.h: Add opaque declaration for struct dictionary.
3660 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3661 'sym' members.
3662 (BLOCK_DICT): New macro.
3663 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3664 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3665 BLOCK_SHOULD_SORT.
3666 (ALL_BLOCK_SYMBOLS): Update definition.
3667 * Makefile.in (SFILES): Add dictionary.c.
3668 (dictionary_h): New.
3669 (COMMON_OBS): Add dictionary.o.
3670 (dictionary.o): New.
3671 (ada-lang.o): Depend on dictionary_h.
3672 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3673 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3674 (mi-cmd-stack.o): Ditto.
3675 (gdbtk-cmds.o): Update dependencies.
3676 (gdbtk-stack.o): Ditto.
3677 * ada-lang.c: Include dictionary.h.
3678 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3679 (fill_in_ada_prototype, debug_print_block): Ditto.
3680 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3681 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3682 'is_sorted'.
3683 * mdebugread.c: Include dictionary.h.
3684 (struct parse_stack): Delete 'maxsyms' member.
3685 (parse_symbol): Update calls to new_block. Delete calls to
3686 shrink_block. Use dictionary methods.
3687 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3688 Update calls to new_symtab. Don't maintain maxsyms data.
3689 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3690 (add_symbol): Just call dict_add_symbol.
3691 (new_symtab): Delete 'maxsyms' argument.
3692 (new_symtab): Update calls to new_block.
3693 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3694 (shrink_block): Delete function.
3695 (fixup_sigtramp): Update call to new_block. Add symbol via
3696 dict_add_symbol.
3697 * jv-lang.c: Include dictionary.h.
3698 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3699 appropriately. Set class_symtab->free_func. Make sure the
3700 blockvector is big enough to hold two blocks.
3701 (add_class_symtab_symbol): Use dictionary methods.
3702 (free_class_block): New function.
3703 (type_from_class): Replace explicit iteration by
3704 ALL_BLOCK_SYMBOLS.
3705 * symtab.h (struct symtab): Replace 'free_ptr' method by
3706 'free_func'.
3707 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3708 sort_symtab_syms.
3709 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3710 sort_symtab_syms.
3711 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3712 Include dictionary.h.
3713 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3714 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3715 sort_symtab_syms.
3716 * objfiles.c: Include dictionary.h.
3717 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3718 * buildsym.c: Include dictionary.h.
3719 (finish_block): Use dictionary methods.
3720 (end_symtab): Set free_func to NULL, not free_ptr.
3721 * tracepoint.c: Include dictionary.h.
3722 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3723 (scope_info): Ditto.
3724 * stack.c: Include dictionary.h.
3725 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3726 (print_block_frame_labels, print_frame_arg_vars)
3727 (print_frame_args): Ditto.
3728 * symmisc.c (free_symtab_block): Use dictionary methods.
3729 (dump_symtab): Ditto.
3730 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3731 Include dictionary.h.
3732 * symfile.h: Delete declarations of sort_block_syms,
3733 sort_symtab_syms.
3734 * symfile.c (sort_block_syms): Delete.
3735 (sort_symtab_syms): Delete.
3736 * symtab.c: Include dictionary.h.
3737 (lookup_block_symbol): Use dictionary iterators.
3738 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3739 (search_symbols, make_symbol_completion_list): Ditto.
3740 (make_symbol_overload_list): Ditto.
3741 * valops.c (value_of_local): Use dict_empty.
3742 Include dictionary.h.
3743
3744 2003-06-11 J. Brobecker <brobecker@gnat.com>
3745
3746 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3747
3748 2003-06-11 David Carlton <carlton@bactrian.org>
3749
3750 * block.h (BLOCK_SHOULD_SORT): Delete.
3751 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3752 blocks.
3753 * ada-lang.c (ada_add_block_symbols): Ditto.
3754 * symfile.c (sort_block_syms): Delete.
3755 (sort_symtab_syms): Ditto.
3756 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3757 declarations.
3758 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3759 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3760 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3761 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3762 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3763 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3764 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3765
3766 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3767
3768 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
3769 bits to 128.
3770
3771 2003-06-11 Andrew Cagney <cagney@redhat.com>
3772
3773 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3774 REGISTER_CONVERTIBLE.
3775 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3776 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3777 * gdbarch.h, gdbarch.c: Re-generate.
3778 * arch-utils.h (deprecated_register_convertible_not): Rename
3779 generic_register_convertible_not.
3780 * arch-utils.c (deprecated_register_convertible_not): Rename
3781 generic_register_convertible.
3782 (legacy_convert_register_p, legacy_register_to_value): Update.
3783 * sh-tdep.c (sh64_push_arguments): Update.
3784 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3785 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3786 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3787 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3788 * arch-utils.c (legacy_value_to_register): Update.
3789 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3790 (rs6000_register_convert_to_raw): Make parameter "from" const.
3791 * mips-tdep.c (mips_gdbarch_init): Update.
3792 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3793 * infcmd.c (default_print_registers_info): Update.
3794 * ia64-tdep.c (ia64_gdbarch_init): Update.
3795 (ia64_register_convert_to_raw): Make parameter "from" const.
3796 * i386-tdep.c (i386_gdbarch_init): Update.
3797 (i386_register_convert_to_raw): Update.
3798
3799 2003-06-11 Andrew Cagney <cagney@redhat.com>
3800
3801 * remote-fileio.c: Include "remote-fileio.h".
3802 * Makefile.in (remote-fileio.o): Update dependencies.
3803 (remote_fileio_h): Fix typo.
3804
3805 2003-06-11 Andrew Cagney <cagney@redhat.com>
3806
3807 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3808 (xstormy16_save_dummy_frame_tos): Make static.
3809 (_initialize_xstormy16_tdep): Add declaration.
3810 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3811 * v850-tdep.c: Make local functions static.
3812 (_initialize_v850_tdep): Add declaration.
3813 * sparc-tdep.c: Make local functions static.
3814 (_initialize_sparc_tdep): Add declaration.
3815 * sh-tdep.c: Make local functions static.
3816 (_initialize_sh_tdep): Add declaration.
3817 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3818 * s390-tdep.c: Make local functions static.
3819 (_initialize_s390_tdep): Add declaration.
3820 * dbxread.c (find_stab_function_addr): Make static.
3821 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3822 * ocd.c (_initialize_remote_ocd): Add declaration.
3823 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3824 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3825 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3826 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3827 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3828 * remote-array.c (_initialize_array): Add declaration.
3829 (_initialize_remote_monitors): Add declaration.
3830 * remote-mips.c: Make local functions static.
3831 (_initialize_remote_mips): Add declaration.
3832 * mcore-tdep.c: Make all local functions static.
3833 (_initialize_mcore_tdep): Add declaration.
3834 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3835 * abug-rom.c (_initialize_abug_rom): Add declaration.
3836 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3837 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3838 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3839 * remote-est.c (_initialize_est): Add declaration.
3840 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3841 (m68hc11_call_dummy_address): Make static.
3842 * ia64-tdep.c: Make local functions static.
3843 (_initialize_ia64_tdep): Add declaration.
3844 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3845 * monitor.c (monitor_wait_filter): Make static.
3846 (_initialize_remote_monitors): Add declaration.
3847 * remote-hms.c (_initialize_remote_hms): Add declaration.
3848 * remote-e7000.c (fetch_regs_from_dump): Make static.
3849 (expect_n): Make static.
3850 (_initialize_remote_e7000): Add declaration.
3851 * ser-e7kpc.c: Always include "defs.h".
3852 (_initialize_ser_e7000pc): Add declaration.
3853 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3854 * cris-tdep.c: Make all but one function static.
3855 (_initialize_cris_tdep): Add declaration.
3856 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3857 * solib.c (update_solib_list): Make static.
3858 (_initialize_solib): Add declaration.
3859 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3860 (_initialize_avr_tdep): Add declaration.
3861 * remote-rdi.c (voiddummy): Make static.
3862 (_initialize_remote_rdi): Add declaration.
3863 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3864 * remote-rdp.c (send_rdp): Make static.
3865 (_initialize_remote_rdp): Add declaration.
3866 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3867
3868 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
3869
3870 * remote-fileio.c: Make ari happy.
3871
3872 2003-06-10 J. Brobecker <brobecker@gnat.com>
3873
3874 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3875 fetching the trailing bytes of the buffer we are about to write.
3876
3877 2003-06-10 Andrew Cagney <cagney@redhat.com>
3878
3879 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3880 * Makefile.in (remote-fileio.o): Update dependencies.
3881 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3882 include <setjmp.h>, or <sys/types.h> conditional on USG.
3883 (remote_fio_jmp_buf): Delete global variable.
3884
3885 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
3886 Martin M. Hunt <hunt@redhat.com>
3887
3888 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3889 (SFILES): Add remote-fileio.c.
3890 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3891 dependencies for building remote.o.
3892 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3893 * remote-fileio.h: New header file defining remote File-I/O interface.
3894 * remote.c (remote_write_bytes, remote_read_bytes): Remove
3895 static storage class.
3896 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3897 'F' packet.
3898 (_initialize_remote): Call initialize_remote_fileio().
3899 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
3900 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3901 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3902 (captured_main): Initialize new ui_files.
3903 * ui-file.c: Add read and fgets input functions.
3904 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3905 (null_file_read): New function.
3906 (ui_file_read): New function.
3907 (set_ui_file_read): New function.
3908 (stdio_file_read): New function.
3909 * ui-file.h: New type ui_file_read_ftype.
3910 (set_ui_file_read): Declare.
3911 (ui_file_read): Declare.
3912
3913 2003-06-09 Andrew Cagney <cagney@redhat.com>
3914
3915 * frame.h (deprecated_unwind_get_saved_register): Rename
3916 generic_unwind_get_saved_register, update comments.
3917 * mips-tdep.c (mips_get_saved_register): Update.
3918 * frame.c (deprecated_unwind_get_saved_register): Update.
3919
3920 2003-06-09 Andrew Cagney <cagney@redhat.com>
3921
3922 * vax-tdep.c (vax_frame_locals_address): Delete function.
3923 (vax_gdbarch_init): Do not set frame_locals_address.
3924 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3925 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3926 * s390-tdep.c (s390_frame_args_address): Delete function.
3927 (s390_gdbarch_init): Do not set frame_args_address or
3928 frame_locals_address.
3929 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3930 (ns32k_gdbarch_init): Do not set frame_locals_address.
3931 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3932 (hppa_frame_locals_address): Delete function.
3933 (hppa_gdbarch_init): Do not set frame_args_address, or
3934 frame_locals_address.
3935 * arm-tdep.c (arm_frame_args_address): Delete.
3936 (arm_frame_locals_address): Delete.
3937 (arm_gdbarch_init): Do not set frame_args_address, or
3938 frame_locals_address.
3939
3940 2003-06-09 Andrew Cagney <cagney@redhat.com>
3941
3942 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3943 * gdbarch.h, gdbarch.c: Re-generate.
3944 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3945 * arch-utils.c (frame_num_args_unknown): Delete function.
3946 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3947 (frame_info): Use FRAME_NUM_ARGS_P.
3948 * arm-tdep.c (arm_frame_num_args): Delete function.
3949 (arm_gdbarch_init): Do not set frame_num_args.
3950 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3951 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3952 (hppa_gdbarch_init): Do not set frame_num_args.
3953 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3954 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3955 frame_num_args to default frame_num_args_unknown.
3956 * v850-tdep.c (v850_gdbarch_init): Ditto.
3957 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3958 * sh-tdep.c (sh_gdbarch_init): Ditto.
3959 * s390-tdep.c (s390_gdbarch_init): Ditto.
3960 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3961 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3962 * mips-tdep.c (mips_gdbarch_init): Ditto.
3963 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3964 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3965 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3966 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3967 * i386-tdep.c (i386_gdbarch_init): Ditto.
3968 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3969 * frv-tdep.c (frv_gdbarch_init): Ditto.
3970 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3971 * cris-tdep.c (cris_gdbarch_init): Ditto.
3972 * avr-tdep.c (avr_gdbarch_init): Ditto.
3973 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3974
3975 2003-06-09 Andrew Cagney <cagney@redhat.com>
3976
3977 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3978 (print_frame_args): Moved to "stack.c".
3979 * stack.c: Include "gdb_assert.h".
3980 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3981 (print_frame_args): Moved from "printcmd.c".
3982 * frame.h (print_frame_args): Delete declaration.
3983 * Makefile.in (stack.o): Update dependencies.
3984
3985 2003-06-08 Andrew Cagney <cagney@redhat.com>
3986
3987 * frame.c (get_prev_frame): Remove reference to
3988 frame_args_address_correct in comments.
3989 * frame-base.c (default_frame_args_address): Delete code
3990 conditional on FRAME_ARGS_ADDRESS_CORRECT.
3991 * vax-tdep.c (vax_frame_args_address_correct): Delete.
3992 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
3993 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
3994 (vax_frame_args_address_correct): Delete declaration.
3995
3996 2003-06-08 Andrew Cagney <cagney@redhat.com>
3997
3998 * gdbarch.sh (UNWIND_SP): Add.
3999 * gdbarch.h, gdbarch.c: Re-generate.
4000 * frame.c (frame_sp_unwind): New function.
4001 (get_frame_sp): New function.
4002 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4003 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4004 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4005 value.
4006 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4007 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4008
4009 2003-06-08 Andrew Cagney <cagney@redhat.com>
4010
4011 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4012 REMOTE_BREAKPOINT.
4013 * remote.c: Update.
4014 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4015 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4016 * config/m68k/tm-sun3.h: Update.
4017 * config/m68k/tm-m68klynx.h: Update.
4018 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4019
4020 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4021 trad_frame". Update comments.
4022 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4023 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4024 (trad_frame_register_value, trad_frame_prev_register): Update.
4025
4026 2003-06-08 Andrew Cagney <cagney@redhat.com>
4027
4028 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4029 from GCC's acinclude.m4.
4030 * configure.in: Check for getopt's delcaration.
4031 * aclocal.m4, config.in, configure: Re-generate.
4032 * main.c (error_init): Delete declaration.
4033 * defs.h (error_init): Declare.
4034 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4035 (rs6000_convert_from_func_ptr_addr): Make static.
4036 (_initialize_rs6000_tdep): Add declaration.
4037 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4038 (show_commands, set_verbose, show_history): Delete declaration.
4039 * top.h (set_verbose): Add declaration.
4040 (show_history, set_history, show_commands): Add declaration.
4041 (do_restore_instream_cleanup): Add declaration.
4042 * objc-lang.c (specialcmp): Make static.
4043 (print_object_command): Make static.
4044 (find_objc_msgsend): Make static.
4045 (find_objc_msgcall_submethod_helper): Make static.
4046 (find_objc_msgcall_submethod): Make static.
4047 (_initialize_objc_language): Add declaration.
4048 (find_implementation_from_class): Make static.
4049 (find_implementation): Make static.
4050 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4051 * objc-lang.h (lookup_struct_typedef): Add declaration.
4052 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4053 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4054 (do_restore_user_call_depth): Make static.
4055 (do_restore_instream_cleanup): Delete declaration.
4056 (dont_repeat): Delete declaration.
4057 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4058 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4059 * reggroups.c (_initialize_reggroup): Add declaration.
4060 * cp-support.c (_initialize_cp_support): Add declaration.
4061 * cp-abi.c (_initialize_cp_abi): Add declaration.
4062 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4063 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4064 (_initialize_gnu_v3_abi): Add declaration.
4065 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4066 (_initialize_gnu_v2_abi): Add declaration.
4067 * frame-base.c (_initialize_frame_base): Add declaration.
4068 * doublest.c (floatformat_from_length): Make static.
4069 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4070 * frame.c (create_sentinel_frame): Make static.
4071 (_initialize_frame): Add declaration.
4072 * top.c (do_catch_errors): Make static.
4073 (gdb_rl_operate_and_get_next_completion): Make static.
4074 * typeprint.c: Include "typeprint.h".
4075 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4076 (sentinel_frame_this_id): Make static.
4077 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4078 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4079 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4080 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4081 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4082 * maint.c (maintenance_print_architecture): Make static.
4083 * signals/signals.c (_initialize_signals): Add declaration.
4084 * std-regs.c (_initialize_frame_reg): Add declaration.
4085 * jv-exp.y (push_variable): ISO C definition.
4086 (push_qualified_expression_name): Ditto.
4087 * memattr.c (_initialize_mem): Add declaration.
4088 * remote.c (remote_check_watch_resources): Make static.
4089 (remote_stopped_by_watchpoint): Make static.
4090 (remote_stopped_data_address): Make static.
4091 * d10v-tdep.c (nr_dmap_regs): Make static.
4092 (a0_regnum): Make static.
4093 (d10v_frame_unwind_cache): Make static.
4094 (d10v_frame_p): Make static.
4095 * osabi.c (show_osabi): Make static.
4096 (_initialize_gdb_osabi): Add extern declaration.
4097 * gdbtypes.c (make_qualified_type): Make static.
4098 (safe_parse_type): Make static.
4099 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4100 * macrotab.c (macro_bcache_free): Make static.
4101 * interps.c (interp_set_quiet): Make static.
4102 (interpreter_exec_cmd): Make static.
4103 * stack.h (select_frame_command): New file.
4104 * stack.c: Include "stack.h".
4105 (select_frame_command_wrapper): Delete function.
4106 (select_frame_command): Make global.
4107 * infcall.c: Include "infcall.h".
4108 * linespec.c: Include "linespec.h".
4109 * symfile.c (sections_overlap): Make static.
4110 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4111 * charset.c (_initialize_charset): Add missing prototype.
4112 * regcache.c (init_legacy_regcache_descr): Make static.
4113 (do_regcache_xfree): Make static.
4114 (regcache_xfer_part): Make static.
4115 (_initialize_regcache): Add missing prototype.
4116 * breakpoint.c (parse_breakpoint_sals): Make static.
4117 (breakpoint_sals_to_pc): Make static.
4118 * interps.h (clear_interpreter_hooks): ISO C declaration.
4119 * Makefile.in (stack_h): Define.
4120 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4121 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4122
4123 2003-06-08 Andrew Cagney <cagney@redhat.com>
4124
4125 * Makefile.in (d10v-tdep.o): Update dependencies.
4126 (SFILES): Add trad-frame.c.
4127 (trad_frame_h): Define.
4128 (COMMON_OBS): Add trad-frame.o.
4129 (trad-frame.o): Specify dependencies.
4130 * d10v-tdep.c: Include "trad-frame.h".
4131 (saved_regs_unwinder): Delete function.
4132 (d10v_frame_prev_register): Use trad_frame_prev_register.
4133 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4134 trad_frame", delete "regs" and "prev_sp".
4135 (prologue_find_regs): Use trad-frame.
4136 * trad-frame.h, trad-frame.c: New files.
4137
4138 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4139
4140 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4141
4142 2003-06-07 Adam Fedor <fedor@gnu.org>
4143
4144 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4145 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4146 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4147 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4148 resolve_msgsend_super, resolve_msgsend_super_stret):
4149 Use it.
4150
4151 2003-06-07 Andrew Cagney <cagney@redhat.com>
4152
4153 * symfile.h: Re-indent, clean up comments.
4154
4155 2003-06-07 Andrew Cagney <cagney@redhat.com>
4156
4157 * inferior.h (deprecated_write_sp): Replace
4158 generic_target_write_sp.
4159 * regcache.c (deprecated_write_sp): Replace
4160 generic_target_write_sp.
4161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4162 * vax-tdep.c (vax_gdbarch_init): Update.
4163 * v850-tdep.c (v850_gdbarch_init): Update.
4164 * sparc-tdep.c (sparc_gdbarch_init): Update.
4165 * sh-tdep.c (sh_gdbarch_init): Update.
4166 * s390-tdep.c (s390_gdbarch_init): Update.
4167 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4168 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4169 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4170 * mcore-tdep.c (mcore_gdbarch_init): Update.
4171 * m68k-tdep.c (m68k_gdbarch_init): Update.
4172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4173 * ia64-tdep.c (ia64_gdbarch_init): Update.
4174 * h8300-tdep.c (h8300_gdbarch_init): Update.
4175 * frv-tdep.c (frv_gdbarch_init): Update.
4176 * cris-tdep.c (cris_gdbarch_init): Update.
4177 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4178
4179 2003-06-07 Andrew Cagney <cagney@redhat.com>
4180
4181 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4182 Assert that PC_REGNUM is valid.
4183 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4184
4185 2003-06-07 Andrew Cagney <cagney@redhat.com>
4186
4187 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4188 * gdbarch.h, gdbarch.c: Regenerate.
4189 * mn10300-tdep.c: Include "gdb_assert.h".
4190 (mn10300_read_fp): New function.
4191 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4192 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4193 * ia64-tdep.c: Include "gdb_assert.h".
4194 (ia64_read_fp): New function.
4195 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4196 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4197 * regcache.c (generic_target_read_sp): Delete function.
4198 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4199 * inferior.h (generic_target_read_sp): Delete declaration.
4200 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4201 generic_target_read_sp.
4202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4203 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4204 * sh-tdep.c (sh_gdbarch_init): Ditto.
4205 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4206 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4207
4208 2003-06-07 Andrew Cagney <cagney@redhat.com>
4209
4210 * gdbarch.sh: Comment each field of startup_gdbarch.
4211 * gdbarch.h, gdbarch.c: Re-generate.
4212
4213 2003-06-07 Andrew Cagney <cagney@redhat.com>
4214
4215 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4216 * gdbarch.h, gdbarch.c: Re-generate.
4217 * regcache.c: Update comments on read_pc et.al.
4218 (generic_target_read_pc): Delete function.
4219 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4220 * inferior.h (generic_target_read_pc): Delete declaration.
4221 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4222 generic_target_read_pc.
4223 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4224 * sh-tdep.c (sh_gdbarch_init): Ditto.
4225 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4227
4228 2003-06-07 Andrew Cagney <cagney@redhat.com>
4229
4230 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4231 "index" with "special_local_sect". Use strcmp instead of STREQ.
4232 Append period to coments.
4233
4234 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4235
4236 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4237 (elfstab_offset_sections): Likewise.
4238 * gdb-stabs.h (stab_section_info): Likewise.
4239 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4240 * objfiles.c (objfile_relocate): Likewise.
4241 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4242 * remote.c (get_offsets): Likewise.
4243 (remote_cisco_objfile_relocate): Likewise.
4244 * somread.c (som_symfile_offsets): Likewise.
4245 * symfile.c (alloc_section_addr_info): New function.
4246 (build_section_addr_info_from_section_tab): Use it.
4247 (free_section_addr_info): Adjust.
4248 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4249 (syms_from_objfile): Allocate local_addr dynamically.
4250 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4251 dynamically.
4252 (add_symbol_file_command): Allocate sect_opts dynamically.
4253 (reread_symbols): Avoid use of SECT_OFF_MAX.
4254 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4255 (alloc_section_addr_info): Declare it.
4256 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4257 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4258 dynamically.
4259 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4260
4261 2003-06-06 Andrew Cagney <cagney@redhat.com>
4262
4263 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4264 (d10v_frame_unwind_cache): Do not set "return_pc".
4265
4266 2003-06-06 Michael Snyder <msnyder@redhat.com>
4267
4268 * h8300-tdep.c: Make tidy (long lines).
4269
4270 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4271
4272 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4273 to regcache_collect().
4274
4275 2003-06-05 J. Brobecker <brobecker@gnat.com>
4276
4277 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4278 pc_in_sigtramp multiarch method.
4279 (hppa_hpux_som_init_abi): Use it.
4280 (hppa_hpux_elf_init_abi): Likewise.
4281 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4282 macro has been multiarched.
4283 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4284 macro here, as hppa64 isn't multiarched yet.
4285
4286 2003-06-05 Andrew Cagney <cagney@redhat.com>
4287
4288 * Makefile.in (value_h): Add $(frame_h).
4289 * value.h: Include "frame.h".
4290 (struct value): Replace "frame_addr" with "frame_id".
4291 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4292 * values.c (allocate_value): Use VALUE_FRAME_ID.
4293 (value_copy): Use VALUE_FRAME_ID.
4294 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4295 * valops.c (value_assign): Update. Use frame_find_by_id.
4296
4297 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4298
4299 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4300 in each pass.
4301
4302 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4303
4304 * thread-db.c (check_event): For create/death event breakpoints,
4305 loop through all messages to ensure that we read the message
4306 corresponding to the breakpoint we are at.
4307
4308 2003-06-04 Michael Snyder <msnyder@redhat.com>
4309
4310 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4311
4312 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4313
4314 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4315 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4316 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4317 when handling .eh_frame sections.
4318
4319 2003-06-04 J. Brobecker <brobecker@gnat.com>
4320
4321 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4322 prepare_to_proceed procedure instead of the hppa-specific one.
4323 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4324
4325 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4326
4327 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4328 * config.in: Regenerated.
4329 * configure.in: Add test for syscall function and check for
4330 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4331 * configure: Regenerated.
4332 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4333 <sys/syscall.h>.
4334 (kill_lwp): New function that uses tkill syscall or
4335 uses kill, depending on whether threading model is nptl or not.
4336 All callers of kill() changed to use kill_lwp().
4337 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4338 see if all threads have already exited in the nptl model.
4339 (stop_and_resume_callback): New callback function used by the
4340 lin_lwp_wait thread exit handling code.
4341 (stop_wait_callback): Check for threads already having exited and
4342 delete such threads fromt the lwp list when discovered.
4343 (stop_callback): Don't assert retcode of kill call.
4344
4345 Roland McGrath <roland@redhat.com>
4346 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4347 nptl libthread_db.
4348
4349 2003-06-03 Richard Henderson <rth@redhat.com>
4350
4351 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4352 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4353 (alpha_sigtramp_frame_prev_register): Likewise.
4354 (alpha_heuristic_frame_prev_register): Likewise.
4355 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4356
4357 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4358 alpha-specific register id names.
4359 (alpha_mdebug_frame_unwind_cache): Likewise.
4360 (alpha_mdebug_frame_prev_register): Likewise.
4361
4362 2003-06-03 Richard Henderson <rth@redhat.com>
4363
4364 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4365 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4366 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4367 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4368 unwind routines.
4369 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4370 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4371 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4372
4373 * alpha-linux-tdep.c: Remove unnecessary includes.
4374 * Makefile.in (alpha-linux-tdep.o): Update.
4375
4376 2003-06-03 Richard Henderson <rth@redhat.com>
4377
4378 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4379 (alphabsd_fill_fpreg): Likewise.
4380
4381 2003-06-03 J. Brobecker <brobecker@gnat.com>
4382
4383 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4384 references to struct frame_info fields by calls to the equivalent
4385 accessors. Necessary now that frame_info is opaque.
4386
4387 2003-06-03 J. Brobecker <brobecker@gnat.com>
4388
4389 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4390 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4391 structure, field no longer exists.
4392
4393 2003-06-03 J. Brobecker <brobecker@gnat.com>
4394
4395 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4396 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4397
4398 2003-06-03 J. Brobecker <brobecker@gnat.com>
4399
4400 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4401 references to struct frame_info fields by calls to the equivalent
4402 accessors. Necessary now that frame_info is opaque.
4403
4404 2003-06-03 J. Brobecker <brobecker@gnat.com>
4405
4406 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4407 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4408 structure, field no longer exists.
4409
4410 2003-06-03 Theodore A. Roth <troth@openavr.org>
4411
4412 * remote.c (init_remote_state): Compute sizeof_g_packet by
4413 accumulation of the size of all registers instead of blindly using
4414 DEPRECATED_REGISTER_BYTES.
4415
4416 2003-06-03 Michael Snyder <msnyder@redhat.com>
4417
4418 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4419 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4420 for h8300sx.
4421
4422 2003-06-03 J. Brobecker <brobecker@gnat.com>
4423
4424 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4425 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4426
4427 2003-06-03 Andrew Cagney <cagney@redhat.com>
4428
4429 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4430 (sparc_convert_to_raw): Delete function.
4431 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4432 register_convert_to_virtual.
4433
4434 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4435
4436 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4437 layer if not dealing with a statically-linked threaded program.
4438
4439 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4440
4441 * solib.c (solib_open): Update comment to reflect actual search order.
4442
4443 2003-06-03 Andrew Cagney <cagney@redhat.com>
4444
4445 * frame.c (get_frame_memory_signed): New function.
4446 (get_frame_memory, get_frame_memory_unsigned): New function.
4447 (get_frame_arch): New function.
4448 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4449 (get_frame_memory, get_frame_unsigned_memory): Declare.
4450 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4451 get_frame_memory_unsigned and get_frame_arch.
4452 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4453
4454 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4455
4456 * MAINTAINERS (write after approval): Add myself.
4457
4458 2003-06-03 Jim Blandy <jimb@redhat.com>
4459
4460 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4461 elements of gregset_t are 64 bits each, but access registers
4462 are still 32 bits, so they're packed two per gregset_t
4463 element. Unpack/pack them properly.
4464
4465 2003-06-02 David Carlton <carlton@bactrian.org>
4466
4467 * linespec.c (find_methods): Break out code into
4468 add_matching_methods and add_constructors.
4469 (add_matching_methods): New.
4470 (add_constructors): Ditto.
4471
4472 2003-06-02 Andrew Cagney <cagney@redhat.com>
4473
4474 * sparc-tdep.c (sparc_print_registers): Delete call to
4475 REGISTER_CONVERTIBLE.
4476 (sparc_gdbarch_init): Do not set register_convertible.
4477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4478 * frv-tdep.c (frv_gdbarch_init): Ditto.
4479 * cris-tdep.c (cris_gdbarch_init): Ditto.
4480
4481 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4482
4483 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4484 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4485 (syms_from_objfile): Ditto.
4486
4487 2003-06-03 Andreas Schwab <schwab@suse.de>
4488
4489 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4490 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4491
4492 2003-06-02 Richard Henderson <rth@redhat.com>
4493
4494 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4495 a member of all_reggroup.
4496
4497 2003-06-02 Richard Henderson <rth@redhat.com>
4498
4499 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4500 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4501 (alpha_lds, alpha_sts): New.
4502 (alpha_convert_register_p): Change from _register_convertible.
4503 (alpha_register_to_value): Change from _convert_to_virtual;
4504 restructure and fail for type sizes other than 4 or 8.
4505 (alpha_value_to_register): Similarly.
4506 (alpha_extract_return_value): Use alpha_sts.
4507 (alpha_store_return_value): Use alpha_lds.
4508 (alpha_gdbarch_init): Update hooks.
4509
4510 2003-06-02 Richard Henderson <rth@redhat.com>
4511
4512 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4513 regnum identifiers.
4514 (alpha_sigtramp_register_address): Likewise.
4515
4516 2003-06-02 Richard Henderson <rth@redhat.com>
4517
4518 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4519 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4520 * alpha-tdep.h: Declare them.
4521
4522 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4523 Remove zerobuf. Don't error on UNIQUE.
4524 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4525 (ALPHA_REGSET_UNIQUE): Provide default.
4526 (supply_gregset): Use alpha_supply_int_regs.
4527 (fill_gregset): Use alpha_fill_int_regs.
4528 (supply_fpregset): Use alpha_supply_fp_regs.
4529 (fill_fpregset): Use alpha_fill_fp_regs.
4530 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4531 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4532 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4533 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4534 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4535 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4536
4537 2003-06-02 Richard Henderson <rth@redhat.com>
4538
4539 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4540
4541 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4542 (alpha_store_return_value): Likewise.
4543
4544 2003-06-02 David Carlton <carlton@math.stanford.edu>
4545
4546 * block.c (contained_in): Add 'const' to arguments.
4547 (block_function): Ditto.
4548 * block.h: Update declarations for block_function and
4549 contained_in.
4550
4551 2003-06-02 David Carlton <carlton@math.stanford.edu>
4552
4553 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4554 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4555 * p-valprint.c (pascal_val_print): Ditto.
4556 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4557
4558 2003-06-02 Richard Henderson <rth@redhat.com>
4559
4560 * alpha-tdep.c (alpha_push_dummy_call): Use
4561 builtin_type_ieee_double_little instead of builtin_type_double.
4562
4563 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4564 sign-extension of 32-bit values.
4565 (alpha_store_return_value): Similarly.
4566
4567 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4568 (alpha_extract_return_value): Likewise.
4569 (alpha_store_return_value): Likewise.
4570
4571 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4572 (alpha_store_return_value): Error on IEEE Quad floats.
4573
4574 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4575 (alpha_extract_struct_value_address): Likewise.
4576 (alpha_store_return_value): Likewise.
4577 (alpha_store_struct_return): Remove.
4578 (alpha_gdbarch_init): Update hook registration to match.
4579
4580 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4581 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4582 macros where appropriate.
4583 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4584 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4585
4586 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4587 for SP, GP; void_func_ptr for PC; non-language-specific types
4588 for all others.
4589 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4590
4591 2003-06-02 Richard Henderson <rth@redhat.com>
4592
4593 * top.h (lim_at_start): Declare.
4594 * main.c (captured_main): Set it.
4595 * top.c (lim_at_start): Define.
4596 (command_loop): Use it instead of &environ.
4597 * event-top.c (command_handler): Likewise.
4598
4599 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4600
4601 * mipsnbsd-tdep.c: Update copyright years.
4602 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4603
4604 2003-06-01 Richard Henderson <rth@redhat.com>
4605
4606 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4607 (alpha-linux-tdep.o): Update dependencies.
4608 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4609 * alpha-mdebug-tdep.c: Remove unneeded includes.
4610
4611 2003-06-01 Richard Henderson <rth@redhat.com>
4612
4613 * alpha-tdep.c (alpha_register_reggroup_p): New.
4614 (alpha_gdbarch_init): Register it.
4615
4616 2003-06-02 Andrew Cagney <cagney@redhat.com>
4617
4618 * dwarfread.c: Eliminate "register"
4619 (decode_die_type): Eliminate assignment within "if".
4620 (struct_type, decode_array_element_type): Ditto.
4621 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4622 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4623 (decode_modified_type, completedieinfo): Ditto.
4624 * block.c: Eliminate "register".
4625 (blockvector_for_pc_sect): Eliminate assignment within "if".
4626 * cp-support.h (struct symbol): Opaque declaration.
4627 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4628
4629 2003-06-01 Richard Henderson <rth@redhat.com>
4630
4631 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4632 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4633
4634 2003-06-01 Adam Fedor <fedor@gnu.org>
4635
4636 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4637 * gdbarch.[ch]: Regenerate.
4638 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4639 (hppa_gdbarch_init): Set it in the gdbarch vector.
4640 * i386-tdep.c (i386_fetch_pointer_argument): New
4641 (i386_gdbarch_init): Set it into gdbarch.
4642 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4643 (rs6000_gdbarch_init): Set it in gdbarch.
4644 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4645 (sparc_gdbarch_init): Set it in gdbarch.
4646
4647 2003-06-01 Andrew Cagney <cagney@redhat.com>
4648
4649 * defs.h (extract_address): Delete declaration.
4650 * findvar.c (extract_address): Delete function.
4651 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4652 extract_address with the inline equivalent,
4653 extract_unsigned_integer.
4654 (xstormy16_extract_struct_value_address): Ditto.
4655 (xstormy16_pointer_to_address): Ditto.
4656 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4657 * v850-tdep.c (v850_push_arguments): Ditto.
4658 (v850_extract_return_value): Ditto.
4659 (v850_extract_struct_value_address): Ditto.
4660 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4661 (sparcnbsd_get_longjmp_target_64): Ditto.
4662 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4663 (get_longjmp_target): Ditto.
4664 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4665 (sh64_extract_struct_value_address): Ditto.
4666 (sh_push_arguments): Ditto.
4667 (sh64_push_arguments): Ditto.
4668 * remote-vxsparc.c (vx_read_register): Ditto.
4669 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4670 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4671 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4672 * mipsv4-nat.c (get_longjmp_target): Ditto.
4673 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4674 * mips-nat.c (get_longjmp_target): Ditto.
4675 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4676 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4677 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4678 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4679 * irix5-nat.c (get_longjmp_target): Ditto.
4680 * irix4-nat.c (get_longjmp_target): Ditto.
4681 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4682 (ia64_push_arguments): Ditto.
4683 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4684 * h8300-tdep.c (h8300_push_arguments): Ditto.
4685 (h8300_store_return_value): Ditto.
4686 (h8300_extract_struct_value_address): Ditto.
4687 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4688 (frv_push_arguments): Ditto.
4689 * avr-tdep.c (avr_pointer_to_address): Ditto.
4690 (avr_push_arguments): Ditto.
4691 * arm-tdep.c (arm_push_dummy_call): Ditto.
4692 (arm_get_longjmp_target): Ditto.
4693 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4694 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4695 (alpha_get_longjmp_target): Ditto.
4696
4697 * solib-irix.c (extract_mips_address): Inline extract_address,
4698 replacing it with extract_signed_integer.
4699 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4700 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4701 (first_link_map_member, open_symbol_file_object): Ditto.
4702 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4703 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4704 (LM_NEXT, LM_NAME): Ditto.
4705
4706 2003-06-01 Richard Henderson <rth@redhat.com>
4707
4708 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4709 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4710 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4711 (alpha_cannot_store_register): Likewise.
4712 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4713 * alpha-nat.c (supply_gregset): Likewise.
4714 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
4715
4716 2003-06-01 Andrew Cagney <cagney@redhat.com>
4717
4718 * infcall.c (call_function_by_hand): Update comment on
4719 DEPRECATED_DUMMY_WRITE_SP.
4720
4721 * mips-tdep.c (mips_gdbarch_init): Do not set
4722 deprecated_dummy_write_sp.
4723 (mips_eabi_push_dummy_call): Set the SP register.
4724 (mips_o64_push_dummy_call): Set the SP register.
4725 (mips_o32_push_dummy_call): Set the SP register.
4726 (mips_n32n64_push_dummy_call): Set the SP register.
4727
4728 2003-06-01 Richard Henderson <rth@redhat.com>
4729
4730 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4731 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4732 (supply_gregset): Likewise.
4733 * alpha-tdep.c (alpha_store_return_value): Likewise.
4734 (alpha_get_longjmp_target): Likewise.
4735 (alpha_register_name): Constify array.
4736 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4737 deprecated_register_size, deprecated_register_bytes,
4738 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4739 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4740 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
4741
4742 2003-06-01 Richard Henderson <rth@redhat.com>
4743
4744 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4745 from arg_reg_buffer to regcache to avoid double conversion.
4746
4747 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4748
4749 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4750 SP_REGNUM.
4751 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4752 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4753
4754 2003-06-01 Richard Henderson <rth@redhat.com>
4755
4756 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4757 (decode_frame_entry): Set it. Skip FDE augmentation.
4758
4759 2003-06-01 Richard Henderson <rth@redhat.com>
4760
4761 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4762 not overlapping PC_REGNUM.
4763
4764 2003-06-01 Richard Henderson <rth@redhat.com>
4765
4766 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4767 alpha_push_arguments. Don't dump argument register data to
4768 the target stack. Fix float and 128-bit long double semantics.
4769 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4770 (alpha_fix_call_dummy): Remove.
4771 (alpha_call_dummy_words): Remove.
4772 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
4773
4774 2003-06-01 Richard Henderson <rth@redhat.com>
4775
4776 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4777
4778 2003-06-01 Andrew Cagney <cagney@redhat.com>
4779
4780 * mips-tdep.c (is_mips16_addr): New function.
4781 (make_mips16_addr, unmake_mips16_addr): New functions.
4782 (pc_is_mips16, mips_fetch_instruction): Use.
4783 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4784 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4785 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4786 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4787 TARGET_MIPS.
4788 * config/mips/tm-mips.h: Update copyright.
4789 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4790 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4791 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4792 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4793 (TM_PRINT_INSN_MACH): Delete.
4794 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4795
4796 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4797 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4798 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4799 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4800 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4801 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4802 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4803 mips*-*-riscos* and mips*-*-sysv* onto mips.
4804 * config/mips/mips64.mt: New file.
4805 * config/mips/mips.mt: New file.
4806 * config/mips/littlemips.mt: Delete file.
4807 * config/mips/decstation.mt: Delete file.
4808 * config/mips/vr4300el.mt: Delete file.
4809 * config/mips/vr5000el.mt: Delete file.
4810 * config/mips/vr5000.mt: Delete file.
4811 * config/mips/vr4100.mt: Delete file.
4812 * config/mips/vr4xxxel.mt: Delete file.
4813 * config/mips/vr4300.mt: Delete file.
4814 * config/mips/vr4xxx.mt: Delete file.
4815 * config/mips/bigmips.mt: Delete file.
4816 * config/mips/bigmips64.mt: Delete file.
4817 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4818 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4819 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4820 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4821 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4822 "tm-bigmips.h".
4823 * config/mips/tm-irix3.h: Ditto.
4824 * config/mips/tm-mipsv4.h: Ditto.
4825 * config/mips/tm-embed.h: Ditto.
4826 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4827 "tm-bigmips64.h".
4828 * config/mips/tm-vr5000el.h: Delete file.
4829 * config/mips/tm-tx39l.h: Delete file.
4830 * config/mips/tm-vr4300el.h: Delete file.
4831 * config/mips/tm-vr4xxxel.h: Delete file.
4832 * config/mips/tm-vr4300.h: Delete file.
4833 * config/mips/tm-vr4100.h: Delete file.
4834 * config/mips/tm-vr4xxx.h: Delete file.
4835 * config/mips/tm-vr5000.h: Delete file.
4836 * config/mips/tm-embedl64.h: Delete file.
4837 * config/mips/tm-embedl.h: Delete file.
4838 * config/mips/tm-embed64.h: Delete file.
4839 * config/mips/tm-bigmips64.h: Delete file.
4840 * config/mips/tm-bigmips.h: Delete file.
4841
4842 2003-06-01 Mark Kettenis <kettenis@gnu.org>
4843
4844 Fix gdb/1216.
4845 * shnbsd-nat.c: Include "sh-tdep.h".
4846
4847 From Richard Henderson <rth@redhat.com>:
4848 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4849
4850 2003-05-31 Andrew Cagney <cagney@redhat.com>
4851
4852 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4853 forward declaration.
4854 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4855 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4856 (mips_find_saved_regs): Use set_reg_offset.
4857 (mips_frame_init_saved_regs): Delete function.
4858 (mips_pop_frame): Call mips_find_saved_regs instead of
4859 DEPRECATED_FRAME_INIT_SAVED_REGS.
4860
4861 2003-05-31 Andrew Cagney <cagney@redhat.com>
4862
4863 * mips-tdep.c (mips_gdbarch_init): Do not set
4864 deprecated_max_register_raw_size, register_virtual_size, and
4865 deprecated_max_register_virtual_size.
4866
4867 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4868
4869 * i386-tdep.c: Include "dwarf2-frame.h".
4870 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4871 * Makefile.in (i386-tdep.o): Update dependencies.
4872
4873 * dwarf2-frame.c, dwarf2-frame.h: New files.
4874 * Makefile.in (SFILES): Add dwarf2-frame.c.
4875 (dwarf2_frame_h): Define.
4876 (COMMON_OBS): Add dwarf2-frame.o.
4877 (dwarf2-frame.o): Add dependencies.
4878
4879 2003-05-31 Andreas Jaeger <aj@suse.de>
4880
4881 * x86-64-linux-nat.c: Fix comment.
4882
4883 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4884
4885 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4886 function signature.
4887
4888 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4889 have a sigcontext_addr handler.
4890 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4891 sigcontext_addr handler.
4892
4893 2003-05-31 Andrew Cagney <cagney@redhat.com>
4894
4895 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4896 (print_fp_register_row): Replace do_fp_register_row.
4897 (mips_print_fp_register): Add "file" and "frame" parameters.
4898 (mips_print_register): Add "file" and "frame" parameters.
4899 (mips_print_registers_info): Replace mips_do_registers_info.
4900 (mips_gdbarch_init): Set print_registers_info instead of
4901 deprecated_do_registers_info.
4902 (mips_read_fp_register_single): Add "frame" parameter.
4903 (mips_read_fp_register_double): Add "frame" parameter.
4904
4905 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4906
4907 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4908 Fixes a bug where GDB would print the wrong register names for
4909 targets without SSE.
4910
4911 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4912 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4913 registers.
4914
4915 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4916 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4917 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4918 TDEP->sc_sp_offset.
4919
4920 From Michal Ludvig <mludvig@suse.cz>:
4921 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4922 and `sc_num_regs'.
4923 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4924 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4925 I386_ST0_REGNUM): Move here from...
4926 * i386-tdep.c: ... here.
4927 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4928 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4929 registers if possible.
4930 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4931 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4932 Remove variables.
4933 (i386bsd_sc_reg_offset): New variable.
4934 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4935 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4936 TDEP->sc_sp_offset.
4937 (i386fbsd_sc_reg_offset): New variable.
4938 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4939 TDEP->sc_num_regs.
4940 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4941 variables.
4942 (i386fbsd4_sc_reg_offset): New variable.
4943 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4944 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4945 TDEP->sc_sp_offset.
4946 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4947 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4948 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4949 Remove variables.
4950 (i386nbsd_sc_reg_offset): New variable.
4951 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4952 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4953 TDEP->sc_sp_offset.
4954 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4955 Remove variables.
4956 (i386obsd_sc_reg_offset): New variable.
4957 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4958 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4959 TDEP->sc_sp_offset.
4960 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4961 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4962 for frame pointer offset in `struct sigcontext'.
4963
4964 2003-05-31 Andrew Cagney <cagney@redhat.com>
4965
4966 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4967 architecture methods call_dummy_words, sizeof_call_dummy_words,
4968 push_return_address, store_struct_return, and fix_call_dummy. Set
4969 push_dummy_call instead of deprecated_push_arguments.
4970 (mips_store_struct_return): Delete function.
4971 (mips_fix_call_dummy): Delete function.
4972 (mips_push_return_address): Delete function.
4973 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4974 RA_REGNUM and T9_REGNUM.
4975 (mips_n32n64_push_dummy_call): Ditto for
4976 mips_n32n64_push_arguments.
4977 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4978 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4979
4980 2003-05-31 Andrew Cagney <cagney@redhat.com>
4981
4982 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
4983 "dummy_addr" to "bp_addr".
4984 * infcall.c (call_function_by_hand): Pass "funaddr" to
4985 gdbarch_push_dummy_call.
4986 * gdbarch.h, gdbarch.c: Re-generate.
4987 * i386-tdep.c (i386_push_dummy_call): Update.
4988 * arm-tdep.c (arm_push_dummy_call): Update.
4989 * d10v-tdep.c (d10v_push_dummy_call): Update.
4990
4991 2003-05-31 Mark Kettenis <kettenis@gnu.org>
4992
4993 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
4994 variable declarations.
4995 (x86_64_register_number, x86_64_register_name): Remove prototypes.
4996 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
4997 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
4998 x86_64_init_frame_pc, x86_64_init_frame_pc,
4999 x86_64_function_has_prologue): Remove prototypes.
5000 (X86_64_NUM_GREGS): New define.
5001 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5002 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5003 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5004 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5005 XMM1_REGNUM): Remove defines.
5006 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5007 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5008 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5009 X86_64_XMM1_REGNUM): New defines.
5010 (struct x86_64_register_info): Renamed from `struct
5011 register_info'. Remove `size' member.
5012 (x86_64_register_info_table): Remove variable.
5013 (x86_64_register_info): New variable.
5014 (X86_64_NUM_REGS): New define.
5015 (X86_64_NUM_GREGS): Remove define.
5016 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5017 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5018 Remove variables.
5019 (x86_54_dwarf2_reg_to_regnum): Remove function.
5020 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5021 (x86_64_dwarf_reg_to_regnum): New function.
5022 (x86_64_register_name): Rewrite.
5023 (x86_64_register_raw_size): Remove function.
5024 (x86_64_register_byte_table): Remove variable.
5025 (x86_64_register_byte): Remove function.
5026 (x86_64_register_virtual_type): Remove function.
5027 (x86_64_register_type): New function.
5028 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5029 x86_64_register_convert_to_raw): Remove functions.
5030 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5031 (x86_64_use_struct_convention): Make static. Adjust for renamed
5032 defines.
5033 (x86_64_frame_init_saved_regs): Remove function.
5034 (x86_64_push_arguments): Make static. Change to accept a regcache
5035 as argument.
5036 (x86_64_store_return_value, x86_64_extract_return_value): Make
5037 static. Rewrite based on i386 counterparts.
5038 (x86_64_push_dummy_call): New function.
5039 (X86_64_NUM_SAVED_REGS): New define.
5040 (x86_64_register_number): Remove function.
5041 (x86_64_store_struct_return): Remove function.
5042 (x86_64_frameless_function_invocation,
5043 x86_64_function_has_prologue): Remove functions.
5044 (PROLOG_BUFSIZE): Remove define.
5045 (struct x86_64_frame_cache): New structure.
5046 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5047 x86_64_frame_cache, x86_64_frame_this_id,
5048 x86_64_frame_prev_register, x86_64_frame_p,
5049 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5050 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5051 functions.
5052 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5053 variables.
5054 (x86_64_skip_prologue): Rewrite in terms of
5055 x86_64_analyze_prologue.
5056 (x86_64_frame_base_address): New function.
5057 (x86_64_frame_base): New variable.
5058 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5059 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5060 set deprecated_fp_regnum, deprecated_register_size,
5061 deprecated_register_bytes, register_raw_size, register_byte,
5062 register_virtual_type, register_convertiable,
5063 register_convert_to_virtual, convert_to_raw,
5064 deprecated_get_saved_register, deprecated_target_read_fp,
5065 deprecated_push_arguments, deprecated_push_return_address,
5066 deprecated_pop_frame, deprecated_store_struct_return,
5067 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5068 frameless_function_invocation, deprecated_frame_saved_pc,
5069 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5070 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5071 deprecated_init_frame_pc and virtual_frame_pointer. Call
5072 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5073 and x86_64_frame_p. Call frame_base_set_default to register
5074 x86_64_frame_base.
5075 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5076 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5077 (_initialize_x86_64_tdep): Remove function.
5078 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5079 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5080 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5081 define.
5082 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5083 (x86_64_linux_sigcontext_addr): Rewrite.
5084 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5085 x86_64_linux_frame_saved_pc): Remove functions.
5086 (x86_64_linux_pc_in_sigtramp): Renamed from
5087 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5088 trampoline.
5089 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5090 Remove_functions.
5091 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5092 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5093 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5094 (x86_64_regmap): Rename to regmap.
5095 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5096 x86_64_num_gregs.
5097 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5098 x86_64_regmap.
5099 (x86_64_fxsave_offset): Remove function.
5100 (supply_fpregset): Simply call x86_64_supply_fxsave.
5101 (fill_fpregset): Simply call x86_64_fill_fxsave.
5102 (fetch_inferior_registers, store_inferior_registers): Avoid
5103 asignment in if-statement.
5104 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5105 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5106 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5107 (fetch_core_registers): Remove function.
5108 (linux_elf_core_fns): Remove.
5109 (offsetoff): Don't define.
5110 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5111 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5112 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5113 add core-regset.o.
5114 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5115 protection against multiple includes instead of NM_X86_64_h. Add
5116 various comments. Include "config/nm-linux.h". Don't include
5117 <signal.h>.
5118 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5119 GET_THREAD_SIGNALS): Remove defines.
5120 (x86_64_register_u_addr, kernel_u_size,
5121 lin_thread_get_thread_signals): Remove prototypes.
5122 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5123 [HAVE_LINK_H]: Don't include "solib.h".
5124 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5125 * config/i386/tm-x86-64linux.h: Fix comments.
5126 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5127 x86-64-tdep.o): Update dependencies.
5128
5129 2003-05-30 Andrew Cagney <cagney@redhat.com>
5130
5131 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5132 Change parameter type to a "struct regcache *".
5133
5134 * gdbarch.sh: Regardless of the multi-arch level, always define
5135 the macro when not already defined.
5136 * gdbarch.h, gdbarch.c: Re-generate.
5137
5138 2003-05-30 Richard Henderson <rth@redhat.com>
5139
5140 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5141 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5142 (alpha_mdebug_frame_this_id): Likewise.
5143 (alpha_mdebug_frame_prev_register): Likewise.
5144 (alpha_mdebug_frame_base_address): Likewise.
5145 (alpha_mdebug_frame_locals_address): Likewise.
5146 (alpha_mdebug_frame_args_address): Likewise.
5147 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5148 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5149 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5150 loop increment.
5151 (alpha_heuristic_frame_this_id): Make static.
5152 (alpha_heuristic_frame_prev_register): Likewise.
5153 (alpha_heuristic_frame_base_address): Likewise.
5154 * alpha-tdep.h: Update.
5155
5156 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5157
5158 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5159 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5160 defenitions.
5161 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5162 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5163 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5164 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5165 I386_ST0_REGNUM): New defines.
5166 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5167 codestream_get): Remove define.
5168 (codestream_next_addr, condestream_addr, condestream_buf,
5169 codestream_off, codestream_cnt): Remove variables.
5170 (codestream_fill, codestream_seek, codestream_read): Remove
5171 functions.
5172 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5173 functionality.
5174 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5175 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5176 i386_frame_saved_pc, i386_saved_pc_after_call,
5177 i386_frame_num_args, i386_frame_init_saved_regs,
5178 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5179 i386_push_arguments): Remove functions.
5180 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5181 functionality. Use i386_analyze_prologue instead of
5182 i386_get_frame_setup.
5183 (I386_NUM_SAVED_REGS): New define.
5184 (struct i386_frame_cache): New structure.
5185 (i386_alloc_frame_cache, i386_analyze_struct_return,
5186 i386_skip_probe, i386_analyze_frame_setup,
5187 i386_analyze_register_saves, i386_analyze_prologue,
5188 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5189 i386_frame_prev_register, i386_sigtramp_frame_cache,
5190 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5191 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5192 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5193 New functions.
5194 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5195 New variables.
5196 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5197 I386_EAX_REGNUM and I386_EDX_REGNUM.
5198 (i386_extract_return_value, i386_store_return_value): Use
5199 I386_ST0_REGNUM where appropriate.
5200 (i386_extract_struct_value_address): Rewrite to use extract_address.
5201 (i386_svr4_pc_in_sigtramp): Add comment.
5202 (i386_svr4_sigcontext_addr): Rewrite.
5203 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5204 TDEP->sc_sp_offset.
5205 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5206 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5207 of new defines. Set push_dummy_call, don't set
5208 deprecated_push_arguments, deprecated_push_return_address,
5209 deprecated_pop_frame. Don't set parm_boundary. Don't set
5210 deprecated_frame_chain, deprecated_frame_saved_pc,
5211 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5212 save_dummy_frame_tos, unwind_pc. Call
5213 frame_unwind_append_predicate and frame_base_set_default. Don't
5214 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5215 Don't set frameless_function_invocation. Don't set
5216 deprecated_register_bytes, deprecated_register_size,
5217 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5218 * i386-linux-tdep.c: Fix formatting in some comments.
5219 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5220 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5221 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5222 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5223 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5224 redundant parentheses.
5225 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5226 (i386_linux_sigcontext_addr): Use it. Rewrite.
5227 (find_minsym_and_objfile): Change name of second argument.
5228 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5229 changed. Use frame_pc_unwind instead of
5230 DEPRECATED_SAVED_PC_AFTER_CALL.
5231 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5232 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5233 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5234 unwinder.
5235 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5236 "dummy-frame.h".
5237 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5238 (_initialize_i386_cygwin_tdep): New prototype.
5239 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5240 deprecated_frame_chain_valid.
5241 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5242 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5243 Rely on the SVR4 defaults.
5244 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5245 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5246
5247 2003-05-30 Andrew Cagney <cagney@redhat.com>
5248
5249 * infcall.c (call_function_by_hand): Always call
5250 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5251
5252 2003-05-30 Richard Henderson <rth@redhat.com>
5253
5254 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5255 increment.
5256
5257 2003-05-29 Jim Blandy <jimb@redhat.com>
5258
5259 Use gdbarch methods for solib stuff on PowerPC Linux.
5260 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5261 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5262 show through.
5263 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5264 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5265 giving the same effect as the #definitions above.
5266
5267 2003-05-29 Adam Fedor <fedor@gnu.org>
5268
5269 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5270 (find_implementation_from_class): Replace it with the standard
5271 case i.e. do nothing.
5272
5273 2003-05-29 Richard Henderson <rth@redhat.com>
5274
5275 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5276 (alpha_linux_sigtramp_offset): Use it. Make static.
5277 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5278 update for new frame model.
5279 * alpha-mdebug-tdep.c: New file.
5280 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5281 (alpha_osf1_init_abi): Install it.
5282 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5283 (linked_proc_desc_table): Remove.
5284 (alpha_frame_past_sigtramp_frame): Remove.
5285 (alpha_dynamic_sigtramp_offset): Remove.
5286 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5287 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5288 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5289 (push_sigtramp_desc): Remove.
5290 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5291 (alpha_cannot_store_register): Likewise.
5292 (alpha_sigcontext_addr): Remove.
5293 (alpha_find_saved_regs): Remove.
5294 (alpha_frame_init_saved_regs): Remove.
5295 (alpha_init_frame_pc_first): Remove.
5296 (read_next_frame_reg): Remove.
5297 (alpha_frame_saved_pc): Remove.
5298 (alpha_saved_pc_after_call): Remove.
5299 (temp_proc_desc, temp_saved_regs): Remove.
5300 (alpha_about_to_return): Remove.
5301 (cached_proc_desc): Remove.
5302 (alpha_frame_chain): Remove.
5303 (alpha_print_extra_frame_info): Remove.
5304 (alpha_init_extra_frame_info): Remove.
5305 (alpha_frame_locals_address): Remove.
5306 (alpha_frame_args_address): Remove.
5307 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5308 (alpha_push_dummy_frame): Remove.
5309 (alpha_pop_frame): Remove.
5310 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5311 (alpha_read_insn): New.
5312 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5313 for different insn encodings.
5314 (alpha_in_lenient_prologue): Remove.
5315 (struct alpha_sigtramp_unwind_cache): New.
5316 (alpha_sigtramp_frame_unwind_cache): New.
5317 (alpha_sigtramp_register_address): New.
5318 (alpha_sigtramp_frame_this_id): New.
5319 (alpha_sigtramp_frame_prev_register): New.
5320 (alpha_sigtramp_frame_unwind): New.
5321 (alpha_sigtramp_frame_p): New.
5322 (struct alpha_heuristic_unwind_cache): New.
5323 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5324 don't count nop insns that occur between functions.
5325 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5326 heuristic_proc_desc, but without the mdebug wrapping.
5327 (alpha_heuristic_frame_this_id): New.
5328 (alpha_heuristic_frame_prev_register): New.
5329 (alpha_heuristic_frame_unwind): New.
5330 (alpha_heuristic_frame_p): New.
5331 (alpha_heuristic_frame_base_address): New.
5332 (alpha_heuristic_frame_base): New.
5333 (alpha_unwind_dummy_id): New.
5334 (alpha_unwind_pc): New.
5335 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5336 frame related deprecated initializations; install replacements.
5337 (alpha_dump_tdep): Remove.
5338 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5339 (alpha_read_insn, alpha_after_prologue,
5340 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5341 alpha_heuristic_frame_prev_register,
5342 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5343 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5344 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5345 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5346
5347 2003-05-29 Andrew Cagney <cagney@redhat.com>
5348
5349 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5350 dependant on the availability of ASSERT_FUNCTION.
5351 (ASSERT_FUNCTION): Do not define when there is no function name.
5352
5353 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5354
5355 From Jimi X <jimix@watson.ibm.com>:
5356 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5357
5358 2003-05-28 Jim Blandy <jimb@redhat.com>
5359
5360 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5361 argument to ptrace to int; the system headers should give it the
5362 right type, and pointers don't fit in ints on powerpc64-*-*.
5363
5364 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5365
5366 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5367 DW_TAG_catch_block.
5368
5369 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5370
5371 * stabsread.c (dbx_lookup_type): Make static.
5372 (read_type): Ditto.
5373 (add_undefined_type): Ditto.
5374 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5375 not export.
5376
5377 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5378
5379 * hpread.c (hpread_has_name): Make static.
5380 (hpread_psymtab_to_symtab): Ditto.
5381 (file_exists): Ditto.
5382 (hpread_call_pxdb): Ditto.
5383 (hpread_pxdb_needed): Ditto.
5384 (hpread_quick_traverse): Ditto.
5385 (hpread_get_header): Ditto.
5386 (hpread_get_lntt): Ditto.
5387 (hpread_get_slt): Ditto.
5388 (class_of): Ditto.
5389
5390 2003-05-25 Andreas Schwab <schwab@suse.de>
5391
5392 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5393 stack_align and deprecated_extra_stack_alignment_needed.
5394 (m68k_stack_align): Delete.
5395
5396 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5397 (m68k_register_virtual_size): Likewise.
5398 (altos_skip_prologue): Remove obsolete function.
5399 (isi_frame_num_args): Likewise.
5400 (news_frame_num_args): Likewise.
5401 (m68k_fix_call_dummy): Make static.
5402 (m68k_push_dummy_frame): Likewise.
5403 (m68k_pop_frame): Likewise.
5404 (m68k_skip_prologue): Likewise.
5405 (m68k_frame_init_saved_regs): Likewise.
5406 (m68k_saved_pc_after_call): Likewise.
5407 (m68k_get_longjmp_target): Make multi-arch.
5408 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5409 structure. Register m68k_get_longjmp_target if enabled.
5410 * m68k-tdep.h (struct gdbarch_tdep): Define.
5411 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5412
5413 * Makefile.in (config.status): Also depend on configure.tgt
5414 and configure.host.
5415 (m68klinux-tdep.o): Update dependencies.
5416 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5417 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5418 (M68K_LINUX_JB_PC): Define.
5419 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5420 and take additional parameter.
5421 (m68k_linux_sigtramp_saved_pc): Update.
5422 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5423 m68k_linux_pc_in_sigtramp, in_plt_section,
5424 find_solib_trampoline_target.
5425 * config/m68k/tm-linux.h: Don't include any tm headers.
5426 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5427 (JB_ELEMENT_SIZE): Likewise.
5428 (JB_PC): Likewise.
5429 (GET_LONGJMP_TARGET): Likewise.
5430 (IN_SIGTRAMP): Likewise.
5431 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5432
5433 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5434
5435 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5436 (sparc32_push_arguments): Re-implement by calling
5437 sparc32_do_push_arguments.
5438
5439 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5440
5441 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5442 SPARC_O1_REGNUM): New defines.
5443 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5444 (sparc32_store_return_value): New function.
5445 (sparc_extract_struct_value_address): Rewrite to operate on a
5446 regcache.
5447 (sparc_gdbarch_init): Don't set
5448 deprecated_extract_struct_value_address. Set
5449 extract_struct_value_address instead. Don't set
5450 deprecated_extract_return_value and deprecated_store_return_value
5451 for 32-bit targets. Set extract_return_value and
5452 store_return_value instead.
5453 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5454 DEPRECTAED_EXTRACT_RETURN_VALUE,
5455 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5456 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5457 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5458 (sparc_store_return_value): Remove prototype.
5459 (sparc32_store_return_value): New prototype.
5460 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5461 Adjust prototypes.
5462
5463 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5464
5465 * sparcnbsd-tdep.c: Include "gdb_string.h".
5466
5467 2003-05-23 Andrew Cagney <cagney@redhat.com>
5468
5469 * p-valprint.c (pascal_val_print): Replace extract_address with
5470 the inline equivalent extract_unsigned_integer.
5471 * jv-valprint.c (java_value_print): Ditto.
5472 * ada-valprint.c (ada_val_print_1): Ditto.
5473 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5474
5475 2003-05-23 Theodore A. Roth <troth@openavr.org>
5476
5477 * blockframe.c (frameless_look_for_prologue): Remove unused
5478 after_prologue variable.
5479
5480 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5481
5482 * blockframe.c (get_pc_function_start): Rewrite to avoid
5483 asignments in if-statements.
5484
5485 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5486
5487 Committed by Elena Zannoni <ezannoni@redhat.com>.
5488 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5489 files, don't relocate absolute symbols (and do use mst_abs).
5490
5491 2003-05-23 Andrew Cagney <cagney@redhat.com>
5492
5493 * objc-lang.c: Include "gdb_assert.h".
5494 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5495 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5496 (gdb_check, gdb_check_fatal): Delete functions.
5497 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5498 gdb_assert.
5499 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5500 * Makefile.in (objc-lang.o): Update dependencies.
5501
5502 2003-05-22 Ian Lance Taylor <ian@airs.com>
5503
5504 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5505 with fprintf_filtered, not fprintf_unfiltered.
5506
5507 2003-05-22 Andrew Cagney <cagney@redhat.com>
5508
5509 * stack.c (frame_info): Inline extract_address, replacing it with
5510 extract_unsigned_integer.
5511 * findvar.c (unsigned_pointer_to_address): Ditto.
5512 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5513 * dwarf2expr.c (dwarf2_read_address): Ditto.
5514 * frame.c (frame_pc_unwind): Update comment.
5515 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5516
5517 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5518
5519 * infptrace.c (detach): Call print_sys_errmsg rather than
5520 perror_with_name to issue warning message when errno is non-zero
5521 after calling ptrace detach.
5522
5523 2003-05-21 J. Brobecker <brobecker@gnat.com>
5524
5525 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5526 macro definitions from here...
5527 * hppa-tdep.c: ...to there.
5528
5529 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5530
5531 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5532 register_ptrace_addr(). Fix all callers.
5533
5534 2003-05-21 Andreas Schwab <schwab@suse.de>
5535
5536 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5537 dependencies.
5538 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5539 end.
5540 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5541 (_initialize_m68k_linux_tdep): New function.
5542 (m68k_linux_frame_saved_pc): Make static.
5543 (m68k_linux_extract_return_value): Likewise.
5544 (m68k_linux_store_return_value): Likewise.
5545 (m68k_linux_extract_struct_value_address): Likewise.
5546 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5547 Remove.
5548 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5549 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5550 (DEPRECATED_FRAME_SAVED_PC): Remove.
5551
5552 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5553
5554 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5555 regset numbering rather than our own.
5556
5557 2003-05-19 David Carlton <carlton@bactrian.org>
5558
5559 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5560
5561 2003-05-19 David Carlton <carlton@bactrian.org>
5562
5563 Partial fix for PR c++/827.
5564 * cp-support.h: Include symtab.h.
5565 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5566 * cp-namespace.c: Update contributors.
5567 (cp_lookup_symbol_nonlocal): New.
5568 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5569 (lookup_symbol_file): Ditto.
5570 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5571 * block.h: Declare block_scope, block_using, block_global_block.
5572 * block.c (block_scope): New.
5573 (block_using, block_global_block): Ditto.
5574 * Makefile.in (cp_support_h): Depend on symtab_h.
5575 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5576
5577 2003-05-19 David Carlton <carlton@bactrian.org>
5578
5579 * language.h (struct language_defn): Add 'la_value_of_this'
5580 and 'la_lookup_symbol_nonlocal' members.
5581 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5582 lookup_symbol_static, lookup_symbol_global,
5583 lookup_symbol_aux_block.
5584 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5585 if we should search fields of this and how to do static/global
5586 lookup.
5587 (lookup_symbol_aux_block): Make extern.
5588 (basic_lookup_symbol_nonlocal): New.
5589 (lookup_symbol_static, lookup_symbol_global): Ditto.
5590 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5591 'la_lookup_symbol_nonlocal' members.
5592 * c-lang.c (c_language_defn, cplus_language_defn)
5593 (asm_language_defn, minimal_language_defn): Ditto.
5594 * jv-lang.c (java_language_defn): Ditto.
5595 * language.c (unknown_language_defn, auto_language_defn)
5596 (local_language_defn): Ditto.
5597 * m2-lang.c (m2_language_defn): Ditto.
5598 * objc-lang.c (objc_language_defn): Ditto.
5599 * scm-lang.c (scm_language_defn): Ditto.
5600 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5601 * p-lang.c (pascal_language_defn): Ditto for both.
5602 * Makefile.in (f-lang.o): Depend on value_h.
5603 (p-lang.o): Ditto.
5604
5605 2003-05-19 David Carlton <carlton@bactrian.org>
5606
5607 * block.h: Declare block_static_block.
5608 * block.c (block_static_block): New.
5609 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5610 lookup_symbol_aux_local, calling block_static_block instead.
5611 (lookup_symbol_aux_local): Delete 'static_block' argument.
5612
5613 2003-05-19 David Carlton <carlton@bactrian.org>
5614
5615 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5616
5617 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5618
5619 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5620 register numbers mapping.
5621
5622 2003-05-18 Adam Fedor <fedor@gnu.org>
5623
5624 * symtab.c (completion_list_objc_symbol): New function.
5625 (make_symbol_completion_list): Use it to add ObjC symbols
5626 when looking though the list.
5627 (language_search_unquoted_string): New function.
5628 (make_file_symbol_completion_list): Use it.
5629
5630 2003-05-18 Andreas Schwab <schwab@suse.de>
5631
5632 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5633 dependencies.
5634 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5635 as m68k_linux_extract_return_value.
5636 (DEPRECATED_STORE_RETURN_VALUE): Define as
5637 m68k_linux_store_return_value.
5638 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5639 m68k_linux_extract_struct_value_address.
5640 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5641 get_next_frame, get_frame_base, get_frame_pc.
5642 (m68k_linux_frame_saved_pc): Use get_frame_base.
5643 (m68k_linux_extract_return_value): New function.
5644 (m68k_linux_store_return_value): New function.
5645 (m68k_linux_extract_struct_value_address): New function.
5646 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5647
5648 * c-exp.y (typebase): Remove duplicate occurence of
5649 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5650 of lookup_signed_typename.
5651
5652 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5653
5654 * dwarf2loc.c (find_location_expression): Change type of second
5655 argument to `size_t *'.
5656 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5657 for size variable.
5658
5659 2003-05-18 David Carlton <carlton@bactrian.org>
5660
5661 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5662 'linkage_name'. Add comment.
5663 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5664 'linkage_name'.
5665 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5666 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5667 (lookup_block_symbol): Ditto.
5668
5669 2003-05-16 Andrew Cagney <cagney@redhat.com>
5670
5671 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5672 * gdbarch.h, gdbarch.c: Re-generate.
5673 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5674 * TODO (REGISTER_BYTES): Delete reference.
5675 * alpha-tdep.c (alpha_gdbarch_init): Update.
5676 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5677 * x86-64-tdep.c (x86_64_init_abi): Update.
5678 * vax-tdep.c (vax_gdbarch_init): Update.
5679 * v850-tdep.c (v850_gdbarch_init): Update.
5680 * sparc-tdep.c (sparc_gdbarch_init): Update.
5681 * sh-tdep.c (sh_gdbarch_init): Update.
5682 * s390-tdep.c (s390_gdbarch_init): Update.
5683 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5684 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5685 (ns32k_gdbarch_init_32382): Update.
5686 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5687 * mcore-tdep.c (mcore_gdbarch_init): Update.
5688 * m68k-tdep.c (m68k_gdbarch_init): Update.
5689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5690 * ia64-tdep.c (ia64_gdbarch_init): Update.
5691 * i386-tdep.c (i386_gdbarch_init): Update.
5692 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5693 * hppa-tdep.c (hppa_gdbarch_init): Update.
5694 * h8300-tdep.c (h8300_gdbarch_init): Update.
5695 * frv-tdep.c (frv_gdbarch_init): Update.
5696 * cris-tdep.c (cris_gdbarch_init): Update.
5697 * avr-tdep.c (avr_gdbarch_init): Update.
5698 * arm-tdep.c (arm_gdbarch_init): Update.
5699 * sparc-tdep.c (sparc_pop_frame): Update.
5700 * rs6000-tdep.c (rs6000_pop_frame): Update.
5701 * remote.c (init_remote_state): Update.
5702 (remote_prepare_to_store): Update.
5703 * remote-vx.c (vx_prepare_to_store): Update.
5704 * remote-sds.c (sds_fetch_registers): Update.
5705 (sds_prepare_to_store): Update.
5706 * remote-array.c: Update.
5707 * regcache.c (init_legacy_regcache_descr): Update.
5708 (init_regcache_descr): Update.
5709 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5710 (mips_o64_extract_return_value): Update.
5711 * irix5-nat.c (fetch_core_registers): Update.
5712 * irix4-nat.c (fetch_core_registers): Update.
5713 * i386-tdep.h: Update.
5714 * hppa-tdep.c (pa_do_registers_info): Update.
5715 (pa_do_strcat_registers_info): Update.
5716 * cris-tdep.c (cris_register_bytes_ok): Update.
5717 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5718 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5719 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5720 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5721 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5722 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5723 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5724 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5725 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5726 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5727 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5728 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5729 (REGISTER_BYTES_OK): Update.
5730 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5731 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5732
5733 2003-05-16 Ian Lance Taylor <ian@airs.com>
5734
5735 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5736 (vax_print_insn, print_insn_arg): Remove static functions.
5737 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5738 print_insn_vax from opcodes library.
5739 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5740
5741 2003-05-15 Andrew Cagney <cagney@redhat.com>
5742
5743 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5744 * target.h (memory_breakpoint_from_pc): Delete declaration.
5745 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5746 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5747 * monitor.c (monitor_insert_breakpoint): Use
5748 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5749 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5750 * gdbarch.h, gdbarch.c: Re-generate.
5751 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5752 (sparc_gdbarch_init): Set breakpoint_from_pc to
5753 sparc_breakpoint_from_pc.
5754 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5755 (BREAKPOINT_FROM_PC): Define.
5756 (sparc_breakpoint_from_pc): Declare.
5757 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5758 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5759 (BREAKPOINT_FROM_PC): Define.
5760 (BREAKPOINT): Delete macro.
5761 * target.h: Update comment.
5762 * s390-tdep.c (s390_gdbarch_init): Update comments.
5763 * remote.c: Update comments.
5764 * remote-mips.c: Update comments.
5765 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5766 * mem-break.c: Update comment.
5767 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5768 (ia64_memory_insert_breakpoint): Update.
5769 * config/sparc/tm-sparc.h: Update comment.
5770 * config/pa/tm-hppa64.h: Update comment.
5771 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5772 (rs6000_breakpoint_from_pc): Update.
5773 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5774 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5775 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5776 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5777 (mips_breakpoint_from_pc): Update.
5778 (mips_dump_tdep): Update.
5779
5780 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5781 * minsyms.c (lookup_minimal_symbol): Inline
5782 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5783
5784 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5785 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5786 * p-lang.c (pascal_printstr): Ditto.
5787 * objc-lang.c (objc_printstr): Ditto.
5788 * m2-lang.c (m2_printstr): Ditto.
5789 * jv-valprint.c (java_print_value_fields): Ditto.
5790 * f-lang.c (f_printstr): Ditto.
5791 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5792 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5793 for repeat_count_threshold.
5794 * Makefile.in (cp-valprint.o): Update dependencies.
5795
5796 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
5797
5798 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5799 (examine_prologue): Support looking through leaf functions, knowing
5800 they start with mov r2,r12. Support skipping over indirect stores
5801 of the input registers. Upon hitting a non-nop branch instruction
5802 or predicated instruction, bail out by setting lim_pc to the current
5803 pc value in the loop. At the end, if the lim_pc value is still
5804 beyond our calculated value and we have trust_limit set,
5805 use the lim_pc value.
5806
5807 2003-05-15 Andrew Cagney <cagney@redhat.com>
5808
5809 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5810 generic_find_dummy_frame.
5811 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5812 (deprecated_generic_find_dummy_frame): Update.
5813 (deprecated_read_register_dummy): Update.
5814 * frame.c (deprecated_generic_get_saved_register): Update.
5815
5816 2003-05-15 Theodore A. Roth <troth@openavr.org>
5817
5818 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5819 (avr_gdbarch_init): Set breakpoint_from_pc method.
5820
5821 2003-05-15 Andrew Cagney <cagney@redhat.com>
5822
5823 * regcache.c (build_regcache): Set deprecated_register_valid
5824 directly.
5825 (deprecated_grub_regcache_for_register_valid): Delete function.
5826 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5827 declaration.
5828
5829 2003-05-15 David Carlton <carlton@bactrian.org>
5830
5831 Committed by Elena Zannoni <ezannoni@redhat.com>
5832 * symtab.c (lookup_symbol_aux): Delete calls to
5833 lookup_symbol_aux_minsyms.
5834 (lookup_symbol_aux_minsyms): Comment out function and
5835 prototype. Delete lookup by mangled name.
5836
5837 2003-05-14 Kevin Buettner <kevinb@redhat.com>
5838
5839 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5840 correctly indicate an empty stack and ``stack_allocated'' to the
5841 indicate the number of elements initially allocated.
5842 (dwarf_expr_grow_stack): Simplify method for computing new
5843 stack size. Don't loop infinitely if ``stack_len'' is zero.
5844 (execute_stack_op): Move ``ctx->in_reg'' initialization
5845 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5846 be used in conjuction with DW_OP_piece. Revise error message
5847 accordingly.
5848
5849 2003-05-14 Theodore A. Roth <troth@openavr.org>
5850
5851 * MAINTAINERS: Update my email address.
5852 * avr-tdep.c: Ditto.
5853
5854 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
5855
5856 * symtab.h (enum domain_enum): Rename from namespace_enum.
5857 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5858 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5859 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5860 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5861 TYPES_NAMESPACE, METHODS_NAMESPACE.
5862 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5863 (struct symbol, struct partial_symbol): Rename field
5864 'namespace_enum namespace' to 'domain_enum domain'.
5865 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5866 Delete old define kludge for namespace.
5867
5868 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5869 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5870 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5871 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5872 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5873 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5874 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5875 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5876 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5877 occurrences of the above.
5878
5879 2003-05-14 Ian Lance Taylor <ian@airs.com>
5880
5881 * Makefile.in (install-only): Use $(SHELL) when running
5882 mkinstalldirs.
5883
5884 2003-05-13 Ian Lance Taylor <ian@airs.com>
5885
5886 * MAINTAINERS (write after approval): Add myself.
5887
5888 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5889 second and third arguments.
5890 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5891 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5892
5893 2003-05-13 Andrew Cagney <cagney@redhat.com>
5894
5895 * defs.h (store_address): Delete declaration.
5896 findvar.c (store_address): Delete function.
5897 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5898 store_unsigned_integer.
5899 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5900 * v850-tdep.c (v850_push_arguments): Ditto.
5901 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5902 * sh-tdep.c (sh64_get_saved_register): Ditto.
5903 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5904 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5905 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5906 (mips_get_saved_register): Ditto.
5907 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5908 (find_func_descr, ia64_push_arguments): Ditto.
5909 * i386-tdep.c (i386_push_arguments): Ditto.
5910 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5911 * frv-tdep.c (frv_push_arguments): Ditto.
5912 * frame.c (legacy_saved_regs_prev_register): Ditto.
5913 (deprecated_generic_get_saved_register): Ditto.
5914 * findvar.c (unsigned_address_to_pointer): Ditto.
5915 * dwarf2read.c (dwarf2_const_value): Ditto.
5916 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5917 * alpha-tdep.c (alpha_push_arguments): Ditto.
5918
5919 2003-05-12 J. Brobecker <brobecker@gnat.com>
5920
5921 * NEWS: Mention that the hppa-hpux port has been partially
5922 multiarched (32bit ABIT only, so far).
5923
5924 2003-05-11 Andrew Cagney <cagney@redhat.com>
5925
5926 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5927 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5928 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5929 sim/testsuite/sim/arm/misaligned2.ms, and
5930 sim/testsuite/sim/arm/misaligned3.ms.
5931 * disasm.h (struct ui_file): Add opaque struct declaration.
5932 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5933 * frame.h (struct ui_file): Ditto.
5934
5935 2003-05-11 Mark Kettenis <kettenis@gnu.org>
5936
5937 * value.h: Pretty print.
5938
5939 2003-05-10 Mark Kettenis <kettenis@gnu.org>
5940
5941 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5942
5943 2003-05-08 Andrew Cagney <cagney@redhat.com>
5944
5945 * regcache.h (max_register_size): Delete declaration.
5946 * regcache.c (max_register_size): Delete function.
5947 (struct regcache_descr): Delete field "max_register_size".
5948 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5949 registers fit in MAX_REGISTER_SIZE.
5950 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5951 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5952 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5953 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5954 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5955 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5956 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5957 * dve3900-rom.c, hppa-tdep.c: Ditto.
5958
5959 2003-05-08 David Carlton <carlton@math.stanford.edu>
5960
5961 * valops.c (push_word): Fix typo.
5962
5963 2003-05-08 Andrew Cagney <cagney@redhat.com>
5964
5965 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5966 * gdbarch.h: Re-generate.
5967 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5968 (legacy_max_register_raw_size): Delete declaration.
5969 * regcache.c (legacy_max_register_raw_size): Delete function.
5970 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5971 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5972 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5973 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5974 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5975 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5976 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5977 * findvar.c, dwarf2cfi.c: Ditto.
5978
5979 2003-05-08 Andrew Cagney <cagney@redhat.com>
5980
5981 * mips-tdep.c (read_signed_register): New function, moved to here
5982 from "regcache.c".
5983 (read_signed_register_pid): Ditto.
5984 * regcache.c (read_signed_register_pid): Delete function, moved to
5985 "mips-tdep.c".
5986 (read_signed_register): Ditto.
5987 * regcache.h (read_signed_register): Delete declaration.
5988 (read_signed_register_pid): Delete declaration.
5989
5990 2003-05-08 Andrew Cagney <cagney@redhat.com>
5991
5992 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
5993 * gdbarch.h: Re-generate.
5994 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
5995 (legacy_max_register_virtual_size): Delete declaration.
5996 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
5997 * d10v-tdep.c (d10v_print_registers_info): Ditto.
5998 * tracepoint.c (memrange_sortmerge): Ditto.
5999 * sparc-tdep.c (sparc_print_registers): Ditto.
6000 * regcache.c (legacy_max_register_virtual_size): Delete function.
6001
6002 2002-05-08 J. Brobecker <brobecker@gnat.com>
6003
6004 * fork-child.c (escape_bang_in_quoted_argument): New function.
6005 (fork_inferior): Escape '!' characters in quoted arguments
6006 only when needed.
6007
6008 2003-05-08 J. Brobecker <brobecker@gnat.com>
6009
6010 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6011 the language of the CU is not currently supported by GDB.
6012
6013 2003-05-08 J. Brobecker <brobecker@gnat.com>
6014
6015 * defs.h (language): Add language_minimal enum value.
6016 * c-lang.c (minimal_language_defn): New language definition.
6017 (_initialize_c_language): Add the new minimal language to the list
6018 of languages known to GDB.
6019
6020 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6021
6022 * frame.c (get_frame_type): Don't attempt to lazily initialize
6023 frame's unwinder for legacy frames.
6024
6025 2003-05-07 Andrew Cagney <cagney@redhat.com>
6026
6027 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6028 and "regcache" parameters.
6029 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6030
6031 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6032
6033 * dwarf2read.c (dwarf_decode_lines): Only use output of
6034 check_cu_functions() when calling record_line(). Do not update
6035 the current address.
6036
6037 2003-05-07 Andrew Cagney <cagney@redhat.com>
6038
6039 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6040 code.
6041
6042 2003-05-07 Jim Blandy <jimb@redhat.com>
6043
6044 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6045 'maint info symtabs' and 'maint info psymtabs'.
6046 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6047 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6048 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6049 Declarations updated.
6050 * maint.c (maintenance_list_command): Delete.
6051 (_initialize_maint_cmds): Update calls to add_cmd.
6052 * gdbcmd.h (maintenancelistlist): Delete declaration.
6053 * cli/cli-cmds.c (maintenancelistlist): Delete.
6054 (init_cmd_lists): Don't initialize it.
6055 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6056
6057 2003-05-07 Andrew Cagney <cagney@redhat.com>
6058
6059 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6060 "regcache".
6061 (d10v_print_registers_info): Update.
6062 (d10v_dmap_register, d10v_imap_register): Delete functions.
6063 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6064 and "imap_register".
6065 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6066 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6067 * arch-utils.c (generic_remote_translate_xfer_address): Add
6068 "regcache" and "gdbarch" parameters.
6069 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6070 parameter. Change class to multi-arch.
6071 * gdbarch.h, gdbarch.c: Re-generate.
6072 * remote.c (remote_xfer_memory): Use
6073 gdbarch_remote_translate_xfer_address.
6074
6075 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6076
6077 * infrun.c (prev_pc): Move declaration ahead of proceed().
6078 (proceed): Refresh prev_pc value before resuming.
6079 (stop_stepping): Remove code to refresh prev_pc.
6080
6081 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6082
6083 * nto-tdep.c: Removed stray comment.
6084
6085 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6086
6087 * i386-nto-tdep.c: Fix old K&R function definitions.
6088 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6089 Also change add_show_from_set() call to add_setshow_cmd().
6090 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6091
6092 2003-05-05 Andrew Cagney <cagney@redhat.com>
6093
6094 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6095 (fprint_dummy_frames): New function.
6096 (maintenance_print_dummy_frames): New function.
6097 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6098 * frame.c (fprint_frame_id): Make global.
6099 * frame.h (fprint_frame_id): Declare.
6100 * Makefile.in (dummy-frame.o): Update dependencies.
6101
6102 2003-05-05 Andrew Cagney <cagney@redhat.com>
6103
6104 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6105 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6106 SIZEOF_CALL_DUMMY_WORDS.
6107 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6108 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6109 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6110 CALL_DUMMY_BREAKPOINT_OFFSET.
6111 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6112 CALL_DUMMY_START_OFFSET.
6113 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6114 * gdbarch.h, gdbarch.c: Re-generate.
6115 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6116 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6117 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6118 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6119 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6120 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6121 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6122 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6123 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6124 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6125 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6126 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6127 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6128 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6129 * config/sparc/tm-sparc.h: Update.
6130
6131 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6132
6133 * configure.tgt: Add i[3456]86-*-nto*.
6134 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6135 * nto-tdep.c: New file. Neutrino target support routines.
6136 * nto-tdep.h: New file. Neutrino target header.
6137 * config/tm-qnxnto.h: New file.
6138 * config/i386/i386nto.mt: New file.
6139 * config/i386/tm-i386nto.h: New file.
6140
6141 2003-05-04 Andrew Cagney <cagney@redhat.com>
6142
6143 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6144 (load_infrun_state): Ditto.
6145 (struct thread_info): Drop "prev_func_name" field.
6146 * thread.c (load_infrun_state): Update.
6147 (save_infrun_state): Update.
6148 * infrun.c (prev_func_name): Delete variable.
6149 (init_wait_for_inferior): Do not clear prev_func_name.
6150 (stop_stepping, keep_going, context_switch): Do not swap
6151 prev_func_name.
6152 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6153 instead of PC_IN_SIGTRAMP.
6154
6155 2003-05-04 Andrew Cagney <cagney@redhat.com>
6156
6157 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6158 REGISTER_BYTE with register_offset_hack.
6159 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6160 that REGISTER_BYTE is consistent with the regcache.
6161 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6162 * gdbarch.h, gdbarch.c: Regenerate.
6163
6164 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6165
6166 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6167 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6168
6169 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6170
6171 2003-05-03 J. Brobecker <brobecker@gnat.com>
6172
6173 From Thierry Schneider <tpschneider1@yahoo.com>
6174 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6175 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6176 (mi-cmd-symbol.o): Add rule.
6177
6178 2003-05-03 Andrew Cagney <cagney@redhat.com>
6179
6180 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6181 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6182 * gdbarch.h, gdbarch.c: Re-generate.
6183 * d10v-tdep.c (d10v_push_dummy_code): New function.
6184 (d10v_gdbarch_init): Set push_dummy_code.
6185 * infcall.c (legacy_push_dummy_code): New function.
6186 (generic_push_dummy_code): New function.
6187 (push_dummy_code): New function.
6188 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6189 instead of dummy_addr, to push_dummy_call. Move call to
6190 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6191 switch.
6192 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6193
6194 2003-05-03 Andrew Cagney <cagney@redhat.com>
6195
6196 * disasm.h (print_insn): Declare.
6197 * disasm.c (init_gdb_disassemble_info): New function.
6198 (gdb_disassembly): Call init_gdb_disassemble_info.
6199 (gdb_print_insn): New function.
6200 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6201 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6202 * mcore-tdep.c: Include "disasm.h"
6203 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6204 * d10v-tdep.c: Include "disasm.h".
6205 (display_trace): Call gdb_print_insn, instead of print_insn.
6206 (print_insn): Delete function.
6207 * printcmd.c: Include "disasm.h".
6208 (print_insn): Delete function.
6209 (print_formatted): Call gdb_print_insn, instead of print_insn.
6210 * Makefile.in (printcmd.o): Update dependencies.
6211 (mcore-tdep.o, d10v-tdep.o): Ditto.
6212
6213 2003-05-02 Andrew Cagney <cagney@redhat.com>
6214
6215 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6216 PC_REGNUM, re-indent.
6217 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6218 PC_REGNUM isn't set.
6219
6220 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6221 * gdbarch.h, gdbarch.c: Re-generate.
6222 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6223 register_virtual_size, pc_regnum, or register_bytes.
6224 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6225 (d10v_register_type): Use D10V_PC_REGNUM.
6226 (d10v_print_registers_info, d10v_read_pc): Ditto.
6227 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6228 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6229
6230 2003-05-02 David Carlton <carlton@bactrian.org>
6231
6232 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6233 the name with mstrsave.
6234
6235 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6236
6237 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6238 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6239 (host_charset_name, target_charset_name): New vars for use by
6240 set/show commands.
6241 (host_charset_enum, target_charset_enum): New enums for set/show
6242 commands.
6243 (set_charset_sfunc, set_host_charset_sfunc,
6244 set_target_charset_sfunc): New functions.
6245 (set_host_charset, set_target_charset): Make static.
6246 (list_charsets, set_host_charset_command,
6247 set_target_charset_command): Delete functions.
6248 (show_charset_command): Rewrite as....
6249 (show_charset): Hook this up with the set/show command mechanism.
6250 (_initialize_charset): Change names of charsets to match the
6251 set/show enums. Use host_charset_name and target_charset_name.
6252 Use set/show mechanism for charset, host-charset, target-charset
6253 commands. Do not make 'show host-charset' and 'show
6254 target-charset' be aliases of 'show charset'.
6255
6256 * charset.h (set_host_charset, set_target_charset): Don't export,
6257 they are not used outside the file.
6258
6259 2003-05-01 Andrew Cagney <cagney@redhat.com>
6260
6261 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6262 (gdb_disassembly): Make "di" non static, always initialize and
6263 cleanup. Always use dis_asm_read_memory.
6264 (gdb_dis_asm_read_memory): Delete function.
6265
6266 2003-05-01 Andrew Cagney <cagney@redhat.com>
6267
6268 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6269 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6270
6271 2003-04-30 Andrew Cagney <cagney@redhat.com>
6272
6273 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6274 "tm_print_insn_info".
6275 (TARGET_PRINT_INSN_INFO): Delete macro.
6276 (dis_asm_read_memory): Delete function declaration.
6277 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6278 (tm_print_insn_info): Delete variable definition.
6279 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6280 * gdbarch.h, gdbarch.c: Re-generate.
6281 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6282 "deprecated_tm_print_insn_info".
6283 * mcore-tdep.c (mcore_dump_insn): Ditto.
6284 * mips-tdep.c (mips_gdbarch_init): Ditto.
6285 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6286 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6287 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6288 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6289 instead of TARGET_PRINT_INSN_INFO, add comment.
6290 * s390-tdep.c (s390_get_frame_info): Instead of
6291 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6292 (s390_check_function_end, s390_is_sigreturn): Ditto.
6293 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6294 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6295 * disasm.c: Include "gdbcore.h".
6296 (_initialize_disasm): New function, initialize
6297 "deprecated_tm_print_insn_info".
6298 (deprecated_tm_print_insn_info): New variable.
6299 (dis_asm_read_memory): Moved from "corefile.c", made static.
6300 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6301 * Makefile.in (disasm.o): Update dependencies.
6302
6303 2003-04-30 Andrew Cagney <cagney@redhat.com>
6304
6305 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6306
6307 2003-04-29 Adam Fedor <fedor@gnu.org>
6308
6309 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6310 * infcall.c (find_function_addr): Make non-static.
6311 * infcall.h (find_function_addr): Declare.
6312 * Makefile.in (eval.o): Update dependencies.
6313
6314 2003-04-28 Adam Fedor <fedor@gnu.org>
6315
6316 * symtab.c (symbol_find_demangled_name): Check for and demangle
6317 ObjC symbols.
6318 (symbol_init_demangled_name): Init for language_objc as well.
6319
6320 2003-04-28 Andrew Cagney <cagney@redhat.com>
6321
6322 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6323 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6324 * gdbarch.h, gdbarch.c: Re-generate.
6325 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6326 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6327 * inferior.h (deprecated_read_fp): Rename read_fp.
6328 (generic_target_read_fp): Delete declaration.
6329 * regcache.c (generic_target_read_fp): Delete function.
6330 (deprecated_read_fp): Replace read_fp, use
6331 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6332 * d10v-tdep.c (d10v_read_fp): Delete function.
6333 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6334
6335 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6336 deprecated_target_read_fp to generic_target_read_fp.
6337 * sh-tdep.c (sh_gdbarch_init): Ditto.
6338 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6339 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6340 * frv-tdep.c (frv_gdbarch_init): Ditto.
6341
6342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6343 deprecated_fp_regnum.
6344 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6345 * vax-tdep.c (vax_gdbarch_init): Ditto.
6346 * v850-tdep.c (v850_gdbarch_init): Ditto.
6347 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6348 * sh-tdep.c (sh_gdbarch_init): Ditto.
6349 * s390-tdep.c (s390_gdbarch_init): Ditto.
6350 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6351 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6352 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6353 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6354 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6355 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6356 * i386-tdep.c (i386_gdbarch_init): Ditto.
6357 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6358 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6359 * frv-tdep.c (frv_gdbarch_init): Ditto.
6360 * cris-tdep.c (cris_gdbarch_init): Ditto.
6361 * avr-tdep.c (avr_gdbarch_init): Ditto.
6362 * arm-tdep.c (arm_gdbarch_init): Ditto.
6363 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6364
6365 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6366 * v850-tdep.c (v850_gdbarch_init): Ditto.
6367 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6368 * sh-tdep.c (sh_gdbarch_init): Ditto.
6369 * s390-tdep.c (s390_gdbarch_init): Ditto.
6370 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6371 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6372 * mips-tdep.c (mips_gdbarch_init): Ditto.
6373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6374 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6375 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6376 * frv-tdep.c (frv_gdbarch_init): Ditto.
6377 * avr-tdep.c (avr_gdbarch_init): Ditto.
6378 * arm-tdep.c (arm_gdbarch_init): Ditto.
6379
6380 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6381 DEPRECATED_FP_REGNUM.
6382 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6383 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6384 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6385 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6386 (sparc32_register_virtual_type): Ditto.
6387 * sh-tdep.c (sh64_frame_chain): Ditto.
6388 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6389 (sh_nofp_frame_init_saved_regs): Ditto.
6390 (sh64_nofp_frame_init_saved_regs): Ditto.
6391 (sh_fp_frame_init_saved_regs): Ditto.
6392 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6393 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6394 * procfs.c (procfs_fetch_registers): Ditto.
6395 (procfs_store_registers): Ditto.
6396 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6397 (store_inferior_registers, fetch_core_registers): Ditto.
6398 (fetch_kcore_registers, clear_regs): Ditto.
6399 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6400 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6401 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6402 * nlm/i386.c (do_status): Ditto.
6403 * mipsv4-nat.c (supply_gregset): Ditto.
6404 * mips-tdep.c: Ditto for comments.
6405 * mips-nat.c (fetch_inferior_registers): Ditto.
6406 (store_inferior_registers, fetch_core_registers): Ditto.
6407 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6408 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6409 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6410 (i386_do_pop_frame, i386_register_type): Ditto.
6411 * hppa-tdep.c (hppa_frame_chain): Ditto.
6412 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6413 (hppa_pop_frame, hppa_read_fp): Ditto.
6414 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6415 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6416 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6417 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6418 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6419 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6420 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6421 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6422 * blockframe.c: Ditto for comments.
6423 * arch-utils.h: Ditto for comments.
6424 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6425 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6426 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6427 * alpha-tdep.h: Ditto for comments.
6428 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6429 (alpha_cannot_store_register): Ditto.
6430 (alpha_push_dummy_frame): Ditto.
6431 * alpha-nat.c (supply_gregset): Ditto.
6432
6433 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6434 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6435 * config/sparc/tm-sparc.h: Update comment.
6436
6437 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6438 deprecated_read_fp instead of TARGET_READ_FP.
6439 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6440 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6441 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6442 deprecated_read_fp instead of read_fp.
6443 * s390-tdep.c (s390_push_arguments): Ditto.
6444 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6445 * frame.h: Ditto in comments.
6446 * frame.c (legacy_get_prev_frame): Ditto.
6447 * dummy-frame.c (dummy_frame_this_id): Ditto.
6448 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6449
6450 2003-04-28 Andrew Cagney <cagney@redhat.com>
6451
6452 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6453 * gdbarch.h, gdbarch.c: Re-generate.
6454 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6455 * vax-tdep.c (_initialize_vax_tdep): Update.
6456 * v850-tdep.c (_initialize_v850_tdep): Update.
6457 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6458 * s390-tdep.c (_initialize_s390_tdep): Update.
6459 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6460 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6461 * mips-tdep.c (_initialize_mips_tdep): Update.
6462 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6463 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6464 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6465 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6466 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6467 * frv-tdep.c (_initialize_frv_tdep): Update.
6468 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6469 (_initialize_cris_tdep): Update.
6470 * arch-utils.c (legacy_print_insn): Update.
6471 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6472
6473 2003-04-26 Adam Fedor <fedor@gnu.org>
6474
6475 * linespec.c (decode_objc): New function to decode ObjC calls
6476 (decode_line_1): Check for ObjC calls (using decode_objc)
6477 * Makefile (linespec.o): Update dependencies.
6478
6479 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6480
6481 * breakpoint.h (struct breakpoint_ops): New.
6482 (struct breakpoint): Add ops member.
6483
6484 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6485 (mention): Use new breakpoint ops member.
6486 (set_raw_breakpoint): Initialize ops field to NULL.
6487 (print_exception_catchpoint, print_one_exception_catchpoint)
6488 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6489 (gnu_v3_exception_catchpoint_ops): New.
6490 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6491
6492 2003-04-25 Adam Fedor <fedor@gnu.org>
6493
6494 * Makefile.in (COMMON_OBS): Add objc-lang.o
6495
6496 2003-04-25 Andrew Cagney <cagney@redhat.com>
6497
6498 * d10v-tdep.c (print_insn): Delete function.
6499 (display_trace): Use TARGET_PRINT_INSN.
6500 (_initialize_d10v_tdep): Do not set tm_print_insn.
6501 (d10v_gdbarch_init): Set print_insn.
6502
6503 2003-04-25 Andrew Cagney <cagney@redhat.com>
6504
6505 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6506 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6507 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6508 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6509 (nr_dmap_regs, a0_regnum): ... new functions.
6510 (d10v_print_registers_info): Use a0_regnum, use register_size.
6511 (d10v_register_byte): Delete function.
6512 (d10v_register_raw_size): Delete function.
6513 (d10v_register_type): Use a0_regnum.
6514 (d10v_print_registers_info): Use a0_regnum.
6515 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6516 (d10v_gdbarch_init): Do not set register_byte or
6517 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6518 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6519 extract_address.
6520 (trace_command): Use XCALLOC.
6521 (print_insn): Delete reference to tm_print_insn.
6522 (saved_regs_unwinder): Use store_unsigned_integer instead of
6523 store_address.
6524 * frame.h (FRAME_OBSTACK_CALLOC): Define
6525
6526 2003-04-25 David Carlton <carlton@bactrian.org>
6527
6528 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6529
6530 2003-04-24 Adam Fedor <fedor@gnu.org>
6531
6532 * objc-lang.c: Include "valprint.h"
6533 * Makefile.in (objc-lang.o): Update dependencies.
6534
6535 2003-04-24 Adam Fedor <fedor@gnu.org>
6536
6537 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6538 architecture dependant compilation and mark as unimplemented
6539 (until they get put in the gdbarch vector).
6540
6541 2003-04-23 David Carlton <carlton@bactrian.org>
6542
6543 * cp-support.c (cp_find_first_component): Accept 'operator' in
6544 more locations.
6545
6546 2003-04-23 Andrew Cagney <cagney@redhat.com>
6547
6548 * infcall.c (call_function_by_hand): Eliminate redundant
6549 indentation. Move "saved_async" and "old_cleanups" to where they
6550 are needed.
6551
6552 2003-04-23 Andrew Cagney <cagney@redhat.com>
6553
6554 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6555 and "buffer". Move the "name" code to where it is needed.
6556
6557 2003-04-23 Andrew Cagney <cagney@redhat.com>
6558
6559 * infcall.c (call_function_by_hand): Move variables "start_sp",
6560 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6561 code to ON_STACK switch branch.
6562
6563 2003-04-23 Andrew Cagney <cagney@redhat.com>
6564
6565 * infcall.c (call_function_by_hand): Make declaration of "i",
6566 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6567 lint.
6568
6569 2003-04-23 Andrew Cagney <cagney@redhat.com>
6570
6571 * infcall.c (call_function_by_hand): Delete variable
6572 "n_method_args". Localize "param_type"'s declaration to the loop
6573 that it is used. Reinstate code assigning to said variable -
6574 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6575 Rationalize code using "param_type".
6576
6577 2003-04-22 Andrew Cagney <cagney@redhat.com>
6578
6579 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6580 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6581 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6582 to DEPRECATED_PUSH_RETURN_ADDRESS.
6583
6584 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6585
6586 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6587 on the DWARF2 register number prior to fetching a register.
6588
6589 2003-04-22 J. Brobecker <brobecker@gnat.com>
6590
6591 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6592 Update all the tests using SOFT_FLOAT considering the fact that
6593 this macro was always set to 0.
6594 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6595 considering the fact that this macro was always set to 0.
6596 * hppa-tdep.h (hppa_store_return_value): Likewise.
6597 (hppa_extract_return_value): Likewise.
6598
6599 2003-04-22 J. Brobecker <brobecker@gnat.com>
6600
6601 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6602 the hppa-pro target only.
6603
6604 2003-04-21 J. Brobecker <brobecker@gnat.com>
6605
6606 Ongoing multi-arch conversion effort for HP/UX:
6607 * config/pa/tm-hppa.h: Move all macro that are no longer
6608 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6609 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6610
6611 2003-04-21 J. Brobecker <brobecker@gnat.com>
6612
6613 * config/pa/tm-hppa.h: Obsolete a section that was only used
6614 for hppa-pro.
6615
6616 2003-04-21 J. Brobecker <brobecker@gnat.com>
6617
6618 Ongoing multi-arch conversion for HP/UX.
6619 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6620 if already defined (allows hppa64 to stay non-multiarched for now).
6621 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6622
6623 2003-04-21 Andrew Cagney <cagney@redhat.com>
6624
6625 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6626
6627 2003-04-21 Andrew Cagney <cagney@redhat.com>
6628
6629 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6630 "i386_num_mmx_regs".
6631
6632 2003-04-21 Andrew Cagney <cagney@redhat.com>
6633
6634 * infcall.c: New file.
6635 * infcall.h: New file.
6636 * valarith.c: Include "infcall.h".
6637 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6638 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6639 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6640 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6641 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6642 (SFILES): Add "infcall.c"
6643 (COMMON_OBS): Add "infcall.o".
6644 (infcall.o): Specify dependencies.
6645 * value.h (call_function_by_hand): Delete declaration.
6646 * inferior.h (run_stack_dummy): Delete declaration.
6647 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6648 (run_stack_dummy): Move to "infcall.c", merged into
6649 call_function_by_hand.
6650 * valops.c (call_function_by_hand): Moved to "infcall.c".
6651 (find_function_addr, value_arg_coerce): Ditto.
6652 (unwindonsignal_p, coerce_float_to_double): Ditto.
6653 (_initialize_valops): Move "set/show coerce-float-to-double", and
6654 "set/show unwindonsignal" commands to "infcall.c".
6655 * v850-tdep.c, target.h: Update comments.
6656 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6657 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6658 (sh64_init_extra_frame_info): Update comments.
6659 * mn10300-tdep.c: Update comments.
6660 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6661 * config/sparc/tm-sparc.h: Update comments.
6662 * breakpoint.h: Update comments.
6663 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6664 * arm-tdep.c: Update comment.
6665
6666 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6667
6668 * i386-tdep.c (i386_num_register_names): New variable.
6669 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6670 (MM0_REGNUM): Remove redundant parentheses in define.
6671 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6672 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6673 i386_mxcsr_regnum_p): Remove redundant parentheses.
6674 (i386_register_name): Use i386_num_register_names.
6675
6676 * i386-tdep.c (i386_extract_return_value,
6677 i386_store_return_value): Correct check for availability of
6678 floating-point registers.
6679
6680 * i386-tdep.c (i386_frame_num_args): Remove function.
6681 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6682
6683 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6684 mmx_regnum_to_fp_regnum. Adjust all callers.
6685
6686 * i386-tdep.c (i386_get_longjmp_target): Use
6687 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6688 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6689 extract_address.
6690
6691 2003-04-19 Mark Kettenis <kettenis@gnu.org>
6692
6693 * core-regset.c: Update comments to reflect reality. Re-order
6694 includes.
6695 (fetch_core_registers): Use switch instead of if. Remove
6696 redundant prototype.
6697
6698 2003-04-18 Jim Blandy <jimb@redhat.com>
6699
6700 * s390-tdep.c (s390_frame_align): New function.
6701 (s390_gdbarch_init): Register it with the gdbarch object.
6702
6703 2003-04-17 Richard Henderson <rth@redhat.com>
6704
6705 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6706
6707 2003-04-17 Michael Snyder <msnyder@redhat.com>
6708 Karen Bennet <bennet@redhat.com>
6709
6710 Committed by Elena Zannoni <ezannoni@redhat.com>
6711 * gdb_gcore.sh: New script to create a core dump of a process.
6712
6713 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
6714
6715 * values.c (value_being_returned): Don't fetch the return
6716 value if the return type is void.
6717
6718 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6719
6720 * thread-db.c: Reindented.
6721
6722 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6723
6724 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6725 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
6726 as types.
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752 2003-04-16 Kevin Buettner <kevinb@redhat.com>
6753
6754 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
6755 the size of ``long double'' to 16, instead of 8.
6756
6757 2003-04-16 Mark Kettenis <kettenis@gnu.org>
6758
6759 * i386-linux-nat.c: Add some whitespace to make things more
6760 readable.
6761 (fetch_register, store_register, fetch_inferior_registers,
6762 store_inferior_registers): Get rid of assignment in if-statement.
6763 (store_register): Fix typo in error message.
6764
6765 2003-04-16 Andrew Cagney <cagney@redhat.com>
6766
6767 * utils.c (xmmalloc): Always allocate something, matches
6768 libiberty/xmalloc's semantics.
6769 (xmrealloc, xmcalloc): Ditto.
6770
6771 2003-04-16 Andrew Cagney <cagney@redhat.com>
6772
6773 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6774 update comments.
6775 (get_frame_type): Initialize unwind and type when needed.
6776 (get_frame_id, frame_register_unwind): Ditto.
6777
6778 2003-04-16 Andrew Cagney <cagney@redhat.com>
6779
6780 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6781 obsolete.
6782 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6783 * sparcl-stub.c: Obsolete file.
6784 * config/sparc/tm-sparclet.h: Obsolete file.
6785 * sparclet-stub.c: Obsolete file.
6786 * sparclet-rom.c: Obsolete file.
6787 * sparcl-tdep.c: Obsolete file.
6788 * config/sparc/tm-sparclite.h: Obsolete file.
6789 * config/sparc/sparclite.mt: Obsolete file.
6790 * config/sparc/sparclet.mt: Obsolete file.
6791 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6792 sparc86x-*-* obsolete.
6793
6794 2003-04-15 David Carlton <carlton@math.stanford.edu>
6795
6796 * Makefile.in (SFILES): Add cp-namespace.c.
6797 (COMMON_OBS): Add cp-namespace.o.
6798 (block.o): Depend on gdb_obstack_h and cp_support_h.
6799 (buildsym.o): Depend on cp_support_h.
6800 (cp-namespace.o): New.
6801 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6802 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6803 (dwarf2read.o): Depend on cp_support_h.
6804 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6805 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6806 processing_current_namespace.
6807 (read_namespace): Update processing_current_namespace; check for
6808 anonymous namespaces.
6809 (dwarf2_name): New function.
6810 (dwarf2_extension): Ditto.
6811 * cp-support.h: Update copyright, contributors.
6812 Add inclusion guards.
6813 Add opaque declaration for structs obstack, block, symbol.
6814 (struct using_direct): New struct.
6815 Add declarations for cp_find_first_component,
6816 cp_entire_prefix_len, processing_has_namespace_info,
6817 processing_current_namespace, cp_is_anonymous,
6818 cp_add_using_directive, cp_initialize_namespace,
6819 cp_finalize_namespace, cp_set_block_scope,
6820 cp_scan_for_anonymous_namespaces.
6821 * cp-namespace.c: New file.
6822 * cp-support.c: Update copyright.
6823 Include ctype.h, gdb_assert.h, gdbcmd.h.
6824 New variable maint_cplus_cmd_list.
6825 (cp_find_first_component): New function.
6826 (cp_entire_prefix_len, maint_cplus_command)
6827 (first_component_command, _initialize_cp_support): Ditto.
6828 * buildsym.c: Include cp-support.h.
6829 New variable using_list.
6830 (add_symbol_to_list): Check for anonymous namespaces.
6831 (finish_block): Set block's scope.
6832 (start_symtab): Initialize C++ namespace support.
6833 (end_symtab): Finalize C++ namespace support.
6834 * block.h: Add opaque declarations for structs
6835 block_namespace_info, using_direct, and obstack.
6836 Add declarations for block_set_scope and block_set_using.
6837 (struct block): Add 'language_specific' member.
6838 (BLOCK_NAMESPACE): New macro.
6839 * block.c: Include gdb_obstack.h and cp-support.h.
6840 (struct block_namespace_info): New struct.
6841 (block_set_scope): New function.
6842 (block_set_using, block_initialize_namespace): Ditto.
6843
6844 2003-04-14 Kevin Buettner <kevinb@redhat.com>
6845
6846 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6847 (locate_base): Return early if there aren't any link map offsets.
6848 (svr4_solib_create_inferior_hook): Warn if shared library support
6849 is unavailable.
6850
6851 2003-04-14 David Carlton <carlton@math.stanford.edu>
6852
6853 * symtab.c (symbol_set_names): Add prefix when storing Java names
6854 in hash table. Fix for PR java/1039.
6855
6856 2003-04-14 David Carlton <carlton@math.stanford.edu>
6857
6858 * symtab.c (symbol_set_names): Rename 'name' arg to
6859 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6860 * symtab.h: Change 'name' argument in declaration of
6861 symbol_set_names to 'linkage_name'.
6862 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6863
6864 2003-04-14 Andrew Cagney <cagney@redhat.com>
6865
6866 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6867 return the fully sign-extended register value.
6868 (get_frame_pointer): Ditto.
6869 (mips_pop_frame): Initialize "proc_desc" after checking for a
6870 dummy frame.
6871
6872 2003-04-14 Andrew Cagney <cagney@redhat.com>
6873
6874 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6875 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6876 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6877 (mips_push_register): Delete function.
6878 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6879 PUSH_FP_REGNUM.
6880
6881 2003-04-14 Jim Blandy <jimb@redhat.com>
6882
6883 * symmisc.c: #include "gdb_regex.h".
6884 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6885 functions.
6886 * maint.c (maintenance_list_command): New function.
6887 (_initialize_maint_cmds): Register the above as commands.
6888 * symtab.h (maintenance_list_symtabs,
6889 maintenance_list_psymtabs): New declarations.
6890 * cli/cli-cmds.c (maintenancelistlist): New variable.
6891 (init_cmd_lists): Initialize it.
6892 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6893 * gdbcmd.h (maintenancelistlist): New declaration.
6894 * Makefile.in (symmisc.o): Update dependencies.
6895
6896 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
6897
6898 * s390-nat.c: Include asm/types.h for addr_t.
6899
6900 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
6901
6902 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6903 actually incoming type.
6904
6905 2003-04-13 Andrew Cagney <cagney@redhat.com>
6906
6907 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6908 get_next_frame and get_frame_saved_regs.
6909
6910 2003-04-13 Andrew Cagney <cagney@redhat.com>
6911
6912 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6913 of gdbarch_num_regs.
6914
6915 2003-04-13 Andrew Cagney <cagney@redhat.com>
6916
6917 * frame.h: Mention what replaced what in "struct frame_info".
6918 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6919 deprecated_update_frame_base_hack and
6920 deprecated_update_frame_pc_hack.
6921 * hppa-tdep.c: Ditto.
6922
6923 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6924
6925 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6926 to read_reg and update its comment. Remove regnum member.
6927 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6928 Don't call read_reg when setting in_reg. Call read_reg to get
6929 the frame base if it's in a register. Return the register number
6930 on the stack instead of in the context. Remove extra arguments
6931 to read_reg.
6932 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6933 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6934 the register number on the expression stack.
6935 (needs_frame_read_reg): Remove extra arguments.
6936
6937 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6938
6939 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6940 made non-static.
6941 (execute_stack_op): All callers updated.
6942 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6943 * dwarf2loc.c (find_location_expression): New function.
6944 (dwarf_expr_frame_base): Call it.
6945 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6946 (dwarf2_tracepoint_var_ref): New function, broken out from
6947 locexpr_tracepoint_var_ref.
6948 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6949 Make static.
6950 (loclist_read_variable, loclist_read_needs_frame): New functions.
6951 (loclist_describe_location, loclist_tracepoint_var_ref): New
6952 functions.
6953 (dwarf2_loclist_funcs): New struct location_funcs.
6954 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6955 (struct dwarf2_locexpr_baton): Add comments.
6956 (dwarf2_loclist_funcs): New extern.
6957 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6958 base_address and base_known.
6959 (dwarf_loc_buffer): New variable.
6960 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6961 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6962 (dwarf2_has_info): Initialize dwarf_loc_offset.
6963 (dwarf2_build_psymtabs): Read in .debug_loc.
6964 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6965 DWARF_LOC_SIZE.
6966 (psymtab_to_symtab_1): Likewise. Move base address calculation
6967 here, from...
6968 (dwarf2_get_pc_bounds): ... here. Use the base address from
6969 cu_header.
6970 (dwarf2_symbol_mark_computed): Handle location lists.
6971
6972 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
6973
6974 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6975 if the linkage name demangled successfully.
6976
6977 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6978
6979 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6980 disassmbly_flavour): Removed.
6981
6982 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
6983
6984 2003-04-13 Mark Kettenis <kettenis@gnu.org>
6985
6986 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
6987
6988 2003-04-12 Andrew Cagney <cagney@redhat.com>
6989
6990 * frame.h (struct frame_info): Move definition from here ...
6991 * frame.c (struct frame_info): ... to here.
6992
6993 2003-04-12 Andrew Cagney <cagney@redhat.com>
6994
6995 * gdbthread.h (save_infrun_state): Delete parameter
6996 "prev_func_start".
6997 (struct thread_info): Delete field "prev_func_start".
6998 (load_infrun_state): Ditto.
6999 * thread.c (load_infrun_state, save_infrun_state): Update.
7000 * infrun.c (prev_func_start): Delete variable.
7001 (context_switch, init_wait_for_inferior): Update.
7002 (stop_stepping, keep_going): Update.
7003
7004 2003-04-12 Andrew Cagney <cagney@redhat.com>
7005
7006 * gdbarch.sh: Add missing opaque declarations.
7007 * gdbarch.h: Regnerate.
7008 * symtab.h: Add missing opaque declarations.
7009 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7010 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7011 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7012 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7013 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7014 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7015 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7016 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7017 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7018 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7019 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7020 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7021 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7022
7023 2003-04-11 Andrew Cagney <cagney@redhat.com>
7024
7025 * frame.c (get_frame_id): Return this frame's "id".
7026 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7027 function start.
7028 (legacy_saved_regs_this_id): Replace function body with
7029 internal-error.
7030 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7031 FRAME_OBSTACK_ZALLOC.
7032 (create_new_frame): Mark the frame ID as valid.
7033
7034 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7035
7036 * Makefile.in (libbfd_h): Added missing setting.
7037 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7038 according to the selected ABI.
7039
7040 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7041
7042 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7043
7044 2003-04-11 Andrew Cagney <cagney@redhat.com>
7045
7046 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7047 SAVED_PC_AFTER_CALL.
7048 * gdbarch.h, gdbarch.c: Regenerate.
7049 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7050 * x86-64-tdep.c (x86_64_init_abi): Update.
7051 * vax-tdep.c (vax_gdbarch_init): Update.
7052 * v850-tdep.c (v850_gdbarch_init): Update.
7053 * sparc-tdep.c (sparc_gdbarch_init): Update.
7054 * sh-tdep.c (sh_gdbarch_init): Update.
7055 * s390-tdep.c (s390_gdbarch_init): Update.
7056 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7057 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7058 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7059 * mips-tdep.c (mips_gdbarch_init): Update.
7060 * mcore-tdep.c (mcore_gdbarch_init): Update.
7061 * m68k-tdep.c (m68k_gdbarch_init): Update.
7062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7063 * ia64-tdep.c (ia64_gdbarch_init): Update.
7064 (ia64_saved_pc_after_call): Update declaration.
7065 * i386ly-tdep.c (i386lynx_init_abi): Update.
7066 * i386-tdep.c (i386_gdbarch_init): Update.
7067 * hppa-tdep.c (hppa_gdbarch_init): Update.
7068 * h8300-tdep.c (h8300_gdbarch_init): Update.
7069 * frv-tdep.c (frv_gdbarch_init): Update.
7070 * cris-tdep.c (cris_gdbarch_init): Update.
7071 * avr-tdep.c (avr_gdbarch_init): Update.
7072 * arm-tdep.c (arm_gdbarch_init): Update.
7073 * alpha-tdep.c (alpha_gdbarch_init): Update.
7074 * ns32knbsd-nat.c (frame_num_args): Update.
7075 * ns32k-tdep.c (umax_frame_num_args): Update.
7076 * mips-tdep.c (mips_init_frame_pc_first): Update.
7077 * infrun.c (step_over_function): Update.
7078 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7079 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7080 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7081 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7082 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7083 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7084 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7085 * arch-utils.c (init_frame_pc_default): Update.
7086 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7087 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7088 declaration.
7089
7090 2003-04-11 Andrew Cagney <cagney@redhat.com>
7091
7092 * i387-tdep.c: Update copyright.
7093 (i387_to_double): Delete function.
7094 (double_to_i387): Delete function.
7095
7096 2003-04-10 Andrew Cagney <cagney@redhat.com>
7097
7098 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7099 frame's function's address. Simplify.
7100 (d10v_frame_unwind_cache): Check that the frame's function is
7101 non-zero.
7102
7103 2003-04-10 Jim Blandy <jimb@redhat.com>
7104
7105 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7106 call to set_gdbarch_deprecated_push_arguments.
7107
7108 2003-04-10 Andrew Cagney <cagney@redhat.com>
7109
7110 * frame.c (fprint_frame_id): New function.
7111 (fprint_frame_type, fprint_frame): New function.
7112 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7113 (create_sentinel_frame, get_frame_id): Ditto.
7114 (frame_id_p, frame_id_eq): Ditto.
7115 (frame_id_inner, create_new_frame): Ditto.
7116 (legacy_get_prev_frame, get_prev_frame): Ditto.
7117 (deprecated_update_frame_pc_hack): Ditto.
7118 (frame_register_unwind): Ditto.
7119 (deprecated_update_frame_base_hack): Ditto.
7120
7121 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7122
7123 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7124 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7125 frame_chain function.
7126 * Makefile.in: Add dependencies due to above change.
7127
7128 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7129
7130 * blockframe.c (legacy_frame_chain_valid): Move call to
7131 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7132 inside_entry_file.
7133
7134 2003-04-09 Andrew Cagney <cagney@redhat.com>
7135
7136 * frame.h (struct frame_id): Replace "pc" and "base" with
7137 "stack_addr" and "code_addr". Update comments.
7138 (frame_id_build): Update parameter names and comment.
7139 (struct frame_info): Replace "id_p" and "id" with "this_id".
7140 * dummy-frame.c (dummy_frame_this_id): Update.
7141 * breakpoint.c (print_one_breakpoint): Update.
7142 * frame.c (get_frame_id): Update.
7143 (get_frame_base, frame_id_build): Update.
7144 (create_sentinel_frame, legacy_get_prev_frame): Update.
7145 (deprecated_update_frame_base_hack): Update.
7146 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7147 (frame_id_inner): Ditto.
7148
7149 2003-04-09 Andrew Cagney <cagney@redhat.com>
7150
7151 * defs.h (gdb_print_host_address): Make "addr" parameter a
7152 pointer constant.
7153 * utils.c (gdb_print_host_address): Update.
7154
7155 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7156
7157 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7158 register number for R0 is 0.
7159
7160 2003-04-09 J. Brobecker <brobecker@gnat.com>
7161
7162 * frame.h (struct gdbarch): Add opaque structure definition
7163 to avoid a compilation warning on LynxOS 4.0.
7164
7165 2003-04-09 Andrew Cagney <cagney@redhat.com>
7166
7167 * frame.h (struct frame_info): Delete field "pc". Replace
7168 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7169 structure.
7170 * frame.c (frame_pc_unwind): Update.
7171 (create_sentinel_frame): Do not set "pc".
7172 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7173 (get_frame_pc): Call frame_pc_unwind.
7174 (deprecated_update_frame_pc_hack): Update.
7175 (create_new_frame): Use "pc" not "->pc".
7176
7177 2003-04-09 Andrew Cagney <cagney@redhat.com>
7178
7179 * frame.c (get_frame_id): Eliminate code updating "frame".
7180 (legacy_get_prev_frame): Ditto.
7181 (get_frame_base): Return id.base directly.
7182 (deprecated_update_frame_base_hack): Update "id.base".
7183 * frame.h (struct frame_info): Delete field "frame".
7184
7185 2003-04-09 Andrew Cagney <cagney@redhat.com>
7186
7187 * NEWS: Mention that the "Sequent family" is obsolete.
7188 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7189 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7190 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7191 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7192 * config/i386/tm-ptx4.h: Obsolete file.
7193 * config/i386/tm-ptx.h: Obsolete file.
7194 * symm-tdep.c: Obsolete file.
7195 * config/i386/symmetry.mt: Obsolete file.
7196 * config/i386/tm-symmetry.h: Obsolete file.
7197 * symm-nat.c: Obsolete file.
7198 * config/i386/nm-symmetry.h: Obsolete file.
7199 * config/i386/xm-symmetry.h: Obsolete file.
7200 * config/i386/symmetry.mh: Obsolete file.
7201 * config/i386/nm-ptx4.h: Obsolete file.
7202 * config/i386/ptx4.mh: Obsolete file.
7203 * config/i386/ptx.mt: Obsolete file.
7204 * config/i386/ptx.mh: Obsolete file.
7205 * config/i386/xm-ptx4.h: Obsolete file.
7206 * config/i386/xm-ptx.h: Obsolete file.
7207
7208 2003-04-09 Andrew Cagney <cagney@redhat.com>
7209
7210 Obsolete mips*-*-mach3*.
7211 * NEWS: Mention that mips*-*-mach3* is obsolete.
7212 * m3-nat.c: Obsolete file.
7213 * config/nm-m3.h: Obsolete file.
7214 * config/mips/tm-mipsm3.h: Obsolete file.
7215 * config/mips/mipsm3.mt: Obsolete file.
7216 * config/mips/mipsm3.mh: Obsolete file.
7217 * config/mips/xm-mipsm3.h: Obsolete file.
7218 * mipsm3-nat.c: Obsolete file.
7219 * configure.host: Obsolete mips-dec-mach3*.
7220 * configure.tgt: Obsolete mips*-*-mach3*.
7221
7222 2003-04-09 Andrew Cagney <cagney@redhat.com>
7223
7224 * doublest.h: Update copyright.
7225 (deprecated_store_floating, deprecated_extract_floating): Rename
7226 store_floating and extract_floating. Update comments.
7227 * doublest.c: Update copyright.
7228 (extract_floating_by_length): Replace extract_floating.
7229 (store_floating_by_length): Replace store_floating.
7230 (deprecated_extract_floating): New function.
7231 (deprecated_store_floating): New function.
7232 (extract_typed_floating): Call extract_floating_by_length.
7233 (store_typed_floating): Call store_floating_by_length.
7234 * x86-64-tdep.c (x86_64_store_return_value): Update.
7235 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7236 (sh64_extract_return_value): Update.
7237 (sh_sh4_register_convert_to_virtual): Update.
7238 (sh_sh64_register_convert_to_virtual): Update.
7239 (sh_sh4_register_convert_to_raw): Update.
7240 (sh_sh64_register_convert_to_raw): Update.
7241 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7242 (rs6000_register_convert_to_raw): Update.
7243 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7244 (ia64_register_convert_to_raw): Update.
7245 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7246 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7247 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7248 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7249 (alpha_register_convert_to_raw): Update.
7250
7251 2003-04-08 Andrew Cagney <cagney@redhat.com>
7252
7253 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7254 * gdbarch.h, gdbarch.c: Re-generate.
7255 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7256 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7257 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7258 conditionally, use frame_pc_unwind as an alternative. Add
7259 comments.
7260 * arch-utils.c (init_frame_pc_default): Only call
7261 SAVED_PC_AFTER_CALL when available.
7262
7263 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7264
7265 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7266 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7267 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7268 (start_remote): Ditto.
7269 (handle_inferior_event): Ditto.
7270 (save_inferior_status): Ditto.
7271 (restore_inferior_status): Ditto.
7272 * infcmd.c (attach_command): Ditto.
7273 * fork-child.c (startup_inferior): Ditto.
7274 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7275 * alpha-tdep.c (heuristic_proc_start): Ditto.
7276 * mips-tdep.c (heuristic_proc_start): Ditto.
7277 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7278 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7279 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7280 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7281 * remote-vx.c (vx_create_inferior): Ditto.
7282
7283 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7284
7285 * infrun.c (stop_soon_quietly): Make it an enum, to better
7286 override the default behavior of handle_inferior_event.
7287 (clear_proceed_status): Update uses of stop_soon_quietly to
7288 reflect that it is now an enum.
7289 (start_remote): Ditto.
7290 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7291 is set to handle the new GNU/Linux kernel behavior for
7292 attach/sigstop. Update uses of stop_soon_quietly.
7293 * inferior.h (enum stop_kind): New enum.
7294 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7295 Reset normal handle_inferior_event behavior, afterwards.
7296 * fork-child.c (startup_inferior): Update.
7297 * alpha-tdep.c (heuristic_proc_start): Update.
7298 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7299 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7300 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7301 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7302 * remote-vx.c (vx_create_inferior): Update.
7303 * mips-tdep.c (heuristic_proc_start): Update.
7304
7305 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7306
7307 * disasm.c (dump_insns): Move variables inside loop, or they will
7308 be freed more than once, causing wild memory corruptions.
7309 (gdb_disassembly): Look for the substring "-thread",
7310 instead of "-threads" in the target name, to make sure to find
7311 the 'multi-thread' target. Also, make sure we do the right thing
7312 with the "core" target.
7313
7314 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7315
7316 * mips-tdep.c (mips_print_fp_register): New function, created from
7317 do_fp_register_row(). Registers are now (also) printed as hex.
7318 Only one register is printed per row.
7319 (mips_print_register, do_fp_register_row): Print floating point
7320 registers with mips_print_fp_register().
7321
7322 2003-04-06 Andrew Cagney <cagney@redhat.com>
7323
7324 * valprint.h (inspect_it): Add extern declaration.
7325 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7326 (selectors_info, classes_info): Ditto.
7327 (find_objc_msgcall): Fix indentation.
7328 (objc_printstr): Delete extern declarations.
7329
7330 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7331
7332 2003-04-06 Andrew Cagney <cagney@redhat.com>
7333
7334 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7335 Update comment.
7336 * frame.c (legacy_saved_regs_this_id): Update.
7337 (legacy_get_prev_frame): Update.
7338 * xstormy16-tdep.c: Update comment.
7339 * sparc-tdep.c (sparc_frame_chain): Update comment.
7340 * blockframe.c (legacy_frame_chain_valid): Update.
7341
7342 2003-04-06 Andrew Cagney <cagney@redhat.com>
7343
7344 * valprint.c (val_print_type_code_int): Delete #ifdef
7345 PRINT_TYPELESS_INTEGER code.
7346
7347 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7348 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7349 multi-arch definition.
7350 * gdbarch.h: Re-generate.
7351
7352 2003-04-05 Andrew Cagney <cagney@redhat.com>
7353
7354 Eliminate FRAME_FIND_SAVED_REGS.
7355 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7356 Change FSR parameter to a pointer.
7357 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7358 Assume FSR parameter is a pointer.
7359 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7360 Make fsr a pointer.
7361 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7362 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7363 saved_regs a pointer.
7364 (hppa_frame_saved_pc): Ditto.
7365 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7366 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7367 pointer.
7368 (restore_pc_queue): Make fsr a pointer.
7369 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7370 (hppa_frame_chain): Make saved_regs a pointer, call
7371 hppa_frame_init_saved_regs.
7372 * sparc-tdep.c: Include "gdb_assert.h".
7373 (sparc_frame_find_saved_regs): Replace internal_error with
7374 gdb_assert.
7375 * remote-vxsparc.c (vx_read_register): Delete reference to
7376 FRAME_FIND_SAVED_REGS.
7377 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7378 * gdbarch.h: Regenerate.
7379 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7380 (deprecated_get_frame_saved_regs): Delete declaration.
7381 (struct frame_saved_regs): Delete definition.
7382 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7383 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7384 (hppa_frame_find_saved_regs): Delete declaration.
7385 (FRAME_FIND_SAVED_REGS): Delete macro.
7386 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7387 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7388 FRAME_FIND_SAVED_REGS in comment.
7389
7390 2003-04-05 Andrew Cagney <cagney@redhat.com>
7391
7392 * frame.c (frame_func_unwind, get_frame_func): New functions.
7393 * frame.h (get_frame_func, frame_func_unwind): Declare.
7394 (struct frame_info): Add field "prev_func" for caching the
7395 previous frame's function address.
7396 * arm-tdep.c (arm_frameless_function_invocation): Combine
7397 get_pc_function_start and get_frame_pc into get_frame_func.
7398 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7399 (sh64_nofp_frame_init_saved_regs): Ditto.
7400 * s390-tdep.c (s390_function_start): Ditto.
7401 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7402 (rs6000_frameless_function_invocation): Ditto.
7403 (rs6000_frame_saved_pc): Ditto.
7404 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7405 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7406 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7407 (i386_frame_init_saved_regs): Ditto.
7408 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7409 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7410 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7411 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7412 * blockframe.c (frameless_look_for_prologue): Ditto.
7413
7414 2003-04-05 Andrew Cagney <cagney@redhat.com>
7415
7416 * frame.c (legacy_get_prev_frame): Link prev to next at the
7417 function start. Update comments.
7418
7419 2003-04-05 Andrew Cagney <cagney@redhat.com>
7420
7421 * frame.c (get_frame_id): Update comment.
7422 (legacy_get_prev_frame): Update comment.
7423 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7424 * gdbarch.h: Regenerate.
7425 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7426 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7427
7428 2003-04-05 Andrew Cagney <cagney@redhat.com>
7429
7430 * stack.c (print_frame_info): Use get_frame_pc.
7431
7432 2003-04-04 Andrew Cagney <cagney@redhat.com>
7433
7434 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7435 the frame's type from the unwinder.
7436 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7437 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7438 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7439 (get_frame_base_address): Use get_frame_type.
7440 (get_frame_locals_address, get_frame_args_address): Ditto.
7441 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7442 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7443 (struct frame_info): Add comment explaining why the frame contains
7444 a "type" field.
7445 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7446 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7447 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7448 NORMAL_FRAME.
7449 * frame-unwind.h: Include "frame.h".
7450 (struct frame_unwind): Add "type" field.
7451 * Makefile.in (frame_unwind_h): Add $(frame_h).
7452
7453 2003-04-04 Andrew Cagney <cagney@redhat.com>
7454
7455 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7456 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7457 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7458 get_frame_base.
7459 (d10v_unwind_dummy_id): Use frame_id_build.
7460 * frame.c (find_frame_sal): Use get_frame_pc.
7461 (create_new_frame): Use deprecated_update_frame_pc_hack and
7462 deprecated_update_frame_base_hack.
7463 (create_sentinel_frame): Add comment about ->pc going away.
7464 (get_prev_frame): Add comment about ->pc going away.
7465 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7466 frame_id_build, deprecated_update_frame_pc_hack and
7467 deprecated_update_frame_base_hack.
7468 (select_frame): Use get_frame_pc.
7469 (legacy_saved_regs_this_id): Use frame_id_build.
7470
7471 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7472
7473 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7474 signed integer case.
7475 (classify_argument): Handle enumerations and references.
7476
7477 2003-04-04 Andrew Cagney <cagney@redhat.com>
7478
7479 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7480 ID to NULL.
7481
7482 2003-04-01 Adam Fedor <fedor@gnu.org>
7483
7484 * gdb/objc-lang.c (selectors_info): Replace calls to
7485 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7486 SYMBOL_NATURAL_NAME.
7487 (classes_info, find_methods): Likewise.
7488
7489 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7490
7491 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7492 ``mach'' to the value determined by bfd_default_set_arch_mach().
7493
7494 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7495
7496 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7497 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7498 (mi-cmd-file.o): Update dependencies.
7499
7500 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7501
7502 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7503 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7504
7505 2003-04-01 Adam Fedor <fedor@gnu.org>
7506
7507 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7508 * language.h (struct language_defn): Add la_demangle.
7509 (language_demangle): Declare.
7510 * language.c (language_demangle): New function.
7511 (unk_lang_demangle): Likewise.
7512 (unknown_language_defn, auto_language_defn, local_language_defn):
7513 Add ukn_lang_demangle.
7514 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7515 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7516 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7517 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7518 * jv-lang.c (java_demangle): New function
7519 (java_language_defn): Use it for la_demangle element.
7520 * objc-lang.c (objc_demangle): Add options argument
7521 (objc_language_defn): Use objc_demangle for la_demangle element.
7522 * maint.c (maintenance_demangle): Replace switch with
7523 call to language_demangle.
7524 * utils.c (fprintf_symbol_filtered): Likewise.
7525
7526 2003-04-01 Andrew Cagney <cagney@redhat.com>
7527
7528 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7529 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7530 PRINT_TYPELESS_INTEGER.
7531 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7532 PUSH_RETURN_ADDRESS.
7533
7534 2003-04-01 Andrew Cagney <cagney@redhat.com>
7535
7536 * Makefile.in (d10v-tdep.o): Update dependencies.
7537 * d10v-tdep.c: Include "frame-base.h".
7538 (d10v_frame_unwind): Make constant.
7539 (d10v_frame_base_address): New function.
7540 (d10v_frame_base): New variable.
7541 (d10v_gdbarch_init): Set frame_base default.
7542 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7543 comment for base.
7544 (d10v_frame_unwind_cache): Set and use "prev_sp".
7545 (d10v_frame_this_id): Use the previous frame's inner most stack
7546 address and this frame's func address for the frame ID. Use
7547 frame_id_build. Don't analyze beyond the current instruction.
7548
7549 2003-04-01 Andrew Cagney <cagney@redhat.com>
7550
7551 * frame.h (get_frame_locals_address, get_frame_args_address):
7552 Refer to the base address, instead of the address of the first
7553 local or parameter.
7554
7555 2003-04-01 Andrew Cagney <cagney@redhat.com>
7556
7557 Add frame debug info addresses:
7558 * frame-base.c: New file.
7559 * frame-base.h: New file.
7560 * frame.h (struct frame_base): Add opaque declaration.
7561 (get_frame_base): Update comment.
7562 (get_frame_base_address): Declare.
7563 (get_frame_locals_address): Declare.
7564 (get_frame_args_address): Declare.
7565 (struct frame_info): Add "base" and "base_cache". Update
7566 comments on the unwinder.
7567 * frame.c: Include "frame-base.h".
7568 (get_frame_locals_address): New function.
7569 (get_frame_base_address): New function.
7570 (get_frame_args_address): New function.
7571 * findvar.c (read_var_value): Use get_frame_locals_address and
7572 get_frame_args_address.
7573 * stack.c (frame_info): Use get_frame_locals_address and
7574 get_frame_args_address.
7575 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7576 moved to "frame-base.c".
7577 * printcmd.c (print_frame_nameless_args): Ditto.
7578 * symtab.h (address_class): Update comments.
7579 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7580 get_frame_base_address.
7581 * dwarf2expr.c (execute_stack_op): Ditto.
7582 * Makefile.in (frame_base_h): Define.
7583 (frame.o): Update dependencies.
7584 (frame-base.o): Add dependencies.
7585 (SFILES): Add frame-base.c.
7586 (COMMON_OBS): Add frame-base.o.
7587
7588 2003-04-01 Andrew Cagney <cagney@redhat.com>
7589
7590 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7591 CALL_DUMMY_LENGTH): Ditto.
7592 * gdbarch.c: Re-generate.
7593 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7594 (CALL_DUMMY_LENGTH): Delete macro.
7595 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7596 * arm-tdep.c (arm_gdbarch_init): Ditto.
7597 * avr-tdep.c (avr_gdbarch_init): Ditto.
7598 * cris-tdep.c (cris_gdbarch_init): Ditto.
7599 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7600 * frv-tdep.c (frv_gdbarch_init): Ditto.
7601 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7602 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7603 * i386-tdep.c (i386_gdbarch_init): Ditto.
7604 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7606 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7607 * mips-tdep.c (mips_gdbarch_init): Ditto.
7608 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7609 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7610 * s390-tdep.c (s390_gdbarch_init): Ditto.
7611 * sh-tdep.c (sh_gdbarch_init): Ditto.
7612 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7613 * v850-tdep.c (v850_gdbarch_init): Ditto.
7614 * vax-tdep.c (vax_gdbarch_init): Ditto.
7615 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7616
7617 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7618
7619 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7620
7621 2003-04-01 Andrew Cagney <cagney@redhat.com>
7622
7623 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7624 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7625 * gdbarch.h, gdbarch.c: Re-generate.
7626 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7627 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7628 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7629 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7630 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7631 * infcmd.c (run_stack_dummy): Simplify assuming
7632 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7633 * infrun.c (handle_inferior_event): Ditto.
7634 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7635 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7636 * arm-tdep.c (arm_gdbarch_init): Ditto.
7637 * avr-tdep.c (avr_gdbarch_init): Ditto.
7638 * cris-tdep.c (cris_gdbarch_init): Ditto.
7639 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7640 * frv-tdep.c (frv_gdbarch_init): Ditto.
7641 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7642 * i386-tdep.c (i386_gdbarch_init): Ditto.
7643 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7644 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7645 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7646 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7647 * mips-tdep.c (mips_gdbarch_init): Ditto.
7648 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7649 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7650 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7651 * s390-tdep.c (s390_gdbarch_init): Ditto.
7652 * sh-tdep.c (sh_gdbarch_init): Ditto.
7653 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7654 * v850-tdep.c (v850_gdbarch_init): Ditto.
7655 * vax-tdep.c (vax_gdbarch_init): Ditto.
7656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7657
7658 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
7659
7660 * symfile.c (symfile_relocate_debug_section): Update call to
7661 bfd_simple_get_relocated_section_contents.
7662
7663 2003-03-31 Andrew Cagney <cagney@redhat.com>
7664
7665 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7666 * gdbarch.h, gdbarch.c: Regenerate.
7667 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7668 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7669 available.
7670 * frame.h (generic_fix_call_dummy): Delete declaration.
7671 * dummy-frame.h: Update comment.
7672 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7673 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7674 fix_call_dummy.
7675 * sh-tdep.c (sh_gdbarch_init): Ditto.
7676 * s390-tdep.c (s390_gdbarch_init): Ditto.
7677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7678 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7680 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7681 * i386-tdep.c (i386_gdbarch_init): Ditto.
7682 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7683 * frv-tdep.c (frv_gdbarch_init): Ditto.
7684 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7685 * cris-tdep.c (cris_gdbarch_init): Ditto.
7686 * avr-tdep.c (avr_gdbarch_init): Ditto.
7687 * arm-tdep.c (arm_gdbarch_init): Ditto.
7688
7689 2003-03-31 J. Brobecker <brobecker@gnat.com>
7690
7691 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7692 (INIT_FRAME_AP): Likewise.
7693 (EXTRA_FRAME_INFO): Likewise.
7694
7695 2003-03-31 Andrew Cagney <cagney@redhat.com>
7696
7697 * gdbarch.sh: Include "symfile.h".
7698 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7699 * gdbarch.h, gdbarch.c: Re-generate.
7700 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7701 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7702 call_dummy_address, the default is at entry_point_address.
7703 * v850-tdep.c (v850_gdbarch_init): Ditto.
7704 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7705 * sh-tdep.c (sh_gdbarch_init): Ditto.
7706 * s390-tdep.c (s390_gdbarch_init): Ditto.
7707 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7708 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7709 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7710 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7711 * i386-tdep.c (i386_gdbarch_init): Ditto.
7712 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7713 * frv-tdep.c (frv_gdbarch_init): Ditto.
7714 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7715 * cris-tdep.c (cris_gdbarch_init): Ditto.
7716 * arm-tdep.c (arm_gdbarch_init): Ditto.
7717
7718 2003-03-31 Andrew Cagney <cagney@redhat.com>
7719
7720 * gdbarch.sh (CALL_DUMMY_P): Delete.
7721 * gdbarch.h, gdbarch.c: Re-generate.
7722 * inferior.h (CALL_DUMMY_P): Delete macro.
7723 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7724 * vax-tdep.c (vax_gdbarch_init): Update.
7725 * v850-tdep.c (v850_gdbarch_init): Update.
7726 * sparc-tdep.c (sparc_gdbarch_init): Update.
7727 * sh-tdep.c (sh_gdbarch_init): Update.
7728 * s390-tdep.c (s390_gdbarch_init): Update.
7729 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7730 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7731 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7732 * mips-tdep.c (mips_gdbarch_init): Update.
7733 * mcore-tdep.c (mcore_gdbarch_init): Update.
7734 * m68k-tdep.c (m68k_gdbarch_init): Update.
7735 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7736 * ia64-tdep.c (ia64_gdbarch_init): Update.
7737 * i386-tdep.c (i386_gdbarch_init): Update.
7738 * h8300-tdep.c (h8300_gdbarch_init): Update.
7739 * frv-tdep.c (frv_gdbarch_init): Update.
7740 * d10v-tdep.c (d10v_gdbarch_init): Update.
7741 * cris-tdep.c (cris_gdbarch_init): Update.
7742 * breakpoint.c (deprecated_frame_in_dummy): Update.
7743 * avr-tdep.c (avr_gdbarch_init): Update.
7744 * alpha-tdep.c (alpha_gdbarch_init): Update.
7745 * arm-tdep.c (arm_gdbarch_init): Update.
7746 * dummy-frame.c (dummy_frame_this_id): Update comments.
7747 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7748 * frame.c (legacy_get_prev_frame): Ditto.
7749 * valops.c (call_function_by_hand): Delete function.
7750 (hand_function_call): Rename to call_function_by_hand
7751
7752 2003-03-30 Andrew Cagney <cagney@redhat.com>
7753
7754 2002-11-10 Klee Dienes <kdienes@apple.com>
7755 * value.h (struct value): Update comment.
7756
7757 2003-03-30 Andrew Cagney <cagney@redhat.com>
7758
7759 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7760 D10V_FP_REGNUM.
7761 (d10v_gdbarch_init): Do not set fp_regnum.
7762
7763 * frame.c (get_frame_base): Force ID initialization.
7764 (get_prev_frame): Move computation of the frame ID from here ...
7765 (get_frame_id): ... to here.
7766 (legacy_get_prev_frame): Mark the frame ID as valid.
7767 * frame.h (struct frame_info): Add field "id_p".
7768
7769 2003-03-30 Mark Kettenis <kettenis@gnu.org>
7770
7771 * i386-tdep.c (i386_store_struct_return): Removed.
7772 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7773
7774 2003-03-30 Andrew Cagney <cagney@redhat.com>
7775
7776 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7777 * gdbarch.h, gdbarch.c: Regenerate.
7778 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7779 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7780 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7781 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7782 * i386-tdep.c (i386_gdbarch_init): Ditto.
7783 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7784 * cris-tdep.c (cris_gdbarch_init): Ditto.
7785 * vax-tdep.c (vax_gdbarch_init): Ditto.
7786 * s390-tdep.c (s390_gdbarch_init): Ditto.
7787 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7788 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7789 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7790 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7791 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7792 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7793 * sparc-tdep.c (sparc_gdbarch_init): Update.
7794 * sh-tdep.c (sh_gdbarch_init): Update.
7795 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7796 * mips-tdep.c (mips_gdbarch_init): Update.
7797 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7798 * ia64-tdep.c (ia64_gdbarch_init): Update.
7799 * frv-tdep.c (frv_gdbarch_init): Update.
7800 * avr-tdep.c (avr_gdbarch_init): Update.
7801 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7802 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7803 instead of when push_dummy_call is not available.
7804
7805 2003-03-30 Andrew Cagney <cagney@redhat.com>
7806
7807 * infttrace.c: Include "gdbthread.h".
7808 (parent_attach_all): Fix function signature.
7809 (call_ptrace): Update call.
7810 * Makefile.in (infttrace.o): Update dependencies.
7811
7812 2003-03-30 Andrew Cagney <cagney@redhat.com>
7813
7814 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7815 PUSH_RETURN_ADDRESS.
7816 * gdbarch.h, gdbarch.c: Regenerate.
7817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7818 * x86-64-tdep.c (x86_64_init_abi): Update.
7819 * v850-tdep.c (v850_gdbarch_init): Update.
7820 * sparc-tdep.c (sparc_gdbarch_init): Update.
7821 * sh-tdep.c (sh_gdbarch_init): Update.
7822 * s390-tdep.c (s390_gdbarch_init): Update.
7823 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7824 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7825 * mips-tdep.c (mips_gdbarch_init): Update.
7826 * mcore-tdep.c (mcore_gdbarch_init): Update.
7827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7828 * ia64-tdep.c (ia64_gdbarch_init): Update.
7829 * i386-tdep.c (i386_gdbarch_init): Update.
7830 * h8300-tdep.c (h8300_gdbarch_init): Update.
7831 * frv-tdep.c (frv_gdbarch_init): Update.
7832 * cris-tdep.c (cris_gdbarch_init): Update.
7833 * avr-tdep.c (avr_gdbarch_init): Update.
7834 * arm-tdep.c (arm_gdbarch_init): Update.
7835 * valops.c (hand_function_call): Update.
7836
7837 2003-03-29 Andrew Cagney <cagney@redhat.com>
7838
7839 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7840 sizeof_call_dummy_words.
7841 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7842 define.
7843 * gdbarch.h: Regenerate.
7844
7845 2003-03-29 Andrew Cagney <cagney@redhat.com>
7846
7847 * infttrace.h: New file.
7848 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7849 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7850 (hpread_read_doc_function_type): Detect an initialized type1.
7851 (hpread_quick_traverse): Initialize mod_name_string.
7852 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7853 (som_solib_get_solib_by_pc): Declare.
7854 (so_lib_thread_start_addr): Declare.
7855 (no_shared_libraries): Declare.
7856 * somread.c (init_import_symbols): Make static. Add forward
7857 declaration.
7858 * config/pa/nm-hppah.h: Include "infttrace.h" for
7859 parent_attach_all.
7860 (hppa_insert_hw_watchpoint): Declare.
7861 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7862 * hppah-nat.c: Include "gdb_string.h".
7863 (parent_attach_all): Delete extern declaration, moved to
7864 "infttrace.h".
7865 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7866 int.
7867 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7868 * Makefile.in (infttrace_h): Define.
7869 (hpread.o): Update dependencies.
7870 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7871 * hppa-hpux-tdep.c: Include "gdb_string.h".
7872 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7873 * infrun.c (handle_inferior_event): Always initialize
7874 stepped_after_stopped_by_watchpoint. Add default and remove
7875 fallthrough in switch statement.
7876 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7877 parameter to int.
7878 (hppa_remove_hw_watchpoint): Ditto.
7879
7880 2003-03-29 Andrew Cagney <cagney@redhat.com>
7881
7882 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7883 offset.
7884
7885 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
7886
7887 * arm-tdep.c (arm_push_arguments): Delete.
7888 (struct stack_item): New type.
7889 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7890 (arm_store_struct_return): Delte.
7891 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7892 arm_push_arguments or arm_store_struct_return.
7893
7894 2003-03-28 Andrew Cagney <cagney@redhat.com>
7895
7896 * Makefile.in (d10v-tdep.o): Update dependencies.
7897 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7898 * d10v-tdep.c: Include "remote.h".
7899 (target_resume_hook): Delete extern declaration.
7900 (target_wait_loop_hook): Ditto.
7901 (tdisassemble_command): Eliminate assignment in "if" conditional.
7902 (d10v_ts2_register_sim_regno): Eliminate call to
7903 legacy_register_sim_regno.
7904 (d10v_ts3_register_sim_regno): Ditto.
7905
7906 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7907
7908 * thread.c: Reindented.
7909 * lin-lwp.c: Ditto.
7910 * linux-proc.c: Ditto.
7911
7912 2003-03-28 Bob Rossi <bob_rossi@cox.net>
7913
7914 * MAINTAINERS (write after approval): Add myself.
7915
7916 2003-03-27 Theodore A. Roth <troth@openavr.org>
7917
7918 * objc-exp.y: Add missing semi-colons.
7919
7920 2003-03-27 Andrew Cagney <cagney@redhat.com>
7921
7922 * regcache.c (write_sp): Delete function and references.
7923 * inferior.h (write_sp): Delete declaration.
7924 * valops.c (hand_function_call): Replace write_sp with
7925 TARGET_WRITE_SP.
7926 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7927 (sparc_pop_frame): Ditto.
7928
7929 2003-03-27 Andrew Cagney <cagney@redhat.com>
7930
7931 * NEWS: Mention removal of support for hppa*-*-bsd* and
7932 hppa*-*-osf* natives, and hppa*-*-pro* target.
7933 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7934 * config/pa/xm-pa.h: Obsolete file.
7935 * config/pa/xm-hppab.h: Obsolete file.
7936 * config/pa/nm-hppab.h: Obsolete file.
7937 * config/pa/tm-hppab.h: Obsolete file.
7938 * config/pa/tm-hppao.h: Obsolete file.
7939 * config/pa/nm-hppao.h: Obsolete file.
7940 * config/pa/tm-pro.h: Obsolete file.
7941 * config/pa/hppaosf.mt: Obsolete file.
7942 * config/pa/hppaosf.mh: Obsolete file.
7943 * config/pa/hppapro.mt: Obsolete file.
7944 * config/pa/hppabsd.mt: Obsolete file.
7945 * config/pa/hppabsd.mh: Obsolete file.
7946 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7947 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7948 hppa*-*-osf*.
7949
7950 2003-03-27 Andrew Cagney <cagney@redhat.com>
7951
7952 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7953 push_arguments. Don't set push_return_address or write_sp.
7954 (d10v_push_dummy_call): Replace d10v_push_arguments.
7955 (d10v_push_return_address, d10v_write_sp): Delete function,
7956 handled by push_dummy_call.
7957
7958 2003-03-26 Andrew Cagney <cagney@redhat.com>
7959
7960 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7961 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7962 regcache and dummy_addr parameters.
7963 * gdbarch.h, gdbarch.c: Re-generate.
7964 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7965 available; assume it will handle stack alignment and return
7966 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7967 legacy_push_arguments.
7968 (legacy_push_arguments): Rename default_push_arguments.
7969 * value.h (legacy_push_arguments): Rename default_push_arguments.
7970 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7971 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7972 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7973 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7974 * config/i386/tm-symmetry.h: Update.
7975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7976 * x86-64-tdep.c (x86_64_init_abi): Update.
7977 * v850-tdep.c (v850_gdbarch_init): Update.
7978 * sparc-tdep.c (sparc_gdbarch_init): Update.
7979 * sh-tdep.c (sh_gdbarch_init): Update.
7980 * s390-tdep.c (s390_gdbarch_init): Update.
7981 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7982 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7983 * mips-tdep.c (mips_gdbarch_init): Update.
7984 * mcore-tdep.c (mcore_gdbarch_init): Update.
7985 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7986 * ia64-tdep.c (ia64_gdbarch_init): Update.
7987 * i386-tdep.c (i386_gdbarch_init): Update.
7988 * hppa-tdep.c (hppa_gdbarch_init): Update.
7989 * h8300-tdep.c (h8300_gdbarch_init): Update.
7990 * frv-tdep.c (frv_gdbarch_init): Update.
7991 * d10v-tdep.c (d10v_gdbarch_init): Update.
7992 * cris-tdep.c (cris_gdbarch_init): Update.
7993 * avr-tdep.c (avr_gdbarch_init): Update.
7994 * arm-tdep.c (arm_gdbarch_init): Update.
7995 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7996 * alpha-tdep.c (alpha_gdbarch_init): Update.
7997
7998 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
7999
8000 * signals/signals.c (do_target_signal_to_host): Correct realtime
8001 signal range test.
8002
8003 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8004
8005 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8006 (struct sal_chain, map_catch_names): Remove.
8007 (catch_exception_command_1): Don't call
8008 handle_gnu_4_16_catch_command.
8009
8010 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8011
8012 From Mark Dettinger <dettinge@de.ibm.com>:
8013 * dwarf2cfi.c (read_2u): Increment pointer by two.
8014
8015 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8016
8017 * signals/signals.c: Fix typos in last change.
8018
8019 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8020
8021 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8022 not already defined. Use __SIGRTMIN if available.
8023 (target_signal_from_host): Remove SIGRTMIN block.
8024 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8025 the signal is within the realtime range.
8026
8027 2003-03-25 Adam Fedor <fedor@gnu.org>
8028
8029 * Makefile.in (infrun.o): Add $(language_h)
8030 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8031 for language specific trampolines.
8032 * language.h (struct language_defn): Add skip_trampoline.
8033 (skip_language_trampoline): Declare.
8034 * language.c (unk_lang_trampoline, skip_language_trampoline):
8035 New functions.
8036 (unknown_language_defn, auto_language_defn, local_language_defn):
8037 Add ukn_lang_trampoline.
8038 * ada-lang.c (ada_language_defn): Add NULL for language
8039 specific skip_trampoline.
8040 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8041 scm-lang.c: Likewise.
8042 * objc-lang.c (objc_skip_trampoline): New function.
8043 (objc_language_defn): Add objc_skip_trampoline.
8044
8045 2003-03-25 Andrew Cagney <cagney@redhat.com>
8046
8047 * frame.c (get_prev_frame): Delay validating a frame's ID -
8048 non-NULL, didn't go backwards - until an attempt to unwind it to
8049 the previous frame.
8050
8051 2003-03-25 Andrew Cagney <cagney@redhat.com>
8052
8053 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8054 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8055 * gdbarch.h, gdbarch.c: Re-generate.
8056 * config/sparc/tm-sparc.h
8057 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8058 * sparc-tdep.c (sparc_gdbarch_init): Set
8059 deprecated_extra_stack_alignment_needed.
8060 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8062 extra_stack_alignment_needed.
8063 * v850-tdep.c (v850_gdbarch_init): Ditto.
8064 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8065 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8066 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8067 * cris-tdep.c (cris_gdbarch_init): Ditto.
8068 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8069 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8070
8071 2003-03-25 Andrew Cagney <cagney@redhat.com>
8072
8073 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8074 STORE_STRUCT_RETURN.
8075 * gdbarch.h, gdbarch.c: Regenerate.
8076 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8077 (d10v_push_arguments): Set the struct return register.
8078 (d10v_gdbarch_init): Update.
8079 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8080 * x86-64-tdep.c (x86_64_init_abi): Update.
8081 * vax-tdep.c (vax_gdbarch_init): Update.
8082 * v850-tdep.c (v850_gdbarch_init): Update.
8083 * sparc-tdep.c (sparc_gdbarch_init): Update.
8084 * sh-tdep.c (sh_gdbarch_init): Update.
8085 * s390-tdep.c (s390_gdbarch_init): Update.
8086 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8087 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8088 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8089 * mips-tdep.c (mips_gdbarch_init): Update.
8090 * mcore-tdep.c (mcore_gdbarch_init): Update.
8091 * m68k-tdep.c (m68k_gdbarch_init): Update.
8092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8093 * ia64-tdep.c (ia64_gdbarch_init): Update.
8094 * i386-tdep.c (i386_gdbarch_init): Update.
8095 * hppa-tdep.c (hppa_gdbarch_init): Update.
8096 * h8300-tdep.c (h8300_gdbarch_init): Update.
8097 * frv-tdep.c (frv_gdbarch_init): Update.
8098 * cris-tdep.c (cris_gdbarch_init): Update.
8099 * avr-tdep.c (avr_gdbarch_init): Update.
8100 * arm-tdep.c (arm_gdbarch_init): Update.
8101 * alpha-tdep.c (alpha_gdbarch_init): Update.
8102
8103 2003-03-25 Andrew Cagney <cagney@redhat.com>
8104
8105 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8106 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8107 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8108 * gdbarch.h, gdbarch.c: Regenerate.
8109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8110 call_dummy_stack_adjust_p.
8111 * vax-tdep.c (vax_gdbarch_init): Ditto.
8112 * v850-tdep.c (v850_gdbarch_init): Ditto.
8113 * sh-tdep.c (sh_gdbarch_init): Ditto.
8114 * s390-tdep.c (s390_gdbarch_init): Ditto.
8115 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8116 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8117 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8118 * mips-tdep.c (mips_gdbarch_init): Ditto.
8119 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8120 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8122 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8123 * i386-tdep.c (i386_gdbarch_init): Ditto.
8124 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8125 * frv-tdep.c (frv_gdbarch_init): Ditto.
8126 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8127 * cris-tdep.c (cris_gdbarch_init): Ditto.
8128 * avr-tdep.c (avr_gdbarch_init): Ditto.
8129 * arm-tdep.c (arm_gdbarch_init): Ditto.
8130 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8131 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8132 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8133 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8134 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8135 call_dummy_stack_adjust_p.
8136 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8137 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8138 * sparc-tdep.c (sparc32_push_arguments): Update.
8139 * valops.c (hand_function_call): Update.
8140
8141 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8142
8143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8144 set_gdbarch_char_signed.
8145
8146 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8147
8148 PR cli/548
8149 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8150
8151 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8152
8153 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8154 (_initialize_arm_tdep): Don't set tm_print_insn.
8155
8156 2003-03-24 Adam Fedor <fedor@gnu.org>
8157
8158 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8159 * objc-lang.h: Add multiple inclusion protection.
8160 (start_msglist, add_msglist, end_msglist): Additional declarations.
8161
8162 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8163
8164 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8165 value was renamed to ARM_FLOAT_SOFT_FPA.
8166
8167 2003-03-23 Andrew Cagney <cagney@redhat.com>
8168
8169 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8170 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8171 * gdbarch.h, gdbarch.c: Regenerate.
8172 * valops.c (hand_function_call): Update.
8173 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8174 * frame.c (legacy_saved_regs_this_id): Update.
8175 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8176 * dummy-frame.h: Update.
8177 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8178 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8179 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8180 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8181 * config/m68k/tm-sun3.h: Update.
8182 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8183 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8184 * x86-64-tdep.c (x86_64_init_abi): Update.
8185 * vax-tdep.c (vax_gdbarch_init): Update.
8186 * v850-tdep.c (v850_gdbarch_init): Update.
8187 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8188 * sh-tdep.c (sh_gdbarch_init): Update.
8189 * s390-tdep.c (s390_gdbarch_init): Update.
8190 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8191 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8192 (frame_get_saved_regs): Update.
8193 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8194 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8195 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8196 * mips-tdep.c (mips_gdbarch_init): Update.
8197 * mcore-tdep.c (mcore_gdbarch_init): Update.
8198 * m68k-tdep.c (m68k_gdbarch_init): Update.
8199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8200 * ia64-tdep.c (ia64_gdbarch_init): Update.
8201 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8202 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8203 (i386_interix_back_one_frame): Update.
8204 * hppa-tdep.c (hppa_gdbarch_init): Update.
8205 (hppa_init_extra_frame_info): Update.
8206 * h8300-tdep.c (h8300_gdbarch_init): Update.
8207 * frv-tdep.c (frv_gdbarch_init): Update.
8208 * cris-tdep.c (cris_gdbarch_init): Update.
8209 * avr-tdep.c (avr_gdbarch_init): Update.
8210 * arm-tdep.c (arm_gdbarch_init): Update.
8211 * alpha-tdep.c (alpha_gdbarch_init): Update.
8212
8213 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8214
8215 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8216 (arm_get_fp_model): Declare.
8217 * arm-tdep.c (fp_model_strings): New string array.
8218 (arm_fp_model, current_fp_model): New variables.
8219 (arm_get_fp_model): New function.
8220 (arm_set_fp): New function.
8221 (set_fp_model_sfunc): New function.
8222 (show_fp_model): New function.
8223 (_initialize_arm_tdep): Add new command to set/show the FPU.
8224 (arm_extract_return_value): Use arm_get_fp_model.
8225 (arm_store_return_value): Likewise.
8226 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8227 to initialize the floating-point data types.
8228 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8229 model is FPA.
8230
8231 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8232
8233 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8234 the current setting of each value.
8235 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8236 new_set and new_show. Use add_setshow_cmd_full and
8237 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8238 commands and add new version as subcommands of "set/show arm".
8239
8240 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8241
8242 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8243 (set_arm_command, show_arm_command): New functions.
8244 (_initialize_arm_tdep): Add them.
8245 (num_disassembly_options): Renamed from num_flavor_options.
8246 (valid_disassembly_styles): Renamed from valid_flavors.
8247 (disassembly_style): Renamed from disassembly_flavor.
8248 (set_disassembly_style_sfunc): Renamed from
8249 set_disassembly_flavor_sfunc.
8250 (set_disassembly_style): Renamed from set_disassembly_flavor.
8251 (arm_othernames): Updated.
8252 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8253 command. Add "set/show arm disassembly" commands. Deprecate
8254 "othernames" command.
8255
8256 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8257
8258 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8259 (arm-tdep.o): Depend on elf_arm_h.
8260
8261 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8262
8263 * Makefile.in (coff_internal_h): Define.
8264 (arm-tdep.o): Update dependencies.
8265
8266 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8267
8268 * arm-tdep.c (prologue_cache): Delete.
8269 (check_prologue_cache, save_prologue_cache): Delete.
8270 (arm_scan_prologue): Don't check or update the prologue_cache.
8271 (arm_gdb_arch_init): Don't initialize it.
8272 (_initialize_arm_tdep): Likewise.
8273
8274 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8275
8276 * MAINTAINERS (tui): Maintainer of tui code.
8277
8278 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8279
8280 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8281 (i386-cygwin-tdep.o): Add dependencies.
8282 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8283 * i386-cygwin-tdep.c: New file.
8284 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8285 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8286
8287 2003-03-20 Andrew Cagney <cagney@redhat.com>
8288
8289 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8290 (handle_inferior_event): Remove code calling
8291 DYNAMIC_TRAMPOLINE_NEXTPC.
8292
8293 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8294 already has a full path.
8295
8296 * main.c (gdb_main): Return 1.
8297 (captured_main): Call error to report an invalid interpreter.
8298
8299 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8300 * alpha-osf1-tdep.c: Include "gdb_string.h".
8301
8302 2003-03-19 J. Brobecker <brobecker@gnat.com>
8303
8304 Continuing work to convert the hppa targets to multiarch partial.
8305
8306 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8307 method, now that hppa_push_dummy_frame has a conformant prototype.
8308 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8309 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8310 for the switch to multiarch partial.
8311
8312 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8313
8314 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8315 when iss is issNull.
8316
8317 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8318
8319 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8320 NUM_REGS bounds check.
8321
8322 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8323
8324 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8325 * mips-tdep.c (gdb_assert.h): Include.
8326 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8327 (mips_register_name): Handle integer registers explicitly. Add
8328 bounds checking.
8329 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8330 (mips_lsi33k_reg_names): Don't list integer registers; they're
8331 handled by mips_register_name() now.
8332 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8333 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8334 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8335 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8336 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8337
8338 2003-03-18 Andrew Cagney <cagney@redhat.com>
8339
8340 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8341 a void pointer.
8342 * gdbtypes.h (print_scalar_formatted): Update declaration.
8343 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8344
8345 2003-03-18 J. Brobecker <brobecker@gnat.com>
8346
8347 * infrun.c (observer.h): Add #include.
8348 (normal_stop): Add call to observer_notify_normal_stop.
8349 * Makefile.in (infrun.o): Add dependency on observer.h.
8350
8351 2003-03-18 J. Brobecker <brobecker@gnat.com>
8352
8353 Continuing work to convert the hppa targets to multiarch partial.
8354 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8355 parameter. Reformat comment.
8356 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8357 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8358 to match new profile.
8359
8360 2003-03-18 J. Brobecker <brobecker@gnat.com>
8361
8362 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8363 appear to be working in any case.
8364
8365 2003-03-18 J. Brobecker <brobecker@gnat.com>
8366
8367 * observer.c (observer_test_first_observer): New static variable.
8368 (observer_test_second_observer): Likewise.
8369 (observer_test_third_observer): Likewise.
8370 (observer_test_first_notification_function): New static function.
8371 (observer_test_second_notification_function): Likewise.
8372 (observer_test_third_notification_function): Likewise.
8373
8374 2003-03-17 J. Brobecker <brobecker@gnat.com>
8375
8376 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8377 * somsolib.c (gdb_assert.h): Likewise.
8378 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8379 (somsolib.o): Likewise.
8380
8381 2003-03-17 Andrew Cagney <cagney@redhat.com>
8382
8383 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8384 BFD. Simplify setting of di.endian.
8385
8386 2003-03-17 Andrew Cagney <cagney@redhat.com>
8387
8388 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8389 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8390
8391 From Elena Zannoni <ezannoni@redhat.com>
8392 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8393 vector and floating-point parameters.
8394 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8395 convention.
8396 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8397
8398 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8399
8400 * MAINTAINERS: Remove my name from several maintainership roles.
8401
8402 2003-03-17 Andrew Cagney <cagney@redhat.com>
8403
8404 Fix frame off-by-one bug.
8405 * frame-unwind.h (frame_this_id_ftype): Replace
8406 frame_unwind_id_ftype.
8407 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8408 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8409 with "prev_register".
8410 * frame-unwind.c (frame_unwind_find_by_pc): Return
8411 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8412 comment.
8413 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8414 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8415 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8416 (dummy_frame_unwind): Update.
8417 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8418 sentinel_frame_register_unwind.
8419 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8420 (sentinel_frame_unwinder): Update.
8421 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8422 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8423 * frame.c (create_sentinel_frame): Update. Initialize
8424 "prologue_cache" instead of "unwind_cache".
8425 (frame_register_unwind): Call this frame's prev_register with the
8426 next frame and this frame's prologue cache.
8427 (get_prev_frame): Simplify. Always call prev frame's this_id with
8428 this frame and prev frame's prologue cache. Document that this
8429 call is shifted one to the left when compared to the
8430 frame_register_unwind call.
8431 (legacy_saved_regs_prev_register): Replace
8432 frame_saved_regs_register_unwind.
8433 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8434 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8435 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8436 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8437 (d10v_frame_unwind): Update.
8438 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8439 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8440 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8441 "saved_regs" with "this_saved_regs".
8442
8443 2003-03-16 Andrew Cagney <cagney@redhat.com>
8444
8445 * frame.c (frame_pop): Don't call target_store_registers. Fix
8446 problem reported by Mark Kettenis.
8447
8448 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8449
8450 * i386-tdep.c (i386_register_type): Renamed from
8451 i386_register_virtual_type. Adjust function signature.
8452 (i386_gdbarch_init): Set register_type instead of
8453 deprecated_max_register_raw_size,
8454 deprecated_max_register_virtual_size and register_virtual_type.
8455
8456 2003-03-14 Andrew Cagney <cagney@redhat.com>
8457
8458 * frame.c (get_prev_frame): When a legacy frame, always call
8459 legacy_get_prev_frame. Simplify unwind code using assumption that
8460 the unwinder is new.
8461 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8462 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8463 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8464
8465 2003-03-14 Andrew Cagney <cagney@redhat.com>
8466
8467 * frame.c (get_saved_register): Delete function.
8468 * frame.h (get_saved_register): Delete declaration.
8469 * xstormy16-tdep.c: Update comment.
8470 * regcache.h: Update comments.
8471 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8472 get_saved_register and extract_address, use
8473 frame_read_unsigned_register.
8474 (sparc_frame_saved_pc): Ditto.
8475 (sparc_get_saved_register): Instead of get_saved_register, use
8476 frame_register.
8477 (sparc_pop_frame): Ditto.
8478 * findvar.c: Update comments.
8479 (value_of_register): Call frame_register instead of
8480 get_saved_register.
8481 (value_from_register): Ditto.
8482 * config/sparc/tm-sparc.h: Update comment.
8483 * breakpoint.c: Update comment.
8484
8485 2003-03-14 Andrew Cagney <cagney@redhat.com>
8486
8487 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8488 GET_SAVED_REGISTER.
8489 * gdbarch.h, gdbarch.c: Re-generate.
8490 * frame.h: Update comments.
8491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8492 * x86-64-tdep.c (x86_64_init_abi): Update.
8493 * sparc-tdep.c (sparc_gdbarch_init): Update.
8494 * sh-tdep.c (sh_gdbarch_init): Update.
8495 * mips-tdep.c (mips_gdbarch_init): Update.
8496 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8497 * cris-tdep.c (cris_gdbarch_init): Update.
8498 * ia64-tdep.c (ia64_gdbarch_init): Update.
8499 * frame.c (frame_register): Update.
8500 (get_saved_register): Update.
8501 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8502
8503 2003-03-13 Andrew Cagney <cagney@redhat.com>
8504
8505 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8506 * gdbarch.h, gdbarch.c: Regenerate.
8507 * valops.c (hand_function_call): Update comment.
8508 * stack.c (return_command): Update comment.
8509 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8510 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8512 * x86-64-tdep.c (x86_64_init_abi): Update.
8513 * vax-tdep.c (vax_gdbarch_init): Update.
8514 * v850-tdep.c (v850_gdbarch_init): Update.
8515 * sparc-tdep.c (sparc_gdbarch_init): Update.
8516 * sh-tdep.c (sh_gdbarch_init): Update.
8517 * s390-tdep.c (s390_gdbarch_init): Update.
8518 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8519 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8520 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8521 * mips-tdep.c (mips_gdbarch_init): Update.
8522 * mcore-tdep.c (mcore_gdbarch_init): Update.
8523 * m68k-tdep.c (m68k_gdbarch_init): Update.
8524 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8525 * ia64-tdep.c (ia64_gdbarch_init): Update.
8526 * i386-tdep.c (i386_gdbarch_init): Update.
8527 * hppa-tdep.c (hppa_gdbarch_init): Update.
8528 * h8300-tdep.c (h8300_gdbarch_init): Update.
8529 * frv-tdep.c (frv_gdbarch_init): Update.
8530 * cris-tdep.c (cris_gdbarch_init): Update.
8531 * avr-tdep.c (avr_gdbarch_init): Update.
8532 * arm-tdep.c (arm_gdbarch_init): Update.
8533 * alpha-tdep.c (alpha_gdbarch_init): Update.
8534
8535 2003-03-13 Andrew Cagney <cagney@redhat.com>
8536
8537 * frame.c (legacy_frame_p): New function.
8538 (get_prev_frame): Use legacy_frame_p.
8539 * frame.h (legacy_frame_p): Declare.
8540
8541 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8542
8543 * MAINTAINERS (write after approval): Alphabetically
8544 listing corrected.
8545
8546 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8547
8548 * MAINTAINERS (write after approval): Add myself.
8549
8550 2003-03-12 Andrew Cagney <cagney@redhat.com>
8551
8552 * frame.c (get_prev_frame): Rename the frame parameter to
8553 "this_frame".
8554 (get_next_frame, legacy_get_prev_frame): Ditto.
8555
8556 2003-03-12 Andrew Cagney <cagney@redhat.com>
8557
8558 * frame.c (get_current_frame): Check target_has_registers before
8559 checking target_has_stack.
8560 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8561 instead of deprecated_selected_frame.
8562 * findvar.c (value_of_register): Pass "frame", not
8563 deprecated_selected_frame, to value_of_builtin_reg.
8564
8565 2003-03-12 Andrew Cagney <cagney@redhat.com>
8566
8567 * regcache.c (regcache_cooked_write_signed): New function.
8568 (regcache_cooked_write_unsigned): New function.
8569 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8570 (regcache_cooked_read_signed): Fix regnum in range assertion.
8571 * regcache.h (regcache_cooked_write_signed): Declare.
8572 (regcache_cooked_write_unsigned): Declare.
8573
8574 2003-03-12 Andrew Cagney <cagney@redhat.com>
8575
8576 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8577 * gdbarch.h, gdbarch.c: Re-generate.
8578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8579 * x86-64-tdep.h: Update.
8580 * x86-64-tdep.c (x86_64_init_abi): Update.
8581 * v850-tdep.c (v850_gdbarch_init): Update.
8582 * sparc-tdep.c (sparc_gdbarch_init): Update.
8583 * sh-tdep.c (sh_gdbarch_init): Update.
8584 * s390-tdep.c (s390_gdbarch_init): Update.
8585 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8586 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8587 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8588 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8589 * mips-tdep.c (mips_gdbarch_init): Update.
8590 * mcore-tdep.c (mcore_gdbarch_init): Update.
8591 * m68k-tdep.c (m68k_gdbarch_init): Update.
8592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8593 * ia64-tdep.c (ia64_gdbarch_init): Update.
8594 * i386-tdep.c (i386_gdbarch_init): Update.
8595 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8596 * hppa-tdep.c (hppa_gdbarch_init): Update.
8597 * h8300-tdep.c (h8300_gdbarch_init): Update.
8598 * frv-tdep.c (frv_gdbarch_init): Update.
8599 * cris-tdep.c (cris_gdbarch_init): Update.
8600 * avr-tdep.c (avr_gdbarch_init): Update.
8601 * arm-tdep.c (arm_gdbarch_init): Update.
8602 * alpha-tdep.c (alpha_gdbarch_init): Update.
8603 * sh-tdep.c (sh_init_extra_frame_info): Update.
8604 (sh64_init_extra_frame_info): Update.
8605 * ns32knbsd-nat.c (frame_num_args): Update.
8606 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8607 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8608 (xstormy16_frame_chain_valid): Update.
8609 * vax-tdep.c (vax_saved_pc_after_call): Update.
8610 * v850-tdep.c (v850_frame_chain): Update.
8611 (v850_pop_frame): Update.
8612 (v850_init_extra_frame_info): Update.
8613 * sparc-tdep.c (setup_arbitrary_frame): Update.
8614 * ns32k-tdep.c (umax_frame_num_args): Update.
8615 * s390-tdep.c (s390_pop_frame_regular): Update.
8616 * mn10300-tdep.c (mn10300_frame_chain): Update.
8617 (mn10300_pop_frame_regular): Update.
8618 (mn10300_init_extra_frame_info): Update.
8619 * mips-tdep.c (mips_init_frame_pc_first): Update.
8620 (mips_frame_chain): Update.
8621 (mips_pop_frame): Update.
8622 * mcore-tdep.c (mcore_frame_chain): Update.
8623 (mcore_pop_frame): Update.
8624 (mcore_init_extra_frame_info): Update.
8625 * arch-utils.c (init_frame_pc_default): Update.
8626 * m68k-tdep.c (isi_frame_num_args): Update.
8627 (delta68_frame_num_args): Update.
8628 (news_frame_num_args): Update.
8629 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8630 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8631 (alpha_frame_chain): Update.
8632 (alpha_pop_frame): Update.
8633 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8634 (hppa_init_extra_frame_info): Update.
8635 (hppa_frame_chain): Update.
8636 (hppa_frame_chain_valid): Update.
8637 * cris-tdep.c (cris_init_extra_frame_info): Update.
8638 * avr-tdep.c (avr_init_extra_frame_info): Update.
8639 * arm-tdep.c (arm_frame_chain_valid): Update.
8640 (arm_init_extra_frame_info): Update.
8641 (arm_pop_frame): Update.
8642 * frame.c (frame_pc_unwind): Update.
8643 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8644 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8645 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8646 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8647 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8648 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8649
8650 2003-03-12 Andrew Cagney <cagney@redhat.com>
8651
8652 Eliminate the need for POP_FRAME.
8653 * frame.c (do_frame_unwind_register): New function.
8654 (frame_pop): When no POP_FRAME, pop the frame using register
8655 unwind and a scratch regcache.
8656 (frame_saved_regs_pop): Delete function.
8657 (trad_frame_unwinder): Update.
8658 * d10v-tdep.c (d10v_frame_pop): Delete function.
8659 (d10v_frame_unwind): Update.
8660 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8661 (sentinel_frame_unwinder): Update.
8662 * dummy-frame.c (dummy_frame_pop): Delete function.
8663 (dummy_frame_unwind): Update.
8664 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8665 (struct frame_unwind): Update.
8666
8667 2003-03-11 Kevin Buettner <kevinb@redhat.com>
8668
8669 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8670 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8671 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8672 Do range checks on register number obtained from debugging info.
8673 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8674 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8675 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8676 mapping function.
8677 (do_fp_register_row): Fix typo which caused double type to be
8678 used when attempting to unpack a float.
8679
8680 2003-03-11 J. Brobecker <brobecker@gnat.com>
8681
8682 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8683
8684 2003-03-11 Andrew Cagney <cagney@redhat.com>
8685
8686 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8687 frame. Problem found by Corinna Vinschen.
8688
8689 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8690
8691 * doublest.c (floatformat_from_length): Accept also
8692 the real size of 'long double' type.
8693
8694 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
8695
8696 From Klee Dienes <kdienes@apple.com>:
8697 * breakpoint.c (bpstat_copy): Copy the command lines as well
8698 as the old value, to match what is freed in bpstat_clear.
8699
8700 2003-03-10 David Carlton <carlton@math.stanford.edu>
8701
8702 * minsyms.c (add_minsym_to_hash_table): Replace
8703 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8704 (compare_minimal_symbols, compact_minimal_symbols)
8705 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8706 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8707 of DEPRECATED_SYMBOL_MATCHES_NAME.
8708 (lookup_minimal_symbol_solib_trampoline): Ditto.
8709
8710 2003-03-10 Andrew Cagney <cagney@redhat.com>
8711
8712 * regcache.h (regcache_cooked_read_ftype): Define.
8713 (regcache_save, regcache_restore): Add a cooked_read parameter.
8714 * regcache.c (regcache_save, regcache_restore): Update.
8715 (do_cooked_read): New function.
8716 (regcache_cpy): Pass do_cooked_read to regcache_save and
8717 regcache_restore.
8718
8719 2003-03-10 Andrew Cagney <cagney@redhat.com>
8720
8721 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8722 * gdbarch.h, gdbarch.c: Re-generate.
8723 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8724 * x86-64-tdep.h: Update.
8725 * x86-64-tdep.c (x86_64_init_abi): Update.
8726 * v850-tdep.c (v850_gdbarch_init): Update.
8727 * sparc-tdep.c (sparc_gdbarch_init): Update.
8728 * sh-tdep.c (sh_gdbarch_init): Update.
8729 * s390-tdep.c (s390_gdbarch_init): Update.
8730 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8731 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8732 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8733 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8734 * mips-tdep.c (mips_gdbarch_init): Update.
8735 * mcore-tdep.c (mcore_gdbarch_init): Update.
8736 * m68k-tdep.c (m68k_gdbarch_init): Update.
8737 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8738 * ia64-tdep.c (ia64_gdbarch_init): Update.
8739 * i386-tdep.c (i386_gdbarch_init): Update.
8740 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8741 * hppa-tdep.c (hppa_gdbarch_init): Update.
8742 * h8300-tdep.c (h8300_gdbarch_init): Update.
8743 * frv-tdep.c (frv_gdbarch_init): Update.
8744 * cris-tdep.c (cris_gdbarch_init): Update.
8745 * avr-tdep.c (avr_gdbarch_init): Update.
8746 * arm-tdep.c (arm_gdbarch_init): Update.
8747 * alpha-tdep.c (alpha_gdbarch_init): Update.
8748 * sh-tdep.c (sh_init_extra_frame_info): Update.
8749 (sh64_init_extra_frame_info): Update.
8750 * ns32knbsd-nat.c (frame_num_args): Update.
8751 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8752 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8753 (xstormy16_frame_chain_valid): Update.
8754 * vax-tdep.c (vax_saved_pc_after_call): Update.
8755 * v850-tdep.c (v850_frame_chain): Update.
8756 (v850_pop_frame): Update.
8757 (v850_init_extra_frame_info): Update.
8758 * sparc-tdep.c (setup_arbitrary_frame): Update.
8759 * ns32k-tdep.c (umax_frame_num_args): Update.
8760 * s390-tdep.c (s390_pop_frame_regular): Update.
8761 * mn10300-tdep.c (mn10300_frame_chain): Update.
8762 (mn10300_pop_frame_regular): Update.
8763 (mn10300_init_extra_frame_info): Update.
8764 * mips-tdep.c (mips_init_frame_pc_first): Update.
8765 (mips_frame_chain): Update.
8766 (mips_pop_frame): Update.
8767 * mcore-tdep.c (mcore_frame_chain): Update.
8768 (mcore_pop_frame): Update.
8769 (mcore_init_extra_frame_info): Update.
8770 * arch-utils.c (init_frame_pc_default): Update.
8771 * m68k-tdep.c (isi_frame_num_args): Update.
8772 (delta68_frame_num_args): Update.
8773 (news_frame_num_args): Update.
8774 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8775 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8776 (alpha_frame_chain): Update.
8777 (alpha_pop_frame): Update.
8778 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8779 (hppa_init_extra_frame_info): Update.
8780 (hppa_frame_chain): Update.
8781 (hppa_frame_chain_valid): Update.
8782 * cris-tdep.c (cris_init_extra_frame_info): Update.
8783 * avr-tdep.c (avr_init_extra_frame_info): Update.
8784 * arm-tdep.c (arm_frame_chain_valid): Update.
8785 (arm_init_extra_frame_info): Update.
8786 (arm_pop_frame): Update.
8787 * frame.c (frame_pc_unwind): Update.
8788 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8789 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8790 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8791 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8792 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8793 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8794
8795 2003-03-10 Andrew Cagney <cagney@redhat.com>
8796
8797 * gdbarch.sh (gdbarch_unwind_pc): New method.
8798 * gdbarch.h, gdbarch.c: Regenerate.
8799 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8800 but use read_pc and FRAME_SAVED_PC as fall backs.
8801 (frame_saved_regs_pc_unwind): Delete function.
8802 (trad_frame_unwinder): Update.
8803 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8804 (struct frame_unwind): Update.
8805 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8806 (dummy_frame_unwind): Update.
8807 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8808 (sentinel_frame_unwinder): Update.
8809 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8810 (d10v_frame_unwind): Update.
8811 (d10v_unwind_pc): New function.
8812 (d10v_gdbarch_init): Set unwind_pc.
8813
8814 2003-03-10 Andrew Cagney <cagney@redhat.com>
8815
8816 * gdbarch.h: Re-generate.
8817
8818 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8819 PC.
8820 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8821 the PC register.
8822
8823 2003-03-08 Mark Kettenis <kettenis@gnu.org>
8824
8825 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8826
8827 2003-03-08 Andrew Cagney <cagney@redhat.com>
8828
8829 * cli-out.c: Update copyright.
8830 (cli_out_data): Define typedef. Use instead of ui_out_data.
8831
8832 2003-03-08 Andrew Cagney <cagney@redhat.com>
8833
8834 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8835 the result.
8836
8837 2003-03-07 Andrew Cagney <cagney@redhat.com>
8838
8839 * gdbarch.sh: Don't generate two macro definitions when an
8840 undefined macro taking no arguments.
8841 * gdbarch.h: Regenerate.
8842
8843 2002-03-07 Michal Ludvig <mludvig@suse.cz>
8844
8845 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8846 (x86_64_unwind_dummy_id): New functions.
8847 (x86_64_init_abi): Register these two new functions.
8848
8849 2003-03-07 Michal Ludvig <mludvig@suse.cz>
8850
8851 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8852 (x86_64_skip_prologue): Move prologue detection to
8853 separate function.
8854 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8855
8856 2003-03-05 Andrew Cagney <cagney@redhat.com>
8857
8858 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8859 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8860 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8861 to use unwind_dummy_id when a dummy frame.
8862 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8863 predicate.
8864 * gdbarch.h, gdbarch.c: Regneerate.
8865
8866 2003-03-05 Andrew Cagney <cagney@redhat.com>
8867
8868 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8869 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8870 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8871 values.
8872
8873 2003-03-05 Andrew Cagney <cagney@redhat.com>
8874
8875 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8876 (struct d10v_unwind_cache): Delete field "frameless". Replace
8877 "next_addr" with "sp_offset". Add "r11_offset".
8878 (d10v_frame_unwind_cache): Update.
8879 (prologue_find_regs): Update. When "mv r11, sp", save the
8880 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8881 RN was saved in r11_offset.
8882
8883 2003-03-05 Andrew Cagney <cagney@redhat.com>
8884
8885 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8886 cached PC value in the next frame.
8887
8888 2003-03-05 Andrew Cagney <cagney@redhat.com>
8889
8890 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8891 "id_unwind_cache" with "id".
8892 (frame_id_unwind): Delete declaration.
8893 * frame.c (frame_id_unwind): Delete function.
8894 (get_prev_frame): Call the frame id unwind method directly. Store
8895 the returned next frame's ID value in NEXT_FRAME. Note that there
8896 is a problem with the wrong unwind ID being called with the wrong
8897 unwind cache.
8898
8899 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8900
8901 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8902
8903 2003-03-05 James Ingham <jingham@apple.com>
8904 Daniel Jacobowitz <drow@mvista.com>
8905
8906 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8907 (auto_cp_abi): New variable.
8908 (current_cp_abi, num_cp_abis): Make static.
8909 (CP_ABI_MAX): Define.
8910 (cp_abis): Turn into an array.
8911 (value_virtual_fn_field): Fix formatting.
8912 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8913 takes a pointer.
8914 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8915 (list_cp_abis, _initialize_cp_abi): New functions.
8916 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8917 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8918 switch_to_cp_abi. Update prototype for register_cp_abi.
8919 * Makefile.in (cp-abi.o): Update dependencies.
8920 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8921 instead of switch_to_cp_abi.
8922 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8923 register_cp_abi.
8924 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8925 register_cp_abi.
8926 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8927
8928 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
8929
8930 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8931 * dwarf2loc.c: Include "regcache.h".
8932 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8933 register_size.
8934 * Makefile.in (dwarf2loc.o): Update dependencies.
8935
8936 2003-03-04 Theodore A. Roth <troth@openavr.org>
8937
8938 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8939 number of io registers reported by remote target is not a multiple of
8940 step.
8941
8942 2003-03-04 David Carlton <carlton@math.stanford.edu>
8943
8944 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8945 (lookup_symbol_aux_psymtabs): Update call to
8946 lookup_partial_symbol.
8947 (lookup_transparent_type, find_main_psymtab)
8948 (make_symbol_overload_list): Ditto.
8949
8950 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8951
8952 * MAINTAINERS (Write after approval): Update my email address.
8953
8954 2003-03-03 Andrew Cagney <cagney@redhat.com>
8955
8956 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8957 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8958 predicate. Replace MAX_REGISTER_RAW_SIZE.
8959 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8960 MAX_REGISTER_VIRTUAL_SIZE.
8961 * regcache.c (legacy_max_register_raw_size): New function.
8962 (legacy_max_register_virtual_size): New function.
8963 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8964 (MAX_REGISTER_RAW_SIZE): Define.
8965 (legacy_max_register_raw_size): Declare.
8966 (legacy_max_register_virtual_size): Declare.
8967 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8968 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8969 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8970 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8971 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8972 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8973 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8974 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8975 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8976 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8977 * vax-tdep.c (vax_gdbarch_init): Update.
8978 * v850-tdep.c (v850_gdbarch_init): Update.
8979 * sparc-tdep.c (sparc_gdbarch_init): Update.
8980 * sh-tdep.c (sh_gdbarch_init): Update.
8981 * s390-tdep.c (s390_gdbarch_init): Update.
8982 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8983 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8984 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8985 * mips-tdep.c (mips_gdbarch_init): Update.
8986 * mcore-tdep.c (mcore_gdbarch_init): Update.
8987 * m68k-tdep.c (m68k_gdbarch_init): Update.
8988 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8989 * ia64-tdep.c (ia64_gdbarch_init): Update.
8990 * i386-tdep.c (i386_gdbarch_init): Update.
8991 * hppa-tdep.c (hppa_gdbarch_init): Update.
8992 * h8300-tdep.c (h8300_gdbarch_init): Update.
8993 * frv-tdep.c (frv_gdbarch_init): Update.
8994 * cris-tdep.c (cris_gdbarch_init): Update.
8995 * avr-tdep.c (avr_gdbarch_init): Update.
8996 * arm-tdep.c (arm_gdbarch_init): Update.
8997 * alpha-tdep.c (alpha_gdbarch_init): Update.
8998 * d10v-tdep.c (d10v_gdbarch_init): Do not set
8999 max_register_raw_size or max_register_virtual_size.
9000
9001 2003-03-03 David Carlton <carlton@math.stanford.edu>
9002
9003 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9004 SYMBOL_MATCHES_NAME, add comment.
9005 (SYMBOL_MATCHES_NATURAL_NAME): New.
9006 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9007 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9008 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9009 * symtab.c (lookup_partial_symbol): Use
9010 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9011 unhelpful comment.
9012 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9013 SYMBOL_MATCHES_NAME.
9014 Fix for PR c++/33.
9015
9016 2003-03-03 David Carlton <carlton@math.stanford.edu>
9017
9018 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9019 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9020 by regexp matching against SYMBOL_NATURAL_NAME.
9021
9022 2003-03-03 David Carlton <carlton@math.stanford.edu>
9023
9024 * linespec.c (find_method): Extract code into collect_methods.
9025 (collect_methods): New.
9026
9027 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9028
9029 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9030 get_frame_base.
9031
9032 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9033 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9034
9035 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9036
9037 * arch-utils.c (generic_register_byte): Fix to use the loop index
9038 and not regnum when summing the size of all registers up to regnum.
9039
9040 2003-03-01 Andrew Cagney <cagney@redhat.com>
9041
9042 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9043 FRAME_INIT_SAVED_REGS.
9044 * gdbarch.h, gdbarch.c: Regenerate.
9045 * stack.c (frame_info): Update.
9046 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9047 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9048 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9049 * ns32k-tdep.c (ns32k_pop_frame): Update.
9050 * mips-tdep.c (mips_pop_frame): Update.
9051 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9052 * ia64-tdep.c (ia64_frame_chain): Update.
9053 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9054 (ia64_frameless_function_invocation): Update.
9055 (ia64_init_extra_frame_info): Update.
9056 (ia64_pop_frame_regular): Update.
9057 * frame.h (struct frame_info): Update comment.
9058 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9059 * frame.c (frame_saved_regs_register_unwind): Update.
9060 (frame_saved_regs_register_unwind): Update.
9061 (deprecated_generic_get_saved_register): Update.
9062 * cris-tdep.c: Update comment.
9063 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9064 Rename macro.
9065 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9066 * x86-64-tdep.c (x86_64_init_abi): Update.
9067 * vax-tdep.c (vax_gdbarch_init): Update.
9068 * v850-tdep.c (v850_gdbarch_init): Update.
9069 * sparc-tdep.c (sparc_gdbarch_init): Update.
9070 * sh-tdep.c (sh_gdbarch_init): Update.
9071 * s390-tdep.c (s390_gdbarch_init): Update.
9072 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9073 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9074 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9075 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9076 * mips-tdep.c (mips_gdbarch_init): Update.
9077 * mcore-tdep.c (mcore_gdbarch_init): Update.
9078 * m68k-tdep.c (m68k_gdbarch_init): Update.
9079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9080 * ia64-tdep.c (ia64_gdbarch_init): Update.
9081 * i386-tdep.c (i386_gdbarch_init): Update.
9082 * frv-tdep.c (frv_gdbarch_init): Update.
9083 * avr-tdep.c (avr_gdbarch_init): Update.
9084 * arm-tdep.c (arm_gdbarch_init): Update.
9085 * alpha-tdep.c (alpha_gdbarch_init): Update.
9086
9087 2003-03-01 Andrew Cagney <cagney@redhat.com>
9088
9089 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9090 option enum and switch. When no windows, set the interpreter to
9091 INTERP_CONSOLE.
9092
9093 2003-03-01 Andrew Cagney <cagney@redhat.com>
9094
9095 * main.c (captured_main): Replace magic option characters with an
9096 enum.
9097
9098 2003-03-01 Andrew Cagney <cagney@redhat.com>
9099
9100 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9101 INIT_EXTRA_FRAME_INFO.
9102 * gdbarch.h, gdbarch.c: Regenerate.
9103 * arm-tdep.c: Update comments.
9104 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9105 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9106 * frame.h, avr-tdep.c: Ditto.
9107 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9108 (create_new_frame, legacy_get_prev_frame): Ditto.
9109 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9110 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9112 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9113 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9114 * v850-tdep.c (v850_gdbarch_init): Ditto.
9115 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9116 * sh-tdep.c (sh_gdbarch_init): Ditto.
9117 * s390-tdep.c (s390_gdbarch_init): Ditto.
9118 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9119 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9120 * mips-tdep.c (mips_gdbarch_init): Ditto.
9121 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9122 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9123 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9124 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9125 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9126 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9127 * frv-tdep.c (frv_gdbarch_init): Ditto.
9128 * cris-tdep.c (cris_gdbarch_init): Ditto.
9129 * avr-tdep.c (avr_gdbarch_init): Ditto.
9130 * arm-tdep.c (arm_gdbarch_init): Ditto.
9131 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9132 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9133
9134 2003-03-01 Andrew Cagney <cagney@redhat.com>
9135
9136 * gdbarch.sh (register_type): New function with predicate.
9137 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9138 * gdbarch.h, gdbarch.c: Re-generate.
9139 * arch-utils.c (generic_register_byte): Use generic_register_size.
9140 (generic_register_size): When available, use
9141 gdbarch_register_type.
9142 * regcache.c (init_regcache_descr): When available, initialize the
9143 register type array using gdbarch_register_type. If the
9144 architecture supplies gdbarch_register_type, do not use the legacy
9145 regcache layout.
9146 * d10v-tdep.c (d10v_register_type): Replace
9147 d10v_register_virtual_type.
9148 (d10v_gdbarch_init): Set register_type instead of
9149 register_virtual_type.
9150
9151 2003-03-01 Andrew Cagney <cagney@redhat.com>
9152
9153 * Makefile.in (ax-gdb.o): Update dependencies.
9154 * ax-gdb.c: Include "regcache.h".
9155 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9156 * findvar.c (value_of_register): Ditto.
9157 * infcmd.c (default_print_registers_info): Ditto.
9158
9159 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9160
9161 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9162 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9163
9164 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9165
9166 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9167 of STREQ.
9168
9169 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9170
9171 * Makefile.in (dwarf2loc.o): Update dependencies.
9172 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9173 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9174 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9175 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9176 (locexpr_tracepoint_var_ref): New function.
9177 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9178
9179 2003-02-28 Andrew Cagney <cagney@redhat.com>
9180
9181 * regcache.c (register_size): New function.
9182 * regcache.h (register_size): Declare
9183 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9184 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9185
9186 2003-02-28 David Carlton <carlton@math.stanford.edu>
9187
9188 * linespec.c (decode_compound): Extract code into find_method.
9189 (find_method): New.
9190
9191 2003-02-28 J. Brobecker <brobecker@gnat.com>
9192
9193 * Makefile.in: Add rules to build and link in observer.o.
9194
9195 2003-02-27 J. Brobecker <brobecker@gnat.com>
9196
9197 * observer.c: Minor comments edits.
9198
9199 2003-02-27 J. Brobecker <brobecker@gnat.com>
9200
9201 * observer.h, observer.c: New file.
9202
9203 2003-02-27 Andrew Cagney <cagney@redhat.com>
9204
9205 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9206
9207 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9208
9209 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9210 (M6812_OP_STS_EXT): Likewise.
9211 (m6811_prologue): Use the above to recognize prologue.
9212 (m6812_prologue): Likewise.
9213
9214 2003-02-27 David Carlton <carlton@math.stanford.edu>
9215
9216 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9217 SYMBOL_PRINT_NAME.
9218 (compare_psymbols): Ditto.
9219 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9220
9221 2003-02-27 Michael Snyder <msnyder@redhat.com>
9222
9223 * f-lang.c (build_fortran_types): New function.
9224 (_initialize_f_language): Gdbarch-register built-in fortran types.
9225 * doublest.c (extract_floating): Fix warning text.
9226
9227 2003-02-27 Andrew Cagney <cagney@redhat.com>
9228
9229 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9230 predicate. Replaces PUSH_DUMMY_FRAME.
9231 * gdbarch.h, gdbarch.c: Regnerate.
9232 * valops.c (hand_function_call): Update. Call
9233 generic_push_dummy_frame directly.
9234 * vax-tdep.c (vax_gdbarch_init): Update.
9235 * sparc-tdep.c (sparc_gdbarch_init): Update.
9236 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9237 * m68k-tdep.c (m68k_gdbarch_init): Update.
9238 * hppa-tdep.c (hppa_gdbarch_init): Update.
9239 * alpha-tdep.c (alpha_gdbarch_init): Update.
9240 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9241 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9242 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9243 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9244 push_dummy_frame to generic_push_dummy_frame.
9245 * v850-tdep.c (v850_gdbarch_init): Ditto.
9246 * sh-tdep.c (sh_gdbarch_init): Ditto.
9247 * s390-tdep.c (s390_gdbarch_init): Ditto.
9248 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9249 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9250 * mips-tdep.c (mips_gdbarch_init): Ditto.
9251 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9253 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9254 * i386-tdep.c (i386_gdbarch_init): Ditto.
9255 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9256 * frv-tdep.c (frv_gdbarch_init): Ditto.
9257 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9258 * cris-tdep.c (cris_gdbarch_init): Ditto.
9259 * avr-tdep.c (avr_gdbarch_init): Ditto.
9260 * arm-tdep.c (arm_gdbarch_init): Ditto.
9261
9262 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9263
9264 * mips-tdep.c (show_mips_abi): New function.
9265 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9266 command ``show mips abi''.
9267
9268 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9269
9270 From Elena Zannoni <ezannoni@redhat.com>
9271 * dbxread.c (process_one_symbol): Only record line 0 if one or
9272 more sline entries have been seen for the function.
9273
9274 2003-02-26 Michael Chastain <mec@shout.net>
9275
9276 * configure: Regenerate with autoconf 000227.
9277
9278 2003-02-26 Michael Chastain <mec@shout.net>
9279
9280 Close PR build/660.
9281 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9282 for old libc5/glibc.
9283 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9284
9285 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9286
9287 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9288 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9289
9290 2003-02-26 Michael Chastain <mec@shout.net>
9291
9292 * configure.in: New variable HAVE_UINTPTR_T.
9293 * configure, config.in: Regenerated.
9294
9295 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9296
9297 Fix PR build/1097.
9298 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9299
9300 2003-02-25 Andrew Cagney <cagney@redhat.com>
9301
9302 * frame.c (get_prev_frame): Add comment on check for
9303 inside_entry_func. Only check for inside_entry_file when not a
9304 dummy and not a sentinel. Check that the new frame is not inner
9305 to the old frame.
9306
9307 2003-02-25 Andrew Cagney <cagney@redhat.com>
9308
9309 * frame.c (frame_debug): New variable.
9310 (_initialize_frame): Add "set/show debug frame" command.
9311 (get_prev_frame): When frame_debug, print reason why unwind
9312 failed.
9313
9314 2003-02-25 Michael Chastain <mec@shout.net>
9315
9316 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9317 to avoid uintptr_t definition problems.
9318
9319 2003-02-25 David Carlton <carlton@math.stanford.edu>
9320
9321 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9322 (SYMBOL_LINKAGE_NAME): Ditto.
9323 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9324 SYMBOL_LINKAGE_NAME.
9325 (struct general_symbol_info): Expand comment.
9326 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9327 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9328 (SYMBOL_MATCHES_REGEXP): Ditto.
9329 * symtab.c (symbol_natural_name): New function.
9330 * objfiles.h: Replace all uses of SYMBOL_NAME by
9331 DEPRECATED_SYMBOL_NAME.
9332 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9333 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9334 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9335 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9336 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9337 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9338 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9339 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9340 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9341 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9342 * ada-exp.y: Ditto.
9343 * ada-exp.y: Update copyright.
9344 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9345 * cp-valprint.c: Ditto.
9346
9347 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9348
9349 * infptrace.c (detach): Do not flag error if ptrace detach fails
9350 and errno is set to ESRCH.
9351
9352 2003-02-24 Andrew Cagney <cagney@redhat.com>
9353
9354 * infptrace.c (udot_info): Change type of udot_off to long. Use
9355 paddr when printing udot_off's value.
9356
9357 2003-02-24 David Carlton <carlton@math.stanford.edu>
9358
9359 * symtab.c (make_symbol_overload_list): Only read in partial
9360 symtabs containing a matching partial symbol.
9361
9362 2003-02-24 David Carlton <carlton@math.stanford.edu>
9363
9364 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9365 do the comparison, not strcmp.
9366 * symfile.c (compare_psymbols): Ditto.
9367 * defs.h: Declare strcmp_iw_ordered.
9368 * utils.c (strcmp_iw_ordered): New function.
9369
9370 2003-02-24 Jim Blandy <jimb@redhat.com>
9371
9372 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9373 support, shared libs): Remove my name from here, to better reflect
9374 reality.
9375
9376 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9377
9378 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9379 (target_ops): Add to_have_continuable_watchpoint.
9380 * target.c (update_current_target): Add INHERIT line for
9381 to_have_continuable_watchpoint.
9382 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9383 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9384 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9385 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9386
9387 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9388
9389 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9390 maintainership.
9391
9392 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9393
9394 * solib.c (solib_open): Call target defined search function after
9395 failing with solib-search-path.
9396 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9397 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9398
9399 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9400
9401 * MAINTAINERS: Add myself to Write After section.
9402
9403 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9404
9405 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9406
9407 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9408
9409 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9410 (m68hc11_add_reggroups): New function.
9411 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9412 (m68hc11_gdbarch_init): Install the reggroups.
9413 (_initialize_m68hc11_tdep): Initialize them.
9414
9415 2003-02-21 James E Wilson <wilson@tuliptree.org>
9416
9417 * MAINTAINERS: Update my email address.
9418
9419 2003-02-21 David Carlton <carlton@math.stanford.edu>
9420
9421 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9422
9423 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9424
9425 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9426 * symtab.h: Add opaque declarations of struct axs_value and
9427 struct agent_expr.
9428 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9429 (struct location_funcs): New type.
9430 (struct symbol): Add "loc" to aux_value.
9431 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9432 * dwarf2read.c: Include "dwarf2expr.h".
9433 (dwarf2_symbol_mark_computed): New function.
9434 (read_func_scope): Use it.
9435 (var_decode_location): New function.
9436 (new_symbol): Use it.
9437 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9438
9439 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9440 (dwarf2expr_h, dwarf2loc_h): New variables.
9441 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9442 (dwarf2expr.o, dwarf2loc.o): New rules.
9443 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9444 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9445 LOC_COMPUTED_ARG.
9446 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9447 * m2-exp.y (yylex): Likewise.
9448 * printcmd.c (address_info, print_frame_args): Likewise.
9449 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9450 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9451 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9452 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9453 * symtab.c (lookup_block_symbol): Likewise.
9454
9455 2003-02-20 Adam Fedor <fedor@gnu.org>
9456
9457 * symtab.h: Remove objc_specific struct
9458 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9459 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9460 Have language_objc use cplus_specific struct.
9461
9462 2003-02-20 Tom Tromey <tromey@redhat.com>
9463
9464 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9465 TYPE_NAME, when printing a String value. PR java/1075.
9466
9467 2003-02-20 Adam Fedor <fedor@gnu.org>
9468
9469 * objc-lang.h (find_methods): Remove declaration.
9470 * objc-lang.c (find_methods): Make static.
9471
9472 2003-02-20 Christopher Faylor <cgf@redhat.com>
9473
9474 * win32-nat.c (get_image_name): Check return value from
9475 ReadProcessMemory.
9476 (child_xfer_memory): Ditto.
9477
9478 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9479
9480 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9481 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9482 '${exec_prefix}' (in addition to the expansion thereof) as
9483 relocatable.
9484 * configure: Rebuilt.
9485
9486 2003-02-20 David Carlton <carlton@math.stanford.edu>
9487
9488 * symtab.c (search_symbols): Revert the search_symbols part of my
9489 2002-12-23 patch. Add comment.
9490
9491 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9492
9493 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9494 * dbxread.c (elfstab_build_psymtabs): Don't call
9495 install_minimal_symbols.
9496 (stabsect_build_psymtabs): Likewise.
9497 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9498 earlier.
9499 * somread.c (som_symfile_read): Call install_minimal_symbols
9500 and do_cleanups earlier.
9501 * nlmread.c (nlm_symfile_read): Likewise.
9502 * mdebugread.c (elfmdebug_build_psymtabs): Call
9503 install_minimal_symbols and make appropriate cleanups.
9504
9505 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9506
9507 * solib.c (reload_shared_libraries): New function.
9508 (_initialize_solib): Add callbacks for ``set solib-search-path''
9509 and ``set solib-absolute-prefix''.
9510
9511 2003-02-20 David Carlton <carlton@math.stanford.edu>
9512
9513 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9514 expand comment.
9515 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9516 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9517 * ada-typeprint.c (ada_typedef_print): Ditto.
9518 * ax-gdb.c (gen_var_ref): Ditto.
9519 * breakpoint.c (print_one_breakpoint): Ditto.
9520 * buildsym.c (finish_block): Ditto.
9521 * c-valprint.c (c_val_print): Ditto.
9522 * expprint.c (print_subexp): Ditto.
9523 * findvar.c (locate_var_value): Ditto.
9524 * infcmd.c (jump_command): Ditto.
9525 * linespec.c (decode_line_2, decode_compound): Ditto.
9526 * maint.c (maintenance_translate_address): Ditto.
9527 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9528 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9529 Ditto.
9530 * p-valprint.c (pascal_val_print): Ditto.
9531 * stabsread.c (define_symbol): Ditto.
9532 * stack.c (print_frame, frame_info, print_block_frame_locals)
9533 (print_frame_arg_vars, return_command): Ditto.
9534 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9535 * symmisc.c (print_symbol): Ditto.
9536 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9537 (compare_search_syms, print_symbol_info, print_msymbol_info)
9538 (rbreak_command): Ditto.
9539 * tracepoint.c (tracepoints_info): Ditto.
9540 * typeprint.c (typedef_print): Ditto.
9541 * valops.c (value_of_variable, hand_function_call): Ditto.
9542 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9543 * ada-typeprint.c: Update Copyright.
9544 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9545 * tracepoint.c, cli/cli-cmds.c: Ditto.
9546
9547 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9548
9549 * frame.c (generic_unwind_get_saved_register): Make non-static.
9550 * frame.h (generic_unwind_get_saved_register): Declare.
9551 * mips-tdep.c (read_next_frame_reg): Fetch register from
9552 current regcache when frame is NULL.
9553 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9554 that must be NULL.
9555 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9556 instead of frame_register_unwind().
9557
9558 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9559
9560 * remote-sim.c (gdbsim_insert_breakpoint)
9561 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9562 code.
9563
9564 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9565
9566 * remote.c (_initialize_remote): Add commands "set/show remote
9567 hardware-watchpoint-limit" and "set/show remote
9568 hardware-breakpoint-limit".
9569 (remote_hw_watchpoint_limit): Initialize to -1.
9570 (remote_hw_breakpoint_limit): Ditto.
9571 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9572
9573 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9574
9575 * coff-pe-read.c: New file - support reading of minimal symbols from a
9576 portable executable using the export table.
9577 * coff-pe-read.h: New file.
9578 * coffread.c: Include coff-pe-read.h.
9579 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9580 debugging symbols found.
9581 * Makefile.in (SFILES): Add coff-pe-read.o.
9582 (coff_pe_read_h): Define.
9583 (COMMON_OBS): Add coff-pe-read.o.
9584 (coffread.o): Add coff_pe_read_h dependency.
9585 (coff-pe-read.o): New target.
9586
9587 2003-02-19 David Carlton <carlton@math.stanford.edu>
9588
9589 * Makefile.in (SFILES): Add block.c.
9590 (block_h): New.
9591 (COMMON_OBS): Add block.o.
9592 (block.o): New.
9593 (x86-64-tdep.o): Add $(block_h).
9594 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9595 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9596 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9597 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9598 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9599 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9600 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9601 * value.h: Add opaque declaration for struct block.
9602 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9603 * ada-lang.h: Ditto.
9604 * x86-64-tdep.c: #include "block.h"
9605 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9606 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9607 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9608 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9609 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9610 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9611 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9612 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9613 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9614 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9615 * symtab.c (block_function): Ditto.
9616 (contained_in): Ditto.
9617 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9618 block.h. Add opaque declaration for struct block.
9619 * symtab.h: Move block_function and contained_in declarations to
9620 block.h. Add opaque declarations for struct block, struct
9621 blockvector.
9622 (struct block): Move to block.h.
9623 (struct blockvector): Ditto.
9624 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9625 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9626 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9627 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9628 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9629 Ditto.
9630 * block.c: New file.
9631 * block.h: New file.
9632
9633 2003-02-19 Theodore A. Roth <troth@openavr.org>
9634
9635 * avr-tdep.c (avr_extract_return_value): Remove function.
9636 (avr_store_return_value): Remove function.
9637 (avr_extract_struct_value_address): Remove function.
9638 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9639
9640 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9641
9642 * rs6000-tdep.c: Include "gdb_assert.h".
9643 (registers_e500): Add "acc" and "spefscr".
9644 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9645 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9646 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9647 really is "r0".
9648 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9649
9650 2003-02-18 Keith Seitz <keiths@redhat.com>
9651
9652 * Makefile.in: Add gdbtk-interps.c.
9653
9654 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9655
9656 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9657 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9658
9659 2003-02-18 Andrew Cagney <cagney@redhat.com>
9660
9661 * symtab.h (struct objfile): Add opaque declaration.
9662
9663 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
9664
9665 From Jim Ingham <jingham@apple.com>:
9666 * dbxread.c (process_one_symbol): Use last_function_start rather
9667 than function_start_offset to find the real beginning of the
9668 current function. The latter is just the text section offset on
9669 some systems, the former is always the real function start.
9670
9671 2003-02-17 Andrew Cagney <cagney@redhat.com>
9672
9673 * configure.in: Revert ${target} != ${host}.
9674
9675 2003-02-17 Andrew Cagney <ac131313@redhat.com>
9676
9677 * configure.in (Makefile): Use the test ${target} != ${host},
9678 instead of the absence of the "nm.h" file, to determine of the
9679 configuration non-native.
9680 * configure: Regenerate.
9681
9682 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
9683
9684 From Brian Ford <ford@vss.fsi.com>
9685
9686 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9687 conditionalize tui_active test.
9688 (lookup_cmd_1): Ditto.
9689
9690 2003-02-14 Mark Kettenis <kettenis@gnu.org>
9691
9692 * configure.in: Add check for _etext.
9693 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9694 available.
9695 * config.in, configure: regenerated.
9696
9697 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
9698
9699 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9700
9701 2003-02-14 Andrew Cagney <ac131313@redhat.com>
9702
9703 * main.c (tui_version): Delete variable.
9704 (captured_main): When --tui, set interpreter_p to "tui" instead of
9705 enabling tui_version.
9706 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9707 tui_version.
9708 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9709 * cli/cli-cmds.c (disassemble_command): Ditto.
9710 * defs.h (tui_version): Delete declaration.
9711 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9712 (tui-interp.o): Add rules.
9713 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9714
9715 2003-02-14 Christopher Faylor <cgf@redhat.com>
9716
9717 * win32-nat.c (register_loaded_dll): Correctly set address range for
9718 just-loaded dll.
9719
9720 2003-02-12 Jason Molenda (jmolenda@apple.com)
9721
9722 * symmisc.c (print_objfile_statistics): Include information about
9723 the number of psymtabs and symtabs in each object file.
9724
9725 2003-02-13 Keith R Seitz <keiths@redhat.com>
9726
9727 * main.h (struct captured_main_args): Add interpreter_p.
9728 * main.c (captured_main): Initialize interpreter_p from context.
9729 * gdb.c (main): Set interpreter_p argument.
9730 * Makefile.in (gdb.o): Add dependency for interps.h.
9731
9732 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9733
9734 * event-top.c (cli_command_loop): Delete declaration.
9735 (_initialize_event_loop): Delete function setting event_loop_hook.
9736 * event-top.h (cli_command_loop): Declare. Update copyright.
9737 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9738 * interps.c (current_interp_command_loop): When event_loop_p, call
9739 cli_command_loop.
9740
9741 2003-02-12 Andrew Cagney <ac131313@redhat.com>
9742
9743 * interps.h (interp_command_loop_ftype): Change return type to
9744 void.
9745
9746 2003-02-12 Michal Ludvig <mludvig@suse.cz>
9747
9748 * x86-64-tdep.c (x86_64_extract_return_value)
9749 (x86_64_store_return_value): Use regcache instead of regbuf.
9750 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9751 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9752
9753 2003-02-11 Andrew Cagney <ac131313@redhat.com>
9754
9755 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9756 * aclocal.m4: Regenerate.
9757 * configure: Regenerate.
9758
9759 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9760 TCL_LD_SEARCH_FLAGS.
9761
9762 2003-02-10 Michal Ludvig <mludvig@suse.cz>
9763
9764 * dwarf2cfi.c: Reindented.
9765
9766 2003-02-09 Andrew Cagney <ac131313@redhat.com>
9767
9768 * interps.c (clear_interpreter_hooks): Convert function definition
9769 to ISO C.
9770
9771 2003-02-07 David Carlton <carlton@math.stanford.edu>
9772
9773 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9774
9775 2003-02-07 Kevin Buettner <kevinb@redhat.com>
9776
9777 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9778 (struct type): ...to here.
9779 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9780 field.
9781 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9782 (replace_type): Set length on all type variants for a given type.
9783
9784 2003-02-07 Andrew Cagney <ac131313@redhat.com>
9785
9786 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9787 <sys/stat.h>.
9788 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
9789
9790 2003-02-06 Andrew Cagney <ac131313@redhat.com>
9791
9792 * Makefile.in (symm-nat.o): Update dependencies.
9793 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9794 (lynx-nat.o, ia64-linux-nat.): Ditto.
9795 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9796 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9797 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9798
9799 * Makefile.in (inflow_h): Define.
9800 (procfs.o, inflow.o, procfs.o): Update dependencies.
9801 * inftarg.c (child_stop): Delete extern declaration of
9802 inferior_process_group. Include "inflow.h".
9803 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9804 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9805 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9806 (our_process_group, inferior_process_group): Extern declarations.
9807
9808 * procfs.c: Include "gdb_assert.h".
9809
9810 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9811 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9812 * jv-typeprint.c (java_type_print_base): Ditto.
9813 * typeprint.c (typedef_print): Eliminate STREQ.
9814 * cli/cli-script.c (define_command, define_command): Ditto.
9815 * main.c (captured_main): Ditto.
9816 * values.c (lookup_internalvar): Ditto.
9817 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9818 within `if' conditional.
9819 * linespec.c (decode_line_2): Ditto.
9820 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9821 (bfd_openw_with_cleanup): Ditto.
9822
9823 2003-02-07 Mark Kettenis <kettenis@gnu.org>
9824
9825 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9826 legacy_extract_return_value and store_return_value to
9827 legacy_return_value.
9828
9829 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9830
9831 * win32-nat.c (get_relocated_section_addrs): New function. Find
9832 section load addresses for symbol handling in relocated DLLs.
9833 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9834
9835 2003-02-05 Fred Fish <fnf@intrinsity.com>
9836
9837 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9838 '=' and '!='.
9839 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9840 with '&' and '=='.
9841 (angel_RDI_info): Ditto.
9842 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9843 with '&' and '!='.
9844 (threads_continue_all_with_signals): Ditto.
9845
9846 2003-02-05 Jim Ingham <jingham@apple.com>
9847 Keith Seitz <keiths@redhat.com>
9848 Elena Zannoni <ezannoni@redhat.com>
9849 Andrew Cagney <ac131313@redhat.com>
9850
9851 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9852 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9853 (SUBDIR_MI_OBS): Add "mi-interp.o".
9854 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9855 (SFILES): Add "interps.c".
9856 (COMMON_OBS): Add "interps.o".
9857 (interps_h, mi_main_h): Define.
9858 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9859 (mi-main.o, main.o, event-top.o): Update dependencies.
9860 * cli/cli-interp.c: New file.
9861 * interps.h, interps.c: New files.
9862 * top.c: (gdb_init): Don't install the default interpreter, handed
9863 by captured_main.
9864 * main.c: Include "interps.h".
9865 (interpreter_p): Note that it should malloc'ed.
9866 (captured_command_loop): Call current_interp_command_loop.
9867 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9868 xfree and xstrdup when updating interpreter_p. Install the
9869 default interpreter. Add hack to stop mi1's copyright notice
9870 being encoded.
9871 * event-top.h (gdb_setup_readline): Declare.
9872 (gdb_disable_readline): Declare.
9873 * event-top.c: Include "interps.h".
9874 (display_gdb_prompt): Call current_interp_display_prompt_p.
9875 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9876 gdb_stdlog, and gdb_stdtarg.
9877 (_initialize_event_loop): Don't call gdb_setup_readline.
9878 * cli-out.c (cli_out_set_stream): New function.
9879 * cli-out.h (cli_out_set_stream): Declare.
9880
9881 2003-02-06 Mark Kettenis <kettenis@gnu.org>
9882
9883 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9884 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9885 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9886 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9887 config/i386/i386v42mp.mt: Removed.
9888
9889 2003-02-05 Mark Kettenis <kettenis@gnu.org>
9890
9891 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9892 GDB_OSABI_SOLARIS.
9893
9894 2003-02-05 Michael Chastain <mec@shout.net>
9895
9896 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9897 2.12.1 and earlier versions.
9898
9899 2003-02-05 Andrew Cagney <ac131313@redhat.com>
9900
9901 Remove orphaned hosts, targets and files.
9902 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9903 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9904 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9905 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9906 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9907 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9908 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9909 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9910 * config/sparc/tm-sp64sim.h: Delete.
9911 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9912 hosts.
9913 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9914 mips*-dec-mach3* targets.
9915
9916 2003-02-04 Michael Chastain <mec@shout.net>
9917
9918 * NEWS: Fix typo: sepcifying -> specifying.
9919
9920 2003-02-04 Michael Chastain <mec@shout.net>
9921
9922 * dwarfread.c: Add documentation on the state of dwarf-1,
9923 looking towards obsoletion.
9924
9925 2003-02-03 Michael Chastain <mec@shout.net>
9926
9927 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9928 gdb/testsuite/gdb.c++/pr-1023.exp.
9929
9930 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9931
9932 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9933 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9934
9935 * utils.c (init_page_info): Delete reference to MPW in comments.
9936 * main.c (captured_main): Delete #ifdef MPW.
9937
9938 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9939
9940 * NEWS: Note that the m32r-*-elf* is obsolete.
9941 * monitor.c (monitor_expect): Obsolete reference to m32r.
9942 * configure.tgt: Mark m32r-*-elf* as obsolete.
9943 * MAINTAINERS: Mark m32k as obsolete.
9944 * m32r-rom.c: Obsolete file.
9945 * config/m32r/m32r.mt: Obsolete file.
9946 * config/m32r/tm-m32r.h: Obsolete file.
9947 * m32r-stub.c: Obsolete file.
9948 * m32r-tdep.c: Obsolete file.
9949
9950 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9951
9952 * NEWS: Mention that the z8k-zilog-none is obsolete.
9953 * MAINTAINERS: Mark z8k as obsolete.
9954 * configure.tgt: Obsolete the z8k-*-coff* target.
9955 * config/z8k/z8k.mt: Obsolete file.
9956 * config/z8k/tm-z8k.h: Obsolete file.
9957 * z8k-tdep.c: Obsolete file.
9958
9959 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9960
9961 * NEWS: Mention that the mn10200-elf is obsolete.
9962 * configure.tgt: Obsolete mn10200-*-* target.
9963 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9964 mention that the mn10200 is obsolete.
9965 * breakpoint.h: Ditto.
9966 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9967 * config/mn10200/mn10200.mt: Obsolete file.
9968 * config/mn10200/tm-mn10200.h: Obsolete file.
9969 * mn10200-tdep.c: Obsolete file.
9970
9971 2003-02-04 Andrew Cagney <ac131313@redhat.com>
9972
9973 * MAINTAINERS: Mark h8500 as obsolete.
9974 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9975 * findvar.c (value_from_register): Ditto.
9976 * h8500-tdep.c: Mark file as obsolete.
9977 * config/h8500/h8500.mt: Ditto.
9978 * config/h8500/tm-h8500.h: Ditto.
9979 * NEWS: Mention that h8500 is obsolete.
9980
9981 2003-02-04 David Carlton <carlton@math.stanford.edu>
9982
9983 * objfiles.c (allocate_objfile): Always set name. Add comment at
9984 start of function.
9985 * jv-lang.c (get_dynamics_objfile): Add comment.
9986
9987 2003-02-04 David Carlton <carlton@math.stanford.edu>
9988
9989 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
9990 * printcmd.c (build_address_symbolic): Replace uses of
9991 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
9992 SYMBOL_NAME, and asm_demangle.
9993 Update copyright.
9994
9995 2003-02-04 David Carlton <carlton@math.stanford.edu>
9996
9997 * linespec.c (decode_compound): Extract code into
9998 lookup_prefix_sym.
9999 (lookup_prefix_sym): New function.
10000
10001 2003-02-04 David Carlton <carlton@math.stanford.edu>
10002
10003 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10004 FLOAT_COERCION_BADNESS.
10005 * gdbtypes.c (rank_one_type): Replace all uses of
10006 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10007
10008 2003-02-04 Jim Blandy <jimb@redhat.com>
10009
10010 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10011 section, let dwarf_macinfo_section point to it, not
10012 dwarf_loc_section.
10013
10014 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10015
10016 Pointed out by Anton Blanchard <anton@samba.org>.
10017 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10018 (ppc_linux_at_sigtramp_return_path): Use it.
10019
10020 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10021
10022 * defs.h (streq): Add prototype.
10023 * utils.c (streq): New function.
10024
10025 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10026 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10027 * mdebugread.c (new_symbol): Likewise.
10028 * stabsread.c (define_symbol): Likewise.
10029 * coffread.c (process_coff_symbol): Likewise.
10030 * dwarfread.c (new_symbol): Likewise.
10031
10032 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10033 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10034 here.
10035 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10036 SYMBOL_INIT_DEMANGLED_NAME.
10037 * objfiles.c: Include "hashtab.h".
10038 (allocate_objfile): Call htab_set_functions_ex for the
10039 demangled_names_hash.
10040 (free_objfile): Call htab_delete for the demangled_names_hash.
10041 * objfiles.h (struct htab): Add declaration.
10042 (struct objfile): Add demangled_names_hash.
10043 * symfile.c: Include "hashtab.h".
10044 (reread_symbols): Call htab_delete for the demangled_names_hash.
10045 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10046 SYMBOL_NAME in the bcache.
10047 * symtab.c: Include "hashtab.h". Update comments.
10048 (create_demangled_names_hash, symbol_set_names): New functions.
10049 (symbol_find_demangled_name): New function, broken out from
10050 symbol_init_demangled_names.
10051 (symbol_init_demangled_names): Use it.
10052 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10053 (SYMBOL_SET_NAMES): New macro.
10054 (symbol_set_names): Add prototype.
10055
10056 2003-02-03 Jim Blandy <jimb@redhat.com>
10057
10058 Use a single, consistent representation for an empty minimal
10059 symbol table in an objfile.
10060 * objfiles.c (terminate_minimal_symbol_table): New function.
10061 (allocate_objfile): Call it.
10062 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10063 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10064 non-NULL.
10065 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10066 objfile has minimal symbols, compare minimal_symbol_count to zero,
10067 instead of comparing msymbols with NULL.
10068 * objfiles.c (have_minimal_symbols): Same.
10069 * solib-sunos.c (solib_add_common_symbols): Call
10070 terminate_minimal_symbol_table.
10071 * symfile.c (reread_symbols): Same.
10072
10073 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10074
10075 * s390-tdep.c (s390_address_class_type_flags)
10076 (s390_address_class_type_flags_to_name)
10077 (s390_address_class_name_to_type_flags): New functions.
10078 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10079 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10080
10081 2003-02-03 Michael Snyder <msnyder@redhat.com>
10082
10083 * arm-tdep.c: Fix spell-o in comment.
10084
10085 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10086
10087 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10088 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10089 error messages to contain BFD filename.
10090
10091 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10092
10093 Fix PR gdb/742 gdb/743 gdb/877
10094 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10095 (do_mixed_source_and_assembly): Use
10096 make_cleanup_ui_out_tuple_begin_end and
10097 make_cleanup_ui_out_tuple_begin_end.
10098 (do_mixed_source_and_assembly): Ditto.
10099 * thread.c (do_captured_list_thread_ids): Ditto.
10100 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10101 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10102 ui_out_tuple_end): Delete prototypes.
10103 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10104 ui_out_list_end, ui_out_tuple_end): Delete.
10105
10106 From Kevin Buettner <kevinb@redhat.com>:
10107 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10108 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10109 (do_cleanup_table_end): New functions.
10110 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10111 Use cleanups to invoke_ui_out_tuple_end().
10112 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10113 * cli/cli-setshow.c (cmd_show_list): Use
10114 make_cleanup_ui_out_tuple_begin_end.
10115
10116 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10117
10118 * frame.c (frame_unwind_register): New function.
10119 (frame_unwind_unsigned_register): Use.
10120 (frame_unwind_signed_register): Use.
10121 (frame_read_register): New function.
10122 * frame.h (frame_unwind_register): Declare.
10123 (frame_read_register): Declare.
10124
10125 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10126 and frame_unwind_register instead of read_memory, write_register
10127 and deprecated_write_register_bytes.
10128
10129 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10130
10131 * frame.h: Note that namelen can be negative.
10132 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10133 NAME's length.
10134
10135 * NEWS: Mention that the d10v's `regs' command is deprecated.
10136 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10137 (d10v_print_registers_info): New function.
10138 (show_regs): Call d10v_print_registers_info.
10139 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10140
10141 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10142
10143 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10144 lost in the previous patch.
10145
10146 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10147
10148 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10149 * stack.c (print_frame_info_base): Output complete FRAME tuple
10150 for synthesized frames.
10151
10152 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10153
10154 * mips-nat.c (zerobuf): Delete.
10155 (fetch_inferior_registers): Alloc local zerobuf.
10156 (fetch_core_registers): Alloc local zerobuf.
10157 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10158 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10159 * thread-db.c (thread_db_store_registers): Ditto.
10160 * sh-tdep.c (sh_do_register): Ditto.
10161 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10162 * remote-sim.c (gdbsim_store_register): Ditto.
10163 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10164 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10165 * monitor.c (monitor_supply_register): Ditto.
10166 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10167 * mips-nat.c (fetch_inferior_registers): Ditto.
10168 * m68klinux-nat.c (fetch_register): Ditto.
10169 * lynx-nat.c (fetch_inferior_registers): Ditto.
10170 (fetch_inferior_registers): Ditto.
10171 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10172 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10173 (hpux_thread_store_registers): Ditto.
10174 * hppah-nat.c (fetch_register): Ditto.
10175 * hppab-nat.c (fetch_register): Ditto.
10176 * hppa-tdep.c (pa_register_look_aside): Ditto.
10177 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10178 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10179
10180 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10181
10182 * gdbarch.sh: Explictly specify all method levels. When a
10183 variable with an empty level, provide a non-multi-arch default.
10184 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10185 * gdbarch.h: Re-generate.
10186 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10187 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10188
10189 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10190
10191 * defs.h (host_pointer_to_address): Delete declaration.
10192 (address_to_host_pointer): Delete declaration.
10193 * utils.c (host_pointer_to_address): Delete function.
10194 (address_to_host_pointer): Delete function.
10195 * procfs.c (procfs_address_to_host_pointer): New function.
10196 * procfs.c (proc_set_watchpoint): Use.
10197 (procfs_can_use_hw_breakpoint): Update comments.
10198 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10199 (som_solib_add): Use.
10200 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10201 * hppa-tdep.c (unwind_command): Use.
10202
10203 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10204
10205 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10206 strlen d_name.
10207
10208 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10209 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10210 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10211 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10212 (define_symbol): Update.
10213 * symfile.c (generic_load): Remove references to nindy.
10214 * symtab.c: Remove references to nindy.
10215
10216 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10217
10218 * infcmd.c (print_float_info): Delete code conditional on
10219 FLOAT_INFO.
10220 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10221 * config/m68k/nm-apollo68b.h: Ditto.
10222 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10223 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10224 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10225
10226 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10227
10228 * config/i386/tm-i386os9k.h: Removed.
10229
10230 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10231 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10232 they're identical to i[3456]86-*-sysv* now.
10233 * config/i386/i386v32.mh: Removed.
10234 * config/i386/xm-i386v32.h: Removed.
10235 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10236
10237 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10238
10239 * config/i386/i386dgux.mh: Removed.
10240 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10241
10242 * configure.in: Fix typo.
10243 * configure: Regenerated.
10244
10245 2003-01-31 David Carlton <carlton@math.stanford.edu>
10246
10247 * dwarf2read.c (dwarf2_locate_sections): Set
10248 dwarf_ranges_section.
10249
10250 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10251
10252 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10253 * utils.c: Update comments documenting legitimate uses of PTR.
10254
10255 * utils.c: Re-indent.
10256
10257 * config/djgpp/fnchange.lst: Delete nindy files.
10258 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10259 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10260 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10261 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10262 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10263 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10264 * Makefile.in (init.c): Remove nindy references.
10265 (saber_gdb): Delete rule.
10266 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10267 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10268 and a68v-nat.c.
10269 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10270 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10271 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10272 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10273 nindy-share/stop.h.
10274 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10275 * saber.suppress: Delete file.
10276
10277 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10278
10279 * dbxread.c (stabs_data): New static variable.
10280 (fill_symbuf): Support an in-memory buffer for stabs data.
10281 (stabs_seek): New function.
10282 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10283 (read_ofile_symtab): Use stabs_seek.
10284 (elfstab_build_psymtabs): Take an asection* instead of
10285 an offset and size. Relocate the stabs data if necessary.
10286 Save the section* for dbx_psymtab_to_symtab.
10287 * dwarf2read.c: Add section variables for each debug section.
10288 (dwarf2_locate_sections): Fill them in.
10289 (dwarf2_read_section): Take an asection* argument.
10290 Relocate the section contents if necessary.
10291 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10292 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10293 it to dwarf2_read_section.
10294 (dwarf2_build_frame_info): Update callers.
10295 * elfread.c (elf_symfile_read): Update call to
10296 elfstab_build_psymtabs.
10297 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10298 (DBX_STAB_SECTION): New macro.
10299 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10300 * symfile.c (symfile_dummy_outputs): New function.
10301 (symfile_relocate_debug_section): New function.
10302 * symfile.h (symfile_relocate_debug_section): Add prototype.
10303
10304 2003-01-31 Richard Henderson <rth@redhat.com>
10305
10306 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10307 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10308 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10309 * alpha-tdep.c (alpha_register_name): Add "unique".
10310 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10311 (ALPHA_UNIQUE_REGNUM): New.
10312 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10313
10314 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10315
10316 * README: Remove reference to Ericsson 1800 monitor.
10317 * Makefile.in (remote-es.o): Delete rule.
10318 (ALLDEPFILES): Delete remote-es.c.
10319 * remote-es.c: Delete file.
10320 * config/m68k/es1800.mt: Delete file.
10321 * config/djgpp/fnchange.lst: Update.
10322 * configure.tgt: Delete m68*-ericsson-* target.
10323
10324 2003-01-31 Adam Fedor <fedor@gnu.org>
10325
10326 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10327 Remove duplicate/shadowing variable of same name.
10328
10329 2003-01-30 Jim Blandy <jimb@redhat.com>
10330
10331 * symfile.c (find_separate_debug_file): Assert that the objfile's
10332 directory name we compute ends with a slash, and then assume that
10333 that's so everywhere we use it.
10334
10335 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10336
10337 * valops.c (value_assign): Flush frame cache after stores to memory
10338 also.
10339
10340 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10341
10342 * Makefile.in (mon960-rom.o): Delete rule.
10343 * mon960-rom.c: Delete file.
10344
10345 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10346
10347 * d10v-tdep.c: Include "frame-unwind.h".
10348 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10349 list.
10350 (next_addr, uses_frame): Delete.
10351 (struct d10v_unwind_cache): Define.
10352 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10353 Use info instead of next_addr and uses_frame globals.
10354 (d10v_frame_init_saved_regs): Delete function.
10355 (d10v_init_extra_frame_info): Delete function.
10356 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10357 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10358 init_frame_pc or frame_saved_pc.
10359 (d10v_pop_frame): Delete function.
10360 (do_d10v_pop_frame): Delete function.
10361 (d10v_frame_chain): Delete function.
10362 (d10v_frame_chain_valid): Delete function.
10363 (d10v_frame_pc_unwind): New function.
10364 (d10v_frame_id_unwind): New function.
10365 (saved_regs_unwinder): New function.
10366 (d10v_frame_register_unwind): New function.
10367 (d10v_frame_pop): New function.
10368 (d10v_frame_unwind): New variable.
10369 (d10v_frame_p): New function.
10370 (d10v_frame_saved_pc): Delete function.
10371 * Makefile.in (d10v-tdep.o): Update dependencies.
10372
10373 2003-01-30 J. Brobecker <brobecker@gnat.com>
10374
10375 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10376 causing some regressions due to a change in the default value
10377 for this macro.
10378
10379 2003-01-29 Richard Henderson <rth@redhat.com>
10380 Elena Zannoni <ezannoni@redhat.com>
10381 Daniel Jacobowitz <drow@mvista.com>
10382
10383 Fix PR gdb/961.
10384 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10385 variables.
10386 (RANGES_SECTION): New.
10387 (dwarf_ranges_buffer): New variable.
10388 (struct comp_unit_head): Add member "die".
10389 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10390 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10391 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10392 (dwarf2_locate_sections): Likewise.
10393 (dwarf2_build_psymtabs): Read .debug_ranges.
10394 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10395 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10396 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10397 Look for DW_AT_ranges and return the bounding box.
10398
10399 2003-01-29 Brian Ford <ford@vss.fsi.com>
10400
10401 * win32-nat.c (cygwin_pid): Removed as unused.
10402 (child_attach): Try fall back to Cygwin pid.
10403
10404 2003-01-29 Jim Blandy <jimb@redhat.com>
10405
10406 * objfiles.h (struct objfile): Doc fix.
10407
10408 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10409
10410 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10411 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10412 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10413 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10414 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10415 (FRAME_SAVED_PC): Change to a function with predicate.
10416 * gdbarch.h, gdbarch.c: Re-generate.
10417
10418 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10419
10420 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10421
10422 * complaints.c (complain): Delete function.
10423 * complaints.h (struct deprecated_complaint): Delete definition.
10424 (complain): Delete declaration.
10425
10426 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10427
10428 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10429 dummy frames.
10430
10431 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10432
10433 * sentinel-frame.h, sentinel-frame.c: New files.
10434 * Makefile.in (frame.o): Update dependencies.
10435 (SFILES): Add sentinel-frame.c.
10436 (sentinel_frame_h): Define.
10437 (COMMON_OBS): Add sentinel-frame.o.
10438 (sentinel-frame.o): Specify dependencies.
10439 * frame.c: Include "sentinel-frame.h".
10440 (frame_register_unwind): Rewrite assuming that there is always a a
10441 ->next frame.
10442 (frame_register, generic_unwind_get_saved_register): Ditto.
10443 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10444 (create_sentinel_frame, unwind_to_current_frame): New functions.
10445 (get_current_frame): Rewrite using create_sentinel_frame and
10446 unwind_to_current_frame. When possible, always create a frame.
10447 (create_new_frame): Set next to the sentinel frame.
10448 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10449 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10450 ID cache when necessary.
10451 (frame_saved_regs_id_unwind): Use frame_relative_level.
10452 (deprecated_generic_get_saved_register): Use frame_relative_level,
10453 get_frame_saved_regs, get_frame_pc, get_frame_base and
10454 get_next_frame.
10455 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10456 frame_register.
10457
10458 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10459
10460 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10461
10462 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10463
10464 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10465 (maintenance_set_profile_cmd): Use error () instead of warning ().
10466
10467 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10468
10469 * configure.in: Check that -pg works if using --enable-profiling.
10470 Check for monstartup and _mcleanup regardless of --enable-profiling.
10471 * maint.c: Check for monstartup and _mcleanup before using them.
10472 * config.in: Regenerated.
10473 * configure: Regenerated.
10474
10475 2003-01-24 Nick Clifton <nickc@redhat.com>
10476
10477 * Add sh2e support:
10478
10479 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10480
10481 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10482 (sh2e_show_regs): New.
10483 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10484 * config/sh/tm-sh.h: Added sh2e to comments.
10485
10486 2003-01-23 Jim Blandy <jimb@redhat.com>
10487
10488 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10489 symbols found)" message here; we haven't checked for a separate
10490 debug info file yet, so we don't know yet.
10491 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10492 we've looked everywhere. Also, there's no need to print a special
10493 message when we're loading the separate debug info file: the one
10494 symbol_file_add prints is fine.
10495
10496 2003-01-23 Alexander Larsson <alexl@redhat.com>
10497 Jim Blandy <jimb@redhat.com>
10498
10499 Add support for executables whose debug info has been separated
10500 out into a separate file, leaving only a link behind.
10501 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10502 and separate_debug_objfile_backlink.
10503 (put_objfile_before): New declaration.
10504 * symfile.c: #include "filenames.h".
10505 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10506 debug info in a separate file, read that, too. Save the addrs
10507 argument, so we can use it again to read the separated debug info;
10508 syms_from_objfile modifies the table we pass it.
10509 (reread_symbols): After re-reading an objfile, call
10510 reread_separate_symbols to refresh its separate debug info
10511 objfile, if it has one.
10512 (reread_separate_symbols, find_separate_debug_file,
10513 get_debug_link_info, separate_debug_file_exists): New functions.
10514 (debug_file_directory): New global var.
10515 (_initialize_symfile): Initialize debug_file_directory, and
10516 provide the new `set debug-file-directory' command to let the user
10517 change it.
10518 * objfiles.c (free_objfile): If this objfile has its debug info in
10519 a separate objfile, free that one too. If this is itself a
10520 separate debug info objfile, clear our parent's backlink.
10521 (put_objfile_before): New function.
10522 * utils.c (gnu_debuglink_crc32): New function.
10523 * defs.h (gnu_debuglink_crc32): New declaration.
10524 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10525 * configure.in: Handle --with-separate-debug-dir config option.
10526 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10527 * acconfig.h (DEBUGDIR): New macro.
10528 * configure, aclocal.m4, config.in: Regenerated.
10529
10530 2003-01-22 Jim Blandy <jimb@redhat.com>
10531
10532 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10533 like the old symbol_file_add, but taking new arguments: you can
10534 now pass in either a `struct section_addr_info' list to say where
10535 each section is loaded, or a `struct section_offsets' table. Pass
10536 these new arguments through to syms_from_objfile as appropriate.
10537 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10538 with the appropriate quiescent values for the new arguments.
10539
10540 * symfile.c: #include "gdb_assert.h".
10541 (syms_from_objfile): Add the ability to pass in a section offset
10542 table directly, as an alternative to the section_addr_info table.
10543 Document arguments better.
10544 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10545 * symfile.h (syms_from_objfile): Update declaration.
10546 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10547 syms_from_objfile.
10548 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10549
10550 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10551
10552 Original patch by Tom Tromey <tromey@cygnus.com> and
10553 Jason Molenda <jmolenda@apple.com>.
10554 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10555 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10556 * NEWS: Mention profiling.
10557 * configure.in (--enable-gdbtk): Fix typo.
10558 (--enable-profiling): New. Set PROFILE_CFLAGS.
10559 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10560 Fill in function.
10561 (profiling_state): New variable.
10562 (mcleanup_wrapper): New function.
10563 (_initialize_maint): Remove NOTYET, fix call to
10564 add_setshow_boolean_cmd for "maint set profile".
10565 * configure: Regenerated.
10566
10567 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10568
10569 * Makefile.in (install-gdbtk): Install PNG images too.
10570
10571 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10572
10573 * exec.c (text_start): Delete global variable.
10574 (exec_file_attach): Make text_start local to the function.
10575 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10576 * valops.c (hand_function_call): Delete code that handles
10577 BEFORE_TEXT_END and AFTER_TEXT_END.
10578 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10579 of CALL_DUMMY_LOCATION.
10580 * gdbarch.c: Regenerate.
10581 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10582 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10583 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10584 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10585 (text_end): Delete extern declaration.
10586
10587 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10588
10589 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10590 * blockframe.c (backtrace_below_main): Move to "frame.c".
10591 (frame_chain_valid): Delete check for backtrace_below_main.
10592 (_initialize_blockframe): Delete initialization, move ``set
10593 backtrace-below-main'' command to "frame.c".
10594 (do_flush_frames_sfunc): Delete function.
10595 * frame.c: Include "command.h" and "gdbcmd.h".
10596 (frame_type_from_pc): New function.
10597 (create_new_frame): Use frame_type_from_pc.
10598 (legacy_get_prev_frame): New function.
10599 (get_prev_frame): Rewrite. When an old style frame, call
10600 legacy_get_prev_frame. Otherwize, unwind the PC first.
10601 (_initialize_frame): Add ``set backtrace-below-main'' command.
10602 * Makefile.in (frame.o): Update dependencies.
10603
10604 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10605
10606 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10607 DEPRECATED_REGISTERS_INFO.
10608
10609 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10610
10611 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10612 Maintainers'. Update `Various Maintainers'.
10613
10614 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10615
10616 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10617 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10618 Suppress actual parameters when `-'.
10619 * gdbarch.h, gdbarch.c: Regenerate.
10620
10621 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10622
10623 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10624 code handling dummy frames.
10625
10626 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10627
10628 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10629 (struct frame_unwind): Add field pop.
10630 * frame.h (frame_pop): Declare.
10631 * frame.c (frame_saved_regs_pop): New function.
10632 (trad_frame_unwinder): Add frame_saved_regs_pop.
10633 (frame_pop): New function.
10634 * dummy-frame.c (dummy_frame_pop): New function.
10635 (discard_innermost_dummy): New function.
10636 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10637 (dummy_frame_unwind): Add dummy_frame_pop.
10638 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10639 * valops.c (hand_function_call): Ditto.
10640 * stack.c (return_command): Ditto.
10641
10642 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10643
10644 * cris-tdep.c: Fix function declaration indentation.
10645 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10646 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10647 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10648 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10649 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10650 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10651
10652 2003-01-18 Michael Chastain <mec@shout.net>
10653
10654 * README (Unpacking and Installation -- quick overview):
10655 Warn against ".../gdb-5.3/gdb/configure".
10656
10657 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10658
10659 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10660 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10661 (struct frame_unwind): Declare opaque.
10662 (dummy_frame_p): Declare function.
10663 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10664 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10665 * dummy-frame.c: Include "frame-unwind.h".
10666 (dummy_frame_p): New function.
10667 (dummy_frame_unwind): New variable.
10668 * frame.c: Include "frame-unwind.h".
10669 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10670 to use the new unwind field.
10671 (set_unwind_by_pc): Delete function.
10672 (create_new_frame, get_prev_frame): Set unwind field using
10673 frame_unwind_find_by_pc.
10674 (trad_frame_unwind, trad_frame_unwinder): New variables.
10675 * frame.h (trad_frame_unwind): Declare variable.
10676 (frame_id_unwind_ftype): Delete declaration.
10677 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10678 (struct frame_unwind): Declare opaque.
10679 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10680 register_unwind with a single unwind pointer.
10681 * frame-unwind.h, frame-unwind.c: New files.
10682 * Makefile.in (SFILES): Add frame-unwind.c.
10683 (frame_unwind_h): Define.
10684 (COMMON_OBS): Add frame-unwind.o.
10685 (frame-unwind.o): Specify dependencies.
10686 (frame.o, dummy-frame.o): Update dependencies.
10687
10688 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10689
10690 * ada-valprint.c: Eliminate PTR.
10691 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10692 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10693 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10694 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10695 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10696 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10697 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
10698
10699 2003-01-17 Andrew Cagney <ac131313@redhat.com>
10700
10701 * main.c (captured_main): Don't use PTR.
10702 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10703 * gdbtypes.c (lookup_primitive_typename): Ditto.
10704 (lookup_struct_elt_type): Ditto.
10705 * f-valprint.c (info_common_command): Ditto.
10706 (list_all_visible_commons): Ditto.
10707 * jv-typeprint.c (java_type_print_base): Ditto.
10708
10709 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10710 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10711 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10712 i386-interix-nat.c and i386-interix-tdep.c. Rename
10713 m68klinux-nat.c and m68klinux-tdep.c. Rename
10714 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10715 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10716 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10717 * main.c (captured_main): Use xfree, not free.
10718
10719 2003-01-16 Andrew Cagney <ac131313@redhat.com>
10720
10721 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10722 ID back using a parameter.
10723 * frame.c (frame_id_unwind): Update call.
10724 (frame_saved_regs_id_unwind): Update.
10725 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10726 * dummy-frame.h (struct frame_id): Add opaque declaration.
10727 (dummy_frame_id_unwind): Update declaration.
10728
10729 2003-01-15 Andrew Cagney <ac131313@redhat.com>
10730
10731 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10732
10733 2003-01-15 Stephen P. Smith <ischis2@cox.net>
10734
10735 * MAINTAINERS (Stephen P. Smith): Updated email address.
10736
10737 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
10738
10739 Fix PR gdb/898
10740 * breakpoint.c (until_break_command): Add new argument. Use it to
10741 decide whether to stop only at the current frame or not.
10742 * breakpoint.h (until_break_command): Update prototype.
10743 * infcmd.c (until_command): Add new argument to until_break_command
10744 call.
10745 (advance_command): New function.
10746 (_initialize_infcmd): Update help string for 'until' command.
10747 Add new 'advance' command.
10748
10749 2003-01-14 David Carlton <carlton@math.stanford.edu>
10750
10751 * linespec.c (decode_line_1): Normalize comments.
10752 (set_flags): Ditto.
10753 (locate_first_half): Ditto.
10754 (decode_compound): Ditto.
10755 (symtab_from_filename): Ditto.
10756 (decode_all_digits): Ditto.
10757 (decode_dollar): Ditto.
10758 (find_methods): Ditto.
10759 (find_toplevel_char): Ditto.
10760
10761 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10762
10763 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10764 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10765 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10766 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10767 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10768 * language.c, language.h, m32r-tdep.c: Update copyright.
10769 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10770 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10771 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10772 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10773 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10774 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10775
10776 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10777
10778 * stabsread.h (process_later, resolve_cfront_continuation):
10779 Obsolete.
10780 Update copyright years.
10781 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10782 Update copyright year.
10783 * dbxread.c(struct cont_elem): Obsolete.
10784 (process_later, process_now): Obsolete functions.
10785 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10786 Update copyright year.
10787 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10788 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10789 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10790 (parse_partial_symbols): Obsolete cfront support.
10791 * stabsread.c
10792 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10793 macros.
10794 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10795 read_cfront_baseclasses, read_cfront_member_functions,
10796 resolve_cfront_continuation,read_cfront_static_fields,
10797 copy_cfront_struct_fields): Obsolete functions.
10798 (define_symbol, read_one_struct_field): Obsolete cfront support.
10799 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10800 Update Copyright year.
10801
10802 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
10803
10804 * stack.c (print_frame_info, print_stack_frame_base_stub,
10805 print_stack_frame_base, show_and_print_stack_frame_stub,
10806 show_and_print_stack_frame, print_only_stack_frame_stub,
10807 print_only_stack_frame): Delete functions.
10808 (print_stack_frame_stub): Call print_frame_info instead of
10809 print_frame_info_base.
10810 (print_frame_info_base): Rename to print_frame_info.
10811 (backtrace_command_1): Call print_frame_info, instead of
10812 print_frame_info_base.
10813 (current_frame_command): Call print_stack_frame, instead of
10814 print_only_stack_frame.
10815 (frame_command): Call print_stack_frame, instead of
10816 show_and_print_stack_frame.
10817 (up_command): Ditto.
10818 (down_command): Ditto.
10819 * frame.h (print_only_stack_frame): Delete prototype.
10820 * infrun.c (normal_stop): Call print_stack_frame, instead of
10821 show_and_print_stack_frame.
10822 * thread.c (info_threads_command): Call print_stack_frame, instead
10823 of print_only_stack_frame.
10824
10825 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10826
10827 * README (Graphical interface to GDB): Update URL. Point at
10828 gdb/links/.
10829
10830 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10831 version match.
10832
10833 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10834
10835 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10836 lines.
10837
10838 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10839
10840 * thread-db.c (attach_thread): Prototype.
10841 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10842 thread information (ti), and valid flags (th_valid, ti_valid).
10843 (attach_thread): Move target_pid_to_str call to after the thread
10844 is added to GDB's list. Initialize the cache.
10845 (thread_get_info_callback, thread_db_map_id2thr)
10846 (thread_db_get_info): New functions.
10847 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10848 (thread_db_store_registers, thread_db_thread_alive)
10849 (thread_db_get_thread_local_address): Use them.
10850 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10851 of calling error() for threads in unknown state.
10852
10853 (clear_lwpid_callback): New function.
10854 (thread_db_resume): Use it to clear the cache.
10855
10856 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10857
10858 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10859 (resume_callback): Remove dead code.
10860
10861 2003-01-13 Andrew Cagney <ac131313@redhat.com>
10862
10863 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10864 predicate.
10865 * gdbarch.h, gdbarch.c: Regenerate.
10866 * stack.c (frame_info): Only initialize the saved registers when
10867 FRAME_INIT_SAVED_REGS_P.
10868 * frame.c (frame_saved_regs_register_unwind): Assert
10869 FRAME_INIT_SAVED_REGS_P.
10870 (deprecated_generic_get_saved_register): Ditto.
10871
10872 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10873
10874 * source.c (openp): Squelch warning about "filename".
10875
10876 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10877
10878 * source.c (openp): If the file does not exist don't necessarily
10879 search the path.
10880
10881 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10882
10883 Fix PR gdb/872.
10884 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10885 (integer_types_same_name_p): New function.
10886 (rank_one_type): Use it.
10887 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10888
10889 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
10890
10891 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10892 variables.
10893 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10894 * configure.in: Add --with-sysroot.
10895 * configure: Regenerated.
10896 * main.c (gdb_sysroot): New variable.
10897 (captured_main): Initialize gdb_sysroot.
10898 * defs.h (gdb_sysroot): New extern declaration.
10899 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10900
10901 2003-01-12 Michael Chastain <mec@shout.net>
10902
10903 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10904
10905 2003-01-12 Michael Chastain <mec@shout.net>
10906
10907 * top.c (print_gdb_version): Bump copyright year to 2003.
10908
10909 2003-01-12 David Carlton <carlton@bactrian.org>
10910
10911 * linespec.c (symtab_from_filename): Rename variable 's' to
10912 'file_symtab'.
10913
10914 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10915
10916 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10917 dummy frame.
10918 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10919
10920 2003-01-12 Andrew Cagney <ac131313@redhat.com>
10921
10922 * d10v-tdep.c: Include "gdb_assert.h".
10923 (d10v_store_return_value): Rewrite to match current interface.
10924 (d10v_extract_struct_value_address): Ditto.
10925 (d10v_extract_return_value): Ditto.
10926 (d10v_gdbarch_init): Set store_restore_value,
10927 extract_struct_value_address and extract_return_value.
10928
10929 2003-01-12 J. Brobecker <brobecker@gnat.com>
10930
10931 * hpread.c (set_namestring): New procedure replacing the
10932 SET_NAMESTRING macro.
10933 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10934 by calls to set_namestring.
10935
10936 2003-01-11 J. Brobecker <brobecker@gnat.com>
10937
10938 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10939 a compilation warning.
10940 (hpread_process_one_debug_symbol): Likewise.
10941
10942 2003-01-10 David Carlton <carlton@math.stanford.edu>
10943
10944 * linespec.c (decode_line_1): Rename variable 's' to
10945 'file_symtab'.
10946 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10947 (decode_dollar): Ditto.
10948 (decode_variable): Ditto.
10949 (symbol_found): Ditto.
10950
10951 2003-01-09 Michael Chastain <mec@shout.net>
10952
10953 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10954
10955 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
10956
10957 * win32-nat.c (set_process_privilege): New function.
10958 (child_attach): Call set_process_privilege() to enable the
10959 SE_DEBUG_NAME user privilege if available in process token.
10960
10961 2003-01-10 J. Brobecker <brobecker@gnat.com>
10962
10963 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10964 compilation error in the previous revision.
10965
10966 2003-01-09 David Carlton <carlton@math.stanford.edu>
10967
10968 * linespec.c: Update copyright.
10969
10970 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
10971
10972 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10973 than inferior_ptid.
10974 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10975
10976 2003-01-09 Andrew Cagney <ac131313@redhat.com>
10977
10978 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10979 Update comments.
10980 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10981 (frame_saved_regs_zalloc): Update.
10982 (frame_saved_regs_register_unwind): Update.
10983 (create_new_frame): Update.
10984 (get_prev_frame): Update.
10985 (frame_extra_info_zalloc): Update.
10986 (deprecated_get_frame_saved_regs): Update.
10987 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
10988 * cris-tdep.c: Update comment.
10989
10990 * somsolib.h: Fix function indentation.
10991 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
10992 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
10993 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
10994 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
10995 * somsolib.c, inftarg.c: Remove assignment in if conditional.
10996
10997 * infrun.c (follow_fork): Use ISO C definition.
10998 * expprint.c (print_subexp): Use xfree instead of free.
10999 * charset.c: Include "gdb_string.h" instead of <string.h>.
11000 (register_iconv_charsets): Use ISO C definition.
11001 (host_charset, target_charset): Ditto.
11002 * Makefile.in (charset.o): Update dependencies.
11003 (mi-cmd-env.o): Update dependencies.
11004
11005 2003-01-08 Andrew Cagney <cagney@redhat.com>
11006
11007 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11008 get_frame_base.
11009
11010 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11011
11012 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11013 build directories. Save edited gdb output in Mbuild.log. If a
11014 build fails, remove any final GDB executable.
11015
11016 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11017
11018 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11019 replacing hex constants with function names and stripping leading
11020 file name directory prefixes.
11021
11022 2003-01-08 Andrew Cagney <cagney@redhat.com>
11023
11024 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11025 get_frame_base.
11026
11027 2003-01-08 David Carlton <carlton@math.stanford.edu>
11028
11029 * linespec.c (decode_line_1): Move code into decode_variable.
11030 (decode_variable): New function.
11031
11032 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11033
11034 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11035
11036 2003-01-08 Andrew Cagney <cagney@redhat.com>
11037
11038 * cris-tdep.c (cris_frame_init_saved_regs): Use
11039 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11040 saved_regs buffer.
11041 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11042 (sh64_nofp_frame_init_saved_regs): Ditto.
11043 (sh_fp_frame_init_saved_regs): Ditto.
11044 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11045 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11046 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11047 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11048
11049 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11050
11051 * minsyms.c (lookup_minimal_symbol): Update comment.
11052 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11053 (lookup_minimal_symbol_solib_trampoline): Likewise.
11054
11055 2003-01-08 Andrew Cagney <cagney@redhat.com>
11056
11057 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11058 frame_relative_level.
11059
11060 * alpha-tdep.c: Use get_frame_extra_info.
11061 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11062 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11063 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11064 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11065
11066 * alpha-tdep.c: Use get_next_frame.
11067 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11068 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11069 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11070 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11071 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11072 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11073 * xstormy16-tdep.c: Ditto.
11074
11075 2003-01-07 Andrew Cagney <cagney@redhat.com>
11076
11077 * alpha-tdep.c: Use get_frame_base.
11078 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11079 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11080 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11081 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11082 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11083 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11084 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11085 * config/sparc/tm-sparc.h: Ditto.
11086
11087 2003-01-07 Andrew Cagney <cagney@redhat.com>
11088
11089 * frame.c (deprecated_get_frame_context): New function.
11090 (deprecated_set_frame_context): New function.
11091 * frame.h (deprecated_get_frame_context): Declare.
11092 (deprecated_set_frame_context): Declare.
11093 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11094 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11095
11096 2003-01-07 Andrew Cagney <cagney@redhat.com>
11097
11098 * frame.c (deprecated_set_frame_next_hack): New function.
11099 (deprecated_set_frame_prev_hack): New function.
11100 * frame.h (deprecated_set_frame_next_hack): Declare.
11101 (deprecated_set_frame_prev_hack): Declare.
11102 * mcore-tdep.c (analyze_dummy_frame): Use
11103 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11104 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11105
11106 2003-01-07 David Carlton <carlton@math.stanford.edu>
11107
11108 * linespec.c (decode_line_1): Move code into decode_dollar.
11109 (decode_dollar): New function.
11110
11111 2003-01-07 Andrew Cagney <cagney@redhat.com>
11112
11113 * arm-tdep.c (arm_init_extra_frame_info): Use
11114 deprecated_update_frame_base_hack.
11115 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11116 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11117 (fix_frame_pointer): Ditto.
11118 (mn10300_analyze_prologue): Ditto.
11119
11120 2003-01-07 Andrew Cagney <cagney@redhat.com>
11121
11122 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11123 extra_info using frame_extra_info_zalloc.
11124 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11125 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11126 (sh64_init_extra_frame_info): Ditto.
11127 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11128 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11129 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11130 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11131 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11132 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11133 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11134 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11135 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11136 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11137 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11138 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11139
11140 * mn10300-tdep.c (analyze_dummy_frame): Use
11141 deprecated_set_frame_extra_info_hack.
11142 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11143
11144 2003-01-07 J. Brobecker <brobecker@gnat.com>
11145
11146 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11147 class is not scText. These do not define "real" procedures.
11148 (parse_partial_symbols): Likewise.
11149
11150 2003-01-06 Michael Snyder <msnyder@redhat.com>
11151
11152 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11153
11154 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11155
11156 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11157 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11158 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11159 deprecated_frame_xmalloc_with_cleanup.
11160 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11161 deprecated_frame_xmalloc.
11162 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11163 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11164
11165 2003-01-06 Andrew Cagney <cagney@redhat.com>
11166
11167 * x86-64-linux-tdep.c: Include "osabi.h".
11168 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11169
11170 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11171
11172 2003-01-06 Andrew Cagney <cagney@redhat.com>
11173
11174 * MAINTAINERS (Target Instruction Set Architectures): Update
11175 arm-elf. Can be built with -Werror, has been multiarched.
11176
11177 * value.h (unpack_long): Make buffer parameter constant.
11178 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11179 * scm-lang.h (scm_parse): Ditto.
11180 * defs.h (extract_typed_address, extract_address): Ditto.
11181 (extract_long_unsigned_integer): Ditto.
11182 * inferior.h (unsigned_pointer_to_address): Ditto.
11183 (signed_pointer_to_address): Ditto.
11184 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11185 * gdbarch.h, gdbarch.c: Regenerate.
11186 * findvar.c (extract_long_unsigned_integer): Update.
11187 (extract_address): Update.
11188 (extract_typed_address): Update.
11189 (unsigned_pointer_to_address): Update.
11190 * values.c (unpack_long): Update.
11191 (unpack_double): Update.
11192 (unpack_pointer): Update.
11193 (unpack_field_as_long): Update.
11194 * d10v-tdep.c (d10v_pointer_to_address): Update.
11195 * avr-tdep.c (avr_pointer_to_address): Update.
11196 * scm-lang.c (scm_unpack): Update.
11197 * findvar.c (signed_pointer_to_address): Update.
11198
11199 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11200
11201 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11202 since it is in i386-tdep.c.
11203
11204 2003-01-06 J. Brobecker <brobecker@gnat.com>
11205
11206 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11207 failure introduced in the previous change.
11208
11209 2003-01-05 Michael Chastain <mec@shout.net>
11210
11211 * README: Remove references to deleted remote-*.c files:
11212 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11213 remote-nrom.c, remote-os9k.c, remote-udi.c.
11214
11215 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11216
11217 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11218 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11219 i386_get_longjmp_target.
11220
11221 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11222
11223 * arm-tdep.c (prologue_cache): Change to a pointer.
11224 (_initialize_arm_tdep): Allocate prologue_cache.
11225 (check_prologue_cache): Update.
11226 (save_prologue_cache): Update.
11227 (arm_gdbarch_init): Update.
11228
11229 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11230
11231 * stabsread.c (update_method_name_from_physname): Call complaint()
11232 instead of error.
11233
11234 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11235
11236 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11237 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11238 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11239
11240 * blockframe.c: Include "gdbcmd.h" and "command.h".
11241 (backtrace_below_main): New variable.
11242 (file_frame_chain_valid, func_frame_chain_valid)
11243 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11244 (generic_func_frame_chain_valid): Remove functions.
11245 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11246 (_initialize_blockframe): New function.
11247 * Makefile.in (blockframe.o): Update dependencies.
11248 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11249 comment. Call frame_chain_valid ().
11250 * frame.h: Remove old prototypes. Add prototype for
11251 frame_chain_valid and update comments to match.
11252 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11253 Remove old comment.
11254 * gdbarch.h: Regenerated.
11255 * gdbarch.c: Regenerated.
11256
11257 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11258 set_gdbarch_frame_chain_valid.
11259 * avr-tdep.c (avr_gdbarch_init): Likewise.
11260 * cris-tdep.c (cris_gdbarch_init): Likewise.
11261 * frv-tdep.c (frv_gdbarch_init): Likewise.
11262 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11263 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11264 (i386_nw_init_abi): Likewise.
11265 (i386_gdbarch_init): Likewise.
11266 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11267 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11268 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11269 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11270 * mips-tdep.c (mips_gdbarch_init): Likewise.
11271 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11272 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11273 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11274 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11275 * s390-tdep.c (s390_gdbarch_init): Likewise.
11276 * sh-tdep.c (sh_gdbarch_init): Likewise.
11277 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11278 * v850-tdep.c (v850_gdbarch_init): Likewise.
11279 * vax-tdep.c (vax_gdbarch_init): Likewise.
11280 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11281
11282 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11283 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11284 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11285 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11286 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11287 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11288 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11289 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11290
11291 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11292
11293 * Makefile.in (acconfig_h): Remove incorrect macro.
11294 (config_h): Define.
11295 (osabi.o): Update dependencies.
11296 * configure.tgt: Set gdb_osabi based on target triplet.
11297 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11298 * configure: Regenerated.
11299 * config.in: Regenerated.
11300 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11301 (GDB_OSABI_DEFAULT): Define if not already defined.
11302 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11303 (set_osabi_string): New variables.
11304 (gdbarch_register_osabi): Add new OS ABI to
11305 gdb_osabi_available_names.
11306 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11307 (set_osabi, show_osabi): New functions.
11308 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11309
11310 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11311
11312 * arch-utils.c (gdbarch_info_init): Set osabi to
11313 GDB_OSABI_UNINITIALIZED.
11314 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11315 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11316 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11317 * gdbarch.c: Regenerated.
11318 * gdbarch.h: Regenerated.
11319 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11320 there's no BFD.
11321 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11322 * osabi.h (enum gdb_osabi): Move to defs.h.
11323 (gdbarch_init_osabi): Update prototype.
11324 * defs.h (enum gdb_osabi): Moved here.
11325 * Makefile.in: Update dependencies.
11326
11327 * alpha-tdep.h: Don't include "osabi.h".
11328 (struct gdbarch_tdep): Remove osabi member.
11329 * alpha-tdep.c: Include "osabi.h".
11330 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11331 iterate over arches. Update call to gdbarch_init_osabi.
11332 (alpha_dump_tdep): Don't dump osabi.
11333 * alpha-linux-tdep.c: Include "osabi.h".
11334 * alpha-osf1-tdep.c: Include "osabi.h".
11335 * alphafbsd-tdep.c: Include "osabi.h".
11336 * alphanbsd-tdep.c: Include "osabi.h".
11337
11338 * arm-tdep.h: Don't include "osabi.h".
11339 (struct gdbarch_tdep): Remove osabi member.
11340 * arm-tdep.c: Include "osabi.h".
11341 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11342 iterate over arches. Update call to gdbarch_init_osabi.
11343 (arm_dump_tdep): Don't dump osabi.
11344 * arm-linux-tdep.c: Include "osabi.h".
11345 * armnbsd-tdep.c: Include "osabi.h".
11346
11347 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11348 Update call to gdbarch_init_osabi.
11349
11350 * i386-tdep.h: Don't include "osabi.h".
11351 (struct gdbarch_tdep): Remove osabi member.
11352 * i386-tdep.c: Include "osabi.h".
11353 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11354 iterate over arches. Update call to gdbarch_init_osabi.
11355 (i386_dump_tdep): Don't dump osabi.
11356 * i386-linux-tdep.c: Include "osabi.h".
11357 * i386-sol2-tdep.c: Include "osabi.h".
11358 * i386bsd-tdep.c: Include "osabi.h".
11359 * i386gnu-tdep.c: Include "osabi.h".
11360 * i386ly-tdep.c: Include "osabi.h".
11361 * i386nbsd-tdep.c: Include "osabi.h".
11362 * i386obsd-tdep.c: Include "osabi.h".
11363
11364 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11365 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11366 check osabi when iterating over arches. Update call to
11367 gdbarch_init_osabi.
11368 (mips_dump_tdep): Don't dump osabi.
11369
11370 * ns32k-tdep.h: Don't include "osabi.h".
11371 (struct gdbarch_tdep): Remove.
11372 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11373 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11374 allocate tdep. Update call to gdbarch_init_osabi.
11375 (ns32k_dump_tdep): Remove.
11376 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11377 * ns32knbsd-tdep.c: Include "osabi.h".
11378
11379 * ppc-tdep.h: Don't include "osabi.h".
11380 (struct gdbarch_tdep): Remove osabi member.
11381 * rs6000-tdep.c: Include "osabi.h".
11382 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11383 osabi when iterating over arches. Update call to
11384 gdbarch_init_osabi.
11385 (rs6000_dump_tdep): Don't dump osabi.
11386 * ppc-linux-tdep.c: Include "osabi.h".
11387 * ppcnbsd-tdep.c: Include "osabi.h".
11388
11389 * sh-tdep.h: Don't include "osabi.h".
11390 (struct gdbarch_tdep): Remove osabi member.
11391 * sh-tdep.c: Include "osabi.h".
11392 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11393 iterate over arches. Update call to gdbarch_init_osabi.
11394 (sh_dump_tdep): Don't dump osabi.
11395 * shnbsd-tdep.c: Include "osabi.h".
11396
11397 * sparc-tdep.c: Include "osabi.h".
11398 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11399 iterate over arches. Update call to gdbarch_init_osabi.
11400 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11401 tdep structure.
11402
11403 * vax-tdep.h: Don't include "osabi.h".
11404 (struct gdbarch_tdep): Remove.
11405 * vax-tdep.c: Include "osabi.h".
11406 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11407 iterate over arches. Don't allocate tdep. Update call
11408 to gdbarch_init_osabi.
11409 (vax_dump_tdep): Remove.
11410 (_initialize_vax_tdep): Update call to gdbarch_register.
11411
11412 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11413
11414 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11415 entirely.
11416 (breakpoint_re_set_one): Don't fetch the value for a disabled
11417 watchpoint.
11418
11419 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11420
11421 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11422 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11423 (COERCE_FLOAT_TO_DOUBLE): Remove.
11424 * gdbarch.c: Regenerate.
11425 * gdbarch.h: Regenerate.
11426 * Makefile.in: Remove value_h from gdbarch_h.
11427 * valops.c (coerce_float_to_double): New variable.
11428 (default_coerce_float_to_double): Remove.
11429 (standard_coerce_float_to_double): Remove.
11430 (value_arg_coerce): Use coerce_float_to_double.
11431 (_initialize_valops): Add "set coerce-float-to-double".
11432 * value.h (default_coerce_float_to_double): Remove prototype.
11433 (standard_coerce_float_to_double): Remove prototype.
11434
11435 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11436 prototyped.
11437 * mdebugread.c (parse_symbol): Likewise.
11438 * stabsread.c (define_symbol): Mark all functions as prototyped.
11439
11440 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11441 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11442 set_gdbarch_coerce_float_to_double.
11443 * arm-tdep.c (arm_gdbarch_init): Likewise.
11444 * frv-tdep.c (frv_gdbarch_init): Likewise.
11445 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11446 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11447 * mips-tdep.c (mips_gdbarch_init): Likewise.
11448 (mips_coerce_float_to_double): Remove.
11449 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11450 (rs6000_coerce_float_to_double): Remove.
11451 * s390-tdep.c (s390_gdbarch_init): Likewise.
11452 * sh-tdep.c (sh_gdbarch_init): Likewise.
11453 (sh_coerce_float_to_double): Remove.
11454 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11455 (sparc_coerce_float_to_double): Remove.
11456 * v850-tdep.c (v850_gdbarch_init): Likewise.
11457 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11458 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11459 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11460 (hppa_coerce_float_to_double): Remove prototype.
11461 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11462
11463 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11464
11465 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11466
11467 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11468
11469 Suggested by Stewart Brown <sb24@avaya.com>:
11470 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11471 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11472 (c_type_print_varspec_suffix): Likewise.
11473
11474 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11475
11476 * configure.in: Don't set and AC_SUBST SUBDIRS.
11477 * configure: Regenerated.
11478
11479 * configure.in: Remove code dealing with shared libraries.
11480 * Makefile.in: Remove HLDFLAGS and HLDENV.
11481 * configure: Regenerated.
11482
11483 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11484
11485 * frame.c (deprecated_frame_xmalloc): New function.
11486 (deprecated_set_frame_saved_regs_hack): New function.
11487 (deprecated_set_frame_extra_info_hack): New function.
11488 * frame.h (deprecated_frame_xmalloc): Declare.
11489 (deprecated_set_frame_saved_regs_hack): Declare.
11490 (deprecated_set_frame_extra_info_hack): Declare.
11491
11492 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11493
11494 * configure.in: Move code that provides the --enable-gdbtk option
11495 right after the code that handles the --enable-tui option, and
11496 polish it somewhat.
11497 * configure: Regenerated.
11498
11499 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11500 AC_CHECK_FUNCS and remove the old check for pread64.
11501 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11502 * acconfig.h (_GNU_SOURCE): Add.
11503 (HAVE_PREAD64): Remove.
11504 * configure, aclocal.m4, config.in: Regenerated.
11505
11506 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11507
11508 * alpha-tdep.c: Use get_frame_saved_regs.
11509 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11510 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11511 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11512 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11513 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11514
11515 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11516
11517 * configure.in: Remove all use of the SUBDIRS variable; add
11518 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11519 code providing the --enable-multi-ice option, and move it right in
11520 front of the code that checks whether gdbserver is supported.
11521 Polish that too.
11522 * configure: Regenerated.
11523 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11524 @SUBDIRS@.
11525
11526 2003-01-03 Andrew Cagney <cagney@redhat.com>
11527
11528 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11529 * avr-tdep.c, cris-tdep.c: Ditto.
11530 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11531 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11532
11533 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11534
11535 * configure.in: Remove --enable-netrom option.
11536 * configure: Regenerated.
11537
11538 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11539
11540 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11541 declaration for `struct re_pattern_buffer' instead.
11542 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11543
11544 2003-01-03 J. Brobecker <brobecker@gnat.com>
11545
11546 * mdebugread.c (parse_symbol): Count until the stEnd matching
11547 the structure name.
11548
11549 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11550
11551 * configure.in: Remove --with-cpu option.
11552 subscripts. Remove evil changequotes here.
11553 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11554 * config.in, configure: Regenerated.
11555
11556 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11557 * configure.in: Cleanup section that sources GDB and BFD configure
11558 subscripts. Remove evil changequotes here.
11559 * config.in, configure: Regenerated.
11560
11561 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11562
11563 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11564 frame accessor methods.
11565 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11566 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11567 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11568 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11569 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11570 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11571 * z8k-tdep.c: Ditto.
11572
11573 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11574
11575 * configure.in: Remove UI_OUT configuration code.
11576 * ada-lang.c: Update assuming UI_OUT is always true.
11577 * Makefile.in (UIOUT_CFLAGS): Remove.
11578 * configure: Regenerated.
11579 * TODO: Remove blurb about elimination of -DUI_OUT.
11580
11581 * configure.in: Move code that provides the --enable-gdbcli,
11582 --enable-gdbmi options right before the code that handles the
11583 --enable-tui option. Polish a bit.
11584 * configure: Regenerated.
11585
11586 * configure.in: Rewrite check for GNU regex and the
11587 --without-included regex option, and move it into the "Checks for
11588 library functions" section. This makes us use the system regex
11589 again by default on systems with version 2 of the GNU C library.
11590 This was apparently broken.
11591 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11592 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11593 * config.in, configure: Regenerated.
11594
11595 * configure.in: Move code that provides the --enable-tui option
11596 before the "Checks for libraries" section. Polish the code
11597 somewhat and set need_curses to yes if we build the TUI. Rewrite
11598 code that looks for a library providing termcap functionality to
11599 match more closely what's done in the Readline library, and move
11600 it into to the "Checks for libraries" section.
11601 * configure: Regenerated.
11602 * Makefile.in (TERMCAP): Remove variable.
11603 * config/i386/go32.mh (TERMCAP): Remove variable.
11604
11605 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11606
11607 * MAINTAINERS: Mention gdb_mbuild.sh.
11608 * gdb_mbuild.sh: Rewrite.
11609
11610 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11611
11612 * configure.in: Fix typo in last change.
11613 * config.in, configure: Regenerated.
11614
11615 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11616
11617 * valarith.c (value_binop): Delete obsolete code and comments.
11618 * configure.host: Ditto.
11619 * buildsym.h (make_blockvector): Ditto.
11620 * buildsym.c (make_blockvector): Ditto.
11621 * defs.h (enum language): Ditto.
11622 (chill_demangle): Ditto.
11623 * elfread.c (elf_symtab_read): Ditto.
11624 * dwarfread.c (CHILL_PRODUCER): Ditto.
11625 (set_cu_language): Ditto.
11626 (handle_producer): Ditto.
11627 * expprint.c (print_subexp): Ditto.
11628 * gdbtypes.c (chill_varying_type): Ditto.
11629 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11630 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11631 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11632 (chill_varying_type): Ditto.
11633 * language.h (_LANG_chill): Ditto.
11634 * language.c (binop_result_type, integral_type): Ditto.
11635 (character_type, string_type, structured_type): Ditto.
11636 (lang_bool_type, binop_type_check): Ditto.
11637 * stabsread.h (os9k_stabs): Ditto.
11638 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11639 (define_symbol, read_type, read_struct_fields): Ditto.
11640 (read_array_type, read_enum_type, read_huge_number): Ditto.
11641 (read_range_type, start_stabs): Ditto.
11642 * symfile.c (init_filename_language_table): Ditto.
11643 (add_psymbol_with_dem_name_to_list): Ditto.
11644 * symtab.c (symbol_init_language_specific): Ditto.
11645 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11646 * symtab.h (struct general_symbol_info): Ditto.
11647 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11648 * typeprint.c (typedef_print): Ditto.
11649 * utils.c (fprintf_symbol_filtered): Ditto.
11650 * valops.c (value_cast, search_struct_field, value_slice): Delete
11651 obsolete code.
11652 (varying_to_slice): Delete function.
11653 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11654 (varying_to_slice): Delete declaration.
11655 * MAINTAINERS: Update.
11656
11657 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11658
11659 * configure.in: Reorganize "Checks for library functions section"
11660 a bit. Remove check for `btowc' and `isascii' functions.
11661 * configure: Regenerated.
11662
11663 * acconfig.h (_MSE_INT_H): Remove.
11664 * configure.in: Create "Checks for header files" section, and move
11665 appropriate tests there. Don't check for objlist.h, wchar.h,
11666 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11667 misdetection fix. Also add "Checks for types", "Checks for
11668 compiler characteristics" and "Checks for library functions"
11669 sections.
11670 * config.in, configure: Regenerated.
11671
11672 * configure.in: Create "Checks for programs" section, and move
11673 appropriate tests there.
11674
11675 2003-01-01 Mark Kettenis <kettenis@gnu.org>
11676
11677 * configure.in: Create "Checks for libraries" section, and move
11678 appropriate tests there. Cleanup check for wctype in libw. Use
11679 AC_SEARCH_LIBS to see whether we need libsocket.
11680 * configure: Regenerated.
11681
11682 For older changes see ChangeLog-2002
11683 \f
11684 Local Variables:
11685 mode: change-log
11686 left-margin: 8
11687 fill-column: 74
11688 version-control: never
11689 End:
This page took 0.285416 seconds and 4 git commands to generate.