* dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f630a401
DJ
12003-09-11 Daniel Jacobowitz <drow@mvista.com>
2
3 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
4 register do need a frame.
5
0ddabb4c
AC
62003-09-11 Andrew Cagney <cagney@redhat.com>
7
8 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
9 buildable since GDB 5.0.
10 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
11 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
12 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
13 * irix4-nat.c: Delete file.
14 * config/mips/irix4.mh: Delete file.
15 * config/mips/irix3.mh: Delete file.
16 * config/mips/irix3.mt: Delete file.
17 * config/mips/tm-irix3.h: Delete file.
18 * config/mips/nm-irix3.h: Delete file.
19 * config/mips/xm-irix3.h: Delete file.
20 * config/mips/nm-irix4.h: Delete file.
21 * config/mips/xm-irix4.h: Delete file.
22 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
23
fde2cceb
JB
242003-09-10 J. Brobecker <brobecker@gnat.com>
25
26 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
27 * Makefile.in (hppa-tdep.o): Update dependencies.
28
66f667f5
JW
292003-09-10 James E Wilson <wilson@specifixinc.com>
30
31 * MAINTAINERS: Change my e-mail address.
32
53e8aaea
KB
332003-09-10 Kevin Buettner <kevinb@redhat.com>
34
35 * MAINTAINERS (frv): New ISA entry.
36
dcc6aaff
KB
372003-09-10 Kevin Buettner <kevinb@redhat.com>
38
39 * frv-tdep.c (dis-asm.h): Include.
40 * Makefile.in (frv-tdep.o): Update dependencies.
41
932644f0
JJ
422003-09-09 Jeff Johnston <jjohnstn@redhat.com>
43
44 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
45 Fix typo for high range of floating registers.
46
91c24f0a
DC
472003-09-09 David Carlton <carlton@kealia.com>
48
49 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
50 highpc initialization here out of scan_partial_symbols.
51 (scan_partial_symbols): Restructure into a recursive version,
52 calling add_partial_namespace and add_partial_enumeration when
53 appropriate.
54 (add_partial_namespace): New.
55 (add_partial_enumeration, locate_pdi_sibling): Ditto.
56
c9263853
AC
572003-09-09 Andrew Cagney <cagney@redhat.com>
58
e56a0ecc
AC
59 * rs6000-tdep.c (ppc_push_return_address): Delete function.
60 (rs6000_push_dummy_call): Set LR to BP_ADDR.
61 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
62 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
63
794a477a
AC
64 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
65 (rs6000_push_dummy_call): Set the "TOC" register.
66
c9263853
AC
67 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
68 methods "max_register_raw_size", "max_register_virtual_size" or
69 "register_virtual_size".
70
afa7d0b2
ILT
712003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
72
73 * MAINTAINERS: Update my e-mail address.
74
7a41266b
AC
752003-09-09 Andrew Cagney <cagney@redhat.com>
76
77 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
78 (rs6000_push_dummy_call): Store the struct return address.
79 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
80
77b2b6d4
AC
812003-09-09 Andrew Cagney <cagney@redhat.com>
82
83 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
84 "ppc_sysv_abi_push_arguments".
85 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
86 "ppc_sysv_abi_push_arguments".
87 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
88 instead of "push_arguments".
89 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
90
e8a7b686
AC
912003-09-09 Andrew Cagney <cagney@redhat.com>
92
93 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
94 instead of CALL_DUMMY_ADDRESS.
95
f86f5ca3
PH
962003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
97
98 * p-lang.c: Eliminate "register".
99 * c-lang.c: Ditto.
100 * expprint.c: Ditto.
101 * f-lang.c: Ditto.
102 * jv-lang.c: Ditto.
103 * language.c: Ditto.
104 * m2-lang.c: Ditto.
105 * parse.c: Ditto.
106 * scm-lang.c: Ditto.
107 * objc-lang.c: Ditto.
108
83ee270e
NC
1092003-09-09 Nick Clifton <nickc@redhat.com>
110
111 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
112
a89aa300
AC
1132003-09-04 Andrew Cagney <cagney@redhat.com>
114
115 * avr-tdep.c: Include "dis-asm.h".
116 * cris-tdep.c: Include "dis-asm.h".
117 (cris_delayed_get_disassembler): Use "struct disassemble_info"
118 instead of corresponding typedef.
119 * h8300-tdep.c: Include "dis-asm.h".
120 * ia64-tdep.c: Include "dis-asm.h".
121 * i386-tdep.c: Include "dis-asm.h".
122 (i386_print_insn): Use "struct disassemble_info" instead of
123 corresponding typedef.
124 * m68k-tdep.c: Include "dis-asm.h".
125 * mcore-tdep.c: Include "dis-asm.h".
126 * mips-tdep.c: Include "dis-asm.h".
127 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
128 instead of corresponding typedef.
129 * ns32k-tdep.c: Include "dis-asm.h".
130 * s390-tdep.c: Include "dis-asm.h".
131 * sparc-tdep.c: Include "dis-asm.h".
132 * vax-tdep.c: Include "dis-asm.h".
133 * v850-tdep.c: Include "dis-asm.h".
134 * mn10300-tdep.c: Include "dis-asm.h".
135 * rs6000-tdep.c: Include "dis-asm.h".
136 * xstormy16-tdep.c: Include "dis-asm.h".
137 (_initialize_xstormy16_tdep): Delete "extern" declaration of
138 print_insn_xstormy16.
139 * Makefile.in (v850-tdep.o): Update dependencies.
140 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
141 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
142 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
143 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
144 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
145 (gdbarch_h): Remove $(dis_asm_h).
146 * disasm.c: Include "dis-asm.h".
147 (dis_asm_read_memory): Use "struct disassemble_info" instead of
148 corresponding typedef.
149 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
150 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
151 * gdbarch.sh: Do not include "dis-asm.h".
152 (struct disassemble_info): Declare opaque.
153 (TARGET_PRINT_INSN): Update declaration.
154 * gdbarch.h, gdbarch.c: Re-generate.
155
88a82a65
AC
1562003-09-08 Andrew Cagney <cagney@redhat.com>
157
158 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
159 CALL_DUMMY_ADDRESS, change to a predicate.
160 * gdbarch.h, gdbarch.c: Re-generate.
161 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
162 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
163 * infcall.c (call_function_by_hand): Ditto.
164 * sparc-tdep.c (sparc_push_return_address): Ditto.
165 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
166 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
167 CALL_DUMMY_ADDRESS with entry_point_address.
168 * v850-tdep.c (v850_push_return_address): Ditto.
169 * s390-tdep.c (s390_push_return_address): Ditto.
170 * rs6000-tdep.c (ppc_push_return_address): Ditto.
171 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
172 * mcore-tdep.c (mcore_push_return_address): Ditto.
173 * cris-tdep.c (cris_push_return_address): Ditto.
174 * arm-tdep.c (arm_push_return_address): Ditto.
175
3e2c4033
AC
1762003-09-08 Andrew Cagney <cagney@redhat.com>
177
178 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
179 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
180 and REG_UNMODIFIED to REG_SAME_VALUE.
181 (execute_cfa_program): Update.
182 (dwarf2_frame_cache): Update. Initialize table to
183 REG_UNSPECIFIED, complain if CFI fails to specify a register's
184 location.
185 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
186
39efb398
AC
1872003-09-08 Andrew Cagney <cagney@redhat.com>
188
189 * gnu-nat.c: Remove "inline" function attribute.
190 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
191
f5cb5aca
KB
1922003-09-08 Kevin Buettner <kevinb@redhat.com>
193
194 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
195 target.
196
1cb761c7
KB
1972003-09-08 Kevin Buettner <kevinb@redhat.com>
198
199 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
200 (frame_extra_info): Rename this struct to frv_unwind_cache.
201 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
202 Add fields ``prev_sp'' and ``base''.
203 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
204 (frv_saved_pc_after_call, frv_init_extra_frame_info)
205 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
206 Delete.
207 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
208 Revise all callers. Fill in the unwind cache argument and make
209 other adjustments to account for new frame mechanisms.
210 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
211 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
212 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
213 (frv_frame_unwind, frv_frame_base): New structs.
214 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
215 additional arguments expected by this method and adjust function
216 body accordingly.
217 (frv_gdbarch_init): Remove calls to the following functions:
218 set_gdbarch_deprecated_init_frame_pc(),
219 set_gdbarch_deprecated_saved_pc_after_call(),
220 set_gdbarch_deprecated_frame_chain(),
221 set_gdbarch_deprecated_frame_saved_pc(),
222 set_gdbarch_deprecated_frame_init_saved_regs(),
223 set_gdbarch_deprecated_push_arguments(),
224 set_gdbarch_deprecated_push_return_address(),
225 set_gdbarch_deprecated_pop_frame(),
226 set_gdbarch_deprecated_call_dummy_words(),
227 set_gdbarch_deprecated_sizeof_call_dummy_words(),
228 set_gdbarch_deprecated_init_extra_frame_info(),
229 set_gdbarch_deprecated_dummy_write_sp(), and
230 set_gdbarch_deprecated_pc_in_call_dummy().
231 Add calls to the following functions:
232 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
233 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
234 frame_base_set_default().
235 * Makefile.in (frv-tdep.o): Update dependencies.
236
68f6cf99
MK
2372003-09-09 Mark Kettenis <kettenis@gnu.org>
238
239 * dwarf2-frame.c (read_encoded_value): Add support for
240 DW_EH_PE_aligned encoding.
241
73b65bb0
DJ
2422003-09-08 Daniel Jacobowitz <drow@mvista.com>
243
244 * infrun.c (normal_stop): Don't print a message if the inferior
245 has exited.
246
7c8a5605
JB
2472003-09-08 Jim Blandy <jimb@redhat.com>
248
249 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
250 * dbxread.c: #include "gdb_assert.h".
251 (read_dbx_symtab): If the objfile has no .data section, use the
252 section index for the .bss section instead.
253
7dd88986
DJ
2542003-09-08 Daniel Jacobowitz <drow@mvista.com>
255
256 * frame.c (deprecated_safe_get_selected_frame): New function.
257 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
258 * findvar.c (read_var_value): Call it.
259
55ff77ac
CV
2602003-09-08 Corinna Vinschen <vinschen@redhat.com>
261
262 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
263 (sh64-tdep.o): Add dependencies.
264 * configure.tgt: Add FIXME to sh-*-linux*.
265 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
266 (sh_gdbarch_init): Always set correct sh_show_regs function
267 pointer. Call sh64_gdbarch_init() if machine type is sh5.
268 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
269 * sh64-tdep.c: New file, containing all sh64 related code from
270 sh-tdep.c.
271 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
272 * config/sh/linux.mt (TDEPFILES): Ditto.
273 * config/sh/nbsd.mt (TDEPFILES): Ditto.
274 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
275 * config/sh/wince.mt (TDEPFILES): Ditto.
276
bfb39158
DJ
2772003-09-07 Daniel Jacobowitz <drow@mvista.com>
278
279 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
280 (stop_wait_callback): Handle !lp->signalled also.
281 (lin_lwp_has_pending, flush_callback): New functions.
282 (lin_lwp_wait): Call flush_callback.
283 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
284 (linux_proc_pending_signals): New function.
285 * linux-nat.h (linux_proc_pending_signals): Add prototype.
286
9407de8e
DJ
2872003-09-07 Daniel Jacobowitz <drow@mvista.com>
288
289 From Nick Kelsey <nickk@ubicom.com>:
290 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
291 when the stop PC is at the beginning of a function also.
292
2ef47cd0
DJ
2932003-09-06 Daniel Jacobowitz <drow@mvista.com>
294
295 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
296 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
297
6f4492c8
MK
2982003-09-06 Mark Kettenis <kettenis@gnu.org>
299
300 * sol-thread.c: Include "gdb_string.h".
301
d3420b2f
MK
3022003-09-03 Mark Kettenis <m.kettenis@osp.nl>
303
304 * gcore.c: Reorder include files in alphabetical order. Include
305 "gdb_assert.h". Various coding style fixes.
306 (derive_stack_segment, derive_heap_segment): Replace check for
307 non-null BOTTOM and TOP with gdb_assert.
308 (derive_heap_segment): Replace check for successful creation of
309 ZERO with gdb_assert.
310 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
311
5220ea4c
AC
3122003-09-04 Andrew Cagney <cagney@redhat.com>
313
314 * thread-db.c (verbose_dlsym): New function.
315 (thread_db_load): Use verbose_dlsym
316 (thread_db_new_objfile): Print that libthread_db was loaded, and
317 that thread debugging was enabled.
318
6e8c2c06
AC
3192003-09-04 Andrew Cagney <cagney@redhat.com>
320
321 * configure.tgt: Add "mips64*-*-*" target. Delete
322 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
323 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
324 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
325 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
326 mips*-sony-*, and mips64*-*-elf* targets.
327 * config/mips/embedl.mt: Delete file.
328 * config/mips/embedl64.mt: Delete file.
329 * config/mips/mips.mt: Delete file.
330 * config/mips/mips64.mt: Delete file.
331 * config/mips/tm-embed.h: Delete file.
332 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
333 * config/mips/embed64.mt: Delete out-of-date comment.
334
3a3bc038
AC
3352003-09-04 Andrew Cagney <cagney@redhat.com>
336
337 * hppa-tdep.c (hppa_gdbarch_init): Set
338 "have_nonsteppable_watchpoint".
339 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
340 * mips-tdep.c (mips_dump_tdep): Do not print
341 HAVE_NONSTEPPABLE_WATCHPOINT.
342 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
343 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
344 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
345 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
346
a957e642
CV
3472003-09-04 Corinna Vinschen <vinschen@redhat.com>
348
349 * breakpoint.c (watchpoint_check): Remove accidentally checked in
350 unused code. Add comment.
351
a6fbcf2f
CV
3522003-09-04 Corinna Vinschen <vinschen@redhat.com>
353
354 * breakpoint.c (watchpoint_check): Check for pc being in an
355 epilogue if watchpoint frame couldn't be found.
356
c14a44d5
AC
3572003-09-04 Andrew Cagney <cagney@redhat.com>
358
359 * Makefile.in: Re-generate all dependencies.
360
f6c40618
AC
3612003-09-03 Andrew Cagney <cagney@redhat.com>
362
363 * arch-utils.h (legacy_print_insn): Delete declaration.
364 * arch-utils.c (legacy_print_insn): Delete function.
365 * disasm.c (deprecated_tm_print_insn_info): Delete.
366 (_initialize_disasm): Delete function, contained code initializing
367 deprecated_tm_print_insn_info.
368 * gdbarch.sh (deprecated_tm_print_insn): Delete.
369 (deprecated_tm_print_insn_info): Delete.
370 (TARGET_PRINT_INSN): Do not provide a default.
371 * gdbarch.h, gdbarch.c: Re-generate.
372
242e8be5
AC
3732003-09-03 Andrew Cagney <cagney@redhat.com>
374
375 * disasm.c (fprintf_disasm): New function.
376 (gdb_disassemble_info): Call "init_disassemble_info", instead of
377 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
378 reverts 2003-08-14 change.
379 (_initialize_disasm): Call "init_disassemble_info", instead of
380 INIT_DISASSEMBLE_INFO_NO_ARCH.
381
3ffc3dda
MS
3822003-09-03 Michael Snyder <msnyder@redhat.com>
383
384 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
385
52d16ba8
AC
3862003-09-03 Andrew Cagney <cagney@redhat.com>
387
388 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
389 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
390 * symfile.c (syms_from_objfile): Update.
391 (reread_symbols): `Update
392 * exec.c (exec_file_attach): Update.
393 (exec_file_attach): Update.
394 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
395 2003-08-29 change.
396 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
397
eb5492fa
DJ
3982003-09-03 Daniel Jacobowitz <drow@mvista.com>
399
400 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
401 trad-frame.h.
402 (arm_get_cache): Delete macro.
403 (struct arm_prologue_cache): Update comments. Make saved_regs into
404 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
405 to prev_sp.
406 (thumb_scan_prologue): Update for cache changes. Don't call
407 DEPRECATED_PC_IN_CALL_DUMMY.
408 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
409 argument and use it in desperation search for our prologue. Do not
410 search past the specified PC.
411 (arm_make_prologue_cache): Simplify.
412
413 (arm_prologue_this_id, arm_prologue_prev_register)
414 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
415 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
416 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
417 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
418 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
419
420 (arm_frame_chain_valid, arm_find_callers_reg)
421 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
422 (arm_pop_frame): Delete obsolete methods.
423 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
424
425 (arm_gdbarch_init): Update for new frame methods. Register prologue
426 and sigtramp unwinders. Set the default frame base method.
427
428 * Makefile.in (arm-tdep.o): Update dependencies.
429 * varobj.c (find_frame_addr_in_frame_chain): Call
430 get_frame_base_address.
431 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
432
24de872b
DJ
4332003-09-03 Daniel Jacobowitz <drow@mvista.com>
434
435 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
436 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
437 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
438 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
439 Take NEXT_FRAME and CACHE arguments. Call
440 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
441 Set unwound_pc in CACHE instead of modifying the frame argument.
442 Don't bother checking the frame type when looking for sigtramp
443 frames.
444 (arm_make_prologue_cache, arm_frame_chain)
445 (arm_init_extra_frame_info): New functions.
446
9b8d791a
DJ
4472003-09-03 Daniel Jacobowitz <drow@mvista.com>
448
449 * arm-tdep.c (arm_get_cache): Define.
450 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
451 unwound_sp, unwound_pc, and saved_regs.
452 (thumb_scan_prologue): Take a cache instead of the frame.
453 (arm_scan_prologue): Likewise.
454 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
455 instead of a temporary frame.
456 (arm_init_extra_frame_info): Allocate and use a cache.
457 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
458
7ee3275f
AC
4592003-09-03 Andrew Cagney <cagney@redhat.com>
460
461 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
462 * config/mips/wince.mt (TM_CLIBS): Ditto.
463 * config/sh/wince.mt (TM_CLIBS): Ditto.
464 * config/pa/hppa64.mt (TM_CLIBS): Delete.
465 * config/sparc/sp64.mt (CC): Delete.
466
57b29be7
AC
4672003-09-03 Andrew Cagney <cagney@redhat.com>
468
469 * defs.h: Do not include "arch-utils.h".
470 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
471 GDB_MULTI_ARCH_PURE.
472 * configure.in (GDB_MULTI_ARCH): Do not define.
473 * configure, config.in: Regenerate.
474 * configure.tgt: Do not set variable "gdb_multi_arch".
475 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
476 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
477 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
478 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
479 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
480 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
481 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
482 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
483 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
484 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
485 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
486 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
487 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
488 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
489 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
490 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
491 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
492 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
493
12e035e2
MC
4942003-08-30 Michael Chastain <mec@shout.net>
495
496 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
497 * config/m68k/nm-hp300hpux.h: Delete.
498 * config/m68k/tm-hp300hpux.h: Delete.
499 * config/m68k/xm-hp300hpux.h: Delete.
500 * config/m68k/xm-hp300bsd.h: Delete.
501 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
502 tm-hp300hpux.h, xm-hp300hpux.h.
503 * somsolib.c: Remove comment about hp300 shared libraries.
504
bda34dc2
MK
5052003-08-31 Mark Kettenis <kettenis@gnu.org>
506
5bca7895
MK
507 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
508 Only define PTRACE_GET_THREAD_AREA is not already defined.
509 Various style fixes in code and comments and some additional
510 spelling fixes in comments. Move after functions dealing with
511 debug registers.
512 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
513 Fix coding-style.
514
bda34dc2
MK
515 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
516 frame_unwind_register_unsigned instead of
517 frame_unwind_unsigned_register.
518
c890192f
MK
5192003-08-30 Mark Kettenis <kettenis@gnu.org>
520
521 * configure.in: Search for gethostbyname in libnsl.
522 * configure: Regenerated.
523
60fac5b8
MK
5242003-08-29 Mark Kettenis <kettenis@gnu.org>
525
e294916c
MK
526 * configure.in: Remove redundant AC_MSG_RESULT in check for
527 uintptr_t in stdint.h.
528 * configure: Regenerated.
529
c40d267a
MK
530 * amd64-nat.h (struct regcache): Add opaque declaration.
531
60fac5b8
MK
532 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
533 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
534 Change "register array" to "register cache" in comments.
535 (x86_64_linux_gregset64_reg_offset): New variable.
536 (GETREGS_SUPPLIES): Remove macro.
537 (supply_gregset): Call amd64_supply_native_gregset instead of
538 x86_64_linux_supply_gregset.
539 (fill_gregset): Rename `regno' to `regnum'. Call
540 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
541 (store_regs): Rename `regno' to `regnum'.
542 (store_fpregs): Rename `regno' to `regnum'.
543 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
544 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
545 Reorganize function a bit.
546 (store_inferior_registers): Rename `regno' to `regnum'. Use
547 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
548 Reorganize function a bit.
549 (_initialize_x86_64_linux_nat): New function.
550 * config/i386/x86-64linux.mh.
551
546143b6
AC
5522003-08-29 Andrew Cagney <cagney@redhat.com>
553
554 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
555 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
556 (target_remove_watchpoint): Delete macro.
557 (target_insert_watchpoint): Delete macro.
558 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
559 (remote_mips_stopped_by_watchpoint): Delete declaration.
560 (remote_mips_remove_watchpoint): Delete declaration.
561 (remote_mips_set_watchpoint): Delete declaration.
562 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
563 * remote-mips.c (_initialize_remote_mips): Set
564 "to_insert_watchpoint", "to_stopped_by_watchpoint",
565 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
566 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
567 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
568 (mips_stopped_by_watchpoint): Rename
569 remote_mips_stopped_by_watchpoint.
570 (mips_can_hardware_watchpoint): Rename
571 remote_mips_can_use_hardware_watchpoint, update function
572 signature.
573
7bace51b
MK
5742003-08-29 Mark Kettenis <kettenis@gnu.org>
575
b0f5c6f2
MK
576 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
577 USER_DS. We haven't given them a register number yet.
578
2a6d284d
MK
579 * amd64-nat.h: New file.
580 * amd64-nat.c: New file.
581 * amd64fbsd-nat.c: Include "amd64-nat.h".
582 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
583 (amd64fbsd32_r_reg_offset): New variable.
584 (supply_gregset): Simply call amd64_supply_native_gregset.
585 (fill_gregset): Rename `regno' to `regnum'. Simply call
586 amd64_collect_native_gregset.
587 (fill_fpregset): Rename `regno' to `regnum'.
588 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
589 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
590 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
591 `fpregset_t'. Call amd64_supply_native_gregset instead of
592 supply_gregset. Call x86_64_supply_fxsave instead of
593 supply_fpregset.
594 (store_inferior_registers): Rename `regno' to `regnum'. Replace
595 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
596 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
597 `fpregset_t'. Call amd64_collect_native_gregset instead of
598 fill_gregset. Call x86_64_collect_fxsave instead of
599 fill_fpregset.
600 (_initialize_am64fbsd_nat): Initialize
601 amd64_native_gregset32_reg_offset and
602 amd64_native_gregset64_reg_offset.
603 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
604
a16d75cc
MK
605 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
606 null pointer. Fix typo in comment.
607
7bace51b
MK
608 * regcache.c (supply_register): Reimplement to call
609 regcache_raw_supply.
610 (regcache_collect): Reimplement by calling regcache_raw_collect.
611
9a661b68
MK
6122003-08-28 Mark Kettenis <kettenis@gnu.org>
613
614 * regcache.c (register_buffer): Consitify first argument.
615 (regcache_raw_supply, regcache_raw_collect): New
616 functions.
617
e94cc8fa
DJ
6182003-08-28 Daniel Jacobowitz <drow@mvista.com>
619
620 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
621 by Nathan J. Williams.
622
c64bd0ce
DJ
6232003-08-28 Daniel Jacobowitz <drow@mvista.com>
624
625 * lin-lwp.c (wait_lwp): New function, copied from
626 stop_wait_callback. Clean up.
627 (stop_wait_callback): Use wait_lwp.
628
e5ab0dce
AC
6292003-08-28 Andrew Cagney <cagney@redhat.com>
630
631 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
632 flavour and disassembler options.
633 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
634 (mips_gdbarch_init): Set "print_insn". Delete initialization of
635 deprecated_tm_print_insn_info.
636
a788de9b
AC
6372003-08-27 Andrew Cagney <cagney@redhat.com>
638
639 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
640 Use target_read_memory.
641 (s390_get_frame_info): Update. Do not reference
642 deprecated_tm_print_insn_info.
643 (s390_check_function_end, s390_is_sigreturn): Ditto.
644
36482093
AC
6452003-08-27 Andrew Cagney <cagney@redhat.com>
646
647 * Makefile.in (cris-tdep.o): Update dependencies.
648 * cris-tdep.c: Include "gdb_assert.h".
649 (cris_gdbarch_init): Set print_insn.
650 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
651 (cris_delayed_get_disassembler): Simplify, directly call the
652 disassembler returned by cris_get_disassembler.
653 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
654 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
655 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
656 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
657 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
658 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
659 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
660 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
661 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
662 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
663 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
664 (gdb_print_insn_sparc): Delete function.
665 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
666 deprecated_tm_print_insn_info.
667 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
668 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
669 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
671 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
672 * s390-tdep.c (gdb_print_insn_s390): Delete function.
673 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
674 (s390_gdbarch_init): Set print_insn.
675
0285512f
AC
6762003-08-27 Andrew Cagney <cagney@redhat.com>
677
678 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
679 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
680 * infcall.c (call_function_by_hand): Convert the entry point
681 address into a code address.
682
cdcd5552
AC
6832003-08-27 Andrew Cagney <cagney@redhat.com>
684
685 * dsrec.c: Include "gdb_string.h".
686 * Makefile.in (dsrec.o): Update dependencies.
687
e85cddad
MC
6882003-08-27 Michael Chastain <mec@shout.net>
689
690 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
691
8bbfbb23
AC
6922003-08-27 Andrew Cagney <cagney@redhat.com>
693
694 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
695 (alpha_osf1_init_abi): Do not set call_dummy_address.
696
ba058b66
DC
6972003-08-27 David Carlton <carlton@kealia.com>
698
699 From Randolph Chung <tausq@debian.org>:
700 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
701 compiles with -Wformat-nonliteral -Werror.
702
87f84c9d
JB
7032003-08-26 Jim Blandy <jimb@redhat.com>
704
705 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
706 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
707 bfd_lookup_symbol, since we only want symbols in code sections.
708 (look_for_base): Pass zero as the SECT_FLAGS argument to
709 bfd_lookup_symbol, since we're not concerned about which section
710 the symbol is in.
711
102d615a
JJ
7122003-08-26 Jeff Johnston <jjohnstn@redhat.com>
713
714 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
715 we are frameless or the return address register is already known.
716
cc7ad3ea
AC
7172003-08-26 Andrew Cagney <cagney@redhat.com>
718
719 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
720 in size. Add comments.
721
af8b88dd
JJ
7222003-08-26 Jeff Johnston <jjohnstn@redhat.com>
723
724 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
725 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
726
e0a4f5a1
JM
7272003-08-26 Jason Merrill <jason@redhat.com>
728
729 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
730 case out of #ifdef MIPS block.
731
4ae9ee8e
DJ
7322003-08-25 Daniel Jacobowitz <drow@mvista.com>
733
734 PR java/1322
735 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
736 available before calling SECT_OFF_TEXT.
3c164570 737 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 738
004d836a
JJ
7392003-08-25 Jeff Johnston <jjohnstn@redhat.com>
740
741 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
742 bof, and nat0-nat127 as pseudo-registers.
743 (ia64_frame_cache): New struct used to cache frame info.
744 (ia64_register_reggroup_p): New routine used to override default
745 register grouping so registers without names are still saved and
746 restored.
747 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
748 pseudo values.
749 (ia64_pseudo_register_read): New routine to read pseudo-registers.
750 (ia64_pseudo_register_write): New routine to write pseudo-registers.
751 (ia64_alloc_frame_cache): New routine to create a new
752 ia64_frame_cache.
753 (examine_prologue): Change prototype to add next_frame pointer.
754 Assume frameless until otherwise proven. Verify that the cfm for
755 current frame matches the cfm that should occur for the prologues
756 alloc insn and if equal, mark as not frameless. At end of routine,
757 if not frameless, calculate registers for the previous frame and store
758 in the cache, if a cache is provided.
759 (ia64_skip_prologue): Use new prototype when calling examine_prologue
760 and pass 0 for next_frame.
761 (ia64_store_return_value): Change to use convert_typed_floating()
762 instead of calling ia64_convert_to_raw().
763 (ia64_extract_return_value): Change to use convert_typed_floating()
764 instead of calling ia64_convert_to_virtual().
765 (ia64_frame_cache): New routine to support new frame model.
766 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
767 (ia64_frame_sniffer): Ditto.
768 (ia64_sigtramp_frame_init_saved_regs): Ditto.
769 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
770 (ia64_sigtramp_frame_prev_register): Ditto.
771 (ia64_sigtramp_frame_sniffer): Ditto.
772 (ia64_frame_base_address): Ditto.
773 (ia64_extract_struct_value_address): Change to issue error message.
774 (ia64_frame_align): New routine to align sp.
775 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
776 (ia64_push_arguments): Removed. Logic moved to
777 ia64_push_dummy_call().
778 (ia64_push_return_address): Ditto.
779 (ia64_unwind_dummy_id): New function.
780 (ia64_unwind_pc): Ditto.
781 (ia64_convert_register_p): Ditto.
782 (ia64_register_to_value): Ditto.
783 (ia64_value_to_register): Ditto.
784 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
785 (ia64_register_byte, ia64_register_raw_size): Ditto.
786 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
787 (ia64_saved_pc_after_call): Ditto.
788 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
789 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
790 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
791 (ia64_register_convert_to_raw): Ditto.
792 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
793 (ia64_init_extra_frame_info): Ditto.
794 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
795 (ia64_gdbarch_init): Remove registering of deprecated functions that
796 are no longer used. Add registration of new gdbarch functions.
797 Remove registering deprecated_write_sp. Replace
798 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
799 Delete set_gdbarch_deprecated_register_convertible(),
800 set_gdbarch_deprecated_register_convert_to_virtual(), and
801 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
802 set_gdbarch_deprecated_register_size(),
803 set_gdbarch_deprecated_register_bytes(),
804 set_gdbarch_pcregnum(),
805 set_gdbarch_deprecated_register_byte(),
806 set_gdbarch_deprecated_register_raw_size(),
807 set_gdbarch_deprecated_max_register_raw_size(),
808 set_gdbarch_deprecated_register_virtual_size(),
809 and set_gdbarch_deprecated_max_register_virtual_size() calls.
810 Replace set_gdbarch_deprecated_extract_return_value() with
811 set_gdbarch_extract_return_value(). Remove calls to:
812 set_gdbarch_deprecated_saved_pc_after_call();
813 set_gdbarch_deprecated_frame_chain(),
814 set_gdbarch_deprecated_frame_saved_pc(),
815 set_gdbarch_deprecated_frame_init_saved_regs(),
816 set_gdbarch_deprecated_get_saved_register(),
817 set_gdbarch_deprecated_call_dummy_words(),
818 set_gdbarch_deprecated_sizeof_call_dummy_words(),
819 set_gdbarch_deprecated_init_extra_frame_info(),
820 set_gdbarch_deprecated_frame_args_address(),
821 set_gdbarch_deprecated_frame_locals_address(),
822 and set_gdbarch_deprecated_dummy_write_sp().
823 Add set_gdbarch_convert_register_p(),
824 set_gdbarch_register_to_value(),
825 set_gdbarch_value_to_register(),
826 set_gdbarch_push_dummy_call(),
827 set_gdbarch_frame_align(),
828 set_gdbarch_unwind_dummy_id(),
829 set_gdbarch_unwind_pc(),
830 frame_unwind_append_sniffer(),
831 frame_unwind_append_sniffer(),
832 and frame_base_set_default().
833
aede7613
CD
8342003-08-25 Chris Demetriou <cgd@broadcom.com>
835
836 * configure.tgt: Document need for special "mipsisa64" handling.
837 (mipsisa64*-*-linux64): Handle as target linux64.
838 (mipsisa64*-*-*): Handle as target embed64.
839
43c3a82e
MC
8402003-08-18 Michael Chastain <mec@shout.net>
841
842 * PROBLEMS: Document pr gdb/1322, the Java anonymous
843 objfile bug.
844
6564f77d
MK
8452003-08-24 Mark Kettenis <kettenis@gnu.org>
846
2de139ba
MK
847 * i387-tdep.h: Update copyright date.
848 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
849
6564f77d
MK
850 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
851 CFLAGS games to reflect reality.
852
42cf1509
AC
8532003-08-24 Andrew Cagney <cagney@redhat.com>
854
855 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
856 GDB_MULTI_ARCH is always non-zero.
857 * osabi.c (_initialize_gdb_osabi): Ditto.
858 (gdbarch_init_osabi): Ditto.
859 * sparc-tdep.c: Ditto for #if code.
860
0485f6ad
MK
8612003-08-23 Mark Kettenis <kettenis@gnu.org>
862
863 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
864 Update comments.
865 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
866 comments.
867 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
868 x86_64_supply_fxsave.
869 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
870 x86_64_supply_fxsave.
871 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
872 x86_64_supply_fxsave.
873
c7716133
AJ
8742003-08-23 Andreas Jaeger <aj@suse.de>
875
876 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
877 i387_supply_fxsave.
878
ed504bdf
MK
8792003-08-23 Mark Kettenis <kettenis@gnu.org>
880
881 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
882 i387_supply_register.
883 (go32_fetch_registers): Adjust call to i387_supply_fsave.
884 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
885 i387_supply_fsave.
886 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
887 i387_supply_fxsave.
888 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
889 i387_supply_fsave.
890 * i386bsd-nat.c (supply_fpregset): Adjust call to
891 i387_supply_fsave.
892 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
893 call to i387_supply_fxsave. Call i387_supply_fsave instead of
894 supply_fpregset.
895 (store_inferior_registers): Remove extraneous whitespace. Call
896 i387_fill_fsave instead of fill_fpregset.
897 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
898 (supply_fpregset): Likewise.
899 * i386v4-nat.c (supply_fpregset): Adjust call to
900 i387_supply_fsave.
901 * i386-interix-nat.c (supply_fpregset): Adjust call to
902 i387_supply_fsave.
903 * i386-linux-nat.c (supply_fpregset): Adjust call to
904 i387_supply_fsave.
905 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
906 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
907 i387supply_fsave and i387_supply_fxsave.
908 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
909 Incorporate code from `i387_supply_register.
910 (i387_supply_register): Remove.
911 (i387_supply_fxsave): Add `regnum' argument.
912 Update comments.
913 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
914 prototype.
915 (i387_supply_register): remove prototype.
916 Update comments.
917
4be5d520
MC
9182003-08-22 Michael Chastain <mec@shout.net>
919
920 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
921 Add lines for files in gdb/testsuite/gdb.cp/* that are
922 still not 8.3 unique.
923
7ed85d26
DJ
9242003-08-22 Daniel Jacobowitz <drow@mvista.com>
925
926 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
927 TYPE_VPTR_FIELDNO is valid.
928
eb0d3137
MK
9292003-08-19 Mark Kettenis <kettenis@gnu.org>
930
931 * utils.c (set_width_command): Remove prototypes.
932 (set_screen_size): New prototype.
933 (init_page_info): Simplify by fetching the screen size from
934 Readline. Call set_screen_size.
935 (set_screen_size): New function.
936 (set_width): Add missing whitespace in comment.
937 (set_width_command): Call set_screen_size.
938 (set_height_command): New function.
939 (initialize_utils): Fix formatting. Make "set height" command
940 call set_height_command. Remove redundant code that turns off
941 pagination if output isn't a terminal. Remove redundant call to
942 set_width_command.
943
7e6d0ac8
MK
9442003-08-22 Mark Kettenis <kettenis@gnu.org>
945
3567a8ea
MK
946 * sparc64-tdep.h (sparc64_regnum): Fix comment.
947 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
948 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
949 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
950 `case' keyword.
951 (sparc64_register_info): Give the reister with number
952 SPARC64_STATE_REGNUM a name.
953 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
954 %asi and %ccr.
955 (sparc64_push_dummy_call): Take BIAS into account when checking
956 stcak alignment.
957 (sparc_software_single_step): Remove assertions that check whether
958 NPC and NNPC were zero.
959 (sparc_supply_rwindow): Make public. Merge functionality with
960 sparc64_supply_rwindow.
961 (sparc_fill_rwindow): Make public. Merge functionality with
962 sparc64_fill_rwindow.
963 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
964 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
965 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
966 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
967 sparc_supply_rwindow instead of sparc64_supply_rwindow.
968
7e6d0ac8
MK
969 * reggroups.c: Add whitespace after declarations of local
970 variables in functions.
971
72e5f484
MC
9722003-08-21 Michael Chastain <mec@shout.net>
973
974 * gdbtypes.h: Change array bound type from an int to enum.
975
435ac228
AC
9762003-08-21 Andrew Cagney <cagney@redhat.com>
977
978 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
979 * config/sparc/tm-sparc.h: Ditto.
980 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
981 unconditionally.
982 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
983
0d0e1a63
MK
9842003-07-13 Mark Kettenis <kettenis@gnu.org>
985
986 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
987 (register_objfile_data, set_objfile_data, objfile_data): New
988 prototypes.
989 * objfiles.c (objfile_alloc_data, objfile_free_data): New
990 prototypes.
991 (allocate_objfile): Call objfile_alloc_data.
992 (free_objfile): Call objfile_free_data.
993 (struct objfile_data): New.
994 (struct objfile_data_registration): New.
995 (struct objfile_data_registry): New.
996 (objfile_data_registry): New variable.
997 (register_objfile_data): New function.
998 (objfile_alloc_data, objfile_free_data): New functions.
999 (set_objfile_data, objfile_data): New functions.
1000 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1001 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1002 (_initialize_dwarf2_frame): New function and prototype.
1003
d90cf509
AC
10042003-08-21 Andrew Cagney <cagney@redhat.com>
1005
1006 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1007 a specific architecture.
1008 * arch-utils.h (set_architecture_from_arch_mach): Delete
1009 declaration.
1010 (target_architecture_hook): Delete declaration.
1011 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1012 (default_float_format): Assume GDB_MULTI_ARCH.
1013 (default_double_format): Assume GDB_MULTI_ARCH.
1014 (set_endian_from_file): Delete function.
1015 (arch_ok): Delete function.
1016 (set_arch): Delete function.
1017 (set_architecture_from_arch_mach): Delete function.
1018 (set_architecture_from_file): Delete function.
1019 (set_architecture): Assume GDB_MULTI_ARCH.
1020 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1021
8b39fe56
MK
10222003-08-21 Mark Kettenis <kettenis@gnu.org>
1023
1024 Rewrite FreeBSD/sparc64 native configuration.
1025 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1026 * sparc64fbsd-nat.c: New file.
1027 * sparc64fbsd-tdep.c: New file.
1028 * sparc64-tdep.c sparc64-tdep.h: New files.
1029 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1030 sparc64fbsd-tdep.o): New dependencies.
1031 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1032 and sparc64fbsd-tdep.c.
1033 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1034 * config/sparc/fbsd.mh: Remove copyright notice.
1035 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1036 sparcbsd-nat.o.
1037 * config/sparc/fbsd.mt: Remove copyright notice.
1038 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1039 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1040 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1041 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1042 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1043 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1044 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1045 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1046 "sparc/tm-sp64.h".
1047 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1048 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1049
a7f19c79
MC
10502003-08-21 Michael Chastain <mec@shout.net>
1051
1052 * symtab.h: Add doco on the space critical structures and
1053 some measurements of space usage.
1054
da08ea5b
MS
10552003-08-21 Michael Snyder <msnyder@redhat.com>
1056
1057 * tracepoint.c (trace_dump_command): Trace break address
1058 is subject to DECR_PC_AFTER_BREAK.
1059 (set_traceframe_context): Make "trace_line" an int.
1060 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1061
6df2bf50
MS
10622003-08-20 Michael Snyder <msnyder@redhat.com>
1063
1064 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1065 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1066 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1067 argument passing.
1068 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1069 functions, replace sh_push_dummy_call.
1070 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1071
0955bbf0
MC
10722003-08-20 Michael Chastain <mec@shout.net>
1073
1074 * gdbtypes.h (struct main_type): Rearrange to save space.
1075
260a4188
MS
10762003-08-20 Michael Snyder <msnyder@redhat.com>
1077
1078 * trad-frame.c: Comment typo fix.
1079
8baa6f92
KB
10802003-08-20 Michael Snyder <msnyder@redhat.com>
1081 Kevin Buettner <kevinb@redhat.com>
1082
1083 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1084 (frv_frame_init_saved_regs): Add declaration.
1085 (frame_extra_info): Add new field ``saved_regs''.
1086 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1087 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1088 Update frame related code.
1089 (frv_extract_struct_value_address): Adjust formatting.
1090 * Makefile.in (frv-tdep.o): Update dependencies.
1091 * config/frv/tm-frv.h (target_insert_watchpoint)
1092 (target_remove_watchpoint, target_insert_hw_breakpoint)
1093 (target_remove_hw_breakpoint): Delete these macros.
1094 (remote_insert_watchpoint, remote_remove_watchpoint)
1095 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1096 these declarations.
1097
87193939
MC
10982003-08-20 Michael Chastain <mec@shout.net>
1099
1100 * defs.h (ENUM_BITFIELD): New macro.
1101 * symtab.h (ENUM_BITFIELD): Use it.
1102 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1103
062103ba
SA
11042003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1105
1106 * MAINTAINERS (write after approval): Add myself.
1107
8b148df9
AC
11082003-08-18 Andrew Cagney <cagney@redhat.com>
1109
1110 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1111 * gdbarch.h, gdbarch.c: Re-generate.
1112 * infcall.c (call_function_by_hand): Adjust the SP by
1113 frame_red_zone_size before allocating any stack space.
1114 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1115 * x86-64-tdep.c (x86_64_frame_align): New function.
1116 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1117
1118 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1119 Remove code adjusting SP so that it skips over the Red Zone.
1120
954a4db8
MK
11212003-08-18 Mark Kettenis <kettenis@gnu.org>
1122
1123 * NEWS (New native configurations): Mention FreeBSD/amd64.
1124
1a241548
AC
11252003-08-18 Andrew Cagney <cagney@redhat.com>
1126
1127 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1128 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1129 "m68k_frame_p".
1130 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1131
f82b2acd
MK
11322003-08-18 Mark Kettenis <kettenis@gnu.org>
1133
1134 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1135
4056d258
ML
11362003-08-18 Michal Ludvig <mludvig@suse.cz>
1137
1138 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1139 Define.
1140 * i386-linux-nat.c: Include "linux-nat.h".
1141 (child_post_startup_inferior): New function.
1142
99ab4326
MK
11432003-08-18 Mark Kettenis <kettenis@gnu.org>
1144
1145 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1146 at the start of a frameless function. This probably fixes PR
1147 backtrace/1338.
1148
c8d5f0d6
MC
11492003-08-17 Michael Chastain <mec@shout.net>
1150
1151 * symfile.c (find_sym_fns): Remove special case for apollo target.
1152
9016a515
DJ
11532003-08-17 Daniel Jacobowitz <drow@mvista.com>
1154
1155 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1156 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1157 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1158 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1159 (linux_supports_tracevforkdone): New function.
1160 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1161 TRACEVFORKDONE.
1162 (child_follow_fork): Handle vfork.
1163 (linux_handle_extended_wait): Likewise. Also handle exec.
1164 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1165 * NEWS: Mention fork tracing.
1166
c538c11c
DJ
11672003-08-17 Daniel Jacobowitz <drow@mvista.com>
1168
1169 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1170
4de4c07c
DJ
11712003-08-17 Daniel Jacobowitz <drow@mvista.com>
1172
1173 * Makefile.in (i386-linux-nat.o): Update dependencies.
1174 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1175 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1176 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1177 * i386-linux-nat.c: Include "linux-nat.h".
1178 (child_post_startup_inferior): New function.
1179 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1180 * infptrace.c (kill_inferior): Wrap in #ifdef.
1181 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1182 attaching to each LWP.
1183 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1184 (init_lin_lwp_ops): Fill in some more operations.
1185 * linux-nat.h (linux_enable_event_reporting)
1186 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1187 prototypes.
1188 * linux-nat.c (linux_enable_event_reporting): New function.
1189 (child_post_attach, linux_child_post_startup_inferior)
1190 (child_post_startup_inferior, child_follow_fork)
1191 (linux_handle_extended_wait, kill_inferior): New functions.
1192
7996bcec
AC
11932003-08-16 Andrew Cagney <cagney@redhat.com>
1194
1195 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1196 * gdbarch.h, gdbarch.c: Re-generate.
1197
3d48a7a0
MK
11982003-08-16 Mark Kettenis <kettenis@gnu.org>
1199
1200 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1201
7989c619
AC
12022003-08-16 Andrew Cagney <cagney@redhat.com>
1203
1204 * NEWS: Mention that "set prompt-escape-char" was deleted.
1205 * top.c (get_prompt_1): Delete function.
1206 (gdb_prompt_escape):
1207 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1208 prompt-escape-char" command.
1209 (MAX_PROMPT_SIZE): Delete macro.
1210 (get_prompt): Simplify, do not call get_prompt_1.
1211
07978cd8
AC
12122003-08-16 Andrew Cagney <cagney@redhat.com>
1213
1214 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1215 -Werror. -Wformat-nonliteral problems.
1216
3ff7cf9e
JB
12172003-08-15 J. Brobecker <brobecker@gnat.com>
1218
1219 Further multiarching work mostly for hppa64-*-hpux11:
1220 * hppa-tdep.h: New file.
1221 * hppa-tdep.c: #include hppa-tdep.c.
1222 (hppa32_num_regs): Renamed from hppa_num_regs.
1223 (hppa64_num_regs): New constant.
1224 (hppa64_call_dummy_breakpoint_offset): New constant.
1225 (hppa32_call_dummy_length): New constant.
1226 (hppa64_call_dummy_length): New constant.
1227 (hppa32_stack_align): Make name 32bit explicit.
1228 (hppa32_register_virtual_type): Likewise.
1229 (hppa32_extract_return_value): Likewise.
1230 (hppa32_use_struct_convention): Likewise.
1231 (hppa32_store_return_value): Likewise.
1232 (hppa64_register_virtual_type): New function.
1233 (hppa64_extract_return_value): New function.
1234 (hppa64_use_struct_convention): New function.
1235 (hppa64_store_return_value): New function.
1236 (hppa_frame_locals_address): Remove declaration, function does
1237 not exist anymore.
1238 (hppa_register_byte): Add support for PA64 ABI.
1239 (hppa_gdbarch_init): Add support for PA64 ABI.
1240 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1241 Make name 32bit explicit.
1242 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1243 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1244 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1245 (hppa64_hpux_frame_base_before_sigtramp): New function.
1246 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1247 * config/pa/tm-hppa64.h: Remove macros that are no longer
1248 necessary now that the gdbarch vector is properly setup.
1249 Transform some macros into function calls. Some minor cleanup.
1250 * config/pa/tm-hppah.h: Update function calls in macros
1251 following the function renaming in hppa-hpux-tdep.c.
1252 * Makefile.in (hppa_tdep_h): New variable.
1253 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1254
5d05ca6d
MS
12552003-08-14 Michael Snyder <msnyder@redhat.com>
1256
1257 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1258
37ba2569
JB
12592003-08-13 J. Brobecker <brobecker@gnat.com>
1260
1261 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1262 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1263 routine.
1264
aed7f26a
MS
12652003-08-13 Michael Snyder <msnyder@redhat.com>
1266
1267 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1268 (frv_saved_pc_after_call): Use deprecated ftype.
1269 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1270 (frv_remote_translate_xfer_address): Remove.
1271 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1272
752d4ac1
JB
12732003-08-13 J. Brobecker <brobecker@gnat.com>
1274
1275 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1276 initialization after the common gdbarch initialization, not before.
1277
1426ac1d
JB
12782003-08-13 J. Brobecker <brobecker@gnat.com>
1279
1280 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1281 (ADDR_BITS_REMOVE): Remove, redundant.
1282
b6fbdd1d
JB
12832003-08-13 J. Brobecker <brobecker@gnat.com>
1284
1285 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1286 gdbarch method to clear the 2 low bits of text addresses.
1287
44160db3
AC
12882003-08-12 Andrew Cagney <cagney@redhat.com>
1289
1290 * Makefile.in (dsrec.o): Update dependencies.
1291 * dsrec.c: Include "gdb_assert.h".
1292 (make_srec): Use snprintf instead of sprintf, use a literal format
1293 string.
1294
bcf7d3ca
AC
12952003-08-12 Andrew Cagney <cagney@redhat.com>
1296
1297 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1298 FRAME_OBSTACK_ZALLOC.
1299
49ed40de
KB
13002003-08-12 Kevin Buettner <kevinb@redhat.com>
1301
1302 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1303 SSE registers.
1304
b246147c
MK
13052003-08-10 Mark Kettenis <kettenis@gnu.org>
1306
1307 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1308 amd64fbsd_sc_reg_offset): Add extern declarations.
1309 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1310 declarations.
1311
d95fdc0d
BE
13122003-08-11 Ben Elliston <bje@wasabisystems.com>
1313
1314 * MAINTAINERS (write after approval): Update my mail address.
1315
cf6a0e73
AC
13162003-08-10 Andrew Cagney <cagney@redhat.com>
1317
1318 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1319
f837910f
MK
13202003-08-10 Mark Kettenis <kettenis@gnu.org>
1321
e2dbbd2d
MK
1322 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1323 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1324 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1325 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1326 i386bsd_sc_reg_offset): Add extern declarations.
1327 * i386obsd-nat.c: Include "i386-tdep.h"
1328 (_initialize_i386obsd_nat): Remove extern declarations.
1329 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1330 declarations.
1331 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1332 declarations.
1333
f837910f
MK
1334 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1335 instead of frame_read_register.
1336 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1337 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1338 SP_REGNUM.
1339 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1340 instead of frame_unwind_unsigned_register. Use
1341 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1342 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1343 instead of read_register. Use builtin_type_void_data_ptr instead
1344 of builtin_type_void_func_ptr when extracting the address of the
1345 jmp_buf.
1346 (i386_extract_return_value, i386_store_return_value,
1347 i386_pseudo_register_read, i386_pseudo_register_write): Use
1348 register_size instead REGISTER_RAW_SIZE.
1349
edcf254d
AC
13502003-08-10 Andrew Cagney <cagney@redhat.com>
1351
1352 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1353 sprintf. Make "name" constant.
1354
26604a34
MK
13552003-08-10 Mark Kettenis <kettenis@gnu.org>
1356
192285c6
MK
1357 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1358 instead of frame_read_register.
f837910f
MK
1359 (i387_print_float_info): Use get_frame_register and
1360 get_frame_register_unsigned instead of frame_register_read.
192285c6 1361
f0925262
MK
1362 * i386fbsd-nat.c: Include "i386-tdep.h".
1363 (child_resume): Make `eflags' an ULONGEST. Use
1364 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1365 instead of register_read and register_write.
1366
a144416f
MK
1367 * i386bsd-nat.c (fetch_inferior_registers,
1368 store_inferior_registers): Don't use && at the end of a line.
1369 (_initialize_i386bsd_nat): Fix typo.
1370
fec74868
MK
1371 * frame.c (_initialize_frame): Add missing backslash.
1372
87232496
MK
1373 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1374 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1375 and supply_register instead of manipulating the register buffer
1376 directly.
1377
c9b9de0b
MK
1378 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1379 * config/i386/nm-i386sol2.h
1380 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1381
26604a34
MK
1382 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1383 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1384 instructions that GCC likes to mingle into the prologue. Fixes
1385 gdb/1253 and gdb/1255.
1386
25d29d70
AC
13872003-08-09 Andrew Cagney <cagney@redhat.com>
1388
1389 Fix GDB PR cli/926.
1390 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1391 * command.h (add_setshow_uinteger_cmd): Declare.
1392 * frame.c (set_backtrace_cmd): New function.
1393 (show_backtrace_cmd): New function.
1394 * frame.c (_initialize_frame): Replace "set/show
1395 backtrace-below-main" with "set/show backtrace past-main". Add
1396 command "set/show backtrace limit".
1397 (backtrace_past_main): Rename "backtrace_below_main".
1398 (backtrace_limit): New variable.
1399 (get_prev_frame): Update. Check the backtrace_limit.
1400
9ebf4acf
AC
14012003-08-09 Andrew Cagney <cagney@redhat.com>
1402
1403 * defs.h (xstrprintf): Declare.
1404 * utils.c (xstrprintf): New function.
1405 * breakpoint.c (insert_breakpoints): Replace sprintf and
1406 non-literal format strings, with xstrprintf and cleanups.
1407 (delete_breakpoint,breakpoint_re_set): Ditto.
1408 (commands_command, insert_breakpoints): Ditto.
1409 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1410 (break_at_finish_command_1): Ditto.
1411
3771659b
AC
14122003-08-09 Andrew Cagney <cagney@redhat.com>
1413
1414 * MAINTAINERS (language support): List Adam Fedor as Objective C
1415 maintainer.
1416
b4263afa
JB
14172003-08-08 J. Brobecker <brobecker@gnat.com>
1418
1419 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1420 are now multiarched.
1421
d84defb1
JB
14222003-08-08 J. Brobecker <brobecker@gnat.com>
1423
1424 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1425 longer necessary now that hppa64 is partially multiarch'ed.
1426
f786f615
AC
14272003-08-08 Andrew Cagney <cagney@redhat.com>
1428
1429 * interps.c (interp_set): Check for a NULL "old_interp".
1430
c938e9b0
L
14312003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1432
1433 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1434 (install-only): Support DESTDIR.
1435 (uninstall): Likewise.
1436 (install-gdbtk): Likewise.
1437
9a146a11
EZ
14382003-08-08 Elena Zannoni <ezannoni@redhat.com>
1439
1440 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1441 contains something meaningful at all times.
1442
1443Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1444
62599e99 1445 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1446
56296155
BC
1447Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1448
62599e99 1449 * MAINTAINERS (write after approval): Added self.
56296155 1450
9710e734
AC
14512003-08-07 Andrew Cagney <cagney@redhat.com>
1452
1453 * inferior.h (AT_SYMBOL): Define.
1454 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1455 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1456 * mips-tdep.c (mips_call_dummy_address): Delete function.
1457 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1458 set call_dummy_address.
1459
98b3ab73
AC
14602003-08-07 Andrew Cagney <cagney@redhat.com>
1461
1462 * language.c (op_error): Delete function.
1463 (binop_type_check): Delete function.
1464 * language.h (type_op_error, range_op_error): Delete macros.
1465 (op_error): Delete declaration.
1466
2fcf52f0
AC
14672003-08-07 Andrew Cagney <cagney@redhat.com>
1468
1469 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1470
abd4220e 14712003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1472
abd4220e 1473 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1474 (x86_64_push_arguments): Skip the red zone.
abd4220e 1475
9dd5f34f
AC
14762003-08-05 Andrew Cagney <cagney@redhat.com>
1477
1478 * reggroups.c (reggroup_next): Check for the final entry.
1479
e5e78edc
AC
14802003-08-04 Andrew Cagney <cagney@redhat.com>
1481
ab4e3d93
AC
1482 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1483 * cli/cli-script.c (define_command): Call query directly, instead
1484 of passing it a buffer.
1485 * ocd.c (ocd_error): Pass error a constant format string.
1486 * remote-mips.c (mips_error): Use fputs_filtered.
1487
1062ca82
AC
1488 * solib-svr4.c (_initialize_svr4_solib): Update
1489 register_gdbarch_data call.
1490 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1491
fcc1c85c
AC
1492 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1493 (register_gdbarch_data): Delete "free" parameter. Update
1494 comments.
1495 * gdbarch.h, gdbarch.c: Re-generate.
1496 * reggroups.c (_initialize_reggroup): Update.
1497 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1498 * frame-base.c (_initialize_frame_base): Update.
1499 * frame-unwind.c (_initialize_frame_unwind): Update.
1500 * user-regs.c (_initialize_user_regs): Update.
1501 * remote.c (_initialize_remote): Update.
1502 * regcache.c (_initialize_regcache): Update.
1503
116f06ea
AC
1504 * regcache.c (xfree_regcache_descr): Delete function.
1505 (_initialize_regcache): Update call to register_gdbarch_data.
1506 (init_regcache_descr, init_legacy_regcache_descr): Use
1507 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1508
e5e78edc
AC
1509 * remote.c (free_remote_state): Delete function.
1510 (_initialize_remote): Update register_gdbarch_data.
1511 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1512 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1513
6c7d17ba
AC
15142003-08-04 Andrew Cagney <cagney@redhat.com>
1515
1516 * reggroups.c (struct reggroup_el): Define.
1517 (struct reggroups): Delete field "nr_group". Replace array
1518 "group" with a "first" to "last" linked list.
1519 (reggroups_init): Update. Allocate using gdbarch's obstack.
1520 (reggroups_free): Delete function.
1521 (add_group): Update. Add "el" parameter.
1522 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1523 (default_groups): Update.
1524 (reggroup_next): Replace reggroups.
1525 (reggroups_dump): Update.
1526 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1527 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1528 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1529
89b7795b
DJ
15302003-08-04 Daniel Jacobowitz <drow@mvista.com>
1531
1532 * Makefile.in (tui-interp.o): Update dependencies.
1533
306d9ac5
DC
15342003-08-04 David Carlton <carlton@kealia.com>
1535
1536 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1537 to internal_error call.
1538 * source.c (forward_search_command): Add "%s" format argument.
1539 (reverse_search_command): Ditto.
1540 * top.c (quit_confirm): Ditto.
1541 * cli/cli-setshow.c (do_setshow_command): Ditto.
1542 * cp-valprint.c (cp_print_class_method): Replace
1543 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1544 (cp_print_class_member): Ditto.
1545 * event-top.c (command_line_handler): Ditto.
1546 * linux-proc.c (linux_info_proc_cmd): Ditto.
1547 * p-typeprint.c (pascal_type_print_base): Ditto.
1548 * p-valprint.c (pascal_object_print_class_method): Ditto.
1549 (pascal_object_print_class_member): Ditto.
1550 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1551 * remote.c (remote_cisco_section_offsets): Ditto.
1552 * top.c (command_line_input): Ditto.
1553 * utils.c (vwarning,error_stream,quit): Ditto.
1554 * valprint.c (print_floating,print_binary_chars)
1555 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1556
57bfe177
AC
15572003-08-04 Andrew Cagney <cagney@redhat.com>
1558
1559 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1560
e546b999
AC
15612003-08-02 Andrew Cagney <cagney@redhat.com>
1562
1563 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1564 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1565 amd64fbsd-nat.c.
1566
91092ee5
AC
15672003-08-02 Andrew Cagney <cagney@redhat.com>
1568
1569 * Makefile.in: Update all dependencies and definitions.
1570
889f28e2
AF
15712003-08-02 Adam Fedor <fedor@gnu.org>
1572
1573 * linespec.c (is_objc_method_format): New function
1574 (decode_line_1, locate_first_half): Use it.
1575 Fixes PR objc/1298
1576
880bc914
AC
15772003-08-01 Andrew Cagney <cagney@redhat.com>
1578
1579 * NEWS: Mention that m32r is multi-arch.
1580 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1581 * configure.tgt: Recognize m32r-*-*.
1582 * config/m32r/tm-m32r.h: Delete file.
1583 * config/m32r/m32r.mt: New file.
1584 * m32r-rom.c (m32r_upload_command): Use hostent only when
1585 gethostname succeeds, in order to avoid a compilation
1586 warning.
1587 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1588 compiler warning.
1589
19f59343
MS
15902003-08-01 Michael Snyder <msnyder@redhat.com>
1591
1592 * sh-tdep.c (sh_frame_align): New gdbarch method.
1593 (sh_gdbarch_init): Set up frame_align method.
1594
4e7d7511
MS
15952003-07-31 Michael Snyder <msnyder@redhat.com>
1596
1597 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1598 which is already covered by the new frames infrastructure.
1599
63022984
AC
16002003-07-31 Andrew Cagney <cagney@redhat.com>
1601
1602 * user-regs.c (struct user_reg): Add "next" link.
1603 (struct user_regs): Replace "user" with "first" and "last" links.
1604 (append_user_reg): Add pre-allocated "reg" parameter.
1605 (builtin_user_regs): Provide initial value for "last".
1606 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1607 (user_regs_init): Allocate memory from the gdbarch obstack.
1608 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1609 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1610 linked list.
1611 (usernum_to_user_reg): New function.
1612 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1613 (value_of_user_reg): Use usernum_to_user_reg.
1614 (user_regs_free): Delete function.
1615 (_initialize_user_regs): Update register_gdbarch_data call.
1616
7cf6e574
DJ
16172003-07-31 Daniel Jacobowitz <drow@mvista.com>
1618
1619 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1620
c48a845b
MS
16212003-07-30 Michael Snyder <msnyder@redhat.com>
1622
4e7d7511 1623 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1624 * infcall.c (call_function_by_hand): Pass struct_addr to
1625 value_being_returned.
1626 * infcmd.c (print_return_value): Pass zero as struct_addr.
1627 * values.c (value_being_returned): If struct_addr is passed,
1628 use it instead of trying to recover it from the inferior.
1629
f0d8db19
KB
16302003-07-30 Kevin Buettner <kevinb@redhat.com>
1631
1632 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1633 the prologue analyzer won't need to attempt to extract the pc
1634 value from the woefully incomplete dummy frame.
1635 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1636 possible. Disable code which modifies the frame.
1637
e5c113a1
AC
16382003-07-28 Andrew Cagney <cagney@redhat.com>
1639
1640 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1641 to level 2.
1642 (annotate_breakpoints_table, annotate_record): Ditto.
1643 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1644 (annotate_field_name_end, annotate_field_value): Ditto.
1645 (annotate_field_end, annotate_frame_source_begin): Ditto.
1646 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1647 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1648 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1649 (annotate_frame_address_end, annotate_frame_address): Ditto.
1650 (annotate_frame_args, annotate_frame_end): Ditto.
1651 (annotate_frame_where, annotate_arg_begin): Ditto.
1652 (annotate_arg_name_end, annotate_arg_value): Ditto.
1653 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1654 (annotate_function_call, annotate_signal_name): Ditto.
1655 (annotate_signal_string, annotate_signal_name_end): Ditto.
1656 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1657 (annotate_value_begin, annotate_value_history_value): Ditto.
1658 (annotate_value_history_end, annotate_value_end): Ditto.
1659 (annotate_display_begin, annotate_display_number_end): Ditto.
1660 (annotate_display_format, annotate_display_expression): Ditto.
1661 (annotate_display_expression_end, annotate_display_value): Ditto.
1662 (annotate_display_end, annotate_array_section_begin): Ditto.
1663 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1664 (annotate_elt, annotate_array_section_end): Ditto.
1665
bb1db049
AC
16662003-07-28 Andrew Cagney <cagney@redhat.com>
1667
1668 * regcache.c (struct regcache_descr): Update comments on
1669 nr_raw_registers.
1670 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1671 sizeof_raw_register_valid_p.
1672 (init_regcache_descr): Set nr_raw_registers and
1673 sizeof_raw_register_valid_p before calling
1674 init_legacy_regcache_descr.
1675
20e6603c
AC
16762003-07-28 Andrew Cagney <cagney@redhat.com>
1677
1678 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1679 MOD NUM_REGS.
1680
db742940
DJ
16812003-07-28 Daniel Jacobowitz <drow@mvista.com>
1682
1683 * thread.c (info_threads_command): Use get_selected_frame ().
1684 Check that there is at least one non-sentinel frame.
1685
ce7f4371
SC
16862003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1687
1688 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1689 (m68hc11_pop_frame): Remove.
1690 (m68hc11_frame_saved_pc): Remove.
1691 (m68hc11_frame_chain): Remove.
1692 (m68hc11_frame_init_saved_regs): Remove.
1693 (m68hc11_init_extra_frame_info): Remove.
1694 (m68hc11_store_struct_return): Remove.
1695 (m68hc11_saved_pc_after_call): Remove.
1696
1ea653ae
SC
16972003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1698
1699 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1700 frame unwind information.
1701 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1702 and adapted for frame unwinding.
1703 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1704 (m68hc11_unwind_pc): New function.
1705 (m68hc11_frame_unwind_cache): New function to analyze frames.
1706 (m68hc11_frame_this_id): New function to create new frame struct.
1707 (m68hc11_frame_prev_register): New function to unwind a register from
1708 the frame.
1709 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1710 (m68hc11_frame_p): New function for the above.
1711 (m68hc11_frame_base_address): New function to return fp of frame.
1712 (m68hc11_frame_args_address): Update for frame.
1713 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1714 (m68hc11_unwind_sp): New function.
1715 (m68hc11_unwind_dummy_id): New function.
1716 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1717 calls.
1718
c8a7f6ac
SC
17192003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1720
1721 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1722 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1723 when we are beyond the current pc.
1724
3dc990bf
SC
17252003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1726
1727 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1728 from m68hc11_push_arguments.
1729 (m68hc11_push_arguments): Remove.
1730 (m68hc11_push_return_address): Remove.
1731 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1732 handlers; remove deprecated_extra_stack_alignment_needed.
1733
222e5d1d
AC
17342003-07-27 Andrew Cagney <cagney@redhat.com>
1735
1736 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1737 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1738 REAL_PC and not the pointer.
1739 * hppa-hpux-tdep.c: Include frame.h
1740
a7e9a47e
AC
17412003-07-27 Andrew Cagney <cagney@redhat.com>
1742
1743 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1744 GDB_MULTI_ACH_PARTIAL.
1745
7e3dd49e
AC
17462003-07-27 Andrew Cagney <cagney@redhat.com>
1747
1748 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1749 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1750 operator at start and not end of line.
1751 (decode_prologue): Ditto.
1752 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1753 frame_unwind_register_unsigned instead of
1754 frame_unwind_unsigned_register.
1755 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1756 read_register.
1757 (m32r_push_dummy_call): Use register_size instead of
1758 REGISTER_RAW_SIZE.
1759 (m32r_frame_sniffer): Replace m32r_frame_p.
1760 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1761 * m32r-rom.c (report_transfer_performance): Delete extern
1762 declaration.
1763 (m32r_load, m32r_upload_command): Use print_transfer_performance
1764 instead of report_transfer_performance.
1765 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1766 / add_show_from_set.
1767
0880807f
AC
17682003-07-26 Andrew Cagney <cagney@redhat.com>
1769
1770 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1771 store_return_value and extract_struct_value_address.
1772
64ae9269
DJ
17732003-07-26 Daniel Jacobowitz <drow@mvista.com>
1774
1775 PR c++/1267
1776 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1777 NULL, default to the section containing PC.
1778
e286caf2
SC
17792003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1780
1781 * NEWS: Mention "regs" deprecated for m68hc11 too.
1782
1783 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1784 (m68hc11_print_register): New function to print out one register.
1785 (m68hc11_print_registers_info): New function to print registers.
1786 (show_regs): Deprecate and use the above.
1787 (m68hc11_gdbarch_init): Install the print_registers_info.
1788
705b278b
JJ
17892003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1790
1791 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1792 that we have a SIGTRAP before returning non-zero.
1793
63cd4198
EZ
17942003-07-23 Michal Ludvig <mludvig@suse.cz>
1795 Elena Zannoni <ezannoni@redhat.com>
1796
1797 * linespec.c (decode_line_2): Avoid crash if
1798 find_function_start_sal() returns empty record.
1799
6926787d
AS
18002003-07-23 Andreas Schwab <schwab@suse.de>
1801
1802 * ia64-tdep.c (ia64_print_insn): New function.
1803 (ia64_gdbarch_init): Set print_insn to it.
1804 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1805 deprecated_tm_print_insn_info.
1806
708cc1b6
MS
18072003-07-22 Michael Snyder <msnyder@redhat.com>
1808
1809 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1810 handle 8-bit returns (long long).
1811 (h8300h_extract_return_value): Ditto.
1812 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1813
aebd7893
AC
18142003-07-22 Andrew Cagney <cagney@redhat.com>
1815
1816 * gdbarch.c Include "gdb_obstack.h".
1817 (struct gdbarch): Add an "obstack".
1818 (alloc_gdbarch_data): Allocate the gdbarch data using
1819 GDBARCH_OBSTACK_CALLOC.
1820 (free_gdbarch_data): Delete function.
1821 (gdbarch_obstack_zalloc): New function.
1822 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1823 Assert that the architecture is not initialized.
1824 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1825 vector from the obstack.
1826 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1827 architecture obstack.
1828 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1829 (set_gdbarch_data): Assert that the data is not initialized.
1830 (struct gdbarch_data): Delete member "free".
1831 (register_gdbarch_data): Do not initialize "free".
1832 * gdbarch.h, gdbarch.c: Re-generate.
1833
153721e6
AC
18342003-07-22 Andrew Cagney <cagney@redhat.com>
1835
1836 * configure.in (build_warnings): Add -Wformat-nonliteral.
1837 * configure: Re-generate.
1838
c193f044 18392003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1840
1841 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1842
c3228f12
EZ
18432003-07-22 Elena Zannoni <ezannoni@redhat.com>
1844
1845 * findvar.c (read_var_value): Remove case for thread local storage
1846 variables. It is now entirely handled by the dwarf2 location
1847 expression code.
1848 * printcmd.c (address_info): Ditto.
1849 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1850 enumeration value.
1851 (struct symbol): Remove objfile field, which was used by
1852 LOC_THREAD_LOCAL_STATIC only.
1853 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1854 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1855 usage of objfile pointer.
1856 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1857 thread local variables.
1858 Add include of objfiles.h.
1859 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1860 storage variables.
1861 * Makefile.in (dwarf2loc.o): Update dependencies.
1862
aef9bcd2
AC
18632003-07-22 Andrew Cagney <cagney@redhat.com>
1864
1865 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1866 get_frame_base.
1867 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1868 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1869 (struct value): Add opaque declaration.
1870 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1871
d95a8903
AC
18722003-07-21 Andrew Cagney <cagney@redhat.com>
1873
1874 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1875 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1876
4db73d49
SC
18772003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1878
1879 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1880 regcache_cooked_read_unsigned instead of read_register.
1881 (m68hc11_saved_pc_after_call): Likewise.
1882 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1883 instead of write_register.
1884 (m68hc11_register_type): New function.
1885 (m68hc11_register_virtual_type): Remove.
1886 (m68hc11_store_return_value): Convert to use the regcache.
1887 (m68hc11_extract_struct_value_address): Likewise.
1888 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1889 m68hc11_register_type; undeprecate store_return_value and
1890 extract_struct_value_address.
1891
ef2b8fcd
SC
18922003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1893
1894 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1895 and translate to use regcache.
1896 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1897
625b0b97
AC
18982003-07-18 Andrew Cagney <cagney@redhat.com>
1899
1900 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1901 * gdbarch.h, gdbarch.c: Re-generate.
1902 * i386-tdep.c (i386_gdbarch_init): Do not set
1903 DWARF2_BUILD_FRAME_INFO.
1904 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1905 unconditionally.
1906 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1907 DWARF2_BUILD_FRAME_INFO.
1908
22b0d388
AC
19092003-07-18 Andrew Cagney <cagney@redhat.com>
1910
1911 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1912 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1913
1ce5d6dd
AC
19142003-07-18 Andrew Cagney <cagney@redhat.com>
1915
1916 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1917 frame_unwind_address_in_block, instead of frame_pc_unwind.
1918 (dwarf2_frame_cache): Ditto.
1919
e6e5e94c
AC
19202003-07-18 Andrew Cagney <cagney@redhat.com>
1921
1922 * user-regs.h (struct gdbarch): Declare opaque.
1923 * ui-out.h (struct ui_file): Declare opaque.
1924 * dwarf2-frame.h (struct frame_info): Declare opaque.
1925
5483d879
KW
19262003-07-18 Kris Warkentin <kewarken@qnx.com>
1927
1928 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1929 #include "...".
1930 (procfs_meminfo): Change strerror to safe_strerror.
1931 (procfs_can_run): Remove K&R badness.
1932
278a7cf7
MS
19332003-07-17 Michael Snyder <msnyder@redhat.com>
1934
1935 * remote-sim.c: Comment typo fix.
1936
606e3b82
AC
19372003-07-17 Andrew Cagney <cagney@redhat.com>
1938
1939 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1940 configure.
1941 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1942 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1943 GDB_MULTI_ARCH_PARTIAL.
1944
c43af07c
EZ
19452003-07-17 Elena Zannoni <ezannoni@redhat.com>
1946
1947 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1948 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1949 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1950
3b85b0f1
TR
19512003-07-16 Theodore A. Roth <troth@openavr.org>
1952
1953 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1954 found.
1955 (avr_frame_unwind_cache): Don't unwind FP for main.
1956 Update a comment.
1957 Save the computed prev_sp.
1958 (avr_saved_regs_unwinder): Remove function.
1959 (avr_frame_prev_register): Use PC unwind logic from
1960 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1961
336d1bba
AC
19622003-07-16 Andrew Cagney <cagney@redhat.com>
1963
1964 * frame-base.h (frame_base_p_ftype): Delete definition.
1965 (frame_base_append_predicate): Delete declaration.
1966 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1967 (frame_unwind_append_predicate): Delete declaration.
1968 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1969 (append_predicate): Delete parameter "p".
1970 (frame_unwind_append_predicate): Delete function.
1971 (frame_unwind_append_sniffer): Update call to append_predicate.
1972 (frame_unwind_free): Delete function.
1973 (_initialize_frame_unwind): Pass NULL as "free" to
1974 register_gdbarch_data.
1975 (frame_unwind_init): Append the dummy_frame_sniffer.
1976 (frame_unwind_find_by_frame): Simplify.
1977 * frame-base.c (struct frame_base_table): Delete field "p".
1978 (append_predicate): Delete parameter "p".
1979 (frame_base_append_predicate): Delete function.
1980 (frame_base_append_sniffer): Update call to append_predicate.
1981 (frame_base_free): Delete function.
1982 (frame_base_find_by_frame): Simplify.
1983 (_initialize_frame_base): Pass NULL as "free" to
1984 register_gdbarch_data.
1985 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1986 (x86_64_sigtramp_frame_sniffer): Replace
1987 "x86_64_sigtramp_frame_p".
1988 (x86_64_init_abi): Set the frame unwind sniffers.
1989 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1990 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1991 (m68k_gdbarch_init): Set the frame unwind sniffers.
1992 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1993 "i386_sigtramp_frame_p".
1994 (i386_frame_sniffer): Replace "i386_frame_p".
1995 (i386_gdbarch_init): Set the frame unwind sniffers.
1996 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1997 (avr_gdbarch_init): Set the frame unwind sniffers.
1998 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1999 "alpha_sigtramp_frame_p"
2000 (alpha_heuristic_frame_sniffer): Replace
2001 "alpha_heuristic_frame_p".
2002 (alpha_gdbarch_init): Set the frame unwind sniffers.
2003 (alpha_dwarf2_init_abi): Ditto.
2004 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2005 "alpha_debug_frame_p".
2006 (alpha_mdebug_frame_base_sniffer): Replace
2007 "alpha_mdebug_frame_base_p".
2008 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2009 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2010 (d10v_gdbarch_init): Set the frame unwind sniffer.
2011 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2012 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2013 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2014 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2015 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2016 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2017
48db5a3c
CV
20182003-07-16 Michael Snyder <msnyder@redhat.com>
2019
2020 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2021 should go thru sh_dsp_register_sim_regno, else the dsp regs
2022 will not get the right values.
2023
20242003-07-16 Corinna Vinschen <vinschen@redhat.com>
2025
2026 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2027 deprecated_store_floating by call to store_typed_floating.
2028 (sh_sh4_register_convert_to_raw): Substitute call to
2029 deprecated_extract_floating by call to extract_typed_floating.
2030
20312003-07-16 Corinna Vinschen <vinschen@redhat.com>
2032
2033 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2034
20352003-07-16 Corinna Vinschen <vinschen@redhat.com>
2036
2037 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2038 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2039 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2040 as possible.
2041 (do_pseudo_register): Remove.
2042 (sh_push_dummy_code): New function.
2043 (sh64_store_struct_return): Rename from sh_store_struct_return.
2044 Only called for sh64 now.
2045 (sh_extract_struct_value_address): Regcache'ify.
2046 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2047 and accomodate new tasks.
2048 (sh64_push_return_address): Rename from sh_push_return_address.
2049 Only called for sh64 now.
2050 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2051 Regcache'ify.
2052 (sh3e_sh4_extract_return_value): Regcache'ify.
2053 (sh_default_store_return_value): Ditto.
2054 (sh3e_sh4_store_return_value): Ditto.
2055 (sh_default_register_byte): Remove.
2056 (sh_sh4_register_byte): Remove.
2057 (sh_default_register_raw_size): Remove.
2058 (sh_sh4_register_raw_size): Remove.
2059 (sh_register_virtual_size): Remove.
2060 (sh_sh3e_register_virtual_type): Remove.
2061 (sh_sh3e_register_type): New function.
2062 (sh_sh4_register_virtual_type): Remove.
2063 (sh_sh4_register_type): New function.
2064 (sh_default_register_virtual_type): Remove.
2065 (sh_default_register_type): New function.
2066 (do_fv_register_info): Add parameters to accomodate call from
2067 sh_print_registers_info.
2068 (do_dr_register_info): Ditto.
2069 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2070 Add parameters to accomodate call from sh_print_registers_info.
2071 (sh_do_fp_register): Ditto.
2072 (sh64_do_pseudo_register): Call do_dr_register_info,
2073 do_fv_register_info and sh_do_fp_register with default parameters.
2074 (sh_do_register): Add parameters to accomodate call from
2075 sh_print_registers_info.
2076 (sh_print_register): Ditto.
2077 (sh_print_registers_info): Rename from sh_do_registers_info.
2078 Add parameters to be used as gdbarch_print_registers_info
2079 implementation. Accomodate removed do_pseudo_register function
2080 pointer.
2081 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2082 function pointer. Call sh_print_register with default parameters.
2083 (sh64_do_registers_info): Call sh_print_registers_info instead of
2084 sh_do_registers_info.
2085 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2086 detection of deprecated vs. non-deprecated functionality.
2087 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2088 function pointer assignments by direct function calls.
2089
e8a89fe2
AC
20902003-07-15 Andrew Cagney <cagney@redhat.com>
2091
2092 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2093 (frame_register_unwind, create_new_frame): Ditto.
2094 (legacy_get_prev_frame, get_frame_type): Ditto.
2095 (get_frame_base_address): Use frame_base_find_by_frame.
2096 (get_frame_locals_address): Use frame_base_find_by_frame.
2097 (get_frame_args_address): Use frame_base_find_by_frame.
2098 * frame-base.h (frame_base_sniffer_ftype): Declare.
2099 (frame_base_append_sniffer): Declare.
2100 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2101 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2102 (frame_base_append_sniffer): New function.
2103 (frame_base_append_predicate): Add a NULL sniffer.
2104 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2105 (struct frame_base_table): Add "sniffer".
2106 (frame_base_free): Free the "sniffer" table.
2107 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2108 (frame_unwind_append_sniffer): Declare.
2109 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2110 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2111 (struct frame_unwind_table): Add "sniffer", delete "middle".
2112 (append_predicate): Add "sniffer" parameter, append the sniffer.
2113 (frame_unwind_init): Update append_predicate call.
2114 (frame_unwind_append_sniffer): New function.
2115 (frame_unwind_append_predicate): Update append_predicate call.
2116 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2117
0714963c
AC
21182003-07-15 Andrew Cagney <cagney@redhat.com>
2119
2120 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2121 before code inhibiting repeated unwind attempts. Add to
2122 commentary on that test's problems.
2123 * blockframe.c (inside_main_func): Look for "main" in the minimal
2124 symbol table.
2125 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2126 identical.
2127
d9170e22
AC
21282003-07-15 Andrew Cagney <cagney@redhat.com>
2129
2130 * complaints.c (struct explanation): Define.
2131 (struct complaints): Change type of "explanation" to "struct
2132 explanation".
2133 (symfile_explanations): Convert to a "struct explanation" table.
2134 (vcomplaint): Update.
2135
eba29c8c
ML
21362003-07-15 Michal Ludvig <mludvig@suse.cz>
2137
2138 * x86-64-linux-nat.c (regmap): Removed.
2139 (supply_gregset, fill_gregset): Call
2140 x86_64_linux_(fill,supply)_gregset functions.
2141 * x86-64-linux-tdep.c (USER_*): New defines.
2142 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2143 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2144 New functions.
2145 (fetch_core_registers): Ditto.
2146 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2147 * x86-64-linux-tdep.h: New file.
2148 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2149 and core-regset.o.
2150 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2151
68cc0bfb
MK
21522003-07-13 Mark Kettenis <kettenis@gnu.org>
2153
88a115f7
MK
2154 * x86-64-tdep.c (x86_64_store_return_value): Use
2155 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2156
68cc0bfb
MK
2157 * configure.host: Add x86_64-*-freebsd*.
2158 * configure.tgt: Add x86_64-*-freebsd*.
2159 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2160 * amd64fbsd-nat.c: New file.
2161 * amd64fbsd-tdep.c: New file.
2162 * config/i386/nm-fbsd64.h: New file.
2163 * config/i386/fbsd64.mh: New file.
2164 * config/i386/fbsd64.mt: New file.
2165
138e7be5
MK
21662003-07-11 Mark Kettenis <kettenis@gnu.org>
2167
2168 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2169 `sc_regs_offset' and `sc_fpregs_offset'.
2170 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2171 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2172 (alpha_sigtramp_register_address): Rewrite to use new members of
2173 `struct gdbarch_tdep'.
2174 (alpha_gdbarch_init): Initialize new members of struct
2175 gdbarch_tdep'.
2176 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2177 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2178 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2179 (alphafbsd_pc_in_sigtramp): Implement.
2180 (alphafbsd_sigtramp_offset): New function.
2181 (alphafbsd_sigcontext_addr): New function.
2182 (alphafbsd_init_abi): Initialize signal trampoline related members
2183 of `struct gdbarch_tdep'.
2184 (_initialize_alphafbsd_tdep): Add prototype.
2185
95303a68
TR
21862003-07-11 Theodore A. Roth <troth@openavr.org>
2187
ba292e4c
TR
2188 * Makefile.in (install-only): Quote sed expression when generating
2189 transformed_name.
95303a68 2190
6896c0c7
RH
21912003-07-11 Richard Henderson <rth@redhat.com>
2192
2193 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2194 * dwarf2-frame.c: Include complaints.h.
2195 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2196 variable initialization; return NULL on error.
2197 (decode_frame_entry): New.
2198
8edd5d01
AC
21992003-07-11 Andrew Cagney <cagney@redhat.com>
2200
c4a09524
AC
2201 * frame.h (frame_address_in_block): Delete declaration.
2202 * blockframe.c (frame_address_in_block): Delete function.
2203 (get_frame_block): Use get_frame_address_in_block.
2204 (block_innermost_frame): Ditto.
2205 * stack.c (print_frame, backtrace_command_1): Ditto.
2206
8edd5d01
AC
2207 * frame.h (get_frame_address_in_block): Declare.
2208 (frame_unwind_address_in_block): Declare.
2209 * frame.c (frame_unwind_address_in_block): New function.
2210 (get_frame_address_in_block): New function.
2211
f7968451
AC
22122003-07-10 Andrew Cagney <cagney@redhat.com>
2213
2214 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2215 pre-default. Note: re-generate has no effect.
2216
ae99b398
AC
22172003-07-10 Andrew Cagney <cagney@redhat.com>
2218
2219 * gdbarch.sh: When a variable, but not a function, compare against
2220 0. Fix problem in previous patch.
2221 * gdbarch.c: Re-generate.
2222
956ac328
AC
22232003-07-10 Andrew Cagney <cagney@redhat.com>
2224
2225 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2226 functions against NULL, not 0.
2227 * gdbarch.c: Re-generate.
2228
287c3240
FF
22292003-07-10 Fred Fish <fnf@ninemoons.com>
2230
2231 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2232 null string instead of a null pointer.
2233 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2234
32f63c4b
MS
22352003-07-09 Michael Snyder <msnyder@redhat.com>
2236
2237 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2238
402ecd56
MK
22392003-07-09 Mark Kettenis <kettenis@gnu.org>
2240
2241 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2242 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2243 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2244 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2245 * x86-64-tdep.c: ... from here.
2246
c481dac7
AS
22472003-07-09 Andreas Schwab <schwab@suse.de>
2248
2249 * m68k-tdep.h (enum struct_return): Define.
2250 (struct gdbarch_tdep): Add struct_return.
2251 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2252 bytes are padded to the right, not to the left. Pass struct value
2253 address in register %a1, not on stack.
2254 (m68k_use_struct_convention): New function.
2255 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2256 struct_return in tdep to pcc_struct_return.
2257 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2258 reg_struct_return.
2259
64176fa3
JB
22602003-07-09 Joel Brobecker <brobecker@gnat.com>
2261
2262 * somread.c (som_symfile_offsets): Fix compilation error.
2263
96a4ee76
AC
22642003-07-09 Andrew Cagney <cagney@redhat.com>
2265
2266 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2267 Add comments about the checks.
2268
1517c6d1
AC
22692003-07-08 Andrew Cagney <cagney@redhat.com>
2270
2271 * Makefile.in: Make dependency section headers consistent.
2272 (config_h): Move to $BUILD headers section.
2273 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2274 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2275 (ada-exp.tab.c): Move to YACC/LEX section.
2276 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2277 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2278
dc5dd1eb
KW
22792003-07-08 Kris Warkentin <kewarken@qnx.com>
2280
2281 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2282 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2283 of strerror with safe_strerror, use ISO C function definitions,
2284 and replace instances of sprintf with snprintf.
dc5dd1eb 2285
612dde91
AC
22862003-07-07 Andrew Cagney <cagney@redhat.com>
2287
2288 * frame.c (get_prev_frame): Enable check for identical frames.
2289 Update comments. Update error messages.
2290
492c11d3
JB
22912003-07-07 Joel Brobecker <brobecker@gnat.com>
2292
2293 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2294
376a5a49
JB
22952003-07-07 Joel Brobecker <brobecker@gnat.com>
2296
2297 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2298 sort_symtab_syms, no longer necessary.
2299
22b4a9ad
JB
23002003-07-07 Joel Brobecker <brobecker@gnat.com>
2301
2302 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2303
5bbcb741
JB
23042003-07-07 Joel Brobecker <brobecker@gnat.com>
2305
2306 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2307 (mips_register_byte): Likewise.
2308
c139e7d9
DJ
23092003-07-07 Daniel Jacobowitz <drow@mvista.com>
2310
2311 * Makefile.in (sparc_tdep_h): New.
2312 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2313 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2314 * sparc-linux-nat.c: Include "sparc-tdep.h".
2315 * sparc-nat.c: Likewise.
2316 * sparc-tdep.c: Likewise.
2317 * sparc64nbsd-nat.c: Likewise.
2318 * sparcnbsd-nat.c: Likewise.
2319 * sparcnbsd-tdep.c: Likewise.
2320 * sparc-tdep.h: New file.
2321 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2322 and sparc_npc_regnum.
2323
fd8f87c5
DJ
23242003-07-07 Daniel Jacobowitz <drow@mvista.com>
2325
2326 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2327 (mips_linux_cannot_store_register): List supported instead of
2328 unsupported registers.
2329
13adf674
DJ
23302003-07-07 Daniel Jacobowitz <drow@mvista.com>
2331
2332 * disasm.c (dump_insns): Separate instructions from addresses.
2333
8de307e0
AS
23342003-07-07 Andreas Schwab <schwab@suse.de>
2335
2336 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2337 dependencies.
2338 * m68k-tdep.c (NUM_FREGS): Delete.
2339 (SIG_PC_FP_OFFSET): Delete.
2340 (TARGET_M68K): Delete.
2341 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2342 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2343 P_MOVEL_SP, P_MOVEML_SP): Define.
2344 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2345 P_TRAP): Delete.
2346 (m68k_register_raw_size): Delete.
2347 (m68k_register_virtual_size): Delete.
2348 (m68k_register_type): Renamed from m68k_register_virtual_type and
2349 add gdbarch argument.
2350 (m68k_store_struct_return): Delete.
2351 (m68k_deprecated_extract_return_value): Delete.
2352 (m68k_deprecated_extract_struct_value_address): Delete.
2353 (m68k_frame_chain): Delete.
2354 (m68k_frame_saved_pc): Delete.
2355 (m68k_fix_call_dummy): Delete.
2356 (m68k_push_dummy_frame): Delete.
2357 (m68k_pop_frame): Delete.
2358 (m68k_extract_return_value): New function.
2359 (m68k_store_return_value): Rewrite using regcache.
2360 (m68k_extract_struct_value_address): Rewrite using regcache.
2361 (m68k_push_dummy_call): New function.
2362 (struct m68k_frame_cache): Define.
2363 (m68k_alloc_frame_cache): New function.
2364 (m68k_analyze_frame_setup): New function.
2365 (m68k_analyze_register_saves): New function.
2366 (m68k_analyze_prologue): New function.
2367 (m68k_skip_prologue): Rewrite using above functions.
2368 (m68k_unwind_pc): New function.
2369 (m68k_frame_cache): New function.
2370 (m68k_frame_this_id): New function.
2371 (m68k_frame_prev_register): New function.
2372 (m68k_frame_unwind): New variable.
2373 (m68k_frame_p): New function.
2374 (m68k_sigtramp_frame_cache): New function.
2375 (m68k_sigtramp_frame_this_id): New function.
2376 (m68k_sigtramp_frame_prev_register): New function.
2377 (m68k_sigtramp_frame_unwind): New variable.
2378 (m68k_sigtramp_frame_p): New function.
2379 (m68k_frame_base_address): New function.
2380 (m68k_frame_base): New function.
2381 (m68k_unwind_dummy_id): New function.
2382 (fill_gregset): Use regcache_collect.
2383 (fill_fpregset): Likewise.
2384 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2385 defined.
2386 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2387 deprecated_init_frame_pc, deprecated_store_struct_return,
2388 deprecated_extract_return_value, deprecated_store_return_value,
2389 deprecated_frame_chain, deprecated_frame_saved_pc,
2390 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2391 deprecated_register_virtual_size,
2392 deprecated_max_register_raw_size,
2393 deprecated_max_register_virtual_size,
2394 deprecated_register_virtual_type, deprecated_register_size,
2395 deprecated_register_byte, deprecated_register_bytes,
2396 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2397 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2398 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2399 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2400 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2401 deprecated_push_dummy_frame, deprecated_pop_frame,
2402 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2403 only if SYSCALL_TRAP is defined. Set extract_return_value,
2404 store_return_value, extract_struct_value_address, register_type,
2405 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2406 predicates.
2407 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2408 M68K_MAX_REGISTER_SIZE): Define.
2409 (struct m68k_sigtramp_info): Define.
2410 (struct gdbarch_tdep): Add get_sigtramp_info.
2411 * m68klinux-nat.c (fetch_register): Use register_size instead of
2412 REGISTER_RAW_SIZE. Don't put assignment in if.
2413 (store_register): Likewise.
2414 (fetch_inferior_registers): Likewise.
2415 (store_inferior_registers): Likewise.
2416 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2417 (m68k_linux_frame_saved_pc): Delete.
2418 (m68k_linux_sigcontext_reg_offset,
2419 m68k_linux_ucontext_reg_offset): Define.
2420 (m68k_linux_get_sigtramp_info): New function.
2421 (m68k_linux_extract_return_value): Rewrite using regcache.
2422 (m68k_linux_store_return_value): Likewise.
2423 (m68k_linux_extract_struct_value_address): Likewise.
2424 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2425 Don't set deprecated_frame_saved_pc,
2426 deprecated_extract_return_value, deprecated_store_return_value,
2427 deprecated_extract_struct_value_address. Set
2428 extract_return_value, store_return_value,
2429 extract_struct_value_address.
2430
eb8bc282
AC
24312003-07-07 Andrew Cagney <cagney@redhat.com>
2432
2433 * expprint.c: Include "user-regs.h" instead of "frame.h".
2434 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2435 frame_map_regnum_to_name.
2436 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2437 (frame_map_name_to_regnum): Simplify, call
2438 user_reg_map_name_to_regnum.
2439 (frame_map_regnum_to_name): Simplify, call
2440 user_reg_map_regnum_to_name.
2441 (frame_register_unwind): Update.
2442 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2443 (_initialize_frame_reg): Call user_reg_add_builtin.
2444 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2445 (value_of_register): Use value_of_user_reg.
2446 * eval.c (evaluate_subexp_standard): Update.
2447 * parse.c (write_dollar_variable): Update.
2448 * d10v-tdep.c (d10v_print_registers_info): Update.
2449 * infcmd.c (registers_info): Update.
2450 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2451 (builtin_regs_h): Delete macro.
2452 (user_regs_h): Define.
2453 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2454 (builtin-regs.o): Delete target.
2455 (user-regs.o): Specify dependencies.
2456 (expprint.o): Update dependencies.
2457 (findvar.o): Update dependencies.
2458 (frame.o): Update dependencies.
2459 (std-regs.o): Update dependencies.
2460
9f476a01
CF
24612003-07-06 Christopher Faylor <cgf@redhat.com>
2462
2463 * win32-nat.c (solib_symbols_add): Use one variable for all section
2464 address stuff. Pass variable rather than address of variable to
2465 safe_symbol_file_add.
2466
a731b831
AS
24672003-07-06 Andreas Schwab <schwab@suse.de>
2468
2469 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2470
9f83329d
JB
24712003-07-04 Joel Brobecker <brobecker@gnat.com>
2472
2473 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2474
27e28cc5
KW
24752003-07-04 Kris Warkentin <kewarken@qnx.com>
2476
2477 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2478
24792003-07-04 Kris Warkentin <kewarken@qnx.com>
2480
2481 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2482 * config/i386/nto.mh: New file.
2483 * config/i386/nm-nto.h: New file.
2484 * configure.host: Add i[3456]86-*-nto*.
2485
100f2e98
JB
24862003-07-03 Joel Brobecker <brobecker@gnat.com>
2487
2488 * remote-vx.c (vx_add_symbols): Fix compilation error.
2489
e23457df
AC
24902003-07-03 Andrew Cagney <cagney@redhat.com>
2491
2492 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2493 * gdbarch.h, gdbarch.c: Re-generate.
2494 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2495 (legacy_register_name): Declare.
2496 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2497 (REGISTER_NAME): Define.
2498 * sparc-tdep.c (legacy_register_name): New function.
2499 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2500 (REGISTER_NAME): Define.
2501 (hppa64_register_name): Declare.
2502 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2503 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2504 (hppa64_register_name): New function.
2505 (hppa_register_name): New function.
2506 * arch-utils.c (legacy_register_name): Delete.
2507 * arch-utils.h (legacy_register_name): Delete.
2508
38caaeec
DJ
25092003-07-03 Daniel Jacobowitz <drow@mvista.com>
2510
2511 * cli/cli-interp.c (cli_interpreter_resume): Update the
2512 cli_uiout's stream to gdb_stdout.
2513
dadd712e
AC
25142003-07-03 Andrew Cagney <cagney@redhat.com>
2515
2516 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2517 predicate.
2518 * gdbarch.h, gdbarch.c: Re-generate.
2519 * regcache.c (init_regcache_descr): Use legacy code when either
2520 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2521
c7f1390e
DJ
25222003-07-02 Daniel Jacobowitz <drow@mvista.com>
2523
2524 * NEWS: Move "set logging" entry into GDB 6.0 section.
2525
4bc8c588
JB
25262003-07-02 Jim Blandy <jimb@redhat.com>
2527
a9dd42f1
JB
2528 * s390-tdep.c (struct frame_extra_info): new member:
2529 'stack_bought_valid'.
2530 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2531 initialize fextra_info->stack_bought.
2532 (s390_frameless_function_invocation): Don't trust the value of
2533 fextra_info_ptr->stack_bought unless
2534 fextra_info->stack_bought_valid is set.
2535
4bc8c588
JB
2536 New S390 prologue analyzer.
2537 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2538 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2539 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2540 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2541 compute_x_addr, s390_on_stack, s390_store,
2542 s390_get_signal_frame_info): New functions.
2543 (S390_NUM_SPILL_SLOTS): New macro.
2544 (s390_get_frame_info): Rewritten.
2545 (is_arg_reg): Deleted.
2546
2547 Break out the decoding of S/390 instructions into separate
2548 functions, to make it more legible, and easier to check
2549 against the spec.
2550 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2551 is_rx, is_rxe): New functions.
2552 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2553 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2554 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2555 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2556 enums for opcode values. (Is this an improvement?)
2557
fd13a04a
AC
25582003-07-02 Andrew Cagney <cagney@redhat.com>
2559
2560 * i386-tdep.c: Revert change committed as part of trad-frame code
2561 below.
2562
3f8091c1
DJ
25632003-07-02 Daniel Jacobowitz <drow@mvista.com>
2564
2565 * breakpoint.c (insert_catchpoint): Make static.
2566
8dd5115e
AS
25672003-07-02 Andreas Schwab <schwab@suse.de>
2568
2569 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2570 former ia64_push_arguments and ia64_push_return_address, and use
2571 regcache functions instead of read/write_register.
2572 (ia64_gdbarch_init): Set push_dummy_call instead of
2573 deprecated_push_arguments and deprecated_push_return_address.
2574
a2229c23
AJ
25752003-07-01 Andreas Jaeger <aj@suse.de>
2576
2577 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2578 before the call.
2579 Set %rax only to number of SSE registers used.
2580
3b3850e8
AC
25812003-07-01 Andrew Cagney <cagney@redhat.com>
2582
2583 * trad-frame.h: Update comments, a -1 .addr is reserved.
2584 (trad_frame_value_p, trad_frame_addr_p): Declare.
2585 (trad_frame_reg_p): Declare.
2586 (trad_frame_set_value): Rename trad_frame_register_value.
2587 (trad_frame_set_unknown): Declare.
2588 * trad-frame.c (trad_frame_realreg_p): New function.
2589 (trad_frame_addr_p, trad_frame_value_p): New function.
2590 (trad_frame_set_unknown): New function.
2591 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2592 (trad_frame_prev_register): Use trad_frame_realreg_p,
2593 trad_frame_addr_p and trad_frame_value_p.
2594 (trad_frame_set_value): Rename trad_frame_register_value.
2595 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2596 and trad_frame_set_value.
a2229c23 2597
4d819d0e
JB
25982003-06-30 Jim Blandy <jimb@redhat.com>
2599
2600 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2601 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2602 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2603 for 16 registers, and then 32 more bytes.
2604 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2605 New macros.
2606 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2607 Move up in the file, since it's now used by is_simple_arg.
2608 (is_simple_arg): Don't assume registers are four bytes long.
2609 Exclude all double arguments. Extended floats are not simple
2610 args.
2611 (is_power_of_two): New function.
2612 (pass_by_copy_ref): Call is_power_of_two, and check that the
2613 length fits in a register, rather than listing all the acceptable
2614 sizes. Extended floats are not passed by reference.
2615 (s390_push_arguments): Don't assume registers are four bytes long.
2616 Reserve an argument register to point to the buffer for structures
2617 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2618 S390_STACK_FRAME_OVERHEAD.
2619
1ad828f1
AS
26202003-06-30 Andreas Schwab <schwab@suse.de>
2621
2622 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2623 format error message.
2624
39b00981
JB
26252003-06-30 Joel Brobecker <brobecker@gnat.com>
2626
2627 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2628
b2a7f303
DC
26292003-06-30 David Carlton <carlton@kealia.com>
2630
2631 Band-aid for PR c++/1245.
2632 * Makefile.in (cp-support.o): Depend on complaints_h.
2633 * cp-support.c: Include complaints.h. Add declaration for
2634 find_last_component.
2635 (cp_find_first_component): Separate code into
2636 cp_find_first_component_aux.
2637 (cp_find_first_component_aux): Call demangled_name_complaint.
2638 (demangled_name_complaint): New.
2639
a257b5bb
AC
26402003-06-30 Andrew Cagney <cagney@redhat.com>
2641
2642 * remote.c (remote_write_bytes): Explicitly compute and then use
2643 the payload size. Update comments to reflect. Fixes problem of
2644 GDB not sending small packets as found by Fred Fish.
2645
0a2cfde4
AC
26462003-06-30 Andrew Cagney <cagney@redhat.com>
2647
2648 * remote.c (remote_async_wait): Fix -Wformat problem.
2649
3fcb8548
AC
26502003-06-29 Andrew Cagney <cagney@redhat.com>
2651
2652 * remote.c (remote_wait): Call error, and not warning, when the
2653 packet is corrupt.
2654 (remote_async_wait): Ditto.
2655
9f9970a3
DJ
26562003-06-29 Daniel Jacobowitz <drow@mvista.com>
2657
2658 * sparc-tdep.c (sparc_y_regnum): Make external again.
2659
83a8ccca
DJ
26602003-06-29 Daniel Jacobowitz <drow@mvista.com>
2661
2662 * cli/cli-logging.c (pop_output_files): Add void to function
2663 definition.
2664
d2cf594a
AC
26652003-06-29 Andrew Cagney <cagney@redhat.com>
2666
2667 * frame.c (frame_register_unwind): Use unsigned char when dumping
2668 the buffer contents.
2669
0fac0b41
DJ
26702003-06-28 Daniel Jacobowitz <drow@mvista.com>
2671
2672 * cli/cli-logging.c: New file.
2673 * cli-out.c (struct ui_out_data): Add original_stream.
2674 (cli_redirect): New function.
2675 (cli_ui_out_impl): Add cli_redirect.
2676 (cli_out_new): Initialize original_stream.
2677 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2678 (uo_redirect, ui_out_redirect): New.
2679 * ui-out.h (struct ui_out_impl): Add redirect member.
2680 (redirect_ftype): New.
2681 (ui_out_redirect): Add prototype.
2682 * Makefile.in: Add rules for cli-logging.c.
2683 * NEWS: Mention "set logging".
2684
88a07d7c
EZ
26852003-06-27 Elena Zannoni <ezannoni@redhat.com>
2686
2687 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2688
4eb58876
AC
26892003-06-27 Andrew Cagney <cagney@redhat.com>
2690
2691 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2692 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2693 * avr-tdep.c (avr_call_dummy_address): Delete function.
2694 (avr_gdbarch_init): Do not set call_dummy_address.
2695
1549f619
EZ
26962003-06-27 Elena Zannoni <ezannoni@redhat.com>
2697
2698 * symfile.c (syms_from_objfile): Move variables to inner block.
2699 Move the checks for the non-mainline case a bit earlier to avoid
2700 doing some useless computations.
2701
3cb3398d
EZ
27022003-06-27 Elena Zannoni <ezannoni@redhat.com>
2703
2704 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2705
3799ccc6
EZ
27062003-06-26 Elena Zannoni <ezannoni@redhat.com>
2707
2708 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2709 sections.
2710
ce1f6491
MC
27112003-06-26 Michael Chastain <mec@shout.net>
2712
2713 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2714 gdb/testsuite/gdb.c++/pr-1210.exp.
2715
d958dfd0
AC
27162003-06-26 Andrew Cagney <cagney@redhat.com>
2717
2718 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2719 altivec_expression.h and altivec_registers.h.
2720
d31431ed
AC
27212003-06-26 Andrew Cagney <cagney@redhat.com>
2722
2723 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2724 info->mach when MIPS16. Patch suggested by Fred Fish.
2725
714b1282
AC
27262003-06-26 Andrew Cagney <cagney@redhat.com>
2727
2728 * utils.c (internal_vproblem): Print the problem to a reason
2729 buffer and then pass to query. Make the msg variable more local.
2730
42efa47a
AC
27312003-06-26 Andrew Cagney <cagney@redhat.com>
2732
2733 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2734 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2735 * gdbarch.h, gdbarch.c: Re-generate.
2736 * frame-base.c (default_frame_args_address): Update. Use
2737 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2738 not available.
2739 (default_frame_locals_address): Ditto for
2740 DEPRECATED_FRAME_LOCALS_ADDRESS.
2741 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2742 (vax_frame_num_args): Update.
2743 (vax_gdbarch_init): Update.
2744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2745 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2746 * mcore-tdep.c (mcore_gdbarch_init): Update.
2747 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2748 * ia64-tdep.c (ia64_gdbarch_init): Update.
2749 * symtab.h (address_class): Update comments.
2750 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2751 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2752 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2753 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2754 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2755 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2756 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2757 * alpha-mdebug-tdep.c: Update.
2758 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2759
8ffd9b1b
AJ
27602003-06-26 Andreas Jaeger <aj@suse.de>
2761
2762 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2763 of SSE registers so that varargs functions work. Rework handling
2764 of passing arguments on the stack.
2765 (x86_64_store_return_value): Return double and float values in SSE
2766 register.
2767
e8ac10a6
MC
27682003-06-24 Michael Chastain <mec@shout.net>
2769
2770 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2771 the "constructor breakpoints ignored" bug.
2772
986af8e6
DC
27732003-06-25 David Carlton <carlton@kealia.com>
2774
2775 * MAINTAINERS: Update e-mail address.
2776
d64558a5
JB
27772003-06-24 Jim Blandy <jimb@redhat.com>
2778
e538d2d7
JB
2779 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2780
02631ec0
JB
2781 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2782 function.
2783 (ppc_linux_init_abi): Register it as the
2784 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2785
e716d87a
JB
2786 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2787 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2788 method.
2789
d64558a5
JB
2790 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2791 (ppc64_standard_linkage_target): Use it.
2792
449a5da4
AC
27932003-06-23 Andrew Cagney <cagney@redhat.com>
2794
2795 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2796 for 0 "int0" and 4 "int32" sized registers.
2797 * gdbtypes.c (builtin_type_int0): Define.
2798 (build_gdbtypes): Initialize builtin_type_int0.
2799 * gdbtypes.h (builtin_type_int0): Declare.
2800
b2a02dda
SC
28012003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2802
2803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2804 as characters are unsigned.
2805
fba3138e
DJ
28062003-06-22 Daniel Jacobowitz <drow@mvista.com>
2807
2808 PR gdb/1179
2809 * dwarfread.c (struct_type): Skip static fields without crashing.
2810
f6c8180b
AC
28112003-06-22 Andrew Cagney <cagney@redhat.com>
2812
2813 GDB 6.0 branch created.
f2c06f52
AC
2814 * README: Update.
2815 * PROBLEMS: Update. Empty.
2816 * NEWS: Update.
f6c8180b 2817
ae822768
DJ
28182003-06-22 Daniel Jacobowitz <drow@mvista.com>
2819
2820 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2821 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2822
261de166
AC
28232003-06-22 Andrew Cagney <cagney@redhat.com>
2824
2825 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2826 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2827 Velikov.
2828
30e94205
DJ
28292003-06-22 Daniel Jacobowitz <drow@mvista.com>
2830
2831 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2832 compilers.
2833
9e14d721
DJ
28342003-06-21 Daniel Jacobowitz <drow@mvista.com>
2835
2836 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2837 argument of val_print.
2838 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2839 to the address argument of baseclass_offset or target_read_memory.
2840 Do add it to the argument of cp_print_value_fields.
2841
a4b8ebc8
AC
28422003-06-21 Andrew Cagney <cagney@redhat.com>
2843
2844 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2845 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2846 instead of 0..NUM_REGS.
2847 (mips_register_reggroup_p): New function.
2848 (mips_pseudo_register_write): New function.
2849 (mips_pseudo_register_read): New function.
2850 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2851 based on the register's type.
2852 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2853 cooked.
2854 (mips_get_saved_register): Simplify. Assert that REGNO is a
2855 pseudo / cooked.
2856 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2857 (mips_register_type): Replace mips_register_virtual_type. Map
2858 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2859 when available.
2860 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2861 that the register is cooked / virtual.
2862 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2863 Only get the extra info when needed.
2864 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2865 (mips32_heuristic_proc_desc): Fetch the cooked register.
2866 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2867 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2868 (mips_print_register): Use gdbarch_register_type, instead of
2869 REGISTER_VIRTUAL_TYPE.
2870 (print_gp_register_row): Use gdbarch_register_type, instead of
2871 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2872 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2873 Print the pseudo / cooked registers.
2874 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2875 Print the pseudo / cooked registers.
2876 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2877 REG_NUM is pseudo / cooked.
2878 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2879 (mips_n32n64_xfer_return_value): Ditto.
2880 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2881 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2882 (mips_register_sim_regno): New function.
2883 (mips_gdbarch_init): Set deprecated_register_byte,
2884 register_group_p, pseudo_register_write, pseudo_register_read,
2885 register_sim_regno, and num_pseudo_regs. Set register_type,
2886 instead of register_virtual_type.
2887 * Makefile.in (mips-tdep.o): Update dependencies.
2888 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2889 REGISTER_VIRTUAL_TYPE.
2890 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2891 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2892 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2893 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2894 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2895
325ed089
DJ
28962003-06-21 Daniel Jacobowitz <drow@mvista.com>
2897
2898 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2899 * cli/cli-cmds.c: Include "gdb_vfork.h".
2900 (shell_escape): Use vfork.
2901
f0e7d0e8
AC
29022003-06-21 Andrew Cagney <cagney@redhat.com>
2903
c57bb9fa
AC
2904 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2905 32 bit floating-point register saves.
2906
6e51443a
AC
2907 * frame.h (deprecated_unwind_get_saved_register): Delete.
2908 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2909 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2910 and deprecated_get_next_frame_hack instead of
2911 deprecated_unwind_get_saved_register.
2912
ed183c7c
AC
2913 * mips-tdep.c (mips_dump_tdep): Do not print
2914 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2915
f0e7d0e8
AC
2916 * frame.c (get_frame_register): New function.
2917 (frame_unwind_register_signed): New function.
2918 (get_frame_register_signed): New function.
2919 (frame_unwind_register_unsigned): New function.
2920 (get_frame_register_unsigned): New function.
2921 * frame.h: Add comments on naming schema.
2922 (get_frame_register, frame_unwind_register_signed): Declare.
2923 (get_frame_register_signed, get_frame_register_signed): Declare.
2924 (frame_unwind_register_unsigned): Declare.
2925 (get_frame_register_unsigned): Declare.
2926
2224d941
TR
29272003-06-20 Theodore A. Roth <troth@openavr.org>
2928
2929 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2930
8619218d
TR
29312003-06-20 Theodore A. Roth <troth@openavr.org>
2932
2933 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2934 (avr_read_sp): Ditto.
2935
0b1b50c0
DJ
29362003-06-20 Daniel Jacobowitz <drow@mvista.com>
2937
2938 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2939 * config/arm/nm-linux.h: Likewise.
2940 * config/arm/tm-linux.h: Likewise.
2941 * config/ia64/nm-linux.h: Likewise.
2942 * config/ia64/tm-ia64.h: Likewise.
2943 * config/s390/tm-linux.h: Likewise.
2944 * config/s390/tm-s390.h: Likewise.
2945 * s390-nat.c: Likewise.
2946 * s390-tdep.c: Likewise.
2947
2948 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2949 * config/ia64/linux.mt: Likewise.
2950 * config/m68k/linux.mh: Likewise.
2951 * config/mips/linux.mt: Likewise.
2952 * config/powerpc/linux.mh: Likewise.
2953 * config/sh/linux.mt: Likewise.
2954
c8c18e65
KW
29552003-06-19 Kris Warkentin <kewarken@qnx.com>
2956
2957 * solib.c (solib_open): Change tests for whether to search
2958 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2959 comments.
2960
dcccef2e
TR
29612003-06-19 Theodore A. Roth <troth@openavr.org>
2962
2963 * avr-tdep.c (avr_frame_address): Delete function.
2964 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2965 set_gdbarch_frame_args_address.
2966
5861a190
AC
29672003-06-19 Andrew Cagney <cagney@redhat.com>
2968
2969 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2970 (REGISTER_CONVERT_FROM_TYPE): Delete.
2971 (mips_register_convert_to_type): Delete declaration.
2972 (mips_register_convert_from_type): Delete declaration.
2973 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2974 kernel/.
2975
0274a8ce
MS
29762003-06-19 Michael Snyder <msnyder@redhat.com>
2977
2978 * linux-nat.h: New file.
2979 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2980 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2981 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2982 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2983 (linux_make_note_section): Iterate over lwps instead of threads.
2984 (linux_do_thread_registers): Use lwp instead of merged pid.
2985 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2986 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2987 Add dependency on linux_nat_h.
2988
adf5f719
TR
29892003-06-19 Theodore A. Roth <troth@openavr.org>
2990
2991 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2992
6766a268
DJ
29932003-06-19 Daniel Jacobowitz <drow@mvista.com>
2994
2995 * varobj.c (get_type, get_target_type): Use check_typedef.
2996
1171114a
DJ
29972003-06-19 Daniel Jacobowitz <drow@mvista.com>
2998
2999 * breakpoint.c (insert_catchpoint): Call internal_error.
3000
adcf68a2
TR
30012003-06-19 Theodore A. Roth <troth@openavr.org>
3002
3003 * avr-tdep.c (avr_push_dummy_code): Delete function.
3004 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3005
ea67f13b
DJ
30062003-06-19 Daniel Jacobowitz <drow@mvista.com>
3007
3008 * arch-utils.c (default_prepare_to_proceed): Remove.
3009 (generic_prepare_to_proceed): Remove.
3010 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3011 (generic_prepare_to_proceed): Remove prototype.
3012 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3013 * gdbarch.c: Regenerate.
3014 * gdbarch.h: Regenerate.
3015 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3016 * hppah-nat.c (hppa_switched_threads): Remove.
3017 * infrun.c (prepare_to_proceed): New static function, copied from
3018 generic_prepare_to_proceed. Remove select_it argument.
3019 (proceed): Call prepare_to_proceed.
3020 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3021 variables.
3022 (ptrace_wait): Don't set the removed variables.
3023 (hppa_switched_threads): Remove.
3024 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3025 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3026 (lin_lwp_prepare_to_proceed): Remove prototype.
3027 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3028 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3029
4add8633
TR
30302003-06-18 Theodore A. Roth <troth@openavr.org>
3031
3032 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3033 trad-frame.h.
3034 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3035 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3036 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3037 (AVR_PROLOGUE_*): Enumerate prologue types.
3038 (struct frame_extra_info): Remove.
3039 (struct avr_unwind_cache): Define.
3040 (avr_write_sp): Delete function.
3041 (avr_read_fp): Ditto.
3042 (avr_init_extra_frame_info): Ditto.
3043 (avr_pop_frame): Ditto.
3044 (avr_frame_saved_pc): Ditto.
3045 (avr_saved_pc_after_call): Ditto.
3046 (avr_push_return_address): Ditto.
3047 (avr_frame_chain): Ditto.
3048 (avr_store_struct_return): Ditto.
3049 (avr_push_arguments): Ditto.
3050 (avr_scan_prologue): Update comments. Changed to set up the info for
3051 cache unwinding. Now returns end of prologue PC.
3052 (avr_skip_prologue): Better handling of functions lacking a prologue
3053 by using avr_scan_prologue.
3054 (avr_scan_arg_moves): New function.
3055 (avr_saved_regs_unwinder): Ditto.
3056 (avr_frame_unwind_cache): Ditto.
3057 (avr_unwind_pc): Ditto.
3058 (avr_frame_this_id): Ditto.
3059 (avr_frame_prev_register): Ditto.
3060 (avr_frame_p): Ditto.
3061 (avr_frame_base_address ): Ditto.
3062 (avr_unwind_dummy_id): Ditto.
3063 (avr_push_dummy_code): Ditto.
3064 (push_stack_item): Ditto.
3065 (pop_stack_item): Ditto.
3066 (avr_push_dummy_call): Ditto.
3067 (struct stack_item): Define.
3068 (avr_frame_unwind): Declare structure.
3069 (avr_frame_base): Ditto.
3070 (avr_gdbarch_init): Remove calls to
3071 set_gdbarch_deprecated_init_frame_pc,
3072 set_gdbarch_deprecated_target_read_fp,
3073 set_gdbarch_deprecated_dummy_write_sp,
3074 set_gdbarch_deprecated_fp_regnum,
3075 set_gdbarch_deprecated_push_arguments,
3076 set_gdbarch_deprecated_push_return_address,
3077 set_gdbarch_deprecated_pop_frame,
3078 set_gdbarch_deprecated_store_struct_return,
3079 set_gdbarch_deprecated_frame_init_saved_regs,
3080 set_gdbarch_deprecated_init_extra_frame_info,
3081 set_gdbarch_deprecated_frame_chain,
3082 set_gdbarch_deprecated_frame_saved_pc,
3083 set_gdbarch_deprecated_saved_pc_after_call.
3084 Add calls to set_gdbarch_push_dummy_call,
3085 set_gdbarch_push_dummy_code,
3086 frame_unwind_append_predicate,
3087 frame_base_set_default,
3088 set_gdbarch_unwind_dummy_id,
3089 set_gdbarch_unwind_pc.
3090 Wrap a long line.
3091
7be04a68
MS
30922003-06-18 Corinna Vinschen <vinschen@redhat.com>
3093
3094 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3095 registers for H8/300S.
3096 (h8300_print_registers_info): Ditto.
8ffd9b1b 3097 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3098
ae087d01
DJ
30992003-06-18 Daniel Jacobowitz <drow@mvista.com>
3100
3101 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3102 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3103 (lin_lwp_wait): Likewise. Update comments.
3104 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3105 (pull_pid_from_list, linux_record_stopped_pid): New.
3106
07d8f827
SC
31072003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3108
3109 * ada-lang.c (scan_discrim_bound): Name first argument.
3110 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3111 declared by ALL_BLOCK_SYMBOLS.
3112
7cb47b14
SC
31132003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3114
3115 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3116 ("regcache.h"): Include it.
3117 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3118
6ad8ae5c
DJ
31192003-06-17 Daniel Jacobowitz <drow@mvista.com>
3120
3121 * NEWS: Mention gdbserver detach change and "disconnect" command.
3122 * infcmd.c (disconnect_command): New function.
3123 (_initialize_infcmd): Add ``disconnect'' command.
3124 * remote.c (remote_async_detach): Delete.
3125 (remote_detach): Merge remote_async_detach.
3126 (remote_disconnect): New.
3127 (init_remote_ops): Set to_disconnect.
3128 (init_remote_cisco_ops): Likewise.
3129 (init_remote_async_ops): Likewise. Use remote_detach.
3130 * target.c (cleanup_target): Default to_disconnect.
3131 (update_current_target): Inherit to_disconnect.
3132 (target_disconnect, debug_to_disconnect): New functions.
3133 (setup_target_debug): Set to_disconnect.
3134 * target.h (struct target_ops): Add to_disconnect.
3135 (target_disconnect): Add prototype.
3136
687595f9
DJ
31372003-06-17 Daniel Jacobowitz <drow@mvista.com>
3138
3139 * breakpoint.c (insert_catchpoint): New function.
3140 (insert_breakpoints): Use catch_exceptions to call
3141 insert_catchpoint. Disable catchpoints if they fail to insert.
3142
29239a8f
DJ
31432003-06-17 Daniel Jacobowitz <drow@mvista.com>
3144
3145 * symfile.c (reread_symbols): Clear sym_private.
3146
2cdf3c63
AC
31472003-06-17 Andrew Cagney <cagney@redhat.com>
3148
3149 * trad-frame.h (struct frame_info): Add opaque declaration.
3150 * remote-fileio.h (struct cmd_list_element): Add opaque
3151 declaration.
3152 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3153 comments.
3154
cf0e1e0d
DJ
31552003-06-17 Daniel Jacobowitz <drow@mvista.com>
3156
3157 * remote.c (remote_prepare_to_store): Replace call to
3158 deprecated_read_register_bytes with multiple regcache_raw_read
3159 calls.
3160
192cdb19
KW
31612003-06-17 Kris Warkentin <kewarken@qnx.com>
3162
3163 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3164 (nto_find_and_open_solib): Likewise.
3165 (nto_init_solib_absolute_prefix): Likewise.
3166 (_initialize_nto_tdep): Fix indentation.
3167
89929b45
KW
31682003-06-17 Kris Warkentin <kewarken@qnx.com>
3169
3170 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3171
46019f27
KW
31722003-06-17 Kris Warkentin <kewarken@qnx.com>
3173
3174 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3175
1a38736e
JB
31762003-06-17 Jim Blandy <jimb@redhat.com>
3177
3178 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3179
3605c34a
TR
31802003-06-16 Theodore A. Roth <troth@openavr.org>
3181
3182 * avr-tdep.c (avr_extract_return_value): New function.
3183 (avr_gdbarch_init): Set extract_return_value method.
3184
870b3035
AC
31852003-06-16 Andrew Cagney <cagney@redhat.com>
3186
3187 * frame.h (deprecated_get_next_frame_hack): Declare.
3188 * frame.c (legacy_saved_regs_prev_register): Only require
3189 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3190 there are always saved regs.
3191 (deprecated_generic_get_saved_register): Do not require
3192 DEPRECATED_FRAME_INIT_SAVED_REGS.
3193 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3194 use frame ID unwind instead.
3195 (deprecated_get_next_frame_hack): New function.
3196
63d47a7d
CV
31972003-06-16 Corinna Vinschen <vinschen@redhat.com>
3198
3199 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3200 (h8300_push_dummy_call): ...this function. Some minor optimization.
3201 (h8300_push_return_address): Remove.
3202 (h8300_gdbarch_init): Remove calls to
3203 set_gdbarch_deprecated_dummy_write_sp,
3204 set_gdbarch_deprecated_push_arguments and
3205 set_gdbarch_deprecated_push_return_address.
3206 Add call to set_gdbarch_push_dummy_call.
3207
4bb1dc5e
CV
32082003-06-16 Corinna Vinschen <vinschen@redhat.com>
3209
3210 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3211 (E_PSEUDO_EXR_REGNUM): Ditto.
3212 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3213 registers into safe registers.
4bb1dc5e
CV
3214 (h8300_skip_prologue): Check for stm instruction to push registers
3215 used for register variables onto stack.
3216 (gdb_print_insn_h8300): Remove.
3217 (h8300_examine_prologue): Add a comment.
3218 (h8300_register_name): Take pseudo registers into account.
3219 (h8300s_register_name): Ditto.
3220 (h8300sx_register_name): Ditto.
3221 (h8300_print_register): Ditto.
3222 (h8300_print_registers_info): Define "nice" printing order.
3223 (h8300_saved_pc_after_call): Take pseudo registers into account.
3224 (h8300_register_type): Ditto. Return type used for remote connection
3225 when requesting real CCR or EXR register, return actual type when
3226 requesting pseudo CCR or EXR.
3227 (h8300_pseudo_register_read): New function.
3228 (h8300_pseudo_register_write): Ditto.
3229 (h8300_dbg_reg_to_regnum): Ditto.
3230 (h8300s_dbg_reg_to_regnum): Ditto.
3231 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3232 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3233 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3234 set_gdbarch_print_insn architecture dependent.
3235 Call set_gdbarch_pseudo_register_read and
3236 set_gdbarch_pseudo_register_write.
3237 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3238
a59fe496
AC
32392003-06-16 Andrew Cagney <cagney@redhat.com>
3240
3241 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3242 * gdbarch.h, gdbarch.c: Re-generate.
3243 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3244 * s390-tdep.c (s390_gdbarch_init): Update.
3245 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3246 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3247 * mips-tdep.c (mips_gdbarch_init): Update.
3248 * mcore-tdep.c (mcore_gdbarch_init): Update.
3249 * cris-tdep.c (cris_gdbarch_init): Update.
3250 * infcall.c (call_function_by_hand): Update.
3251 * ia64-tdep.c (ia64_push_arguments): Update comment.
3252 * frame.c (legacy_get_prev_frame): Do not assume
3253 SAVE_DUMMY_FRAME_TOS_P.
3254 * dummy-frame.c (find_dummy_frame): Update comment.
3255
6f4e5a41
AC
32562003-06-16 Andrew Cagney <cagney@redhat.com>
3257
3258 * regcache.c (do_cooked_read): Do not use register_valid_p.
3259
72fab697
TR
32602003-06-15 Theodore A. Roth <troth@openavr.org>
3261
3262 * avr-tdep.c (avr_register_type): Remove a blank line.
3263 (avr_scan_prologue): Correct some comments.
3264
e3d8b004
TR
32652003-06-15 Theodore A. Roth <troth@openavr.org>
3266
3267 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3268 prologue types.
8ffd9b1b 3269 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3270 option.
3271 Add code to scan -mcall-prologues for mega devices.
3272
866b76ea
TR
32732003-06-15 Theodore A. Roth <troth@openavr.org>
3274
3275 * avr-tdep.c (avr_register_byte): Delete function.
3276 (avr_register_raw_size): Delete function.
3277 (avr_register_virtual_size): Delete function.
3278 (avr_register_virtual_type): Delete function.
3279 (avr_register_type): New function.
3280 (avr_address_to_pointer): Remove unused code.
3281 (avr_read_fp): Need to read FP as two separate bytes due to change to
3282 avr_register_type() usage.
3283 (avr_gdbarch_init): Don't set deprecated_register_size.
3284 Don't set deprecated_register_bytes.
3285 Don't set deprecated_register_byte.
3286 Don't set deprecated_register_raw_size.
3287 Don't set deprecated_max_register_raw_size.
3288 Don't set deprecated_register_virtual_size.
3289 Don't set deprecated_max_register_virtual_size.
3290 Don't set deprecated_register_virtual_type.
3291 Set register_type method.
3292
3993f6b1
DJ
32932003-06-15 Daniel Jacobowitz <drow@mvista.com>
3294
3295 * Makefile.in (linux-nat.o): Add rule.
3296 * linux-nat.c: New file.
3297 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3298 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3299 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3300 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3301 * config/arm/linux.mh (NATDEPFILES): Likewise.
3302 * config/i386/linux.mh (NATDEPFILES): Likewise.
3303 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3304 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3305 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3306 * config/mips/linux.mh (NATDEPFILES): Likewise.
3307 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3308 * config/s390/s390.mh (NATDEPFILES): Likewise.
3309 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3310
786a90bb
MK
33112003-06-15 Mark Kettenis <kettenis@gnu.org>
3312
3313 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3314 replace out-of-date comment.
3315
3bd3f01e
AC
33162003-06-15 Andrew Cagney <cagney@redhat.com>
3317
3318 * rdi-share/host.h (Fail): Change to a varargs function.
3319 * remote-rdi.c (Fail): Update.
8ffd9b1b 3320
de5b9bb9
MK
33212003-06-15 Mark Kettenis <kettenis@gnu.org>
3322
3323 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3324 (i386_convert_register_p, i386_register_to_value,
3325 i386_register_from_value): Handle types longer than 8 bytes.
3326
d532c08f
MK
33272003-06-15 Mark Kettenis <kettenis@gnu.org>
3328
3329 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3330 Move floating-point code to new function in i387-tdep.c.
3331 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3332 New functions containing code moved here from i386-tdep.c.
3333 * i387-tdep.h: Add opaque declaration for `struct type'.
3334 (i387_register_to_value, i387_value_to_register): New prototypes.
3335 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3336 (x86_64_init_abi): Set convert_register_p, register_to_value and
3337 value_to_register here.
8ffd9b1b 3338
42c466d7
AC
33392003-06-14 Andrew Cagney <cagney@redhat.com>
3340
3341 * mips-tdep.c (mips_register_to_value): Make static.
3342 (mips_value_to_register): Make static.
3343 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3344 * ia64-tdep.c (ia64_register_raw_size): Make static.
3345 (ia64_register_virtual_size): Make static.
3346 (ia64_register_byte): Make static.
3347 * i387-tdep.c: Include "i387-tdep.h".
3348 (print_387_control_word): Delete function.
3349 (print_387_status_word): Delete function.
3350 (print_387_status_bits): Delete function.
3351 (print_387_control_bits): Delete function.
3352 * Makefile.in (i387-tdep.o): Update dependencies.
3353 * rdi-share/host.h (Fail): Declare.
3354 * remote-rdi.c (Fail): Update to match declaration.
3355
2a9cda49
AC
33562003-06-14 Andrew Cagney <cagney@redhat.com>
3357
3358 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3359 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3360 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3361 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3362 * README: Delete reference to remote-array.
3363 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3364 (remote-array.o): Delete target.
3365 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3366 * remote-array.c: Delete file.
3367
ff2e87ac
AC
33682003-06-14 Andrew Cagney <cagney@redhat.com>
3369 Mark Kettenis <kettenis@gnu.org>
3370
3371 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3372 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3373 parameter with "frame".
3374 * gdbarch.h, gdbarch.c: Re-generate.
3375 * frame.h (put_frame_register): Declare.
3376 * frame.c (put_frame_register): New function.
3377 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3378 (legacy_register_to_value): Rewrite, use "frame" to get the
3379 register value.
3380 (legacy_value_to_register): Rewrite, use "frame" to find the
3381 register's location before storing.
3382 * arch-utils.h (legacy_convert_register_p): Update.
3383 (legacy_register_to_value, legacy_value_to_register): Update.
3384 * findvar.c (value_from_register): Rewrite, eliminate use of
3385 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3386 "frame" to REGISTER_TO_VALUE.
3387 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3388 lval_reg_frame_relative + lval_register branch of the switch. Do
3389 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3390 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3391 I386_EDI_REGNUM): New defines.
3392 (i386_next_regnum, i386_convert_register_p,
3393 i386_register_to_value, i386_value_to_register): New functions.
3394 (i386_register_convertible, i386_register_convert_to_virtual,
3395 i386_convert_to_raw): Remove functions.
3396 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3397 value_to_register instead of register_convertible,
3398 register_convert_to_virtual and register_convert_to_raw.
3399 * mips-tdep.c (mips_convert_register_p): New function.
3400 (mips_value_to_register): Replace mips_register_convert_from_type.
3401 (mips_register_to_value): Replace mips_register_convert_to_type.
3402 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3403 register_to_value.
3404 * alpha-tdep.c (alpha_convert_register_p): Update.
3405 (alpha_value_to_register): Update, store the register.
3406 (alpha_register_to_value): Update, fetch the register.
3407
98be1e77
TR
34082003-06-14 Theodore A. Roth <troth@openavr.org>
3409
3410 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3411 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3412 Don't set deprecated_call_dummy_words.
3413 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3414 Don't set remote_translate_xfer_address.
3415 (avr_io_reg_read_command): Remove commented out debug printf.
3416 Wrap a long line.
3417
57bc6122
TR
34182003-06-14 Theodore A. Roth <troth@openavr.org>
3419
3420 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3421 causes gdb to seg fault.
3422
eb01fc62
DJ
34232003-06-14 Daniel Jacobowitz <drow@mvista.com>
3424
3425 * sparc-nat.c (fetch_inferior_registers): Correct
3426 a reference to "registers".
3427
3b3e6bee
DJ
34282003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3429
3430 * Makefile.in (exc_request_U_h): Define
3431 (exc_request_S_h): Likewise.
3432 (msg_reply_S_h): Likewise.
3433 (msg_U_h): Likewise.
3434 (notify_S_h): Likewise.
3435 (process_reply_S_h): Likewise.
3436 (gnu-nat.o): Depend on gdb_obstack_h
3437 * gnu-nat.c: Include "gdb_obstack.h".
3438
b8de8283
AC
34392003-06-13 Andrew Cagney <cagney@redhat.com>
3440
3441 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3442 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3443
f3be58bc
AC
34442003-06-13 Andrew Cagney <cagney@redhat.com>
3445
3446 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3447 when deprecated REGISTER macros can be deleted.
3448 * gdbarch.h, gdbarch.c: Re-generate.
3449
4c0122c8
JB
34502003-06-13 Jim Blandy <jimb@redhat.com>
3451
3452 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3453 Linux entry point symbols for _dl_debug_state, too.
3454
3e210248
AC
34552003-06-13 Andrew Cagney <cagney@redhat.com>
3456
3457 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3458 available, do not use the FP register, and always save the TOS.
3459 * dummy-frame.c (dummy_frame_this_id): Do not assert
3460 SAVE_DUMMY_FRAME_TOS.
3461 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3462 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3463 (i386_push_dummy_call): Add 8 to the returned SP.
3464 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3465 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3466 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3467 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3468 (x86_64_push_dummy_call): Return "sp + 16".
3469 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3470 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3471 save_dummy_frame_tos.
3472
0b65af49
JB
34732003-06-13 Jim Blandy <jimb@redhat.com>
3474
3475 * frv-tdep.c (frv_use_struct_convention): Delete static
3476 declaration for function deleted in my change of 2003-06-12.
3477
4ea2465e
TR
34782003-06-13 Theodore A. Roth <troth@openavr.org>
3479
3480 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3481 (avr_pointer_to_address): Shift code addrs left 1 bit.
3482 (avr_convert_from_func_ptr_addr): Delete function since operation is
3483 better handled by avr_address_to_pointer and avr_pointer_to_address.
3484 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3485
1581182a
MK
34862003-06-13 Mark Kettenis <kettenis@gnu.org>
3487
3488 From Kelley Cook <kelleycook@wideopenwest.com>:
3489 * configure.host: Accept i[34567]86 variants.
3490 * configure.tgt: Likewise.
3491 * nlm/configure.in: Likewise.
3492 * nlm/configure: Regenerated.
3493
7aa1783e
RE
34942003-06-13 Richard Earnshaw <rearnsha@arm.com>
3495
3496 * arm-tdep.c (solib-svr4.h): Dont' include it.
3497 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3498 * arm-linux-tdep.c: ... here. Make static.
3499 (arm_linux_init_abi): Register it.
3500 (solib-svr4.h): Include it.
3501 * Makefile.in: Update dependencies.
3502 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3503 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3504
0261a0d0
CV
35052003-06-13 Corinna Vinschen <vinschen@redhat.com>
3506
3507 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3508 indicate registers used for return values.
3509 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3510 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3511 members.
3512 (h8300_init_extra_frame_info): Ditto.
3513 (h8300_frame_locals_address): Removed.
3514 (h8300_frame_args_address): Removed.
3515 (h8300_extract_return_value): Use new regcache structure. Only care
3516 for 16 bit CPUs.
3517 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3518 (h8300_store_return_value): Use new regcache structure. Only care
3519 for 16 bit CPUs.
3520 (h8300h_store_return_value): Same function for 32 bit CPUs.
3521 (h8300_store_struct_return): Removed.
3522 (h8300_extract_struct_value_address): Use new regcache structure.
3523 (h8300h_extract_struct_value_address): Removed.
3524 (h8300_push_dummy_code): New function.
3525 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3526 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3527 set_gdbarch_store_return_value architecture dependent.
3528 Call set_gdbarch_push_dummy_code and
3529 set_gdbarch_extract_struct_value_address.
3530 Remove calls to set_gdbarch_frame_args_address,
3531 set_gdbarch_frame_locals_address,
3532 set_gdbarch_deprecated_store_struct_return,
3533 set_gdbarch_deprecated_extract_return_value,
3534 set_gdbarch_deprecated_extract_struct_value_address,
3535 set_gdbarch_deprecated_call_dummy_words and
3536 set_gdbarch_deprecated_sizeof_call_dummy_words.
3537
055c394a
CV
35382003-06-13 Corinna Vinschen <vinschen@redhat.com>
3539
3540 * h8300-tdep.c (h8300_register_byte): Remove.
3541 (h8300h_register_byte): Remove.
3542 (h8300_register_virtual_type): Remove. Substitute by...
3543 (h8300_register_type): New function.
3544 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3545 (h8300h_extract_struct_value_address): Ditto.
3546 (h8300_gdbarch_init): Drop calls to
3547 set_gdbarch_deprecated_register_byte and
3548 set_gdbarch_deprecated_register_virtual_type.
3549 Add call to set_gdbarch_register_type.
3550
9c04cab7
AC
35512003-06-13 Andrew Cagney <cagney@redhat.com>
3552
3553 * gdbarch.sh: Update comments on registers.
3554 (deprecated_register_byte): Rename register_byte.
3555 (deprecated_register_raw_size): Rename register_raw_size.
3556 (deprecated_register_virtual_size): Rename register_virtual_size.
3557 (deprecated_register_virtual_type): Rename register_virtual_type.
3558 * gdbarch.h, gdbarch.c: Re-generate.
3559 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3560 * vax-tdep.c (vax_gdbarch_init): Update.
3561 * v850-tdep.c (v850_gdbarch_init): Update.
3562 * sparc-tdep.c (sparc_gdbarch_init): Update.
3563 * sh-tdep.c (sh_gdbarch_init): Update.
3564 * s390-tdep.c (s390_gdbarch_init): Update.
3565 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3566 * ns32k-tdep.c: Update.
3567 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3568 * mips-tdep.c (mips_gdbarch_init): Update.
3569 * mcore-tdep.c (mcore_gdbarch_init): Update.
3570 * m68k-tdep.c (m68k_gdbarch_init): Update.
3571 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3572 * ia64-tdep.c (ia64_gdbarch_init): Update.
3573 * hppa-tdep.c (hppa_gdbarch_init): Update.
3574 * h8300-tdep.c (h8300_gdbarch_init): Update.
3575 * frv-tdep.c (frv_gdbarch_init): Update.
3576 * cris-tdep.c (cris_gdbarch_init): Update.
3577 * avr-tdep.c (avr_gdbarch_init): Update.
3578 * alpha-tdep.c (alpha_gdbarch_init): Update.
3579 * arm-tdep.c (arm_gdbarch_init): Update.
3580
b060cbea
AC
35812003-06-13 Andrew Cagney <cagney@redhat.com>
3582
3583 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3584 mips_o32_use_struct_convention with always_use_struct_convention.
3585
0fc9922a
DC
35862003-06-12 David Carlton <carlton@kealia.com>
3587
3588 * cp-namespace.c (cp_set_block_scope): Comment out
3589 processing_has_namespace_info branch.
3590
1fd35568
JB
35912003-06-12 Jim Blandy <jimb@redhat.com>
3592
f470a70a
JB
3593 Recognize and skip 64-bit PowerPC Linux linkage functions.
3594 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3595 insn_pattern, insns_match_pattern, d_field, ds_field): New
3596 functions, macros, and types for working with PPC instructions.
3597 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3598 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3599 ppc64_skip_trampoline_code): New functions, variables, and macros
3600 for recognizing and skipping linkage functions.
3601 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3602 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3603
49ff75ad
JB
3604 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3605 register offsets for both the 32- and 64-bit interfaces.
3606
bd918c83
JB
3607 Actually finish the job started by my change of 2003-05-29.
3608 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3609 other #definition of this.
3610 (ppc_linux_skip_trampoline_code): Remove declaration.
3611 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3612 static.
3613 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3614 method for GDBARCH.
3615
3616 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3617 'long' on ppc64-*-linux*.
3618
f8c59253
JB
3619 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3620 isn't #defined, assume the register doesn't exist: act as if
3621 tdep->ppc_mq_regnum were -1.
3622
8fbb30b1
JB
3623 * configure.host, configure.tgt: Add entries for
3624 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3625 powerpc/linux.mt.
3626 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3627 New files.
3628
1fd35568
JB
3629 * arch-utils.c (always_use_struct_convention): New function.
3630 * arch-utils.h (always_use_struct_convention): New prototype.
3631 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3632 (alpha_gdbarch_init): Register always_use_struct_convention,
3633 instead of alpha_use_struct_convention.
3634 * cris-tdep.c (cris_use_struct_convention): Delete.
3635 (cris_gdbarch_init): Register always_use_struct_convention,
3636 instead of cris_use_struct_convention.
3637 * frv-tdep.c (frv_use_struct_convention): Delete.
3638 (frv_gdbarch_init): Register always_use_struct_convention,
3639 instead of frv_use_struct_convention.
3640 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3641 (h8300_gdbarch_init): Register always_use_struct_convention,
3642 instead of h8300_use_struct_convention.
e3305dd9 3643 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3644 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3645 instead of mips_o32_use_struct_convention.
3646
e14e6e9c
AC
36472003-06-12 Andrew Cagney <cagney@redhat.com>
3648
3649 * wince.c: Include "mips-tdep.h".
3650 * mips-tdep.h (mips_next_pc): Declare.
3651 * mcore-tdep.c: Make more local functions static.
3652 * Makefile.in (wince.o): Update dependencies.
3653
2335f48e
DC
36542003-06-12 David Carlton <carlton@kealia.com>
3655
3656 * symtab.c (lookup_symbol_aux_minsyms): Replace
3657 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3658 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3659 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3660 SYMBOL_NATURAL_NAME.
3661
f70a7d61
AS
36622003-06-12 Andreas Schwab <schwab@suse.de>
3663
3664 * Makefile.in (tuiDisassem.o): Update dependencies.
3665
b6429628
DC
36662003-06-12 David Carlton <carlton@bactrian.org>
3667
3668 * symtab.h: Delete declaration of make_symbol_overload_list.
3669 Add declaration of lookup_partial_symbol.
3670 * symtab.c (remove_params): Move to cp-support.c.
3671 (overload_list_add_symbol, make_symbol_overload_list)
3672 (sym_return_val_size, sym_return_val_index): Ditto.
3673 (lookup_partial_symbol): Make extern.
3674 * cp-support.h: Add declaration of make_symbol_overload_list.
3675 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3676 symtab.h, and block.h.
3677 (remove_params): Move here from symtab.c.
3678 (overload_list_add_symbol, make_symbol_overload_list)
3679 (sym_return_val_size, sym_return_val_index): Ditto.
3680 * valops.c: Include cp-support.h.
3681 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3682 frame_h, and block_h.
3683 (valops.o): Depend on cp_support_h.
3684
084edea5
CV
36852003-06-12 Corinna Vinschen <vinschen@redhat.com>
3686
3687 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3688 substitute by NUM_REGS throughout.
3689 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3690 (h8300s_register_name): New function for H8S registers.
3691 (h8300sx_register_name): Ditto for H8SX registers.
3692 (h8300_print_register): Revise register printing, avoid depending
3693 on 32 bit long.
0261a0d0 3694 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3695 (h8300h_register_byte): New function for any other architecture.
3696 (h8300_register_raw_size): Remove.
3697 (h8300_register_virtual_type): Revise to return actually useful
3698 type.
3699 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3700 (h8300h_extract_struct_value_address): New function for any other
3701 architecture.
3702 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3703 set_gdbarch_register_name, set_gdbarch_register_byte,
3704 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3705 Remove calls to set_gdbarch_deprecated_register_size,
3706 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3707 set_gdbarch_deprecated_max_register_raw_size,
3708 set_gdbarch_register_virtual_size and
3709 set_gdbarch_deprecated_max_register_virtual_size entirely.
3710 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3711 set_gdbarch_long_double_bit.
3712
06194148
JJ
37132003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3714
8ffd9b1b
AJ
3715 * doublest.c (convert_doublest_to_floatformat): When dealing
3716 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3717 processing a full 32 bits of mantissa.
3718
de4f826b
DC
37192003-06-11 David Carlton <carlton@bactrian.org>
3720
3721 * dictionary.h: New.
3722 * dictionary.c: New.
3723 * block.h: Add opaque declaration for struct dictionary.
3724 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3725 'sym' members.
3726 (BLOCK_DICT): New macro.
3727 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3728 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3729 BLOCK_SHOULD_SORT.
3730 (ALL_BLOCK_SYMBOLS): Update definition.
3731 * Makefile.in (SFILES): Add dictionary.c.
3732 (dictionary_h): New.
3733 (COMMON_OBS): Add dictionary.o.
3734 (dictionary.o): New.
3735 (ada-lang.o): Depend on dictionary_h.
3736 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3737 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3738 (mi-cmd-stack.o): Ditto.
3739 (gdbtk-cmds.o): Update dependencies.
3740 (gdbtk-stack.o): Ditto.
3741 * ada-lang.c: Include dictionary.h.
3742 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3743 (fill_in_ada_prototype, debug_print_block): Ditto.
3744 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3745 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3746 'is_sorted'.
3747 * mdebugread.c: Include dictionary.h.
3748 (struct parse_stack): Delete 'maxsyms' member.
3749 (parse_symbol): Update calls to new_block. Delete calls to
3750 shrink_block. Use dictionary methods.
3751 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3752 Update calls to new_symtab. Don't maintain maxsyms data.
3753 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3754 (add_symbol): Just call dict_add_symbol.
3755 (new_symtab): Delete 'maxsyms' argument.
3756 (new_symtab): Update calls to new_block.
3757 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3758 (shrink_block): Delete function.
3759 (fixup_sigtramp): Update call to new_block. Add symbol via
3760 dict_add_symbol.
3761 * jv-lang.c: Include dictionary.h.
3762 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3763 appropriately. Set class_symtab->free_func. Make sure the
3764 blockvector is big enough to hold two blocks.
3765 (add_class_symtab_symbol): Use dictionary methods.
3766 (free_class_block): New function.
3767 (type_from_class): Replace explicit iteration by
3768 ALL_BLOCK_SYMBOLS.
3769 * symtab.h (struct symtab): Replace 'free_ptr' method by
3770 'free_func'.
3771 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3772 sort_symtab_syms.
3773 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3774 sort_symtab_syms.
3775 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3776 Include dictionary.h.
3777 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3778 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3779 sort_symtab_syms.
3780 * objfiles.c: Include dictionary.h.
3781 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3782 * buildsym.c: Include dictionary.h.
3783 (finish_block): Use dictionary methods.
3784 (end_symtab): Set free_func to NULL, not free_ptr.
3785 * tracepoint.c: Include dictionary.h.
3786 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3787 (scope_info): Ditto.
3788 * stack.c: Include dictionary.h.
3789 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3790 (print_block_frame_labels, print_frame_arg_vars)
3791 (print_frame_args): Ditto.
3792 * symmisc.c (free_symtab_block): Use dictionary methods.
3793 (dump_symtab): Ditto.
3794 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3795 Include dictionary.h.
3796 * symfile.h: Delete declarations of sort_block_syms,
3797 sort_symtab_syms.
3798 * symfile.c (sort_block_syms): Delete.
3799 (sort_symtab_syms): Delete.
3800 * symtab.c: Include dictionary.h.
3801 (lookup_block_symbol): Use dictionary iterators.
3802 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3803 (search_symbols, make_symbol_completion_list): Ditto.
3804 (make_symbol_overload_list): Ditto.
3805 * valops.c (value_of_local): Use dict_empty.
3806 Include dictionary.h.
3807
a31f978c
JB
38082003-06-11 J. Brobecker <brobecker@gnat.com>
3809
3810 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3811
526e70c0
DC
38122003-06-11 David Carlton <carlton@bactrian.org>
3813
3814 * block.h (BLOCK_SHOULD_SORT): Delete.
3815 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3816 blocks.
3817 * ada-lang.c (ada_add_block_symbols): Ditto.
3818 * symfile.c (sort_block_syms): Delete.
3819 (sort_symtab_syms): Ditto.
3820 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3821 declarations.
3822 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3823 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3824 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3825 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3826 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3827 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3828 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3829
33c08150
JJ
38302003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3831
8ffd9b1b 3832 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3833 bits to 128.
3834
781a750d
AC
38352003-06-11 Andrew Cagney <cagney@redhat.com>
3836
3837 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3838 REGISTER_CONVERTIBLE.
3839 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3840 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3841 * gdbarch.h, gdbarch.c: Re-generate.
3842 * arch-utils.h (deprecated_register_convertible_not): Rename
3843 generic_register_convertible_not.
3844 * arch-utils.c (deprecated_register_convertible_not): Rename
3845 generic_register_convertible.
3846 (legacy_convert_register_p, legacy_register_to_value): Update.
3847 * sh-tdep.c (sh64_push_arguments): Update.
3848 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3849 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3850 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3851 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3852 * arch-utils.c (legacy_value_to_register): Update.
3853 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3854 (rs6000_register_convert_to_raw): Make parameter "from" const.
3855 * mips-tdep.c (mips_gdbarch_init): Update.
3856 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3857 * infcmd.c (default_print_registers_info): Update.
3858 * ia64-tdep.c (ia64_gdbarch_init): Update.
3859 (ia64_register_convert_to_raw): Make parameter "from" const.
3860 * i386-tdep.c (i386_gdbarch_init): Update.
3861 (i386_register_convert_to_raw): Update.
3862
cd90e54f
AC
38632003-06-11 Andrew Cagney <cagney@redhat.com>
3864
3865 * remote-fileio.c: Include "remote-fileio.h".
3866 * Makefile.in (remote-fileio.o): Update dependencies.
3867 (remote_fileio_h): Fix typo.
3868
a78f21af
AC
38692003-06-11 Andrew Cagney <cagney@redhat.com>
3870
3871 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3872 (xstormy16_save_dummy_frame_tos): Make static.
3873 (_initialize_xstormy16_tdep): Add declaration.
3874 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3875 * v850-tdep.c: Make local functions static.
3876 (_initialize_v850_tdep): Add declaration.
3877 * sparc-tdep.c: Make local functions static.
3878 (_initialize_sparc_tdep): Add declaration.
3879 * sh-tdep.c: Make local functions static.
3880 (_initialize_sh_tdep): Add declaration.
3881 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3882 * s390-tdep.c: Make local functions static.
3883 (_initialize_s390_tdep): Add declaration.
3884 * dbxread.c (find_stab_function_addr): Make static.
3885 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3886 * ocd.c (_initialize_remote_ocd): Add declaration.
3887 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3888 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3889 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3890 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3891 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3892 * remote-array.c (_initialize_array): Add declaration.
3893 (_initialize_remote_monitors): Add declaration.
3894 * remote-mips.c: Make local functions static.
3895 (_initialize_remote_mips): Add declaration.
3896 * mcore-tdep.c: Make all local functions static.
3897 (_initialize_mcore_tdep): Add declaration.
3898 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3899 * abug-rom.c (_initialize_abug_rom): Add declaration.
3900 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3901 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3902 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3903 * remote-est.c (_initialize_est): Add declaration.
3904 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3905 (m68hc11_call_dummy_address): Make static.
3906 * ia64-tdep.c: Make local functions static.
3907 (_initialize_ia64_tdep): Add declaration.
3908 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3909 * monitor.c (monitor_wait_filter): Make static.
3910 (_initialize_remote_monitors): Add declaration.
3911 * remote-hms.c (_initialize_remote_hms): Add declaration.
3912 * remote-e7000.c (fetch_regs_from_dump): Make static.
3913 (expect_n): Make static.
3914 (_initialize_remote_e7000): Add declaration.
3915 * ser-e7kpc.c: Always include "defs.h".
3916 (_initialize_ser_e7000pc): Add declaration.
3917 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3918 * cris-tdep.c: Make all but one function static.
3919 (_initialize_cris_tdep): Add declaration.
3920 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3921 * solib.c (update_solib_list): Make static.
3922 (_initialize_solib): Add declaration.
3923 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3924 (_initialize_avr_tdep): Add declaration.
3925 * remote-rdi.c (voiddummy): Make static.
3926 (_initialize_remote_rdi): Add declaration.
3927 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3928 * remote-rdp.c (send_rdp): Make static.
3929 (_initialize_remote_rdp): Add declaration.
3930 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3931
cbcdb1f5
CV
39322003-06-11 Corinna Vinschen <vinschen@redhat.com>
3933
3934 * remote-fileio.c: Make ari happy.
3935
a191ea8d
JB
39362003-06-10 J. Brobecker <brobecker@gnat.com>
3937
3938 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3939 fetching the trailing bytes of the buffer we are about to write.
3940
0ef75e11
AC
39412003-06-10 Andrew Cagney <cagney@redhat.com>
3942
3943 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3944 * Makefile.in (remote-fileio.o): Update dependencies.
3945 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3946 include <setjmp.h>, or <sys/types.h> conditional on USG.
3947 (remote_fio_jmp_buf): Delete global variable.
3948
449092f6 39492003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3950 Martin M. Hunt <hunt@redhat.com>
449092f6 3951
559fa028
AC
3952 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3953 (SFILES): Add remote-fileio.c.
3954 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3955 dependencies for building remote.o.
449092f6
CV
3956 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3957 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3958 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3959 static storage class.
3960 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3961 'F' packet.
3962 (_initialize_remote): Call initialize_remote_fileio().
3963 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3964 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3965 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3966 (captured_main): Initialize new ui_files.
3967 * ui-file.c: Add read and fgets input functions.
3968 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3969 (null_file_read): New function.
3970 (ui_file_read): New function.
3971 (set_ui_file_read): New function.
3972 (stdio_file_read): New function.
3973 * ui-file.h: New type ui_file_read_ftype.
3974 (set_ui_file_read): Declare.
3975 (ui_file_read): Declare.
3976
248de703
AC
39772003-06-09 Andrew Cagney <cagney@redhat.com>
3978
3979 * frame.h (deprecated_unwind_get_saved_register): Rename
3980 generic_unwind_get_saved_register, update comments.
3981 * mips-tdep.c (mips_get_saved_register): Update.
3982 * frame.c (deprecated_unwind_get_saved_register): Update.
3983
0ed8aa57
AC
39842003-06-09 Andrew Cagney <cagney@redhat.com>
3985
3986 * vax-tdep.c (vax_frame_locals_address): Delete function.
3987 (vax_gdbarch_init): Do not set frame_locals_address.
3988 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3989 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3990 * s390-tdep.c (s390_frame_args_address): Delete function.
3991 (s390_gdbarch_init): Do not set frame_args_address or
3992 frame_locals_address.
3993 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3994 (ns32k_gdbarch_init): Do not set frame_locals_address.
3995 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3996 (hppa_frame_locals_address): Delete function.
3997 (hppa_gdbarch_init): Do not set frame_args_address, or
3998 frame_locals_address.
3999 * arm-tdep.c (arm_frame_args_address): Delete.
4000 (arm_frame_locals_address): Delete.
4001 (arm_gdbarch_init): Do not set frame_args_address, or
4002 frame_locals_address.
4003
983a287a
AC
40042003-06-09 Andrew Cagney <cagney@redhat.com>
4005
4006 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4007 * gdbarch.h, gdbarch.c: Re-generate.
4008 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4009 * arch-utils.c (frame_num_args_unknown): Delete function.
4010 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4011 (frame_info): Use FRAME_NUM_ARGS_P.
4012 * arm-tdep.c (arm_frame_num_args): Delete function.
4013 (arm_gdbarch_init): Do not set frame_num_args.
4014 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4015 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4016 (hppa_gdbarch_init): Do not set frame_num_args.
4017 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4018 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4019 frame_num_args to default frame_num_args_unknown.
4020 * v850-tdep.c (v850_gdbarch_init): Ditto.
4021 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4022 * sh-tdep.c (sh_gdbarch_init): Ditto.
4023 * s390-tdep.c (s390_gdbarch_init): Ditto.
4024 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4025 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4026 * mips-tdep.c (mips_gdbarch_init): Ditto.
4027 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4028 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4029 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4030 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4031 * i386-tdep.c (i386_gdbarch_init): Ditto.
4032 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4033 * frv-tdep.c (frv_gdbarch_init): Ditto.
4034 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4035 * cris-tdep.c (cris_gdbarch_init): Ditto.
4036 * avr-tdep.c (avr_gdbarch_init): Ditto.
4037 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4038
8d3b0994
AC
40392003-06-09 Andrew Cagney <cagney@redhat.com>
4040
4041 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4042 (print_frame_args): Moved to "stack.c".
4043 * stack.c: Include "gdb_assert.h".
4044 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4045 (print_frame_args): Moved from "printcmd.c".
4046 * frame.h (print_frame_args): Delete declaration.
4047 * Makefile.in (stack.o): Update dependencies.
4048
25e3a86b
AC
40492003-06-08 Andrew Cagney <cagney@redhat.com>
4050
4051 * frame.c (get_prev_frame): Remove reference to
4052 frame_args_address_correct in comments.
4053 * frame-base.c (default_frame_args_address): Delete code
4054 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4055 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4056 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4057 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4058 (vax_frame_args_address_correct): Delete declaration.
4059
a9e5fdc2
AC
40602003-06-08 Andrew Cagney <cagney@redhat.com>
4061
4062 * gdbarch.sh (UNWIND_SP): Add.
4063 * gdbarch.h, gdbarch.c: Re-generate.
4064 * frame.c (frame_sp_unwind): New function.
4065 (get_frame_sp): New function.
4066 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4067 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4068 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4069 value.
4070 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4071 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4072
8983bd83
AC
40732003-06-08 Andrew Cagney <cagney@redhat.com>
4074
7fec2c59
AC
4075 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4076 REMOTE_BREAKPOINT.
4077 * remote.c: Update.
4078 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4079 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4080 * config/m68k/tm-sun3.h: Update.
4081 * config/m68k/tm-m68klynx.h: Update.
4082 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4083
8983bd83
AC
4084 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4085 trad_frame". Update comments.
4086 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4087 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4088 (trad_frame_register_value, trad_frame_prev_register): Update.
4089
b9362cc7
AC
40902003-06-08 Andrew Cagney <cagney@redhat.com>
4091
4092 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4093 from GCC's acinclude.m4.
4094 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4095 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4096 * main.c (error_init): Delete declaration.
4097 * defs.h (error_init): Declare.
4098 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4099 (rs6000_convert_from_func_ptr_addr): Make static.
4100 (_initialize_rs6000_tdep): Add declaration.
4101 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4102 (show_commands, set_verbose, show_history): Delete declaration.
4103 * top.h (set_verbose): Add declaration.
4104 (show_history, set_history, show_commands): Add declaration.
4105 (do_restore_instream_cleanup): Add declaration.
4106 * objc-lang.c (specialcmp): Make static.
4107 (print_object_command): Make static.
4108 (find_objc_msgsend): Make static.
4109 (find_objc_msgcall_submethod_helper): Make static.
4110 (find_objc_msgcall_submethod): Make static.
4111 (_initialize_objc_language): Add declaration.
4112 (find_implementation_from_class): Make static.
4113 (find_implementation): Make static.
4114 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4115 * objc-lang.h (lookup_struct_typedef): Add declaration.
4116 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4117 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4118 (do_restore_user_call_depth): Make static.
4119 (do_restore_instream_cleanup): Delete declaration.
4120 (dont_repeat): Delete declaration.
4121 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4122 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4123 * reggroups.c (_initialize_reggroup): Add declaration.
4124 * cp-support.c (_initialize_cp_support): Add declaration.
4125 * cp-abi.c (_initialize_cp_abi): Add declaration.
4126 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4127 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4128 (_initialize_gnu_v3_abi): Add declaration.
4129 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4130 (_initialize_gnu_v2_abi): Add declaration.
4131 * frame-base.c (_initialize_frame_base): Add declaration.
4132 * doublest.c (floatformat_from_length): Make static.
4133 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4134 * frame.c (create_sentinel_frame): Make static.
4135 (_initialize_frame): Add declaration.
4136 * top.c (do_catch_errors): Make static.
4137 (gdb_rl_operate_and_get_next_completion): Make static.
4138 * typeprint.c: Include "typeprint.h".
4139 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4140 (sentinel_frame_this_id): Make static.
4141 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4142 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4143 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4144 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4145 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4146 * maint.c (maintenance_print_architecture): Make static.
4147 * signals/signals.c (_initialize_signals): Add declaration.
4148 * std-regs.c (_initialize_frame_reg): Add declaration.
4149 * jv-exp.y (push_variable): ISO C definition.
4150 (push_qualified_expression_name): Ditto.
4151 * memattr.c (_initialize_mem): Add declaration.
4152 * remote.c (remote_check_watch_resources): Make static.
4153 (remote_stopped_by_watchpoint): Make static.
4154 (remote_stopped_data_address): Make static.
4155 * d10v-tdep.c (nr_dmap_regs): Make static.
4156 (a0_regnum): Make static.
4157 (d10v_frame_unwind_cache): Make static.
4158 (d10v_frame_p): Make static.
4159 * osabi.c (show_osabi): Make static.
4160 (_initialize_gdb_osabi): Add extern declaration.
4161 * gdbtypes.c (make_qualified_type): Make static.
4162 (safe_parse_type): Make static.
4163 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4164 * macrotab.c (macro_bcache_free): Make static.
4165 * interps.c (interp_set_quiet): Make static.
4166 (interpreter_exec_cmd): Make static.
4167 * stack.h (select_frame_command): New file.
4168 * stack.c: Include "stack.h".
4169 (select_frame_command_wrapper): Delete function.
4170 (select_frame_command): Make global.
4171 * infcall.c: Include "infcall.h".
4172 * linespec.c: Include "linespec.h".
4173 * symfile.c (sections_overlap): Make static.
4174 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4175 * charset.c (_initialize_charset): Add missing prototype.
4176 * regcache.c (init_legacy_regcache_descr): Make static.
4177 (do_regcache_xfree): Make static.
4178 (regcache_xfer_part): Make static.
4179 (_initialize_regcache): Add missing prototype.
4180 * breakpoint.c (parse_breakpoint_sals): Make static.
4181 (breakpoint_sals_to_pc): Make static.
4182 * interps.h (clear_interpreter_hooks): ISO C declaration.
4183 * Makefile.in (stack_h): Define.
4184 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4185 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4186
a0f267c7
AC
41872003-06-08 Andrew Cagney <cagney@redhat.com>
4188
4189 * Makefile.in (d10v-tdep.o): Update dependencies.
4190 (SFILES): Add trad-frame.c.
4191 (trad_frame_h): Define.
4192 (COMMON_OBS): Add trad-frame.o.
4193 (trad-frame.o): Specify dependencies.
4194 * d10v-tdep.c: Include "trad-frame.h".
4195 (saved_regs_unwinder): Delete function.
4196 (d10v_frame_prev_register): Use trad_frame_prev_register.
4197 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4198 trad_frame", delete "regs" and "prev_sp".
4199 (prologue_find_regs): Use trad-frame.
4200 * trad-frame.h, trad-frame.c: New files.
4201
4538b4f4
MK
42022003-06-08 Mark Kettenis <kettenis@gnu.org>
4203
4204 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4205
a0273b2f
AF
42062003-06-07 Adam Fedor <fedor@gnu.org>
4207
4208 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4209 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4210 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4211 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4212 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4213 Use it.
4214
3a6c3343
AC
42152003-06-07 Andrew Cagney <cagney@redhat.com>
4216
4217 * symfile.h: Re-indent, clean up comments.
4218
b46e02f6
AC
42192003-06-07 Andrew Cagney <cagney@redhat.com>
4220
4221 * inferior.h (deprecated_write_sp): Replace
4222 generic_target_write_sp.
4223 * regcache.c (deprecated_write_sp): Replace
4224 generic_target_write_sp.
4225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4226 * vax-tdep.c (vax_gdbarch_init): Update.
4227 * v850-tdep.c (v850_gdbarch_init): Update.
4228 * sparc-tdep.c (sparc_gdbarch_init): Update.
4229 * sh-tdep.c (sh_gdbarch_init): Update.
4230 * s390-tdep.c (s390_gdbarch_init): Update.
4231 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4232 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4233 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4234 * mcore-tdep.c (mcore_gdbarch_init): Update.
4235 * m68k-tdep.c (m68k_gdbarch_init): Update.
4236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4237 * ia64-tdep.c (ia64_gdbarch_init): Update.
4238 * h8300-tdep.c (h8300_gdbarch_init): Update.
4239 * frv-tdep.c (frv_gdbarch_init): Update.
4240 * cris-tdep.c (cris_gdbarch_init): Update.
4241 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4242
a42e117c
AC
42432003-06-07 Andrew Cagney <cagney@redhat.com>
4244
4245 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4246 Assert that PC_REGNUM is valid.
4247 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4248
bd1ce8ba
AC
42492003-06-07 Andrew Cagney <cagney@redhat.com>
4250
4251 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4252 * gdbarch.h, gdbarch.c: Regenerate.
4253 * mn10300-tdep.c: Include "gdb_assert.h".
4254 (mn10300_read_fp): New function.
4255 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4256 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4257 * ia64-tdep.c: Include "gdb_assert.h".
4258 (ia64_read_fp): New function.
4259 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4260 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4261 * regcache.c (generic_target_read_sp): Delete function.
4262 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4263 * inferior.h (generic_target_read_sp): Delete declaration.
4264 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4265 generic_target_read_sp.
4266 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4267 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4268 * sh-tdep.c (sh_gdbarch_init): Ditto.
4269 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4270 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4271
ec5cbaec
AC
42722003-06-07 Andrew Cagney <cagney@redhat.com>
4273
4274 * gdbarch.sh: Comment each field of startup_gdbarch.
4275 * gdbarch.h, gdbarch.c: Re-generate.
4276
cde9ea48
AC
42772003-06-07 Andrew Cagney <cagney@redhat.com>
4278
4279 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4280 * gdbarch.h, gdbarch.c: Re-generate.
4281 * regcache.c: Update comments on read_pc et.al.
4282 (generic_target_read_pc): Delete function.
4283 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4284 * inferior.h (generic_target_read_pc): Delete declaration.
4285 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4286 generic_target_read_pc.
4287 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4288 * sh-tdep.c (sh_gdbarch_init): Ditto.
4289 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4290 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4291
9a90a780
AC
42922003-06-07 Andrew Cagney <cagney@redhat.com>
4293
4294 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4295 "index" with "special_local_sect". Use strcmp instead of STREQ.
4296 Append period to coments.
4297
a39a16c4
MM
42982003-06-06 Mark Mitchell <mark@codesourcery.com>
4299
4300 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4301 (elfstab_offset_sections): Likewise.
4302 * gdb-stabs.h (stab_section_info): Likewise.
4303 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4304 * objfiles.c (objfile_relocate): Likewise.
4305 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4306 * remote.c (get_offsets): Likewise.
4307 (remote_cisco_objfile_relocate): Likewise.
4308 * somread.c (som_symfile_offsets): Likewise.
4309 * symfile.c (alloc_section_addr_info): New function.
4310 (build_section_addr_info_from_section_tab): Use it.
4311 (free_section_addr_info): Adjust.
4312 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4313 (syms_from_objfile): Allocate local_addr dynamically.
4314 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4315 dynamically.
4316 (add_symbol_file_command): Allocate sect_opts dynamically.
4317 (reread_symbols): Avoid use of SECT_OFF_MAX.
4318 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4319 (alloc_section_addr_info): Declare it.
4320 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4321 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4322 dynamically.
4323 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4324
20c6c2f8
AC
43252003-06-06 Andrew Cagney <cagney@redhat.com>
4326
4327 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4328 (d10v_frame_unwind_cache): Do not set "return_pc".
4329
884a26c8
MS
43302003-06-06 Michael Snyder <msnyder@redhat.com>
4331
4332 * h8300-tdep.c: Make tidy (long lines).
4333
088ce440
ML
43342003-06-06 Michal Ludvig <mludvig@suse.cz>
4335
8ffd9b1b 4336 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4337 to regcache_collect().
4338
7d773d96
JB
43392003-06-05 J. Brobecker <brobecker@gnat.com>
4340
4341 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4342 pc_in_sigtramp multiarch method.
4343 (hppa_hpux_som_init_abi): Use it.
4344 (hppa_hpux_elf_init_abi): Likewise.
4345 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4346 macro has been multiarched.
4347 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4348 macro here, as hppa64 isn't multiarched yet.
4349
1df6926e
AC
43502003-06-05 Andrew Cagney <cagney@redhat.com>
4351
4352 * Makefile.in (value_h): Add $(frame_h).
4353 * value.h: Include "frame.h".
4354 (struct value): Replace "frame_addr" with "frame_id".
4355 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4356 * values.c (allocate_value): Use VALUE_FRAME_ID.
4357 (value_copy): Use VALUE_FRAME_ID.
4358 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4359 * valops.c (value_assign): Update. Use frame_find_by_id.
4360
6b53acc6
ML
43612003-06-05 Michal Ludvig <mludvig@suse.cz>
4362
4363 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4364 in each pass.
4365
4d9850d3
JJ
43662003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4367
4368 * thread-db.c (check_event): For create/death event breakpoints,
4369 loop through all messages to ensure that we read the message
4370 corresponding to the breakpoint we are at.
4371
8efca6ba
MS
43722003-06-04 Michael Snyder <msnyder@redhat.com>
4373
4374 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4375
0912c7f2
MK
43762003-06-04 Mark Kettenis <kettenis@gnu.org>
4377
4378 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4379 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4380 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4381 when handling .eh_frame sections.
4382
4e370325
JB
43832003-06-04 J. Brobecker <brobecker@gnat.com>
4384
4385 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4386 prepare_to_proceed procedure instead of the hppa-specific one.
4387 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4388
b757528f 43892003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4390
b757528f
JJ
4391 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4392 * config.in: Regenerated.
4393 * configure.in: Add test for syscall function and check for
4394 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4395 * configure: Regenerated.
4396 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4397 <sys/syscall.h>.
4398 (kill_lwp): New function that uses tkill syscall or
4399 uses kill, depending on whether threading model is nptl or not.
4400 All callers of kill() changed to use kill_lwp().
4401 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4402 see if all threads have already exited in the nptl model.
4403 (stop_and_resume_callback): New callback function used by the
4404 lin_lwp_wait thread exit handling code.
4405 (stop_wait_callback): Check for threads already having exited and
4406 delete such threads fromt the lwp list when discovered.
4407 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4408
b757528f
JJ
4409 Roland McGrath <roland@redhat.com>
4410 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4411 nptl libthread_db.
4412
087779b1
RH
44132003-06-03 Richard Henderson <rth@redhat.com>
4414
b21fd293
RH
4415 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4416 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4417 (alpha_sigtramp_frame_prev_register): Likewise.
4418 (alpha_heuristic_frame_prev_register): Likewise.
4419 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4420
8ffd9b1b 4421 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4422 alpha-specific register id names.
4423 (alpha_mdebug_frame_unwind_cache): Likewise.
4424 (alpha_mdebug_frame_prev_register): Likewise.
4425
baa490c4
RH
44262003-06-03 Richard Henderson <rth@redhat.com>
4427
4428 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4429 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4430 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4431 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4432 unwind routines.
4433 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4434 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4435 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4436
4437 * alpha-linux-tdep.c: Remove unnecessary includes.
4438 * Makefile.in (alpha-linux-tdep.o): Update.
4439
44402003-06-03 Richard Henderson <rth@redhat.com>
4441
4442 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4443 (alphabsd_fill_fpreg): Likewise.
4444
f534e522
JB
44452003-06-03 J. Brobecker <brobecker@gnat.com>
4446
4447 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4448 references to struct frame_info fields by calls to the equivalent
4449 accessors. Necessary now that frame_info is opaque.
4450
4035536b
JB
44512003-06-03 J. Brobecker <brobecker@gnat.com>
4452
4453 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4454 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4455 structure, field no longer exists.
4456
0bd79c5c
JB
44572003-06-03 J. Brobecker <brobecker@gnat.com>
4458
4459 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4460 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4461
37bb6d9f
JB
44622003-06-03 J. Brobecker <brobecker@gnat.com>
4463
4464 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4465 references to struct frame_info fields by calls to the equivalent
4466 accessors. Necessary now that frame_info is opaque.
4467
852ee05c
JB
44682003-06-03 J. Brobecker <brobecker@gnat.com>
4469
4470 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4471 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4472 structure, field no longer exists.
4473
7d58c67d
TR
44742003-06-03 Theodore A. Roth <troth@openavr.org>
4475
8ffd9b1b 4476 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4477 accumulation of the size of all registers instead of blindly using
4478 DEPRECATED_REGISTER_BYTES.
4479
0a48e7e8
MS
44802003-06-03 Michael Snyder <msnyder@redhat.com>
4481
4482 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4483 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4484 for h8300sx.
4485
9798ab0d
JB
44862003-06-03 J. Brobecker <brobecker@gnat.com>
4487
4488 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4489 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4490
00b037e2
AC
44912003-06-03 Andrew Cagney <cagney@redhat.com>
4492
4493 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4494 (sparc_convert_to_raw): Delete function.
4495 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4496 register_convert_to_virtual.
4497
043b2f77
JJ
44982003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4499
4500 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4501 layer if not dealing with a statically-linked threaded program.
4502
f43caff8
KW
45032003-06-03 Kris Warkentin <kewarken@qnx.com>
4504
4505 * solib.c (solib_open): Update comment to reflect actual search order.
4506
ae1e7417
AC
45072003-06-03 Andrew Cagney <cagney@redhat.com>
4508
4509 * frame.c (get_frame_memory_signed): New function.
4510 (get_frame_memory, get_frame_memory_unsigned): New function.
4511 (get_frame_arch): New function.
4512 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4513 (get_frame_memory, get_frame_unsigned_memory): Declare.
4514 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4515 get_frame_memory_unsigned and get_frame_arch.
4516 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4517
cb123844
RG
45182003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4519
4520 * MAINTAINERS (write after approval): Add myself.
4521
1bb792e9
JB
45222003-06-03 Jim Blandy <jimb@redhat.com>
4523
4524 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4525 elements of gregset_t are 64 bits each, but access registers
4526 are still 32 bits, so they're packed two per gregset_t
4527 element. Unpack/pack them properly.
4528
aee8d8ba
DC
45292003-06-02 David Carlton <carlton@bactrian.org>
4530
4531 * linespec.c (find_methods): Break out code into
4532 add_matching_methods and add_constructors.
4533 (add_matching_methods): New.
4534 (add_constructors): Ditto.
4535
bf7488d2
AC
45362003-06-02 Andrew Cagney <cagney@redhat.com>
4537
bf7488d2
AC
4538 * sparc-tdep.c (sparc_print_registers): Delete call to
4539 REGISTER_CONVERTIBLE.
4540 (sparc_gdbarch_init): Do not set register_convertible.
4541 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4542 * frv-tdep.c (frv_gdbarch_init): Ditto.
4543 * cris-tdep.c (cris_gdbarch_init): Ditto.
4544
adedef68
EZ
45452003-06-02 Elena Zannoni <ezannoni@redhat.com>
4546
8ffd9b1b 4547 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4548 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4549 (syms_from_objfile): Ditto.
4550
650fcc91
AS
45512003-06-03 Andreas Schwab <schwab@suse.de>
4552
4553 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4554 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4555
df4a182b
RH
45562003-06-02 Richard Henderson <rth@redhat.com>
4557
4558 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4559 a member of all_reggroup.
4560
c483c494
RH
45612003-06-02 Richard Henderson <rth@redhat.com>
4562
4563 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4564 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4565 (alpha_lds, alpha_sts): New.
4566 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4567 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4568 restructure and fail for type sizes other than 4 or 8.
4569 (alpha_value_to_register): Similarly.
4570 (alpha_extract_return_value): Use alpha_sts.
4571 (alpha_store_return_value): Use alpha_lds.
4572 (alpha_gdbarch_init): Update hooks.
4573
b38b6be2
RH
45742003-06-02 Richard Henderson <rth@redhat.com>
4575
4576 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4577 regnum identifiers.
4578 (alpha_sigtramp_register_address): Likewise.
4579
98a8e1e5
RH
45802003-06-02 Richard Henderson <rth@redhat.com>
4581
4582 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4583 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4584 * alpha-tdep.h: Declare them.
4585
4586 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4587 Remove zerobuf. Don't error on UNIQUE.
4588 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4589 (ALPHA_REGSET_UNIQUE): Provide default.
4590 (supply_gregset): Use alpha_supply_int_regs.
4591 (fill_gregset): Use alpha_fill_int_regs.
4592 (supply_fpregset): Use alpha_supply_fp_regs.
4593 (fill_fpregset): Use alpha_fill_fp_regs.
4594 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4595 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4596 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4597 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4598 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4599 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4600
67dfac52
RH
46012003-06-02 Richard Henderson <rth@redhat.com>
4602
f75d70cc
RH
4603 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4604
67dfac52
RH
4605 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4606 (alpha_store_return_value): Likewise.
4607
0cf566ec
DC
46082003-06-02 David Carlton <carlton@math.stanford.edu>
4609
4610 * block.c (contained_in): Add 'const' to arguments.
4611 (block_function): Ditto.
4612 * block.h: Update declarations for block_function and
4613 contained_in.
4614
cdef89d0
DC
46152003-06-02 David Carlton <carlton@math.stanford.edu>
4616
4617 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4618 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4619 * p-valprint.c (pascal_val_print): Ditto.
4620 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4621
72667056
RH
46222003-06-02 Richard Henderson <rth@redhat.com>
4623
98a8e1e5
RH
4624 * alpha-tdep.c (alpha_push_dummy_call): Use
4625 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4626
8ffd9b1b 4627 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4628 sign-extension of 32-bit values.
4629 (alpha_store_return_value): Similarly.
0ede8eca 4630
98a8e1e5
RH
4631 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4632 (alpha_extract_return_value): Likewise.
4633 (alpha_store_return_value): Likewise.
7b5e1cb3 4634
98a8e1e5
RH
4635 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4636 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4637
98a8e1e5
RH
4638 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4639 (alpha_extract_struct_value_address): Likewise.
4640 (alpha_store_return_value): Likewise.
4641 (alpha_store_struct_return): Remove.
4642 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4643
98a8e1e5
RH
4644 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4645 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4646 macros where appropriate.
4647 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4648 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4649
98a8e1e5
RH
4650 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4651 for SP, GP; void_func_ptr for PC; non-language-specific types
4652 for all others.
4653 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4654
6dd77b81
RH
46552003-06-02 Richard Henderson <rth@redhat.com>
4656
4657 * top.h (lim_at_start): Declare.
4658 * main.c (captured_main): Set it.
4659 * top.c (lim_at_start): Define.
4660 (command_loop): Use it instead of &environ.
4661 * event-top.c (command_handler): Likewise.
4662
f4dbdb54
JT
46632003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4664
4665 * mipsnbsd-tdep.c: Update copyright years.
4666 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4667
8f285956
RH
46682003-06-01 Richard Henderson <rth@redhat.com>
4669
98a8e1e5
RH
4670 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4671 (alpha-linux-tdep.o): Update dependencies.
4672 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4673 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4674
615967cb
RH
46752003-06-01 Richard Henderson <rth@redhat.com>
4676
98a8e1e5
RH
4677 * alpha-tdep.c (alpha_register_reggroup_p): New.
4678 (alpha_gdbarch_init): Register it.
615967cb 4679
b59661bd
AC
46802003-06-02 Andrew Cagney <cagney@redhat.com>
4681
4682 * dwarfread.c: Eliminate "register"
4683 (decode_die_type): Eliminate assignment within "if".
4684 (struct_type, decode_array_element_type): Ditto.
4685 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4686 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4687 (decode_modified_type, completedieinfo): Ditto.
4688 * block.c: Eliminate "register".
4689 (blockvector_for_pc_sect): Eliminate assignment within "if".
4690 * cp-support.h (struct symbol): Opaque declaration.
4691 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4692
5ef165c2
RH
46932003-06-01 Richard Henderson <rth@redhat.com>
4694
98a8e1e5
RH
4695 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4696 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4697
143985b7
AF
46982003-06-01 Adam Fedor <fedor@gnu.org>
4699
4700 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4701 * gdbarch.[ch]: Regenerate.
4702 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4703 (hppa_gdbarch_init): Set it in the gdbarch vector.
4704 * i386-tdep.c (i386_fetch_pointer_argument): New
4705 (i386_gdbarch_init): Set it into gdbarch.
4706 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4707 (rs6000_gdbarch_init): Set it in gdbarch.
4708 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4709 (sparc_gdbarch_init): Set it in gdbarch.
4710
ae0167b9
AC
47112003-06-01 Andrew Cagney <cagney@redhat.com>
4712
7c0b4a20
AC
4713 * defs.h (extract_address): Delete declaration.
4714 * findvar.c (extract_address): Delete function.
4715 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4716 extract_address with the inline equivalent,
4717 extract_unsigned_integer.
4718 (xstormy16_extract_struct_value_address): Ditto.
4719 (xstormy16_pointer_to_address): Ditto.
4720 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4721 * v850-tdep.c (v850_push_arguments): Ditto.
4722 (v850_extract_return_value): Ditto.
4723 (v850_extract_struct_value_address): Ditto.
4724 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4725 (sparcnbsd_get_longjmp_target_64): Ditto.
4726 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4727 (get_longjmp_target): Ditto.
4728 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4729 (sh64_extract_struct_value_address): Ditto.
4730 (sh_push_arguments): Ditto.
4731 (sh64_push_arguments): Ditto.
4732 * remote-vxsparc.c (vx_read_register): Ditto.
4733 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4734 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4735 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4736 * mipsv4-nat.c (get_longjmp_target): Ditto.
4737 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4738 * mips-nat.c (get_longjmp_target): Ditto.
4739 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4740 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4741 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4742 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4743 * irix5-nat.c (get_longjmp_target): Ditto.
4744 * irix4-nat.c (get_longjmp_target): Ditto.
4745 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4746 (ia64_push_arguments): Ditto.
4747 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4748 * h8300-tdep.c (h8300_push_arguments): Ditto.
4749 (h8300_store_return_value): Ditto.
4750 (h8300_extract_struct_value_address): Ditto.
4751 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4752 (frv_push_arguments): Ditto.
4753 * avr-tdep.c (avr_pointer_to_address): Ditto.
4754 (avr_push_arguments): Ditto.
4755 * arm-tdep.c (arm_push_dummy_call): Ditto.
4756 (arm_get_longjmp_target): Ditto.
4757 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4758 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4759 (alpha_get_longjmp_target): Ditto.
4760
ae0167b9
AC
4761 * solib-irix.c (extract_mips_address): Inline extract_address,
4762 replacing it with extract_signed_integer.
4763 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4764 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4765 (first_link_map_member, open_symbol_file_object): Ditto.
4766 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4767 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4768 (LM_NEXT, LM_NAME): Ditto.
4769
44d88583
RH
47702003-06-01 Richard Henderson <rth@redhat.com>
4771
98a8e1e5
RH
4772 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4773 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4774 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4775 (alpha_cannot_store_register): Likewise.
4776 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4777 * alpha-nat.c (supply_gregset): Likewise.
4778 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4779
310e9b6a
AC
47802003-06-01 Andrew Cagney <cagney@redhat.com>
4781
4782 * infcall.c (call_function_by_hand): Update comment on
4783 DEPRECATED_DUMMY_WRITE_SP.
4784
4785 * mips-tdep.c (mips_gdbarch_init): Do not set
4786 deprecated_dummy_write_sp.
4787 (mips_eabi_push_dummy_call): Set the SP register.
4788 (mips_o64_push_dummy_call): Set the SP register.
4789 (mips_o32_push_dummy_call): Set the SP register.
4790 (mips_n32n64_push_dummy_call): Set the SP register.
4791
5ab84872
RH
47922003-06-01 Richard Henderson <rth@redhat.com>
4793
98a8e1e5
RH
4794 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4795 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4796 (supply_gregset): Likewise.
4797 * alpha-tdep.c (alpha_store_return_value): Likewise.
4798 (alpha_get_longjmp_target): Likewise.
4799 (alpha_register_name): Constify array.
4800 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4801 deprecated_register_size, deprecated_register_bytes,
4802 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4803 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4804 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4805
09cc52fd
RH
48062003-06-01 Richard Henderson <rth@redhat.com>
4807
4808 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4809 from arg_reg_buffer to regcache to avoid double conversion.
4810
c7f16359
MK
48112003-06-01 Mark Kettenis <kettenis@gnu.org>
4812
4813 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4814 SP_REGNUM.
4815 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4816 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4817
7131cb6e
RH
48182003-06-01 Richard Henderson <rth@redhat.com>
4819
98a8e1e5
RH
4820 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4821 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4822
f3e0f90b
RH
48232003-06-01 Richard Henderson <rth@redhat.com>
4824
98a8e1e5
RH
4825 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4826 not overlapping PC_REGNUM.
f3e0f90b 4827
c88e30c0
RH
48282003-06-01 Richard Henderson <rth@redhat.com>
4829
98a8e1e5
RH
4830 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4831 alpha_push_arguments. Don't dump argument register data to
4832 the target stack. Fix float and 128-bit long double semantics.
4833 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4834 (alpha_fix_call_dummy): Remove.
4835 (alpha_call_dummy_words): Remove.
4836 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4837
f1a559ae
RH
48382003-06-01 Richard Henderson <rth@redhat.com>
4839
4840 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4841
5e045346
AC
48422003-06-01 Andrew Cagney <cagney@redhat.com>
4843
95404a3e
AC
4844 * mips-tdep.c (is_mips16_addr): New function.
4845 (make_mips16_addr, unmake_mips16_addr): New functions.
4846 (pc_is_mips16, mips_fetch_instruction): Use.
4847 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4848 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4849 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4850 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4851 TARGET_MIPS.
4852 * config/mips/tm-mips.h: Update copyright.
4853 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4854 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4855 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4856 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4857 (TM_PRINT_INSN_MACH): Delete.
4858 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4859
5e045346
AC
4860 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4861 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4862 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4863 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4864 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4865 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4866 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4867 mips*-*-riscos* and mips*-*-sysv* onto mips.
4868 * config/mips/mips64.mt: New file.
4869 * config/mips/mips.mt: New file.
4870 * config/mips/littlemips.mt: Delete file.
4871 * config/mips/decstation.mt: Delete file.
4872 * config/mips/vr4300el.mt: Delete file.
4873 * config/mips/vr5000el.mt: Delete file.
4874 * config/mips/vr5000.mt: Delete file.
4875 * config/mips/vr4100.mt: Delete file.
4876 * config/mips/vr4xxxel.mt: Delete file.
4877 * config/mips/vr4300.mt: Delete file.
4878 * config/mips/vr4xxx.mt: Delete file.
4879 * config/mips/bigmips.mt: Delete file.
4880 * config/mips/bigmips64.mt: Delete file.
4881 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4882 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4883 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4884 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4885 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4886 "tm-bigmips.h".
4887 * config/mips/tm-irix3.h: Ditto.
4888 * config/mips/tm-mipsv4.h: Ditto.
4889 * config/mips/tm-embed.h: Ditto.
4890 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4891 "tm-bigmips64.h".
4892 * config/mips/tm-vr5000el.h: Delete file.
4893 * config/mips/tm-tx39l.h: Delete file.
4894 * config/mips/tm-vr4300el.h: Delete file.
4895 * config/mips/tm-vr4xxxel.h: Delete file.
4896 * config/mips/tm-vr4300.h: Delete file.
4897 * config/mips/tm-vr4100.h: Delete file.
4898 * config/mips/tm-vr4xxx.h: Delete file.
4899 * config/mips/tm-vr5000.h: Delete file.
4900 * config/mips/tm-embedl64.h: Delete file.
4901 * config/mips/tm-embedl.h: Delete file.
4902 * config/mips/tm-embed64.h: Delete file.
4903 * config/mips/tm-bigmips64.h: Delete file.
4904 * config/mips/tm-bigmips.h: Delete file.
4905
2473a4a9
MK
49062003-06-01 Mark Kettenis <kettenis@gnu.org>
4907
97a5b208
MK
4908 Fix gdb/1216.
4909 * shnbsd-nat.c: Include "sh-tdep.h".
4910
2473a4a9
MK
4911 From Richard Henderson <rth@redhat.com>:
4912 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4913
e0f7ec59
AC
49142003-05-31 Andrew Cagney <cagney@redhat.com>
4915
4916 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4917 forward declaration.
4918 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4919 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4920 (mips_find_saved_regs): Use set_reg_offset.
4921 (mips_frame_init_saved_regs): Delete function.
4922 (mips_pop_frame): Call mips_find_saved_regs instead of
4923 DEPRECATED_FRAME_INIT_SAVED_REGS.
4924
68dcc709
AC
49252003-05-31 Andrew Cagney <cagney@redhat.com>
4926
4927 * mips-tdep.c (mips_gdbarch_init): Do not set
4928 deprecated_max_register_raw_size, register_virtual_size, and
4929 deprecated_max_register_virtual_size.
4930
cfc14b3a
MK
49312003-05-31 Mark Kettenis <kettenis@gnu.org>
4932
6405b0a6
MK
4933 * i386-tdep.c: Include "dwarf2-frame.h".
4934 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4935 * Makefile.in (i386-tdep.o): Update dependencies.
4936
cfc14b3a
MK
4937 * dwarf2-frame.c, dwarf2-frame.h: New files.
4938 * Makefile.in (SFILES): Add dwarf2-frame.c.
4939 (dwarf2_frame_h): Define.
4940 (COMMON_OBS): Add dwarf2-frame.o.
4941 (dwarf2-frame.o): Add dependencies.
4942
6a2751d2
AJ
49432003-05-31 Andreas Jaeger <aj@suse.de>
4944
4945 * x86-64-linux-nat.c: Fix comment.
4946
1c3545ae
MK
49472003-05-31 Mark Kettenis <kettenis@gnu.org>
4948
10f93086
MK
4949 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4950 function signature.
4951
1c3545ae
MK
4952 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4953 have a sigcontext_addr handler.
4954 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4955 sigcontext_addr handler.
4956
e11c53d2
AC
49572003-05-31 Andrew Cagney <cagney@redhat.com>
4958
4959 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4960 (print_fp_register_row): Replace do_fp_register_row.
4961 (mips_print_fp_register): Add "file" and "frame" parameters.
4962 (mips_print_register): Add "file" and "frame" parameters.
4963 (mips_print_registers_info): Replace mips_do_registers_info.
4964 (mips_gdbarch_init): Set print_registers_info instead of
4965 deprecated_do_registers_info.
4966 (mips_read_fp_register_single): Add "frame" parameter.
4967 (mips_read_fp_register_double): Add "frame" parameter.
4968
a3386186
MK
49692003-05-31 Mark Kettenis <kettenis@gnu.org>
4970
70913449
MK
4971 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4972 Fixes a bug where GDB would print the wrong register names for
4973 targets without SSE.
4974
2b5e0749
MK
4975 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4976 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4977 registers.
4978
4979 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4980 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4981 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4982 TDEP->sc_sp_offset.
4983
a3386186
MK
4984 From Michal Ludvig <mludvig@suse.cz>:
4985 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4986 and `sc_num_regs'.
4987 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4988 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4989 I386_ST0_REGNUM): Move here from...
4990 * i386-tdep.c: ... here.
4991 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4992 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4993 registers if possible.
4994 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4995 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4996 Remove variables.
4997 (i386bsd_sc_reg_offset): New variable.
4998 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4999 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5000 TDEP->sc_sp_offset.
5001 (i386fbsd_sc_reg_offset): New variable.
5002 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5003 TDEP->sc_num_regs.
5004 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5005 variables.
5006 (i386fbsd4_sc_reg_offset): New variable.
5007 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5008 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5009 TDEP->sc_sp_offset.
5010 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5011 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5012 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5013 Remove variables.
5014 (i386nbsd_sc_reg_offset): New variable.
5015 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5016 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5017 TDEP->sc_sp_offset.
5018 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5019 Remove variables.
5020 (i386obsd_sc_reg_offset): New variable.
5021 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5022 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5023 TDEP->sc_sp_offset.
5024 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5025 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5026 for frame pointer offset in `struct sigcontext'.
5027
25ab4790
AC
50282003-05-31 Andrew Cagney <cagney@redhat.com>
5029
5030 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5031 architecture methods call_dummy_words, sizeof_call_dummy_words,
5032 push_return_address, store_struct_return, and fix_call_dummy. Set
5033 push_dummy_call instead of deprecated_push_arguments.
5034 (mips_store_struct_return): Delete function.
5035 (mips_fix_call_dummy): Delete function.
5036 (mips_push_return_address): Delete function.
5037 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5038 RA_REGNUM and T9_REGNUM.
5039 (mips_n32n64_push_dummy_call): Ditto for
5040 mips_n32n64_push_arguments.
5041 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5042 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5043
6a65450a
AC
50442003-05-31 Andrew Cagney <cagney@redhat.com>
5045
5046 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5047 "dummy_addr" to "bp_addr".
5048 * infcall.c (call_function_by_hand): Pass "funaddr" to
5049 gdbarch_push_dummy_call.
5050 * gdbarch.h, gdbarch.c: Re-generate.
5051 * i386-tdep.c (i386_push_dummy_call): Update.
5052 * arm-tdep.c (arm_push_dummy_call): Update.
5053 * d10v-tdep.c (d10v_push_dummy_call): Update.
5054
c4f35dd8
MK
50552003-05-31 Mark Kettenis <kettenis@gnu.org>
5056
5057 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5058 variable declarations.
5059 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5060 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5061 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5062 x86_64_init_frame_pc, x86_64_init_frame_pc,
5063 x86_64_function_has_prologue): Remove prototypes.
5064 (X86_64_NUM_GREGS): New define.
5065 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5066 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5067 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5068 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5069 XMM1_REGNUM): Remove defines.
5070 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5071 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5072 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5073 X86_64_XMM1_REGNUM): New defines.
5074 (struct x86_64_register_info): Renamed from `struct
5075 register_info'. Remove `size' member.
5076 (x86_64_register_info_table): Remove variable.
5077 (x86_64_register_info): New variable.
5078 (X86_64_NUM_REGS): New define.
5079 (X86_64_NUM_GREGS): Remove define.
5080 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5081 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5082 Remove variables.
5083 (x86_54_dwarf2_reg_to_regnum): Remove function.
5084 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5085 (x86_64_dwarf_reg_to_regnum): New function.
5086 (x86_64_register_name): Rewrite.
5087 (x86_64_register_raw_size): Remove function.
5088 (x86_64_register_byte_table): Remove variable.
5089 (x86_64_register_byte): Remove function.
5090 (x86_64_register_virtual_type): Remove function.
5091 (x86_64_register_type): New function.
5092 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5093 x86_64_register_convert_to_raw): Remove functions.
5094 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5095 (x86_64_use_struct_convention): Make static. Adjust for renamed
5096 defines.
5097 (x86_64_frame_init_saved_regs): Remove function.
5098 (x86_64_push_arguments): Make static. Change to accept a regcache
5099 as argument.
5100 (x86_64_store_return_value, x86_64_extract_return_value): Make
5101 static. Rewrite based on i386 counterparts.
5102 (x86_64_push_dummy_call): New function.
5103 (X86_64_NUM_SAVED_REGS): New define.
5104 (x86_64_register_number): Remove function.
5105 (x86_64_store_struct_return): Remove function.
5106 (x86_64_frameless_function_invocation,
5107 x86_64_function_has_prologue): Remove functions.
5108 (PROLOG_BUFSIZE): Remove define.
5109 (struct x86_64_frame_cache): New structure.
5110 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5111 x86_64_frame_cache, x86_64_frame_this_id,
5112 x86_64_frame_prev_register, x86_64_frame_p,
5113 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5114 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5115 functions.
5116 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5117 variables.
5118 (x86_64_skip_prologue): Rewrite in terms of
5119 x86_64_analyze_prologue.
5120 (x86_64_frame_base_address): New function.
5121 (x86_64_frame_base): New variable.
5122 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5123 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5124 set deprecated_fp_regnum, deprecated_register_size,
5125 deprecated_register_bytes, register_raw_size, register_byte,
5126 register_virtual_type, register_convertiable,
5127 register_convert_to_virtual, convert_to_raw,
5128 deprecated_get_saved_register, deprecated_target_read_fp,
5129 deprecated_push_arguments, deprecated_push_return_address,
5130 deprecated_pop_frame, deprecated_store_struct_return,
5131 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5132 frameless_function_invocation, deprecated_frame_saved_pc,
5133 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5134 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5135 deprecated_init_frame_pc and virtual_frame_pointer. Call
5136 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5137 and x86_64_frame_p. Call frame_base_set_default to register
5138 x86_64_frame_base.
5139 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5140 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5141 (_initialize_x86_64_tdep): Remove function.
5142 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5143 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5144 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5145 define.
5146 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5147 (x86_64_linux_sigcontext_addr): Rewrite.
5148 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5149 x86_64_linux_frame_saved_pc): Remove functions.
5150 (x86_64_linux_pc_in_sigtramp): Renamed from
5151 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5152 trampoline.
5153 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5154 Remove_functions.
5155 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5156 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5157 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5158 (x86_64_regmap): Rename to regmap.
5159 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5160 x86_64_num_gregs.
5161 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5162 x86_64_regmap.
5163 (x86_64_fxsave_offset): Remove function.
5164 (supply_fpregset): Simply call x86_64_supply_fxsave.
5165 (fill_fpregset): Simply call x86_64_fill_fxsave.
5166 (fetch_inferior_registers, store_inferior_registers): Avoid
5167 asignment in if-statement.
5168 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5169 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5170 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5171 (fetch_core_registers): Remove function.
5172 (linux_elf_core_fns): Remove.
5173 (offsetoff): Don't define.
5174 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5175 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5176 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5177 add core-regset.o.
5178 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5179 protection against multiple includes instead of NM_X86_64_h. Add
5180 various comments. Include "config/nm-linux.h". Don't include
5181 <signal.h>.
5182 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5183 GET_THREAD_SIGNALS): Remove defines.
5184 (x86_64_register_u_addr, kernel_u_size,
5185 lin_thread_get_thread_signals): Remove prototypes.
5186 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5187 [HAVE_LINK_H]: Don't include "solib.h".
5188 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5189 * config/i386/tm-x86-64linux.h: Fix comments.
5190 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5191 x86-64-tdep.o): Update dependencies.
5192
c25083af
AC
51932003-05-30 Andrew Cagney <cagney@redhat.com>
5194
c8f55a7b
AC
5195 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5196 Change parameter type to a "struct regcache *".
5197
c25083af
AC
5198 * gdbarch.sh: Regardless of the multi-arch level, always define
5199 the macro when not already defined.
5200 * gdbarch.h, gdbarch.c: Re-generate.
5201
fbe586ae
RH
52022003-05-30 Richard Henderson <rth@redhat.com>
5203
5204 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5205 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5206 (alpha_mdebug_frame_this_id): Likewise.
5207 (alpha_mdebug_frame_prev_register): Likewise.
5208 (alpha_mdebug_frame_base_address): Likewise.
5209 (alpha_mdebug_frame_locals_address): Likewise.
5210 (alpha_mdebug_frame_args_address): Likewise.
5211 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5212 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5213 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5214 loop increment.
5215 (alpha_heuristic_frame_this_id): Make static.
5216 (alpha_heuristic_frame_prev_register): Likewise.
5217 (alpha_heuristic_frame_base_address): Likewise.
5218 * alpha-tdep.h: Update.
5219
acd5c798
MK
52202003-05-30 Mark Kettenis <kettenis@gnu.org>
5221
5222 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5223 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5224 defenitions.
5225 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5226 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5227 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5228 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5229 I386_ST0_REGNUM): New defines.
5230 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5231 codestream_get): Remove define.
5232 (codestream_next_addr, condestream_addr, condestream_buf,
5233 codestream_off, codestream_cnt): Remove variables.
5234 (codestream_fill, codestream_seek, codestream_read): Remove
5235 functions.
5236 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5237 functionality.
5238 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5239 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5240 i386_frame_saved_pc, i386_saved_pc_after_call,
5241 i386_frame_num_args, i386_frame_init_saved_regs,
5242 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5243 i386_push_arguments): Remove functions.
5244 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5245 functionality. Use i386_analyze_prologue instead of
5246 i386_get_frame_setup.
5247 (I386_NUM_SAVED_REGS): New define.
5248 (struct i386_frame_cache): New structure.
5249 (i386_alloc_frame_cache, i386_analyze_struct_return,
5250 i386_skip_probe, i386_analyze_frame_setup,
5251 i386_analyze_register_saves, i386_analyze_prologue,
5252 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5253 i386_frame_prev_register, i386_sigtramp_frame_cache,
5254 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5255 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5256 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5257 New functions.
5258 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5259 New variables.
5260 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5261 I386_EAX_REGNUM and I386_EDX_REGNUM.
5262 (i386_extract_return_value, i386_store_return_value): Use
5263 I386_ST0_REGNUM where appropriate.
5264 (i386_extract_struct_value_address): Rewrite to use extract_address.
5265 (i386_svr4_pc_in_sigtramp): Add comment.
5266 (i386_svr4_sigcontext_addr): Rewrite.
5267 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5268 TDEP->sc_sp_offset.
5269 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5270 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5271 of new defines. Set push_dummy_call, don't set
5272 deprecated_push_arguments, deprecated_push_return_address,
5273 deprecated_pop_frame. Don't set parm_boundary. Don't set
5274 deprecated_frame_chain, deprecated_frame_saved_pc,
5275 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5276 save_dummy_frame_tos, unwind_pc. Call
5277 frame_unwind_append_predicate and frame_base_set_default. Don't
5278 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5279 Don't set frameless_function_invocation. Don't set
5280 deprecated_register_bytes, deprecated_register_size,
5281 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5282 * i386-linux-tdep.c: Fix formatting in some comments.
5283 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5284 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5285 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5286 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5287 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5288 redundant parentheses.
5289 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5290 (i386_linux_sigcontext_addr): Use it. Rewrite.
5291 (find_minsym_and_objfile): Change name of second argument.
5292 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5293 changed. Use frame_pc_unwind instead of
5294 DEPRECATED_SAVED_PC_AFTER_CALL.
5295 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5296 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5297 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5298 unwinder.
5299 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5300 "dummy-frame.h".
5301 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5302 (_initialize_i386_cygwin_tdep): New prototype.
5303 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5304 deprecated_frame_chain_valid.
5305 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5306 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5307 Rely on the SVR4 defaults.
5308 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5309 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5310
c89b70f1
AC
53112003-05-30 Andrew Cagney <cagney@redhat.com>
5312
5313 * infcall.c (call_function_by_hand): Always call
5314 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5315
85b32d22
RH
53162003-05-30 Richard Henderson <rth@redhat.com>
5317
c89b70f1
AC
5318 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5319 increment.
85b32d22 5320
bfe51b1e
JB
53212003-05-29 Jim Blandy <jimb@redhat.com>
5322
5323 Use gdbarch methods for solib stuff on PowerPC Linux.
5324 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5325 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5326 show through.
5327 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5328 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5329 giving the same effect as the #definitions above.
5330
1abf022c
AF
53312003-05-29 Adam Fedor <fedor@gnu.org>
5332
5333 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5334 (find_implementation_from_class): Replace it with the standard
5335 case i.e. do nothing.
5336
d2427a71
RH
53372003-05-29 Richard Henderson <rth@redhat.com>
5338
5339 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5340 (alpha_linux_sigtramp_offset): Use it. Make static.
5341 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5342 update for new frame model.
5343 * alpha-mdebug-tdep.c: New file.
5344 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5345 (alpha_osf1_init_abi): Install it.
5346 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5347 (linked_proc_desc_table): Remove.
5348 (alpha_frame_past_sigtramp_frame): Remove.
5349 (alpha_dynamic_sigtramp_offset): Remove.
5350 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5351 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5352 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5353 (push_sigtramp_desc): Remove.
5354 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5355 (alpha_cannot_store_register): Likewise.
5356 (alpha_sigcontext_addr): Remove.
5357 (alpha_find_saved_regs): Remove.
5358 (alpha_frame_init_saved_regs): Remove.
5359 (alpha_init_frame_pc_first): Remove.
5360 (read_next_frame_reg): Remove.
5361 (alpha_frame_saved_pc): Remove.
5362 (alpha_saved_pc_after_call): Remove.
5363 (temp_proc_desc, temp_saved_regs): Remove.
5364 (alpha_about_to_return): Remove.
5365 (cached_proc_desc): Remove.
5366 (alpha_frame_chain): Remove.
5367 (alpha_print_extra_frame_info): Remove.
5368 (alpha_init_extra_frame_info): Remove.
5369 (alpha_frame_locals_address): Remove.
5370 (alpha_frame_args_address): Remove.
5371 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5372 (alpha_push_dummy_frame): Remove.
5373 (alpha_pop_frame): Remove.
5374 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5375 (alpha_read_insn): New.
5376 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5377 for different insn encodings.
5378 (alpha_in_lenient_prologue): Remove.
5379 (struct alpha_sigtramp_unwind_cache): New.
5380 (alpha_sigtramp_frame_unwind_cache): New.
5381 (alpha_sigtramp_register_address): New.
5382 (alpha_sigtramp_frame_this_id): New.
5383 (alpha_sigtramp_frame_prev_register): New.
5384 (alpha_sigtramp_frame_unwind): New.
5385 (alpha_sigtramp_frame_p): New.
5386 (struct alpha_heuristic_unwind_cache): New.
5387 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5388 don't count nop insns that occur between functions.
5389 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5390 heuristic_proc_desc, but without the mdebug wrapping.
5391 (alpha_heuristic_frame_this_id): New.
5392 (alpha_heuristic_frame_prev_register): New.
5393 (alpha_heuristic_frame_unwind): New.
5394 (alpha_heuristic_frame_p): New.
5395 (alpha_heuristic_frame_base_address): New.
5396 (alpha_heuristic_frame_base): New.
5397 (alpha_unwind_dummy_id): New.
5398 (alpha_unwind_pc): New.
5399 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5400 frame related deprecated initializations; install replacements.
5401 (alpha_dump_tdep): Remove.
5402 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5403 (alpha_read_insn, alpha_after_prologue,
5404 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5405 alpha_heuristic_frame_prev_register,
5406 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5407 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5408 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5409 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5410
93ec1121
AC
54112003-05-29 Andrew Cagney <cagney@redhat.com>
5412
5413 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5414 dependant on the availability of ASSERT_FUNCTION.
5415 (ASSERT_FUNCTION): Do not define when there is no function name.
5416
98f08d3d
KB
54172003-05-29 Kevin Buettner <kevinb@redhat.com>
5418
5419 From Jimi X <jimix@watson.ibm.com>:
5420 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5421
0897f59b
JB
54222003-05-28 Jim Blandy <jimb@redhat.com>
5423
5424 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5425 argument to ptrace to int; the system headers should give it the
5426 right type, and pointers don't fit in ints on powerpc64-*-*.
5427
14898363
L
54282003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5429
5430 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5431 DW_TAG_catch_block.
5432
a7a48797
EZ
54332003-05-26 Elena Zannoni <ezannoni@redhat.com>
5434
5435 * stabsread.c (dbx_lookup_type): Make static.
5436 (read_type): Ditto.
5437 (add_undefined_type): Ditto.
5438 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5439 not export.
5440
f5479e9c
EZ
54412003-05-26 Elena Zannoni <ezannoni@redhat.com>
5442
5443 * hpread.c (hpread_has_name): Make static.
5444 (hpread_psymtab_to_symtab): Ditto.
5445 (file_exists): Ditto.
5446 (hpread_call_pxdb): Ditto.
5447 (hpread_pxdb_needed): Ditto.
5448 (hpread_quick_traverse): Ditto.
5449 (hpread_get_header): Ditto.
5450 (hpread_get_lntt): Ditto.
5451 (hpread_get_slt): Ditto.
5452 (class_of): Ditto.
5453
eb2e12d7
AS
54542003-05-25 Andreas Schwab <schwab@suse.de>
5455
78bf922a
AS
5456 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5457 stack_align and deprecated_extra_stack_alignment_needed.
5458 (m68k_stack_align): Delete.
5459
eb2e12d7
AS
5460 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5461 (m68k_register_virtual_size): Likewise.
5462 (altos_skip_prologue): Remove obsolete function.
5463 (isi_frame_num_args): Likewise.
5464 (news_frame_num_args): Likewise.
5465 (m68k_fix_call_dummy): Make static.
5466 (m68k_push_dummy_frame): Likewise.
5467 (m68k_pop_frame): Likewise.
5468 (m68k_skip_prologue): Likewise.
5469 (m68k_frame_init_saved_regs): Likewise.
5470 (m68k_saved_pc_after_call): Likewise.
5471 (m68k_get_longjmp_target): Make multi-arch.
5472 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5473 structure. Register m68k_get_longjmp_target if enabled.
5474 * m68k-tdep.h (struct gdbarch_tdep): Define.
5475 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5476
5477 * Makefile.in (config.status): Also depend on configure.tgt
5478 and configure.host.
5479 (m68klinux-tdep.o): Update dependencies.
5480 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5481 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5482 (M68K_LINUX_JB_PC): Define.
5483 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5484 and take additional parameter.
5485 (m68k_linux_sigtramp_saved_pc): Update.
5486 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5487 m68k_linux_pc_in_sigtramp, in_plt_section,
5488 find_solib_trampoline_target.
5489 * config/m68k/tm-linux.h: Don't include any tm headers.
5490 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5491 (JB_ELEMENT_SIZE): Likewise.
5492 (JB_PC): Likewise.
5493 (GET_LONGJMP_TARGET): Likewise.
5494 (IN_SIGTRAMP): Likewise.
5495 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5496
eb2c22dc
MK
54972003-05-25 Mark Kettenis <kettenis@gnu.org>
5498
5499 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5500 (sparc32_push_arguments): Re-implement by calling
5501 sparc32_do_push_arguments.
5502
44b7b84e
MK
55032003-05-25 Mark Kettenis <kettenis@gnu.org>
5504
5505 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5506 SPARC_O1_REGNUM): New defines.
5507 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5508 (sparc32_store_return_value): New function.
5509 (sparc_extract_struct_value_address): Rewrite to operate on a
5510 regcache.
5511 (sparc_gdbarch_init): Don't set
5512 deprecated_extract_struct_value_address. Set
5513 extract_struct_value_address instead. Don't set
5514 deprecated_extract_return_value and deprecated_store_return_value
5515 for 32-bit targets. Set extract_return_value and
5516 store_return_value instead.
5517 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5518 DEPRECTAED_EXTRACT_RETURN_VALUE,
5519 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5520 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5521 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5522 (sparc_store_return_value): Remove prototype.
5523 (sparc32_store_return_value): New prototype.
5524 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5525 Adjust prototypes.
5526
f6ad61e3
MK
55272003-05-24 Mark Kettenis <kettenis@gnu.org>
5528
5529 * sparcnbsd-tdep.c: Include "gdb_string.h".
5530
b276f1bb
AC
55312003-05-23 Andrew Cagney <cagney@redhat.com>
5532
5533 * p-valprint.c (pascal_val_print): Replace extract_address with
5534 the inline equivalent extract_unsigned_integer.
5535 * jv-valprint.c (java_value_print): Ditto.
5536 * ada-valprint.c (ada_val_print_1): Ditto.
5537 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5538
e76c5fcc
TR
55392003-05-23 Theodore A. Roth <troth@openavr.org>
5540
5541 * blockframe.c (frameless_look_for_prologue): Remove unused
5542 after_prologue variable.
5543
2cdd89cb
MK
55442003-05-23 Mark Kettenis <kettenis@gnu.org>
5545
5546 * blockframe.c (get_pc_function_start): Rewrite to avoid
5547 asignments in if-statements.
5548
182d43bc
EZ
55492003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5550
5551 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5552 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5553 files, don't relocate absolute symbols (and do use mst_abs).
5554
e8f3fcdd
AC
55552003-05-23 Andrew Cagney <cagney@redhat.com>
5556
5557 * objc-lang.c: Include "gdb_assert.h".
5558 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5559 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5560 (gdb_check, gdb_check_fatal): Delete functions.
5561 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5562 gdb_assert.
5563 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5564 * Makefile.in (objc-lang.o): Update dependencies.
5565
3c23e6fb
ILT
55662003-05-22 Ian Lance Taylor <ian@airs.com>
5567
5568 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5569 with fprintf_filtered, not fprintf_unfiltered.
5570
af1342ab
AC
55712003-05-22 Andrew Cagney <cagney@redhat.com>
5572
5573 * stack.c (frame_info): Inline extract_address, replacing it with
5574 extract_unsigned_integer.
5575 * findvar.c (unsigned_pointer_to_address): Ditto.
5576 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5577 * dwarf2expr.c (dwarf2_read_address): Ditto.
5578 * frame.c (frame_pc_unwind): Update comment.
5579 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5580
47e242ec
JJ
55812003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5582
5583 * infptrace.c (detach): Call print_sys_errmsg rather than
5584 perror_with_name to issue warning message when errno is non-zero
5585 after calling ptrace detach.
5586
e2ac8128
JB
55872003-05-21 J. Brobecker <brobecker@gnat.com>
5588
5589 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5590 macro definitions from here...
5591 * hppa-tdep.c: ...to there.
5592
92b3541e
KB
55932003-05-20 Kevin Buettner <kevinb@redhat.com>
5594
5595 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5596 register_ptrace_addr(). Fix all callers.
5597
55809acb
AS
55982003-05-21 Andreas Schwab <schwab@suse.de>
5599
5600 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5601 dependencies.
5602 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5603 end.
5604 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5605 (_initialize_m68k_linux_tdep): New function.
5606 (m68k_linux_frame_saved_pc): Make static.
5607 (m68k_linux_extract_return_value): Likewise.
5608 (m68k_linux_store_return_value): Likewise.
5609 (m68k_linux_extract_struct_value_address): Likewise.
5610 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5611 Remove.
5612 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5613 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5614 (DEPRECATED_FRAME_SAVED_PC): Remove.
5615
0fbc10f7
KW
56162003-05-20 Kris Warkentin <kewarken@qnx.com>
5617
5618 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5619 regset numbering rather than our own.
5620
58da2eb2
DC
56212003-05-19 David Carlton <carlton@bactrian.org>
5622
5623 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5624
1fcb5155
DC
56252003-05-19 David Carlton <carlton@bactrian.org>
5626
5627 Partial fix for PR c++/827.
5628 * cp-support.h: Include symtab.h.
5629 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5630 * cp-namespace.c: Update contributors.
5631 (cp_lookup_symbol_nonlocal): New.
5632 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5633 (lookup_symbol_file): Ditto.
5634 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5635 * block.h: Declare block_scope, block_using, block_global_block.
5636 * block.c (block_scope): New.
5637 (block_using, block_global_block): Ditto.
5638 * Makefile.in (cp_support_h): Depend on symtab_h.
5639 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5640
5f9a71c3
DC
56412003-05-19 David Carlton <carlton@bactrian.org>
5642
5643 * language.h (struct language_defn): Add 'la_value_of_this'
5644 and 'la_lookup_symbol_nonlocal' members.
5645 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5646 lookup_symbol_static, lookup_symbol_global,
5647 lookup_symbol_aux_block.
5648 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5649 if we should search fields of this and how to do static/global
5650 lookup.
5651 (lookup_symbol_aux_block): Make extern.
5652 (basic_lookup_symbol_nonlocal): New.
5653 (lookup_symbol_static, lookup_symbol_global): Ditto.
5654 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5655 'la_lookup_symbol_nonlocal' members.
5656 * c-lang.c (c_language_defn, cplus_language_defn)
5657 (asm_language_defn, minimal_language_defn): Ditto.
5658 * jv-lang.c (java_language_defn): Ditto.
5659 * language.c (unknown_language_defn, auto_language_defn)
5660 (local_language_defn): Ditto.
5661 * m2-lang.c (m2_language_defn): Ditto.
5662 * objc-lang.c (objc_language_defn): Ditto.
5663 * scm-lang.c (scm_language_defn): Ditto.
5664 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5665 * p-lang.c (pascal_language_defn): Ditto for both.
5666 * Makefile.in (f-lang.o): Depend on value_h.
5667 (p-lang.o): Ditto.
5668
89a9d1b1
DC
56692003-05-19 David Carlton <carlton@bactrian.org>
5670
5671 * block.h: Declare block_static_block.
5672 * block.c (block_static_block): New.
5673 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5674 lookup_symbol_aux_local, calling block_static_block instead.
5675 (lookup_symbol_aux_local): Delete 'static_block' argument.
5676
eed3f8ab
DC
56772003-05-19 David Carlton <carlton@bactrian.org>
5678
5679 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5680
a09d8bda
ML
56812003-05-19 Michal Ludvig <mludvig@suse.cz>
5682
5683 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5684 register numbers mapping.
5685
69636828
AF
56862003-05-18 Adam Fedor <fedor@gnu.org>
5687
5688 * symtab.c (completion_list_objc_symbol): New function.
5689 (make_symbol_completion_list): Use it to add ObjC symbols
5690 when looking though the list.
5691 (language_search_unquoted_string): New function.
5692 (make_file_symbol_completion_list): Use it.
5693
55baeb84
AS
56942003-05-18 Andreas Schwab <schwab@suse.de>
5695
d0b45d99
AS
5696 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5697 dependencies.
5698 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5699 as m68k_linux_extract_return_value.
5700 (DEPRECATED_STORE_RETURN_VALUE): Define as
5701 m68k_linux_store_return_value.
5702 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5703 m68k_linux_extract_struct_value_address.
5704 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5705 get_next_frame, get_frame_base, get_frame_pc.
5706 (m68k_linux_frame_saved_pc): Use get_frame_base.
5707 (m68k_linux_extract_return_value): New function.
5708 (m68k_linux_store_return_value): New function.
5709 (m68k_linux_extract_struct_value_address): New function.
5710 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5711
55baeb84
AS
5712 * c-exp.y (typebase): Remove duplicate occurence of
5713 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5714 of lookup_signed_typename.
55baeb84 5715
b6b08ebf
MK
57162003-05-18 Mark Kettenis <kettenis@gnu.org>
5717
5718 * dwarf2loc.c (find_location_expression): Change type of second
5719 argument to `size_t *'.
5720 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5721 for size variable.
5722
5ad1c190
DC
57232003-05-18 David Carlton <carlton@bactrian.org>
5724
5725 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5726 'linkage_name'. Add comment.
5727 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5728 'linkage_name'.
5729 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5730 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5731 (lookup_block_symbol): Ditto.
5732
b8b527c5
AC
57332003-05-16 Andrew Cagney <cagney@redhat.com>
5734
5735 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5736 * gdbarch.h, gdbarch.c: Re-generate.
5737 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5738 * TODO (REGISTER_BYTES): Delete reference.
5739 * alpha-tdep.c (alpha_gdbarch_init): Update.
5740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5741 * x86-64-tdep.c (x86_64_init_abi): Update.
5742 * vax-tdep.c (vax_gdbarch_init): Update.
5743 * v850-tdep.c (v850_gdbarch_init): Update.
5744 * sparc-tdep.c (sparc_gdbarch_init): Update.
5745 * sh-tdep.c (sh_gdbarch_init): Update.
5746 * s390-tdep.c (s390_gdbarch_init): Update.
5747 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5748 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5749 (ns32k_gdbarch_init_32382): Update.
5750 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5751 * mcore-tdep.c (mcore_gdbarch_init): Update.
5752 * m68k-tdep.c (m68k_gdbarch_init): Update.
5753 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5754 * ia64-tdep.c (ia64_gdbarch_init): Update.
5755 * i386-tdep.c (i386_gdbarch_init): Update.
5756 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5757 * hppa-tdep.c (hppa_gdbarch_init): Update.
5758 * h8300-tdep.c (h8300_gdbarch_init): Update.
5759 * frv-tdep.c (frv_gdbarch_init): Update.
5760 * cris-tdep.c (cris_gdbarch_init): Update.
5761 * avr-tdep.c (avr_gdbarch_init): Update.
5762 * arm-tdep.c (arm_gdbarch_init): Update.
5763 * sparc-tdep.c (sparc_pop_frame): Update.
5764 * rs6000-tdep.c (rs6000_pop_frame): Update.
5765 * remote.c (init_remote_state): Update.
5766 (remote_prepare_to_store): Update.
5767 * remote-vx.c (vx_prepare_to_store): Update.
5768 * remote-sds.c (sds_fetch_registers): Update.
5769 (sds_prepare_to_store): Update.
5770 * remote-array.c: Update.
5771 * regcache.c (init_legacy_regcache_descr): Update.
5772 (init_regcache_descr): Update.
5773 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5774 (mips_o64_extract_return_value): Update.
5775 * irix5-nat.c (fetch_core_registers): Update.
5776 * irix4-nat.c (fetch_core_registers): Update.
5777 * i386-tdep.h: Update.
5778 * hppa-tdep.c (pa_do_registers_info): Update.
5779 (pa_do_strcat_registers_info): Update.
5780 * cris-tdep.c (cris_register_bytes_ok): Update.
5781 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5782 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5783 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5784 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5785 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5786 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5787 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5788 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5789 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5790 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5791 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5792 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5793 (REGISTER_BYTES_OK): Update.
5794 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5795 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5796
ee2842e2
ILT
57972003-05-16 Ian Lance Taylor <ian@airs.com>
5798
5799 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5800 (vax_print_insn, print_insn_arg): Remove static functions.
5801 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5802 print_insn_vax from opcodes library.
5803 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5804
973177d3
AC
58052003-05-15 Andrew Cagney <cagney@redhat.com>
5806
aaab4dba
AC
5807 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5808 * target.h (memory_breakpoint_from_pc): Delete declaration.
5809 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5810 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5811 * monitor.c (monitor_insert_breakpoint): Use
5812 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5813 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5814 * gdbarch.h, gdbarch.c: Re-generate.
5815 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5816 (sparc_gdbarch_init): Set breakpoint_from_pc to
5817 sparc_breakpoint_from_pc.
5818 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5819 (BREAKPOINT_FROM_PC): Define.
5820 (sparc_breakpoint_from_pc): Declare.
5821 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5822 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5823 (BREAKPOINT_FROM_PC): Define.
5824 (BREAKPOINT): Delete macro.
5825 * target.h: Update comment.
5826 * s390-tdep.c (s390_gdbarch_init): Update comments.
5827 * remote.c: Update comments.
5828 * remote-mips.c: Update comments.
5829 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5830 * mem-break.c: Update comment.
5831 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5832 (ia64_memory_insert_breakpoint): Update.
5833 * config/sparc/tm-sparc.h: Update comment.
5834 * config/pa/tm-hppa64.h: Update comment.
5835 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5836 (rs6000_breakpoint_from_pc): Update.
5837 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5838 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5839 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5840 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5841 (mips_breakpoint_from_pc): Update.
5842 (mips_dump_tdep): Update.
5843
e06963ff
AC
5844 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5845 * minsyms.c (lookup_minimal_symbol): Inline
5846 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5847
973177d3
AC
5848 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5849 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5850 * p-lang.c (pascal_printstr): Ditto.
5851 * objc-lang.c (objc_printstr): Ditto.
5852 * m2-lang.c (m2_printstr): Ditto.
5853 * jv-valprint.c (java_print_value_fields): Ditto.
5854 * f-lang.c (f_printstr): Ditto.
5855 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5856 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5857 for repeat_count_threshold.
5858 * Makefile.in (cp-valprint.o): Update dependencies.
5859
5ea2bd7f 58602003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5861
5ea2bd7f
JJ
5862 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5863 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5864 they start with mov r2,r12. Support skipping over indirect stores
5865 of the input registers. Upon hitting a non-nop branch instruction
5866 or predicated instruction, bail out by setting lim_pc to the current
5867 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5868 beyond our calculated value and we have trust_limit set,
5869 use the lim_pc value.
5870
cc8c88f3
AC
58712003-05-15 Andrew Cagney <cagney@redhat.com>
5872
5873 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5874 generic_find_dummy_frame.
5875 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5876 (deprecated_generic_find_dummy_frame): Update.
5877 (deprecated_read_register_dummy): Update.
5878 * frame.c (deprecated_generic_get_saved_register): Update.
5879
909cd28e
TR
58802003-05-15 Theodore A. Roth <troth@openavr.org>
5881
5882 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5883 (avr_gdbarch_init): Set breakpoint_from_pc method.
5884
b923b08d
AC
58852003-05-15 Andrew Cagney <cagney@redhat.com>
5886
5887 * regcache.c (build_regcache): Set deprecated_register_valid
5888 directly.
5889 (deprecated_grub_regcache_for_register_valid): Delete function.
5890 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5891 declaration.
5892
ae2f03ac 58932003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5894
5895 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5896 * symtab.c (lookup_symbol_aux): Delete calls to
5897 lookup_symbol_aux_minsyms.
5898 (lookup_symbol_aux_minsyms): Comment out function and
5899 prototype. Delete lookup by mangled name.
ae2f03ac 5900
18ec9831
KB
59012003-05-14 Kevin Buettner <kevinb@redhat.com>
5902
5903 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5904 correctly indicate an empty stack and ``stack_allocated'' to the
5905 indicate the number of elements initially allocated.
5906 (dwarf_expr_grow_stack): Simplify method for computing new
5907 stack size. Don't loop infinitely if ``stack_len'' is zero.
5908 (execute_stack_op): Move ``ctx->in_reg'' initialization
5909 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5910 be used in conjuction with DW_OP_piece. Revise error message
5911 accordingly.
5912
de18ac1f
TR
59132003-05-14 Theodore A. Roth <troth@openavr.org>
5914
5915 * MAINTAINERS: Update my email address.
5916 * avr-tdep.c: Ditto.
5917
176620f1
EZ
59182003-05-14 Elena Zannoni <ezannoni@redhat.com>
5919
5920 * symtab.h (enum domain_enum): Rename from namespace_enum.
5921 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5922 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5923 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5924 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5925 TYPES_NAMESPACE, METHODS_NAMESPACE.
5926 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5927 (struct symbol, struct partial_symbol): Rename field
5928 'namespace_enum namespace' to 'domain_enum domain'.
5929 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5930 Delete old define kludge for namespace.
5931
5932 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5933 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5934 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5935 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5936 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5937 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5938 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5939 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5940 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5941 occurrences of the above.
5942
b7f31508
ILT
59432003-05-14 Ian Lance Taylor <ian@airs.com>
5944
5945 * Makefile.in (install-only): Use $(SHELL) when running
5946 mkinstalldirs.
5947
2fdbdd39
ILT
59482003-05-13 Ian Lance Taylor <ian@airs.com>
5949
a208d82c
ILT
5950 * MAINTAINERS (write after approval): Add myself.
5951
2fdbdd39
ILT
5952 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5953 second and third arguments.
5954 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5955 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5956
fbd9dcd3
AC
59572003-05-13 Andrew Cagney <cagney@redhat.com>
5958
5959 * defs.h (store_address): Delete declaration.
5960 findvar.c (store_address): Delete function.
5961 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5962 store_unsigned_integer.
5963 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5964 * v850-tdep.c (v850_push_arguments): Ditto.
5965 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5966 * sh-tdep.c (sh64_get_saved_register): Ditto.
5967 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5968 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5969 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5970 (mips_get_saved_register): Ditto.
5971 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5972 (find_func_descr, ia64_push_arguments): Ditto.
5973 * i386-tdep.c (i386_push_arguments): Ditto.
5974 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5975 * frv-tdep.c (frv_push_arguments): Ditto.
5976 * frame.c (legacy_saved_regs_prev_register): Ditto.
5977 (deprecated_generic_get_saved_register): Ditto.
5978 * findvar.c (unsigned_address_to_pointer): Ditto.
5979 * dwarf2read.c (dwarf2_const_value): Ditto.
5980 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5981 * alpha-tdep.c (alpha_push_arguments): Ditto.
5982
6760f9e6
JB
59832003-05-12 J. Brobecker <brobecker@gnat.com>
5984
5985 * NEWS: Mention that the hppa-hpux port has been partially
5986 multiarched (32bit ABIT only, so far).
5987
30e221b4
AC
59882003-05-11 Andrew Cagney <cagney@redhat.com>
5989
5990 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5991 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5992 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5993 sim/testsuite/sim/arm/misaligned2.ms, and
5994 sim/testsuite/sim/arm/misaligned3.ms.
5995 * disasm.h (struct ui_file): Add opaque struct declaration.
5996 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5997 * frame.h (struct ui_file): Ditto.
5998
dea7f9ba
MK
59992003-05-11 Mark Kettenis <kettenis@gnu.org>
6000
6001 * value.h: Pretty print.
6002
01986c48
MK
60032003-05-10 Mark Kettenis <kettenis@gnu.org>
6004
6005 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6006
123a958e
AC
60072003-05-08 Andrew Cagney <cagney@redhat.com>
6008
6009 * regcache.h (max_register_size): Delete declaration.
6010 * regcache.c (max_register_size): Delete function.
6011 (struct regcache_descr): Delete field "max_register_size".
6012 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6013 registers fit in MAX_REGISTER_SIZE.
6014 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6015 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6016 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6017 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6018 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6019 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6020 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6021 * dve3900-rom.c, hppa-tdep.c: Ditto.
6022
eb294659
DC
60232003-05-08 David Carlton <carlton@math.stanford.edu>
6024
6025 * valops.c (push_word): Fix typo.
6026
d9d9c31f
AC
60272003-05-08 Andrew Cagney <cagney@redhat.com>
6028
6029 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6030 * gdbarch.h: Re-generate.
6031 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6032 (legacy_max_register_raw_size): Delete declaration.
6033 * regcache.c (legacy_max_register_raw_size): Delete function.
6034 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6035 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6036 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6037 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6038 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6039 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6040 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6041 * findvar.c, dwarf2cfi.c: Ditto.
6042
22540ece
AC
60432003-05-08 Andrew Cagney <cagney@redhat.com>
6044
6045 * mips-tdep.c (read_signed_register): New function, moved to here
6046 from "regcache.c".
6047 (read_signed_register_pid): Ditto.
6048 * regcache.c (read_signed_register_pid): Delete function, moved to
6049 "mips-tdep.c".
6050 (read_signed_register): Ditto.
6051 * regcache.h (read_signed_register): Delete declaration.
6052 (read_signed_register_pid): Delete declaration.
6053
0c92afe8
AC
60542003-05-08 Andrew Cagney <cagney@redhat.com>
6055
6056 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6057 * gdbarch.h: Re-generate.
6058 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6059 (legacy_max_register_virtual_size): Delete declaration.
6060 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6061 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6062 * tracepoint.c (memrange_sortmerge): Ditto.
6063 * sparc-tdep.c (sparc_print_registers): Ditto.
6064 * regcache.c (legacy_max_register_virtual_size): Delete function.
6065
6037b830
JB
60662002-05-08 J. Brobecker <brobecker@gnat.com>
6067
6068 * fork-child.c (escape_bang_in_quoted_argument): New function.
6069 (fork_inferior): Escape '!' characters in quoted arguments
6070 only when needed.
6071
5d62c8b1
JB
60722003-05-08 J. Brobecker <brobecker@gnat.com>
6073
6074 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6075 the language of the CU is not currently supported by GDB.
6076
20a0e81d
JB
60772003-05-08 J. Brobecker <brobecker@gnat.com>
6078
6079 * defs.h (language): Add language_minimal enum value.
6080 * c-lang.c (minimal_language_defn): New language definition.
6081 (_initialize_c_language): Add the new minimal language to the list
6082 of languages known to GDB.
6083
710ee10a
KB
60842003-05-08 Kevin Buettner <kevinb@redhat.com>
6085
6086 * frame.c (get_frame_type): Don't attempt to lazily initialize
6087 frame's unwinder for legacy frames.
6088
1750fa04
AC
60892003-05-07 Andrew Cagney <cagney@redhat.com>
6090
6091 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6092 and "regcache" parameters.
6093 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6094
ddf9f258 60952003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6096
6097 * dwarf2read.c (dwarf_decode_lines): Only use output of
6098 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6099 the current address.
6100
87767c29
AC
61012003-05-07 Andrew Cagney <cagney@redhat.com>
6102
6103 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6104 code.
6105
5e7b2f39
JB
61062003-05-07 Jim Blandy <jimb@redhat.com>
6107
6108 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6109 'maint info symtabs' and 'maint info psymtabs'.
6110 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6111 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6112 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6113 Declarations updated.
6114 * maint.c (maintenance_list_command): Delete.
6115 (_initialize_maint_cmds): Update calls to add_cmd.
6116 * gdbcmd.h (maintenancelistlist): Delete declaration.
6117 * cli/cli-cmds.c (maintenancelistlist): Delete.
6118 (init_cmd_lists): Don't initialize it.
6119 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6120
f6684c31
AC
61212003-05-07 Andrew Cagney <cagney@redhat.com>
6122
6123 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6124 "regcache".
6125 (d10v_print_registers_info): Update.
6126 (d10v_dmap_register, d10v_imap_register): Delete functions.
6127 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6128 and "imap_register".
6129 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6130 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6131 * arch-utils.c (generic_remote_translate_xfer_address): Add
6132 "regcache" and "gdbarch" parameters.
6133 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6134 parameter. Change class to multi-arch.
6135 * gdbarch.h, gdbarch.c: Re-generate.
6136 * remote.c (remote_xfer_memory): Use
6137 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6138
e4846b08
JJ
61392003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6140
6141 * infrun.c (prev_pc): Move declaration ahead of proceed().
6142 (proceed): Refresh prev_pc value before resuming.
6143 (stop_stepping): Remove code to refresh prev_pc.
6144
6b71b8ac
KW
61452003-05-06 Kris Warkentin <kewarken@qnx.com>
6146
6147 * nto-tdep.c: Removed stray comment.
6148
47979a4b
KW
61492003-05-06 Kris Warkentin <kewarken@qnx.com>
6150
6151 * i386-nto-tdep.c: Fix old K&R function definitions.
6152 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6153 Also change add_show_from_set() call to add_setshow_cmd().
6154 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6155
00905d52
AC
61562003-05-05 Andrew Cagney <cagney@redhat.com>
6157
6158 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6159 (fprint_dummy_frames): New function.
6160 (maintenance_print_dummy_frames): New function.
6161 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6162 * frame.c (fprint_frame_id): Make global.
6163 * frame.h (fprint_frame_id): Declare.
6164 * Makefile.in (dummy-frame.o): Update dependencies.
6165
b1e29e33
AC
61662003-05-05 Andrew Cagney <cagney@redhat.com>
6167
6168 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6169 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6170 SIZEOF_CALL_DUMMY_WORDS.
6171 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6172 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6173 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6174 CALL_DUMMY_BREAKPOINT_OFFSET.
6175 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6176 CALL_DUMMY_START_OFFSET.
6177 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6178 * gdbarch.h, gdbarch.c: Re-generate.
6179 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6180 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6181 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6182 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6183 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6184 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6185 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6186 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6187 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6188 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6189 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6190 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6191 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6192 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6193 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6194
61952003-05-05 Kris Warkentin <kewarken@qnx.com>
6196
6197 * configure.tgt: Add i[3456]86-*-nto*.
6198 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6199 * nto-tdep.c: New file. Neutrino target support routines.
6200 * nto-tdep.h: New file. Neutrino target header.
6201 * config/tm-qnxnto.h: New file.
6202 * config/i386/i386nto.mt: New file.
6203 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6204
0ce3d317
AC
62052003-05-04 Andrew Cagney <cagney@redhat.com>
6206
6207 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6208 (load_infrun_state): Ditto.
6209 (struct thread_info): Drop "prev_func_name" field.
6210 * thread.c (load_infrun_state): Update.
6211 (save_infrun_state): Update.
6212 * infrun.c (prev_func_name): Delete variable.
6213 (init_wait_for_inferior): Do not clear prev_func_name.
6214 (stop_stepping, keep_going, context_switch): Do not swap
6215 prev_func_name.
6216 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6217 instead of PC_IN_SIGTRAMP.
6218
46654a5b
AC
62192003-05-04 Andrew Cagney <cagney@redhat.com>
6220
6221 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6222 REGISTER_BYTE with register_offset_hack.
6223 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6224 that REGISTER_BYTE is consistent with the regcache.
6225 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6226 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6227
14b08c1b
MK
62282003-05-04 Mark Kettenis <kettenis@gnu.org>
6229
04c8243f
MK
6230 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6231 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6232
14b08c1b
MK
6233 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6234
c7a11e01
JB
62352003-05-03 J. Brobecker <brobecker@gnat.com>
6236
6237 From Thierry Schneider <tpschneider1@yahoo.com>
6238 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6239 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6240 (mi-cmd-symbol.o): Add rule.
6241
7043d8dc
AC
62422003-05-03 Andrew Cagney <cagney@redhat.com>
6243
6244 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6245 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6246 * gdbarch.h, gdbarch.c: Re-generate.
6247 * d10v-tdep.c (d10v_push_dummy_code): New function.
6248 (d10v_gdbarch_init): Set push_dummy_code.
6249 * infcall.c (legacy_push_dummy_code): New function.
6250 (generic_push_dummy_code): New function.
6251 (push_dummy_code): New function.
6252 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6253 instead of dummy_addr, to push_dummy_call. Move call to
6254 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6255 switch.
6256 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6257
92bf2b80
AC
62582003-05-03 Andrew Cagney <cagney@redhat.com>
6259
6260 * disasm.h (print_insn): Declare.
6261 * disasm.c (init_gdb_disassemble_info): New function.
6262 (gdb_disassembly): Call init_gdb_disassemble_info.
6263 (gdb_print_insn): New function.
6264 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6265 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6266 * mcore-tdep.c: Include "disasm.h"
6267 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6268 * d10v-tdep.c: Include "disasm.h".
6269 (display_trace): Call gdb_print_insn, instead of print_insn.
6270 (print_insn): Delete function.
6271 * printcmd.c: Include "disasm.h".
6272 (print_insn): Delete function.
6273 (print_formatted): Call gdb_print_insn, instead of print_insn.
6274 * Makefile.in (printcmd.o): Update dependencies.
6275 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6276
27d94c49
AC
62772003-05-02 Andrew Cagney <cagney@redhat.com>
6278
82de1e5b
AC
6279 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6280 PC_REGNUM, re-indent.
6281 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6282 PC_REGNUM isn't set.
6283
27d94c49
AC
6284 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6285 * gdbarch.h, gdbarch.c: Re-generate.
6286 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6287 register_virtual_size, pc_regnum, or register_bytes.
6288 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6289 (d10v_register_type): Use D10V_PC_REGNUM.
6290 (d10v_print_registers_info, d10v_read_pc): Ditto.
6291 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6292 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6293
a9c0dc7f
DC
62942003-05-02 David Carlton <carlton@bactrian.org>
6295
6296 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6297 the name with mstrsave.
6298
e33d66ec
EZ
62992003-05-02 Elena Zannoni <ezannoni@redhat.com>
6300
6301 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6302 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6303 (host_charset_name, target_charset_name): New vars for use by
6304 set/show commands.
6305 (host_charset_enum, target_charset_enum): New enums for set/show
6306 commands.
6307 (set_charset_sfunc, set_host_charset_sfunc,
6308 set_target_charset_sfunc): New functions.
6309 (set_host_charset, set_target_charset): Make static.
6310 (list_charsets, set_host_charset_command,
6311 set_target_charset_command): Delete functions.
6312 (show_charset_command): Rewrite as....
6313 (show_charset): Hook this up with the set/show command mechanism.
6314 (_initialize_charset): Change names of charsets to match the
6315 set/show enums. Use host_charset_name and target_charset_name.
6316 Use set/show mechanism for charset, host-charset, target-charset
6317 commands. Do not make 'show host-charset' and 'show
6318 target-charset' be aliases of 'show charset'.
6319
6320 * charset.h (set_host_charset, set_target_charset): Don't export,
6321 they are not used outside the file.
6322
2b6fd0d8
AC
63232003-05-01 Andrew Cagney <cagney@redhat.com>
6324
6325 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6326 (gdb_disassembly): Make "di" non static, always initialize and
6327 cleanup. Always use dis_asm_read_memory.
6328 (gdb_dis_asm_read_memory): Delete function.
6329
6ae2f580
AC
63302003-05-01 Andrew Cagney <cagney@redhat.com>
6331
6332 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6333 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6334
810ecf9f
AC
63352003-04-30 Andrew Cagney <cagney@redhat.com>
6336
6337 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6338 "tm_print_insn_info".
6339 (TARGET_PRINT_INSN_INFO): Delete macro.
6340 (dis_asm_read_memory): Delete function declaration.
6341 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6342 (tm_print_insn_info): Delete variable definition.
6343 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6344 * gdbarch.h, gdbarch.c: Re-generate.
6345 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6346 "deprecated_tm_print_insn_info".
6347 * mcore-tdep.c (mcore_dump_insn): Ditto.
6348 * mips-tdep.c (mips_gdbarch_init): Ditto.
6349 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6350 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6351 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6352 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6353 instead of TARGET_PRINT_INSN_INFO, add comment.
6354 * s390-tdep.c (s390_get_frame_info): Instead of
6355 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6356 (s390_check_function_end, s390_is_sigreturn): Ditto.
6357 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6358 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6359 * disasm.c: Include "gdbcore.h".
6360 (_initialize_disasm): New function, initialize
6361 "deprecated_tm_print_insn_info".
6362 (deprecated_tm_print_insn_info): New variable.
6363 (dis_asm_read_memory): Moved from "corefile.c", made static.
6364 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6365 * Makefile.in (disasm.o): Update dependencies.
6366
07020390
AC
63672003-04-30 Andrew Cagney <cagney@redhat.com>
6368
6369 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6370
a9fa03de
AF
63712003-04-29 Adam Fedor <fedor@gnu.org>
6372
6373 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6374 * infcall.c (find_function_addr): Make non-static.
6375 * infcall.h (find_function_addr): Declare.
6376 * Makefile.in (eval.o): Update dependencies.
6377
1bae87b9
AF
63782003-04-28 Adam Fedor <fedor@gnu.org>
6379
6380 * symtab.c (symbol_find_demangled_name): Check for and demangle
6381 ObjC symbols.
6382 (symbol_init_demangled_name): Init for language_objc as well.
6383
0ba6dca9
AC
63842003-04-28 Andrew Cagney <cagney@redhat.com>
6385
6386 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6387 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6388 * gdbarch.h, gdbarch.c: Re-generate.
6389 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6390 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6391 * inferior.h (deprecated_read_fp): Rename read_fp.
6392 (generic_target_read_fp): Delete declaration.
6393 * regcache.c (generic_target_read_fp): Delete function.
6394 (deprecated_read_fp): Replace read_fp, use
6395 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6396 * d10v-tdep.c (d10v_read_fp): Delete function.
6397 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6398
6399 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6400 deprecated_target_read_fp to generic_target_read_fp.
6401 * sh-tdep.c (sh_gdbarch_init): Ditto.
6402 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6404 * frv-tdep.c (frv_gdbarch_init): Ditto.
6405
6406 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6407 deprecated_fp_regnum.
6408 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6409 * vax-tdep.c (vax_gdbarch_init): Ditto.
6410 * v850-tdep.c (v850_gdbarch_init): Ditto.
6411 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6412 * sh-tdep.c (sh_gdbarch_init): Ditto.
6413 * s390-tdep.c (s390_gdbarch_init): Ditto.
6414 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6415 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6416 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6417 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6419 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6420 * i386-tdep.c (i386_gdbarch_init): Ditto.
6421 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6422 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6423 * frv-tdep.c (frv_gdbarch_init): Ditto.
6424 * cris-tdep.c (cris_gdbarch_init): Ditto.
6425 * avr-tdep.c (avr_gdbarch_init): Ditto.
6426 * arm-tdep.c (arm_gdbarch_init): Ditto.
6427 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6428
6429 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6430 * v850-tdep.c (v850_gdbarch_init): Ditto.
6431 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6432 * sh-tdep.c (sh_gdbarch_init): Ditto.
6433 * s390-tdep.c (s390_gdbarch_init): Ditto.
6434 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6435 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6436 * mips-tdep.c (mips_gdbarch_init): Ditto.
6437 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6438 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6439 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6440 * frv-tdep.c (frv_gdbarch_init): Ditto.
6441 * avr-tdep.c (avr_gdbarch_init): Ditto.
6442 * arm-tdep.c (arm_gdbarch_init): Ditto.
6443
6444 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6445 DEPRECATED_FP_REGNUM.
6446 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6447 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6448 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6449 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6450 (sparc32_register_virtual_type): Ditto.
6451 * sh-tdep.c (sh64_frame_chain): Ditto.
6452 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6453 (sh_nofp_frame_init_saved_regs): Ditto.
6454 (sh64_nofp_frame_init_saved_regs): Ditto.
6455 (sh_fp_frame_init_saved_regs): Ditto.
6456 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6457 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6458 * procfs.c (procfs_fetch_registers): Ditto.
6459 (procfs_store_registers): Ditto.
6460 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6461 (store_inferior_registers, fetch_core_registers): Ditto.
6462 (fetch_kcore_registers, clear_regs): Ditto.
6463 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6464 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6465 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6466 * nlm/i386.c (do_status): Ditto.
6467 * mipsv4-nat.c (supply_gregset): Ditto.
6468 * mips-tdep.c: Ditto for comments.
6469 * mips-nat.c (fetch_inferior_registers): Ditto.
6470 (store_inferior_registers, fetch_core_registers): Ditto.
6471 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6472 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6473 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6474 (i386_do_pop_frame, i386_register_type): Ditto.
6475 * hppa-tdep.c (hppa_frame_chain): Ditto.
6476 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6477 (hppa_pop_frame, hppa_read_fp): Ditto.
6478 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6479 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6480 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6481 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6482 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6483 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6484 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6485 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6486 * blockframe.c: Ditto for comments.
6487 * arch-utils.h: Ditto for comments.
6488 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6489 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6490 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6491 * alpha-tdep.h: Ditto for comments.
6492 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6493 (alpha_cannot_store_register): Ditto.
6494 (alpha_push_dummy_frame): Ditto.
6495 * alpha-nat.c (supply_gregset): Ditto.
6496
6497 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6498 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6499 * config/sparc/tm-sparc.h: Update comment.
6500
6501 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6502 deprecated_read_fp instead of TARGET_READ_FP.
6503 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6504 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6505 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6506 deprecated_read_fp instead of read_fp.
6507 * s390-tdep.c (s390_push_arguments): Ditto.
6508 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6509 * frame.h: Ditto in comments.
6510 * frame.c (legacy_get_prev_frame): Ditto.
6511 * dummy-frame.c (dummy_frame_this_id): Ditto.
6512 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6513
d7a27068
AC
65142003-04-28 Andrew Cagney <cagney@redhat.com>
6515
6516 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6517 * gdbarch.h, gdbarch.c: Re-generate.
6518 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6519 * vax-tdep.c (_initialize_vax_tdep): Update.
6520 * v850-tdep.c (_initialize_v850_tdep): Update.
6521 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6522 * s390-tdep.c (_initialize_s390_tdep): Update.
6523 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6524 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6525 * mips-tdep.c (_initialize_mips_tdep): Update.
6526 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6527 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6528 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6529 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6530 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6531 * frv-tdep.c (_initialize_frv_tdep): Update.
6532 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6533 (_initialize_cris_tdep): Update.
6534 * arch-utils.c (legacy_print_insn): Update.
6535 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6536
d2630e69
AF
65372003-04-26 Adam Fedor <fedor@gnu.org>
6538
6539 * linespec.c (decode_objc): New function to decode ObjC calls
6540 (decode_line_1): Check for ObjC calls (using decode_objc)
6541 * Makefile (linespec.o): Update dependencies.
6542
3086aeae
DJ
65432003-04-26 Daniel Jacobowitz <drow@mvista.com>
6544
6545 * breakpoint.h (struct breakpoint_ops): New.
6546 (struct breakpoint): Add ops member.
6547
6548 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6549 (mention): Use new breakpoint ops member.
6550 (set_raw_breakpoint): Initialize ops field to NULL.
6551 (print_exception_catchpoint, print_one_exception_catchpoint)
6552 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6553 (gnu_v3_exception_catchpoint_ops): New.
6554 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6555
1fbec6c3
AF
65562003-04-25 Adam Fedor <fedor@gnu.org>
6557
6558 * Makefile.in (COMMON_OBS): Add objc-lang.o
6559
0ef21242
AC
65602003-04-25 Andrew Cagney <cagney@redhat.com>
6561
6562 * d10v-tdep.c (print_insn): Delete function.
6563 (display_trace): Use TARGET_PRINT_INSN.
6564 (_initialize_d10v_tdep): Do not set tm_print_insn.
6565 (d10v_gdbarch_init): Set print_insn.
6566
f75493ed
AC
65672003-04-25 Andrew Cagney <cagney@redhat.com>
6568
6569 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6570 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6571 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6572 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6573 (nr_dmap_regs, a0_regnum): ... new functions.
6574 (d10v_print_registers_info): Use a0_regnum, use register_size.
6575 (d10v_register_byte): Delete function.
6576 (d10v_register_raw_size): Delete function.
6577 (d10v_register_type): Use a0_regnum.
6578 (d10v_print_registers_info): Use a0_regnum.
6579 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6580 (d10v_gdbarch_init): Do not set register_byte or
6581 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6582 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6583 extract_address.
6584 (trace_command): Use XCALLOC.
6585 (print_insn): Delete reference to tm_print_insn.
6586 (saved_regs_unwinder): Use store_unsigned_integer instead of
6587 store_address.
6588 * frame.h (FRAME_OBSTACK_CALLOC): Define
6589
2202b100
DC
65902003-04-25 David Carlton <carlton@bactrian.org>
6591
6592 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6593
4e45ca2e
AF
65942003-04-24 Adam Fedor <fedor@gnu.org>
6595
6596 * objc-lang.c: Include "valprint.h"
6597 * Makefile.in (objc-lang.o): Update dependencies.
6598
93de3e7f
AF
65992003-04-24 Adam Fedor <fedor@gnu.org>
6600
8ffd9b1b 6601 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6602 architecture dependant compilation and mark as unimplemented
6603 (until they get put in the gdbarch vector).
6604
0f20eeea
DC
66052003-04-23 David Carlton <carlton@bactrian.org>
6606
6607 * cp-support.c (cp_find_first_component): Accept 'operator' in
6608 more locations.
6609
74cfe982
AC
66102003-04-23 Andrew Cagney <cagney@redhat.com>
6611
6612 * infcall.c (call_function_by_hand): Eliminate redundant
6613 indentation. Move "saved_async" and "old_cleanups" to where they
6614 are needed.
8ffd9b1b 6615
52557533
AC
66162003-04-23 Andrew Cagney <cagney@redhat.com>
6617
6618 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6619 and "buffer". Move the "name" code to where it is needed.
6620
158775de
AC
66212003-04-23 Andrew Cagney <cagney@redhat.com>
6622
6623 * infcall.c (call_function_by_hand): Move variables "start_sp",
6624 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6625 code to ON_STACK switch branch.
8ffd9b1b 6626
ebc7896c
AC
66272003-04-23 Andrew Cagney <cagney@redhat.com>
6628
6629 * infcall.c (call_function_by_hand): Make declaration of "i",
6630 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6631 lint.
6632
d727590f
AC
66332003-04-23 Andrew Cagney <cagney@redhat.com>
6634
6635 * infcall.c (call_function_by_hand): Delete variable
6636 "n_method_args". Localize "param_type"'s declaration to the loop
6637 that it is used. Reinstate code assigning to said variable -
6638 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6639 Rationalize code using "param_type".
6640
d585e13a
AC
66412003-04-22 Andrew Cagney <cagney@redhat.com>
6642
6643 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6644 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6645 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6646 to DEPRECATED_PUSH_RETURN_ADDRESS.
6647
051caad9
KB
66482003-04-22 Kevin Buettner <kevinb@redhat.com>
6649
6650 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6651 on the DWARF2 register number prior to fetching a register.
6652
77296879
JB
66532003-04-22 J. Brobecker <brobecker@gnat.com>
6654
6655 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6656 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6657 this macro was always set to 0.
77296879
JB
6658 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6659 considering the fact that this macro was always set to 0.
6660 * hppa-tdep.h (hppa_store_return_value): Likewise.
6661 (hppa_extract_return_value): Likewise.
6662
4252f1df
JB
66632003-04-22 J. Brobecker <brobecker@gnat.com>
6664
6665 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6666 the hppa-pro target only.
6667
14604c6b
JB
66682003-04-21 J. Brobecker <brobecker@gnat.com>
6669
6670 Ongoing multi-arch conversion effort for HP/UX:
6671 * config/pa/tm-hppa.h: Move all macro that are no longer
6672 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6673 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6674
77eb01d1
JB
66752003-04-21 J. Brobecker <brobecker@gnat.com>
6676
6677 * config/pa/tm-hppa.h: Obsolete a section that was only used
6678 for hppa-pro.
6679
61995b3b
JB
66802003-04-21 J. Brobecker <brobecker@gnat.com>
6681
6682 Ongoing multi-arch conversion for HP/UX.
6683 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6684 if already defined (allows hppa64 to stay non-multiarched for now).
6685 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6686
4aa79dcc
AC
66872003-04-21 Andrew Cagney <cagney@redhat.com>
6688
6689 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6690
0f751ff2
AC
66912003-04-21 Andrew Cagney <cagney@redhat.com>
6692
6693 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6694 "i386_num_mmx_regs".
6695
04714b91
AC
66962003-04-21 Andrew Cagney <cagney@redhat.com>
6697
6698 * infcall.c: New file.
6699 * infcall.h: New file.
6700 * valarith.c: Include "infcall.h".
6701 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6702 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6703 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6704 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6705 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6706 (SFILES): Add "infcall.c"
6707 (COMMON_OBS): Add "infcall.o".
6708 (infcall.o): Specify dependencies.
6709 * value.h (call_function_by_hand): Delete declaration.
6710 * inferior.h (run_stack_dummy): Delete declaration.
6711 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6712 (run_stack_dummy): Move to "infcall.c", merged into
6713 call_function_by_hand.
6714 * valops.c (call_function_by_hand): Moved to "infcall.c".
6715 (find_function_addr, value_arg_coerce): Ditto.
6716 (unwindonsignal_p, coerce_float_to_double): Ditto.
6717 (_initialize_valops): Move "set/show coerce-float-to-double", and
6718 "set/show unwindonsignal" commands to "infcall.c".
6719 * v850-tdep.c, target.h: Update comments.
6720 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6721 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6722 (sh64_init_extra_frame_info): Update comments.
6723 * mn10300-tdep.c: Update comments.
6724 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6725 * config/sparc/tm-sparc.h: Update comments.
6726 * breakpoint.h: Update comments.
6727 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6728 * arm-tdep.c: Update comment.
6729
f9d3c2a8
MK
67302003-04-19 Mark Kettenis <kettenis@gnu.org>
6731
c40e1eab
MK
6732 * i386-tdep.c (i386_num_register_names): New variable.
6733 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6734 (MM0_REGNUM): Remove redundant parentheses in define.
6735 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6736 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6737 i386_mxcsr_regnum_p): Remove redundant parentheses.
6738 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6739
94ea66b3
MK
6740 * i386-tdep.c (i386_extract_return_value,
6741 i386_store_return_value): Correct check for availability of
6742 floating-point registers.
6743
54299a1d
MK
6744 * i386-tdep.c (i386_frame_num_args): Remove function.
6745 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6746
c86c27af
MK
6747 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6748 mmx_regnum_to_fp_regnum. Adjust all callers.
6749
f9d3c2a8
MK
6750 * i386-tdep.c (i386_get_longjmp_target): Use
6751 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6752 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6753 extract_address.
6754
94ba74a9
MK
67552003-04-19 Mark Kettenis <kettenis@gnu.org>
6756
6757 * core-regset.c: Update comments to reflect reality. Re-order
6758 includes.
6759 (fetch_core_registers): Use switch instead of if. Remove
6760 redundant prototype.
6761
4074e13c
JB
67622003-04-18 Jim Blandy <jimb@redhat.com>
6763
6764 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6765 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6766
e3ab4aba
RH
67672003-04-17 Richard Henderson <rth@redhat.com>
6768
6769 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6770
627bf7c1
EZ
67712003-04-17 Michael Snyder <msnyder@redhat.com>
6772 Karen Bennet <bennet@redhat.com>
6773
6774 Committed by Elena Zannoni <ezannoni@redhat.com>
6775 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6776
514621a9
EZ
67772003-04-17 Elena Zannoni <ezannoni@redhat.com>
6778
6779 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6780 value if the return type is void.
514621a9 6781
b4acd559
JJ
67822003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6783
6784 * thread-db.c: Reindented.
8ffd9b1b 6785
530b167e 67862003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6787
6788 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6789 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6790 as types.
6791
0a48e7e8
MS
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
8ffd9b1b 6815
ab9fe00e
KB
68162003-04-16 Kevin Buettner <kevinb@redhat.com>
6817
610a3745 6818 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6819 the size of ``long double'' to 16, instead of 8.
6820
e64a344c
MK
68212003-04-16 Mark Kettenis <kettenis@gnu.org>
6822
6823 * i386-linux-nat.c: Add some whitespace to make things more
6824 readable.
6825 (fetch_register, store_register, fetch_inferior_registers,
6826 store_inferior_registers): Get rid of assignment in if-statement.
6827 (store_register): Fix typo in error message.
6828
25d41031
AC
68292003-04-16 Andrew Cagney <cagney@redhat.com>
6830
6831 * utils.c (xmmalloc): Always allocate something, matches
6832 libiberty/xmalloc's semantics.
6833 (xmrealloc, xmcalloc): Ditto.
6834
c50901fd
AC
68352003-04-16 Andrew Cagney <cagney@redhat.com>
6836
6837 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6838 update comments.
6839 (get_frame_type): Initialize unwind and type when needed.
6840 (get_frame_id, frame_register_unwind): Ditto.
6841
f81824a9
AC
68422003-04-16 Andrew Cagney <cagney@redhat.com>
6843
6844 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6845 obsolete.
6846 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6847 * sparcl-stub.c: Obsolete file.
6848 * config/sparc/tm-sparclet.h: Obsolete file.
6849 * sparclet-stub.c: Obsolete file.
6850 * sparclet-rom.c: Obsolete file.
6851 * sparcl-tdep.c: Obsolete file.
6852 * config/sparc/tm-sparclite.h: Obsolete file.
6853 * config/sparc/sparclite.mt: Obsolete file.
6854 * config/sparc/sparclet.mt: Obsolete file.
6855 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6856 sparc86x-*-* obsolete.
6857
9219021c
DC
68582003-04-15 David Carlton <carlton@math.stanford.edu>
6859
6860 * Makefile.in (SFILES): Add cp-namespace.c.
6861 (COMMON_OBS): Add cp-namespace.o.
6862 (block.o): Depend on gdb_obstack_h and cp_support_h.
6863 (buildsym.o): Depend on cp_support_h.
6864 (cp-namespace.o): New.
6865 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6866 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6867 (dwarf2read.o): Depend on cp_support_h.
6868 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6869 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6870 processing_current_namespace.
6871 (read_namespace): Update processing_current_namespace; check for
6872 anonymous namespaces.
6873 (dwarf2_name): New function.
6874 (dwarf2_extension): Ditto.
6875 * cp-support.h: Update copyright, contributors.
6876 Add inclusion guards.
6877 Add opaque declaration for structs obstack, block, symbol.
6878 (struct using_direct): New struct.
6879 Add declarations for cp_find_first_component,
6880 cp_entire_prefix_len, processing_has_namespace_info,
6881 processing_current_namespace, cp_is_anonymous,
6882 cp_add_using_directive, cp_initialize_namespace,
6883 cp_finalize_namespace, cp_set_block_scope,
6884 cp_scan_for_anonymous_namespaces.
6885 * cp-namespace.c: New file.
6886 * cp-support.c: Update copyright.
6887 Include ctype.h, gdb_assert.h, gdbcmd.h.
6888 New variable maint_cplus_cmd_list.
6889 (cp_find_first_component): New function.
6890 (cp_entire_prefix_len, maint_cplus_command)
6891 (first_component_command, _initialize_cp_support): Ditto.
6892 * buildsym.c: Include cp-support.h.
6893 New variable using_list.
6894 (add_symbol_to_list): Check for anonymous namespaces.
6895 (finish_block): Set block's scope.
6896 (start_symtab): Initialize C++ namespace support.
6897 (end_symtab): Finalize C++ namespace support.
6898 * block.h: Add opaque declarations for structs
6899 block_namespace_info, using_direct, and obstack.
6900 Add declarations for block_set_scope and block_set_using.
6901 (struct block): Add 'language_specific' member.
6902 (BLOCK_NAMESPACE): New macro.
6903 * block.c: Include gdb_obstack.h and cp-support.h.
6904 (struct block_namespace_info): New struct.
6905 (block_set_scope): New function.
6906 (block_set_using, block_initialize_namespace): Ditto.
6907
d5a921c9
KB
69082003-04-14 Kevin Buettner <kevinb@redhat.com>
6909
6910 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6911 (locate_base): Return early if there aren't any link map offsets.
6912 (svr4_solib_create_inferior_hook): Warn if shared library support
6913 is unavailable.
6914
d2a52b27
DC
69152003-04-14 David Carlton <carlton@math.stanford.edu>
6916
6917 * symtab.c (symbol_set_names): Add prefix when storing Java names
6918 in hash table. Fix for PR java/1039.
6919
980cae7a
DC
69202003-04-14 David Carlton <carlton@math.stanford.edu>
6921
6922 * symtab.c (symbol_set_names): Rename 'name' arg to
6923 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6924 * symtab.h: Change 'name' argument in declaration of
6925 symbol_set_names to 'linkage_name'.
6926 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6927
e227b13c
AC
69282003-04-14 Andrew Cagney <cagney@redhat.com>
6929
6930 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6931 return the fully sign-extended register value.
6932 (get_frame_pointer): Ditto.
6933 (mips_pop_frame): Initialize "proc_desc" after checking for a
6934 dummy frame.
6935
36712a20
AC
69362003-04-14 Andrew Cagney <cagney@redhat.com>
6937
6938 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6939 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6940 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6941 (mips_push_register): Delete function.
6942 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6943 PUSH_FP_REGNUM.
6944
44ea7b70
JB
69452003-04-14 Jim Blandy <jimb@redhat.com>
6946
6947 * symmisc.c: #include "gdb_regex.h".
6948 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6949 functions.
6950 * maint.c (maintenance_list_command): New function.
6951 (_initialize_maint_cmds): Register the above as commands.
6952 * symtab.h (maintenance_list_symtabs,
6953 maintenance_list_psymtabs): New declarations.
6954 * cli/cli-cmds.c (maintenancelistlist): New variable.
6955 (init_cmd_lists): Initialize it.
6956 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6957 * gdbcmd.h (maintenancelistlist): New declaration.
6958 * Makefile.in (symmisc.o): Update dependencies.
6959
2d0c7962
EZ
69602003-04-14 Elena Zannoni <ezannoni@redhat.com>
6961
6962 * s390-nat.c: Include asm/types.h for addr_t.
6963
1947a811
CV
69642003-04-14 Corinna Vinschen <vinschen@redhat.com>
6965
6966 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6967 actually incoming type.
6968
adb616d7
AC
69692003-04-13 Andrew Cagney <cagney@redhat.com>
6970
6971 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6972 get_next_frame and get_frame_saved_regs.
6973
9b5e151c
AC
69742003-04-13 Andrew Cagney <cagney@redhat.com>
6975
6976 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6977 of gdbarch_num_regs.
6978
ef6e7e13
AC
69792003-04-13 Andrew Cagney <cagney@redhat.com>
6980
6981 * frame.h: Mention what replaced what in "struct frame_info".
6982 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6983 deprecated_update_frame_base_hack and
6984 deprecated_update_frame_pc_hack.
6985 * hppa-tdep.c: Ditto.
6986
61fbb938
DJ
69872003-04-13 Daniel Jacobowitz <drow@mvista.com>
6988
6989 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6990 to read_reg and update its comment. Remove regnum member.
6991 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6992 Don't call read_reg when setting in_reg. Call read_reg to get
6993 the frame base if it's in a register. Return the register number
6994 on the stack instead of in the context. Remove extra arguments
6995 to read_reg.
6996 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6997 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6998 the register number on the expression stack.
6999 (needs_frame_read_reg): Remove extra arguments.
7000
0d53c4c4
DJ
70012003-04-13 Daniel Jacobowitz <drow@mvista.com>
7002
7003 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7004 made non-static.
7005 (execute_stack_op): All callers updated.
7006 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7007 * dwarf2loc.c (find_location_expression): New function.
7008 (dwarf_expr_frame_base): Call it.
7009 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7010 (dwarf2_tracepoint_var_ref): New function, broken out from
7011 locexpr_tracepoint_var_ref.
7012 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7013 Make static.
7014 (loclist_read_variable, loclist_read_needs_frame): New functions.
7015 (loclist_describe_location, loclist_tracepoint_var_ref): New
7016 functions.
7017 (dwarf2_loclist_funcs): New struct location_funcs.
7018 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7019 (struct dwarf2_locexpr_baton): Add comments.
7020 (dwarf2_loclist_funcs): New extern.
7021 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7022 base_address and base_known.
7023 (dwarf_loc_buffer): New variable.
7024 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7025 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7026 (dwarf2_has_info): Initialize dwarf_loc_offset.
7027 (dwarf2_build_psymtabs): Read in .debug_loc.
7028 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7029 DWARF_LOC_SIZE.
7030 (psymtab_to_symtab_1): Likewise. Move base address calculation
7031 here, from...
7032 (dwarf2_get_pc_bounds): ... here. Use the base address from
7033 cu_header.
7034 (dwarf2_symbol_mark_computed): Handle location lists.
7035
6aca59a3
DJ
70362003-04-13 Daniel Jacobowitz <drow@mvista.com>
7037
7038 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7039 if the linkage name demangled successfully.
7040
aca1fcd0
MK
70412003-04-13 Mark Kettenis <kettenis@gnu.org>
7042
97095916
MK
7043 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7044 disassmbly_flavour): Removed.
7045
aca1fcd0
MK
7046 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7047
562a961f
MK
70482003-04-13 Mark Kettenis <kettenis@gnu.org>
7049
7050 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7051
bd013d54
AC
70522003-04-12 Andrew Cagney <cagney@redhat.com>
7053
7054 * frame.h (struct frame_info): Move definition from here ...
7055 * frame.c (struct frame_info): ... to here.
7056
167ef8b1
AC
70572003-04-12 Andrew Cagney <cagney@redhat.com>
7058
7059 * gdbthread.h (save_infrun_state): Delete parameter
7060 "prev_func_start".
7061 (struct thread_info): Delete field "prev_func_start".
7062 (load_infrun_state): Ditto.
7063 * thread.c (load_infrun_state, save_infrun_state): Update.
7064 * infrun.c (prev_func_start): Delete variable.
7065 (context_switch, init_wait_for_inferior): Update.
7066 (stop_stepping, keep_going): Update.
7067
da3331ec
AC
70682003-04-12 Andrew Cagney <cagney@redhat.com>
7069
7070 * gdbarch.sh: Add missing opaque declarations.
7071 * gdbarch.h: Regnerate.
7072 * symtab.h: Add missing opaque declarations.
7073 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7074 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7075 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7076 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7077 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7078 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7079 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7080 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7081 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7082 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7083 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7084 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7085 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7086
18adea3f
AC
70872003-04-11 Andrew Cagney <cagney@redhat.com>
7088
7089 * frame.c (get_frame_id): Return this frame's "id".
7090 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7091 function start.
7092 (legacy_saved_regs_this_id): Replace function body with
7093 internal-error.
7094 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7095 FRAME_OBSTACK_ZALLOC.
7096 (create_new_frame): Mark the frame ID as valid.
7097
2252e863
AO
70982003-04-11 Alexandre Oliva <aoliva@redhat.com>
7099
7100 * Makefile.in (libbfd_h): Added missing setting.
7101 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7102 according to the selected ABI.
7103
a8245ab8
JJ
71042003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7105
7106 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7107
6913c89a
AC
71082003-04-11 Andrew Cagney <cagney@redhat.com>
7109
7110 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7111 SAVED_PC_AFTER_CALL.
7112 * gdbarch.h, gdbarch.c: Regenerate.
7113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7114 * x86-64-tdep.c (x86_64_init_abi): Update.
7115 * vax-tdep.c (vax_gdbarch_init): Update.
7116 * v850-tdep.c (v850_gdbarch_init): Update.
7117 * sparc-tdep.c (sparc_gdbarch_init): Update.
7118 * sh-tdep.c (sh_gdbarch_init): Update.
7119 * s390-tdep.c (s390_gdbarch_init): Update.
7120 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7121 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7122 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7123 * mips-tdep.c (mips_gdbarch_init): Update.
7124 * mcore-tdep.c (mcore_gdbarch_init): Update.
7125 * m68k-tdep.c (m68k_gdbarch_init): Update.
7126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7127 * ia64-tdep.c (ia64_gdbarch_init): Update.
7128 (ia64_saved_pc_after_call): Update declaration.
7129 * i386ly-tdep.c (i386lynx_init_abi): Update.
7130 * i386-tdep.c (i386_gdbarch_init): Update.
7131 * hppa-tdep.c (hppa_gdbarch_init): Update.
7132 * h8300-tdep.c (h8300_gdbarch_init): Update.
7133 * frv-tdep.c (frv_gdbarch_init): Update.
7134 * cris-tdep.c (cris_gdbarch_init): Update.
7135 * avr-tdep.c (avr_gdbarch_init): Update.
7136 * arm-tdep.c (arm_gdbarch_init): Update.
7137 * alpha-tdep.c (alpha_gdbarch_init): Update.
7138 * ns32knbsd-nat.c (frame_num_args): Update.
7139 * ns32k-tdep.c (umax_frame_num_args): Update.
7140 * mips-tdep.c (mips_init_frame_pc_first): Update.
7141 * infrun.c (step_over_function): Update.
7142 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7143 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7144 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7145 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7146 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7147 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7148 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7149 * arch-utils.c (init_frame_pc_default): Update.
7150 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7151 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7152 declaration.
8ffd9b1b 7153
38edeab8
AC
71542003-04-11 Andrew Cagney <cagney@redhat.com>
7155
7156 * i387-tdep.c: Update copyright.
7157 (i387_to_double): Delete function.
7158 (double_to_i387): Delete function.
7159
81f8a206
AC
71602003-04-10 Andrew Cagney <cagney@redhat.com>
7161
7162 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7163 frame's function's address. Simplify.
7164 (d10v_frame_unwind_cache): Check that the frame's function is
7165 non-zero.
7166
6e691f7a
JB
71672003-04-10 Jim Blandy <jimb@redhat.com>
7168
7169 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7170 call to set_gdbarch_deprecated_push_arguments.
7171
7f78e237
AC
71722003-04-10 Andrew Cagney <cagney@redhat.com>
7173
7174 * frame.c (fprint_frame_id): New function.
7175 (fprint_frame_type, fprint_frame): New function.
7176 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7177 (create_sentinel_frame, get_frame_id): Ditto.
7178 (frame_id_p, frame_id_eq): Ditto.
7179 (frame_id_inner, create_new_frame): Ditto.
7180 (legacy_get_prev_frame, get_prev_frame): Ditto.
7181 (deprecated_update_frame_pc_hack): Ditto.
7182 (frame_register_unwind): Ditto.
7183 (deprecated_update_frame_base_hack): Ditto.
7184
f870b49b
CV
71852003-04-10 Corinna Vinschen <vinschen@redhat.com>
7186
7187 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7188 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7189 frame_chain function.
7190 * Makefile.in: Add dependencies due to above change.
7191
7c86889b
CV
71922003-04-10 Corinna Vinschen <vinschen@redhat.com>
7193
7194 * blockframe.c (legacy_frame_chain_valid): Move call to
7195 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7196 inside_entry_file.
7197
d0a55772
AC
71982003-04-09 Andrew Cagney <cagney@redhat.com>
7199
7200 * frame.h (struct frame_id): Replace "pc" and "base" with
7201 "stack_addr" and "code_addr". Update comments.
7202 (frame_id_build): Update parameter names and comment.
7203 (struct frame_info): Replace "id_p" and "id" with "this_id".
7204 * dummy-frame.c (dummy_frame_this_id): Update.
7205 * breakpoint.c (print_one_breakpoint): Update.
7206 * frame.c (get_frame_id): Update.
7207 (get_frame_base, frame_id_build): Update.
7208 (create_sentinel_frame, legacy_get_prev_frame): Update.
7209 (deprecated_update_frame_base_hack): Update.
7210 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7211 (frame_id_inner): Ditto.
7212
ac16bf07
AC
72132003-04-09 Andrew Cagney <cagney@redhat.com>
7214
7215 * defs.h (gdb_print_host_address): Make "addr" parameter a
7216 pointer constant.
7217 * utils.c (gdb_print_host_address): Update.
7218
366cfc9e
KB
72192003-04-09 Kevin Buettner <kevinb@redhat.com>
7220
7221 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7222 register number for R0 is 0.
7223
cd983b5c
JB
72242003-04-09 J. Brobecker <brobecker@gnat.com>
7225
7226 * frame.h (struct gdbarch): Add opaque structure definition
7227 to avoid a compilation warning on LynxOS 4.0.
7228
d1340264
AC
72292003-04-09 Andrew Cagney <cagney@redhat.com>
7230
7231 * frame.h (struct frame_info): Delete field "pc". Replace
7232 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7233 structure.
7234 * frame.c (frame_pc_unwind): Update.
7235 (create_sentinel_frame): Do not set "pc".
7236 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7237 (get_frame_pc): Call frame_pc_unwind.
7238 (deprecated_update_frame_pc_hack): Update.
7239 (create_new_frame): Use "pc" not "->pc".
7240
90a6fffb
AC
72412003-04-09 Andrew Cagney <cagney@redhat.com>
7242
7243 * frame.c (get_frame_id): Eliminate code updating "frame".
7244 (legacy_get_prev_frame): Ditto.
7245 (get_frame_base): Return id.base directly.
7246 (deprecated_update_frame_base_hack): Update "id.base".
7247 * frame.h (struct frame_info): Delete field "frame".
7248
2fbce691
AC
72492003-04-09 Andrew Cagney <cagney@redhat.com>
7250
7251 * NEWS: Mention that the "Sequent family" is obsolete.
7252 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7253 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7254 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7255 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7256 * config/i386/tm-ptx4.h: Obsolete file.
7257 * config/i386/tm-ptx.h: Obsolete file.
7258 * symm-tdep.c: Obsolete file.
7259 * config/i386/symmetry.mt: Obsolete file.
7260 * config/i386/tm-symmetry.h: Obsolete file.
7261 * symm-nat.c: Obsolete file.
7262 * config/i386/nm-symmetry.h: Obsolete file.
7263 * config/i386/xm-symmetry.h: Obsolete file.
7264 * config/i386/symmetry.mh: Obsolete file.
7265 * config/i386/nm-ptx4.h: Obsolete file.
7266 * config/i386/ptx4.mh: Obsolete file.
7267 * config/i386/ptx.mt: Obsolete file.
7268 * config/i386/ptx.mh: Obsolete file.
7269 * config/i386/xm-ptx4.h: Obsolete file.
7270 * config/i386/xm-ptx.h: Obsolete file.
7271
78c43945
AC
72722003-04-09 Andrew Cagney <cagney@redhat.com>
7273
7274 Obsolete mips*-*-mach3*.
7275 * NEWS: Mention that mips*-*-mach3* is obsolete.
7276 * m3-nat.c: Obsolete file.
7277 * config/nm-m3.h: Obsolete file.
7278 * config/mips/tm-mipsm3.h: Obsolete file.
7279 * config/mips/mipsm3.mt: Obsolete file.
7280 * config/mips/mipsm3.mh: Obsolete file.
7281 * config/mips/xm-mipsm3.h: Obsolete file.
7282 * mipsm3-nat.c: Obsolete file.
7283 * configure.host: Obsolete mips-dec-mach3*.
7284 * configure.tgt: Obsolete mips*-*-mach3*.
7285
f1908289
AC
72862003-04-09 Andrew Cagney <cagney@redhat.com>
7287
7288 * doublest.h: Update copyright.
7289 (deprecated_store_floating, deprecated_extract_floating): Rename
7290 store_floating and extract_floating. Update comments.
7291 * doublest.c: Update copyright.
7292 (extract_floating_by_length): Replace extract_floating.
7293 (store_floating_by_length): Replace store_floating.
7294 (deprecated_extract_floating): New function.
7295 (deprecated_store_floating): New function.
7296 (extract_typed_floating): Call extract_floating_by_length.
7297 (store_typed_floating): Call store_floating_by_length.
7298 * x86-64-tdep.c (x86_64_store_return_value): Update.
7299 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7300 (sh64_extract_return_value): Update.
7301 (sh_sh4_register_convert_to_virtual): Update.
7302 (sh_sh64_register_convert_to_virtual): Update.
7303 (sh_sh4_register_convert_to_raw): Update.
7304 (sh_sh64_register_convert_to_raw): Update.
7305 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7306 (rs6000_register_convert_to_raw): Update.
7307 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7308 (ia64_register_convert_to_raw): Update.
7309 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7310 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7311 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7312 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7313 (alpha_register_convert_to_raw): Update.
7314
4443bd83
AC
73152003-04-08 Andrew Cagney <cagney@redhat.com>
7316
7317 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7318 * gdbarch.h, gdbarch.c: Re-generate.
7319 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7320 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7321 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7322 conditionally, use frame_pc_unwind as an alternative. Add
7323 comments.
7324 * arch-utils.c (init_frame_pc_default): Only call
7325 SAVED_PC_AFTER_CALL when available.
7326
c0236d92
EZ
73272003-04-08 Elena Zannoni <ezannoni@redhat.com>
7328
fbe586ae 7329 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7330 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7331 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7332 (start_remote): Ditto.
7333 (handle_inferior_event): Ditto.
7334 (save_inferior_status): Ditto.
7335 (restore_inferior_status): Ditto.
7336 * infcmd.c (attach_command): Ditto.
7337 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7338 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7339 * alpha-tdep.c (heuristic_proc_start): Ditto.
7340 * mips-tdep.c (heuristic_proc_start): Ditto.
7341 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7342 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7343 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7344 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7345 * remote-vx.c (vx_create_inferior): Ditto.
7346
73472003-04-08 Elena Zannoni <ezannoni@redhat.com>
7348
7349 * infrun.c (stop_soon_quietly): Make it an enum, to better
7350 override the default behavior of handle_inferior_event.
7351 (clear_proceed_status): Update uses of stop_soon_quietly to
7352 reflect that it is now an enum.
7353 (start_remote): Ditto.
7354 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7355 is set to handle the new GNU/Linux kernel behavior for
7356 attach/sigstop. Update uses of stop_soon_quietly.
7357 * inferior.h (enum stop_kind): New enum.
7358 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7359 Reset normal handle_inferior_event behavior, afterwards.
7360 * fork-child.c (startup_inferior): Update.
7361 * alpha-tdep.c (heuristic_proc_start): Update.
7362 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7363 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7364 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7365 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7366 * remote-vx.c (vx_create_inferior): Update.
7367 * mips-tdep.c (heuristic_proc_start): Update.
7368
1211bce3
EZ
73692003-04-07 Elena Zannoni <ezannoni@redhat.com>
7370
7371 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7372 be freed more than once, causing wild memory corruptions.
1211bce3 7373 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7374 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7375 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7376 with the "core" target.
1211bce3 7377
f0ef6b29
KB
73782003-04-07 Kevin Buettner <kevinb@redhat.com>
7379
7380 * mips-tdep.c (mips_print_fp_register): New function, created from
7381 do_fp_register_row(). Registers are now (also) printed as hex.
7382 Only one register is printed per row.
7383 (mips_print_register, do_fp_register_row): Print floating point
7384 registers with mips_print_fp_register().
7385
8cf71652
AC
73862003-04-06 Andrew Cagney <cagney@redhat.com>
7387
5e488a7b
AC
7388 * valprint.h (inspect_it): Add extern declaration.
7389 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7390 (selectors_info, classes_info): Ditto.
7391 (find_objc_msgcall): Fix indentation.
7392 (objc_printstr): Delete extern declarations.
7393
8cf71652
AC
7394 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7395
e6ba3bc9
AC
73962003-04-06 Andrew Cagney <cagney@redhat.com>
7397
7398 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7399 Update comment.
7400 * frame.c (legacy_saved_regs_this_id): Update.
7401 (legacy_get_prev_frame): Update.
7402 * xstormy16-tdep.c: Update comment.
7403 * sparc-tdep.c (sparc_frame_chain): Update comment.
7404 * blockframe.c (legacy_frame_chain_valid): Update.
7405
55e1d7e7
AC
74062003-04-06 Andrew Cagney <cagney@redhat.com>
7407
996179ee
AC
7408 * valprint.c (val_print_type_code_int): Delete #ifdef
7409 PRINT_TYPELESS_INTEGER code.
7410
55e1d7e7
AC
7411 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7412 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7413 multi-arch definition.
7414 * gdbarch.h: Re-generate.
7415
43bd9a9e
AC
74162003-04-05 Andrew Cagney <cagney@redhat.com>
7417
7418 Eliminate FRAME_FIND_SAVED_REGS.
7419 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7420 Change FSR parameter to a pointer.
7421 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7422 Assume FSR parameter is a pointer.
7423 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7424 Make fsr a pointer.
7425 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7426 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7427 saved_regs a pointer.
7428 (hppa_frame_saved_pc): Ditto.
7429 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7430 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7431 pointer.
7432 (restore_pc_queue): Make fsr a pointer.
7433 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7434 (hppa_frame_chain): Make saved_regs a pointer, call
7435 hppa_frame_init_saved_regs.
7436 * sparc-tdep.c: Include "gdb_assert.h".
7437 (sparc_frame_find_saved_regs): Replace internal_error with
7438 gdb_assert.
7439 * remote-vxsparc.c (vx_read_register): Delete reference to
7440 FRAME_FIND_SAVED_REGS.
7441 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7442 * gdbarch.h: Regenerate.
7443 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7444 (deprecated_get_frame_saved_regs): Delete declaration.
7445 (struct frame_saved_regs): Delete definition.
7446 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7447 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7448 (hppa_frame_find_saved_regs): Delete declaration.
7449 (FRAME_FIND_SAVED_REGS): Delete macro.
7450 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7451 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7452 FRAME_FIND_SAVED_REGS in comment.
7453
be41e9f4
AC
74542003-04-05 Andrew Cagney <cagney@redhat.com>
7455
7456 * frame.c (frame_func_unwind, get_frame_func): New functions.
7457 * frame.h (get_frame_func, frame_func_unwind): Declare.
7458 (struct frame_info): Add field "prev_func" for caching the
7459 previous frame's function address.
7460 * arm-tdep.c (arm_frameless_function_invocation): Combine
7461 get_pc_function_start and get_frame_pc into get_frame_func.
7462 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7463 (sh64_nofp_frame_init_saved_regs): Ditto.
7464 * s390-tdep.c (s390_function_start): Ditto.
7465 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7466 (rs6000_frameless_function_invocation): Ditto.
7467 (rs6000_frame_saved_pc): Ditto.
7468 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7469 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7470 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7471 (i386_frame_init_saved_regs): Ditto.
7472 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7473 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7474 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7475 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7476 * blockframe.c (frameless_look_for_prologue): Ditto.
7477
a01dd7cc
AC
74782003-04-05 Andrew Cagney <cagney@redhat.com>
7479
7480 * frame.c (legacy_get_prev_frame): Link prev to next at the
7481 function start. Update comments.
7482
5e5592e6
AC
74832003-04-05 Andrew Cagney <cagney@redhat.com>
7484
7485 * frame.c (get_frame_id): Update comment.
7486 (legacy_get_prev_frame): Update comment.
7487 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7488 * gdbarch.h: Regenerate.
7489 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7490 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7491
6fba5002
AC
74922003-04-05 Andrew Cagney <cagney@redhat.com>
7493
7494 * stack.c (print_frame_info): Use get_frame_pc.
7495
7df05f2b
AC
74962003-04-04 Andrew Cagney <cagney@redhat.com>
7497
7498 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7499 the frame's type from the unwinder.
7500 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7501 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7502 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7503 (get_frame_base_address): Use get_frame_type.
7504 (get_frame_locals_address, get_frame_args_address): Ditto.
7505 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7506 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7507 (struct frame_info): Add comment explaining why the frame contains
7508 a "type" field.
7509 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7510 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7511 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7512 NORMAL_FRAME.
7513 * frame-unwind.h: Include "frame.h".
7514 (struct frame_unwind): Add "type" field.
7515 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7516
11889732
AC
75172003-04-04 Andrew Cagney <cagney@redhat.com>
7518
7519 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7520 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7521 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7522 get_frame_base.
7523 (d10v_unwind_dummy_id): Use frame_id_build.
7524 * frame.c (find_frame_sal): Use get_frame_pc.
7525 (create_new_frame): Use deprecated_update_frame_pc_hack and
7526 deprecated_update_frame_base_hack.
7527 (create_sentinel_frame): Add comment about ->pc going away.
7528 (get_prev_frame): Add comment about ->pc going away.
7529 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7530 frame_id_build, deprecated_update_frame_pc_hack and
7531 deprecated_update_frame_base_hack.
7532 (select_frame): Use get_frame_pc.
7533 (legacy_saved_regs_this_id): Use frame_id_build.
7534
50c46a0d
EZ
75352003-04-04 Elena Zannoni <ezannoni@redhat.com>
7536
fbe586ae
RH
7537 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7538 signed integer case.
7539 (classify_argument): Handle enumerations and references.
50c46a0d 7540
50bbdbd9
AC
75412003-04-04 Andrew Cagney <cagney@redhat.com>
7542
7543 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7544 ID to NULL.
7545
36018d2e
AF
75462003-04-01 Adam Fedor <fedor@gnu.org>
7547
7548 * gdb/objc-lang.c (selectors_info): Replace calls to
7549 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7550 SYMBOL_NATURAL_NAME.
7551 (classes_info, find_methods): Likewise.
7552
35cec841
KB
75532003-04-03 Kevin Buettner <kevinb@redhat.com>
7554
7555 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7556 ``mach'' to the value determined by bfd_default_set_arch_mach().
7557
43136899
BR
75582003-04-02 Bob Rossi <bob_rossi@cox.net>
7559
7560 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7561 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7562 (mi-cmd-file.o): Update dependencies.
7563
040b99fd
KB
75642003-04-01 Kevin Buettner <kevinb@redhat.com>
7565
7566 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7567 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7568
9a3d7dfd
AF
75692003-04-01 Adam Fedor <fedor@gnu.org>
7570
7571 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7572 * language.h (struct language_defn): Add la_demangle.
7573 (language_demangle): Declare.
7574 * language.c (language_demangle): New function.
7575 (unk_lang_demangle): Likewise.
7576 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7577 Add ukn_lang_demangle.
9a3d7dfd 7578 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7579 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7580 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7581 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7582 * jv-lang.c (java_demangle): New function
7583 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7584 * objc-lang.c (objc_demangle): Add options argument
7585 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7586 * maint.c (maintenance_demangle): Replace switch with
7587 call to language_demangle.
7588 * utils.c (fprintf_symbol_filtered): Likewise.
7589
5e074003
AC
75902003-04-01 Andrew Cagney <cagney@redhat.com>
7591
7592 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7593 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7594 PRINT_TYPELESS_INTEGER.
7595 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7596 PUSH_RETURN_ADDRESS.
7597
270cb5d6
AC
75982003-04-01 Andrew Cagney <cagney@redhat.com>
7599
7600 * Makefile.in (d10v-tdep.o): Update dependencies.
7601 * d10v-tdep.c: Include "frame-base.h".
7602 (d10v_frame_unwind): Make constant.
7603 (d10v_frame_base_address): New function.
7604 (d10v_frame_base): New variable.
7605 (d10v_gdbarch_init): Set frame_base default.
7606 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7607 comment for base.
7608 (d10v_frame_unwind_cache): Set and use "prev_sp".
7609 (d10v_frame_this_id): Use the previous frame's inner most stack
7610 address and this frame's func address for the frame ID. Use
7611 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7612
6bfb3e36
AC
76132003-04-01 Andrew Cagney <cagney@redhat.com>
7614
7615 * frame.h (get_frame_locals_address, get_frame_args_address):
7616 Refer to the base address, instead of the address of the first
7617 local or parameter.
8ffd9b1b 7618
da62e633
AC
76192003-04-01 Andrew Cagney <cagney@redhat.com>
7620
7621 Add frame debug info addresses:
7622 * frame-base.c: New file.
7623 * frame-base.h: New file.
7624 * frame.h (struct frame_base): Add opaque declaration.
7625 (get_frame_base): Update comment.
7626 (get_frame_base_address): Declare.
7627 (get_frame_locals_address): Declare.
7628 (get_frame_args_address): Declare.
7629 (struct frame_info): Add "base" and "base_cache". Update
7630 comments on the unwinder.
7631 * frame.c: Include "frame-base.h".
7632 (get_frame_locals_address): New function.
7633 (get_frame_base_address): New function.
7634 (get_frame_args_address): New function.
7635 * findvar.c (read_var_value): Use get_frame_locals_address and
7636 get_frame_args_address.
7637 * stack.c (frame_info): Use get_frame_locals_address and
7638 get_frame_args_address.
7639 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7640 moved to "frame-base.c".
7641 * printcmd.c (print_frame_nameless_args): Ditto.
7642 * symtab.h (address_class): Update comments.
7643 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7644 get_frame_base_address.
7645 * dwarf2expr.c (execute_stack_op): Ditto.
7646 * Makefile.in (frame_base_h): Define.
7647 (frame.o): Update dependencies.
7648 (frame-base.o): Add dependencies.
7649 (SFILES): Add frame-base.c.
7650 (COMMON_OBS): Add frame-base.o.
7651
3d30e9c2
AC
76522003-04-01 Andrew Cagney <cagney@redhat.com>
7653
7654 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7655 CALL_DUMMY_LENGTH): Ditto.
7656 * gdbarch.c: Re-generate.
7657 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7658 (CALL_DUMMY_LENGTH): Delete macro.
7659 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7660 * arm-tdep.c (arm_gdbarch_init): Ditto.
7661 * avr-tdep.c (avr_gdbarch_init): Ditto.
7662 * cris-tdep.c (cris_gdbarch_init): Ditto.
7663 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7664 * frv-tdep.c (frv_gdbarch_init): Ditto.
7665 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7666 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7667 * i386-tdep.c (i386_gdbarch_init): Ditto.
7668 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7669 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7670 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7671 * mips-tdep.c (mips_gdbarch_init): Ditto.
7672 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7673 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7674 * s390-tdep.c (s390_gdbarch_init): Ditto.
7675 * sh-tdep.c (sh_gdbarch_init): Ditto.
7676 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7677 * v850-tdep.c (v850_gdbarch_init): Ditto.
7678 * vax-tdep.c (vax_gdbarch_init): Ditto.
7679 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7680
ce0c7262
CV
76812003-04-01 Corinna Vinschen <vinschen@redhat.com>
7682
7683 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7684
73dd234f
AC
76852003-04-01 Andrew Cagney <cagney@redhat.com>
7686
7687 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7688 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7689 * gdbarch.h, gdbarch.c: Re-generate.
7690 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7691 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7692 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7693 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7694 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7695 * infcmd.c (run_stack_dummy): Simplify assuming
7696 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7697 * infrun.c (handle_inferior_event): Ditto.
7698 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7699 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7700 * arm-tdep.c (arm_gdbarch_init): Ditto.
7701 * avr-tdep.c (avr_gdbarch_init): Ditto.
7702 * cris-tdep.c (cris_gdbarch_init): Ditto.
7703 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7704 * frv-tdep.c (frv_gdbarch_init): Ditto.
7705 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7706 * i386-tdep.c (i386_gdbarch_init): Ditto.
7707 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7708 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7709 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7710 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7711 * mips-tdep.c (mips_gdbarch_init): Ditto.
7712 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7713 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7714 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7715 * s390-tdep.c (s390_gdbarch_init): Ditto.
7716 * sh-tdep.c (sh_gdbarch_init): Ditto.
7717 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7718 * v850-tdep.c (v850_gdbarch_init): Ditto.
7719 * vax-tdep.c (vax_gdbarch_init): Ditto.
7720 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7721
97606a13
DJ
77222003-04-01 Daniel Jacobowitz <drow@mvista.com>
7723
7724 * symfile.c (symfile_relocate_debug_section): Update call to
7725 bfd_simple_get_relocated_section_contents.
7726
e8ab51f7
AC
77272003-03-31 Andrew Cagney <cagney@redhat.com>
7728
7729 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7730 * gdbarch.h, gdbarch.c: Regenerate.
7731 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7732 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7733 available.
7734 * frame.h (generic_fix_call_dummy): Delete declaration.
7735 * dummy-frame.h: Update comment.
7736 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7737 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7738 fix_call_dummy.
7739 * sh-tdep.c (sh_gdbarch_init): Ditto.
7740 * s390-tdep.c (s390_gdbarch_init): Ditto.
7741 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7742 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7744 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7745 * i386-tdep.c (i386_gdbarch_init): Ditto.
7746 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7747 * frv-tdep.c (frv_gdbarch_init): Ditto.
7748 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7749 * cris-tdep.c (cris_gdbarch_init): Ditto.
7750 * avr-tdep.c (avr_gdbarch_init): Ditto.
7751 * arm-tdep.c (arm_gdbarch_init): Ditto.
7752
018d1b48
JB
77532003-03-31 J. Brobecker <brobecker@gnat.com>
7754
7755 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7756 (INIT_FRAME_AP): Likewise.
7757 (EXTRA_FRAME_INFO): Likewise.
7758
e9a2674e
AC
77592003-03-31 Andrew Cagney <cagney@redhat.com>
7760
7761 * gdbarch.sh: Include "symfile.h".
7762 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7763 * gdbarch.h, gdbarch.c: Re-generate.
7764 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7766 call_dummy_address, the default is at entry_point_address.
7767 * v850-tdep.c (v850_gdbarch_init): Ditto.
7768 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7769 * sh-tdep.c (sh_gdbarch_init): Ditto.
7770 * s390-tdep.c (s390_gdbarch_init): Ditto.
7771 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7772 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7773 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7774 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7775 * i386-tdep.c (i386_gdbarch_init): Ditto.
7776 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7777 * frv-tdep.c (frv_gdbarch_init): Ditto.
7778 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7779 * cris-tdep.c (cris_gdbarch_init): Ditto.
7780 * arm-tdep.c (arm_gdbarch_init): Ditto.
7781
e8a8712a
AC
77822003-03-31 Andrew Cagney <cagney@redhat.com>
7783
7784 * gdbarch.sh (CALL_DUMMY_P): Delete.
7785 * gdbarch.h, gdbarch.c: Re-generate.
7786 * inferior.h (CALL_DUMMY_P): Delete macro.
7787 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7788 * vax-tdep.c (vax_gdbarch_init): Update.
7789 * v850-tdep.c (v850_gdbarch_init): Update.
7790 * sparc-tdep.c (sparc_gdbarch_init): Update.
7791 * sh-tdep.c (sh_gdbarch_init): Update.
7792 * s390-tdep.c (s390_gdbarch_init): Update.
7793 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7794 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7795 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7796 * mips-tdep.c (mips_gdbarch_init): Update.
7797 * mcore-tdep.c (mcore_gdbarch_init): Update.
7798 * m68k-tdep.c (m68k_gdbarch_init): Update.
7799 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7800 * ia64-tdep.c (ia64_gdbarch_init): Update.
7801 * i386-tdep.c (i386_gdbarch_init): Update.
7802 * h8300-tdep.c (h8300_gdbarch_init): Update.
7803 * frv-tdep.c (frv_gdbarch_init): Update.
7804 * d10v-tdep.c (d10v_gdbarch_init): Update.
7805 * cris-tdep.c (cris_gdbarch_init): Update.
7806 * breakpoint.c (deprecated_frame_in_dummy): Update.
7807 * avr-tdep.c (avr_gdbarch_init): Update.
7808 * alpha-tdep.c (alpha_gdbarch_init): Update.
7809 * arm-tdep.c (arm_gdbarch_init): Update.
7810 * dummy-frame.c (dummy_frame_this_id): Update comments.
7811 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7812 * frame.c (legacy_get_prev_frame): Ditto.
7813 * valops.c (call_function_by_hand): Delete function.
7814 (hand_function_call): Rename to call_function_by_hand
7815
ed234cf8
AC
78162003-03-30 Andrew Cagney <cagney@redhat.com>
7817
7818 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7819 * value.h (struct value): Update comment.
ed234cf8 7820
06c77151
AC
78212003-03-30 Andrew Cagney <cagney@redhat.com>
7822
6c2b5168
AC
7823 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7824 D10V_FP_REGNUM.
7825 (d10v_gdbarch_init): Do not set fp_regnum.
7826
06c77151
AC
7827 * frame.c (get_frame_base): Force ID initialization.
7828 (get_prev_frame): Move computation of the frame ID from here ...
7829 (get_frame_id): ... to here.
7830 (legacy_get_prev_frame): Mark the frame ID as valid.
7831 * frame.h (struct frame_info): Add field "id_p".
7832
97a1a11c
MK
78332003-03-30 Mark Kettenis <kettenis@gnu.org>
7834
7835 * i386-tdep.c (i386_store_struct_return): Removed.
7836 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7837
6c0e89ed
AC
78382003-03-30 Andrew Cagney <cagney@redhat.com>
7839
7840 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7841 * gdbarch.h, gdbarch.c: Regenerate.
7842 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7843 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7844 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7845 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7846 * i386-tdep.c (i386_gdbarch_init): Ditto.
7847 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7848 * cris-tdep.c (cris_gdbarch_init): Ditto.
7849 * vax-tdep.c (vax_gdbarch_init): Ditto.
7850 * s390-tdep.c (s390_gdbarch_init): Ditto.
7851 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7852 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7853 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7854 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7855 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7856 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7857 * sparc-tdep.c (sparc_gdbarch_init): Update.
7858 * sh-tdep.c (sh_gdbarch_init): Update.
7859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7860 * mips-tdep.c (mips_gdbarch_init): Update.
7861 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7862 * ia64-tdep.c (ia64_gdbarch_init): Update.
7863 * frv-tdep.c (frv_gdbarch_init): Update.
7864 * avr-tdep.c (avr_gdbarch_init): Update.
7865 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7866 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7867 instead of when push_dummy_call is not available.
8ffd9b1b 7868
f7dd6af2
AC
78692003-03-30 Andrew Cagney <cagney@redhat.com>
7870
7871 * infttrace.c: Include "gdbthread.h".
7872 (parent_attach_all): Fix function signature.
7873 (call_ptrace): Update call.
7874 * Makefile.in (infttrace.o): Update dependencies.
7875
28f617b3
AC
78762003-03-30 Andrew Cagney <cagney@redhat.com>
7877
7878 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7879 PUSH_RETURN_ADDRESS.
7880 * gdbarch.h, gdbarch.c: Regenerate.
7881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7882 * x86-64-tdep.c (x86_64_init_abi): Update.
7883 * v850-tdep.c (v850_gdbarch_init): Update.
7884 * sparc-tdep.c (sparc_gdbarch_init): Update.
7885 * sh-tdep.c (sh_gdbarch_init): Update.
7886 * s390-tdep.c (s390_gdbarch_init): Update.
7887 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7888 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7889 * mips-tdep.c (mips_gdbarch_init): Update.
7890 * mcore-tdep.c (mcore_gdbarch_init): Update.
7891 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7892 * ia64-tdep.c (ia64_gdbarch_init): Update.
7893 * i386-tdep.c (i386_gdbarch_init): Update.
7894 * h8300-tdep.c (h8300_gdbarch_init): Update.
7895 * frv-tdep.c (frv_gdbarch_init): Update.
7896 * cris-tdep.c (cris_gdbarch_init): Update.
7897 * avr-tdep.c (avr_gdbarch_init): Update.
7898 * arm-tdep.c (arm_gdbarch_init): Update.
7899 * valops.c (hand_function_call): Update.
7900
4d628cd7
AC
79012003-03-29 Andrew Cagney <cagney@redhat.com>
7902
7903 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7904 sizeof_call_dummy_words.
7905 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7906 define.
7907 * gdbarch.h: Regenerate.
8ffd9b1b 7908
65e82032
AC
79092003-03-29 Andrew Cagney <cagney@redhat.com>
7910
7911 * infttrace.h: New file.
7912 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7913 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7914 (hpread_read_doc_function_type): Detect an initialized type1.
7915 (hpread_quick_traverse): Initialize mod_name_string.
7916 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7917 (som_solib_get_solib_by_pc): Declare.
7918 (so_lib_thread_start_addr): Declare.
7919 (no_shared_libraries): Declare.
7920 * somread.c (init_import_symbols): Make static. Add forward
7921 declaration.
7922 * config/pa/nm-hppah.h: Include "infttrace.h" for
7923 parent_attach_all.
7924 (hppa_insert_hw_watchpoint): Declare.
7925 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7926 * hppah-nat.c: Include "gdb_string.h".
7927 (parent_attach_all): Delete extern declaration, moved to
7928 "infttrace.h".
7929 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7930 int.
7931 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7932 * Makefile.in (infttrace_h): Define.
7933 (hpread.o): Update dependencies.
7934 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7935 * hppa-hpux-tdep.c: Include "gdb_string.h".
7936 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7937 * infrun.c (handle_inferior_event): Always initialize
7938 stepped_after_stopped_by_watchpoint. Add default and remove
7939 fallthrough in switch statement.
7940 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7941 parameter to int.
7942 (hppa_remove_hw_watchpoint): Ditto.
7943
2c3bbe77
AC
79442003-03-29 Andrew Cagney <cagney@redhat.com>
7945
7946 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7947 offset.
7948
2dd604e7
RE
79492003-03-29 Richard Earnshaw <rearnsha@arm.com>
7950
7951 * arm-tdep.c (arm_push_arguments): Delete.
7952 (struct stack_item): New type.
7953 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7954 (arm_store_struct_return): Delte.
7955 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7956 arm_push_arguments or arm_store_struct_return.
7957
e8933a55
AC
79582003-03-28 Andrew Cagney <cagney@redhat.com>
7959
7960 * Makefile.in (d10v-tdep.o): Update dependencies.
7961 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7962 * d10v-tdep.c: Include "remote.h".
7963 (target_resume_hook): Delete extern declaration.
7964 (target_wait_loop_hook): Ditto.
7965 (tdisassemble_command): Eliminate assignment in "if" conditional.
7966 (d10v_ts2_register_sim_regno): Eliminate call to
7967 legacy_register_sim_regno.
7968 (d10v_ts3_register_sim_regno): Ditto.
7969
6949171e
JJ
79702003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7971
7972 * thread.c: Reindented.
7973 * lin-lwp.c: Ditto.
7974 * linux-proc.c: Ditto.
7975
98c7071f
BR
79762003-03-28 Bob Rossi <bob_rossi@cox.net>
7977
fbe586ae 7978 * MAINTAINERS (write after approval): Add myself.
98c7071f 7979
5edc9ca6
TR
79802003-03-27 Theodore A. Roth <troth@openavr.org>
7981
7982 * objc-exp.y: Add missing semi-colons.
7983
378bfd1b
AC
79842003-03-27 Andrew Cagney <cagney@redhat.com>
7985
7986 * regcache.c (write_sp): Delete function and references.
7987 * inferior.h (write_sp): Delete declaration.
7988 * valops.c (hand_function_call): Replace write_sp with
7989 TARGET_WRITE_SP.
7990 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7991 (sparc_pop_frame): Ditto.
8ffd9b1b 7992
56056df7
AC
79932003-03-27 Andrew Cagney <cagney@redhat.com>
7994
7995 * NEWS: Mention removal of support for hppa*-*-bsd* and
7996 hppa*-*-osf* natives, and hppa*-*-pro* target.
7997 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7998 * config/pa/xm-pa.h: Obsolete file.
7999 * config/pa/xm-hppab.h: Obsolete file.
8000 * config/pa/nm-hppab.h: Obsolete file.
8001 * config/pa/tm-hppab.h: Obsolete file.
8002 * config/pa/tm-hppao.h: Obsolete file.
8003 * config/pa/nm-hppao.h: Obsolete file.
8004 * config/pa/tm-pro.h: Obsolete file.
8005 * config/pa/hppaosf.mt: Obsolete file.
8006 * config/pa/hppaosf.mh: Obsolete file.
8007 * config/pa/hppapro.mt: Obsolete file.
8008 * config/pa/hppabsd.mt: Obsolete file.
8009 * config/pa/hppabsd.mh: Obsolete file.
8010 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8011 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8012 hppa*-*-osf*.
8013
5873a88d
AC
80142003-03-27 Andrew Cagney <cagney@redhat.com>
8015
8016 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8017 push_arguments. Don't set push_return_address or write_sp.
8018 (d10v_push_dummy_call): Replace d10v_push_arguments.
8019 (d10v_push_return_address, d10v_write_sp): Delete function,
8020 handled by push_dummy_call.
8021
b81774d8
AC
80222003-03-26 Andrew Cagney <cagney@redhat.com>
8023
8024 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8025 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8026 regcache and dummy_addr parameters.
8027 * gdbarch.h, gdbarch.c: Re-generate.
8028 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8029 available; assume it will handle stack alignment and return
8030 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8031 legacy_push_arguments.
8032 (legacy_push_arguments): Rename default_push_arguments.
8033 * value.h (legacy_push_arguments): Rename default_push_arguments.
8034 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8035 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8036 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8037 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8038 * config/i386/tm-symmetry.h: Update.
8039 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8040 * x86-64-tdep.c (x86_64_init_abi): Update.
8041 * v850-tdep.c (v850_gdbarch_init): Update.
8042 * sparc-tdep.c (sparc_gdbarch_init): Update.
8043 * sh-tdep.c (sh_gdbarch_init): Update.
8044 * s390-tdep.c (s390_gdbarch_init): Update.
8045 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8046 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8047 * mips-tdep.c (mips_gdbarch_init): Update.
8048 * mcore-tdep.c (mcore_gdbarch_init): Update.
8049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8050 * ia64-tdep.c (ia64_gdbarch_init): Update.
8051 * i386-tdep.c (i386_gdbarch_init): Update.
8052 * hppa-tdep.c (hppa_gdbarch_init): Update.
8053 * h8300-tdep.c (h8300_gdbarch_init): Update.
8054 * frv-tdep.c (frv_gdbarch_init): Update.
8055 * d10v-tdep.c (d10v_gdbarch_init): Update.
8056 * cris-tdep.c (cris_gdbarch_init): Update.
8057 * avr-tdep.c (avr_gdbarch_init): Update.
8058 * arm-tdep.c (arm_gdbarch_init): Update.
8059 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8060 * alpha-tdep.c (alpha_gdbarch_init): Update.
8061
f541410f
DJ
80622003-03-26 Daniel Jacobowitz <drow@mvista.com>
8063
8064 * signals/signals.c (do_target_signal_to_host): Correct realtime
8065 signal range test.
8066
69f567ae
DJ
80672003-03-26 Daniel Jacobowitz <drow@mvista.com>
8068
8069 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8070 (struct sal_chain, map_catch_names): Remove.
8071 (catch_exception_command_1): Don't call
8072 handle_gnu_4_16_catch_command.
8073
d5d14a5a
DJ
80742003-03-26 Daniel Jacobowitz <drow@mvista.com>
8075
8076 From Mark Dettinger <dettinge@de.ibm.com>:
8077 * dwarf2cfi.c (read_2u): Increment pointer by two.
8078
bdd73e22
DJ
80792003-03-26 Daniel Jacobowitz <drow@mvista.com>
8080
8081 * signals/signals.c: Fix typos in last change.
8082
960cb555
DJ
80832003-03-26 Daniel Jacobowitz <drow@mvista.com>
8084
8085 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8086 not already defined. Use __SIGRTMIN if available.
8087 (target_signal_from_host): Remove SIGRTMIN block.
8088 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8089 the signal is within the realtime range.
8090
f636b87d
AF
80912003-03-25 Adam Fedor <fedor@gnu.org>
8092
8093 * Makefile.in (infrun.o): Add $(language_h)
8094 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8095 for language specific trampolines.
8096 * language.h (struct language_defn): Add skip_trampoline.
8097 (skip_language_trampoline): Declare.
8098 * language.c (unk_lang_trampoline, skip_language_trampoline):
8099 New functions.
8100 (unknown_language_defn, auto_language_defn, local_language_defn):
8101 Add ukn_lang_trampoline.
8102 * ada-lang.c (ada_language_defn): Add NULL for language
8103 specific skip_trampoline.
8104 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8105 scm-lang.c: Likewise.
8106 * objc-lang.c (objc_skip_trampoline): New function.
8107 (objc_language_defn): Add objc_skip_trampoline.
8108
28f617b3 81092003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8110
8111 * frame.c (get_prev_frame): Delay validating a frame's ID -
8112 non-NULL, didn't go backwards - until an attempt to unwind it to
8113 the previous frame.
8114
f933a9c5
AC
81152003-03-25 Andrew Cagney <cagney@redhat.com>
8116
8117 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8118 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8119 * gdbarch.h, gdbarch.c: Re-generate.
8120 * config/sparc/tm-sparc.h
8121 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8122 * sparc-tdep.c (sparc_gdbarch_init): Set
8123 deprecated_extra_stack_alignment_needed.
8124 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8125 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8126 extra_stack_alignment_needed.
8127 * v850-tdep.c (v850_gdbarch_init): Ditto.
8128 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8129 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8130 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8131 * cris-tdep.c (cris_gdbarch_init): Ditto.
8132 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8134
4183d812
AC
81352003-03-25 Andrew Cagney <cagney@redhat.com>
8136
8137 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8138 STORE_STRUCT_RETURN.
8139 * gdbarch.h, gdbarch.c: Regenerate.
8140 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8141 (d10v_push_arguments): Set the struct return register.
8142 (d10v_gdbarch_init): Update.
8143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8144 * x86-64-tdep.c (x86_64_init_abi): Update.
8145 * vax-tdep.c (vax_gdbarch_init): Update.
8146 * v850-tdep.c (v850_gdbarch_init): Update.
8147 * sparc-tdep.c (sparc_gdbarch_init): Update.
8148 * sh-tdep.c (sh_gdbarch_init): Update.
8149 * s390-tdep.c (s390_gdbarch_init): Update.
8150 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8151 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8152 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8153 * mips-tdep.c (mips_gdbarch_init): Update.
8154 * mcore-tdep.c (mcore_gdbarch_init): Update.
8155 * m68k-tdep.c (m68k_gdbarch_init): Update.
8156 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8157 * ia64-tdep.c (ia64_gdbarch_init): Update.
8158 * i386-tdep.c (i386_gdbarch_init): Update.
8159 * hppa-tdep.c (hppa_gdbarch_init): Update.
8160 * h8300-tdep.c (h8300_gdbarch_init): Update.
8161 * frv-tdep.c (frv_gdbarch_init): Update.
8162 * cris-tdep.c (cris_gdbarch_init): Update.
8163 * avr-tdep.c (avr_gdbarch_init): Update.
8164 * arm-tdep.c (arm_gdbarch_init): Update.
8165 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8166
1bf6d5cc
AC
81672003-03-25 Andrew Cagney <cagney@redhat.com>
8168
8169 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8170 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8171 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8172 * gdbarch.h, gdbarch.c: Regenerate.
8173 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8174 call_dummy_stack_adjust_p.
8175 * vax-tdep.c (vax_gdbarch_init): Ditto.
8176 * v850-tdep.c (v850_gdbarch_init): Ditto.
8177 * sh-tdep.c (sh_gdbarch_init): Ditto.
8178 * s390-tdep.c (s390_gdbarch_init): Ditto.
8179 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8180 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8181 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8182 * mips-tdep.c (mips_gdbarch_init): Ditto.
8183 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8184 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8185 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8186 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8187 * i386-tdep.c (i386_gdbarch_init): Ditto.
8188 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8189 * frv-tdep.c (frv_gdbarch_init): Ditto.
8190 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8191 * cris-tdep.c (cris_gdbarch_init): Ditto.
8192 * avr-tdep.c (avr_gdbarch_init): Ditto.
8193 * arm-tdep.c (arm_gdbarch_init): Ditto.
8194 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8195 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8196 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8197 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8198 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8199 call_dummy_stack_adjust_p.
8200 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8201 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8202 * sparc-tdep.c (sparc32_push_arguments): Update.
8203 * valops.c (hand_function_call): Update.
8204
71c08af0
CV
82052003-03-25 Corinna Vinschen <vinschen@redhat.com>
8206
8207 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8208 set_gdbarch_char_signed.
8209
30757f90
RE
82102003-03-25 Richard Earnshaw <rearnsha@arm.com>
8211
8212 PR cli/548
8213 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8214
03d48a7d
RE
82152003-03-25 Richard Earnshaw <rearnsha@arm.com>
8216
8217 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8218 (_initialize_arm_tdep): Don't set tm_print_insn.
8219
2cf6873c
AF
82202003-03-24 Adam Fedor <fedor@gnu.org>
8221
8222 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8223 * objc-lang.h: Add multiple inclusion protection.
8224 (start_msglist, add_msglist, end_msglist): Additional declarations.
8225
17c0759e
RE
82262003-03-24 Richard Earnshaw <rearnsha@arm.com>
8227
8228 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8229 value was renamed to ARM_FLOAT_SOFT_FPA.
8230
618ce49f
AC
82312003-03-23 Andrew Cagney <cagney@redhat.com>
8232
8233 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8234 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8235 * gdbarch.h, gdbarch.c: Regenerate.
8236 * valops.c (hand_function_call): Update.
8237 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8238 * frame.c (legacy_saved_regs_this_id): Update.
8239 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8240 * dummy-frame.h: Update.
8241 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8242 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8243 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8244 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8245 * config/m68k/tm-sun3.h: Update.
8246 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8247 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8248 * x86-64-tdep.c (x86_64_init_abi): Update.
8249 * vax-tdep.c (vax_gdbarch_init): Update.
8250 * v850-tdep.c (v850_gdbarch_init): Update.
8251 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8252 * sh-tdep.c (sh_gdbarch_init): Update.
8253 * s390-tdep.c (s390_gdbarch_init): Update.
8254 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8255 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8256 (frame_get_saved_regs): Update.
8257 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8258 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8259 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8260 * mips-tdep.c (mips_gdbarch_init): Update.
8261 * mcore-tdep.c (mcore_gdbarch_init): Update.
8262 * m68k-tdep.c (m68k_gdbarch_init): Update.
8263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8264 * ia64-tdep.c (ia64_gdbarch_init): Update.
8265 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8266 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8267 (i386_interix_back_one_frame): Update.
8268 * hppa-tdep.c (hppa_gdbarch_init): Update.
8269 (hppa_init_extra_frame_info): Update.
8270 * h8300-tdep.c (h8300_gdbarch_init): Update.
8271 * frv-tdep.c (frv_gdbarch_init): Update.
8272 * cris-tdep.c (cris_gdbarch_init): Update.
8273 * avr-tdep.c (avr_gdbarch_init): Update.
8274 * arm-tdep.c (arm_gdbarch_init): Update.
8275 * alpha-tdep.c (alpha_gdbarch_init): Update.
8276
fd50bc42
RE
82772003-03-22 Richard Earnshaw <rearnsha@arm.com>
8278
8279 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8280 (arm_get_fp_model): Declare.
8281 * arm-tdep.c (fp_model_strings): New string array.
8282 (arm_fp_model, current_fp_model): New variables.
8283 (arm_get_fp_model): New function.
8284 (arm_set_fp): New function.
8285 (set_fp_model_sfunc): New function.
8286 (show_fp_model): New function.
8287 (_initialize_arm_tdep): Add new command to set/show the FPU.
8288 (arm_extract_return_value): Use arm_get_fp_model.
8289 (arm_store_return_value): Likewise.
8290 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8291 to initialize the floating-point data types.
8292 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8293 model is FPA.
8294
26304000
RE
82952003-03-22 Richard Earnshaw <rearnsha@arm.com>
8296
8297 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8298 the current setting of each value.
8299 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8300 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8301 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8302 commands and add new version as subcommands of "set/show arm".
8303
afd7eef0
RE
83042003-03-22 Richard Earnshaw <rearnsha@arm.com>
8305
8306 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8307 (set_arm_command, show_arm_command): New functions.
8308 (_initialize_arm_tdep): Add them.
8309 (num_disassembly_options): Renamed from num_flavor_options.
8310 (valid_disassembly_styles): Renamed from valid_flavors.
8311 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8312 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8313 set_disassembly_flavor_sfunc.
8314 (set_disassembly_style): Renamed from set_disassembly_flavor.
8315 (arm_othernames): Updated.
8316 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8317 command. Add "set/show arm disassembly" commands. Deprecate
8318 "othernames" command.
8319
299a7944
RE
83202003-03-22 Richard Earnshaw <rearnsha@arm.com>
8321
8322 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8323 (arm-tdep.o): Depend on elf_arm_h.
8324
c1dac9e6
RE
83252003-03-22 Richard Earnshaw <rearnsha@arm.com>
8326
8327 * Makefile.in (coff_internal_h): Define.
8328 (arm-tdep.o): Update dependencies.
8329
2702d96c
RE
83302003-03-22 Richard Earnshaw <rearnsha@arm.com>
8331
8332 * arm-tdep.c (prologue_cache): Delete.
8333 (check_prologue_cache, save_prologue_cache): Delete.
8334 (arm_scan_prologue): Don't check or update the prologue_cache.
8335 (arm_gdb_arch_init): Don't initialize it.
8336 (_initialize_arm_tdep): Likewise.
8337
27d5d74b
SC
83382003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8339
8340 * MAINTAINERS (tui): Maintainer of tui code.
8341
1762d96d
CV
83422003-03-21 Corinna Vinschen <vinschen@redhat.com>
8343
8344 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8345 (i386-cygwin-tdep.o): Add dependencies.
8346 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8347 * i386-cygwin-tdep.c: New file.
8348 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8349 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8350
4c2e2391
AC
83512003-03-20 Andrew Cagney <cagney@redhat.com>
8352
f20d38b7
AC
8353 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8354 (handle_inferior_event): Remove code calling
8355 DYNAMIC_TRAMPOLINE_NEXTPC.
8356
0022b738
AC
8357 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8358 already has a full path.
8359
864dbc90
AC
8360 * main.c (gdb_main): Return 1.
8361 (captured_main): Call error to report an invalid interpreter.
8362
4c2e2391
AC
8363 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8364 * alpha-osf1-tdep.c: Include "gdb_string.h".
8365
5ef7553b
JB
83662003-03-19 J. Brobecker <brobecker@gnat.com>
8367
8368 Continuing work to convert the hppa targets to multiarch partial.
8369
8370 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8371 method, now that hppa_push_dummy_frame has a conformant prototype.
8372 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8373 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8374 for the switch to multiarch partial.
8375
7bde8967
KB
83762003-03-19 Kevin Buettner <kevinb@redhat.com>
8377
8378 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8379 when iss is issNull.
8380
b006a9e9
KB
83812003-03-18 Kevin Buettner <kevinb@redhat.com>
8382
8383 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8384 NUM_REGS bounds check.
8385
5e2e9765
KB
83862003-03-18 Kevin Buettner <kevinb@redhat.com>
8387
8388 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8389 * mips-tdep.c (gdb_assert.h): Include.
8390 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8391 (mips_register_name): Handle integer registers explicitly. Add
8392 bounds checking.
8393 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8394 (mips_lsi33k_reg_names): Don't list integer registers; they're
8395 handled by mips_register_name() now.
8396 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8397 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8398 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8399 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8400 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8401
a2867626
AC
84022003-03-18 Andrew Cagney <cagney@redhat.com>
8403
8404 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8405 a void pointer.
8406 * gdbtypes.h (print_scalar_formatted): Update declaration.
8407 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8408
06600e06
JB
84092003-03-18 J. Brobecker <brobecker@gnat.com>
8410
8411 * infrun.c (observer.h): Add #include.
8412 (normal_stop): Add call to observer_notify_normal_stop.
8413 * Makefile.in (infrun.o): Add dependency on observer.h.
8414
7daf4f5b
JB
84152003-03-18 J. Brobecker <brobecker@gnat.com>
8416
8417 Continuing work to convert the hppa targets to multiarch partial.
8418 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8419 parameter. Reformat comment.
8420 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8421 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8422 to match new profile.
8423
3371ccc0
JB
84242003-03-18 J. Brobecker <brobecker@gnat.com>
8425
8426 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8427 appear to be working in any case.
8428
4fbe891e
JB
84292003-03-18 J. Brobecker <brobecker@gnat.com>
8430
8431 * observer.c (observer_test_first_observer): New static variable.
8432 (observer_test_second_observer): Likewise.
8433 (observer_test_third_observer): Likewise.
8434 (observer_test_first_notification_function): New static function.
8435 (observer_test_second_notification_function): Likewise.
8436 (observer_test_third_notification_function): Likewise.
8437
a7ff40e7
JB
84382003-03-17 J. Brobecker <brobecker@gnat.com>
8439
8440 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8441 * somsolib.c (gdb_assert.h): Likewise.
8442 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8443 (somsolib.o): Likewise.
8444
26ca4152
AC
84452003-03-17 Andrew Cagney <cagney@redhat.com>
8446
8447 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8448 BFD. Simplify setting of di.endian.
8449
0a613259
AC
84502003-03-17 Andrew Cagney <cagney@redhat.com>
8451
8452 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8453 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8454
8455 From Elena Zannoni <ezannoni@redhat.com>
8456 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8457 vector and floating-point parameters.
8458 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8459 convention.
8460 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8461
1132738f
FN
84622003-03-17 Fernando Nasser <fnasser@redhat.com>
8463
8464 * MAINTAINERS: Remove my name from several maintainership roles.
8465
6dc42492
AC
84662003-03-17 Andrew Cagney <cagney@redhat.com>
8467
8468 Fix frame off-by-one bug.
8469 * frame-unwind.h (frame_this_id_ftype): Replace
8470 frame_unwind_id_ftype.
8471 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8472 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8473 with "prev_register".
8474 * frame-unwind.c (frame_unwind_find_by_pc): Return
8475 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8476 comment.
8477 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8478 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8479 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8480 (dummy_frame_unwind): Update.
8481 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8482 sentinel_frame_register_unwind.
8483 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8484 (sentinel_frame_unwinder): Update.
8485 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8486 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8487 * frame.c (create_sentinel_frame): Update. Initialize
8488 "prologue_cache" instead of "unwind_cache".
8489 (frame_register_unwind): Call this frame's prev_register with the
8490 next frame and this frame's prologue cache.
8491 (get_prev_frame): Simplify. Always call prev frame's this_id with
8492 this frame and prev frame's prologue cache. Document that this
8493 call is shifted one to the left when compared to the
8494 frame_register_unwind call.
8495 (legacy_saved_regs_prev_register): Replace
8496 frame_saved_regs_register_unwind.
8497 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8498 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8499 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8500 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8501 (d10v_frame_unwind): Update.
8502 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8503 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8504 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8505 "saved_regs" with "this_saved_regs".
8506
efd710d6
AC
85072003-03-16 Andrew Cagney <cagney@redhat.com>
8508
8509 * frame.c (frame_pop): Don't call target_store_registers. Fix
8510 problem reported by Mark Kettenis.
8511
4e259f09
MK
85122003-03-16 Mark Kettenis <kettenis@gnu.org>
8513
8514 * i386-tdep.c (i386_register_type): Renamed from
8515 i386_register_virtual_type. Adjust function signature.
8516 (i386_gdbarch_init): Set register_type instead of
8517 deprecated_max_register_raw_size,
8518 deprecated_max_register_virtual_size and register_virtual_type.
8519
055bb976
AC
85202003-03-14 Andrew Cagney <cagney@redhat.com>
8521
8522 * frame.c (get_prev_frame): When a legacy frame, always call
8523 legacy_get_prev_frame. Simplify unwind code using assumption that
8524 the unwinder is new.
8525 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8526 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8527 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8528
ac2adee5
AC
85292003-03-14 Andrew Cagney <cagney@redhat.com>
8530
8531 * frame.c (get_saved_register): Delete function.
8532 * frame.h (get_saved_register): Delete declaration.
8533 * xstormy16-tdep.c: Update comment.
8534 * regcache.h: Update comments.
8535 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8536 get_saved_register and extract_address, use
8537 frame_read_unsigned_register.
8538 (sparc_frame_saved_pc): Ditto.
8539 (sparc_get_saved_register): Instead of get_saved_register, use
8540 frame_register.
8541 (sparc_pop_frame): Ditto.
8542 * findvar.c: Update comments.
8543 (value_of_register): Call frame_register instead of
8544 get_saved_register.
8545 (value_from_register): Ditto.
8546 * config/sparc/tm-sparc.h: Update comment.
8547 * breakpoint.c: Update comment.
8548
129c1cd6
AC
85492003-03-14 Andrew Cagney <cagney@redhat.com>
8550
8551 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8552 GET_SAVED_REGISTER.
8553 * gdbarch.h, gdbarch.c: Re-generate.
8554 * frame.h: Update comments.
8555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8556 * x86-64-tdep.c (x86_64_init_abi): Update.
8557 * sparc-tdep.c (sparc_gdbarch_init): Update.
8558 * sh-tdep.c (sh_gdbarch_init): Update.
8559 * mips-tdep.c (mips_gdbarch_init): Update.
8560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8561 * cris-tdep.c (cris_gdbarch_init): Update.
8562 * ia64-tdep.c (ia64_gdbarch_init): Update.
8563 * frame.c (frame_register): Update.
8564 (get_saved_register): Update.
8565 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8566
749b82f6
AC
85672003-03-13 Andrew Cagney <cagney@redhat.com>
8568
8569 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8570 * gdbarch.h, gdbarch.c: Regenerate.
8571 * valops.c (hand_function_call): Update comment.
8572 * stack.c (return_command): Update comment.
8573 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8574 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8576 * x86-64-tdep.c (x86_64_init_abi): Update.
8577 * vax-tdep.c (vax_gdbarch_init): Update.
8578 * v850-tdep.c (v850_gdbarch_init): Update.
8579 * sparc-tdep.c (sparc_gdbarch_init): Update.
8580 * sh-tdep.c (sh_gdbarch_init): Update.
8581 * s390-tdep.c (s390_gdbarch_init): Update.
8582 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8583 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8584 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8585 * mips-tdep.c (mips_gdbarch_init): Update.
8586 * mcore-tdep.c (mcore_gdbarch_init): Update.
8587 * m68k-tdep.c (m68k_gdbarch_init): Update.
8588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8589 * ia64-tdep.c (ia64_gdbarch_init): Update.
8590 * i386-tdep.c (i386_gdbarch_init): Update.
8591 * hppa-tdep.c (hppa_gdbarch_init): Update.
8592 * h8300-tdep.c (h8300_gdbarch_init): Update.
8593 * frv-tdep.c (frv_gdbarch_init): Update.
8594 * cris-tdep.c (cris_gdbarch_init): Update.
8595 * avr-tdep.c (avr_gdbarch_init): Update.
8596 * arm-tdep.c (arm_gdbarch_init): Update.
8597 * alpha-tdep.c (alpha_gdbarch_init): Update.
8598
1594fa56
AC
85992003-03-13 Andrew Cagney <cagney@redhat.com>
8600
8601 * frame.c (legacy_frame_p): New function.
8602 (get_prev_frame): Use legacy_frame_p.
8603 * frame.h (legacy_frame_p): Declare.
8604
7717fda3
V
86052003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8606
fbe586ae 8607 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8608 listing corrected.
8609
0c67cbe9
V
86102003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8611
fbe586ae 8612 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8613
03febf99
AC
86142003-03-12 Andrew Cagney <cagney@redhat.com>
8615
8616 * frame.c (get_prev_frame): Rename the frame parameter to
8617 "this_frame".
8618 (get_next_frame, legacy_get_prev_frame): Ditto.
8619
0a1e1ca1
AC
86202003-03-12 Andrew Cagney <cagney@redhat.com>
8621
8622 * frame.c (get_current_frame): Check target_has_registers before
8623 checking target_has_stack.
8624 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8625 instead of deprecated_selected_frame.
8626 * findvar.c (value_of_register): Pass "frame", not
8627 deprecated_selected_frame, to value_of_builtin_reg.
8628
a66a9c23
AC
86292003-03-12 Andrew Cagney <cagney@redhat.com>
8630
8631 * regcache.c (regcache_cooked_write_signed): New function.
8632 (regcache_cooked_write_unsigned): New function.
8633 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8634 (regcache_cooked_read_signed): Fix regnum in range assertion.
8635 * regcache.h (regcache_cooked_write_signed): Declare.
8636 (regcache_cooked_write_unsigned): Declare.
8637
8bedc050
AC
86382003-03-12 Andrew Cagney <cagney@redhat.com>
8639
8640 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8641 * gdbarch.h, gdbarch.c: Re-generate.
8642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8643 * x86-64-tdep.h: Update.
8644 * x86-64-tdep.c (x86_64_init_abi): Update.
8645 * v850-tdep.c (v850_gdbarch_init): Update.
8646 * sparc-tdep.c (sparc_gdbarch_init): Update.
8647 * sh-tdep.c (sh_gdbarch_init): Update.
8648 * s390-tdep.c (s390_gdbarch_init): Update.
8649 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8650 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8651 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8652 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8653 * mips-tdep.c (mips_gdbarch_init): Update.
8654 * mcore-tdep.c (mcore_gdbarch_init): Update.
8655 * m68k-tdep.c (m68k_gdbarch_init): Update.
8656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8657 * ia64-tdep.c (ia64_gdbarch_init): Update.
8658 * i386-tdep.c (i386_gdbarch_init): Update.
8659 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8660 * hppa-tdep.c (hppa_gdbarch_init): Update.
8661 * h8300-tdep.c (h8300_gdbarch_init): Update.
8662 * frv-tdep.c (frv_gdbarch_init): Update.
8663 * cris-tdep.c (cris_gdbarch_init): Update.
8664 * avr-tdep.c (avr_gdbarch_init): Update.
8665 * arm-tdep.c (arm_gdbarch_init): Update.
8666 * alpha-tdep.c (alpha_gdbarch_init): Update.
8667 * sh-tdep.c (sh_init_extra_frame_info): Update.
8668 (sh64_init_extra_frame_info): Update.
8669 * ns32knbsd-nat.c (frame_num_args): Update.
8670 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8671 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8672 (xstormy16_frame_chain_valid): Update.
8673 * vax-tdep.c (vax_saved_pc_after_call): Update.
8674 * v850-tdep.c (v850_frame_chain): Update.
8675 (v850_pop_frame): Update.
8676 (v850_init_extra_frame_info): Update.
8677 * sparc-tdep.c (setup_arbitrary_frame): Update.
8678 * ns32k-tdep.c (umax_frame_num_args): Update.
8679 * s390-tdep.c (s390_pop_frame_regular): Update.
8680 * mn10300-tdep.c (mn10300_frame_chain): Update.
8681 (mn10300_pop_frame_regular): Update.
8682 (mn10300_init_extra_frame_info): Update.
8683 * mips-tdep.c (mips_init_frame_pc_first): Update.
8684 (mips_frame_chain): Update.
8685 (mips_pop_frame): Update.
8686 * mcore-tdep.c (mcore_frame_chain): Update.
8687 (mcore_pop_frame): Update.
8688 (mcore_init_extra_frame_info): Update.
8689 * arch-utils.c (init_frame_pc_default): Update.
8690 * m68k-tdep.c (isi_frame_num_args): Update.
8691 (delta68_frame_num_args): Update.
8692 (news_frame_num_args): Update.
8693 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8694 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8695 (alpha_frame_chain): Update.
8696 (alpha_pop_frame): Update.
8697 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8698 (hppa_init_extra_frame_info): Update.
8699 (hppa_frame_chain): Update.
8700 (hppa_frame_chain_valid): Update.
8701 * cris-tdep.c (cris_init_extra_frame_info): Update.
8702 * avr-tdep.c (avr_init_extra_frame_info): Update.
8703 * arm-tdep.c (arm_frame_chain_valid): Update.
8704 (arm_init_extra_frame_info): Update.
8705 (arm_pop_frame): Update.
8706 * frame.c (frame_pc_unwind): Update.
8707 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8708 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8709 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8710 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8711 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8712 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8713
7a25a7c1
AC
87142003-03-12 Andrew Cagney <cagney@redhat.com>
8715
8716 Eliminate the need for POP_FRAME.
8717 * frame.c (do_frame_unwind_register): New function.
8718 (frame_pop): When no POP_FRAME, pop the frame using register
8719 unwind and a scratch regcache.
8720 (frame_saved_regs_pop): Delete function.
8721 (trad_frame_unwinder): Update.
8722 * d10v-tdep.c (d10v_frame_pop): Delete function.
8723 (d10v_frame_unwind): Update.
8724 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8725 (sentinel_frame_unwinder): Update.
8726 * dummy-frame.c (dummy_frame_pop): Delete function.
8727 (dummy_frame_unwind): Update.
8728 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8729 (struct frame_unwind): Update.
8730
2f38ef89
KB
87312003-03-11 Kevin Buettner <kevinb@redhat.com>
8732
8733 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8734 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8735 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8736 Do range checks on register number obtained from debugging info.
8737 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8738 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8739 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8740 mapping function.
8741 (do_fp_register_row): Fix typo which caused double type to be
8742 used when attempting to unpack a float.
8743
552f4abf
JB
87442003-03-11 J. Brobecker <brobecker@gnat.com>
8745
8746 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8747
e0d2ae16
AC
87482003-03-11 Andrew Cagney <cagney@redhat.com>
8749
8750 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8751 frame. Problem found by Corinna Vinschen.
8752
ddbfdd06
PM
87532003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8754
8755 * doublest.c (floatformat_from_length): Accept also
8756 the real size of 'long double' type.
8757
088b2ddc 87582003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8759
088b2ddc 8760 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8761 * breakpoint.c (bpstat_copy): Copy the command lines as well
8762 as the old value, to match what is freed in bpstat_clear.
8763
f56f77c1
DC
87642003-03-10 David Carlton <carlton@math.stanford.edu>
8765
8766 * minsyms.c (add_minsym_to_hash_table): Replace
8767 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8768 (compare_minimal_symbols, compact_minimal_symbols)
8769 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8770 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8771 of DEPRECATED_SYMBOL_MATCHES_NAME.
8772 (lookup_minimal_symbol_solib_trampoline): Ditto.
8773
5602984a
AC
87742003-03-10 Andrew Cagney <cagney@redhat.com>
8775
8776 * regcache.h (regcache_cooked_read_ftype): Define.
8777 (regcache_save, regcache_restore): Add a cooked_read parameter.
8778 * regcache.c (regcache_save, regcache_restore): Update.
8779 (do_cooked_read): New function.
8780 (regcache_cpy): Pass do_cooked_read to regcache_save and
8781 regcache_restore.
8782
8bedc050
AC
87832003-03-10 Andrew Cagney <cagney@redhat.com>
8784
8785 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8786 * gdbarch.h, gdbarch.c: Re-generate.
8787 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8788 * x86-64-tdep.h: Update.
8789 * x86-64-tdep.c (x86_64_init_abi): Update.
8790 * v850-tdep.c (v850_gdbarch_init): Update.
8791 * sparc-tdep.c (sparc_gdbarch_init): Update.
8792 * sh-tdep.c (sh_gdbarch_init): Update.
8793 * s390-tdep.c (s390_gdbarch_init): Update.
8794 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8795 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8796 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8797 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8798 * mips-tdep.c (mips_gdbarch_init): Update.
8799 * mcore-tdep.c (mcore_gdbarch_init): Update.
8800 * m68k-tdep.c (m68k_gdbarch_init): Update.
8801 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8802 * ia64-tdep.c (ia64_gdbarch_init): Update.
8803 * i386-tdep.c (i386_gdbarch_init): Update.
8804 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8805 * hppa-tdep.c (hppa_gdbarch_init): Update.
8806 * h8300-tdep.c (h8300_gdbarch_init): Update.
8807 * frv-tdep.c (frv_gdbarch_init): Update.
8808 * cris-tdep.c (cris_gdbarch_init): Update.
8809 * avr-tdep.c (avr_gdbarch_init): Update.
8810 * arm-tdep.c (arm_gdbarch_init): Update.
8811 * alpha-tdep.c (alpha_gdbarch_init): Update.
8812 * sh-tdep.c (sh_init_extra_frame_info): Update.
8813 (sh64_init_extra_frame_info): Update.
8814 * ns32knbsd-nat.c (frame_num_args): Update.
8815 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8816 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8817 (xstormy16_frame_chain_valid): Update.
8818 * vax-tdep.c (vax_saved_pc_after_call): Update.
8819 * v850-tdep.c (v850_frame_chain): Update.
8820 (v850_pop_frame): Update.
8821 (v850_init_extra_frame_info): Update.
8822 * sparc-tdep.c (setup_arbitrary_frame): Update.
8823 * ns32k-tdep.c (umax_frame_num_args): Update.
8824 * s390-tdep.c (s390_pop_frame_regular): Update.
8825 * mn10300-tdep.c (mn10300_frame_chain): Update.
8826 (mn10300_pop_frame_regular): Update.
8827 (mn10300_init_extra_frame_info): Update.
8828 * mips-tdep.c (mips_init_frame_pc_first): Update.
8829 (mips_frame_chain): Update.
8830 (mips_pop_frame): Update.
8831 * mcore-tdep.c (mcore_frame_chain): Update.
8832 (mcore_pop_frame): Update.
8833 (mcore_init_extra_frame_info): Update.
8834 * arch-utils.c (init_frame_pc_default): Update.
8835 * m68k-tdep.c (isi_frame_num_args): Update.
8836 (delta68_frame_num_args): Update.
8837 (news_frame_num_args): Update.
8838 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8839 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8840 (alpha_frame_chain): Update.
8841 (alpha_pop_frame): Update.
8842 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8843 (hppa_init_extra_frame_info): Update.
8844 (hppa_frame_chain): Update.
8845 (hppa_frame_chain_valid): Update.
8846 * cris-tdep.c (cris_init_extra_frame_info): Update.
8847 * avr-tdep.c (avr_init_extra_frame_info): Update.
8848 * arm-tdep.c (arm_frame_chain_valid): Update.
8849 (arm_init_extra_frame_info): Update.
8850 (arm_pop_frame): Update.
8851 * frame.c (frame_pc_unwind): Update.
8852 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8853 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8854 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8855 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8856 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8857 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8858
12cc2063
AC
88592003-03-10 Andrew Cagney <cagney@redhat.com>
8860
8861 * gdbarch.sh (gdbarch_unwind_pc): New method.
8862 * gdbarch.h, gdbarch.c: Regenerate.
8863 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8864 but use read_pc and FRAME_SAVED_PC as fall backs.
8865 (frame_saved_regs_pc_unwind): Delete function.
8866 (trad_frame_unwinder): Update.
8867 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8868 (struct frame_unwind): Update.
8869 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8870 (dummy_frame_unwind): Update.
8871 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8872 (sentinel_frame_unwinder): Update.
8873 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8874 (d10v_frame_unwind): Update.
8875 (d10v_unwind_pc): New function.
8876 (d10v_gdbarch_init): Set unwind_pc.
8877
ef840a37
AC
88782003-03-10 Andrew Cagney <cagney@redhat.com>
8879
a2ce2e56
AC
8880 * gdbarch.h: Re-generate.
8881
ef840a37
AC
8882 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8883 PC.
8884 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8885 the PC register.
8886
08f3424b
MK
88872003-03-08 Mark Kettenis <kettenis@gnu.org>
8888
8889 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8890
1248ede2
AC
88912003-03-08 Andrew Cagney <cagney@redhat.com>
8892
8893 * cli-out.c: Update copyright.
8894 (cli_out_data): Define typedef. Use instead of ui_out_data.
8895
f49bacc8
AC
88962003-03-08 Andrew Cagney <cagney@redhat.com>
8897
8898 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8899 the result.
8900
9b05f993
AC
89012003-03-07 Andrew Cagney <cagney@redhat.com>
8902
8903 * gdbarch.sh: Don't generate two macro definitions when an
8904 undefined macro taking no arguments.
8905 * gdbarch.h: Regenerate.
8ffd9b1b 8906
166f4c7b
ML
89072002-03-07 Michal Ludvig <mludvig@suse.cz>
8908
8909 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8910 (x86_64_unwind_dummy_id): New functions.
8911 (x86_64_init_abi): Register these two new functions.
8912
6d686a84
ML
89132003-03-07 Michal Ludvig <mludvig@suse.cz>
8914
8915 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8916 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8917 separate function.
8918 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8919
6314f104
AC
89202003-03-05 Andrew Cagney <cagney@redhat.com>
8921
8922 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8923 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8924 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8925 to use unwind_dummy_id when a dummy frame.
8926 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8927 predicate.
8928 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8929
ceea5145
AC
89302003-03-05 Andrew Cagney <cagney@redhat.com>
8931
8932 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8933 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8934 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8935 values.
8936
0d843116
AC
89372003-03-05 Andrew Cagney <cagney@redhat.com>
8938
8939 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8940 (struct d10v_unwind_cache): Delete field "frameless". Replace
8941 "next_addr" with "sp_offset". Add "r11_offset".
8942 (d10v_frame_unwind_cache): Update.
8943 (prologue_find_regs): Update. When "mv r11, sp", save the
8944 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8945 RN was saved in r11_offset.
8946
b2579786
AC
89472003-03-05 Andrew Cagney <cagney@redhat.com>
8948
8949 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8950 cached PC value in the next frame.
8951
218e5956
AC
89522003-03-05 Andrew Cagney <cagney@redhat.com>
8953
8954 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8955 "id_unwind_cache" with "id".
8956 (frame_id_unwind): Delete declaration.
8957 * frame.c (frame_id_unwind): Delete function.
8958 (get_prev_frame): Call the frame id unwind method directly. Store
8959 the returned next frame's ID value in NEXT_FRAME. Note that there
8960 is a problem with the wrong unwind ID being called with the wrong
8961 unwind cache.
8962
ed363b1b
DJ
89632003-03-05 Daniel Jacobowitz <drow@mvista.com>
8964
8965 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8966
fe1f4a5e
DJ
89672003-03-05 James Ingham <jingham@apple.com>
8968 Daniel Jacobowitz <drow@mvista.com>
8969
8970 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8971 (auto_cp_abi): New variable.
8972 (current_cp_abi, num_cp_abis): Make static.
8973 (CP_ABI_MAX): Define.
8974 (cp_abis): Turn into an array.
8975 (value_virtual_fn_field): Fix formatting.
8976 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8977 takes a pointer.
8978 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8979 (list_cp_abis, _initialize_cp_abi): New functions.
8980 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8981 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8982 switch_to_cp_abi. Update prototype for register_cp_abi.
8983 * Makefile.in (cp-abi.o): Update dependencies.
8984 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8985 instead of switch_to_cp_abi.
8986 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8987 register_cp_abi.
8988 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8989 register_cp_abi.
8990 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8991
e4adbba9
DJ
89922003-03-05 Daniel Jacobowitz <drow@mvista.com>
8993
8994 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8995 * dwarf2loc.c: Include "regcache.h".
8996 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8997 register_size.
8998 * Makefile.in (dwarf2loc.o): Update dependencies.
8999
91ccbfc1
TR
90002003-03-04 Theodore A. Roth <troth@openavr.org>
9001
9002 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9003 number of io registers reported by remote target is not a multiple of
9004 step.
9005
3d4e8fd2
DC
90062003-03-04 David Carlton <carlton@math.stanford.edu>
9007
9008 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9009 (lookup_symbol_aux_psymtabs): Update call to
9010 lookup_partial_symbol.
9011 (lookup_transparent_type, find_main_psymtab)
9012 (make_symbol_overload_list): Ditto.
9013
ed42d87b
KH
90142003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9015
9016 * MAINTAINERS (Write after approval): Update my email address.
9017
a0ed5532
AC
90182003-03-03 Andrew Cagney <cagney@redhat.com>
9019
9020 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9021 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9022 predicate. Replace MAX_REGISTER_RAW_SIZE.
9023 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9024 MAX_REGISTER_VIRTUAL_SIZE.
9025 * regcache.c (legacy_max_register_raw_size): New function.
9026 (legacy_max_register_virtual_size): New function.
9027 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9028 (MAX_REGISTER_RAW_SIZE): Define.
9029 (legacy_max_register_raw_size): Declare.
9030 (legacy_max_register_virtual_size): Declare.
9031 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9032 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9033 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9034 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9035 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9036 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9037 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9038 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9039 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9040 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9041 * vax-tdep.c (vax_gdbarch_init): Update.
9042 * v850-tdep.c (v850_gdbarch_init): Update.
9043 * sparc-tdep.c (sparc_gdbarch_init): Update.
9044 * sh-tdep.c (sh_gdbarch_init): Update.
9045 * s390-tdep.c (s390_gdbarch_init): Update.
9046 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9047 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9048 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9049 * mips-tdep.c (mips_gdbarch_init): Update.
9050 * mcore-tdep.c (mcore_gdbarch_init): Update.
9051 * m68k-tdep.c (m68k_gdbarch_init): Update.
9052 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9053 * ia64-tdep.c (ia64_gdbarch_init): Update.
9054 * i386-tdep.c (i386_gdbarch_init): Update.
9055 * hppa-tdep.c (hppa_gdbarch_init): Update.
9056 * h8300-tdep.c (h8300_gdbarch_init): Update.
9057 * frv-tdep.c (frv_gdbarch_init): Update.
9058 * cris-tdep.c (cris_gdbarch_init): Update.
9059 * avr-tdep.c (avr_gdbarch_init): Update.
9060 * arm-tdep.c (arm_gdbarch_init): Update.
9061 * alpha-tdep.c (alpha_gdbarch_init): Update.
9062 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9063 max_register_raw_size or max_register_virtual_size.
9064
8e437497
DC
90652003-03-03 David Carlton <carlton@math.stanford.edu>
9066
9067 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9068 SYMBOL_MATCHES_NAME, add comment.
9069 (SYMBOL_MATCHES_NATURAL_NAME): New.
9070 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9071 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9072 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9073 * symtab.c (lookup_partial_symbol): Use
9074 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9075 unhelpful comment.
9076 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9077 SYMBOL_MATCHES_NAME.
9078 Fix for PR c++/33.
9079
25120b0d
DC
90802003-03-03 David Carlton <carlton@math.stanford.edu>
9081
9082 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9083 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9084 by regexp matching against SYMBOL_NATURAL_NAME.
9085
78a11fb4
DC
90862003-03-03 David Carlton <carlton@math.stanford.edu>
9087
9088 * linespec.c (find_method): Extract code into collect_methods.
9089 (collect_methods): New.
9090
645dd519
MK
90912003-03-02 Mark Kettenis <kettenis@gnu.org>
9092
b4700d91
MK
9093 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9094 get_frame_base.
9095
645dd519
MK
9096 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9097 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9098
0aa7e1aa
SC
90992003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9100
8ffd9b1b 9101 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9102 and not regnum when summing the size of all registers up to regnum.
9103
f30ee0bc
AC
91042003-03-01 Andrew Cagney <cagney@redhat.com>
9105
9106 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9107 FRAME_INIT_SAVED_REGS.
9108 * gdbarch.h, gdbarch.c: Regenerate.
9109 * stack.c (frame_info): Update.
9110 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9111 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9112 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9113 * ns32k-tdep.c (ns32k_pop_frame): Update.
9114 * mips-tdep.c (mips_pop_frame): Update.
9115 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9116 * ia64-tdep.c (ia64_frame_chain): Update.
9117 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9118 (ia64_frameless_function_invocation): Update.
9119 (ia64_init_extra_frame_info): Update.
9120 (ia64_pop_frame_regular): Update.
9121 * frame.h (struct frame_info): Update comment.
9122 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9123 * frame.c (frame_saved_regs_register_unwind): Update.
9124 (frame_saved_regs_register_unwind): Update.
9125 (deprecated_generic_get_saved_register): Update.
9126 * cris-tdep.c: Update comment.
9127 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9128 Rename macro.
9129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9130 * x86-64-tdep.c (x86_64_init_abi): Update.
9131 * vax-tdep.c (vax_gdbarch_init): Update.
9132 * v850-tdep.c (v850_gdbarch_init): Update.
9133 * sparc-tdep.c (sparc_gdbarch_init): Update.
9134 * sh-tdep.c (sh_gdbarch_init): Update.
9135 * s390-tdep.c (s390_gdbarch_init): Update.
9136 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9137 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9138 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9139 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9140 * mips-tdep.c (mips_gdbarch_init): Update.
9141 * mcore-tdep.c (mcore_gdbarch_init): Update.
9142 * m68k-tdep.c (m68k_gdbarch_init): Update.
9143 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9144 * ia64-tdep.c (ia64_gdbarch_init): Update.
9145 * i386-tdep.c (i386_gdbarch_init): Update.
9146 * frv-tdep.c (frv_gdbarch_init): Update.
9147 * avr-tdep.c (avr_gdbarch_init): Update.
9148 * arm-tdep.c (arm_gdbarch_init): Update.
9149 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9150
42fa7c0f
AC
91512003-03-01 Andrew Cagney <cagney@redhat.com>
9152
9153 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9154 option enum and switch. When no windows, set the interpreter to
9155 INTERP_CONSOLE.
8ffd9b1b 9156
49c7e338
AC
91572003-03-01 Andrew Cagney <cagney@redhat.com>
9158
9159 * main.c (captured_main): Replace magic option characters with an
9160 enum.
9161
e9582e71
AC
91622003-03-01 Andrew Cagney <cagney@redhat.com>
9163
9164 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9165 INIT_EXTRA_FRAME_INFO.
9166 * gdbarch.h, gdbarch.c: Regenerate.
9167 * arm-tdep.c: Update comments.
9168 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9169 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9170 * frame.h, avr-tdep.c: Ditto.
9171 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9172 (create_new_frame, legacy_get_prev_frame): Ditto.
9173 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9174 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9176 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9177 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9178 * v850-tdep.c (v850_gdbarch_init): Ditto.
9179 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9180 * sh-tdep.c (sh_gdbarch_init): Ditto.
9181 * s390-tdep.c (s390_gdbarch_init): Ditto.
9182 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9183 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9184 * mips-tdep.c (mips_gdbarch_init): Ditto.
9185 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9186 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9187 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9188 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9189 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9190 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9191 * frv-tdep.c (frv_gdbarch_init): Ditto.
9192 * cris-tdep.c (cris_gdbarch_init): Ditto.
9193 * avr-tdep.c (avr_gdbarch_init): Ditto.
9194 * arm-tdep.c (arm_gdbarch_init): Ditto.
9195 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9196 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9197
35cac7cf
AC
91982003-03-01 Andrew Cagney <cagney@redhat.com>
9199
9200 * gdbarch.sh (register_type): New function with predicate.
9201 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9202 * gdbarch.h, gdbarch.c: Re-generate.
9203 * arch-utils.c (generic_register_byte): Use generic_register_size.
9204 (generic_register_size): When available, use
9205 gdbarch_register_type.
9206 * regcache.c (init_regcache_descr): When available, initialize the
9207 register type array using gdbarch_register_type. If the
9208 architecture supplies gdbarch_register_type, do not use the legacy
9209 regcache layout.
9210 * d10v-tdep.c (d10v_register_type): Replace
9211 d10v_register_virtual_type.
9212 (d10v_gdbarch_init): Set register_type instead of
9213 register_virtual_type.
9214
7b83296f
AC
92152003-03-01 Andrew Cagney <cagney@redhat.com>
9216
9217 * Makefile.in (ax-gdb.o): Update dependencies.
9218 * ax-gdb.c: Include "regcache.h".
9219 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9220 * findvar.c (value_of_register): Ditto.
9221 * infcmd.c (default_print_registers_info): Ditto.
9222
eadc1c87
MK
92232003-03-01 Mark Kettenis <kettenis@gnu.org>
9224
9225 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9226 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9227
14143612
MK
92282003-03-01 Mark Kettenis <kettenis@gnu.org>
9229
9230 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9231 of STREQ.
9232
a55cc764
DJ
92332003-02-28 Daniel Jacobowitz <drow@mvista.com>
9234
9235 * Makefile.in (dwarf2loc.o): Update dependencies.
9236 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9237 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9238 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9239 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9240 (locexpr_tracepoint_var_ref): New function.
9241 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9242
08a617da
AC
92432003-02-28 Andrew Cagney <cagney@redhat.com>
9244
9245 * regcache.c (register_size): New function.
9246 * regcache.h (register_size): Declare
9247 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9248 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9249
4224873a
DC
92502003-02-28 David Carlton <carlton@math.stanford.edu>
9251
9252 * linespec.c (decode_compound): Extract code into find_method.
9253 (find_method): New.
9254
ccdc5d7f
JB
92552003-02-28 J. Brobecker <brobecker@gnat.com>
9256
9257 * Makefile.in: Add rules to build and link in observer.o.
9258
974e8ced
JB
92592003-02-27 J. Brobecker <brobecker@gnat.com>
9260
9261 * observer.c: Minor comments edits.
9262
7a28f973
JB
92632003-02-27 J. Brobecker <brobecker@gnat.com>
9264
9265 * observer.h, observer.c: New file.
9266
27cddce2
AC
92672003-02-27 Andrew Cagney <cagney@redhat.com>
9268
9269 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9270
b94a41a1
SC
92712003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9272
9273 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9274 (M6812_OP_STS_EXT): Likewise.
9275 (m6811_prologue): Use the above to recognize prologue.
9276 (m6812_prologue): Likewise.
9277
c8be8951
DC
92782003-02-27 David Carlton <carlton@math.stanford.edu>
9279
9280 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9281 SYMBOL_PRINT_NAME.
9282 (compare_psymbols): Ditto.
9283 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9284
d05bb1fc
MS
92852003-02-27 Michael Snyder <msnyder@redhat.com>
9286
4e845cd3
MS
9287 * f-lang.c (build_fortran_types): New function.
9288 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9289 * doublest.c (extract_floating): Fix warning text.
9290
f3824013
AC
92912003-02-27 Andrew Cagney <cagney@redhat.com>
9292
9293 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9294 predicate. Replaces PUSH_DUMMY_FRAME.
9295 * gdbarch.h, gdbarch.c: Regnerate.
9296 * valops.c (hand_function_call): Update. Call
9297 generic_push_dummy_frame directly.
9298 * vax-tdep.c (vax_gdbarch_init): Update.
9299 * sparc-tdep.c (sparc_gdbarch_init): Update.
9300 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9301 * m68k-tdep.c (m68k_gdbarch_init): Update.
9302 * hppa-tdep.c (hppa_gdbarch_init): Update.
9303 * alpha-tdep.c (alpha_gdbarch_init): Update.
9304 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9305 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9306 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9307 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9308 push_dummy_frame to generic_push_dummy_frame.
9309 * v850-tdep.c (v850_gdbarch_init): Ditto.
9310 * sh-tdep.c (sh_gdbarch_init): Ditto.
9311 * s390-tdep.c (s390_gdbarch_init): Ditto.
9312 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9313 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9314 * mips-tdep.c (mips_gdbarch_init): Ditto.
9315 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9316 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9317 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9318 * i386-tdep.c (i386_gdbarch_init): Ditto.
9319 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9320 * frv-tdep.c (frv_gdbarch_init): Ditto.
9321 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9322 * cris-tdep.c (cris_gdbarch_init): Ditto.
9323 * avr-tdep.c (avr_gdbarch_init): Ditto.
9324 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9325
ad188201
KB
93262003-02-26 Kevin Buettner <kevinb@redhat.com>
9327
9328 * mips-tdep.c (show_mips_abi): New function.
9329 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9330 command ``show mips abi''.
9331
6b37567a 93322003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9333
6b37567a 9334 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9335 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9336 more sline entries have been seen for the function.
9337
d3e0a5bf
MC
93382003-02-26 Michael Chastain <mec@shout.net>
9339
9340 * configure: Regenerate with autoconf 000227.
9341
18972eea
MC
93422003-02-26 Michael Chastain <mec@shout.net>
9343
9344 Close PR build/660.
9345 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9346 for old libc5/glibc.
9347 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9348
0bbde931
KW
93492003-02-26 Kris Warkentin <kewarken@qnx.com>
9350
9351 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9352 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9353
27ca5dad
MC
93542003-02-26 Michael Chastain <mec@shout.net>
9355
9356 * configure.in: New variable HAVE_UINTPTR_T.
9357 * configure, config.in: Regenerated.
9358
6f88d630
DJ
93592003-02-26 Daniel Jacobowitz <drow@mvista.com>
9360
9361 Fix PR build/1097.
9362 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9363
b14185ce
AC
93642003-02-25 Andrew Cagney <cagney@redhat.com>
9365
9366 * frame.c (get_prev_frame): Add comment on check for
9367 inside_entry_func. Only check for inside_entry_file when not a
9368 dummy and not a sentinel. Check that the new frame is not inner
9369 to the old frame.
9370
ac2bd0a9
AC
93712003-02-25 Andrew Cagney <cagney@redhat.com>
9372
9373 * frame.c (frame_debug): New variable.
9374 (_initialize_frame): Add "set/show debug frame" command.
9375 (get_prev_frame): When frame_debug, print reason why unwind
9376 failed.
9377
b18a0fd2
MC
93782003-02-25 Michael Chastain <mec@shout.net>
9379
9380 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9381 to avoid uintptr_t definition problems.
9382
22abf04a
DC
93832003-02-25 David Carlton <carlton@math.stanford.edu>
9384
9385 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9386 (SYMBOL_LINKAGE_NAME): Ditto.
9387 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9388 SYMBOL_LINKAGE_NAME.
9389 (struct general_symbol_info): Expand comment.
9390 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9391 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9392 (SYMBOL_MATCHES_REGEXP): Ditto.
9393 * symtab.c (symbol_natural_name): New function.
9394 * objfiles.h: Replace all uses of SYMBOL_NAME by
9395 DEPRECATED_SYMBOL_NAME.
9396 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9397 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9398 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9399 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9400 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9401 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9402 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9403 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9404 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9405 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9406 * ada-exp.y: Ditto.
9407 * ada-exp.y: Update copyright.
9408 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9409 * cp-valprint.c: Ditto.
9410
1a5848f6
JJ
94112003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9412
9413 * infptrace.c (detach): Do not flag error if ptrace detach fails
9414 and errno is set to ESRCH.
9415
7343d46a
AC
94162003-02-24 Andrew Cagney <cagney@redhat.com>
9417
9418 * infptrace.c (udot_info): Change type of udot_off to long. Use
9419 paddr when printing udot_off's value.
9420
49fa1dc2
DC
94212003-02-24 David Carlton <carlton@math.stanford.edu>
9422
9423 * symtab.c (make_symbol_overload_list): Only read in partial
9424 symtabs containing a matching partial symbol.
9425
0fe19209
DC
94262003-02-24 David Carlton <carlton@math.stanford.edu>
9427
9428 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9429 do the comparison, not strcmp.
9430 * symfile.c (compare_psymbols): Ditto.
9431 * defs.h: Declare strcmp_iw_ordered.
9432 * utils.c (strcmp_iw_ordered): New function.
9433
8e3ee7b5
JB
94342003-02-24 Jim Blandy <jimb@redhat.com>
9435
9436 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9437 support, shared libs): Remove my name from here, to better reflect
9438 reality.
9439
7df1a324
KW
94402003-02-24 Kris Warkentin <kewarken@qnx.com>
9441
9442 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9443 (target_ops): Add to_have_continuable_watchpoint.
9444 * target.c (update_current_target): Add INHERIT line for
9445 to_have_continuable_watchpoint.
9446 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9447 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9448 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9449 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9450
d1c76907
EZ
94512003-02-24 Elena Zannoni <ezannoni@redhat.com>
9452
9453 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9454 maintainership.
9455
2610b0bf
KW
94562003-02-24 Kris Warkentin <kewarken@qnx.com>
9457
f46169db
KW
9458 * solib.c (solib_open): Call target defined search function after
9459 failing with solib-search-path.
9460 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9461 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9462
9a3c34fe
KW
94632003-02-24 Kris Warkentin <kewarken@qnx.com>
9464
f46169db 9465 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9466
2417dd25
SC
94672003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9468
9469 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9470
b631436b
SC
94712003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9472
9473 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9474 (m68hc11_add_reggroups): New function.
9475 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9476 (m68hc11_gdbarch_init): Install the reggroups.
9477 (_initialize_m68hc11_tdep): Initialize them.
9478
0aa8c1e4
JW
94792003-02-21 James E Wilson <wilson@tuliptree.org>
9480
9481 * MAINTAINERS: Update my email address.
9482
50ceaba5
DC
94832003-02-21 David Carlton <carlton@math.stanford.edu>
9484
9485 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9486
4c2df51b
DJ
94872003-02-21 Daniel Jacobowitz <drow@mvista.com>
9488
9489 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9490 * symtab.h: Add opaque declarations of struct axs_value and
9491 struct agent_expr.
9492 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9493 (struct location_funcs): New type.
9494 (struct symbol): Add "loc" to aux_value.
9495 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9496 * dwarf2read.c: Include "dwarf2expr.h".
9497 (dwarf2_symbol_mark_computed): New function.
9498 (read_func_scope): Use it.
9499 (var_decode_location): New function.
9500 (new_symbol): Use it.
9501 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9502
9503 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9504 (dwarf2expr_h, dwarf2loc_h): New variables.
9505 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9506 (dwarf2expr.o, dwarf2loc.o): New rules.
9507 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9508 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9509 LOC_COMPUTED_ARG.
9510 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9511 * m2-exp.y (yylex): Likewise.
9512 * printcmd.c (address_info, print_frame_args): Likewise.
9513 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9514 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9515 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9516 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9517 * symtab.c (lookup_block_symbol): Likewise.
9518
5784d15e
AF
95192003-02-20 Adam Fedor <fedor@gnu.org>
9520
9521 * symtab.h: Remove objc_specific struct
9522 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9523 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9524 Have language_objc use cplus_specific struct.
9525
d4cad8db
TT
95262003-02-20 Tom Tromey <tromey@redhat.com>
9527
9528 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9529 TYPE_NAME, when printing a String value. PR java/1075.
9530
2f9a90b4
AF
95312003-02-20 Adam Fedor <fedor@gnu.org>
9532
d38074a8 9533 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9534 * objc-lang.c (find_methods): Make static.
2f9a90b4 9535
6f17862b
CF
95362003-02-20 Christopher Faylor <cgf@redhat.com>
9537
9538 * win32-nat.c (get_image_name): Check return value from
9539 ReadProcessMemory.
9540 (child_xfer_memory): Ditto.
9541
715d1656
AO
95422003-02-20 Alexandre Oliva <aoliva@redhat.com>
9543
9544 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9545 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9546 '${exec_prefix}' (in addition to the expansion thereof) as
9547 relocatable.
9548 * configure: Rebuilt.
9549
b1262a02
DC
95502003-02-20 David Carlton <carlton@math.stanford.edu>
9551
9552 * symtab.c (search_symbols): Revert the search_symbols part of my
9553 2002-12-23 patch. Add comment.
9554
7134143f
DJ
95552002-02-20 Daniel Jacobowitz <drow@mvista.com>
9556
9557 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9558 * dbxread.c (elfstab_build_psymtabs): Don't call
9559 install_minimal_symbols.
9560 (stabsect_build_psymtabs): Likewise.
9561 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9562 earlier.
9563 * somread.c (som_symfile_read): Call install_minimal_symbols
9564 and do_cleanups earlier.
9565 * nlmread.c (nlm_symfile_read): Likewise.
9566 * mdebugread.c (elfmdebug_build_psymtabs): Call
9567 install_minimal_symbols and make appropriate cleanups.
9568
cf466558
KB
95692003-02-20 Kevin Buettner <kevinb@redhat.com>
9570
9571 * solib.c (reload_shared_libraries): New function.
9572 (_initialize_solib): Add callbacks for ``set solib-search-path''
9573 and ``set solib-absolute-prefix''.
9574
de5ad195
DC
95752003-02-20 David Carlton <carlton@math.stanford.edu>
9576
9577 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9578 expand comment.
9579 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9580 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9581 * ada-typeprint.c (ada_typedef_print): Ditto.
9582 * ax-gdb.c (gen_var_ref): Ditto.
9583 * breakpoint.c (print_one_breakpoint): Ditto.
9584 * buildsym.c (finish_block): Ditto.
9585 * c-valprint.c (c_val_print): Ditto.
9586 * expprint.c (print_subexp): Ditto.
9587 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9588 * infcmd.c (jump_command): Ditto.
9589 * linespec.c (decode_line_2, decode_compound): Ditto.
9590 * maint.c (maintenance_translate_address): Ditto.
9591 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9592 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9593 Ditto.
8ffd9b1b
AJ
9594 * p-valprint.c (pascal_val_print): Ditto.
9595 * stabsread.c (define_symbol): Ditto.
de5ad195 9596 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9597 (print_frame_arg_vars, return_command): Ditto.
9598 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9599 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9600 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9601 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9602 (rbreak_command): Ditto.
9603 * tracepoint.c (tracepoints_info): Ditto.
9604 * typeprint.c (typedef_print): Ditto.
9605 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9606 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9607 * ada-typeprint.c: Update Copyright.
9608 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9609 * tracepoint.c, cli/cli-cmds.c: Ditto.
9610
f796e4be
KB
96112003-02-20 Kevin Buettner <kevinb@redhat.com>
9612
9613 * frame.c (generic_unwind_get_saved_register): Make non-static.
9614 * frame.h (generic_unwind_get_saved_register): Declare.
9615 * mips-tdep.c (read_next_frame_reg): Fetch register from
9616 current regcache when frame is NULL.
9617 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9618 that must be NULL.
9619 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9620 instead of frame_register_unwind().
9621
836cc9f4
AC
96222003-02-20 Andrew Cagney <ac131313@redhat.com>
9623
9624 * remote-sim.c (gdbsim_insert_breakpoint)
9625 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9626 code.
9627
501eef12
AC
96282003-02-20 Andrew Cagney <ac131313@redhat.com>
9629
9630 * remote.c (_initialize_remote): Add commands "set/show remote
9631 hardware-watchpoint-limit" and "set/show remote
9632 hardware-breakpoint-limit".
9633 (remote_hw_watchpoint_limit): Initialize to -1.
9634 (remote_hw_breakpoint_limit): Ditto.
9635 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9636
1b6bc7e0
CF
96372003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9638
9639 * coff-pe-read.c: New file - support reading of minimal symbols from a
9640 portable executable using the export table.
9641 * coff-pe-read.h: New file.
9642 * coffread.c: Include coff-pe-read.h.
9643 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9644 debugging symbols found.
9645 * Makefile.in (SFILES): Add coff-pe-read.o.
9646 (coff_pe_read_h): Define.
9647 (COMMON_OBS): Add coff-pe-read.o.
9648 (coffread.o): Add coff_pe_read_h dependency.
9649 (coff-pe-read.o): New target.
9650
fe898f56
DC
96512003-02-19 David Carlton <carlton@math.stanford.edu>
9652
9653 * Makefile.in (SFILES): Add block.c.
9654 (block_h): New.
9655 (COMMON_OBS): Add block.o.
9656 (block.o): New.
9657 (x86-64-tdep.o): Add $(block_h).
9658 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9659 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9660 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9661 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9662 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9663 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9664 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9665 * value.h: Add opaque declaration for struct block.
9666 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9667 * ada-lang.h: Ditto.
9668 * x86-64-tdep.c: #include "block.h"
9669 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9670 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9671 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9672 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9673 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9674 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9675 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9676 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9677 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9678 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9679 * symtab.c (block_function): Ditto.
9680 (contained_in): Ditto.
9681 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9682 block.h. Add opaque declaration for struct block.
9683 * symtab.h: Move block_function and contained_in declarations to
9684 block.h. Add opaque declarations for struct block, struct
9685 blockvector.
9686 (struct block): Move to block.h.
9687 (struct blockvector): Ditto.
9688 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9689 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9690 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9691 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9692 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9693 Ditto.
9694 * block.c: New file.
9695 * block.h: New file.
9696
173345b5
TR
96972003-02-19 Theodore A. Roth <troth@openavr.org>
9698
9699 * avr-tdep.c (avr_extract_return_value): Remove function.
9700 (avr_store_return_value): Remove function.
9701 (avr_extract_struct_value_address): Remove function.
9702 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9703
338ef23d
AC
97042003-02-19 Andrew Cagney <ac131313@redhat.com>
9705
9706 * rs6000-tdep.c: Include "gdb_assert.h".
9707 (registers_e500): Add "acc" and "spefscr".
9708 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9709 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9710 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9711 really is "r0".
9712 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9713
5412f5f3
KS
97142003-02-18 Keith Seitz <keiths@redhat.com>
9715
9716 * Makefile.in: Add gdbtk-interps.c.
9717
881324eb
KB
97182003-02-18 Kevin Buettner <kevinb@redhat.com>
9719
9720 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9721 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9722
6a2f5abf
AC
97232003-02-18 Andrew Cagney <cagney@redhat.com>
9724
9725 * symtab.h (struct objfile): Add opaque declaration.
9726
54c7009d
EZ
97272003-02-18 Elena Zannoni <ezannoni@redhat.com>
9728
9729 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9730 * dbxread.c (process_one_symbol): Use last_function_start rather
9731 than function_start_offset to find the real beginning of the
9732 current function. The latter is just the text section offset on
9733 some systems, the former is always the real function start.
54c7009d 9734
7ee6d7eb
AC
97352003-02-17 Andrew Cagney <cagney@redhat.com>
9736
9737 * configure.in: Revert ${target} != ${host}.
9738
2846da9b
AC
97392003-02-17 Andrew Cagney <ac131313@redhat.com>
9740
9741 * configure.in (Makefile): Use the test ${target} != ${host},
9742 instead of the absence of the "nm.h" file, to determine of the
9743 configuration non-native.
9744 * configure: Regenerate.
8ffd9b1b 9745
3b27aeea
EZ
97462003-02-14 Elena Zannoni <ezannoni@redhat.com>
9747
fbe586ae 9748 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9749
9750 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9751 conditionalize tui_active test.
9752 (lookup_cmd_1): Ditto.
9753
b0b1c2c0
MK
97542003-02-14 Mark Kettenis <kettenis@gnu.org>
9755
9756 * configure.in: Add check for _etext.
9757 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9758 available.
9759 * config.in, configure: regenerated.
9760
8f05cde5
DJ
97612003-02-14 Daniel Jacobowitz <drow@mvista.com>
9762
9763 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9764
021e7609
AC
97652003-02-14 Andrew Cagney <ac131313@redhat.com>
9766
9767 * main.c (tui_version): Delete variable.
9768 (captured_main): When --tui, set interpreter_p to "tui" instead of
9769 enabling tui_version.
9770 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9771 tui_version.
9772 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9773 * cli/cli-cmds.c (disassemble_command): Ditto.
9774 * defs.h (tui_version): Delete declaration.
9775 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9776 (tui-interp.o): Add rules.
9777 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9778
e325dcec
CF
97792003-02-14 Christopher Faylor <cgf@redhat.com>
9780
36ffb041 9781 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9782 just-loaded dll.
9783
c4f90d87
JM
97842003-02-12 Jason Molenda (jmolenda@apple.com)
9785
fbe586ae
RH
9786 * symmisc.c (print_objfile_statistics): Include information about
9787 the number of psymtabs and symtabs in each object file.
c4f90d87 9788
e46e5ccd
KS
97892003-02-13 Keith R Seitz <keiths@redhat.com>
9790
9791 * main.h (struct captured_main_args): Add interpreter_p.
9792 * main.c (captured_main): Initialize interpreter_p from context.
9793 * gdb.c (main): Set interpreter_p argument.
9794 * Makefile.in (gdb.o): Add dependency for interps.h.
9795
fe97fe9c
AC
97962003-02-12 Andrew Cagney <ac131313@redhat.com>
9797
9798 * event-top.c (cli_command_loop): Delete declaration.
9799 (_initialize_event_loop): Delete function setting event_loop_hook.
9800 * event-top.h (cli_command_loop): Declare. Update copyright.
9801 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9802 * interps.c (current_interp_command_loop): When event_loop_p, call
9803 cli_command_loop.
9804
1cdac4ef
AC
98052003-02-12 Andrew Cagney <ac131313@redhat.com>
9806
9807 * interps.h (interp_command_loop_ftype): Change return type to
9808 void.
9809
48037ead
ML
98102003-02-12 Michal Ludvig <mludvig@suse.cz>
9811
9812 * x86-64-tdep.c (x86_64_extract_return_value)
9813 (x86_64_store_return_value): Use regcache instead of regbuf.
9814 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9815 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9816
033afc63
AC
98172003-02-11 Andrew Cagney <ac131313@redhat.com>
9818
9819 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9820 * aclocal.m4: Regenerate.
9821 * configure: Regenerate.
9822
9823 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9824 TCL_LD_SEARCH_FLAGS.
9825
40d02bca
ML
98262003-02-10 Michal Ludvig <mludvig@suse.cz>
9827
9828 * dwarf2cfi.c: Reindented.
9829
11308a41
AC
98302003-02-09 Andrew Cagney <ac131313@redhat.com>
9831
9832 * interps.c (clear_interpreter_hooks): Convert function definition
9833 to ISO C.
9834
e1c1c0f6
DC
98352003-02-07 David Carlton <carlton@math.stanford.edu>
9836
9837 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9838
ab5d3da6
KB
98392003-02-07 Kevin Buettner <kevinb@redhat.com>
9840
9841 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9842 (struct type): ...to here.
9843 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9844 field.
9845 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9846 (replace_type): Set length on all type variants for a given type.
9847
b8a92b82
AC
98482003-02-07 Andrew Cagney <ac131313@redhat.com>
9849
9850 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9851 <sys/stat.h>.
9852 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9853
5cb316ef
AC
98542003-02-06 Andrew Cagney <ac131313@redhat.com>
9855
2555fe1a
AC
9856 * Makefile.in (symm-nat.o): Update dependencies.
9857 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9858 (lynx-nat.o, ia64-linux-nat.): Ditto.
9859 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9860 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9861 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9862
44270758
AC
9863 * Makefile.in (inflow_h): Define.
9864 (procfs.o, inflow.o, procfs.o): Update dependencies.
9865 * inftarg.c (child_stop): Delete extern declaration of
9866 inferior_process_group. Include "inflow.h".
9867 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9868 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9869 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9870 (our_process_group, inferior_process_group): Extern declarations.
9871
df8f7274
AC
9872 * procfs.c: Include "gdb_assert.h".
9873
5cb316ef
AC
9874 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9875 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9876 * jv-typeprint.c (java_type_print_base): Ditto.
9877 * typeprint.c (typedef_print): Eliminate STREQ.
9878 * cli/cli-script.c (define_command, define_command): Ditto.
9879 * main.c (captured_main): Ditto.
9880 * values.c (lookup_internalvar): Ditto.
9881 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9882 within `if' conditional.
9883 * linespec.c (decode_line_2): Ditto.
9884 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9885 (bfd_openw_with_cleanup): Ditto.
9886
2a28ccea
MK
98872003-02-07 Mark Kettenis <kettenis@gnu.org>
9888
9889 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9890 legacy_extract_return_value and store_return_value to
9891 legacy_return_value.
9892
786b8124
CF
98932003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9894
9895 * win32-nat.c (get_relocated_section_addrs): New function. Find
9896 section load addresses for symbol handling in relocated DLLs.
9897 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9898
b871e4ec
FF
98992003-02-05 Fred Fish <fnf@intrinsity.com>
9900
9901 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9902 '=' and '!='.
9903 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9904 with '&' and '=='.
9905 (angel_RDI_info): Ditto.
9906 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9907 with '&' and '!='.
9908 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9909
4389a95a 99102003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9911 Keith Seitz <keiths@redhat.com>
9912 Elena Zannoni <ezannoni@redhat.com>
9913 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9914
9915 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9916 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9917 (SUBDIR_MI_OBS): Add "mi-interp.o".
9918 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9919 (SFILES): Add "interps.c".
9920 (COMMON_OBS): Add "interps.o".
9921 (interps_h, mi_main_h): Define.
9922 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9923 (mi-main.o, main.o, event-top.o): Update dependencies.
9924 * cli/cli-interp.c: New file.
9925 * interps.h, interps.c: New files.
9926 * top.c: (gdb_init): Don't install the default interpreter, handed
9927 by captured_main.
9928 * main.c: Include "interps.h".
9929 (interpreter_p): Note that it should malloc'ed.
9930 (captured_command_loop): Call current_interp_command_loop.
9931 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9932 xfree and xstrdup when updating interpreter_p. Install the
9933 default interpreter. Add hack to stop mi1's copyright notice
9934 being encoded.
9935 * event-top.h (gdb_setup_readline): Declare.
9936 (gdb_disable_readline): Declare.
9937 * event-top.c: Include "interps.h".
9938 (display_gdb_prompt): Call current_interp_display_prompt_p.
9939 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9940 gdb_stdlog, and gdb_stdtarg.
9941 (_initialize_event_loop): Don't call gdb_setup_readline.
9942 * cli-out.c (cli_out_set_stream): New function.
9943 * cli-out.h (cli_out_set_stream): Declare.
9944
ff3b5810
MK
99452003-02-06 Mark Kettenis <kettenis@gnu.org>
9946
9947 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9948 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9949 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9950 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9951 config/i386/i386v42mp.mt: Removed.
9952
5b729aa5
MK
99532003-02-05 Mark Kettenis <kettenis@gnu.org>
9954
9955 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9956 GDB_OSABI_SOLARIS.
9957
8cc15142
MC
99582003-02-05 Michael Chastain <mec@shout.net>
9959
9960 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9961 2.12.1 and earlier versions.
9962
5aa5d4b9
AC
99632003-02-05 Andrew Cagney <ac131313@redhat.com>
9964
9965 Remove orphaned hosts, targets and files.
9966 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9967 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9968 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9969 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9970 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9971 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9972 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9973 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9974 * config/sparc/tm-sp64sim.h: Delete.
9975 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9976 hosts.
9977 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9978 mips*-dec-mach3* targets.
9979
b68767c1
MC
99802003-02-04 Michael Chastain <mec@shout.net>
9981
9982 * NEWS: Fix typo: sepcifying -> specifying.
9983
5ae7ca1d
MC
99842003-02-04 Michael Chastain <mec@shout.net>
9985
9986 * dwarfread.c: Add documentation on the state of dwarf-1,
9987 looking towards obsoletion.
9988
d08a4280
MC
99892003-02-03 Michael Chastain <mec@shout.net>
9990
9991 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9992 gdb/testsuite/gdb.c++/pr-1023.exp.
9993
e9be73e4
AC
99942003-02-04 Andrew Cagney <ac131313@redhat.com>
9995
9996 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9997 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9998
9999 * utils.c (init_page_info): Delete reference to MPW in comments.
10000 * main.c (captured_main): Delete #ifdef MPW.
10001
05d57f6f
AC
100022003-02-04 Andrew Cagney <ac131313@redhat.com>
10003
8ffd9b1b 10004 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10005 * monitor.c (monitor_expect): Obsolete reference to m32r.
10006 * configure.tgt: Mark m32r-*-elf* as obsolete.
10007 * MAINTAINERS: Mark m32k as obsolete.
10008 * m32r-rom.c: Obsolete file.
10009 * config/m32r/m32r.mt: Obsolete file.
10010 * config/m32r/tm-m32r.h: Obsolete file.
10011 * m32r-stub.c: Obsolete file.
10012 * m32r-tdep.c: Obsolete file.
10013
8b0e5691
AC
100142003-02-04 Andrew Cagney <ac131313@redhat.com>
10015
10016 * NEWS: Mention that the z8k-zilog-none is obsolete.
10017 * MAINTAINERS: Mark z8k as obsolete.
10018 * configure.tgt: Obsolete the z8k-*-coff* target.
10019 * config/z8k/z8k.mt: Obsolete file.
10020 * config/z8k/tm-z8k.h: Obsolete file.
10021 * z8k-tdep.c: Obsolete file.
10022
67f16606
AC
100232003-02-04 Andrew Cagney <ac131313@redhat.com>
10024
10025 * NEWS: Mention that the mn10200-elf is obsolete.
10026 * configure.tgt: Obsolete mn10200-*-* target.
10027 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10028 mention that the mn10200 is obsolete.
10029 * breakpoint.h: Ditto.
10030 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10031 * config/mn10200/mn10200.mt: Obsolete file.
10032 * config/mn10200/tm-mn10200.h: Obsolete file.
10033 * mn10200-tdep.c: Obsolete file.
10034
fd2299bd
AC
100352003-02-04 Andrew Cagney <ac131313@redhat.com>
10036
10037 * MAINTAINERS: Mark h8500 as obsolete.
10038 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10039 * findvar.c (value_from_register): Ditto.
10040 * h8500-tdep.c: Mark file as obsolete.
10041 * config/h8500/h8500.mt: Ditto.
10042 * config/h8500/tm-h8500.h: Ditto.
10043 * NEWS: Mention that h8500 is obsolete.
10044
eb9a305d
DC
100452003-02-04 David Carlton <carlton@math.stanford.edu>
10046
10047 * objfiles.c (allocate_objfile): Always set name. Add comment at
10048 start of function.
10049 * jv-lang.c (get_dynamics_objfile): Add comment.
10050
406fc7fb
DC
100512003-02-04 David Carlton <carlton@math.stanford.edu>
10052
10053 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10054 * printcmd.c (build_address_symbolic): Replace uses of
10055 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10056 SYMBOL_NAME, and asm_demangle.
10057 Update copyright.
10058
93d91629
DC
100592003-02-04 David Carlton <carlton@math.stanford.edu>
10060
10061 * linespec.c (decode_compound): Extract code into
10062 lookup_prefix_sym.
10063 (lookup_prefix_sym): New function.
10064
1c5cb38e
DC
100652003-02-04 David Carlton <carlton@math.stanford.edu>
10066
10067 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10068 FLOAT_COERCION_BADNESS.
10069 * gdbtypes.c (rank_one_type): Replace all uses of
10070 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10071
0cf824c9
JB
100722003-02-04 Jim Blandy <jimb@redhat.com>
10073
10074 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10075 section, let dwarf_macinfo_section point to it, not
10076 dwarf_loc_section.
10077
a2d356b0
DJ
100782003-02-04 Daniel Jacobowitz <drow@mvista.com>
10079
10080 Pointed out by Anton Blanchard <anton@samba.org>.
10081 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10082 (ppc_linux_at_sigtramp_return_path): Use it.
10083
2de7ced7
DJ
100842003-02-04 Daniel Jacobowitz <drow@mvista.com>
10085
10086 * defs.h (streq): Add prototype.
10087 * utils.c (streq): New function.
10088
10089 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10090 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10091 * mdebugread.c (new_symbol): Likewise.
10092 * stabsread.c (define_symbol): Likewise.
10093 * coffread.c (process_coff_symbol): Likewise.
10094 * dwarfread.c (new_symbol): Likewise.
10095
10096 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10097 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10098 here.
10099 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10100 SYMBOL_INIT_DEMANGLED_NAME.
10101 * objfiles.c: Include "hashtab.h".
10102 (allocate_objfile): Call htab_set_functions_ex for the
10103 demangled_names_hash.
10104 (free_objfile): Call htab_delete for the demangled_names_hash.
10105 * objfiles.h (struct htab): Add declaration.
10106 (struct objfile): Add demangled_names_hash.
10107 * symfile.c: Include "hashtab.h".
10108 (reread_symbols): Call htab_delete for the demangled_names_hash.
10109 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10110 SYMBOL_NAME in the bcache.
10111 * symtab.c: Include "hashtab.h". Update comments.
10112 (create_demangled_names_hash, symbol_set_names): New functions.
10113 (symbol_find_demangled_name): New function, broken out from
10114 symbol_init_demangled_names.
10115 (symbol_init_demangled_names): Use it.
10116 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10117 (SYMBOL_SET_NAMES): New macro.
10118 (symbol_set_names): Add prototype.
10119
15831452
JB
101202003-02-03 Jim Blandy <jimb@redhat.com>
10121
10122 Use a single, consistent representation for an empty minimal
10123 symbol table in an objfile.
10124 * objfiles.c (terminate_minimal_symbol_table): New function.
10125 (allocate_objfile): Call it.
10126 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10127 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10128 non-NULL.
15831452
JB
10129 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10130 objfile has minimal symbols, compare minimal_symbol_count to zero,
10131 instead of comparing msymbols with NULL.
10132 * objfiles.c (have_minimal_symbols): Same.
10133 * solib-sunos.c (solib_add_common_symbols): Call
10134 terminate_minimal_symbol_table.
10135 * symfile.c (reread_symbols): Same.
8ffd9b1b 10136
ffc65945
KB
101372003-02-03 Kevin Buettner <kevinb@redhat.com>
10138
10139 * s390-tdep.c (s390_address_class_type_flags)
10140 (s390_address_class_type_flags_to_name)
10141 (s390_address_class_name_to_type_flags): New functions.
10142 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10143 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10144
f211c6d4
MS
101452003-02-03 Michael Snyder <msnyder@redhat.com>
10146
10147 * arm-tdep.c: Fix spell-o in comment.
10148
659b0389
ML
101492003-02-03 Michal Ludvig <mludvig@suse.cz>
10150
10151 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10152 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10153 error messages to contain BFD filename.
659b0389 10154
3b31d625
EZ
101552003-02-02 Elena Zannoni <ezannoni@redhat.com>
10156
997b089a 10157 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10158 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10159 (do_mixed_source_and_assembly): Use
10160 make_cleanup_ui_out_tuple_begin_end and
10161 make_cleanup_ui_out_tuple_begin_end.
10162 (do_mixed_source_and_assembly): Ditto.
10163 * thread.c (do_captured_list_thread_ids): Ditto.
10164 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10165 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10166 ui_out_tuple_end): Delete prototypes.
10167 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10168 ui_out_list_end, ui_out_tuple_end): Delete.
10169
10170 From Kevin Buettner <kevinb@redhat.com>:
10171 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10172 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10173 (do_cleanup_table_end): New functions.
10174 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10175 Use cleanups to invoke_ui_out_tuple_end().
10176 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10177 * cli/cli-setshow.c (cmd_show_list): Use
10178 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10179
5b181d62
AC
101802003-02-02 Andrew Cagney <ac131313@redhat.com>
10181
10182 * frame.c (frame_unwind_register): New function.
10183 (frame_unwind_unsigned_register): Use.
10184 (frame_unwind_signed_register): Use.
10185 (frame_read_register): New function.
10186 * frame.h (frame_unwind_register): Declare.
10187 (frame_read_register): Declare.
10188
10189 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10190 and frame_unwind_register instead of read_memory, write_register
10191 and deprecated_write_register_bytes.
10192
5f601589
AC
101932003-02-02 Andrew Cagney <ac131313@redhat.com>
10194
10195 * frame.h: Note that namelen can be negative.
10196 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10197 NAME's length.
10198
10199 * NEWS: Mention that the d10v's `regs' command is deprecated.
10200 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10201 (d10v_print_registers_info): New function.
10202 (show_regs): Call d10v_print_registers_info.
10203 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10204
6a3fe0a4
MK
102052003-02-02 Mark Kettenis <kettenis@gnu.org>
10206
10207 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10208 lost in the previous patch.
10209
075559bc
AC
102102003-02-01 Andrew Cagney <ac131313@redhat.com>
10211
10212 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10213 * stack.c (print_frame_info_base): Output complete FRAME tuple
10214 for synthesized frames.
075559bc 10215
6789195b
AC
102162003-02-02 Andrew Cagney <ac131313@redhat.com>
10217
10218 * mips-nat.c (zerobuf): Delete.
10219 (fetch_inferior_registers): Alloc local zerobuf.
10220 (fetch_core_registers): Alloc local zerobuf.
10221 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10222 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10223 * thread-db.c (thread_db_store_registers): Ditto.
10224 * sh-tdep.c (sh_do_register): Ditto.
10225 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10226 * remote-sim.c (gdbsim_store_register): Ditto.
10227 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10228 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10229 * monitor.c (monitor_supply_register): Ditto.
10230 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10231 * mips-nat.c (fetch_inferior_registers): Ditto.
10232 * m68klinux-nat.c (fetch_register): Ditto.
10233 * lynx-nat.c (fetch_inferior_registers): Ditto.
10234 (fetch_inferior_registers): Ditto.
10235 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10236 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10237 (hpux_thread_store_registers): Ditto.
10238 * hppah-nat.c (fetch_register): Ditto.
10239 * hppab-nat.c (fetch_register): Ditto.
10240 * hppa-tdep.c (pa_register_look_aside): Ditto.
10241 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10242 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10243
e669114a
AC
102442003-02-01 Andrew Cagney <ac131313@redhat.com>
10245
10246 * gdbarch.sh: Explictly specify all method levels. When a
10247 variable with an empty level, provide a non-multi-arch default.
10248 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10249 * gdbarch.h: Re-generate.
10250 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10251 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10252
9a043c1d
AC
102532003-02-01 Andrew Cagney <ac131313@redhat.com>
10254
10255 * defs.h (host_pointer_to_address): Delete declaration.
10256 (address_to_host_pointer): Delete declaration.
10257 * utils.c (host_pointer_to_address): Delete function.
10258 (address_to_host_pointer): Delete function.
10259 * procfs.c (procfs_address_to_host_pointer): New function.
10260 * procfs.c (proc_set_watchpoint): Use.
10261 (procfs_can_use_hw_breakpoint): Update comments.
10262 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10263 (som_solib_add): Use.
10264 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10265 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10266
7ca9f392
AC
102672003-02-01 Andrew Cagney <ac131313@redhat.com>
10268
94bbfd30
AC
10269 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10270 strlen d_name.
10271
7ca9f392
AC
10272 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10273 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10274 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10275 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10276 (define_symbol): Update.
10277 * symfile.c (generic_load): Remove references to nindy.
10278 * symtab.c: Remove references to nindy.
10279
31a85ea2
AC
102802003-02-01 Andrew Cagney <ac131313@redhat.com>
10281
10282 * infcmd.c (print_float_info): Delete code conditional on
10283 FLOAT_INFO.
10284 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10285 * config/m68k/nm-apollo68b.h: Ditto.
10286 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10287 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10288 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10289
f6e85fc8
MK
102902003-02-01 Mark Kettenis <kettenis@gnu.org>
10291
6015b6a0
MK
10292 * config/i386/tm-i386os9k.h: Removed.
10293
f7a30bdf
MK
10294 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10295 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10296 they're identical to i[3456]86-*-sysv* now.
10297 * config/i386/i386v32.mh: Removed.
10298 * config/i386/xm-i386v32.h: Removed.
10299 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10300
28d52111
MK
10301 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10302
4d3f6bce
MK
10303 * config/i386/i386dgux.mh: Removed.
10304 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10305
f6e85fc8
MK
10306 * configure.in: Fix typo.
10307 * configure: Regenerated.
10308
53955967
DC
103092003-01-31 David Carlton <carlton@math.stanford.edu>
10310
10311 * dwarf2read.c (dwarf2_locate_sections): Set
10312 dwarf_ranges_section.
10313
b1364885
AC
103142003-01-31 Andrew Cagney <ac131313@redhat.com>
10315
8dbb1c65
AC
10316 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10317 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10318
8731e58e
AC
10319 * utils.c: Re-indent.
10320
b1364885
AC
10321 * config/djgpp/fnchange.lst: Delete nindy files.
10322 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10323 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10324 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10325 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10326 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10327 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10328 * Makefile.in (init.c): Remove nindy references.
10329 (saber_gdb): Delete rule.
10330 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10331 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10332 and a68v-nat.c.
10333 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10334 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10335 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10336 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10337 nindy-share/stop.h.
10338 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10339 * saber.suppress: Delete file.
10340
086df311
DJ
103412003-01-31 Daniel Jacobowitz <drow@mvista.com>
10342
10343 * dbxread.c (stabs_data): New static variable.
10344 (fill_symbuf): Support an in-memory buffer for stabs data.
10345 (stabs_seek): New function.
10346 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10347 (read_ofile_symtab): Use stabs_seek.
10348 (elfstab_build_psymtabs): Take an asection* instead of
10349 an offset and size. Relocate the stabs data if necessary.
10350 Save the section* for dbx_psymtab_to_symtab.
10351 * dwarf2read.c: Add section variables for each debug section.
10352 (dwarf2_locate_sections): Fill them in.
10353 (dwarf2_read_section): Take an asection* argument.
10354 Relocate the section contents if necessary.
10355 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10356 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10357 it to dwarf2_read_section.
10358 (dwarf2_build_frame_info): Update callers.
10359 * elfread.c (elf_symfile_read): Update call to
10360 elfstab_build_psymtabs.
10361 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10362 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10363 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10364 * symfile.c (symfile_dummy_outputs): New function.
10365 (symfile_relocate_debug_section): New function.
10366 * symfile.h (symfile_relocate_debug_section): Add prototype.
10367
87d1b352
RH
103682003-01-31 Richard Henderson <rth@redhat.com>
10369
10370 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10371 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10372 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10373 * alpha-tdep.c (alpha_register_name): Add "unique".
10374 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10375 (ALPHA_UNIQUE_REGNUM): New.
10376 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10377
c48861fb
AC
103782003-01-31 Andrew Cagney <ac131313@redhat.com>
10379
10380 * README: Remove reference to Ericsson 1800 monitor.
10381 * Makefile.in (remote-es.o): Delete rule.
10382 (ALLDEPFILES): Delete remote-es.c.
10383 * remote-es.c: Delete file.
10384 * config/m68k/es1800.mt: Delete file.
10385 * config/djgpp/fnchange.lst: Update.
10386 * configure.tgt: Delete m68*-ericsson-* target.
10387
d764a824
AF
103882003-01-31 Adam Fedor <fedor@gnu.org>
10389
10390 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10391 Remove duplicate/shadowing variable of same name.
10392
fe36c4f4
JB
103932003-01-30 Jim Blandy <jimb@redhat.com>
10394
10395 * symfile.c (find_separate_debug_file): Assert that the objfile's
10396 directory name we compute ends with a slash, and then assume that
10397 that's so everywhere we use it.
10398
cb741690
DJ
103992003-01-30 Daniel Jacobowitz <drow@mvista.com>
10400
10401 * valops.c (value_assign): Flush frame cache after stores to memory
10402 also.
10403
96ee5227
AC
104042003-01-30 Andrew Cagney <ac131313@redhat.com>
10405
10406 * Makefile.in (mon960-rom.o): Delete rule.
10407 * mon960-rom.c: Delete file.
10408
7f6104a9
AC
104092003-01-30 Andrew Cagney <ac131313@redhat.com>
10410
10411 * d10v-tdep.c: Include "frame-unwind.h".
10412 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10413 list.
10414 (next_addr, uses_frame): Delete.
10415 (struct d10v_unwind_cache): Define.
10416 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10417 Use info instead of next_addr and uses_frame globals.
10418 (d10v_frame_init_saved_regs): Delete function.
10419 (d10v_init_extra_frame_info): Delete function.
10420 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10421 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10422 init_frame_pc or frame_saved_pc.
10423 (d10v_pop_frame): Delete function.
10424 (do_d10v_pop_frame): Delete function.
10425 (d10v_frame_chain): Delete function.
10426 (d10v_frame_chain_valid): Delete function.
10427 (d10v_frame_pc_unwind): New function.
10428 (d10v_frame_id_unwind): New function.
10429 (saved_regs_unwinder): New function.
10430 (d10v_frame_register_unwind): New function.
10431 (d10v_frame_pop): New function.
10432 (d10v_frame_unwind): New variable.
10433 (d10v_frame_p): New function.
10434 (d10v_frame_saved_pc): Delete function.
10435 * Makefile.in (d10v-tdep.o): Update dependencies.
10436
cad2e848
JB
104372003-01-30 J. Brobecker <brobecker@gnat.com>
10438
10439 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10440 causing some regressions due to a change in the default value
10441 for this macro.
10442
af34e669
DJ
104432003-01-29 Richard Henderson <rth@redhat.com>
10444 Elena Zannoni <ezannoni@redhat.com>
10445 Daniel Jacobowitz <drow@mvista.com>
10446
10447 Fix PR gdb/961.
8ffd9b1b 10448 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10449 variables.
10450 (RANGES_SECTION): New.
10451 (dwarf_ranges_buffer): New variable.
10452 (struct comp_unit_head): Add member "die".
10453 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10454 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10455 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10456 (dwarf2_locate_sections): Likewise.
10457 (dwarf2_build_psymtabs): Read .debug_ranges.
10458 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10459 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10460 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10461 Look for DW_AT_ranges and return the bounding box.
10462
baa93fa6
CF
104632003-01-29 Brian Ford <ford@vss.fsi.com>
10464
10465 * win32-nat.c (cygwin_pid): Removed as unused.
10466 (child_attach): Try fall back to Cygwin pid.
10467
c63f977f
JB
104682003-01-29 Jim Blandy <jimb@redhat.com>
10469
10470 * objfiles.h (struct objfile): Doc fix.
10471
d62d1979
AC
104722003-01-29 Andrew Cagney <ac131313@redhat.com>
10473
10474 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10475 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10476 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10477 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10478 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10479 (FRAME_SAVED_PC): Change to a function with predicate.
10480 * gdbarch.h, gdbarch.c: Re-generate.
10481
1ae18a04
AC
104822003-01-28 Andrew Cagney <ac131313@redhat.com>
10483
52287340
AC
10484 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10485
1ae18a04
AC
10486 * complaints.c (complain): Delete function.
10487 * complaints.h (struct deprecated_complaint): Delete definition.
10488 (complain): Delete declaration.
10489
f2c16bd6
KB
104902003-01-28 Kevin Buettner <kevinb@redhat.com>
10491
10492 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10493 dummy frames.
10494
a94dd1fd
AC
104952003-01-27 Andrew Cagney <ac131313@redhat.com>
10496
10497 * sentinel-frame.h, sentinel-frame.c: New files.
10498 * Makefile.in (frame.o): Update dependencies.
10499 (SFILES): Add sentinel-frame.c.
10500 (sentinel_frame_h): Define.
10501 (COMMON_OBS): Add sentinel-frame.o.
10502 (sentinel-frame.o): Specify dependencies.
10503 * frame.c: Include "sentinel-frame.h".
10504 (frame_register_unwind): Rewrite assuming that there is always a a
10505 ->next frame.
10506 (frame_register, generic_unwind_get_saved_register): Ditto.
10507 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10508 (create_sentinel_frame, unwind_to_current_frame): New functions.
10509 (get_current_frame): Rewrite using create_sentinel_frame and
10510 unwind_to_current_frame. When possible, always create a frame.
10511 (create_new_frame): Set next to the sentinel frame.
10512 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10513 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10514 ID cache when necessary.
10515 (frame_saved_regs_id_unwind): Use frame_relative_level.
10516 (deprecated_generic_get_saved_register): Use frame_relative_level,
10517 get_frame_saved_regs, get_frame_pc, get_frame_base and
10518 get_next_frame.
10519 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10520 frame_register.
10521
5378adc4
DJ
105222003-01-27 Daniel Jacobowitz <drow@mvista.com>
10523
10524 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10525
51ee2ddc
DJ
105262003-01-27 Daniel Jacobowitz <drow@mvista.com>
10527
10528 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10529 (maintenance_set_profile_cmd): Use error () instead of warning ().
10530
d9feb4e7
DJ
105312003-01-27 Daniel Jacobowitz <drow@mvista.com>
10532
10533 * configure.in: Check that -pg works if using --enable-profiling.
10534 Check for monstartup and _mcleanup regardless of --enable-profiling.
10535 * maint.c: Check for monstartup and _mcleanup before using them.
10536 * config.in: Regenerated.
10537 * configure: Regenerated.
10538
2d188dd3
NC
105392003-01-24 Nick Clifton <nickc@redhat.com>
10540
10541 * Add sh2e support:
10542
10543 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10544
10545 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10546 (sh2e_show_regs): New.
10547 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10548 * config/sh/tm-sh.h: Added sh2e to comments.
10549
cb3c37b2
JB
105502003-01-23 Jim Blandy <jimb@redhat.com>
10551
10552 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10553 symbols found)" message here; we haven't checked for a separate
10554 debug info file yet, so we don't know yet.
10555 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10556 we've looked everywhere. Also, there's no need to print a special
10557 message when we're loading the separate debug info file: the one
10558 symbol_file_add prints is fine.
10559
5b5d99cf
JB
105602003-01-23 Alexander Larsson <alexl@redhat.com>
10561 Jim Blandy <jimb@redhat.com>
10562
10563 Add support for executables whose debug info has been separated
10564 out into a separate file, leaving only a link behind.
10565 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10566 and separate_debug_objfile_backlink.
10567 (put_objfile_before): New declaration.
10568 * symfile.c: #include "filenames.h".
10569 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10570 debug info in a separate file, read that, too. Save the addrs
10571 argument, so we can use it again to read the separated debug info;
10572 syms_from_objfile modifies the table we pass it.
10573 (reread_symbols): After re-reading an objfile, call
10574 reread_separate_symbols to refresh its separate debug info
10575 objfile, if it has one.
10576 (reread_separate_symbols, find_separate_debug_file,
10577 get_debug_link_info, separate_debug_file_exists): New functions.
10578 (debug_file_directory): New global var.
10579 (_initialize_symfile): Initialize debug_file_directory, and
10580 provide the new `set debug-file-directory' command to let the user
10581 change it.
10582 * objfiles.c (free_objfile): If this objfile has its debug info in
10583 a separate objfile, free that one too. If this is itself a
10584 separate debug info objfile, clear our parent's backlink.
10585 (put_objfile_before): New function.
10586 * utils.c (gnu_debuglink_crc32): New function.
10587 * defs.h (gnu_debuglink_crc32): New declaration.
10588 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10589 * configure.in: Handle --with-separate-debug-dir config option.
10590 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10591 * acconfig.h (DEBUGDIR): New macro.
10592 * configure, aclocal.m4, config.in: Regenerated.
10593
7e8580c1
JB
105942003-01-22 Jim Blandy <jimb@redhat.com>
10595
7904e09f
JB
10596 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10597 like the old symbol_file_add, but taking new arguments: you can
10598 now pass in either a `struct section_addr_info' list to say where
10599 each section is loaded, or a `struct section_offsets' table. Pass
10600 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10601 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10602 with the appropriate quiescent values for the new arguments.
10603
7e8580c1
JB
10604 * symfile.c: #include "gdb_assert.h".
10605 (syms_from_objfile): Add the ability to pass in a section offset
10606 table directly, as an alternative to the section_addr_info table.
10607 Document arguments better.
10608 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10609 * symfile.h (syms_from_objfile): Update declaration.
10610 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10611 syms_from_objfile.
10612 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10613
d28f9cdf
DJ
106142003-01-22 Daniel Jacobowitz <drow@mvista.com>
10615
10616 Original patch by Tom Tromey <tromey@cygnus.com> and
10617 Jason Molenda <jmolenda@apple.com>.
10618 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10619 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10620 * NEWS: Mention profiling.
10621 * configure.in (--enable-gdbtk): Fix typo.
10622 (--enable-profiling): New. Set PROFILE_CFLAGS.
10623 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10624 Fill in function.
10625 (profiling_state): New variable.
10626 (mcleanup_wrapper): New function.
10627 (_initialize_maint): Remove NOTYET, fix call to
10628 add_setshow_boolean_cmd for "maint set profile".
10629 * configure: Regenerated.
10630
df21e465
MH
106312003-01-21 Martin M. Hunt <hunt@redhat.com>
10632
10633 * Makefile.in (install-gdbtk): Install PNG images too.
10634
73c1f219
AC
106352003-01-21 Andrew Cagney <ac131313@redhat.com>
10636
10637 * exec.c (text_start): Delete global variable.
10638 (exec_file_attach): Make text_start local to the function.
10639 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10640 * valops.c (hand_function_call): Delete code that handles
10641 BEFORE_TEXT_END and AFTER_TEXT_END.
10642 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10643 of CALL_DUMMY_LOCATION.
10644 * gdbarch.c: Regenerate.
10645 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10646 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10647 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10648 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10649 (text_end): Delete extern declaration.
10650
eb4f72c5
AC
106512003-01-21 Andrew Cagney <ac131313@redhat.com>
10652
10653 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10654 * blockframe.c (backtrace_below_main): Move to "frame.c".
10655 (frame_chain_valid): Delete check for backtrace_below_main.
10656 (_initialize_blockframe): Delete initialization, move ``set
10657 backtrace-below-main'' command to "frame.c".
10658 (do_flush_frames_sfunc): Delete function.
10659 * frame.c: Include "command.h" and "gdbcmd.h".
10660 (frame_type_from_pc): New function.
10661 (create_new_frame): Use frame_type_from_pc.
10662 (legacy_get_prev_frame): New function.
10663 (get_prev_frame): Rewrite. When an old style frame, call
10664 legacy_get_prev_frame. Otherwize, unwind the PC first.
10665 (_initialize_frame): Add ``set backtrace-below-main'' command.
10666 * Makefile.in (frame.o): Update dependencies.
10667
778ce8cc
AC
106682003-01-19 Andrew Cagney <ac131313@redhat.com>
10669
10670 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10671 DEPRECATED_REGISTERS_INFO.
10672
01c193c8
AC
106732003-01-19 Andrew Cagney <ac131313@redhat.com>
10674
10675 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10676 Maintainers'. Update `Various Maintainers'.
10677
dedc2a2b
AC
106782003-01-19 Andrew Cagney <ac131313@redhat.com>
10679
10680 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10681 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10682 Suppress actual parameters when `-'.
10683 * gdbarch.h, gdbarch.c: Regenerate.
10684
b7261c70
AC
106852003-01-19 Andrew Cagney <ac131313@redhat.com>
10686
10687 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10688 code handling dummy frames.
10689
dbe9fe58
AC
106902003-01-19 Andrew Cagney <ac131313@redhat.com>
10691
10692 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10693 (struct frame_unwind): Add field pop.
10694 * frame.h (frame_pop): Declare.
10695 * frame.c (frame_saved_regs_pop): New function.
10696 (trad_frame_unwinder): Add frame_saved_regs_pop.
10697 (frame_pop): New function.
10698 * dummy-frame.c (dummy_frame_pop): New function.
10699 (discard_innermost_dummy): New function.
10700 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10701 (dummy_frame_unwind): Add dummy_frame_pop.
10702 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10703 * valops.c (hand_function_call): Ditto.
10704 * stack.c (return_command): Ditto.
10705
570b8f7c
AC
107062003-01-18 Andrew Cagney <ac131313@redhat.com>
10707
10708 * cris-tdep.c: Fix function declaration indentation.
10709 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10710 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10711 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10712 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10713 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10714 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10715
107162003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10717
10718 * README (Unpacking and Installation -- quick overview):
10719 Warn against ".../gdb-5.3/gdb/configure".
10720
494cca16
AC
107212003-01-18 Andrew Cagney <ac131313@redhat.com>
10722
10723 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10724 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10725 (struct frame_unwind): Declare opaque.
10726 (dummy_frame_p): Declare function.
10727 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10728 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10729 * dummy-frame.c: Include "frame-unwind.h".
10730 (dummy_frame_p): New function.
10731 (dummy_frame_unwind): New variable.
10732 * frame.c: Include "frame-unwind.h".
10733 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10734 to use the new unwind field.
10735 (set_unwind_by_pc): Delete function.
10736 (create_new_frame, get_prev_frame): Set unwind field using
10737 frame_unwind_find_by_pc.
10738 (trad_frame_unwind, trad_frame_unwinder): New variables.
10739 * frame.h (trad_frame_unwind): Declare variable.
10740 (frame_id_unwind_ftype): Delete declaration.
10741 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10742 (struct frame_unwind): Declare opaque.
10743 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10744 register_unwind with a single unwind pointer.
10745 * frame-unwind.h, frame-unwind.c: New files.
10746 * Makefile.in (SFILES): Add frame-unwind.c.
10747 (frame_unwind_h): Define.
10748 (COMMON_OBS): Add frame-unwind.o.
10749 (frame-unwind.o): Specify dependencies.
10750 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10751
4efb68b1
AC
107522003-01-18 Andrew Cagney <ac131313@redhat.com>
10753
10754 * ada-valprint.c: Eliminate PTR.
10755 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10756 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10757 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10758 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10759 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10760 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10761 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10762
a84d24ee
AC
107632003-01-17 Andrew Cagney <ac131313@redhat.com>
10764
762f08a3
AC
10765 * main.c (captured_main): Don't use PTR.
10766 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10767 * gdbtypes.c (lookup_primitive_typename): Ditto.
10768 (lookup_struct_elt_type): Ditto.
10769 * f-valprint.c (info_common_command): Ditto.
10770 (list_all_visible_commons): Ditto.
10771 * jv-typeprint.c (java_type_print_base): Ditto.
10772
a84d24ee
AC
10773 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10774 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10775 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10776 i386-interix-nat.c and i386-interix-tdep.c. Rename
10777 m68klinux-nat.c and m68klinux-tdep.c. Rename
10778 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10779 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10780 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10781 * main.c (captured_main): Use xfree, not free.
10782
c170fb60
AC
107832003-01-16 Andrew Cagney <ac131313@redhat.com>
10784
10785 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10786 ID back using a parameter.
10787 * frame.c (frame_id_unwind): Update call.
10788 (frame_saved_regs_id_unwind): Update.
10789 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10790 * dummy-frame.h (struct frame_id): Add opaque declaration.
10791 (dummy_frame_id_unwind): Update declaration.
10792
867f3898
AC
107932003-01-15 Andrew Cagney <ac131313@redhat.com>
10794
10795 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10796
40622be8 107972003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10798
40622be8 10799 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10800
ae66c1fc
EZ
108012003-01-14 Elena Zannoni <ezannoni@redhat.com>
10802
997b089a 10803 Fix PR gdb/898
ae66c1fc
EZ
10804 * breakpoint.c (until_break_command): Add new argument. Use it to
10805 decide whether to stop only at the current frame or not.
10806 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10807 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10808 call.
10809 (advance_command): New function.
10810 (_initialize_infcmd): Update help string for 'until' command.
10811 Add new 'advance' command.
10812
a04257e6
DC
108132003-01-14 David Carlton <carlton@math.stanford.edu>
10814
10815 * linespec.c (decode_line_1): Normalize comments.
10816 (set_flags): Ditto.
10817 (locate_first_half): Ditto.
10818 (decode_compound): Ditto.
10819 (symtab_from_filename): Ditto.
10820 (decode_all_digits): Ditto.
10821 (decode_dollar): Ditto.
10822 (find_methods): Ditto.
10823 (find_toplevel_char): Ditto.
10824
1bac305b
AC
108252003-01-13 Andrew Cagney <ac131313@redhat.com>
10826
10827 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10828 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10829 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10830 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10831 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10832 * language.c, language.h, m32r-tdep.c: Update copyright.
10833 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10834 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10835 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10836 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10837 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10838 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10839
25caa7a8
EZ
108402003-01-13 Elena Zannoni <ezannoni@redhat.com>
10841
10842 * stabsread.h (process_later, resolve_cfront_continuation):
10843 Obsolete.
10844 Update copyright years.
10845 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10846 Update copyright year.
10847 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10848 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10849 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10850 Update copyright year.
10851 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10852 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10853 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10854 (parse_partial_symbols): Obsolete cfront support.
10855 * stabsread.c
10856 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10857 macros.
10858 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10859 read_cfront_baseclasses, read_cfront_member_functions,
10860 resolve_cfront_continuation,read_cfront_static_fields,
10861 copy_cfront_struct_fields): Obsolete functions.
10862 (define_symbol, read_one_struct_field): Obsolete cfront support.
10863 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10864 Update Copyright year.
10865
7789c6f5
EZ
108662003-01-13 Elena Zannoni <ezannoni@redhat.com>
10867
10868 * stack.c (print_frame_info, print_stack_frame_base_stub,
10869 print_stack_frame_base, show_and_print_stack_frame_stub,
10870 show_and_print_stack_frame, print_only_stack_frame_stub,
10871 print_only_stack_frame): Delete functions.
10872 (print_stack_frame_stub): Call print_frame_info instead of
10873 print_frame_info_base.
10874 (print_frame_info_base): Rename to print_frame_info.
10875 (backtrace_command_1): Call print_frame_info, instead of
10876 print_frame_info_base.
10877 (current_frame_command): Call print_stack_frame, instead of
10878 print_only_stack_frame.
10879 (frame_command): Call print_stack_frame, instead of
10880 show_and_print_stack_frame.
10881 (up_command): Ditto.
10882 (down_command): Ditto.
10883 * frame.h (print_only_stack_frame): Delete prototype.
10884 * infrun.c (normal_stop): Call print_stack_frame, instead of
10885 show_and_print_stack_frame.
10886 * thread.c (info_threads_command): Call print_stack_frame, instead
10887 of print_only_stack_frame.
10888
3f5a3016
AC
108892003-01-13 Andrew Cagney <ac131313@redhat.com>
10890
d99ba314
AC
10891 * README (Graphical interface to GDB): Update URL. Point at
10892 gdb/links/.
10893
3f5a3016
AC
10894 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10895 version match.
10896
083ae935
DJ
108972003-01-13 Daniel Jacobowitz <drow@mvista.com>
10898
10899 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10900 lines.
10901
5365276c
DJ
109022003-01-13 Daniel Jacobowitz <drow@mvista.com>
10903
10904 * thread-db.c (attach_thread): Prototype.
10905 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10906 thread information (ti), and valid flags (th_valid, ti_valid).
10907 (attach_thread): Move target_pid_to_str call to after the thread
10908 is added to GDB's list. Initialize the cache.
10909 (thread_get_info_callback, thread_db_map_id2thr)
10910 (thread_db_get_info): New functions.
10911 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10912 (thread_db_store_registers, thread_db_thread_alive)
10913 (thread_db_get_thread_local_address): Use them.
10914 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10915 of calling error() for threads in unknown state.
10916
10917 (clear_lwpid_callback): New function.
10918 (thread_db_resume): Use it to clear the cache.
10919
9fc30b6b
DJ
109202003-01-13 Daniel Jacobowitz <drow@mvista.com>
10921
10922 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10923 (resume_callback): Remove dead code.
10924
8f871025
AC
109252003-01-13 Andrew Cagney <ac131313@redhat.com>
10926
10927 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10928 predicate.
10929 * gdbarch.h, gdbarch.c: Regenerate.
10930 * stack.c (frame_info): Only initialize the saved registers when
10931 FRAME_INIT_SAVED_REGS_P.
10932 * frame.c (frame_saved_regs_register_unwind): Assert
10933 FRAME_INIT_SAVED_REGS_P.
10934 (deprecated_generic_get_saved_register): Ditto.
10935
3f565f1e
DJ
109362003-01-13 Daniel Jacobowitz <drow@mvista.com>
10937
10938 * source.c (openp): Squelch warning about "filename".
10939
072b1022
DJ
109402003-01-13 Daniel Jacobowitz <drow@mvista.com>
10941
10942 * source.c (openp): If the file does not exist don't necessarily
10943 search the path.
10944
973ccf8b
DJ
109452003-01-13 Daniel Jacobowitz <drow@mvista.com>
10946
10947 Fix PR gdb/872.
10948 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10949 (integer_types_same_name_p): New function.
10950 (rank_one_type): Use it.
10951 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10952
030292b7
DJ
109532003-01-13 Daniel Jacobowitz <drow@mvista.com>
10954
10955 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10956 variables.
10957 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10958 * configure.in: Add --with-sysroot.
10959 * configure: Regenerated.
10960 * main.c (gdb_sysroot): New variable.
10961 (captured_main): Initialize gdb_sysroot.
10962 * defs.h (gdb_sysroot): New extern declaration.
10963 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10964
afb5d334
MC
109652003-01-12 Michael Chastain <mec@shout.net>
10966
10967 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10968
751ceeb4
MC
109692003-01-12 Michael Chastain <mec@shout.net>
10970
10971 * top.c (print_gdb_version): Bump copyright year to 2003.
10972
94cd26f8
DC
109732003-01-12 David Carlton <carlton@bactrian.org>
10974
10975 * linespec.c (symtab_from_filename): Rename variable 's' to
10976 'file_symtab'.
10977
1ce79225
AC
109782003-01-12 Andrew Cagney <ac131313@redhat.com>
10979
10980 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10981 dummy frame.
10982 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10983
fa1fd571
AC
109842003-01-12 Andrew Cagney <ac131313@redhat.com>
10985
10986 * d10v-tdep.c: Include "gdb_assert.h".
10987 (d10v_store_return_value): Rewrite to match current interface.
10988 (d10v_extract_struct_value_address): Ditto.
10989 (d10v_extract_return_value): Ditto.
10990 (d10v_gdbarch_init): Set store_restore_value,
10991 extract_struct_value_address and extract_return_value.
10992
68b8d23e
JB
109932003-01-12 J. Brobecker <brobecker@gnat.com>
10994
10995 * hpread.c (set_namestring): New procedure replacing the
10996 SET_NAMESTRING macro.
10997 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10998 by calls to set_namestring.
10999
110002003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11001
11002 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11003 a compilation warning.
11004 (hpread_process_one_debug_symbol): Likewise.
11005
88d262ca
DC
110062003-01-10 David Carlton <carlton@math.stanford.edu>
11007
11008 * linespec.c (decode_line_1): Rename variable 's' to
11009 'file_symtab'.
11010 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11011 (decode_dollar): Ditto.
11012 (decode_variable): Ditto.
11013 (symbol_found): Ditto.
11014
86669319
MC
110152003-01-09 Michael Chastain <mec@shout.net>
11016
11017 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11018
616a9dc4
CV
110192003-01-07 Corinna Vinschen <vinschen@redhat.com>
11020
11021 * win32-nat.c (set_process_privilege): New function.
11022 (child_attach): Call set_process_privilege() to enable the
11023 SE_DEBUG_NAME user privilege if available in process token.
11024
3269bcfa
JB
110252003-01-10 J. Brobecker <brobecker@gnat.com>
11026
11027 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11028 compilation error in the previous revision.
11029
2b0ee454
DC
110302003-01-09 David Carlton <carlton@math.stanford.edu>
11031
11032 * linespec.c: Update copyright.
11033
b3ba1b44
DJ
110342003-01-09 Daniel Jacobowitz <drow@mvista.com>
11035
11036 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11037 than inferior_ptid.
11038 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11039
4ef3f3be
AC
110402003-01-09 Andrew Cagney <ac131313@redhat.com>
11041
479ab5a0
AC
11042 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11043 Update comments.
11044 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11045 (frame_saved_regs_zalloc): Update.
11046 (frame_saved_regs_register_unwind): Update.
11047 (create_new_frame): Update.
11048 (get_prev_frame): Update.
11049 (frame_extra_info_zalloc): Update.
11050 (deprecated_get_frame_saved_regs): Update.
11051 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11052 * cris-tdep.c: Update comment.
11053
bde58177
AC
11054 * somsolib.h: Fix function indentation.
11055 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11056 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11057 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11058 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11059 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11060
4ef3f3be
AC
11061 * infrun.c (follow_fork): Use ISO C definition.
11062 * expprint.c (print_subexp): Use xfree instead of free.
11063 * charset.c: Include "gdb_string.h" instead of <string.h>.
11064 (register_iconv_charsets): Use ISO C definition.
11065 (host_charset, target_charset): Ditto.
11066 * Makefile.in (charset.o): Update dependencies.
11067 (mi-cmd-env.o): Update dependencies.
11068
1c615f7a
AC
110692003-01-08 Andrew Cagney <cagney@redhat.com>
11070
11071 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11072 get_frame_base.
11073
c9a1dc08
AC
110742003-01-08 Andrew Cagney <ac131313@redhat.com>
11075
11076 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11077 build directories. Save edited gdb output in Mbuild.log. If a
11078 build fails, remove any final GDB executable.
11079
dbad9d94
AC
110802003-01-08 Andrew Cagney <ac131313@redhat.com>
11081
11082 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11083 replacing hex constants with function names and stripping leading
11084 file name directory prefixes.
11085
8d357cca
AC
110862003-01-08 Andrew Cagney <cagney@redhat.com>
11087
11088 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11089 get_frame_base.
11090
bca02a8a
DC
110912003-01-08 David Carlton <carlton@math.stanford.edu>
11092
11093 * linespec.c (decode_line_1): Move code into decode_variable.
11094 (decode_variable): New function.
11095
7f8ab3a0
AC
110962003-01-08 Andrew Cagney <ac131313@redhat.com>
11097
11098 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11099
7b5849cc
AC
111002003-01-08 Andrew Cagney <cagney@redhat.com>
11101
11102 * cris-tdep.c (cris_frame_init_saved_regs): Use
11103 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11104 saved_regs buffer.
11105 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11106 (sh64_nofp_frame_init_saved_regs): Ditto.
11107 (sh_fp_frame_init_saved_regs): Ditto.
11108 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11109 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11110 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11111 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11112
72a5efb3
DJ
111132003-01-08 Daniel Jacobowitz <drow@mvista.com>
11114
11115 * minsyms.c (lookup_minimal_symbol): Update comment.
11116 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11117 (lookup_minimal_symbol_solib_trampoline): Likewise.
11118
11c02a10
AC
111192003-01-08 Andrew Cagney <cagney@redhat.com>
11120
aab3ea25
AC
11121 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11122 frame_relative_level.
11123
da50a4b7
AC
11124 * alpha-tdep.c: Use get_frame_extra_info.
11125 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11126 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11127 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11128 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11129
11c02a10
AC
11130 * alpha-tdep.c: Use get_next_frame.
11131 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11132 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11133 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11134 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11135 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11136 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11137 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11138
1e2330ba
AC
111392003-01-07 Andrew Cagney <cagney@redhat.com>
11140
11141 * alpha-tdep.c: Use get_frame_base.
11142 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11143 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11144 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11145 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11146 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11147 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11148 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11149 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11150
2d75187b
AC
111512003-01-07 Andrew Cagney <cagney@redhat.com>
11152
11153 * frame.c (deprecated_get_frame_context): New function.
11154 (deprecated_set_frame_context): New function.
11155 * frame.h (deprecated_get_frame_context): Declare.
11156 (deprecated_set_frame_context): Declare.
11157 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11158 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11159
483d36b2
AC
111602003-01-07 Andrew Cagney <cagney@redhat.com>
11161
11162 * frame.c (deprecated_set_frame_next_hack): New function.
11163 (deprecated_set_frame_prev_hack): New function.
11164 * frame.h (deprecated_set_frame_next_hack): Declare.
11165 (deprecated_set_frame_prev_hack): Declare.
11166 * mcore-tdep.c (analyze_dummy_frame): Use
11167 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11168 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11169
14e91ac5
DC
111702003-01-07 David Carlton <carlton@math.stanford.edu>
11171
11172 * linespec.c (decode_line_1): Move code into decode_dollar.
11173 (decode_dollar): New function.
11174
b0c6b05c
AC
111752003-01-07 Andrew Cagney <cagney@redhat.com>
11176
11177 * arm-tdep.c (arm_init_extra_frame_info): Use
11178 deprecated_update_frame_base_hack.
11179 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11180 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11181 (fix_frame_pointer): Ditto.
11182 (mn10300_analyze_prologue): Ditto.
11183
a00a19e9
AC
111842003-01-07 Andrew Cagney <cagney@redhat.com>
11185
11186 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11187 extra_info using frame_extra_info_zalloc.
11188 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11189 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11190 (sh64_init_extra_frame_info): Ditto.
11191 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11192 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11193 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11194 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11195 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11196 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11197 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11198 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11199 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11200 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11201 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11202 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11203
11204 * mn10300-tdep.c (analyze_dummy_frame): Use
11205 deprecated_set_frame_extra_info_hack.
11206 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11207
1fb4c65b
JB
112082003-01-07 J. Brobecker <brobecker@gnat.com>
11209
11210 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11211 class is not scText. These do not define "real" procedures.
11212 (parse_partial_symbols): Likewise.
11213
9fe7d6bf
MS
112142003-01-06 Michael Snyder <msnyder@redhat.com>
11215
11216 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11217
f6c609c4
AC
112182003-01-06 Andrew Cagney <ac131313@redhat.com>
11219
11220 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11221 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11222 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11223 deprecated_frame_xmalloc_with_cleanup.
11224 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11225 deprecated_frame_xmalloc.
11226 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11227 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11228
d995ff4b
AC
112292003-01-06 Andrew Cagney <cagney@redhat.com>
11230
84dc46cb
AC
11231 * x86-64-linux-tdep.c: Include "osabi.h".
11232 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11233
d995ff4b
AC
11234 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11235
66140c26
AC
112362003-01-06 Andrew Cagney <cagney@redhat.com>
11237
11238 * MAINTAINERS (Target Instruction Set Architectures): Update
11239 arm-elf. Can be built with -Werror, has been multiarched.
11240
11241 * value.h (unpack_long): Make buffer parameter constant.
11242 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11243 * scm-lang.h (scm_parse): Ditto.
11244 * defs.h (extract_typed_address, extract_address): Ditto.
11245 (extract_long_unsigned_integer): Ditto.
11246 * inferior.h (unsigned_pointer_to_address): Ditto.
11247 (signed_pointer_to_address): Ditto.
11248 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11249 * gdbarch.h, gdbarch.c: Regenerate.
11250 * findvar.c (extract_long_unsigned_integer): Update.
11251 (extract_address): Update.
11252 (extract_typed_address): Update.
11253 (unsigned_pointer_to_address): Update.
11254 * values.c (unpack_long): Update.
11255 (unpack_double): Update.
11256 (unpack_pointer): Update.
11257 (unpack_field_as_long): Update.
11258 * d10v-tdep.c (d10v_pointer_to_address): Update.
11259 * avr-tdep.c (avr_pointer_to_address): Update.
11260 * scm-lang.c (scm_unpack): Update.
11261 * findvar.c (signed_pointer_to_address): Update.
11262
b089b3da
ML
112632003-01-06 Michal Ludvig <mludvig@suse.cz>
11264
8ffd9b1b 11265 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11266 since it is in i386-tdep.c.
11267
aff87235
JB
112682003-01-06 J. Brobecker <brobecker@gnat.com>
11269
11270 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11271 failure introduced in the previous change.
11272
34f5e845
MC
112732003-01-05 Michael Chastain <mec@shout.net>
11274
11275 * README: Remove references to deleted remote-*.c files:
11276 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11277 remote-nrom.c, remote-os9k.c, remote-udi.c.
11278
28bcfd30
MK
112792003-01-05 Mark Kettenis <kettenis@gnu.org>
11280
11281 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11282 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11283 i386_get_longjmp_target.
11284
15a5b3ee
AC
112852003-01-05 Andrew Cagney <ac131313@redhat.com>
11286
11287 * arm-tdep.c (prologue_cache): Change to a pointer.
11288 (_initialize_arm_tdep): Allocate prologue_cache.
11289 (check_prologue_cache): Update.
11290 (save_prologue_cache): Update.
11291 (arm_gdbarch_init): Update.
11292
c263362b
DJ
112932003-01-04 Daniel Jacobowitz <drow@mvista.com>
11294
11295 * stabsread.c (update_method_name_from_physname): Call complaint()
11296 instead of error.
11297
51603483
DJ
112982003-01-04 Daniel Jacobowitz <drow@mvista.com>
11299
11300 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11301 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11302 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11303
11304 * blockframe.c: Include "gdbcmd.h" and "command.h".
11305 (backtrace_below_main): New variable.
11306 (file_frame_chain_valid, func_frame_chain_valid)
11307 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11308 (generic_func_frame_chain_valid): Remove functions.
11309 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11310 (_initialize_blockframe): New function.
11311 * Makefile.in (blockframe.o): Update dependencies.
11312 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11313 comment. Call frame_chain_valid ().
11314 * frame.h: Remove old prototypes. Add prototype for
11315 frame_chain_valid and update comments to match.
11316 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11317 Remove old comment.
11318 * gdbarch.h: Regenerated.
11319 * gdbarch.c: Regenerated.
11320
11321 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11322 set_gdbarch_frame_chain_valid.
11323 * avr-tdep.c (avr_gdbarch_init): Likewise.
11324 * cris-tdep.c (cris_gdbarch_init): Likewise.
11325 * frv-tdep.c (frv_gdbarch_init): Likewise.
11326 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11327 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11328 (i386_nw_init_abi): Likewise.
11329 (i386_gdbarch_init): Likewise.
11330 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11332 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11333 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11334 * mips-tdep.c (mips_gdbarch_init): Likewise.
11335 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11336 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11337 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11338 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11339 * s390-tdep.c (s390_gdbarch_init): Likewise.
11340 * sh-tdep.c (sh_gdbarch_init): Likewise.
11341 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11342 * v850-tdep.c (v850_gdbarch_init): Likewise.
11343 * vax-tdep.c (vax_gdbarch_init): Likewise.
11344 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11345
11346 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11347 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11348 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11349 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11350 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11351 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11352 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11353 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11354
b00a8037
DJ
113552002-01-04 Daniel Jacobowitz <drow@mvista.com>
11356
11357 * Makefile.in (acconfig_h): Remove incorrect macro.
11358 (config_h): Define.
11359 (osabi.o): Update dependencies.
11360 * configure.tgt: Set gdb_osabi based on target triplet.
11361 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11362 * configure: Regenerated.
11363 * config.in: Regenerated.
11364 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11365 (GDB_OSABI_DEFAULT): Define if not already defined.
11366 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11367 (set_osabi_string): New variables.
11368 (gdbarch_register_osabi): Add new OS ABI to
11369 gdb_osabi_available_names.
11370 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11371 (set_osabi, show_osabi): New functions.
11372 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11373
4be87837
DJ
113742003-01-04 Daniel Jacobowitz <drow@mvista.com>
11375
11376 * arch-utils.c (gdbarch_info_init): Set osabi to
11377 GDB_OSABI_UNINITIALIZED.
11378 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11379 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11380 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11381 * gdbarch.c: Regenerated.
11382 * gdbarch.h: Regenerated.
11383 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11384 there's no BFD.
11385 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11386 * osabi.h (enum gdb_osabi): Move to defs.h.
11387 (gdbarch_init_osabi): Update prototype.
11388 * defs.h (enum gdb_osabi): Moved here.
11389 * Makefile.in: Update dependencies.
11390
11391 * alpha-tdep.h: Don't include "osabi.h".
11392 (struct gdbarch_tdep): Remove osabi member.
11393 * alpha-tdep.c: Include "osabi.h".
11394 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11395 iterate over arches. Update call to gdbarch_init_osabi.
11396 (alpha_dump_tdep): Don't dump osabi.
11397 * alpha-linux-tdep.c: Include "osabi.h".
11398 * alpha-osf1-tdep.c: Include "osabi.h".
11399 * alphafbsd-tdep.c: Include "osabi.h".
11400 * alphanbsd-tdep.c: Include "osabi.h".
11401
11402 * arm-tdep.h: Don't include "osabi.h".
11403 (struct gdbarch_tdep): Remove osabi member.
11404 * arm-tdep.c: Include "osabi.h".
11405 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11406 iterate over arches. Update call to gdbarch_init_osabi.
11407 (arm_dump_tdep): Don't dump osabi.
11408 * arm-linux-tdep.c: Include "osabi.h".
11409 * armnbsd-tdep.c: Include "osabi.h".
11410
11411 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11412 Update call to gdbarch_init_osabi.
11413
11414 * i386-tdep.h: Don't include "osabi.h".
11415 (struct gdbarch_tdep): Remove osabi member.
11416 * i386-tdep.c: Include "osabi.h".
11417 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11418 iterate over arches. Update call to gdbarch_init_osabi.
11419 (i386_dump_tdep): Don't dump osabi.
11420 * i386-linux-tdep.c: Include "osabi.h".
11421 * i386-sol2-tdep.c: Include "osabi.h".
11422 * i386bsd-tdep.c: Include "osabi.h".
11423 * i386gnu-tdep.c: Include "osabi.h".
11424 * i386ly-tdep.c: Include "osabi.h".
11425 * i386nbsd-tdep.c: Include "osabi.h".
11426 * i386obsd-tdep.c: Include "osabi.h".
11427
11428 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11429 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11430 check osabi when iterating over arches. Update call to
11431 gdbarch_init_osabi.
11432 (mips_dump_tdep): Don't dump osabi.
11433
11434 * ns32k-tdep.h: Don't include "osabi.h".
11435 (struct gdbarch_tdep): Remove.
11436 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11437 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11438 allocate tdep. Update call to gdbarch_init_osabi.
11439 (ns32k_dump_tdep): Remove.
11440 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11441 * ns32knbsd-tdep.c: Include "osabi.h".
11442
11443 * ppc-tdep.h: Don't include "osabi.h".
11444 (struct gdbarch_tdep): Remove osabi member.
11445 * rs6000-tdep.c: Include "osabi.h".
11446 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11447 osabi when iterating over arches. Update call to
11448 gdbarch_init_osabi.
11449 (rs6000_dump_tdep): Don't dump osabi.
11450 * ppc-linux-tdep.c: Include "osabi.h".
11451 * ppcnbsd-tdep.c: Include "osabi.h".
11452
11453 * sh-tdep.h: Don't include "osabi.h".
11454 (struct gdbarch_tdep): Remove osabi member.
11455 * sh-tdep.c: Include "osabi.h".
11456 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11457 iterate over arches. Update call to gdbarch_init_osabi.
11458 (sh_dump_tdep): Don't dump osabi.
11459 * shnbsd-tdep.c: Include "osabi.h".
11460
11461 * sparc-tdep.c: Include "osabi.h".
11462 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11463 iterate over arches. Update call to gdbarch_init_osabi.
11464 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11465 tdep structure.
11466
11467 * vax-tdep.h: Don't include "osabi.h".
11468 (struct gdbarch_tdep): Remove.
11469 * vax-tdep.c: Include "osabi.h".
11470 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11471 iterate over arches. Don't allocate tdep. Update call
11472 to gdbarch_init_osabi.
11473 (vax_dump_tdep): Remove.
11474 (_initialize_vax_tdep): Update call to gdbarch_register.
11475
a881cf8e
DJ
114762003-01-04 Daniel Jacobowitz <drow@mvista.com>
11477
11478 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11479 entirely.
11480 (breakpoint_re_set_one): Don't fetch the value for a disabled
11481 watchpoint.
11482
1e698235
DJ
114832003-01-04 Daniel Jacobowitz <drow@mvista.com>
11484
11485 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11486 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11487 (COERCE_FLOAT_TO_DOUBLE): Remove.
11488 * gdbarch.c: Regenerate.
11489 * gdbarch.h: Regenerate.
11490 * Makefile.in: Remove value_h from gdbarch_h.
11491 * valops.c (coerce_float_to_double): New variable.
11492 (default_coerce_float_to_double): Remove.
11493 (standard_coerce_float_to_double): Remove.
11494 (value_arg_coerce): Use coerce_float_to_double.
11495 (_initialize_valops): Add "set coerce-float-to-double".
11496 * value.h (default_coerce_float_to_double): Remove prototype.
11497 (standard_coerce_float_to_double): Remove prototype.
11498
11499 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11500 prototyped.
11501 * mdebugread.c (parse_symbol): Likewise.
11502 * stabsread.c (define_symbol): Mark all functions as prototyped.
11503
11504 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11505 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11506 set_gdbarch_coerce_float_to_double.
11507 * arm-tdep.c (arm_gdbarch_init): Likewise.
11508 * frv-tdep.c (frv_gdbarch_init): Likewise.
11509 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11510 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11511 * mips-tdep.c (mips_gdbarch_init): Likewise.
11512 (mips_coerce_float_to_double): Remove.
11513 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11514 (rs6000_coerce_float_to_double): Remove.
11515 * s390-tdep.c (s390_gdbarch_init): Likewise.
11516 * sh-tdep.c (sh_gdbarch_init): Likewise.
11517 (sh_coerce_float_to_double): Remove.
11518 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11519 (sparc_coerce_float_to_double): Remove.
11520 * v850-tdep.c (v850_gdbarch_init): Likewise.
11521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11522 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11523 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11524 (hppa_coerce_float_to_double): Remove prototype.
11525 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11526
f436a26a
DJ
115272003-01-04 Daniel Jacobowitz <drow@mvista.com>
11528
11529 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11530
248f8055
DJ
115312003-01-04 Daniel Jacobowitz <drow@mvista.com>
11532
11533 Suggested by Stewart Brown <sb24@avaya.com>:
11534 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11535 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11536 (c_type_print_varspec_suffix): Likewise.
11537
72cfdc76
MK
115382003-01-04 Mark Kettenis <kettenis@gnu.org>
11539
bfd260bb
MK
11540 * configure.in: Don't set and AC_SUBST SUBDIRS.
11541 * configure: Regenerated.
11542
72cfdc76
MK
11543 * configure.in: Remove code dealing with shared libraries.
11544 * Makefile.in: Remove HLDFLAGS and HLDENV.
11545 * configure: Regenerated.
11546
c8b8a898
AC
115472003-01-04 Andrew Cagney <ac131313@redhat.com>
11548
11549 * frame.c (deprecated_frame_xmalloc): New function.
11550 (deprecated_set_frame_saved_regs_hack): New function.
11551 (deprecated_set_frame_extra_info_hack): New function.
11552 * frame.h (deprecated_frame_xmalloc): Declare.
11553 (deprecated_set_frame_saved_regs_hack): Declare.
11554 (deprecated_set_frame_extra_info_hack): Declare.
11555
14abd0fb
MK
115562003-01-04 Mark Kettenis <kettenis@gnu.org>
11557
8ee53726
MK
11558 * configure.in: Move code that provides the --enable-gdbtk option
11559 right after the code that handles the --enable-tui option, and
11560 polish it somewhat.
11561 * configure: Regenerated.
11562
14abd0fb
MK
11563 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11564 AC_CHECK_FUNCS and remove the old check for pread64.
11565 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11566 * acconfig.h (_GNU_SOURCE): Add.
11567 (HAVE_PREAD64): Remove.
11568 * configure, aclocal.m4, config.in: Regenerated.
11569
b2fb4676
AC
115702003-01-03 Andrew Cagney <ac131313@redhat.com>
11571
11572 * alpha-tdep.c: Use get_frame_saved_regs.
11573 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11574 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11575 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11576 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11577 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11578
8dcde887
MK
115792003-01-03 Mark Kettenis <kettenis@gnu.org>
11580
11581 * configure.in: Remove all use of the SUBDIRS variable; add
11582 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11583 code providing the --enable-multi-ice option, and move it right in
11584 front of the code that checks whether gdbserver is supported.
11585 Polish that too.
11586 * configure: Regenerated.
11587 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11588 @SUBDIRS@.
11589
8ccd593b
AC
115902003-01-03 Andrew Cagney <cagney@redhat.com>
11591
11592 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11593 * avr-tdep.c, cris-tdep.c: Ditto.
11594 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11595 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11596
91151a06
MK
115972003-01-03 Mark Kettenis <kettenis@gnu.org>
11598
11599 * configure.in: Remove --enable-netrom option.
11600 * configure: Regenerated.
11601
8fe84d01
MK
116022003-01-03 Mark Kettenis <kettenis@gnu.org>
11603
11604 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11605 declaration for `struct re_pattern_buffer' instead.
11606 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11607
f0394be6
JB
116082003-01-03 J. Brobecker <brobecker@gnat.com>
11609
11610 * mdebugread.c (parse_symbol): Count until the stEnd matching
11611 the structure name.
11612
27e9bf90
MK
116132003-01-02 Mark Kettenis <kettenis@gnu.org>
11614
93d331ba
MK
11615 * configure.in: Remove --with-cpu option.
11616 subscripts. Remove evil changequotes here.
11617 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11618 * config.in, configure: Regenerated.
8ffd9b1b 11619
27e9bf90
MK
11620 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11621 * configure.in: Cleanup section that sources GDB and BFD configure
11622 subscripts. Remove evil changequotes here.
11623 * config.in, configure: Regenerated.
11624
50abf9e5
AC
116252003-01-02 Andrew Cagney <ac131313@redhat.com>
11626
11627 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11628 frame accessor methods.
11629 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11630 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11631 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11632 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11633 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11634 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11635 * z8k-tdep.c: Ditto.
8ffd9b1b 11636
287c1a40
MK
116372003-01-02 Mark Kettenis <kettenis@gnu.org>
11638
f5dbc56d
MK
11639 * configure.in: Remove UI_OUT configuration code.
11640 * ada-lang.c: Update assuming UI_OUT is always true.
11641 * Makefile.in (UIOUT_CFLAGS): Remove.
11642 * configure: Regenerated.
11643 * TODO: Remove blurb about elimination of -DUI_OUT.
11644
627af7ea
MK
11645 * configure.in: Move code that provides the --enable-gdbcli,
11646 --enable-gdbmi options right before the code that handles the
11647 --enable-tui option. Polish a bit.
11648 * configure: Regenerated.
11649
06825bd1
MK
11650 * configure.in: Rewrite check for GNU regex and the
11651 --without-included regex option, and move it into the "Checks for
11652 library functions" section. This makes us use the system regex
11653 again by default on systems with version 2 of the GNU C library.
11654 This was apparently broken.
11655 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11656 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11657 * config.in, configure: Regenerated.
11658
287c1a40
MK
11659 * configure.in: Move code that provides the --enable-tui option
11660 before the "Checks for libraries" section. Polish the code
11661 somewhat and set need_curses to yes if we build the TUI. Rewrite
11662 code that looks for a library providing termcap functionality to
11663 match more closely what's done in the Readline library, and move
11664 it into to the "Checks for libraries" section.
11665 * configure: Regenerated.
11666 * Makefile.in (TERMCAP): Remove variable.
11667 * config/i386/go32.mh (TERMCAP): Remove variable.
11668
684e56bf
AC
116692003-01-02 Andrew Cagney <ac131313@redhat.com>
11670
11671 * MAINTAINERS: Mention gdb_mbuild.sh.
11672 * gdb_mbuild.sh: Rewrite.
11673
e1ea1d75
MK
116742003-01-02 Mark Kettenis <kettenis@gnu.org>
11675
11676 * configure.in: Fix typo in last change.
11677 * config.in, configure: Regenerated.
11678
1b831c93
AC
116792003-01-02 Andrew Cagney <ac131313@redhat.com>
11680
11681 * valarith.c (value_binop): Delete obsolete code and comments.
11682 * configure.host: Ditto.
11683 * buildsym.h (make_blockvector): Ditto.
11684 * buildsym.c (make_blockvector): Ditto.
11685 * defs.h (enum language): Ditto.
11686 (chill_demangle): Ditto.
11687 * elfread.c (elf_symtab_read): Ditto.
11688 * dwarfread.c (CHILL_PRODUCER): Ditto.
11689 (set_cu_language): Ditto.
11690 (handle_producer): Ditto.
11691 * expprint.c (print_subexp): Ditto.
11692 * gdbtypes.c (chill_varying_type): Ditto.
11693 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11694 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11695 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11696 (chill_varying_type): Ditto.
11697 * language.h (_LANG_chill): Ditto.
11698 * language.c (binop_result_type, integral_type): Ditto.
11699 (character_type, string_type, structured_type): Ditto.
11700 (lang_bool_type, binop_type_check): Ditto.
11701 * stabsread.h (os9k_stabs): Ditto.
11702 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11703 (define_symbol, read_type, read_struct_fields): Ditto.
11704 (read_array_type, read_enum_type, read_huge_number): Ditto.
11705 (read_range_type, start_stabs): Ditto.
11706 * symfile.c (init_filename_language_table): Ditto.
11707 (add_psymbol_with_dem_name_to_list): Ditto.
11708 * symtab.c (symbol_init_language_specific): Ditto.
11709 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11710 * symtab.h (struct general_symbol_info): Ditto.
11711 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11712 * typeprint.c (typedef_print): Ditto.
11713 * utils.c (fprintf_symbol_filtered): Ditto.
11714 * valops.c (value_cast, search_struct_field, value_slice): Delete
11715 obsolete code.
11716 (varying_to_slice): Delete function.
11717 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11718 (varying_to_slice): Delete declaration.
11719 * MAINTAINERS: Update.
11720
8bb2c122
MK
117212003-01-02 Mark Kettenis <kettenis@gnu.org>
11722
97bf5e38
MK
11723 * configure.in: Reorganize "Checks for library functions section"
11724 a bit. Remove check for `btowc' and `isascii' functions.
11725 * configure: Regenerated.
11726
5ee754fc
MK
11727 * acconfig.h (_MSE_INT_H): Remove.
11728 * configure.in: Create "Checks for header files" section, and move
11729 appropriate tests there. Don't check for objlist.h, wchar.h,
11730 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11731 misdetection fix. Also add "Checks for types", "Checks for
11732 compiler characteristics" and "Checks for library functions"
11733 sections.
11734 * config.in, configure: Regenerated.
11735
8bb2c122
MK
11736 * configure.in: Create "Checks for programs" section, and move
11737 appropriate tests there.
11738
9a156167
MK
117392003-01-01 Mark Kettenis <kettenis@gnu.org>
11740
11741 * configure.in: Create "Checks for libraries" section, and move
11742 appropriate tests there. Cleanup check for wctype in libw. Use
11743 AC_SEARCH_LIBS to see whether we need libsocket.
11744 * configure: Regenerated.
11745
a80e2bcb 11746For older changes see ChangeLog-2002
c906108c
SS
11747\f
11748Local Variables:
11749mode: change-log
11750left-margin: 8
11751fill-column: 74
11752version-control: never
11753End:
This page took 1.382487 seconds and 4 git commands to generate.