2003-09-11 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
63cd24fe
EZ
12003-09-11 Elena Zannoni <ezannoni@redhat.com>
2
3 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
4 orig_addrs is set up properly.
5
f27dd7fd
AC
62003-09-11 Andrew Cagney <cagney@redhat.com>
7
8 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
9 * gdbarch.h, gdbarch.c: Re-generate.
10 * infcall.c (call_function_by_hand): Update.
11 * hppa-tdep.c (hppa_push_arguments): Update.
12 * ada-lang.c (place_on_stack): Update.
13 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
14 * sparc-tdep.c (sparc_gdbarch_init): Update.
15 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
16 * hppa-tdep.c (hppa_gdbarch_init): Update.
17 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
18 stack_align.
19
f630a401
DJ
202003-09-11 Daniel Jacobowitz <drow@mvista.com>
21
22 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
23 register do need a frame.
24
0ddabb4c
AC
252003-09-11 Andrew Cagney <cagney@redhat.com>
26
27 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
28 buildable since GDB 5.0.
29 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
30 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
31 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
32 * irix4-nat.c: Delete file.
33 * config/mips/irix4.mh: Delete file.
34 * config/mips/irix3.mh: Delete file.
35 * config/mips/irix3.mt: Delete file.
36 * config/mips/tm-irix3.h: Delete file.
37 * config/mips/nm-irix3.h: Delete file.
38 * config/mips/xm-irix3.h: Delete file.
39 * config/mips/nm-irix4.h: Delete file.
40 * config/mips/xm-irix4.h: Delete file.
41 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
42
fde2cceb
JB
432003-09-10 J. Brobecker <brobecker@gnat.com>
44
45 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
46 * Makefile.in (hppa-tdep.o): Update dependencies.
47
66f667f5
JW
482003-09-10 James E Wilson <wilson@specifixinc.com>
49
ef5fd69f
JW
50 * MAINTAINERS: Change my e-mail address. Move to paper trail
51 section.
66f667f5 52
53e8aaea
KB
532003-09-10 Kevin Buettner <kevinb@redhat.com>
54
55 * MAINTAINERS (frv): New ISA entry.
56
dcc6aaff
KB
572003-09-10 Kevin Buettner <kevinb@redhat.com>
58
59 * frv-tdep.c (dis-asm.h): Include.
60 * Makefile.in (frv-tdep.o): Update dependencies.
61
932644f0
JJ
622003-09-09 Jeff Johnston <jjohnstn@redhat.com>
63
64 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
65 Fix typo for high range of floating registers.
66
91c24f0a
DC
672003-09-09 David Carlton <carlton@kealia.com>
68
69 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
70 highpc initialization here out of scan_partial_symbols.
71 (scan_partial_symbols): Restructure into a recursive version,
72 calling add_partial_namespace and add_partial_enumeration when
73 appropriate.
74 (add_partial_namespace): New.
75 (add_partial_enumeration, locate_pdi_sibling): Ditto.
76
c9263853
AC
772003-09-09 Andrew Cagney <cagney@redhat.com>
78
e56a0ecc
AC
79 * rs6000-tdep.c (ppc_push_return_address): Delete function.
80 (rs6000_push_dummy_call): Set LR to BP_ADDR.
81 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
82 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
83
794a477a
AC
84 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
85 (rs6000_push_dummy_call): Set the "TOC" register.
86
c9263853
AC
87 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
88 methods "max_register_raw_size", "max_register_virtual_size" or
89 "register_virtual_size".
90
afa7d0b2
ILT
912003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
92
93 * MAINTAINERS: Update my e-mail address.
94
7a41266b
AC
952003-09-09 Andrew Cagney <cagney@redhat.com>
96
97 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
98 (rs6000_push_dummy_call): Store the struct return address.
99 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
100
77b2b6d4
AC
1012003-09-09 Andrew Cagney <cagney@redhat.com>
102
103 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
104 "ppc_sysv_abi_push_arguments".
105 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
106 "ppc_sysv_abi_push_arguments".
107 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
108 instead of "push_arguments".
109 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
110
e8a7b686
AC
1112003-09-09 Andrew Cagney <cagney@redhat.com>
112
113 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
114 instead of CALL_DUMMY_ADDRESS.
115
f86f5ca3
PH
1162003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
117
118 * p-lang.c: Eliminate "register".
119 * c-lang.c: Ditto.
120 * expprint.c: Ditto.
121 * f-lang.c: Ditto.
122 * jv-lang.c: Ditto.
123 * language.c: Ditto.
124 * m2-lang.c: Ditto.
125 * parse.c: Ditto.
126 * scm-lang.c: Ditto.
127 * objc-lang.c: Ditto.
128
83ee270e
NC
1292003-09-09 Nick Clifton <nickc@redhat.com>
130
131 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
132
a89aa300
AC
1332003-09-04 Andrew Cagney <cagney@redhat.com>
134
135 * avr-tdep.c: Include "dis-asm.h".
136 * cris-tdep.c: Include "dis-asm.h".
137 (cris_delayed_get_disassembler): Use "struct disassemble_info"
138 instead of corresponding typedef.
139 * h8300-tdep.c: Include "dis-asm.h".
140 * ia64-tdep.c: Include "dis-asm.h".
141 * i386-tdep.c: Include "dis-asm.h".
142 (i386_print_insn): Use "struct disassemble_info" instead of
143 corresponding typedef.
144 * m68k-tdep.c: Include "dis-asm.h".
145 * mcore-tdep.c: Include "dis-asm.h".
146 * mips-tdep.c: Include "dis-asm.h".
147 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
148 instead of corresponding typedef.
149 * ns32k-tdep.c: Include "dis-asm.h".
150 * s390-tdep.c: Include "dis-asm.h".
151 * sparc-tdep.c: Include "dis-asm.h".
152 * vax-tdep.c: Include "dis-asm.h".
153 * v850-tdep.c: Include "dis-asm.h".
154 * mn10300-tdep.c: Include "dis-asm.h".
155 * rs6000-tdep.c: Include "dis-asm.h".
156 * xstormy16-tdep.c: Include "dis-asm.h".
157 (_initialize_xstormy16_tdep): Delete "extern" declaration of
158 print_insn_xstormy16.
159 * Makefile.in (v850-tdep.o): Update dependencies.
160 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
161 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
162 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
163 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
164 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
165 (gdbarch_h): Remove $(dis_asm_h).
166 * disasm.c: Include "dis-asm.h".
167 (dis_asm_read_memory): Use "struct disassemble_info" instead of
168 corresponding typedef.
169 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
170 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
171 * gdbarch.sh: Do not include "dis-asm.h".
172 (struct disassemble_info): Declare opaque.
173 (TARGET_PRINT_INSN): Update declaration.
174 * gdbarch.h, gdbarch.c: Re-generate.
175
88a82a65
AC
1762003-09-08 Andrew Cagney <cagney@redhat.com>
177
178 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
179 CALL_DUMMY_ADDRESS, change to a predicate.
180 * gdbarch.h, gdbarch.c: Re-generate.
181 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
182 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
183 * infcall.c (call_function_by_hand): Ditto.
184 * sparc-tdep.c (sparc_push_return_address): Ditto.
185 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
186 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
187 CALL_DUMMY_ADDRESS with entry_point_address.
188 * v850-tdep.c (v850_push_return_address): Ditto.
189 * s390-tdep.c (s390_push_return_address): Ditto.
190 * rs6000-tdep.c (ppc_push_return_address): Ditto.
191 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
192 * mcore-tdep.c (mcore_push_return_address): Ditto.
193 * cris-tdep.c (cris_push_return_address): Ditto.
194 * arm-tdep.c (arm_push_return_address): Ditto.
195
3e2c4033
AC
1962003-09-08 Andrew Cagney <cagney@redhat.com>
197
198 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
199 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
200 and REG_UNMODIFIED to REG_SAME_VALUE.
201 (execute_cfa_program): Update.
202 (dwarf2_frame_cache): Update. Initialize table to
203 REG_UNSPECIFIED, complain if CFI fails to specify a register's
204 location.
205 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
206
39efb398
AC
2072003-09-08 Andrew Cagney <cagney@redhat.com>
208
209 * gnu-nat.c: Remove "inline" function attribute.
210 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
211
f5cb5aca
KB
2122003-09-08 Kevin Buettner <kevinb@redhat.com>
213
214 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
215 target.
216
1cb761c7
KB
2172003-09-08 Kevin Buettner <kevinb@redhat.com>
218
219 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
220 (frame_extra_info): Rename this struct to frv_unwind_cache.
221 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
222 Add fields ``prev_sp'' and ``base''.
223 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
224 (frv_saved_pc_after_call, frv_init_extra_frame_info)
225 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
226 Delete.
227 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
228 Revise all callers. Fill in the unwind cache argument and make
229 other adjustments to account for new frame mechanisms.
230 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
231 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
232 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
233 (frv_frame_unwind, frv_frame_base): New structs.
234 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
235 additional arguments expected by this method and adjust function
236 body accordingly.
237 (frv_gdbarch_init): Remove calls to the following functions:
238 set_gdbarch_deprecated_init_frame_pc(),
239 set_gdbarch_deprecated_saved_pc_after_call(),
240 set_gdbarch_deprecated_frame_chain(),
241 set_gdbarch_deprecated_frame_saved_pc(),
242 set_gdbarch_deprecated_frame_init_saved_regs(),
243 set_gdbarch_deprecated_push_arguments(),
244 set_gdbarch_deprecated_push_return_address(),
245 set_gdbarch_deprecated_pop_frame(),
246 set_gdbarch_deprecated_call_dummy_words(),
247 set_gdbarch_deprecated_sizeof_call_dummy_words(),
248 set_gdbarch_deprecated_init_extra_frame_info(),
249 set_gdbarch_deprecated_dummy_write_sp(), and
250 set_gdbarch_deprecated_pc_in_call_dummy().
251 Add calls to the following functions:
252 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
253 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
254 frame_base_set_default().
255 * Makefile.in (frv-tdep.o): Update dependencies.
256
68f6cf99
MK
2572003-09-09 Mark Kettenis <kettenis@gnu.org>
258
259 * dwarf2-frame.c (read_encoded_value): Add support for
260 DW_EH_PE_aligned encoding.
261
73b65bb0
DJ
2622003-09-08 Daniel Jacobowitz <drow@mvista.com>
263
264 * infrun.c (normal_stop): Don't print a message if the inferior
265 has exited.
266
7c8a5605
JB
2672003-09-08 Jim Blandy <jimb@redhat.com>
268
269 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
270 * dbxread.c: #include "gdb_assert.h".
271 (read_dbx_symtab): If the objfile has no .data section, use the
272 section index for the .bss section instead.
273
7dd88986
DJ
2742003-09-08 Daniel Jacobowitz <drow@mvista.com>
275
276 * frame.c (deprecated_safe_get_selected_frame): New function.
277 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
278 * findvar.c (read_var_value): Call it.
279
55ff77ac
CV
2802003-09-08 Corinna Vinschen <vinschen@redhat.com>
281
282 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
283 (sh64-tdep.o): Add dependencies.
284 * configure.tgt: Add FIXME to sh-*-linux*.
285 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
286 (sh_gdbarch_init): Always set correct sh_show_regs function
287 pointer. Call sh64_gdbarch_init() if machine type is sh5.
288 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
289 * sh64-tdep.c: New file, containing all sh64 related code from
290 sh-tdep.c.
291 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
292 * config/sh/linux.mt (TDEPFILES): Ditto.
293 * config/sh/nbsd.mt (TDEPFILES): Ditto.
294 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
295 * config/sh/wince.mt (TDEPFILES): Ditto.
296
bfb39158
DJ
2972003-09-07 Daniel Jacobowitz <drow@mvista.com>
298
299 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
300 (stop_wait_callback): Handle !lp->signalled also.
301 (lin_lwp_has_pending, flush_callback): New functions.
302 (lin_lwp_wait): Call flush_callback.
303 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
304 (linux_proc_pending_signals): New function.
305 * linux-nat.h (linux_proc_pending_signals): Add prototype.
306
9407de8e
DJ
3072003-09-07 Daniel Jacobowitz <drow@mvista.com>
308
309 From Nick Kelsey <nickk@ubicom.com>:
310 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
311 when the stop PC is at the beginning of a function also.
312
2ef47cd0
DJ
3132003-09-06 Daniel Jacobowitz <drow@mvista.com>
314
315 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
316 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
317
6f4492c8
MK
3182003-09-06 Mark Kettenis <kettenis@gnu.org>
319
320 * sol-thread.c: Include "gdb_string.h".
321
d3420b2f
MK
3222003-09-03 Mark Kettenis <m.kettenis@osp.nl>
323
324 * gcore.c: Reorder include files in alphabetical order. Include
325 "gdb_assert.h". Various coding style fixes.
326 (derive_stack_segment, derive_heap_segment): Replace check for
327 non-null BOTTOM and TOP with gdb_assert.
328 (derive_heap_segment): Replace check for successful creation of
329 ZERO with gdb_assert.
330 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
331
5220ea4c
AC
3322003-09-04 Andrew Cagney <cagney@redhat.com>
333
334 * thread-db.c (verbose_dlsym): New function.
335 (thread_db_load): Use verbose_dlsym
336 (thread_db_new_objfile): Print that libthread_db was loaded, and
337 that thread debugging was enabled.
338
6e8c2c06
AC
3392003-09-04 Andrew Cagney <cagney@redhat.com>
340
341 * configure.tgt: Add "mips64*-*-*" target. Delete
342 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
343 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
344 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
345 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
346 mips*-sony-*, and mips64*-*-elf* targets.
347 * config/mips/embedl.mt: Delete file.
348 * config/mips/embedl64.mt: Delete file.
349 * config/mips/mips.mt: Delete file.
350 * config/mips/mips64.mt: Delete file.
351 * config/mips/tm-embed.h: Delete file.
352 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
353 * config/mips/embed64.mt: Delete out-of-date comment.
354
3a3bc038
AC
3552003-09-04 Andrew Cagney <cagney@redhat.com>
356
357 * hppa-tdep.c (hppa_gdbarch_init): Set
358 "have_nonsteppable_watchpoint".
359 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
360 * mips-tdep.c (mips_dump_tdep): Do not print
361 HAVE_NONSTEPPABLE_WATCHPOINT.
362 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
363 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
364 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
365 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
366
a957e642
CV
3672003-09-04 Corinna Vinschen <vinschen@redhat.com>
368
369 * breakpoint.c (watchpoint_check): Remove accidentally checked in
370 unused code. Add comment.
371
a6fbcf2f
CV
3722003-09-04 Corinna Vinschen <vinschen@redhat.com>
373
374 * breakpoint.c (watchpoint_check): Check for pc being in an
375 epilogue if watchpoint frame couldn't be found.
376
c14a44d5
AC
3772003-09-04 Andrew Cagney <cagney@redhat.com>
378
379 * Makefile.in: Re-generate all dependencies.
380
f6c40618
AC
3812003-09-03 Andrew Cagney <cagney@redhat.com>
382
383 * arch-utils.h (legacy_print_insn): Delete declaration.
384 * arch-utils.c (legacy_print_insn): Delete function.
385 * disasm.c (deprecated_tm_print_insn_info): Delete.
386 (_initialize_disasm): Delete function, contained code initializing
387 deprecated_tm_print_insn_info.
388 * gdbarch.sh (deprecated_tm_print_insn): Delete.
389 (deprecated_tm_print_insn_info): Delete.
390 (TARGET_PRINT_INSN): Do not provide a default.
391 * gdbarch.h, gdbarch.c: Re-generate.
392
242e8be5
AC
3932003-09-03 Andrew Cagney <cagney@redhat.com>
394
395 * disasm.c (fprintf_disasm): New function.
396 (gdb_disassemble_info): Call "init_disassemble_info", instead of
397 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
398 reverts 2003-08-14 change.
399 (_initialize_disasm): Call "init_disassemble_info", instead of
400 INIT_DISASSEMBLE_INFO_NO_ARCH.
401
3ffc3dda
MS
4022003-09-03 Michael Snyder <msnyder@redhat.com>
403
404 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
405
52d16ba8
AC
4062003-09-03 Andrew Cagney <cagney@redhat.com>
407
408 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
409 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
410 * symfile.c (syms_from_objfile): Update.
411 (reread_symbols): `Update
412 * exec.c (exec_file_attach): Update.
413 (exec_file_attach): Update.
414 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
415 2003-08-29 change.
416 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
417
eb5492fa
DJ
4182003-09-03 Daniel Jacobowitz <drow@mvista.com>
419
420 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
421 trad-frame.h.
422 (arm_get_cache): Delete macro.
423 (struct arm_prologue_cache): Update comments. Make saved_regs into
424 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
425 to prev_sp.
426 (thumb_scan_prologue): Update for cache changes. Don't call
427 DEPRECATED_PC_IN_CALL_DUMMY.
428 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
429 argument and use it in desperation search for our prologue. Do not
430 search past the specified PC.
431 (arm_make_prologue_cache): Simplify.
432
433 (arm_prologue_this_id, arm_prologue_prev_register)
434 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
435 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
436 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
437 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
438 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
439
440 (arm_frame_chain_valid, arm_find_callers_reg)
441 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
442 (arm_pop_frame): Delete obsolete methods.
443 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
444
445 (arm_gdbarch_init): Update for new frame methods. Register prologue
446 and sigtramp unwinders. Set the default frame base method.
447
448 * Makefile.in (arm-tdep.o): Update dependencies.
449 * varobj.c (find_frame_addr_in_frame_chain): Call
450 get_frame_base_address.
451 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
452
24de872b
DJ
4532003-09-03 Daniel Jacobowitz <drow@mvista.com>
454
455 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
456 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
457 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
458 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
459 Take NEXT_FRAME and CACHE arguments. Call
460 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
461 Set unwound_pc in CACHE instead of modifying the frame argument.
462 Don't bother checking the frame type when looking for sigtramp
463 frames.
464 (arm_make_prologue_cache, arm_frame_chain)
465 (arm_init_extra_frame_info): New functions.
466
9b8d791a
DJ
4672003-09-03 Daniel Jacobowitz <drow@mvista.com>
468
469 * arm-tdep.c (arm_get_cache): Define.
470 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
471 unwound_sp, unwound_pc, and saved_regs.
472 (thumb_scan_prologue): Take a cache instead of the frame.
473 (arm_scan_prologue): Likewise.
474 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
475 instead of a temporary frame.
476 (arm_init_extra_frame_info): Allocate and use a cache.
477 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
478
7ee3275f
AC
4792003-09-03 Andrew Cagney <cagney@redhat.com>
480
481 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
482 * config/mips/wince.mt (TM_CLIBS): Ditto.
483 * config/sh/wince.mt (TM_CLIBS): Ditto.
484 * config/pa/hppa64.mt (TM_CLIBS): Delete.
485 * config/sparc/sp64.mt (CC): Delete.
486
57b29be7
AC
4872003-09-03 Andrew Cagney <cagney@redhat.com>
488
489 * defs.h: Do not include "arch-utils.h".
490 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
491 GDB_MULTI_ARCH_PURE.
492 * configure.in (GDB_MULTI_ARCH): Do not define.
493 * configure, config.in: Regenerate.
494 * configure.tgt: Do not set variable "gdb_multi_arch".
495 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
496 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
497 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
498 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
499 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
500 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
501 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
502 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
503 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
504 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
505 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
506 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
507 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
508 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
509 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
510 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
511 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
512 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
513
12e035e2
MC
5142003-08-30 Michael Chastain <mec@shout.net>
515
516 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
517 * config/m68k/nm-hp300hpux.h: Delete.
518 * config/m68k/tm-hp300hpux.h: Delete.
519 * config/m68k/xm-hp300hpux.h: Delete.
520 * config/m68k/xm-hp300bsd.h: Delete.
521 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
522 tm-hp300hpux.h, xm-hp300hpux.h.
523 * somsolib.c: Remove comment about hp300 shared libraries.
524
bda34dc2
MK
5252003-08-31 Mark Kettenis <kettenis@gnu.org>
526
5bca7895
MK
527 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
528 Only define PTRACE_GET_THREAD_AREA is not already defined.
529 Various style fixes in code and comments and some additional
530 spelling fixes in comments. Move after functions dealing with
531 debug registers.
532 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
533 Fix coding-style.
534
bda34dc2
MK
535 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
536 frame_unwind_register_unsigned instead of
537 frame_unwind_unsigned_register.
538
c890192f
MK
5392003-08-30 Mark Kettenis <kettenis@gnu.org>
540
541 * configure.in: Search for gethostbyname in libnsl.
542 * configure: Regenerated.
543
60fac5b8
MK
5442003-08-29 Mark Kettenis <kettenis@gnu.org>
545
e294916c
MK
546 * configure.in: Remove redundant AC_MSG_RESULT in check for
547 uintptr_t in stdint.h.
548 * configure: Regenerated.
549
c40d267a
MK
550 * amd64-nat.h (struct regcache): Add opaque declaration.
551
60fac5b8
MK
552 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
553 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
554 Change "register array" to "register cache" in comments.
555 (x86_64_linux_gregset64_reg_offset): New variable.
556 (GETREGS_SUPPLIES): Remove macro.
557 (supply_gregset): Call amd64_supply_native_gregset instead of
558 x86_64_linux_supply_gregset.
559 (fill_gregset): Rename `regno' to `regnum'. Call
560 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
561 (store_regs): Rename `regno' to `regnum'.
562 (store_fpregs): Rename `regno' to `regnum'.
563 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
564 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
565 Reorganize function a bit.
566 (store_inferior_registers): Rename `regno' to `regnum'. Use
567 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
568 Reorganize function a bit.
569 (_initialize_x86_64_linux_nat): New function.
570 * config/i386/x86-64linux.mh.
571
546143b6
AC
5722003-08-29 Andrew Cagney <cagney@redhat.com>
573
574 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
575 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
576 (target_remove_watchpoint): Delete macro.
577 (target_insert_watchpoint): Delete macro.
578 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
579 (remote_mips_stopped_by_watchpoint): Delete declaration.
580 (remote_mips_remove_watchpoint): Delete declaration.
581 (remote_mips_set_watchpoint): Delete declaration.
582 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
583 * remote-mips.c (_initialize_remote_mips): Set
584 "to_insert_watchpoint", "to_stopped_by_watchpoint",
585 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
586 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
587 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
588 (mips_stopped_by_watchpoint): Rename
589 remote_mips_stopped_by_watchpoint.
590 (mips_can_hardware_watchpoint): Rename
591 remote_mips_can_use_hardware_watchpoint, update function
592 signature.
593
7bace51b
MK
5942003-08-29 Mark Kettenis <kettenis@gnu.org>
595
b0f5c6f2
MK
596 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
597 USER_DS. We haven't given them a register number yet.
598
2a6d284d
MK
599 * amd64-nat.h: New file.
600 * amd64-nat.c: New file.
601 * amd64fbsd-nat.c: Include "amd64-nat.h".
602 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
603 (amd64fbsd32_r_reg_offset): New variable.
604 (supply_gregset): Simply call amd64_supply_native_gregset.
605 (fill_gregset): Rename `regno' to `regnum'. Simply call
606 amd64_collect_native_gregset.
607 (fill_fpregset): Rename `regno' to `regnum'.
608 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
609 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
610 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
611 `fpregset_t'. Call amd64_supply_native_gregset instead of
612 supply_gregset. Call x86_64_supply_fxsave instead of
613 supply_fpregset.
614 (store_inferior_registers): Rename `regno' to `regnum'. Replace
615 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
616 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
617 `fpregset_t'. Call amd64_collect_native_gregset instead of
618 fill_gregset. Call x86_64_collect_fxsave instead of
619 fill_fpregset.
620 (_initialize_am64fbsd_nat): Initialize
621 amd64_native_gregset32_reg_offset and
622 amd64_native_gregset64_reg_offset.
623 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
624
a16d75cc
MK
625 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
626 null pointer. Fix typo in comment.
627
7bace51b
MK
628 * regcache.c (supply_register): Reimplement to call
629 regcache_raw_supply.
630 (regcache_collect): Reimplement by calling regcache_raw_collect.
631
9a661b68
MK
6322003-08-28 Mark Kettenis <kettenis@gnu.org>
633
634 * regcache.c (register_buffer): Consitify first argument.
635 (regcache_raw_supply, regcache_raw_collect): New
636 functions.
637
e94cc8fa
DJ
6382003-08-28 Daniel Jacobowitz <drow@mvista.com>
639
640 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
641 by Nathan J. Williams.
642
c64bd0ce
DJ
6432003-08-28 Daniel Jacobowitz <drow@mvista.com>
644
645 * lin-lwp.c (wait_lwp): New function, copied from
646 stop_wait_callback. Clean up.
647 (stop_wait_callback): Use wait_lwp.
648
e5ab0dce
AC
6492003-08-28 Andrew Cagney <cagney@redhat.com>
650
651 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
652 flavour and disassembler options.
653 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
654 (mips_gdbarch_init): Set "print_insn". Delete initialization of
655 deprecated_tm_print_insn_info.
656
a788de9b
AC
6572003-08-27 Andrew Cagney <cagney@redhat.com>
658
659 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
660 Use target_read_memory.
661 (s390_get_frame_info): Update. Do not reference
662 deprecated_tm_print_insn_info.
663 (s390_check_function_end, s390_is_sigreturn): Ditto.
664
36482093
AC
6652003-08-27 Andrew Cagney <cagney@redhat.com>
666
667 * Makefile.in (cris-tdep.o): Update dependencies.
668 * cris-tdep.c: Include "gdb_assert.h".
669 (cris_gdbarch_init): Set print_insn.
670 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
671 (cris_delayed_get_disassembler): Simplify, directly call the
672 disassembler returned by cris_get_disassembler.
673 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
674 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
675 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
676 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
677 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
678 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
679 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
680 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
681 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
682 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
683 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
684 (gdb_print_insn_sparc): Delete function.
685 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
686 deprecated_tm_print_insn_info.
687 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
688 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
689 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
691 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
692 * s390-tdep.c (gdb_print_insn_s390): Delete function.
693 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
694 (s390_gdbarch_init): Set print_insn.
695
0285512f
AC
6962003-08-27 Andrew Cagney <cagney@redhat.com>
697
698 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
699 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
700 * infcall.c (call_function_by_hand): Convert the entry point
701 address into a code address.
702
cdcd5552
AC
7032003-08-27 Andrew Cagney <cagney@redhat.com>
704
705 * dsrec.c: Include "gdb_string.h".
706 * Makefile.in (dsrec.o): Update dependencies.
707
e85cddad
MC
7082003-08-27 Michael Chastain <mec@shout.net>
709
710 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
711
8bbfbb23
AC
7122003-08-27 Andrew Cagney <cagney@redhat.com>
713
714 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
715 (alpha_osf1_init_abi): Do not set call_dummy_address.
716
ba058b66
DC
7172003-08-27 David Carlton <carlton@kealia.com>
718
719 From Randolph Chung <tausq@debian.org>:
720 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
721 compiles with -Wformat-nonliteral -Werror.
722
87f84c9d
JB
7232003-08-26 Jim Blandy <jimb@redhat.com>
724
725 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
726 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
727 bfd_lookup_symbol, since we only want symbols in code sections.
728 (look_for_base): Pass zero as the SECT_FLAGS argument to
729 bfd_lookup_symbol, since we're not concerned about which section
730 the symbol is in.
731
102d615a
JJ
7322003-08-26 Jeff Johnston <jjohnstn@redhat.com>
733
734 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
735 we are frameless or the return address register is already known.
736
cc7ad3ea
AC
7372003-08-26 Andrew Cagney <cagney@redhat.com>
738
739 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
740 in size. Add comments.
741
af8b88dd
JJ
7422003-08-26 Jeff Johnston <jjohnstn@redhat.com>
743
744 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
745 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
746
e0a4f5a1
JM
7472003-08-26 Jason Merrill <jason@redhat.com>
748
749 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
750 case out of #ifdef MIPS block.
751
4ae9ee8e
DJ
7522003-08-25 Daniel Jacobowitz <drow@mvista.com>
753
754 PR java/1322
755 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
756 available before calling SECT_OFF_TEXT.
3c164570 757 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 758
004d836a
JJ
7592003-08-25 Jeff Johnston <jjohnstn@redhat.com>
760
761 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
762 bof, and nat0-nat127 as pseudo-registers.
763 (ia64_frame_cache): New struct used to cache frame info.
764 (ia64_register_reggroup_p): New routine used to override default
765 register grouping so registers without names are still saved and
766 restored.
767 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
768 pseudo values.
769 (ia64_pseudo_register_read): New routine to read pseudo-registers.
770 (ia64_pseudo_register_write): New routine to write pseudo-registers.
771 (ia64_alloc_frame_cache): New routine to create a new
772 ia64_frame_cache.
773 (examine_prologue): Change prototype to add next_frame pointer.
774 Assume frameless until otherwise proven. Verify that the cfm for
775 current frame matches the cfm that should occur for the prologues
776 alloc insn and if equal, mark as not frameless. At end of routine,
777 if not frameless, calculate registers for the previous frame and store
778 in the cache, if a cache is provided.
779 (ia64_skip_prologue): Use new prototype when calling examine_prologue
780 and pass 0 for next_frame.
781 (ia64_store_return_value): Change to use convert_typed_floating()
782 instead of calling ia64_convert_to_raw().
783 (ia64_extract_return_value): Change to use convert_typed_floating()
784 instead of calling ia64_convert_to_virtual().
785 (ia64_frame_cache): New routine to support new frame model.
786 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
787 (ia64_frame_sniffer): Ditto.
788 (ia64_sigtramp_frame_init_saved_regs): Ditto.
789 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
790 (ia64_sigtramp_frame_prev_register): Ditto.
791 (ia64_sigtramp_frame_sniffer): Ditto.
792 (ia64_frame_base_address): Ditto.
793 (ia64_extract_struct_value_address): Change to issue error message.
794 (ia64_frame_align): New routine to align sp.
795 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
796 (ia64_push_arguments): Removed. Logic moved to
797 ia64_push_dummy_call().
798 (ia64_push_return_address): Ditto.
799 (ia64_unwind_dummy_id): New function.
800 (ia64_unwind_pc): Ditto.
801 (ia64_convert_register_p): Ditto.
802 (ia64_register_to_value): Ditto.
803 (ia64_value_to_register): Ditto.
804 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
805 (ia64_register_byte, ia64_register_raw_size): Ditto.
806 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
807 (ia64_saved_pc_after_call): Ditto.
808 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
809 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
810 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
811 (ia64_register_convert_to_raw): Ditto.
812 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
813 (ia64_init_extra_frame_info): Ditto.
814 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
815 (ia64_gdbarch_init): Remove registering of deprecated functions that
816 are no longer used. Add registration of new gdbarch functions.
817 Remove registering deprecated_write_sp. Replace
818 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
819 Delete set_gdbarch_deprecated_register_convertible(),
820 set_gdbarch_deprecated_register_convert_to_virtual(), and
821 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
822 set_gdbarch_deprecated_register_size(),
823 set_gdbarch_deprecated_register_bytes(),
824 set_gdbarch_pcregnum(),
825 set_gdbarch_deprecated_register_byte(),
826 set_gdbarch_deprecated_register_raw_size(),
827 set_gdbarch_deprecated_max_register_raw_size(),
828 set_gdbarch_deprecated_register_virtual_size(),
829 and set_gdbarch_deprecated_max_register_virtual_size() calls.
830 Replace set_gdbarch_deprecated_extract_return_value() with
831 set_gdbarch_extract_return_value(). Remove calls to:
832 set_gdbarch_deprecated_saved_pc_after_call();
833 set_gdbarch_deprecated_frame_chain(),
834 set_gdbarch_deprecated_frame_saved_pc(),
835 set_gdbarch_deprecated_frame_init_saved_regs(),
836 set_gdbarch_deprecated_get_saved_register(),
837 set_gdbarch_deprecated_call_dummy_words(),
838 set_gdbarch_deprecated_sizeof_call_dummy_words(),
839 set_gdbarch_deprecated_init_extra_frame_info(),
840 set_gdbarch_deprecated_frame_args_address(),
841 set_gdbarch_deprecated_frame_locals_address(),
842 and set_gdbarch_deprecated_dummy_write_sp().
843 Add set_gdbarch_convert_register_p(),
844 set_gdbarch_register_to_value(),
845 set_gdbarch_value_to_register(),
846 set_gdbarch_push_dummy_call(),
847 set_gdbarch_frame_align(),
848 set_gdbarch_unwind_dummy_id(),
849 set_gdbarch_unwind_pc(),
850 frame_unwind_append_sniffer(),
851 frame_unwind_append_sniffer(),
852 and frame_base_set_default().
853
aede7613
CD
8542003-08-25 Chris Demetriou <cgd@broadcom.com>
855
856 * configure.tgt: Document need for special "mipsisa64" handling.
857 (mipsisa64*-*-linux64): Handle as target linux64.
858 (mipsisa64*-*-*): Handle as target embed64.
859
43c3a82e
MC
8602003-08-18 Michael Chastain <mec@shout.net>
861
862 * PROBLEMS: Document pr gdb/1322, the Java anonymous
863 objfile bug.
864
6564f77d
MK
8652003-08-24 Mark Kettenis <kettenis@gnu.org>
866
2de139ba
MK
867 * i387-tdep.h: Update copyright date.
868 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
869
6564f77d
MK
870 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
871 CFLAGS games to reflect reality.
872
42cf1509
AC
8732003-08-24 Andrew Cagney <cagney@redhat.com>
874
875 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
876 GDB_MULTI_ARCH is always non-zero.
877 * osabi.c (_initialize_gdb_osabi): Ditto.
878 (gdbarch_init_osabi): Ditto.
879 * sparc-tdep.c: Ditto for #if code.
880
0485f6ad
MK
8812003-08-23 Mark Kettenis <kettenis@gnu.org>
882
883 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
884 Update comments.
885 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
886 comments.
887 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
888 x86_64_supply_fxsave.
889 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
890 x86_64_supply_fxsave.
891 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
892 x86_64_supply_fxsave.
893
c7716133
AJ
8942003-08-23 Andreas Jaeger <aj@suse.de>
895
896 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
897 i387_supply_fxsave.
898
ed504bdf
MK
8992003-08-23 Mark Kettenis <kettenis@gnu.org>
900
901 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
902 i387_supply_register.
903 (go32_fetch_registers): Adjust call to i387_supply_fsave.
904 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
905 i387_supply_fsave.
906 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
907 i387_supply_fxsave.
908 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
909 i387_supply_fsave.
910 * i386bsd-nat.c (supply_fpregset): Adjust call to
911 i387_supply_fsave.
912 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
913 call to i387_supply_fxsave. Call i387_supply_fsave instead of
914 supply_fpregset.
915 (store_inferior_registers): Remove extraneous whitespace. Call
916 i387_fill_fsave instead of fill_fpregset.
917 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
918 (supply_fpregset): Likewise.
919 * i386v4-nat.c (supply_fpregset): Adjust call to
920 i387_supply_fsave.
921 * i386-interix-nat.c (supply_fpregset): Adjust call to
922 i387_supply_fsave.
923 * i386-linux-nat.c (supply_fpregset): Adjust call to
924 i387_supply_fsave.
925 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
926 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
927 i387supply_fsave and i387_supply_fxsave.
928 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
929 Incorporate code from `i387_supply_register.
930 (i387_supply_register): Remove.
931 (i387_supply_fxsave): Add `regnum' argument.
932 Update comments.
933 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
934 prototype.
935 (i387_supply_register): remove prototype.
936 Update comments.
937
4be5d520
MC
9382003-08-22 Michael Chastain <mec@shout.net>
939
940 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
941 Add lines for files in gdb/testsuite/gdb.cp/* that are
942 still not 8.3 unique.
943
7ed85d26
DJ
9442003-08-22 Daniel Jacobowitz <drow@mvista.com>
945
946 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
947 TYPE_VPTR_FIELDNO is valid.
948
eb0d3137
MK
9492003-08-19 Mark Kettenis <kettenis@gnu.org>
950
951 * utils.c (set_width_command): Remove prototypes.
952 (set_screen_size): New prototype.
953 (init_page_info): Simplify by fetching the screen size from
954 Readline. Call set_screen_size.
955 (set_screen_size): New function.
956 (set_width): Add missing whitespace in comment.
957 (set_width_command): Call set_screen_size.
958 (set_height_command): New function.
959 (initialize_utils): Fix formatting. Make "set height" command
960 call set_height_command. Remove redundant code that turns off
961 pagination if output isn't a terminal. Remove redundant call to
962 set_width_command.
963
7e6d0ac8
MK
9642003-08-22 Mark Kettenis <kettenis@gnu.org>
965
3567a8ea
MK
966 * sparc64-tdep.h (sparc64_regnum): Fix comment.
967 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
968 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
969 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
970 `case' keyword.
971 (sparc64_register_info): Give the reister with number
972 SPARC64_STATE_REGNUM a name.
973 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
974 %asi and %ccr.
975 (sparc64_push_dummy_call): Take BIAS into account when checking
976 stcak alignment.
977 (sparc_software_single_step): Remove assertions that check whether
978 NPC and NNPC were zero.
979 (sparc_supply_rwindow): Make public. Merge functionality with
980 sparc64_supply_rwindow.
981 (sparc_fill_rwindow): Make public. Merge functionality with
982 sparc64_fill_rwindow.
983 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
984 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
985 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
986 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
987 sparc_supply_rwindow instead of sparc64_supply_rwindow.
988
7e6d0ac8
MK
989 * reggroups.c: Add whitespace after declarations of local
990 variables in functions.
991
72e5f484
MC
9922003-08-21 Michael Chastain <mec@shout.net>
993
994 * gdbtypes.h: Change array bound type from an int to enum.
995
435ac228
AC
9962003-08-21 Andrew Cagney <cagney@redhat.com>
997
998 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
999 * config/sparc/tm-sparc.h: Ditto.
1000 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1001 unconditionally.
1002 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1003
0d0e1a63
MK
10042003-07-13 Mark Kettenis <kettenis@gnu.org>
1005
1006 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1007 (register_objfile_data, set_objfile_data, objfile_data): New
1008 prototypes.
1009 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1010 prototypes.
1011 (allocate_objfile): Call objfile_alloc_data.
1012 (free_objfile): Call objfile_free_data.
1013 (struct objfile_data): New.
1014 (struct objfile_data_registration): New.
1015 (struct objfile_data_registry): New.
1016 (objfile_data_registry): New variable.
1017 (register_objfile_data): New function.
1018 (objfile_alloc_data, objfile_free_data): New functions.
1019 (set_objfile_data, objfile_data): New functions.
1020 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1021 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1022 (_initialize_dwarf2_frame): New function and prototype.
1023
d90cf509
AC
10242003-08-21 Andrew Cagney <cagney@redhat.com>
1025
1026 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1027 a specific architecture.
1028 * arch-utils.h (set_architecture_from_arch_mach): Delete
1029 declaration.
1030 (target_architecture_hook): Delete declaration.
1031 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1032 (default_float_format): Assume GDB_MULTI_ARCH.
1033 (default_double_format): Assume GDB_MULTI_ARCH.
1034 (set_endian_from_file): Delete function.
1035 (arch_ok): Delete function.
1036 (set_arch): Delete function.
1037 (set_architecture_from_arch_mach): Delete function.
1038 (set_architecture_from_file): Delete function.
1039 (set_architecture): Assume GDB_MULTI_ARCH.
1040 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1041
8b39fe56
MK
10422003-08-21 Mark Kettenis <kettenis@gnu.org>
1043
1044 Rewrite FreeBSD/sparc64 native configuration.
1045 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1046 * sparc64fbsd-nat.c: New file.
1047 * sparc64fbsd-tdep.c: New file.
1048 * sparc64-tdep.c sparc64-tdep.h: New files.
1049 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1050 sparc64fbsd-tdep.o): New dependencies.
1051 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1052 and sparc64fbsd-tdep.c.
1053 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1054 * config/sparc/fbsd.mh: Remove copyright notice.
1055 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1056 sparcbsd-nat.o.
1057 * config/sparc/fbsd.mt: Remove copyright notice.
1058 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1059 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1060 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1061 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1062 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1063 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1064 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1065 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1066 "sparc/tm-sp64.h".
1067 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1068 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1069
a7f19c79
MC
10702003-08-21 Michael Chastain <mec@shout.net>
1071
1072 * symtab.h: Add doco on the space critical structures and
1073 some measurements of space usage.
1074
da08ea5b
MS
10752003-08-21 Michael Snyder <msnyder@redhat.com>
1076
1077 * tracepoint.c (trace_dump_command): Trace break address
1078 is subject to DECR_PC_AFTER_BREAK.
1079 (set_traceframe_context): Make "trace_line" an int.
1080 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1081
6df2bf50
MS
10822003-08-20 Michael Snyder <msnyder@redhat.com>
1083
1084 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1085 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1086 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1087 argument passing.
1088 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1089 functions, replace sh_push_dummy_call.
1090 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1091
0955bbf0
MC
10922003-08-20 Michael Chastain <mec@shout.net>
1093
1094 * gdbtypes.h (struct main_type): Rearrange to save space.
1095
260a4188
MS
10962003-08-20 Michael Snyder <msnyder@redhat.com>
1097
1098 * trad-frame.c: Comment typo fix.
1099
8baa6f92
KB
11002003-08-20 Michael Snyder <msnyder@redhat.com>
1101 Kevin Buettner <kevinb@redhat.com>
1102
1103 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1104 (frv_frame_init_saved_regs): Add declaration.
1105 (frame_extra_info): Add new field ``saved_regs''.
1106 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1107 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1108 Update frame related code.
1109 (frv_extract_struct_value_address): Adjust formatting.
1110 * Makefile.in (frv-tdep.o): Update dependencies.
1111 * config/frv/tm-frv.h (target_insert_watchpoint)
1112 (target_remove_watchpoint, target_insert_hw_breakpoint)
1113 (target_remove_hw_breakpoint): Delete these macros.
1114 (remote_insert_watchpoint, remote_remove_watchpoint)
1115 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1116 these declarations.
1117
87193939
MC
11182003-08-20 Michael Chastain <mec@shout.net>
1119
1120 * defs.h (ENUM_BITFIELD): New macro.
1121 * symtab.h (ENUM_BITFIELD): Use it.
1122 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1123
062103ba
SA
11242003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1125
1126 * MAINTAINERS (write after approval): Add myself.
1127
8b148df9
AC
11282003-08-18 Andrew Cagney <cagney@redhat.com>
1129
1130 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1131 * gdbarch.h, gdbarch.c: Re-generate.
1132 * infcall.c (call_function_by_hand): Adjust the SP by
1133 frame_red_zone_size before allocating any stack space.
1134 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1135 * x86-64-tdep.c (x86_64_frame_align): New function.
1136 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1137
1138 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1139 Remove code adjusting SP so that it skips over the Red Zone.
1140
954a4db8
MK
11412003-08-18 Mark Kettenis <kettenis@gnu.org>
1142
1143 * NEWS (New native configurations): Mention FreeBSD/amd64.
1144
1a241548
AC
11452003-08-18 Andrew Cagney <cagney@redhat.com>
1146
1147 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1148 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1149 "m68k_frame_p".
1150 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1151
f82b2acd
MK
11522003-08-18 Mark Kettenis <kettenis@gnu.org>
1153
1154 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1155
4056d258
ML
11562003-08-18 Michal Ludvig <mludvig@suse.cz>
1157
1158 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1159 Define.
1160 * i386-linux-nat.c: Include "linux-nat.h".
1161 (child_post_startup_inferior): New function.
1162
99ab4326
MK
11632003-08-18 Mark Kettenis <kettenis@gnu.org>
1164
1165 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1166 at the start of a frameless function. This probably fixes PR
1167 backtrace/1338.
1168
c8d5f0d6
MC
11692003-08-17 Michael Chastain <mec@shout.net>
1170
1171 * symfile.c (find_sym_fns): Remove special case for apollo target.
1172
9016a515
DJ
11732003-08-17 Daniel Jacobowitz <drow@mvista.com>
1174
1175 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1176 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1177 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1178 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1179 (linux_supports_tracevforkdone): New function.
1180 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1181 TRACEVFORKDONE.
1182 (child_follow_fork): Handle vfork.
1183 (linux_handle_extended_wait): Likewise. Also handle exec.
1184 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1185 * NEWS: Mention fork tracing.
1186
c538c11c
DJ
11872003-08-17 Daniel Jacobowitz <drow@mvista.com>
1188
1189 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1190
4de4c07c
DJ
11912003-08-17 Daniel Jacobowitz <drow@mvista.com>
1192
1193 * Makefile.in (i386-linux-nat.o): Update dependencies.
1194 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1195 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1196 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1197 * i386-linux-nat.c: Include "linux-nat.h".
1198 (child_post_startup_inferior): New function.
1199 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1200 * infptrace.c (kill_inferior): Wrap in #ifdef.
1201 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1202 attaching to each LWP.
1203 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1204 (init_lin_lwp_ops): Fill in some more operations.
1205 * linux-nat.h (linux_enable_event_reporting)
1206 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1207 prototypes.
1208 * linux-nat.c (linux_enable_event_reporting): New function.
1209 (child_post_attach, linux_child_post_startup_inferior)
1210 (child_post_startup_inferior, child_follow_fork)
1211 (linux_handle_extended_wait, kill_inferior): New functions.
1212
7996bcec
AC
12132003-08-16 Andrew Cagney <cagney@redhat.com>
1214
1215 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1216 * gdbarch.h, gdbarch.c: Re-generate.
1217
3d48a7a0
MK
12182003-08-16 Mark Kettenis <kettenis@gnu.org>
1219
1220 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1221
7989c619
AC
12222003-08-16 Andrew Cagney <cagney@redhat.com>
1223
1224 * NEWS: Mention that "set prompt-escape-char" was deleted.
1225 * top.c (get_prompt_1): Delete function.
1226 (gdb_prompt_escape):
1227 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1228 prompt-escape-char" command.
1229 (MAX_PROMPT_SIZE): Delete macro.
1230 (get_prompt): Simplify, do not call get_prompt_1.
1231
07978cd8
AC
12322003-08-16 Andrew Cagney <cagney@redhat.com>
1233
1234 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1235 -Werror. -Wformat-nonliteral problems.
1236
3ff7cf9e
JB
12372003-08-15 J. Brobecker <brobecker@gnat.com>
1238
1239 Further multiarching work mostly for hppa64-*-hpux11:
1240 * hppa-tdep.h: New file.
1241 * hppa-tdep.c: #include hppa-tdep.c.
1242 (hppa32_num_regs): Renamed from hppa_num_regs.
1243 (hppa64_num_regs): New constant.
1244 (hppa64_call_dummy_breakpoint_offset): New constant.
1245 (hppa32_call_dummy_length): New constant.
1246 (hppa64_call_dummy_length): New constant.
1247 (hppa32_stack_align): Make name 32bit explicit.
1248 (hppa32_register_virtual_type): Likewise.
1249 (hppa32_extract_return_value): Likewise.
1250 (hppa32_use_struct_convention): Likewise.
1251 (hppa32_store_return_value): Likewise.
1252 (hppa64_register_virtual_type): New function.
1253 (hppa64_extract_return_value): New function.
1254 (hppa64_use_struct_convention): New function.
1255 (hppa64_store_return_value): New function.
1256 (hppa_frame_locals_address): Remove declaration, function does
1257 not exist anymore.
1258 (hppa_register_byte): Add support for PA64 ABI.
1259 (hppa_gdbarch_init): Add support for PA64 ABI.
1260 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1261 Make name 32bit explicit.
1262 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1263 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1264 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1265 (hppa64_hpux_frame_base_before_sigtramp): New function.
1266 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1267 * config/pa/tm-hppa64.h: Remove macros that are no longer
1268 necessary now that the gdbarch vector is properly setup.
1269 Transform some macros into function calls. Some minor cleanup.
1270 * config/pa/tm-hppah.h: Update function calls in macros
1271 following the function renaming in hppa-hpux-tdep.c.
1272 * Makefile.in (hppa_tdep_h): New variable.
1273 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1274
5d05ca6d
MS
12752003-08-14 Michael Snyder <msnyder@redhat.com>
1276
1277 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1278
37ba2569
JB
12792003-08-13 J. Brobecker <brobecker@gnat.com>
1280
1281 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1282 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1283 routine.
1284
aed7f26a
MS
12852003-08-13 Michael Snyder <msnyder@redhat.com>
1286
1287 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1288 (frv_saved_pc_after_call): Use deprecated ftype.
1289 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1290 (frv_remote_translate_xfer_address): Remove.
1291 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1292
752d4ac1
JB
12932003-08-13 J. Brobecker <brobecker@gnat.com>
1294
1295 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1296 initialization after the common gdbarch initialization, not before.
1297
1426ac1d
JB
12982003-08-13 J. Brobecker <brobecker@gnat.com>
1299
1300 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1301 (ADDR_BITS_REMOVE): Remove, redundant.
1302
b6fbdd1d
JB
13032003-08-13 J. Brobecker <brobecker@gnat.com>
1304
1305 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1306 gdbarch method to clear the 2 low bits of text addresses.
1307
44160db3
AC
13082003-08-12 Andrew Cagney <cagney@redhat.com>
1309
1310 * Makefile.in (dsrec.o): Update dependencies.
1311 * dsrec.c: Include "gdb_assert.h".
1312 (make_srec): Use snprintf instead of sprintf, use a literal format
1313 string.
1314
bcf7d3ca
AC
13152003-08-12 Andrew Cagney <cagney@redhat.com>
1316
1317 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1318 FRAME_OBSTACK_ZALLOC.
1319
49ed40de
KB
13202003-08-12 Kevin Buettner <kevinb@redhat.com>
1321
1322 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1323 SSE registers.
1324
b246147c
MK
13252003-08-10 Mark Kettenis <kettenis@gnu.org>
1326
1327 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1328 amd64fbsd_sc_reg_offset): Add extern declarations.
1329 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1330 declarations.
1331
d95fdc0d
BE
13322003-08-11 Ben Elliston <bje@wasabisystems.com>
1333
1334 * MAINTAINERS (write after approval): Update my mail address.
1335
cf6a0e73
AC
13362003-08-10 Andrew Cagney <cagney@redhat.com>
1337
1338 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1339
f837910f
MK
13402003-08-10 Mark Kettenis <kettenis@gnu.org>
1341
e2dbbd2d
MK
1342 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1343 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1344 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1345 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1346 i386bsd_sc_reg_offset): Add extern declarations.
1347 * i386obsd-nat.c: Include "i386-tdep.h"
1348 (_initialize_i386obsd_nat): Remove extern declarations.
1349 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1350 declarations.
1351 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1352 declarations.
1353
f837910f
MK
1354 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1355 instead of frame_read_register.
1356 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1357 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1358 SP_REGNUM.
1359 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1360 instead of frame_unwind_unsigned_register. Use
1361 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1362 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1363 instead of read_register. Use builtin_type_void_data_ptr instead
1364 of builtin_type_void_func_ptr when extracting the address of the
1365 jmp_buf.
1366 (i386_extract_return_value, i386_store_return_value,
1367 i386_pseudo_register_read, i386_pseudo_register_write): Use
1368 register_size instead REGISTER_RAW_SIZE.
1369
edcf254d
AC
13702003-08-10 Andrew Cagney <cagney@redhat.com>
1371
1372 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1373 sprintf. Make "name" constant.
1374
26604a34
MK
13752003-08-10 Mark Kettenis <kettenis@gnu.org>
1376
192285c6
MK
1377 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1378 instead of frame_read_register.
f837910f
MK
1379 (i387_print_float_info): Use get_frame_register and
1380 get_frame_register_unsigned instead of frame_register_read.
192285c6 1381
f0925262
MK
1382 * i386fbsd-nat.c: Include "i386-tdep.h".
1383 (child_resume): Make `eflags' an ULONGEST. Use
1384 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1385 instead of register_read and register_write.
1386
a144416f
MK
1387 * i386bsd-nat.c (fetch_inferior_registers,
1388 store_inferior_registers): Don't use && at the end of a line.
1389 (_initialize_i386bsd_nat): Fix typo.
1390
fec74868
MK
1391 * frame.c (_initialize_frame): Add missing backslash.
1392
87232496
MK
1393 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1394 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1395 and supply_register instead of manipulating the register buffer
1396 directly.
1397
c9b9de0b
MK
1398 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1399 * config/i386/nm-i386sol2.h
1400 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1401
26604a34
MK
1402 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1403 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1404 instructions that GCC likes to mingle into the prologue. Fixes
1405 gdb/1253 and gdb/1255.
1406
25d29d70
AC
14072003-08-09 Andrew Cagney <cagney@redhat.com>
1408
1409 Fix GDB PR cli/926.
1410 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1411 * command.h (add_setshow_uinteger_cmd): Declare.
1412 * frame.c (set_backtrace_cmd): New function.
1413 (show_backtrace_cmd): New function.
1414 * frame.c (_initialize_frame): Replace "set/show
1415 backtrace-below-main" with "set/show backtrace past-main". Add
1416 command "set/show backtrace limit".
1417 (backtrace_past_main): Rename "backtrace_below_main".
1418 (backtrace_limit): New variable.
1419 (get_prev_frame): Update. Check the backtrace_limit.
1420
9ebf4acf
AC
14212003-08-09 Andrew Cagney <cagney@redhat.com>
1422
1423 * defs.h (xstrprintf): Declare.
1424 * utils.c (xstrprintf): New function.
1425 * breakpoint.c (insert_breakpoints): Replace sprintf and
1426 non-literal format strings, with xstrprintf and cleanups.
1427 (delete_breakpoint,breakpoint_re_set): Ditto.
1428 (commands_command, insert_breakpoints): Ditto.
1429 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1430 (break_at_finish_command_1): Ditto.
1431
3771659b
AC
14322003-08-09 Andrew Cagney <cagney@redhat.com>
1433
1434 * MAINTAINERS (language support): List Adam Fedor as Objective C
1435 maintainer.
1436
b4263afa
JB
14372003-08-08 J. Brobecker <brobecker@gnat.com>
1438
1439 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1440 are now multiarched.
1441
d84defb1
JB
14422003-08-08 J. Brobecker <brobecker@gnat.com>
1443
1444 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1445 longer necessary now that hppa64 is partially multiarch'ed.
1446
f786f615
AC
14472003-08-08 Andrew Cagney <cagney@redhat.com>
1448
1449 * interps.c (interp_set): Check for a NULL "old_interp".
1450
c938e9b0
L
14512003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1452
1453 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1454 (install-only): Support DESTDIR.
1455 (uninstall): Likewise.
1456 (install-gdbtk): Likewise.
1457
9a146a11
EZ
14582003-08-08 Elena Zannoni <ezannoni@redhat.com>
1459
1460 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1461 contains something meaningful at all times.
1462
1463Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1464
62599e99 1465 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1466
56296155
BC
1467Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1468
62599e99 1469 * MAINTAINERS (write after approval): Added self.
56296155 1470
9710e734
AC
14712003-08-07 Andrew Cagney <cagney@redhat.com>
1472
1473 * inferior.h (AT_SYMBOL): Define.
1474 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1475 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1476 * mips-tdep.c (mips_call_dummy_address): Delete function.
1477 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1478 set call_dummy_address.
1479
98b3ab73
AC
14802003-08-07 Andrew Cagney <cagney@redhat.com>
1481
1482 * language.c (op_error): Delete function.
1483 (binop_type_check): Delete function.
1484 * language.h (type_op_error, range_op_error): Delete macros.
1485 (op_error): Delete declaration.
1486
2fcf52f0
AC
14872003-08-07 Andrew Cagney <cagney@redhat.com>
1488
1489 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1490
abd4220e 14912003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1492
abd4220e 1493 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1494 (x86_64_push_arguments): Skip the red zone.
abd4220e 1495
9dd5f34f
AC
14962003-08-05 Andrew Cagney <cagney@redhat.com>
1497
1498 * reggroups.c (reggroup_next): Check for the final entry.
1499
e5e78edc
AC
15002003-08-04 Andrew Cagney <cagney@redhat.com>
1501
ab4e3d93
AC
1502 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1503 * cli/cli-script.c (define_command): Call query directly, instead
1504 of passing it a buffer.
1505 * ocd.c (ocd_error): Pass error a constant format string.
1506 * remote-mips.c (mips_error): Use fputs_filtered.
1507
1062ca82
AC
1508 * solib-svr4.c (_initialize_svr4_solib): Update
1509 register_gdbarch_data call.
1510 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1511
fcc1c85c
AC
1512 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1513 (register_gdbarch_data): Delete "free" parameter. Update
1514 comments.
1515 * gdbarch.h, gdbarch.c: Re-generate.
1516 * reggroups.c (_initialize_reggroup): Update.
1517 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1518 * frame-base.c (_initialize_frame_base): Update.
1519 * frame-unwind.c (_initialize_frame_unwind): Update.
1520 * user-regs.c (_initialize_user_regs): Update.
1521 * remote.c (_initialize_remote): Update.
1522 * regcache.c (_initialize_regcache): Update.
1523
116f06ea
AC
1524 * regcache.c (xfree_regcache_descr): Delete function.
1525 (_initialize_regcache): Update call to register_gdbarch_data.
1526 (init_regcache_descr, init_legacy_regcache_descr): Use
1527 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1528
e5e78edc
AC
1529 * remote.c (free_remote_state): Delete function.
1530 (_initialize_remote): Update register_gdbarch_data.
1531 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1532 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1533
6c7d17ba
AC
15342003-08-04 Andrew Cagney <cagney@redhat.com>
1535
1536 * reggroups.c (struct reggroup_el): Define.
1537 (struct reggroups): Delete field "nr_group". Replace array
1538 "group" with a "first" to "last" linked list.
1539 (reggroups_init): Update. Allocate using gdbarch's obstack.
1540 (reggroups_free): Delete function.
1541 (add_group): Update. Add "el" parameter.
1542 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1543 (default_groups): Update.
1544 (reggroup_next): Replace reggroups.
1545 (reggroups_dump): Update.
1546 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1547 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1548 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1549
89b7795b
DJ
15502003-08-04 Daniel Jacobowitz <drow@mvista.com>
1551
1552 * Makefile.in (tui-interp.o): Update dependencies.
1553
306d9ac5
DC
15542003-08-04 David Carlton <carlton@kealia.com>
1555
1556 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1557 to internal_error call.
1558 * source.c (forward_search_command): Add "%s" format argument.
1559 (reverse_search_command): Ditto.
1560 * top.c (quit_confirm): Ditto.
1561 * cli/cli-setshow.c (do_setshow_command): Ditto.
1562 * cp-valprint.c (cp_print_class_method): Replace
1563 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1564 (cp_print_class_member): Ditto.
1565 * event-top.c (command_line_handler): Ditto.
1566 * linux-proc.c (linux_info_proc_cmd): Ditto.
1567 * p-typeprint.c (pascal_type_print_base): Ditto.
1568 * p-valprint.c (pascal_object_print_class_method): Ditto.
1569 (pascal_object_print_class_member): Ditto.
1570 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1571 * remote.c (remote_cisco_section_offsets): Ditto.
1572 * top.c (command_line_input): Ditto.
1573 * utils.c (vwarning,error_stream,quit): Ditto.
1574 * valprint.c (print_floating,print_binary_chars)
1575 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1576
57bfe177
AC
15772003-08-04 Andrew Cagney <cagney@redhat.com>
1578
1579 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1580
e546b999
AC
15812003-08-02 Andrew Cagney <cagney@redhat.com>
1582
1583 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1584 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1585 amd64fbsd-nat.c.
1586
91092ee5
AC
15872003-08-02 Andrew Cagney <cagney@redhat.com>
1588
1589 * Makefile.in: Update all dependencies and definitions.
1590
889f28e2
AF
15912003-08-02 Adam Fedor <fedor@gnu.org>
1592
1593 * linespec.c (is_objc_method_format): New function
1594 (decode_line_1, locate_first_half): Use it.
1595 Fixes PR objc/1298
1596
880bc914
AC
15972003-08-01 Andrew Cagney <cagney@redhat.com>
1598
1599 * NEWS: Mention that m32r is multi-arch.
1600 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1601 * configure.tgt: Recognize m32r-*-*.
1602 * config/m32r/tm-m32r.h: Delete file.
1603 * config/m32r/m32r.mt: New file.
1604 * m32r-rom.c (m32r_upload_command): Use hostent only when
1605 gethostname succeeds, in order to avoid a compilation
1606 warning.
1607 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1608 compiler warning.
1609
19f59343
MS
16102003-08-01 Michael Snyder <msnyder@redhat.com>
1611
1612 * sh-tdep.c (sh_frame_align): New gdbarch method.
1613 (sh_gdbarch_init): Set up frame_align method.
1614
4e7d7511
MS
16152003-07-31 Michael Snyder <msnyder@redhat.com>
1616
1617 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1618 which is already covered by the new frames infrastructure.
1619
63022984
AC
16202003-07-31 Andrew Cagney <cagney@redhat.com>
1621
1622 * user-regs.c (struct user_reg): Add "next" link.
1623 (struct user_regs): Replace "user" with "first" and "last" links.
1624 (append_user_reg): Add pre-allocated "reg" parameter.
1625 (builtin_user_regs): Provide initial value for "last".
1626 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1627 (user_regs_init): Allocate memory from the gdbarch obstack.
1628 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1629 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1630 linked list.
1631 (usernum_to_user_reg): New function.
1632 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1633 (value_of_user_reg): Use usernum_to_user_reg.
1634 (user_regs_free): Delete function.
1635 (_initialize_user_regs): Update register_gdbarch_data call.
1636
7cf6e574
DJ
16372003-07-31 Daniel Jacobowitz <drow@mvista.com>
1638
1639 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1640
c48a845b
MS
16412003-07-30 Michael Snyder <msnyder@redhat.com>
1642
4e7d7511 1643 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1644 * infcall.c (call_function_by_hand): Pass struct_addr to
1645 value_being_returned.
1646 * infcmd.c (print_return_value): Pass zero as struct_addr.
1647 * values.c (value_being_returned): If struct_addr is passed,
1648 use it instead of trying to recover it from the inferior.
1649
f0d8db19
KB
16502003-07-30 Kevin Buettner <kevinb@redhat.com>
1651
1652 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1653 the prologue analyzer won't need to attempt to extract the pc
1654 value from the woefully incomplete dummy frame.
1655 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1656 possible. Disable code which modifies the frame.
1657
e5c113a1
AC
16582003-07-28 Andrew Cagney <cagney@redhat.com>
1659
1660 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1661 to level 2.
1662 (annotate_breakpoints_table, annotate_record): Ditto.
1663 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1664 (annotate_field_name_end, annotate_field_value): Ditto.
1665 (annotate_field_end, annotate_frame_source_begin): Ditto.
1666 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1667 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1668 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1669 (annotate_frame_address_end, annotate_frame_address): Ditto.
1670 (annotate_frame_args, annotate_frame_end): Ditto.
1671 (annotate_frame_where, annotate_arg_begin): Ditto.
1672 (annotate_arg_name_end, annotate_arg_value): Ditto.
1673 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1674 (annotate_function_call, annotate_signal_name): Ditto.
1675 (annotate_signal_string, annotate_signal_name_end): Ditto.
1676 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1677 (annotate_value_begin, annotate_value_history_value): Ditto.
1678 (annotate_value_history_end, annotate_value_end): Ditto.
1679 (annotate_display_begin, annotate_display_number_end): Ditto.
1680 (annotate_display_format, annotate_display_expression): Ditto.
1681 (annotate_display_expression_end, annotate_display_value): Ditto.
1682 (annotate_display_end, annotate_array_section_begin): Ditto.
1683 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1684 (annotate_elt, annotate_array_section_end): Ditto.
1685
bb1db049
AC
16862003-07-28 Andrew Cagney <cagney@redhat.com>
1687
1688 * regcache.c (struct regcache_descr): Update comments on
1689 nr_raw_registers.
1690 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1691 sizeof_raw_register_valid_p.
1692 (init_regcache_descr): Set nr_raw_registers and
1693 sizeof_raw_register_valid_p before calling
1694 init_legacy_regcache_descr.
1695
20e6603c
AC
16962003-07-28 Andrew Cagney <cagney@redhat.com>
1697
1698 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1699 MOD NUM_REGS.
1700
db742940
DJ
17012003-07-28 Daniel Jacobowitz <drow@mvista.com>
1702
1703 * thread.c (info_threads_command): Use get_selected_frame ().
1704 Check that there is at least one non-sentinel frame.
1705
ce7f4371
SC
17062003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1707
1708 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1709 (m68hc11_pop_frame): Remove.
1710 (m68hc11_frame_saved_pc): Remove.
1711 (m68hc11_frame_chain): Remove.
1712 (m68hc11_frame_init_saved_regs): Remove.
1713 (m68hc11_init_extra_frame_info): Remove.
1714 (m68hc11_store_struct_return): Remove.
1715 (m68hc11_saved_pc_after_call): Remove.
1716
1ea653ae
SC
17172003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1718
1719 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1720 frame unwind information.
1721 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1722 and adapted for frame unwinding.
1723 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1724 (m68hc11_unwind_pc): New function.
1725 (m68hc11_frame_unwind_cache): New function to analyze frames.
1726 (m68hc11_frame_this_id): New function to create new frame struct.
1727 (m68hc11_frame_prev_register): New function to unwind a register from
1728 the frame.
1729 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1730 (m68hc11_frame_p): New function for the above.
1731 (m68hc11_frame_base_address): New function to return fp of frame.
1732 (m68hc11_frame_args_address): Update for frame.
1733 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1734 (m68hc11_unwind_sp): New function.
1735 (m68hc11_unwind_dummy_id): New function.
1736 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1737 calls.
1738
c8a7f6ac
SC
17392003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1740
1741 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1742 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1743 when we are beyond the current pc.
1744
3dc990bf
SC
17452003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1746
1747 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1748 from m68hc11_push_arguments.
1749 (m68hc11_push_arguments): Remove.
1750 (m68hc11_push_return_address): Remove.
1751 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1752 handlers; remove deprecated_extra_stack_alignment_needed.
1753
222e5d1d
AC
17542003-07-27 Andrew Cagney <cagney@redhat.com>
1755
1756 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1757 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1758 REAL_PC and not the pointer.
1759 * hppa-hpux-tdep.c: Include frame.h
1760
a7e9a47e
AC
17612003-07-27 Andrew Cagney <cagney@redhat.com>
1762
1763 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1764 GDB_MULTI_ACH_PARTIAL.
1765
7e3dd49e
AC
17662003-07-27 Andrew Cagney <cagney@redhat.com>
1767
1768 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1769 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1770 operator at start and not end of line.
1771 (decode_prologue): Ditto.
1772 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1773 frame_unwind_register_unsigned instead of
1774 frame_unwind_unsigned_register.
1775 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1776 read_register.
1777 (m32r_push_dummy_call): Use register_size instead of
1778 REGISTER_RAW_SIZE.
1779 (m32r_frame_sniffer): Replace m32r_frame_p.
1780 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1781 * m32r-rom.c (report_transfer_performance): Delete extern
1782 declaration.
1783 (m32r_load, m32r_upload_command): Use print_transfer_performance
1784 instead of report_transfer_performance.
1785 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1786 / add_show_from_set.
1787
0880807f
AC
17882003-07-26 Andrew Cagney <cagney@redhat.com>
1789
1790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1791 store_return_value and extract_struct_value_address.
1792
64ae9269
DJ
17932003-07-26 Daniel Jacobowitz <drow@mvista.com>
1794
1795 PR c++/1267
1796 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1797 NULL, default to the section containing PC.
1798
e286caf2
SC
17992003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1800
1801 * NEWS: Mention "regs" deprecated for m68hc11 too.
1802
1803 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1804 (m68hc11_print_register): New function to print out one register.
1805 (m68hc11_print_registers_info): New function to print registers.
1806 (show_regs): Deprecate and use the above.
1807 (m68hc11_gdbarch_init): Install the print_registers_info.
1808
705b278b
JJ
18092003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1810
1811 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1812 that we have a SIGTRAP before returning non-zero.
1813
63cd4198
EZ
18142003-07-23 Michal Ludvig <mludvig@suse.cz>
1815 Elena Zannoni <ezannoni@redhat.com>
1816
1817 * linespec.c (decode_line_2): Avoid crash if
1818 find_function_start_sal() returns empty record.
1819
6926787d
AS
18202003-07-23 Andreas Schwab <schwab@suse.de>
1821
1822 * ia64-tdep.c (ia64_print_insn): New function.
1823 (ia64_gdbarch_init): Set print_insn to it.
1824 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1825 deprecated_tm_print_insn_info.
1826
708cc1b6
MS
18272003-07-22 Michael Snyder <msnyder@redhat.com>
1828
1829 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1830 handle 8-bit returns (long long).
1831 (h8300h_extract_return_value): Ditto.
1832 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1833
aebd7893
AC
18342003-07-22 Andrew Cagney <cagney@redhat.com>
1835
1836 * gdbarch.c Include "gdb_obstack.h".
1837 (struct gdbarch): Add an "obstack".
1838 (alloc_gdbarch_data): Allocate the gdbarch data using
1839 GDBARCH_OBSTACK_CALLOC.
1840 (free_gdbarch_data): Delete function.
1841 (gdbarch_obstack_zalloc): New function.
1842 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1843 Assert that the architecture is not initialized.
1844 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1845 vector from the obstack.
1846 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1847 architecture obstack.
1848 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1849 (set_gdbarch_data): Assert that the data is not initialized.
1850 (struct gdbarch_data): Delete member "free".
1851 (register_gdbarch_data): Do not initialize "free".
1852 * gdbarch.h, gdbarch.c: Re-generate.
1853
153721e6
AC
18542003-07-22 Andrew Cagney <cagney@redhat.com>
1855
1856 * configure.in (build_warnings): Add -Wformat-nonliteral.
1857 * configure: Re-generate.
1858
c193f044 18592003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1860
1861 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1862
c3228f12
EZ
18632003-07-22 Elena Zannoni <ezannoni@redhat.com>
1864
1865 * findvar.c (read_var_value): Remove case for thread local storage
1866 variables. It is now entirely handled by the dwarf2 location
1867 expression code.
1868 * printcmd.c (address_info): Ditto.
1869 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1870 enumeration value.
1871 (struct symbol): Remove objfile field, which was used by
1872 LOC_THREAD_LOCAL_STATIC only.
1873 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1874 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1875 usage of objfile pointer.
1876 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1877 thread local variables.
1878 Add include of objfiles.h.
1879 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1880 storage variables.
1881 * Makefile.in (dwarf2loc.o): Update dependencies.
1882
aef9bcd2
AC
18832003-07-22 Andrew Cagney <cagney@redhat.com>
1884
1885 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1886 get_frame_base.
1887 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1888 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1889 (struct value): Add opaque declaration.
1890 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1891
d95a8903
AC
18922003-07-21 Andrew Cagney <cagney@redhat.com>
1893
1894 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1895 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1896
4db73d49
SC
18972003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1898
1899 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1900 regcache_cooked_read_unsigned instead of read_register.
1901 (m68hc11_saved_pc_after_call): Likewise.
1902 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1903 instead of write_register.
1904 (m68hc11_register_type): New function.
1905 (m68hc11_register_virtual_type): Remove.
1906 (m68hc11_store_return_value): Convert to use the regcache.
1907 (m68hc11_extract_struct_value_address): Likewise.
1908 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1909 m68hc11_register_type; undeprecate store_return_value and
1910 extract_struct_value_address.
1911
ef2b8fcd
SC
19122003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1913
1914 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1915 and translate to use regcache.
1916 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1917
625b0b97
AC
19182003-07-18 Andrew Cagney <cagney@redhat.com>
1919
1920 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1921 * gdbarch.h, gdbarch.c: Re-generate.
1922 * i386-tdep.c (i386_gdbarch_init): Do not set
1923 DWARF2_BUILD_FRAME_INFO.
1924 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1925 unconditionally.
1926 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1927 DWARF2_BUILD_FRAME_INFO.
1928
22b0d388
AC
19292003-07-18 Andrew Cagney <cagney@redhat.com>
1930
1931 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1932 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1933
1ce5d6dd
AC
19342003-07-18 Andrew Cagney <cagney@redhat.com>
1935
1936 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1937 frame_unwind_address_in_block, instead of frame_pc_unwind.
1938 (dwarf2_frame_cache): Ditto.
1939
e6e5e94c
AC
19402003-07-18 Andrew Cagney <cagney@redhat.com>
1941
1942 * user-regs.h (struct gdbarch): Declare opaque.
1943 * ui-out.h (struct ui_file): Declare opaque.
1944 * dwarf2-frame.h (struct frame_info): Declare opaque.
1945
5483d879
KW
19462003-07-18 Kris Warkentin <kewarken@qnx.com>
1947
1948 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1949 #include "...".
1950 (procfs_meminfo): Change strerror to safe_strerror.
1951 (procfs_can_run): Remove K&R badness.
1952
278a7cf7
MS
19532003-07-17 Michael Snyder <msnyder@redhat.com>
1954
1955 * remote-sim.c: Comment typo fix.
1956
606e3b82
AC
19572003-07-17 Andrew Cagney <cagney@redhat.com>
1958
1959 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1960 configure.
1961 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1962 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1963 GDB_MULTI_ARCH_PARTIAL.
1964
c43af07c
EZ
19652003-07-17 Elena Zannoni <ezannoni@redhat.com>
1966
1967 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1968 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1969 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1970
3b85b0f1
TR
19712003-07-16 Theodore A. Roth <troth@openavr.org>
1972
1973 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1974 found.
1975 (avr_frame_unwind_cache): Don't unwind FP for main.
1976 Update a comment.
1977 Save the computed prev_sp.
1978 (avr_saved_regs_unwinder): Remove function.
1979 (avr_frame_prev_register): Use PC unwind logic from
1980 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1981
336d1bba
AC
19822003-07-16 Andrew Cagney <cagney@redhat.com>
1983
1984 * frame-base.h (frame_base_p_ftype): Delete definition.
1985 (frame_base_append_predicate): Delete declaration.
1986 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1987 (frame_unwind_append_predicate): Delete declaration.
1988 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1989 (append_predicate): Delete parameter "p".
1990 (frame_unwind_append_predicate): Delete function.
1991 (frame_unwind_append_sniffer): Update call to append_predicate.
1992 (frame_unwind_free): Delete function.
1993 (_initialize_frame_unwind): Pass NULL as "free" to
1994 register_gdbarch_data.
1995 (frame_unwind_init): Append the dummy_frame_sniffer.
1996 (frame_unwind_find_by_frame): Simplify.
1997 * frame-base.c (struct frame_base_table): Delete field "p".
1998 (append_predicate): Delete parameter "p".
1999 (frame_base_append_predicate): Delete function.
2000 (frame_base_append_sniffer): Update call to append_predicate.
2001 (frame_base_free): Delete function.
2002 (frame_base_find_by_frame): Simplify.
2003 (_initialize_frame_base): Pass NULL as "free" to
2004 register_gdbarch_data.
2005 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2006 (x86_64_sigtramp_frame_sniffer): Replace
2007 "x86_64_sigtramp_frame_p".
2008 (x86_64_init_abi): Set the frame unwind sniffers.
2009 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2010 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2011 (m68k_gdbarch_init): Set the frame unwind sniffers.
2012 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2013 "i386_sigtramp_frame_p".
2014 (i386_frame_sniffer): Replace "i386_frame_p".
2015 (i386_gdbarch_init): Set the frame unwind sniffers.
2016 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2017 (avr_gdbarch_init): Set the frame unwind sniffers.
2018 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2019 "alpha_sigtramp_frame_p"
2020 (alpha_heuristic_frame_sniffer): Replace
2021 "alpha_heuristic_frame_p".
2022 (alpha_gdbarch_init): Set the frame unwind sniffers.
2023 (alpha_dwarf2_init_abi): Ditto.
2024 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2025 "alpha_debug_frame_p".
2026 (alpha_mdebug_frame_base_sniffer): Replace
2027 "alpha_mdebug_frame_base_p".
2028 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2029 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2030 (d10v_gdbarch_init): Set the frame unwind sniffer.
2031 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2032 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2033 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2034 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2035 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2036 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2037
48db5a3c
CV
20382003-07-16 Michael Snyder <msnyder@redhat.com>
2039
2040 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2041 should go thru sh_dsp_register_sim_regno, else the dsp regs
2042 will not get the right values.
2043
20442003-07-16 Corinna Vinschen <vinschen@redhat.com>
2045
2046 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2047 deprecated_store_floating by call to store_typed_floating.
2048 (sh_sh4_register_convert_to_raw): Substitute call to
2049 deprecated_extract_floating by call to extract_typed_floating.
2050
20512003-07-16 Corinna Vinschen <vinschen@redhat.com>
2052
2053 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2054
20552003-07-16 Corinna Vinschen <vinschen@redhat.com>
2056
2057 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2058 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2059 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2060 as possible.
2061 (do_pseudo_register): Remove.
2062 (sh_push_dummy_code): New function.
2063 (sh64_store_struct_return): Rename from sh_store_struct_return.
2064 Only called for sh64 now.
2065 (sh_extract_struct_value_address): Regcache'ify.
2066 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2067 and accomodate new tasks.
2068 (sh64_push_return_address): Rename from sh_push_return_address.
2069 Only called for sh64 now.
2070 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2071 Regcache'ify.
2072 (sh3e_sh4_extract_return_value): Regcache'ify.
2073 (sh_default_store_return_value): Ditto.
2074 (sh3e_sh4_store_return_value): Ditto.
2075 (sh_default_register_byte): Remove.
2076 (sh_sh4_register_byte): Remove.
2077 (sh_default_register_raw_size): Remove.
2078 (sh_sh4_register_raw_size): Remove.
2079 (sh_register_virtual_size): Remove.
2080 (sh_sh3e_register_virtual_type): Remove.
2081 (sh_sh3e_register_type): New function.
2082 (sh_sh4_register_virtual_type): Remove.
2083 (sh_sh4_register_type): New function.
2084 (sh_default_register_virtual_type): Remove.
2085 (sh_default_register_type): New function.
2086 (do_fv_register_info): Add parameters to accomodate call from
2087 sh_print_registers_info.
2088 (do_dr_register_info): Ditto.
2089 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2090 Add parameters to accomodate call from sh_print_registers_info.
2091 (sh_do_fp_register): Ditto.
2092 (sh64_do_pseudo_register): Call do_dr_register_info,
2093 do_fv_register_info and sh_do_fp_register with default parameters.
2094 (sh_do_register): Add parameters to accomodate call from
2095 sh_print_registers_info.
2096 (sh_print_register): Ditto.
2097 (sh_print_registers_info): Rename from sh_do_registers_info.
2098 Add parameters to be used as gdbarch_print_registers_info
2099 implementation. Accomodate removed do_pseudo_register function
2100 pointer.
2101 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2102 function pointer. Call sh_print_register with default parameters.
2103 (sh64_do_registers_info): Call sh_print_registers_info instead of
2104 sh_do_registers_info.
2105 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2106 detection of deprecated vs. non-deprecated functionality.
2107 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2108 function pointer assignments by direct function calls.
2109
e8a89fe2
AC
21102003-07-15 Andrew Cagney <cagney@redhat.com>
2111
2112 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2113 (frame_register_unwind, create_new_frame): Ditto.
2114 (legacy_get_prev_frame, get_frame_type): Ditto.
2115 (get_frame_base_address): Use frame_base_find_by_frame.
2116 (get_frame_locals_address): Use frame_base_find_by_frame.
2117 (get_frame_args_address): Use frame_base_find_by_frame.
2118 * frame-base.h (frame_base_sniffer_ftype): Declare.
2119 (frame_base_append_sniffer): Declare.
2120 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2121 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2122 (frame_base_append_sniffer): New function.
2123 (frame_base_append_predicate): Add a NULL sniffer.
2124 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2125 (struct frame_base_table): Add "sniffer".
2126 (frame_base_free): Free the "sniffer" table.
2127 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2128 (frame_unwind_append_sniffer): Declare.
2129 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2130 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2131 (struct frame_unwind_table): Add "sniffer", delete "middle".
2132 (append_predicate): Add "sniffer" parameter, append the sniffer.
2133 (frame_unwind_init): Update append_predicate call.
2134 (frame_unwind_append_sniffer): New function.
2135 (frame_unwind_append_predicate): Update append_predicate call.
2136 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2137
0714963c
AC
21382003-07-15 Andrew Cagney <cagney@redhat.com>
2139
2140 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2141 before code inhibiting repeated unwind attempts. Add to
2142 commentary on that test's problems.
2143 * blockframe.c (inside_main_func): Look for "main" in the minimal
2144 symbol table.
2145 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2146 identical.
2147
d9170e22
AC
21482003-07-15 Andrew Cagney <cagney@redhat.com>
2149
2150 * complaints.c (struct explanation): Define.
2151 (struct complaints): Change type of "explanation" to "struct
2152 explanation".
2153 (symfile_explanations): Convert to a "struct explanation" table.
2154 (vcomplaint): Update.
2155
eba29c8c
ML
21562003-07-15 Michal Ludvig <mludvig@suse.cz>
2157
2158 * x86-64-linux-nat.c (regmap): Removed.
2159 (supply_gregset, fill_gregset): Call
2160 x86_64_linux_(fill,supply)_gregset functions.
2161 * x86-64-linux-tdep.c (USER_*): New defines.
2162 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2163 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2164 New functions.
2165 (fetch_core_registers): Ditto.
2166 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2167 * x86-64-linux-tdep.h: New file.
2168 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2169 and core-regset.o.
2170 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2171
68cc0bfb
MK
21722003-07-13 Mark Kettenis <kettenis@gnu.org>
2173
88a115f7
MK
2174 * x86-64-tdep.c (x86_64_store_return_value): Use
2175 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2176
68cc0bfb
MK
2177 * configure.host: Add x86_64-*-freebsd*.
2178 * configure.tgt: Add x86_64-*-freebsd*.
2179 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2180 * amd64fbsd-nat.c: New file.
2181 * amd64fbsd-tdep.c: New file.
2182 * config/i386/nm-fbsd64.h: New file.
2183 * config/i386/fbsd64.mh: New file.
2184 * config/i386/fbsd64.mt: New file.
2185
138e7be5
MK
21862003-07-11 Mark Kettenis <kettenis@gnu.org>
2187
2188 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2189 `sc_regs_offset' and `sc_fpregs_offset'.
2190 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2191 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2192 (alpha_sigtramp_register_address): Rewrite to use new members of
2193 `struct gdbarch_tdep'.
2194 (alpha_gdbarch_init): Initialize new members of struct
2195 gdbarch_tdep'.
2196 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2197 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2198 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2199 (alphafbsd_pc_in_sigtramp): Implement.
2200 (alphafbsd_sigtramp_offset): New function.
2201 (alphafbsd_sigcontext_addr): New function.
2202 (alphafbsd_init_abi): Initialize signal trampoline related members
2203 of `struct gdbarch_tdep'.
2204 (_initialize_alphafbsd_tdep): Add prototype.
2205
95303a68
TR
22062003-07-11 Theodore A. Roth <troth@openavr.org>
2207
ba292e4c
TR
2208 * Makefile.in (install-only): Quote sed expression when generating
2209 transformed_name.
95303a68 2210
6896c0c7
RH
22112003-07-11 Richard Henderson <rth@redhat.com>
2212
2213 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2214 * dwarf2-frame.c: Include complaints.h.
2215 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2216 variable initialization; return NULL on error.
2217 (decode_frame_entry): New.
2218
8edd5d01
AC
22192003-07-11 Andrew Cagney <cagney@redhat.com>
2220
c4a09524
AC
2221 * frame.h (frame_address_in_block): Delete declaration.
2222 * blockframe.c (frame_address_in_block): Delete function.
2223 (get_frame_block): Use get_frame_address_in_block.
2224 (block_innermost_frame): Ditto.
2225 * stack.c (print_frame, backtrace_command_1): Ditto.
2226
8edd5d01
AC
2227 * frame.h (get_frame_address_in_block): Declare.
2228 (frame_unwind_address_in_block): Declare.
2229 * frame.c (frame_unwind_address_in_block): New function.
2230 (get_frame_address_in_block): New function.
2231
f7968451
AC
22322003-07-10 Andrew Cagney <cagney@redhat.com>
2233
2234 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2235 pre-default. Note: re-generate has no effect.
2236
ae99b398
AC
22372003-07-10 Andrew Cagney <cagney@redhat.com>
2238
2239 * gdbarch.sh: When a variable, but not a function, compare against
2240 0. Fix problem in previous patch.
2241 * gdbarch.c: Re-generate.
2242
956ac328
AC
22432003-07-10 Andrew Cagney <cagney@redhat.com>
2244
2245 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2246 functions against NULL, not 0.
2247 * gdbarch.c: Re-generate.
2248
287c3240
FF
22492003-07-10 Fred Fish <fnf@ninemoons.com>
2250
2251 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2252 null string instead of a null pointer.
2253 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2254
32f63c4b
MS
22552003-07-09 Michael Snyder <msnyder@redhat.com>
2256
2257 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2258
402ecd56
MK
22592003-07-09 Mark Kettenis <kettenis@gnu.org>
2260
2261 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2262 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2263 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2264 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2265 * x86-64-tdep.c: ... from here.
2266
c481dac7
AS
22672003-07-09 Andreas Schwab <schwab@suse.de>
2268
2269 * m68k-tdep.h (enum struct_return): Define.
2270 (struct gdbarch_tdep): Add struct_return.
2271 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2272 bytes are padded to the right, not to the left. Pass struct value
2273 address in register %a1, not on stack.
2274 (m68k_use_struct_convention): New function.
2275 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2276 struct_return in tdep to pcc_struct_return.
2277 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2278 reg_struct_return.
2279
64176fa3
JB
22802003-07-09 Joel Brobecker <brobecker@gnat.com>
2281
2282 * somread.c (som_symfile_offsets): Fix compilation error.
2283
96a4ee76
AC
22842003-07-09 Andrew Cagney <cagney@redhat.com>
2285
2286 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2287 Add comments about the checks.
2288
1517c6d1
AC
22892003-07-08 Andrew Cagney <cagney@redhat.com>
2290
2291 * Makefile.in: Make dependency section headers consistent.
2292 (config_h): Move to $BUILD headers section.
2293 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2294 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2295 (ada-exp.tab.c): Move to YACC/LEX section.
2296 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2297 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2298
dc5dd1eb
KW
22992003-07-08 Kris Warkentin <kewarken@qnx.com>
2300
2301 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2302 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2303 of strerror with safe_strerror, use ISO C function definitions,
2304 and replace instances of sprintf with snprintf.
dc5dd1eb 2305
612dde91
AC
23062003-07-07 Andrew Cagney <cagney@redhat.com>
2307
2308 * frame.c (get_prev_frame): Enable check for identical frames.
2309 Update comments. Update error messages.
2310
492c11d3
JB
23112003-07-07 Joel Brobecker <brobecker@gnat.com>
2312
2313 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2314
376a5a49
JB
23152003-07-07 Joel Brobecker <brobecker@gnat.com>
2316
2317 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2318 sort_symtab_syms, no longer necessary.
2319
22b4a9ad
JB
23202003-07-07 Joel Brobecker <brobecker@gnat.com>
2321
2322 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2323
5bbcb741
JB
23242003-07-07 Joel Brobecker <brobecker@gnat.com>
2325
2326 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2327 (mips_register_byte): Likewise.
2328
c139e7d9
DJ
23292003-07-07 Daniel Jacobowitz <drow@mvista.com>
2330
2331 * Makefile.in (sparc_tdep_h): New.
2332 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2333 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2334 * sparc-linux-nat.c: Include "sparc-tdep.h".
2335 * sparc-nat.c: Likewise.
2336 * sparc-tdep.c: Likewise.
2337 * sparc64nbsd-nat.c: Likewise.
2338 * sparcnbsd-nat.c: Likewise.
2339 * sparcnbsd-tdep.c: Likewise.
2340 * sparc-tdep.h: New file.
2341 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2342 and sparc_npc_regnum.
2343
fd8f87c5
DJ
23442003-07-07 Daniel Jacobowitz <drow@mvista.com>
2345
2346 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2347 (mips_linux_cannot_store_register): List supported instead of
2348 unsupported registers.
2349
13adf674
DJ
23502003-07-07 Daniel Jacobowitz <drow@mvista.com>
2351
2352 * disasm.c (dump_insns): Separate instructions from addresses.
2353
8de307e0
AS
23542003-07-07 Andreas Schwab <schwab@suse.de>
2355
2356 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2357 dependencies.
2358 * m68k-tdep.c (NUM_FREGS): Delete.
2359 (SIG_PC_FP_OFFSET): Delete.
2360 (TARGET_M68K): Delete.
2361 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2362 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2363 P_MOVEL_SP, P_MOVEML_SP): Define.
2364 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2365 P_TRAP): Delete.
2366 (m68k_register_raw_size): Delete.
2367 (m68k_register_virtual_size): Delete.
2368 (m68k_register_type): Renamed from m68k_register_virtual_type and
2369 add gdbarch argument.
2370 (m68k_store_struct_return): Delete.
2371 (m68k_deprecated_extract_return_value): Delete.
2372 (m68k_deprecated_extract_struct_value_address): Delete.
2373 (m68k_frame_chain): Delete.
2374 (m68k_frame_saved_pc): Delete.
2375 (m68k_fix_call_dummy): Delete.
2376 (m68k_push_dummy_frame): Delete.
2377 (m68k_pop_frame): Delete.
2378 (m68k_extract_return_value): New function.
2379 (m68k_store_return_value): Rewrite using regcache.
2380 (m68k_extract_struct_value_address): Rewrite using regcache.
2381 (m68k_push_dummy_call): New function.
2382 (struct m68k_frame_cache): Define.
2383 (m68k_alloc_frame_cache): New function.
2384 (m68k_analyze_frame_setup): New function.
2385 (m68k_analyze_register_saves): New function.
2386 (m68k_analyze_prologue): New function.
2387 (m68k_skip_prologue): Rewrite using above functions.
2388 (m68k_unwind_pc): New function.
2389 (m68k_frame_cache): New function.
2390 (m68k_frame_this_id): New function.
2391 (m68k_frame_prev_register): New function.
2392 (m68k_frame_unwind): New variable.
2393 (m68k_frame_p): New function.
2394 (m68k_sigtramp_frame_cache): New function.
2395 (m68k_sigtramp_frame_this_id): New function.
2396 (m68k_sigtramp_frame_prev_register): New function.
2397 (m68k_sigtramp_frame_unwind): New variable.
2398 (m68k_sigtramp_frame_p): New function.
2399 (m68k_frame_base_address): New function.
2400 (m68k_frame_base): New function.
2401 (m68k_unwind_dummy_id): New function.
2402 (fill_gregset): Use regcache_collect.
2403 (fill_fpregset): Likewise.
2404 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2405 defined.
2406 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2407 deprecated_init_frame_pc, deprecated_store_struct_return,
2408 deprecated_extract_return_value, deprecated_store_return_value,
2409 deprecated_frame_chain, deprecated_frame_saved_pc,
2410 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2411 deprecated_register_virtual_size,
2412 deprecated_max_register_raw_size,
2413 deprecated_max_register_virtual_size,
2414 deprecated_register_virtual_type, deprecated_register_size,
2415 deprecated_register_byte, deprecated_register_bytes,
2416 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2417 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2418 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2419 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2420 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2421 deprecated_push_dummy_frame, deprecated_pop_frame,
2422 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2423 only if SYSCALL_TRAP is defined. Set extract_return_value,
2424 store_return_value, extract_struct_value_address, register_type,
2425 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2426 predicates.
2427 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2428 M68K_MAX_REGISTER_SIZE): Define.
2429 (struct m68k_sigtramp_info): Define.
2430 (struct gdbarch_tdep): Add get_sigtramp_info.
2431 * m68klinux-nat.c (fetch_register): Use register_size instead of
2432 REGISTER_RAW_SIZE. Don't put assignment in if.
2433 (store_register): Likewise.
2434 (fetch_inferior_registers): Likewise.
2435 (store_inferior_registers): Likewise.
2436 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2437 (m68k_linux_frame_saved_pc): Delete.
2438 (m68k_linux_sigcontext_reg_offset,
2439 m68k_linux_ucontext_reg_offset): Define.
2440 (m68k_linux_get_sigtramp_info): New function.
2441 (m68k_linux_extract_return_value): Rewrite using regcache.
2442 (m68k_linux_store_return_value): Likewise.
2443 (m68k_linux_extract_struct_value_address): Likewise.
2444 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2445 Don't set deprecated_frame_saved_pc,
2446 deprecated_extract_return_value, deprecated_store_return_value,
2447 deprecated_extract_struct_value_address. Set
2448 extract_return_value, store_return_value,
2449 extract_struct_value_address.
2450
eb8bc282
AC
24512003-07-07 Andrew Cagney <cagney@redhat.com>
2452
2453 * expprint.c: Include "user-regs.h" instead of "frame.h".
2454 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2455 frame_map_regnum_to_name.
2456 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2457 (frame_map_name_to_regnum): Simplify, call
2458 user_reg_map_name_to_regnum.
2459 (frame_map_regnum_to_name): Simplify, call
2460 user_reg_map_regnum_to_name.
2461 (frame_register_unwind): Update.
2462 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2463 (_initialize_frame_reg): Call user_reg_add_builtin.
2464 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2465 (value_of_register): Use value_of_user_reg.
2466 * eval.c (evaluate_subexp_standard): Update.
2467 * parse.c (write_dollar_variable): Update.
2468 * d10v-tdep.c (d10v_print_registers_info): Update.
2469 * infcmd.c (registers_info): Update.
2470 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2471 (builtin_regs_h): Delete macro.
2472 (user_regs_h): Define.
2473 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2474 (builtin-regs.o): Delete target.
2475 (user-regs.o): Specify dependencies.
2476 (expprint.o): Update dependencies.
2477 (findvar.o): Update dependencies.
2478 (frame.o): Update dependencies.
2479 (std-regs.o): Update dependencies.
2480
9f476a01
CF
24812003-07-06 Christopher Faylor <cgf@redhat.com>
2482
2483 * win32-nat.c (solib_symbols_add): Use one variable for all section
2484 address stuff. Pass variable rather than address of variable to
2485 safe_symbol_file_add.
2486
a731b831
AS
24872003-07-06 Andreas Schwab <schwab@suse.de>
2488
2489 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2490
9f83329d
JB
24912003-07-04 Joel Brobecker <brobecker@gnat.com>
2492
2493 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2494
27e28cc5
KW
24952003-07-04 Kris Warkentin <kewarken@qnx.com>
2496
2497 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2498
24992003-07-04 Kris Warkentin <kewarken@qnx.com>
2500
2501 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2502 * config/i386/nto.mh: New file.
2503 * config/i386/nm-nto.h: New file.
2504 * configure.host: Add i[3456]86-*-nto*.
2505
100f2e98
JB
25062003-07-03 Joel Brobecker <brobecker@gnat.com>
2507
2508 * remote-vx.c (vx_add_symbols): Fix compilation error.
2509
e23457df
AC
25102003-07-03 Andrew Cagney <cagney@redhat.com>
2511
2512 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2513 * gdbarch.h, gdbarch.c: Re-generate.
2514 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2515 (legacy_register_name): Declare.
2516 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2517 (REGISTER_NAME): Define.
2518 * sparc-tdep.c (legacy_register_name): New function.
2519 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2520 (REGISTER_NAME): Define.
2521 (hppa64_register_name): Declare.
2522 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2523 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2524 (hppa64_register_name): New function.
2525 (hppa_register_name): New function.
2526 * arch-utils.c (legacy_register_name): Delete.
2527 * arch-utils.h (legacy_register_name): Delete.
2528
38caaeec
DJ
25292003-07-03 Daniel Jacobowitz <drow@mvista.com>
2530
2531 * cli/cli-interp.c (cli_interpreter_resume): Update the
2532 cli_uiout's stream to gdb_stdout.
2533
dadd712e
AC
25342003-07-03 Andrew Cagney <cagney@redhat.com>
2535
2536 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2537 predicate.
2538 * gdbarch.h, gdbarch.c: Re-generate.
2539 * regcache.c (init_regcache_descr): Use legacy code when either
2540 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2541
c7f1390e
DJ
25422003-07-02 Daniel Jacobowitz <drow@mvista.com>
2543
2544 * NEWS: Move "set logging" entry into GDB 6.0 section.
2545
4bc8c588
JB
25462003-07-02 Jim Blandy <jimb@redhat.com>
2547
a9dd42f1
JB
2548 * s390-tdep.c (struct frame_extra_info): new member:
2549 'stack_bought_valid'.
2550 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2551 initialize fextra_info->stack_bought.
2552 (s390_frameless_function_invocation): Don't trust the value of
2553 fextra_info_ptr->stack_bought unless
2554 fextra_info->stack_bought_valid is set.
2555
4bc8c588
JB
2556 New S390 prologue analyzer.
2557 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2558 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2559 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2560 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2561 compute_x_addr, s390_on_stack, s390_store,
2562 s390_get_signal_frame_info): New functions.
2563 (S390_NUM_SPILL_SLOTS): New macro.
2564 (s390_get_frame_info): Rewritten.
2565 (is_arg_reg): Deleted.
2566
2567 Break out the decoding of S/390 instructions into separate
2568 functions, to make it more legible, and easier to check
2569 against the spec.
2570 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2571 is_rx, is_rxe): New functions.
2572 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2573 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2574 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2575 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2576 enums for opcode values. (Is this an improvement?)
2577
fd13a04a
AC
25782003-07-02 Andrew Cagney <cagney@redhat.com>
2579
2580 * i386-tdep.c: Revert change committed as part of trad-frame code
2581 below.
2582
3f8091c1
DJ
25832003-07-02 Daniel Jacobowitz <drow@mvista.com>
2584
2585 * breakpoint.c (insert_catchpoint): Make static.
2586
8dd5115e
AS
25872003-07-02 Andreas Schwab <schwab@suse.de>
2588
2589 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2590 former ia64_push_arguments and ia64_push_return_address, and use
2591 regcache functions instead of read/write_register.
2592 (ia64_gdbarch_init): Set push_dummy_call instead of
2593 deprecated_push_arguments and deprecated_push_return_address.
2594
a2229c23
AJ
25952003-07-01 Andreas Jaeger <aj@suse.de>
2596
2597 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2598 before the call.
2599 Set %rax only to number of SSE registers used.
2600
3b3850e8
AC
26012003-07-01 Andrew Cagney <cagney@redhat.com>
2602
2603 * trad-frame.h: Update comments, a -1 .addr is reserved.
2604 (trad_frame_value_p, trad_frame_addr_p): Declare.
2605 (trad_frame_reg_p): Declare.
2606 (trad_frame_set_value): Rename trad_frame_register_value.
2607 (trad_frame_set_unknown): Declare.
2608 * trad-frame.c (trad_frame_realreg_p): New function.
2609 (trad_frame_addr_p, trad_frame_value_p): New function.
2610 (trad_frame_set_unknown): New function.
2611 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2612 (trad_frame_prev_register): Use trad_frame_realreg_p,
2613 trad_frame_addr_p and trad_frame_value_p.
2614 (trad_frame_set_value): Rename trad_frame_register_value.
2615 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2616 and trad_frame_set_value.
a2229c23 2617
4d819d0e
JB
26182003-06-30 Jim Blandy <jimb@redhat.com>
2619
2620 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2621 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2622 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2623 for 16 registers, and then 32 more bytes.
2624 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2625 New macros.
2626 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2627 Move up in the file, since it's now used by is_simple_arg.
2628 (is_simple_arg): Don't assume registers are four bytes long.
2629 Exclude all double arguments. Extended floats are not simple
2630 args.
2631 (is_power_of_two): New function.
2632 (pass_by_copy_ref): Call is_power_of_two, and check that the
2633 length fits in a register, rather than listing all the acceptable
2634 sizes. Extended floats are not passed by reference.
2635 (s390_push_arguments): Don't assume registers are four bytes long.
2636 Reserve an argument register to point to the buffer for structures
2637 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2638 S390_STACK_FRAME_OVERHEAD.
2639
1ad828f1
AS
26402003-06-30 Andreas Schwab <schwab@suse.de>
2641
2642 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2643 format error message.
2644
39b00981
JB
26452003-06-30 Joel Brobecker <brobecker@gnat.com>
2646
2647 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2648
b2a7f303
DC
26492003-06-30 David Carlton <carlton@kealia.com>
2650
2651 Band-aid for PR c++/1245.
2652 * Makefile.in (cp-support.o): Depend on complaints_h.
2653 * cp-support.c: Include complaints.h. Add declaration for
2654 find_last_component.
2655 (cp_find_first_component): Separate code into
2656 cp_find_first_component_aux.
2657 (cp_find_first_component_aux): Call demangled_name_complaint.
2658 (demangled_name_complaint): New.
2659
a257b5bb
AC
26602003-06-30 Andrew Cagney <cagney@redhat.com>
2661
2662 * remote.c (remote_write_bytes): Explicitly compute and then use
2663 the payload size. Update comments to reflect. Fixes problem of
2664 GDB not sending small packets as found by Fred Fish.
2665
0a2cfde4
AC
26662003-06-30 Andrew Cagney <cagney@redhat.com>
2667
2668 * remote.c (remote_async_wait): Fix -Wformat problem.
2669
3fcb8548
AC
26702003-06-29 Andrew Cagney <cagney@redhat.com>
2671
2672 * remote.c (remote_wait): Call error, and not warning, when the
2673 packet is corrupt.
2674 (remote_async_wait): Ditto.
2675
9f9970a3
DJ
26762003-06-29 Daniel Jacobowitz <drow@mvista.com>
2677
2678 * sparc-tdep.c (sparc_y_regnum): Make external again.
2679
83a8ccca
DJ
26802003-06-29 Daniel Jacobowitz <drow@mvista.com>
2681
2682 * cli/cli-logging.c (pop_output_files): Add void to function
2683 definition.
2684
d2cf594a
AC
26852003-06-29 Andrew Cagney <cagney@redhat.com>
2686
2687 * frame.c (frame_register_unwind): Use unsigned char when dumping
2688 the buffer contents.
2689
0fac0b41
DJ
26902003-06-28 Daniel Jacobowitz <drow@mvista.com>
2691
2692 * cli/cli-logging.c: New file.
2693 * cli-out.c (struct ui_out_data): Add original_stream.
2694 (cli_redirect): New function.
2695 (cli_ui_out_impl): Add cli_redirect.
2696 (cli_out_new): Initialize original_stream.
2697 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2698 (uo_redirect, ui_out_redirect): New.
2699 * ui-out.h (struct ui_out_impl): Add redirect member.
2700 (redirect_ftype): New.
2701 (ui_out_redirect): Add prototype.
2702 * Makefile.in: Add rules for cli-logging.c.
2703 * NEWS: Mention "set logging".
2704
88a07d7c
EZ
27052003-06-27 Elena Zannoni <ezannoni@redhat.com>
2706
2707 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2708
4eb58876
AC
27092003-06-27 Andrew Cagney <cagney@redhat.com>
2710
2711 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2712 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2713 * avr-tdep.c (avr_call_dummy_address): Delete function.
2714 (avr_gdbarch_init): Do not set call_dummy_address.
2715
1549f619
EZ
27162003-06-27 Elena Zannoni <ezannoni@redhat.com>
2717
2718 * symfile.c (syms_from_objfile): Move variables to inner block.
2719 Move the checks for the non-mainline case a bit earlier to avoid
2720 doing some useless computations.
2721
3cb3398d
EZ
27222003-06-27 Elena Zannoni <ezannoni@redhat.com>
2723
2724 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2725
3799ccc6
EZ
27262003-06-26 Elena Zannoni <ezannoni@redhat.com>
2727
2728 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2729 sections.
2730
ce1f6491
MC
27312003-06-26 Michael Chastain <mec@shout.net>
2732
2733 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2734 gdb/testsuite/gdb.c++/pr-1210.exp.
2735
d958dfd0
AC
27362003-06-26 Andrew Cagney <cagney@redhat.com>
2737
2738 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2739 altivec_expression.h and altivec_registers.h.
2740
d31431ed
AC
27412003-06-26 Andrew Cagney <cagney@redhat.com>
2742
2743 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2744 info->mach when MIPS16. Patch suggested by Fred Fish.
2745
714b1282
AC
27462003-06-26 Andrew Cagney <cagney@redhat.com>
2747
2748 * utils.c (internal_vproblem): Print the problem to a reason
2749 buffer and then pass to query. Make the msg variable more local.
2750
42efa47a
AC
27512003-06-26 Andrew Cagney <cagney@redhat.com>
2752
2753 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2754 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2755 * gdbarch.h, gdbarch.c: Re-generate.
2756 * frame-base.c (default_frame_args_address): Update. Use
2757 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2758 not available.
2759 (default_frame_locals_address): Ditto for
2760 DEPRECATED_FRAME_LOCALS_ADDRESS.
2761 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2762 (vax_frame_num_args): Update.
2763 (vax_gdbarch_init): Update.
2764 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2765 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2766 * mcore-tdep.c (mcore_gdbarch_init): Update.
2767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2768 * ia64-tdep.c (ia64_gdbarch_init): Update.
2769 * symtab.h (address_class): Update comments.
2770 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2771 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2772 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2773 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2774 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2775 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2776 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2777 * alpha-mdebug-tdep.c: Update.
2778 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2779
8ffd9b1b
AJ
27802003-06-26 Andreas Jaeger <aj@suse.de>
2781
2782 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2783 of SSE registers so that varargs functions work. Rework handling
2784 of passing arguments on the stack.
2785 (x86_64_store_return_value): Return double and float values in SSE
2786 register.
2787
e8ac10a6
MC
27882003-06-24 Michael Chastain <mec@shout.net>
2789
2790 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2791 the "constructor breakpoints ignored" bug.
2792
986af8e6
DC
27932003-06-25 David Carlton <carlton@kealia.com>
2794
2795 * MAINTAINERS: Update e-mail address.
2796
d64558a5
JB
27972003-06-24 Jim Blandy <jimb@redhat.com>
2798
e538d2d7
JB
2799 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2800
02631ec0
JB
2801 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2802 function.
2803 (ppc_linux_init_abi): Register it as the
2804 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2805
e716d87a
JB
2806 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2807 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2808 method.
2809
d64558a5
JB
2810 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2811 (ppc64_standard_linkage_target): Use it.
2812
449a5da4
AC
28132003-06-23 Andrew Cagney <cagney@redhat.com>
2814
2815 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2816 for 0 "int0" and 4 "int32" sized registers.
2817 * gdbtypes.c (builtin_type_int0): Define.
2818 (build_gdbtypes): Initialize builtin_type_int0.
2819 * gdbtypes.h (builtin_type_int0): Declare.
2820
b2a02dda
SC
28212003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2822
2823 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2824 as characters are unsigned.
2825
fba3138e
DJ
28262003-06-22 Daniel Jacobowitz <drow@mvista.com>
2827
2828 PR gdb/1179
2829 * dwarfread.c (struct_type): Skip static fields without crashing.
2830
f6c8180b
AC
28312003-06-22 Andrew Cagney <cagney@redhat.com>
2832
2833 GDB 6.0 branch created.
f2c06f52
AC
2834 * README: Update.
2835 * PROBLEMS: Update. Empty.
2836 * NEWS: Update.
f6c8180b 2837
ae822768
DJ
28382003-06-22 Daniel Jacobowitz <drow@mvista.com>
2839
2840 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2841 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2842
261de166
AC
28432003-06-22 Andrew Cagney <cagney@redhat.com>
2844
2845 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2846 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2847 Velikov.
2848
30e94205
DJ
28492003-06-22 Daniel Jacobowitz <drow@mvista.com>
2850
2851 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2852 compilers.
2853
9e14d721
DJ
28542003-06-21 Daniel Jacobowitz <drow@mvista.com>
2855
2856 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2857 argument of val_print.
2858 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2859 to the address argument of baseclass_offset or target_read_memory.
2860 Do add it to the argument of cp_print_value_fields.
2861
a4b8ebc8
AC
28622003-06-21 Andrew Cagney <cagney@redhat.com>
2863
2864 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2865 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2866 instead of 0..NUM_REGS.
2867 (mips_register_reggroup_p): New function.
2868 (mips_pseudo_register_write): New function.
2869 (mips_pseudo_register_read): New function.
2870 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2871 based on the register's type.
2872 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2873 cooked.
2874 (mips_get_saved_register): Simplify. Assert that REGNO is a
2875 pseudo / cooked.
2876 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2877 (mips_register_type): Replace mips_register_virtual_type. Map
2878 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2879 when available.
2880 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2881 that the register is cooked / virtual.
2882 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2883 Only get the extra info when needed.
2884 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2885 (mips32_heuristic_proc_desc): Fetch the cooked register.
2886 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2887 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2888 (mips_print_register): Use gdbarch_register_type, instead of
2889 REGISTER_VIRTUAL_TYPE.
2890 (print_gp_register_row): Use gdbarch_register_type, instead of
2891 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2892 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2893 Print the pseudo / cooked registers.
2894 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2895 Print the pseudo / cooked registers.
2896 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2897 REG_NUM is pseudo / cooked.
2898 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2899 (mips_n32n64_xfer_return_value): Ditto.
2900 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2901 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2902 (mips_register_sim_regno): New function.
2903 (mips_gdbarch_init): Set deprecated_register_byte,
2904 register_group_p, pseudo_register_write, pseudo_register_read,
2905 register_sim_regno, and num_pseudo_regs. Set register_type,
2906 instead of register_virtual_type.
2907 * Makefile.in (mips-tdep.o): Update dependencies.
2908 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2909 REGISTER_VIRTUAL_TYPE.
2910 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2911 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2912 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2913 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2914 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2915
325ed089
DJ
29162003-06-21 Daniel Jacobowitz <drow@mvista.com>
2917
2918 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2919 * cli/cli-cmds.c: Include "gdb_vfork.h".
2920 (shell_escape): Use vfork.
2921
f0e7d0e8
AC
29222003-06-21 Andrew Cagney <cagney@redhat.com>
2923
c57bb9fa
AC
2924 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2925 32 bit floating-point register saves.
2926
6e51443a
AC
2927 * frame.h (deprecated_unwind_get_saved_register): Delete.
2928 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2929 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2930 and deprecated_get_next_frame_hack instead of
2931 deprecated_unwind_get_saved_register.
2932
ed183c7c
AC
2933 * mips-tdep.c (mips_dump_tdep): Do not print
2934 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2935
f0e7d0e8
AC
2936 * frame.c (get_frame_register): New function.
2937 (frame_unwind_register_signed): New function.
2938 (get_frame_register_signed): New function.
2939 (frame_unwind_register_unsigned): New function.
2940 (get_frame_register_unsigned): New function.
2941 * frame.h: Add comments on naming schema.
2942 (get_frame_register, frame_unwind_register_signed): Declare.
2943 (get_frame_register_signed, get_frame_register_signed): Declare.
2944 (frame_unwind_register_unsigned): Declare.
2945 (get_frame_register_unsigned): Declare.
2946
2224d941
TR
29472003-06-20 Theodore A. Roth <troth@openavr.org>
2948
2949 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2950
8619218d
TR
29512003-06-20 Theodore A. Roth <troth@openavr.org>
2952
2953 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2954 (avr_read_sp): Ditto.
2955
0b1b50c0
DJ
29562003-06-20 Daniel Jacobowitz <drow@mvista.com>
2957
2958 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2959 * config/arm/nm-linux.h: Likewise.
2960 * config/arm/tm-linux.h: Likewise.
2961 * config/ia64/nm-linux.h: Likewise.
2962 * config/ia64/tm-ia64.h: Likewise.
2963 * config/s390/tm-linux.h: Likewise.
2964 * config/s390/tm-s390.h: Likewise.
2965 * s390-nat.c: Likewise.
2966 * s390-tdep.c: Likewise.
2967
2968 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2969 * config/ia64/linux.mt: Likewise.
2970 * config/m68k/linux.mh: Likewise.
2971 * config/mips/linux.mt: Likewise.
2972 * config/powerpc/linux.mh: Likewise.
2973 * config/sh/linux.mt: Likewise.
2974
c8c18e65
KW
29752003-06-19 Kris Warkentin <kewarken@qnx.com>
2976
2977 * solib.c (solib_open): Change tests for whether to search
2978 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2979 comments.
2980
dcccef2e
TR
29812003-06-19 Theodore A. Roth <troth@openavr.org>
2982
2983 * avr-tdep.c (avr_frame_address): Delete function.
2984 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2985 set_gdbarch_frame_args_address.
2986
5861a190
AC
29872003-06-19 Andrew Cagney <cagney@redhat.com>
2988
2989 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2990 (REGISTER_CONVERT_FROM_TYPE): Delete.
2991 (mips_register_convert_to_type): Delete declaration.
2992 (mips_register_convert_from_type): Delete declaration.
2993 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2994 kernel/.
2995
0274a8ce
MS
29962003-06-19 Michael Snyder <msnyder@redhat.com>
2997
2998 * linux-nat.h: New file.
2999 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3000 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3001 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3002 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3003 (linux_make_note_section): Iterate over lwps instead of threads.
3004 (linux_do_thread_registers): Use lwp instead of merged pid.
3005 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3006 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3007 Add dependency on linux_nat_h.
3008
adf5f719
TR
30092003-06-19 Theodore A. Roth <troth@openavr.org>
3010
3011 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3012
6766a268
DJ
30132003-06-19 Daniel Jacobowitz <drow@mvista.com>
3014
3015 * varobj.c (get_type, get_target_type): Use check_typedef.
3016
1171114a
DJ
30172003-06-19 Daniel Jacobowitz <drow@mvista.com>
3018
3019 * breakpoint.c (insert_catchpoint): Call internal_error.
3020
adcf68a2
TR
30212003-06-19 Theodore A. Roth <troth@openavr.org>
3022
3023 * avr-tdep.c (avr_push_dummy_code): Delete function.
3024 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3025
ea67f13b
DJ
30262003-06-19 Daniel Jacobowitz <drow@mvista.com>
3027
3028 * arch-utils.c (default_prepare_to_proceed): Remove.
3029 (generic_prepare_to_proceed): Remove.
3030 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3031 (generic_prepare_to_proceed): Remove prototype.
3032 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3033 * gdbarch.c: Regenerate.
3034 * gdbarch.h: Regenerate.
3035 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3036 * hppah-nat.c (hppa_switched_threads): Remove.
3037 * infrun.c (prepare_to_proceed): New static function, copied from
3038 generic_prepare_to_proceed. Remove select_it argument.
3039 (proceed): Call prepare_to_proceed.
3040 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3041 variables.
3042 (ptrace_wait): Don't set the removed variables.
3043 (hppa_switched_threads): Remove.
3044 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3045 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3046 (lin_lwp_prepare_to_proceed): Remove prototype.
3047 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3048 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3049
4add8633
TR
30502003-06-18 Theodore A. Roth <troth@openavr.org>
3051
3052 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3053 trad-frame.h.
3054 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3055 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3056 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3057 (AVR_PROLOGUE_*): Enumerate prologue types.
3058 (struct frame_extra_info): Remove.
3059 (struct avr_unwind_cache): Define.
3060 (avr_write_sp): Delete function.
3061 (avr_read_fp): Ditto.
3062 (avr_init_extra_frame_info): Ditto.
3063 (avr_pop_frame): Ditto.
3064 (avr_frame_saved_pc): Ditto.
3065 (avr_saved_pc_after_call): Ditto.
3066 (avr_push_return_address): Ditto.
3067 (avr_frame_chain): Ditto.
3068 (avr_store_struct_return): Ditto.
3069 (avr_push_arguments): Ditto.
3070 (avr_scan_prologue): Update comments. Changed to set up the info for
3071 cache unwinding. Now returns end of prologue PC.
3072 (avr_skip_prologue): Better handling of functions lacking a prologue
3073 by using avr_scan_prologue.
3074 (avr_scan_arg_moves): New function.
3075 (avr_saved_regs_unwinder): Ditto.
3076 (avr_frame_unwind_cache): Ditto.
3077 (avr_unwind_pc): Ditto.
3078 (avr_frame_this_id): Ditto.
3079 (avr_frame_prev_register): Ditto.
3080 (avr_frame_p): Ditto.
3081 (avr_frame_base_address ): Ditto.
3082 (avr_unwind_dummy_id): Ditto.
3083 (avr_push_dummy_code): Ditto.
3084 (push_stack_item): Ditto.
3085 (pop_stack_item): Ditto.
3086 (avr_push_dummy_call): Ditto.
3087 (struct stack_item): Define.
3088 (avr_frame_unwind): Declare structure.
3089 (avr_frame_base): Ditto.
3090 (avr_gdbarch_init): Remove calls to
3091 set_gdbarch_deprecated_init_frame_pc,
3092 set_gdbarch_deprecated_target_read_fp,
3093 set_gdbarch_deprecated_dummy_write_sp,
3094 set_gdbarch_deprecated_fp_regnum,
3095 set_gdbarch_deprecated_push_arguments,
3096 set_gdbarch_deprecated_push_return_address,
3097 set_gdbarch_deprecated_pop_frame,
3098 set_gdbarch_deprecated_store_struct_return,
3099 set_gdbarch_deprecated_frame_init_saved_regs,
3100 set_gdbarch_deprecated_init_extra_frame_info,
3101 set_gdbarch_deprecated_frame_chain,
3102 set_gdbarch_deprecated_frame_saved_pc,
3103 set_gdbarch_deprecated_saved_pc_after_call.
3104 Add calls to set_gdbarch_push_dummy_call,
3105 set_gdbarch_push_dummy_code,
3106 frame_unwind_append_predicate,
3107 frame_base_set_default,
3108 set_gdbarch_unwind_dummy_id,
3109 set_gdbarch_unwind_pc.
3110 Wrap a long line.
3111
7be04a68
MS
31122003-06-18 Corinna Vinschen <vinschen@redhat.com>
3113
3114 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3115 registers for H8/300S.
3116 (h8300_print_registers_info): Ditto.
8ffd9b1b 3117 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3118
ae087d01
DJ
31192003-06-18 Daniel Jacobowitz <drow@mvista.com>
3120
3121 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3122 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3123 (lin_lwp_wait): Likewise. Update comments.
3124 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3125 (pull_pid_from_list, linux_record_stopped_pid): New.
3126
07d8f827
SC
31272003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3128
3129 * ada-lang.c (scan_discrim_bound): Name first argument.
3130 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3131 declared by ALL_BLOCK_SYMBOLS.
3132
7cb47b14
SC
31332003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3134
3135 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3136 ("regcache.h"): Include it.
3137 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3138
6ad8ae5c
DJ
31392003-06-17 Daniel Jacobowitz <drow@mvista.com>
3140
3141 * NEWS: Mention gdbserver detach change and "disconnect" command.
3142 * infcmd.c (disconnect_command): New function.
3143 (_initialize_infcmd): Add ``disconnect'' command.
3144 * remote.c (remote_async_detach): Delete.
3145 (remote_detach): Merge remote_async_detach.
3146 (remote_disconnect): New.
3147 (init_remote_ops): Set to_disconnect.
3148 (init_remote_cisco_ops): Likewise.
3149 (init_remote_async_ops): Likewise. Use remote_detach.
3150 * target.c (cleanup_target): Default to_disconnect.
3151 (update_current_target): Inherit to_disconnect.
3152 (target_disconnect, debug_to_disconnect): New functions.
3153 (setup_target_debug): Set to_disconnect.
3154 * target.h (struct target_ops): Add to_disconnect.
3155 (target_disconnect): Add prototype.
3156
687595f9
DJ
31572003-06-17 Daniel Jacobowitz <drow@mvista.com>
3158
3159 * breakpoint.c (insert_catchpoint): New function.
3160 (insert_breakpoints): Use catch_exceptions to call
3161 insert_catchpoint. Disable catchpoints if they fail to insert.
3162
29239a8f
DJ
31632003-06-17 Daniel Jacobowitz <drow@mvista.com>
3164
3165 * symfile.c (reread_symbols): Clear sym_private.
3166
2cdf3c63
AC
31672003-06-17 Andrew Cagney <cagney@redhat.com>
3168
3169 * trad-frame.h (struct frame_info): Add opaque declaration.
3170 * remote-fileio.h (struct cmd_list_element): Add opaque
3171 declaration.
3172 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3173 comments.
3174
cf0e1e0d
DJ
31752003-06-17 Daniel Jacobowitz <drow@mvista.com>
3176
3177 * remote.c (remote_prepare_to_store): Replace call to
3178 deprecated_read_register_bytes with multiple regcache_raw_read
3179 calls.
3180
192cdb19
KW
31812003-06-17 Kris Warkentin <kewarken@qnx.com>
3182
3183 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3184 (nto_find_and_open_solib): Likewise.
3185 (nto_init_solib_absolute_prefix): Likewise.
3186 (_initialize_nto_tdep): Fix indentation.
3187
89929b45
KW
31882003-06-17 Kris Warkentin <kewarken@qnx.com>
3189
3190 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3191
46019f27
KW
31922003-06-17 Kris Warkentin <kewarken@qnx.com>
3193
3194 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3195
1a38736e
JB
31962003-06-17 Jim Blandy <jimb@redhat.com>
3197
3198 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3199
3605c34a
TR
32002003-06-16 Theodore A. Roth <troth@openavr.org>
3201
3202 * avr-tdep.c (avr_extract_return_value): New function.
3203 (avr_gdbarch_init): Set extract_return_value method.
3204
870b3035
AC
32052003-06-16 Andrew Cagney <cagney@redhat.com>
3206
3207 * frame.h (deprecated_get_next_frame_hack): Declare.
3208 * frame.c (legacy_saved_regs_prev_register): Only require
3209 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3210 there are always saved regs.
3211 (deprecated_generic_get_saved_register): Do not require
3212 DEPRECATED_FRAME_INIT_SAVED_REGS.
3213 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3214 use frame ID unwind instead.
3215 (deprecated_get_next_frame_hack): New function.
3216
63d47a7d
CV
32172003-06-16 Corinna Vinschen <vinschen@redhat.com>
3218
3219 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3220 (h8300_push_dummy_call): ...this function. Some minor optimization.
3221 (h8300_push_return_address): Remove.
3222 (h8300_gdbarch_init): Remove calls to
3223 set_gdbarch_deprecated_dummy_write_sp,
3224 set_gdbarch_deprecated_push_arguments and
3225 set_gdbarch_deprecated_push_return_address.
3226 Add call to set_gdbarch_push_dummy_call.
3227
4bb1dc5e
CV
32282003-06-16 Corinna Vinschen <vinschen@redhat.com>
3229
3230 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3231 (E_PSEUDO_EXR_REGNUM): Ditto.
3232 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3233 registers into safe registers.
4bb1dc5e
CV
3234 (h8300_skip_prologue): Check for stm instruction to push registers
3235 used for register variables onto stack.
3236 (gdb_print_insn_h8300): Remove.
3237 (h8300_examine_prologue): Add a comment.
3238 (h8300_register_name): Take pseudo registers into account.
3239 (h8300s_register_name): Ditto.
3240 (h8300sx_register_name): Ditto.
3241 (h8300_print_register): Ditto.
3242 (h8300_print_registers_info): Define "nice" printing order.
3243 (h8300_saved_pc_after_call): Take pseudo registers into account.
3244 (h8300_register_type): Ditto. Return type used for remote connection
3245 when requesting real CCR or EXR register, return actual type when
3246 requesting pseudo CCR or EXR.
3247 (h8300_pseudo_register_read): New function.
3248 (h8300_pseudo_register_write): Ditto.
3249 (h8300_dbg_reg_to_regnum): Ditto.
3250 (h8300s_dbg_reg_to_regnum): Ditto.
3251 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3252 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3253 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3254 set_gdbarch_print_insn architecture dependent.
3255 Call set_gdbarch_pseudo_register_read and
3256 set_gdbarch_pseudo_register_write.
3257 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3258
a59fe496
AC
32592003-06-16 Andrew Cagney <cagney@redhat.com>
3260
3261 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3262 * gdbarch.h, gdbarch.c: Re-generate.
3263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3264 * s390-tdep.c (s390_gdbarch_init): Update.
3265 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3266 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3267 * mips-tdep.c (mips_gdbarch_init): Update.
3268 * mcore-tdep.c (mcore_gdbarch_init): Update.
3269 * cris-tdep.c (cris_gdbarch_init): Update.
3270 * infcall.c (call_function_by_hand): Update.
3271 * ia64-tdep.c (ia64_push_arguments): Update comment.
3272 * frame.c (legacy_get_prev_frame): Do not assume
3273 SAVE_DUMMY_FRAME_TOS_P.
3274 * dummy-frame.c (find_dummy_frame): Update comment.
3275
6f4e5a41
AC
32762003-06-16 Andrew Cagney <cagney@redhat.com>
3277
3278 * regcache.c (do_cooked_read): Do not use register_valid_p.
3279
72fab697
TR
32802003-06-15 Theodore A. Roth <troth@openavr.org>
3281
3282 * avr-tdep.c (avr_register_type): Remove a blank line.
3283 (avr_scan_prologue): Correct some comments.
3284
e3d8b004
TR
32852003-06-15 Theodore A. Roth <troth@openavr.org>
3286
3287 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3288 prologue types.
8ffd9b1b 3289 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3290 option.
3291 Add code to scan -mcall-prologues for mega devices.
3292
866b76ea
TR
32932003-06-15 Theodore A. Roth <troth@openavr.org>
3294
3295 * avr-tdep.c (avr_register_byte): Delete function.
3296 (avr_register_raw_size): Delete function.
3297 (avr_register_virtual_size): Delete function.
3298 (avr_register_virtual_type): Delete function.
3299 (avr_register_type): New function.
3300 (avr_address_to_pointer): Remove unused code.
3301 (avr_read_fp): Need to read FP as two separate bytes due to change to
3302 avr_register_type() usage.
3303 (avr_gdbarch_init): Don't set deprecated_register_size.
3304 Don't set deprecated_register_bytes.
3305 Don't set deprecated_register_byte.
3306 Don't set deprecated_register_raw_size.
3307 Don't set deprecated_max_register_raw_size.
3308 Don't set deprecated_register_virtual_size.
3309 Don't set deprecated_max_register_virtual_size.
3310 Don't set deprecated_register_virtual_type.
3311 Set register_type method.
3312
3993f6b1
DJ
33132003-06-15 Daniel Jacobowitz <drow@mvista.com>
3314
3315 * Makefile.in (linux-nat.o): Add rule.
3316 * linux-nat.c: New file.
3317 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3318 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3319 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3320 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3321 * config/arm/linux.mh (NATDEPFILES): Likewise.
3322 * config/i386/linux.mh (NATDEPFILES): Likewise.
3323 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3324 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3325 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3326 * config/mips/linux.mh (NATDEPFILES): Likewise.
3327 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3328 * config/s390/s390.mh (NATDEPFILES): Likewise.
3329 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3330
786a90bb
MK
33312003-06-15 Mark Kettenis <kettenis@gnu.org>
3332
3333 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3334 replace out-of-date comment.
3335
3bd3f01e
AC
33362003-06-15 Andrew Cagney <cagney@redhat.com>
3337
3338 * rdi-share/host.h (Fail): Change to a varargs function.
3339 * remote-rdi.c (Fail): Update.
8ffd9b1b 3340
de5b9bb9
MK
33412003-06-15 Mark Kettenis <kettenis@gnu.org>
3342
3343 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3344 (i386_convert_register_p, i386_register_to_value,
3345 i386_register_from_value): Handle types longer than 8 bytes.
3346
d532c08f
MK
33472003-06-15 Mark Kettenis <kettenis@gnu.org>
3348
3349 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3350 Move floating-point code to new function in i387-tdep.c.
3351 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3352 New functions containing code moved here from i386-tdep.c.
3353 * i387-tdep.h: Add opaque declaration for `struct type'.
3354 (i387_register_to_value, i387_value_to_register): New prototypes.
3355 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3356 (x86_64_init_abi): Set convert_register_p, register_to_value and
3357 value_to_register here.
8ffd9b1b 3358
42c466d7
AC
33592003-06-14 Andrew Cagney <cagney@redhat.com>
3360
3361 * mips-tdep.c (mips_register_to_value): Make static.
3362 (mips_value_to_register): Make static.
3363 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3364 * ia64-tdep.c (ia64_register_raw_size): Make static.
3365 (ia64_register_virtual_size): Make static.
3366 (ia64_register_byte): Make static.
3367 * i387-tdep.c: Include "i387-tdep.h".
3368 (print_387_control_word): Delete function.
3369 (print_387_status_word): Delete function.
3370 (print_387_status_bits): Delete function.
3371 (print_387_control_bits): Delete function.
3372 * Makefile.in (i387-tdep.o): Update dependencies.
3373 * rdi-share/host.h (Fail): Declare.
3374 * remote-rdi.c (Fail): Update to match declaration.
3375
2a9cda49
AC
33762003-06-14 Andrew Cagney <cagney@redhat.com>
3377
3378 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3379 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3380 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3381 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3382 * README: Delete reference to remote-array.
3383 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3384 (remote-array.o): Delete target.
3385 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3386 * remote-array.c: Delete file.
3387
ff2e87ac
AC
33882003-06-14 Andrew Cagney <cagney@redhat.com>
3389 Mark Kettenis <kettenis@gnu.org>
3390
3391 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3392 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3393 parameter with "frame".
3394 * gdbarch.h, gdbarch.c: Re-generate.
3395 * frame.h (put_frame_register): Declare.
3396 * frame.c (put_frame_register): New function.
3397 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3398 (legacy_register_to_value): Rewrite, use "frame" to get the
3399 register value.
3400 (legacy_value_to_register): Rewrite, use "frame" to find the
3401 register's location before storing.
3402 * arch-utils.h (legacy_convert_register_p): Update.
3403 (legacy_register_to_value, legacy_value_to_register): Update.
3404 * findvar.c (value_from_register): Rewrite, eliminate use of
3405 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3406 "frame" to REGISTER_TO_VALUE.
3407 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3408 lval_reg_frame_relative + lval_register branch of the switch. Do
3409 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3410 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3411 I386_EDI_REGNUM): New defines.
3412 (i386_next_regnum, i386_convert_register_p,
3413 i386_register_to_value, i386_value_to_register): New functions.
3414 (i386_register_convertible, i386_register_convert_to_virtual,
3415 i386_convert_to_raw): Remove functions.
3416 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3417 value_to_register instead of register_convertible,
3418 register_convert_to_virtual and register_convert_to_raw.
3419 * mips-tdep.c (mips_convert_register_p): New function.
3420 (mips_value_to_register): Replace mips_register_convert_from_type.
3421 (mips_register_to_value): Replace mips_register_convert_to_type.
3422 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3423 register_to_value.
3424 * alpha-tdep.c (alpha_convert_register_p): Update.
3425 (alpha_value_to_register): Update, store the register.
3426 (alpha_register_to_value): Update, fetch the register.
3427
98be1e77
TR
34282003-06-14 Theodore A. Roth <troth@openavr.org>
3429
3430 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3431 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3432 Don't set deprecated_call_dummy_words.
3433 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3434 Don't set remote_translate_xfer_address.
3435 (avr_io_reg_read_command): Remove commented out debug printf.
3436 Wrap a long line.
3437
57bc6122
TR
34382003-06-14 Theodore A. Roth <troth@openavr.org>
3439
3440 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3441 causes gdb to seg fault.
3442
eb01fc62
DJ
34432003-06-14 Daniel Jacobowitz <drow@mvista.com>
3444
3445 * sparc-nat.c (fetch_inferior_registers): Correct
3446 a reference to "registers".
3447
3b3e6bee
DJ
34482003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3449
3450 * Makefile.in (exc_request_U_h): Define
3451 (exc_request_S_h): Likewise.
3452 (msg_reply_S_h): Likewise.
3453 (msg_U_h): Likewise.
3454 (notify_S_h): Likewise.
3455 (process_reply_S_h): Likewise.
3456 (gnu-nat.o): Depend on gdb_obstack_h
3457 * gnu-nat.c: Include "gdb_obstack.h".
3458
b8de8283
AC
34592003-06-13 Andrew Cagney <cagney@redhat.com>
3460
3461 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3462 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3463
f3be58bc
AC
34642003-06-13 Andrew Cagney <cagney@redhat.com>
3465
3466 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3467 when deprecated REGISTER macros can be deleted.
3468 * gdbarch.h, gdbarch.c: Re-generate.
3469
4c0122c8
JB
34702003-06-13 Jim Blandy <jimb@redhat.com>
3471
3472 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3473 Linux entry point symbols for _dl_debug_state, too.
3474
3e210248
AC
34752003-06-13 Andrew Cagney <cagney@redhat.com>
3476
3477 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3478 available, do not use the FP register, and always save the TOS.
3479 * dummy-frame.c (dummy_frame_this_id): Do not assert
3480 SAVE_DUMMY_FRAME_TOS.
3481 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3482 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3483 (i386_push_dummy_call): Add 8 to the returned SP.
3484 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3485 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3486 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3487 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3488 (x86_64_push_dummy_call): Return "sp + 16".
3489 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3490 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3491 save_dummy_frame_tos.
3492
0b65af49
JB
34932003-06-13 Jim Blandy <jimb@redhat.com>
3494
3495 * frv-tdep.c (frv_use_struct_convention): Delete static
3496 declaration for function deleted in my change of 2003-06-12.
3497
4ea2465e
TR
34982003-06-13 Theodore A. Roth <troth@openavr.org>
3499
3500 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3501 (avr_pointer_to_address): Shift code addrs left 1 bit.
3502 (avr_convert_from_func_ptr_addr): Delete function since operation is
3503 better handled by avr_address_to_pointer and avr_pointer_to_address.
3504 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3505
1581182a
MK
35062003-06-13 Mark Kettenis <kettenis@gnu.org>
3507
3508 From Kelley Cook <kelleycook@wideopenwest.com>:
3509 * configure.host: Accept i[34567]86 variants.
3510 * configure.tgt: Likewise.
3511 * nlm/configure.in: Likewise.
3512 * nlm/configure: Regenerated.
3513
7aa1783e
RE
35142003-06-13 Richard Earnshaw <rearnsha@arm.com>
3515
3516 * arm-tdep.c (solib-svr4.h): Dont' include it.
3517 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3518 * arm-linux-tdep.c: ... here. Make static.
3519 (arm_linux_init_abi): Register it.
3520 (solib-svr4.h): Include it.
3521 * Makefile.in: Update dependencies.
3522 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3523 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3524
0261a0d0
CV
35252003-06-13 Corinna Vinschen <vinschen@redhat.com>
3526
3527 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3528 indicate registers used for return values.
3529 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3530 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3531 members.
3532 (h8300_init_extra_frame_info): Ditto.
3533 (h8300_frame_locals_address): Removed.
3534 (h8300_frame_args_address): Removed.
3535 (h8300_extract_return_value): Use new regcache structure. Only care
3536 for 16 bit CPUs.
3537 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3538 (h8300_store_return_value): Use new regcache structure. Only care
3539 for 16 bit CPUs.
3540 (h8300h_store_return_value): Same function for 32 bit CPUs.
3541 (h8300_store_struct_return): Removed.
3542 (h8300_extract_struct_value_address): Use new regcache structure.
3543 (h8300h_extract_struct_value_address): Removed.
3544 (h8300_push_dummy_code): New function.
3545 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3546 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3547 set_gdbarch_store_return_value architecture dependent.
3548 Call set_gdbarch_push_dummy_code and
3549 set_gdbarch_extract_struct_value_address.
3550 Remove calls to set_gdbarch_frame_args_address,
3551 set_gdbarch_frame_locals_address,
3552 set_gdbarch_deprecated_store_struct_return,
3553 set_gdbarch_deprecated_extract_return_value,
3554 set_gdbarch_deprecated_extract_struct_value_address,
3555 set_gdbarch_deprecated_call_dummy_words and
3556 set_gdbarch_deprecated_sizeof_call_dummy_words.
3557
055c394a
CV
35582003-06-13 Corinna Vinschen <vinschen@redhat.com>
3559
3560 * h8300-tdep.c (h8300_register_byte): Remove.
3561 (h8300h_register_byte): Remove.
3562 (h8300_register_virtual_type): Remove. Substitute by...
3563 (h8300_register_type): New function.
3564 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3565 (h8300h_extract_struct_value_address): Ditto.
3566 (h8300_gdbarch_init): Drop calls to
3567 set_gdbarch_deprecated_register_byte and
3568 set_gdbarch_deprecated_register_virtual_type.
3569 Add call to set_gdbarch_register_type.
3570
9c04cab7
AC
35712003-06-13 Andrew Cagney <cagney@redhat.com>
3572
3573 * gdbarch.sh: Update comments on registers.
3574 (deprecated_register_byte): Rename register_byte.
3575 (deprecated_register_raw_size): Rename register_raw_size.
3576 (deprecated_register_virtual_size): Rename register_virtual_size.
3577 (deprecated_register_virtual_type): Rename register_virtual_type.
3578 * gdbarch.h, gdbarch.c: Re-generate.
3579 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3580 * vax-tdep.c (vax_gdbarch_init): Update.
3581 * v850-tdep.c (v850_gdbarch_init): Update.
3582 * sparc-tdep.c (sparc_gdbarch_init): Update.
3583 * sh-tdep.c (sh_gdbarch_init): Update.
3584 * s390-tdep.c (s390_gdbarch_init): Update.
3585 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3586 * ns32k-tdep.c: Update.
3587 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3588 * mips-tdep.c (mips_gdbarch_init): Update.
3589 * mcore-tdep.c (mcore_gdbarch_init): Update.
3590 * m68k-tdep.c (m68k_gdbarch_init): Update.
3591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3592 * ia64-tdep.c (ia64_gdbarch_init): Update.
3593 * hppa-tdep.c (hppa_gdbarch_init): Update.
3594 * h8300-tdep.c (h8300_gdbarch_init): Update.
3595 * frv-tdep.c (frv_gdbarch_init): Update.
3596 * cris-tdep.c (cris_gdbarch_init): Update.
3597 * avr-tdep.c (avr_gdbarch_init): Update.
3598 * alpha-tdep.c (alpha_gdbarch_init): Update.
3599 * arm-tdep.c (arm_gdbarch_init): Update.
3600
b060cbea
AC
36012003-06-13 Andrew Cagney <cagney@redhat.com>
3602
3603 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3604 mips_o32_use_struct_convention with always_use_struct_convention.
3605
0fc9922a
DC
36062003-06-12 David Carlton <carlton@kealia.com>
3607
3608 * cp-namespace.c (cp_set_block_scope): Comment out
3609 processing_has_namespace_info branch.
3610
1fd35568
JB
36112003-06-12 Jim Blandy <jimb@redhat.com>
3612
f470a70a
JB
3613 Recognize and skip 64-bit PowerPC Linux linkage functions.
3614 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3615 insn_pattern, insns_match_pattern, d_field, ds_field): New
3616 functions, macros, and types for working with PPC instructions.
3617 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3618 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3619 ppc64_skip_trampoline_code): New functions, variables, and macros
3620 for recognizing and skipping linkage functions.
3621 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3622 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3623
49ff75ad
JB
3624 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3625 register offsets for both the 32- and 64-bit interfaces.
3626
bd918c83
JB
3627 Actually finish the job started by my change of 2003-05-29.
3628 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3629 other #definition of this.
3630 (ppc_linux_skip_trampoline_code): Remove declaration.
3631 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3632 static.
3633 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3634 method for GDBARCH.
3635
3636 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3637 'long' on ppc64-*-linux*.
3638
f8c59253
JB
3639 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3640 isn't #defined, assume the register doesn't exist: act as if
3641 tdep->ppc_mq_regnum were -1.
3642
8fbb30b1
JB
3643 * configure.host, configure.tgt: Add entries for
3644 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3645 powerpc/linux.mt.
3646 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3647 New files.
3648
1fd35568
JB
3649 * arch-utils.c (always_use_struct_convention): New function.
3650 * arch-utils.h (always_use_struct_convention): New prototype.
3651 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3652 (alpha_gdbarch_init): Register always_use_struct_convention,
3653 instead of alpha_use_struct_convention.
3654 * cris-tdep.c (cris_use_struct_convention): Delete.
3655 (cris_gdbarch_init): Register always_use_struct_convention,
3656 instead of cris_use_struct_convention.
3657 * frv-tdep.c (frv_use_struct_convention): Delete.
3658 (frv_gdbarch_init): Register always_use_struct_convention,
3659 instead of frv_use_struct_convention.
3660 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3661 (h8300_gdbarch_init): Register always_use_struct_convention,
3662 instead of h8300_use_struct_convention.
e3305dd9 3663 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3664 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3665 instead of mips_o32_use_struct_convention.
3666
e14e6e9c
AC
36672003-06-12 Andrew Cagney <cagney@redhat.com>
3668
3669 * wince.c: Include "mips-tdep.h".
3670 * mips-tdep.h (mips_next_pc): Declare.
3671 * mcore-tdep.c: Make more local functions static.
3672 * Makefile.in (wince.o): Update dependencies.
3673
2335f48e
DC
36742003-06-12 David Carlton <carlton@kealia.com>
3675
3676 * symtab.c (lookup_symbol_aux_minsyms): Replace
3677 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3678 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3679 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3680 SYMBOL_NATURAL_NAME.
3681
f70a7d61
AS
36822003-06-12 Andreas Schwab <schwab@suse.de>
3683
3684 * Makefile.in (tuiDisassem.o): Update dependencies.
3685
b6429628
DC
36862003-06-12 David Carlton <carlton@bactrian.org>
3687
3688 * symtab.h: Delete declaration of make_symbol_overload_list.
3689 Add declaration of lookup_partial_symbol.
3690 * symtab.c (remove_params): Move to cp-support.c.
3691 (overload_list_add_symbol, make_symbol_overload_list)
3692 (sym_return_val_size, sym_return_val_index): Ditto.
3693 (lookup_partial_symbol): Make extern.
3694 * cp-support.h: Add declaration of make_symbol_overload_list.
3695 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3696 symtab.h, and block.h.
3697 (remove_params): Move here from symtab.c.
3698 (overload_list_add_symbol, make_symbol_overload_list)
3699 (sym_return_val_size, sym_return_val_index): Ditto.
3700 * valops.c: Include cp-support.h.
3701 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3702 frame_h, and block_h.
3703 (valops.o): Depend on cp_support_h.
3704
084edea5
CV
37052003-06-12 Corinna Vinschen <vinschen@redhat.com>
3706
3707 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3708 substitute by NUM_REGS throughout.
3709 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3710 (h8300s_register_name): New function for H8S registers.
3711 (h8300sx_register_name): Ditto for H8SX registers.
3712 (h8300_print_register): Revise register printing, avoid depending
3713 on 32 bit long.
0261a0d0 3714 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3715 (h8300h_register_byte): New function for any other architecture.
3716 (h8300_register_raw_size): Remove.
3717 (h8300_register_virtual_type): Revise to return actually useful
3718 type.
3719 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3720 (h8300h_extract_struct_value_address): New function for any other
3721 architecture.
3722 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3723 set_gdbarch_register_name, set_gdbarch_register_byte,
3724 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3725 Remove calls to set_gdbarch_deprecated_register_size,
3726 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3727 set_gdbarch_deprecated_max_register_raw_size,
3728 set_gdbarch_register_virtual_size and
3729 set_gdbarch_deprecated_max_register_virtual_size entirely.
3730 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3731 set_gdbarch_long_double_bit.
3732
06194148
JJ
37332003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3734
8ffd9b1b
AJ
3735 * doublest.c (convert_doublest_to_floatformat): When dealing
3736 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3737 processing a full 32 bits of mantissa.
3738
de4f826b
DC
37392003-06-11 David Carlton <carlton@bactrian.org>
3740
3741 * dictionary.h: New.
3742 * dictionary.c: New.
3743 * block.h: Add opaque declaration for struct dictionary.
3744 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3745 'sym' members.
3746 (BLOCK_DICT): New macro.
3747 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3748 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3749 BLOCK_SHOULD_SORT.
3750 (ALL_BLOCK_SYMBOLS): Update definition.
3751 * Makefile.in (SFILES): Add dictionary.c.
3752 (dictionary_h): New.
3753 (COMMON_OBS): Add dictionary.o.
3754 (dictionary.o): New.
3755 (ada-lang.o): Depend on dictionary_h.
3756 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3757 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3758 (mi-cmd-stack.o): Ditto.
3759 (gdbtk-cmds.o): Update dependencies.
3760 (gdbtk-stack.o): Ditto.
3761 * ada-lang.c: Include dictionary.h.
3762 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3763 (fill_in_ada_prototype, debug_print_block): Ditto.
3764 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3765 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3766 'is_sorted'.
3767 * mdebugread.c: Include dictionary.h.
3768 (struct parse_stack): Delete 'maxsyms' member.
3769 (parse_symbol): Update calls to new_block. Delete calls to
3770 shrink_block. Use dictionary methods.
3771 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3772 Update calls to new_symtab. Don't maintain maxsyms data.
3773 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3774 (add_symbol): Just call dict_add_symbol.
3775 (new_symtab): Delete 'maxsyms' argument.
3776 (new_symtab): Update calls to new_block.
3777 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3778 (shrink_block): Delete function.
3779 (fixup_sigtramp): Update call to new_block. Add symbol via
3780 dict_add_symbol.
3781 * jv-lang.c: Include dictionary.h.
3782 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3783 appropriately. Set class_symtab->free_func. Make sure the
3784 blockvector is big enough to hold two blocks.
3785 (add_class_symtab_symbol): Use dictionary methods.
3786 (free_class_block): New function.
3787 (type_from_class): Replace explicit iteration by
3788 ALL_BLOCK_SYMBOLS.
3789 * symtab.h (struct symtab): Replace 'free_ptr' method by
3790 'free_func'.
3791 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3792 sort_symtab_syms.
3793 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3794 sort_symtab_syms.
3795 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3796 Include dictionary.h.
3797 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3798 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3799 sort_symtab_syms.
3800 * objfiles.c: Include dictionary.h.
3801 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3802 * buildsym.c: Include dictionary.h.
3803 (finish_block): Use dictionary methods.
3804 (end_symtab): Set free_func to NULL, not free_ptr.
3805 * tracepoint.c: Include dictionary.h.
3806 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3807 (scope_info): Ditto.
3808 * stack.c: Include dictionary.h.
3809 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3810 (print_block_frame_labels, print_frame_arg_vars)
3811 (print_frame_args): Ditto.
3812 * symmisc.c (free_symtab_block): Use dictionary methods.
3813 (dump_symtab): Ditto.
3814 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3815 Include dictionary.h.
3816 * symfile.h: Delete declarations of sort_block_syms,
3817 sort_symtab_syms.
3818 * symfile.c (sort_block_syms): Delete.
3819 (sort_symtab_syms): Delete.
3820 * symtab.c: Include dictionary.h.
3821 (lookup_block_symbol): Use dictionary iterators.
3822 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3823 (search_symbols, make_symbol_completion_list): Ditto.
3824 (make_symbol_overload_list): Ditto.
3825 * valops.c (value_of_local): Use dict_empty.
3826 Include dictionary.h.
3827
a31f978c
JB
38282003-06-11 J. Brobecker <brobecker@gnat.com>
3829
3830 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3831
526e70c0
DC
38322003-06-11 David Carlton <carlton@bactrian.org>
3833
3834 * block.h (BLOCK_SHOULD_SORT): Delete.
3835 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3836 blocks.
3837 * ada-lang.c (ada_add_block_symbols): Ditto.
3838 * symfile.c (sort_block_syms): Delete.
3839 (sort_symtab_syms): Ditto.
3840 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3841 declarations.
3842 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3843 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3844 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3845 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3846 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3847 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3848 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3849
33c08150
JJ
38502003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3851
8ffd9b1b 3852 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3853 bits to 128.
3854
781a750d
AC
38552003-06-11 Andrew Cagney <cagney@redhat.com>
3856
3857 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3858 REGISTER_CONVERTIBLE.
3859 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3860 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3861 * gdbarch.h, gdbarch.c: Re-generate.
3862 * arch-utils.h (deprecated_register_convertible_not): Rename
3863 generic_register_convertible_not.
3864 * arch-utils.c (deprecated_register_convertible_not): Rename
3865 generic_register_convertible.
3866 (legacy_convert_register_p, legacy_register_to_value): Update.
3867 * sh-tdep.c (sh64_push_arguments): Update.
3868 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3869 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3870 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3871 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3872 * arch-utils.c (legacy_value_to_register): Update.
3873 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3874 (rs6000_register_convert_to_raw): Make parameter "from" const.
3875 * mips-tdep.c (mips_gdbarch_init): Update.
3876 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3877 * infcmd.c (default_print_registers_info): Update.
3878 * ia64-tdep.c (ia64_gdbarch_init): Update.
3879 (ia64_register_convert_to_raw): Make parameter "from" const.
3880 * i386-tdep.c (i386_gdbarch_init): Update.
3881 (i386_register_convert_to_raw): Update.
3882
cd90e54f
AC
38832003-06-11 Andrew Cagney <cagney@redhat.com>
3884
3885 * remote-fileio.c: Include "remote-fileio.h".
3886 * Makefile.in (remote-fileio.o): Update dependencies.
3887 (remote_fileio_h): Fix typo.
3888
a78f21af
AC
38892003-06-11 Andrew Cagney <cagney@redhat.com>
3890
3891 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3892 (xstormy16_save_dummy_frame_tos): Make static.
3893 (_initialize_xstormy16_tdep): Add declaration.
3894 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3895 * v850-tdep.c: Make local functions static.
3896 (_initialize_v850_tdep): Add declaration.
3897 * sparc-tdep.c: Make local functions static.
3898 (_initialize_sparc_tdep): Add declaration.
3899 * sh-tdep.c: Make local functions static.
3900 (_initialize_sh_tdep): Add declaration.
3901 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3902 * s390-tdep.c: Make local functions static.
3903 (_initialize_s390_tdep): Add declaration.
3904 * dbxread.c (find_stab_function_addr): Make static.
3905 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3906 * ocd.c (_initialize_remote_ocd): Add declaration.
3907 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3908 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3909 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3910 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3911 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3912 * remote-array.c (_initialize_array): Add declaration.
3913 (_initialize_remote_monitors): Add declaration.
3914 * remote-mips.c: Make local functions static.
3915 (_initialize_remote_mips): Add declaration.
3916 * mcore-tdep.c: Make all local functions static.
3917 (_initialize_mcore_tdep): Add declaration.
3918 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3919 * abug-rom.c (_initialize_abug_rom): Add declaration.
3920 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3921 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3922 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3923 * remote-est.c (_initialize_est): Add declaration.
3924 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3925 (m68hc11_call_dummy_address): Make static.
3926 * ia64-tdep.c: Make local functions static.
3927 (_initialize_ia64_tdep): Add declaration.
3928 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3929 * monitor.c (monitor_wait_filter): Make static.
3930 (_initialize_remote_monitors): Add declaration.
3931 * remote-hms.c (_initialize_remote_hms): Add declaration.
3932 * remote-e7000.c (fetch_regs_from_dump): Make static.
3933 (expect_n): Make static.
3934 (_initialize_remote_e7000): Add declaration.
3935 * ser-e7kpc.c: Always include "defs.h".
3936 (_initialize_ser_e7000pc): Add declaration.
3937 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3938 * cris-tdep.c: Make all but one function static.
3939 (_initialize_cris_tdep): Add declaration.
3940 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3941 * solib.c (update_solib_list): Make static.
3942 (_initialize_solib): Add declaration.
3943 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3944 (_initialize_avr_tdep): Add declaration.
3945 * remote-rdi.c (voiddummy): Make static.
3946 (_initialize_remote_rdi): Add declaration.
3947 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3948 * remote-rdp.c (send_rdp): Make static.
3949 (_initialize_remote_rdp): Add declaration.
3950 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3951
cbcdb1f5
CV
39522003-06-11 Corinna Vinschen <vinschen@redhat.com>
3953
3954 * remote-fileio.c: Make ari happy.
3955
a191ea8d
JB
39562003-06-10 J. Brobecker <brobecker@gnat.com>
3957
3958 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3959 fetching the trailing bytes of the buffer we are about to write.
3960
0ef75e11
AC
39612003-06-10 Andrew Cagney <cagney@redhat.com>
3962
3963 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3964 * Makefile.in (remote-fileio.o): Update dependencies.
3965 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3966 include <setjmp.h>, or <sys/types.h> conditional on USG.
3967 (remote_fio_jmp_buf): Delete global variable.
3968
449092f6 39692003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3970 Martin M. Hunt <hunt@redhat.com>
449092f6 3971
559fa028
AC
3972 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3973 (SFILES): Add remote-fileio.c.
3974 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3975 dependencies for building remote.o.
449092f6
CV
3976 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3977 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3978 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3979 static storage class.
3980 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3981 'F' packet.
3982 (_initialize_remote): Call initialize_remote_fileio().
3983 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3984 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3985 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3986 (captured_main): Initialize new ui_files.
3987 * ui-file.c: Add read and fgets input functions.
3988 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3989 (null_file_read): New function.
3990 (ui_file_read): New function.
3991 (set_ui_file_read): New function.
3992 (stdio_file_read): New function.
3993 * ui-file.h: New type ui_file_read_ftype.
3994 (set_ui_file_read): Declare.
3995 (ui_file_read): Declare.
3996
248de703
AC
39972003-06-09 Andrew Cagney <cagney@redhat.com>
3998
3999 * frame.h (deprecated_unwind_get_saved_register): Rename
4000 generic_unwind_get_saved_register, update comments.
4001 * mips-tdep.c (mips_get_saved_register): Update.
4002 * frame.c (deprecated_unwind_get_saved_register): Update.
4003
0ed8aa57
AC
40042003-06-09 Andrew Cagney <cagney@redhat.com>
4005
4006 * vax-tdep.c (vax_frame_locals_address): Delete function.
4007 (vax_gdbarch_init): Do not set frame_locals_address.
4008 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4009 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4010 * s390-tdep.c (s390_frame_args_address): Delete function.
4011 (s390_gdbarch_init): Do not set frame_args_address or
4012 frame_locals_address.
4013 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4014 (ns32k_gdbarch_init): Do not set frame_locals_address.
4015 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4016 (hppa_frame_locals_address): Delete function.
4017 (hppa_gdbarch_init): Do not set frame_args_address, or
4018 frame_locals_address.
4019 * arm-tdep.c (arm_frame_args_address): Delete.
4020 (arm_frame_locals_address): Delete.
4021 (arm_gdbarch_init): Do not set frame_args_address, or
4022 frame_locals_address.
4023
983a287a
AC
40242003-06-09 Andrew Cagney <cagney@redhat.com>
4025
4026 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4027 * gdbarch.h, gdbarch.c: Re-generate.
4028 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4029 * arch-utils.c (frame_num_args_unknown): Delete function.
4030 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4031 (frame_info): Use FRAME_NUM_ARGS_P.
4032 * arm-tdep.c (arm_frame_num_args): Delete function.
4033 (arm_gdbarch_init): Do not set frame_num_args.
4034 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4035 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4036 (hppa_gdbarch_init): Do not set frame_num_args.
4037 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4039 frame_num_args to default frame_num_args_unknown.
4040 * v850-tdep.c (v850_gdbarch_init): Ditto.
4041 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4042 * sh-tdep.c (sh_gdbarch_init): Ditto.
4043 * s390-tdep.c (s390_gdbarch_init): Ditto.
4044 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4045 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4046 * mips-tdep.c (mips_gdbarch_init): Ditto.
4047 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4048 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4050 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4051 * i386-tdep.c (i386_gdbarch_init): Ditto.
4052 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4053 * frv-tdep.c (frv_gdbarch_init): Ditto.
4054 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4055 * cris-tdep.c (cris_gdbarch_init): Ditto.
4056 * avr-tdep.c (avr_gdbarch_init): Ditto.
4057 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4058
8d3b0994
AC
40592003-06-09 Andrew Cagney <cagney@redhat.com>
4060
4061 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4062 (print_frame_args): Moved to "stack.c".
4063 * stack.c: Include "gdb_assert.h".
4064 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4065 (print_frame_args): Moved from "printcmd.c".
4066 * frame.h (print_frame_args): Delete declaration.
4067 * Makefile.in (stack.o): Update dependencies.
4068
25e3a86b
AC
40692003-06-08 Andrew Cagney <cagney@redhat.com>
4070
4071 * frame.c (get_prev_frame): Remove reference to
4072 frame_args_address_correct in comments.
4073 * frame-base.c (default_frame_args_address): Delete code
4074 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4075 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4076 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4077 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4078 (vax_frame_args_address_correct): Delete declaration.
4079
a9e5fdc2
AC
40802003-06-08 Andrew Cagney <cagney@redhat.com>
4081
4082 * gdbarch.sh (UNWIND_SP): Add.
4083 * gdbarch.h, gdbarch.c: Re-generate.
4084 * frame.c (frame_sp_unwind): New function.
4085 (get_frame_sp): New function.
4086 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4087 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4088 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4089 value.
4090 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4091 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4092
8983bd83
AC
40932003-06-08 Andrew Cagney <cagney@redhat.com>
4094
7fec2c59
AC
4095 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4096 REMOTE_BREAKPOINT.
4097 * remote.c: Update.
4098 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4099 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4100 * config/m68k/tm-sun3.h: Update.
4101 * config/m68k/tm-m68klynx.h: Update.
4102 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4103
8983bd83
AC
4104 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4105 trad_frame". Update comments.
4106 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4107 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4108 (trad_frame_register_value, trad_frame_prev_register): Update.
4109
b9362cc7
AC
41102003-06-08 Andrew Cagney <cagney@redhat.com>
4111
4112 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4113 from GCC's acinclude.m4.
4114 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4115 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4116 * main.c (error_init): Delete declaration.
4117 * defs.h (error_init): Declare.
4118 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4119 (rs6000_convert_from_func_ptr_addr): Make static.
4120 (_initialize_rs6000_tdep): Add declaration.
4121 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4122 (show_commands, set_verbose, show_history): Delete declaration.
4123 * top.h (set_verbose): Add declaration.
4124 (show_history, set_history, show_commands): Add declaration.
4125 (do_restore_instream_cleanup): Add declaration.
4126 * objc-lang.c (specialcmp): Make static.
4127 (print_object_command): Make static.
4128 (find_objc_msgsend): Make static.
4129 (find_objc_msgcall_submethod_helper): Make static.
4130 (find_objc_msgcall_submethod): Make static.
4131 (_initialize_objc_language): Add declaration.
4132 (find_implementation_from_class): Make static.
4133 (find_implementation): Make static.
4134 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4135 * objc-lang.h (lookup_struct_typedef): Add declaration.
4136 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4137 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4138 (do_restore_user_call_depth): Make static.
4139 (do_restore_instream_cleanup): Delete declaration.
4140 (dont_repeat): Delete declaration.
4141 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4142 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4143 * reggroups.c (_initialize_reggroup): Add declaration.
4144 * cp-support.c (_initialize_cp_support): Add declaration.
4145 * cp-abi.c (_initialize_cp_abi): Add declaration.
4146 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4147 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4148 (_initialize_gnu_v3_abi): Add declaration.
4149 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4150 (_initialize_gnu_v2_abi): Add declaration.
4151 * frame-base.c (_initialize_frame_base): Add declaration.
4152 * doublest.c (floatformat_from_length): Make static.
4153 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4154 * frame.c (create_sentinel_frame): Make static.
4155 (_initialize_frame): Add declaration.
4156 * top.c (do_catch_errors): Make static.
4157 (gdb_rl_operate_and_get_next_completion): Make static.
4158 * typeprint.c: Include "typeprint.h".
4159 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4160 (sentinel_frame_this_id): Make static.
4161 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4162 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4163 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4164 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4165 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4166 * maint.c (maintenance_print_architecture): Make static.
4167 * signals/signals.c (_initialize_signals): Add declaration.
4168 * std-regs.c (_initialize_frame_reg): Add declaration.
4169 * jv-exp.y (push_variable): ISO C definition.
4170 (push_qualified_expression_name): Ditto.
4171 * memattr.c (_initialize_mem): Add declaration.
4172 * remote.c (remote_check_watch_resources): Make static.
4173 (remote_stopped_by_watchpoint): Make static.
4174 (remote_stopped_data_address): Make static.
4175 * d10v-tdep.c (nr_dmap_regs): Make static.
4176 (a0_regnum): Make static.
4177 (d10v_frame_unwind_cache): Make static.
4178 (d10v_frame_p): Make static.
4179 * osabi.c (show_osabi): Make static.
4180 (_initialize_gdb_osabi): Add extern declaration.
4181 * gdbtypes.c (make_qualified_type): Make static.
4182 (safe_parse_type): Make static.
4183 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4184 * macrotab.c (macro_bcache_free): Make static.
4185 * interps.c (interp_set_quiet): Make static.
4186 (interpreter_exec_cmd): Make static.
4187 * stack.h (select_frame_command): New file.
4188 * stack.c: Include "stack.h".
4189 (select_frame_command_wrapper): Delete function.
4190 (select_frame_command): Make global.
4191 * infcall.c: Include "infcall.h".
4192 * linespec.c: Include "linespec.h".
4193 * symfile.c (sections_overlap): Make static.
4194 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4195 * charset.c (_initialize_charset): Add missing prototype.
4196 * regcache.c (init_legacy_regcache_descr): Make static.
4197 (do_regcache_xfree): Make static.
4198 (regcache_xfer_part): Make static.
4199 (_initialize_regcache): Add missing prototype.
4200 * breakpoint.c (parse_breakpoint_sals): Make static.
4201 (breakpoint_sals_to_pc): Make static.
4202 * interps.h (clear_interpreter_hooks): ISO C declaration.
4203 * Makefile.in (stack_h): Define.
4204 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4205 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4206
a0f267c7
AC
42072003-06-08 Andrew Cagney <cagney@redhat.com>
4208
4209 * Makefile.in (d10v-tdep.o): Update dependencies.
4210 (SFILES): Add trad-frame.c.
4211 (trad_frame_h): Define.
4212 (COMMON_OBS): Add trad-frame.o.
4213 (trad-frame.o): Specify dependencies.
4214 * d10v-tdep.c: Include "trad-frame.h".
4215 (saved_regs_unwinder): Delete function.
4216 (d10v_frame_prev_register): Use trad_frame_prev_register.
4217 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4218 trad_frame", delete "regs" and "prev_sp".
4219 (prologue_find_regs): Use trad-frame.
4220 * trad-frame.h, trad-frame.c: New files.
4221
4538b4f4
MK
42222003-06-08 Mark Kettenis <kettenis@gnu.org>
4223
4224 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4225
a0273b2f
AF
42262003-06-07 Adam Fedor <fedor@gnu.org>
4227
4228 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4229 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4230 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4231 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4232 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4233 Use it.
4234
3a6c3343
AC
42352003-06-07 Andrew Cagney <cagney@redhat.com>
4236
4237 * symfile.h: Re-indent, clean up comments.
4238
b46e02f6
AC
42392003-06-07 Andrew Cagney <cagney@redhat.com>
4240
4241 * inferior.h (deprecated_write_sp): Replace
4242 generic_target_write_sp.
4243 * regcache.c (deprecated_write_sp): Replace
4244 generic_target_write_sp.
4245 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4246 * vax-tdep.c (vax_gdbarch_init): Update.
4247 * v850-tdep.c (v850_gdbarch_init): Update.
4248 * sparc-tdep.c (sparc_gdbarch_init): Update.
4249 * sh-tdep.c (sh_gdbarch_init): Update.
4250 * s390-tdep.c (s390_gdbarch_init): Update.
4251 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4252 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4253 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4254 * mcore-tdep.c (mcore_gdbarch_init): Update.
4255 * m68k-tdep.c (m68k_gdbarch_init): Update.
4256 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4257 * ia64-tdep.c (ia64_gdbarch_init): Update.
4258 * h8300-tdep.c (h8300_gdbarch_init): Update.
4259 * frv-tdep.c (frv_gdbarch_init): Update.
4260 * cris-tdep.c (cris_gdbarch_init): Update.
4261 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4262
a42e117c
AC
42632003-06-07 Andrew Cagney <cagney@redhat.com>
4264
4265 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4266 Assert that PC_REGNUM is valid.
4267 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4268
bd1ce8ba
AC
42692003-06-07 Andrew Cagney <cagney@redhat.com>
4270
4271 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4272 * gdbarch.h, gdbarch.c: Regenerate.
4273 * mn10300-tdep.c: Include "gdb_assert.h".
4274 (mn10300_read_fp): New function.
4275 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4276 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4277 * ia64-tdep.c: Include "gdb_assert.h".
4278 (ia64_read_fp): New function.
4279 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4280 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4281 * regcache.c (generic_target_read_sp): Delete function.
4282 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4283 * inferior.h (generic_target_read_sp): Delete declaration.
4284 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4285 generic_target_read_sp.
4286 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
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 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4291
ec5cbaec
AC
42922003-06-07 Andrew Cagney <cagney@redhat.com>
4293
4294 * gdbarch.sh: Comment each field of startup_gdbarch.
4295 * gdbarch.h, gdbarch.c: Re-generate.
4296
cde9ea48
AC
42972003-06-07 Andrew Cagney <cagney@redhat.com>
4298
4299 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4300 * gdbarch.h, gdbarch.c: Re-generate.
4301 * regcache.c: Update comments on read_pc et.al.
4302 (generic_target_read_pc): Delete function.
4303 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4304 * inferior.h (generic_target_read_pc): Delete declaration.
4305 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4306 generic_target_read_pc.
4307 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4308 * sh-tdep.c (sh_gdbarch_init): Ditto.
4309 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4311
9a90a780
AC
43122003-06-07 Andrew Cagney <cagney@redhat.com>
4313
4314 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4315 "index" with "special_local_sect". Use strcmp instead of STREQ.
4316 Append period to coments.
4317
a39a16c4
MM
43182003-06-06 Mark Mitchell <mark@codesourcery.com>
4319
4320 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4321 (elfstab_offset_sections): Likewise.
4322 * gdb-stabs.h (stab_section_info): Likewise.
4323 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4324 * objfiles.c (objfile_relocate): Likewise.
4325 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4326 * remote.c (get_offsets): Likewise.
4327 (remote_cisco_objfile_relocate): Likewise.
4328 * somread.c (som_symfile_offsets): Likewise.
4329 * symfile.c (alloc_section_addr_info): New function.
4330 (build_section_addr_info_from_section_tab): Use it.
4331 (free_section_addr_info): Adjust.
4332 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4333 (syms_from_objfile): Allocate local_addr dynamically.
4334 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4335 dynamically.
4336 (add_symbol_file_command): Allocate sect_opts dynamically.
4337 (reread_symbols): Avoid use of SECT_OFF_MAX.
4338 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4339 (alloc_section_addr_info): Declare it.
4340 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4341 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4342 dynamically.
4343 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4344
20c6c2f8
AC
43452003-06-06 Andrew Cagney <cagney@redhat.com>
4346
4347 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4348 (d10v_frame_unwind_cache): Do not set "return_pc".
4349
884a26c8
MS
43502003-06-06 Michael Snyder <msnyder@redhat.com>
4351
4352 * h8300-tdep.c: Make tidy (long lines).
4353
088ce440
ML
43542003-06-06 Michal Ludvig <mludvig@suse.cz>
4355
8ffd9b1b 4356 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4357 to regcache_collect().
4358
7d773d96
JB
43592003-06-05 J. Brobecker <brobecker@gnat.com>
4360
4361 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4362 pc_in_sigtramp multiarch method.
4363 (hppa_hpux_som_init_abi): Use it.
4364 (hppa_hpux_elf_init_abi): Likewise.
4365 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4366 macro has been multiarched.
4367 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4368 macro here, as hppa64 isn't multiarched yet.
4369
1df6926e
AC
43702003-06-05 Andrew Cagney <cagney@redhat.com>
4371
4372 * Makefile.in (value_h): Add $(frame_h).
4373 * value.h: Include "frame.h".
4374 (struct value): Replace "frame_addr" with "frame_id".
4375 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4376 * values.c (allocate_value): Use VALUE_FRAME_ID.
4377 (value_copy): Use VALUE_FRAME_ID.
4378 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4379 * valops.c (value_assign): Update. Use frame_find_by_id.
4380
6b53acc6
ML
43812003-06-05 Michal Ludvig <mludvig@suse.cz>
4382
4383 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4384 in each pass.
4385
4d9850d3
JJ
43862003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4387
4388 * thread-db.c (check_event): For create/death event breakpoints,
4389 loop through all messages to ensure that we read the message
4390 corresponding to the breakpoint we are at.
4391
8efca6ba
MS
43922003-06-04 Michael Snyder <msnyder@redhat.com>
4393
4394 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4395
0912c7f2
MK
43962003-06-04 Mark Kettenis <kettenis@gnu.org>
4397
4398 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4399 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4400 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4401 when handling .eh_frame sections.
4402
4e370325
JB
44032003-06-04 J. Brobecker <brobecker@gnat.com>
4404
4405 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4406 prepare_to_proceed procedure instead of the hppa-specific one.
4407 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4408
b757528f 44092003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4410
b757528f
JJ
4411 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4412 * config.in: Regenerated.
4413 * configure.in: Add test for syscall function and check for
4414 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4415 * configure: Regenerated.
4416 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4417 <sys/syscall.h>.
4418 (kill_lwp): New function that uses tkill syscall or
4419 uses kill, depending on whether threading model is nptl or not.
4420 All callers of kill() changed to use kill_lwp().
4421 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4422 see if all threads have already exited in the nptl model.
4423 (stop_and_resume_callback): New callback function used by the
4424 lin_lwp_wait thread exit handling code.
4425 (stop_wait_callback): Check for threads already having exited and
4426 delete such threads fromt the lwp list when discovered.
4427 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4428
b757528f
JJ
4429 Roland McGrath <roland@redhat.com>
4430 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4431 nptl libthread_db.
4432
087779b1
RH
44332003-06-03 Richard Henderson <rth@redhat.com>
4434
b21fd293
RH
4435 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4436 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4437 (alpha_sigtramp_frame_prev_register): Likewise.
4438 (alpha_heuristic_frame_prev_register): Likewise.
4439 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4440
8ffd9b1b 4441 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4442 alpha-specific register id names.
4443 (alpha_mdebug_frame_unwind_cache): Likewise.
4444 (alpha_mdebug_frame_prev_register): Likewise.
4445
baa490c4
RH
44462003-06-03 Richard Henderson <rth@redhat.com>
4447
4448 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4449 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4450 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4451 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4452 unwind routines.
4453 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4454 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4455 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4456
4457 * alpha-linux-tdep.c: Remove unnecessary includes.
4458 * Makefile.in (alpha-linux-tdep.o): Update.
4459
44602003-06-03 Richard Henderson <rth@redhat.com>
4461
4462 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4463 (alphabsd_fill_fpreg): Likewise.
4464
f534e522
JB
44652003-06-03 J. Brobecker <brobecker@gnat.com>
4466
4467 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4468 references to struct frame_info fields by calls to the equivalent
4469 accessors. Necessary now that frame_info is opaque.
4470
4035536b
JB
44712003-06-03 J. Brobecker <brobecker@gnat.com>
4472
4473 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4474 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4475 structure, field no longer exists.
4476
0bd79c5c
JB
44772003-06-03 J. Brobecker <brobecker@gnat.com>
4478
4479 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4480 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4481
37bb6d9f
JB
44822003-06-03 J. Brobecker <brobecker@gnat.com>
4483
4484 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4485 references to struct frame_info fields by calls to the equivalent
4486 accessors. Necessary now that frame_info is opaque.
4487
852ee05c
JB
44882003-06-03 J. Brobecker <brobecker@gnat.com>
4489
4490 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4491 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4492 structure, field no longer exists.
4493
7d58c67d
TR
44942003-06-03 Theodore A. Roth <troth@openavr.org>
4495
8ffd9b1b 4496 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4497 accumulation of the size of all registers instead of blindly using
4498 DEPRECATED_REGISTER_BYTES.
4499
0a48e7e8
MS
45002003-06-03 Michael Snyder <msnyder@redhat.com>
4501
4502 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4503 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4504 for h8300sx.
4505
9798ab0d
JB
45062003-06-03 J. Brobecker <brobecker@gnat.com>
4507
4508 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4509 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4510
00b037e2
AC
45112003-06-03 Andrew Cagney <cagney@redhat.com>
4512
4513 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4514 (sparc_convert_to_raw): Delete function.
4515 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4516 register_convert_to_virtual.
4517
043b2f77
JJ
45182003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4519
4520 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4521 layer if not dealing with a statically-linked threaded program.
4522
f43caff8
KW
45232003-06-03 Kris Warkentin <kewarken@qnx.com>
4524
4525 * solib.c (solib_open): Update comment to reflect actual search order.
4526
ae1e7417
AC
45272003-06-03 Andrew Cagney <cagney@redhat.com>
4528
4529 * frame.c (get_frame_memory_signed): New function.
4530 (get_frame_memory, get_frame_memory_unsigned): New function.
4531 (get_frame_arch): New function.
4532 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4533 (get_frame_memory, get_frame_unsigned_memory): Declare.
4534 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4535 get_frame_memory_unsigned and get_frame_arch.
4536 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4537
cb123844
RG
45382003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4539
4540 * MAINTAINERS (write after approval): Add myself.
4541
1bb792e9
JB
45422003-06-03 Jim Blandy <jimb@redhat.com>
4543
4544 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4545 elements of gregset_t are 64 bits each, but access registers
4546 are still 32 bits, so they're packed two per gregset_t
4547 element. Unpack/pack them properly.
4548
aee8d8ba
DC
45492003-06-02 David Carlton <carlton@bactrian.org>
4550
4551 * linespec.c (find_methods): Break out code into
4552 add_matching_methods and add_constructors.
4553 (add_matching_methods): New.
4554 (add_constructors): Ditto.
4555
bf7488d2
AC
45562003-06-02 Andrew Cagney <cagney@redhat.com>
4557
bf7488d2
AC
4558 * sparc-tdep.c (sparc_print_registers): Delete call to
4559 REGISTER_CONVERTIBLE.
4560 (sparc_gdbarch_init): Do not set register_convertible.
4561 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4562 * frv-tdep.c (frv_gdbarch_init): Ditto.
4563 * cris-tdep.c (cris_gdbarch_init): Ditto.
4564
adedef68
EZ
45652003-06-02 Elena Zannoni <ezannoni@redhat.com>
4566
8ffd9b1b 4567 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4568 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4569 (syms_from_objfile): Ditto.
4570
650fcc91
AS
45712003-06-03 Andreas Schwab <schwab@suse.de>
4572
4573 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4574 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4575
df4a182b
RH
45762003-06-02 Richard Henderson <rth@redhat.com>
4577
4578 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4579 a member of all_reggroup.
4580
c483c494
RH
45812003-06-02 Richard Henderson <rth@redhat.com>
4582
4583 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4584 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4585 (alpha_lds, alpha_sts): New.
4586 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4587 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4588 restructure and fail for type sizes other than 4 or 8.
4589 (alpha_value_to_register): Similarly.
4590 (alpha_extract_return_value): Use alpha_sts.
4591 (alpha_store_return_value): Use alpha_lds.
4592 (alpha_gdbarch_init): Update hooks.
4593
b38b6be2
RH
45942003-06-02 Richard Henderson <rth@redhat.com>
4595
4596 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4597 regnum identifiers.
4598 (alpha_sigtramp_register_address): Likewise.
4599
98a8e1e5
RH
46002003-06-02 Richard Henderson <rth@redhat.com>
4601
4602 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4603 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4604 * alpha-tdep.h: Declare them.
4605
4606 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4607 Remove zerobuf. Don't error on UNIQUE.
4608 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4609 (ALPHA_REGSET_UNIQUE): Provide default.
4610 (supply_gregset): Use alpha_supply_int_regs.
4611 (fill_gregset): Use alpha_fill_int_regs.
4612 (supply_fpregset): Use alpha_supply_fp_regs.
4613 (fill_fpregset): Use alpha_fill_fp_regs.
4614 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4615 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4616 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4617 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4618 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4619 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4620
67dfac52
RH
46212003-06-02 Richard Henderson <rth@redhat.com>
4622
f75d70cc
RH
4623 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4624
67dfac52
RH
4625 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4626 (alpha_store_return_value): Likewise.
4627
0cf566ec
DC
46282003-06-02 David Carlton <carlton@math.stanford.edu>
4629
4630 * block.c (contained_in): Add 'const' to arguments.
4631 (block_function): Ditto.
4632 * block.h: Update declarations for block_function and
4633 contained_in.
4634
cdef89d0
DC
46352003-06-02 David Carlton <carlton@math.stanford.edu>
4636
4637 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4638 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4639 * p-valprint.c (pascal_val_print): Ditto.
4640 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4641
72667056
RH
46422003-06-02 Richard Henderson <rth@redhat.com>
4643
98a8e1e5
RH
4644 * alpha-tdep.c (alpha_push_dummy_call): Use
4645 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4646
8ffd9b1b 4647 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4648 sign-extension of 32-bit values.
4649 (alpha_store_return_value): Similarly.
0ede8eca 4650
98a8e1e5
RH
4651 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4652 (alpha_extract_return_value): Likewise.
4653 (alpha_store_return_value): Likewise.
7b5e1cb3 4654
98a8e1e5
RH
4655 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4656 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4657
98a8e1e5
RH
4658 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4659 (alpha_extract_struct_value_address): Likewise.
4660 (alpha_store_return_value): Likewise.
4661 (alpha_store_struct_return): Remove.
4662 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4663
98a8e1e5
RH
4664 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4665 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4666 macros where appropriate.
4667 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4668 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4669
98a8e1e5
RH
4670 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4671 for SP, GP; void_func_ptr for PC; non-language-specific types
4672 for all others.
4673 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4674
6dd77b81
RH
46752003-06-02 Richard Henderson <rth@redhat.com>
4676
4677 * top.h (lim_at_start): Declare.
4678 * main.c (captured_main): Set it.
4679 * top.c (lim_at_start): Define.
4680 (command_loop): Use it instead of &environ.
4681 * event-top.c (command_handler): Likewise.
4682
f4dbdb54
JT
46832003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4684
4685 * mipsnbsd-tdep.c: Update copyright years.
4686 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4687
8f285956
RH
46882003-06-01 Richard Henderson <rth@redhat.com>
4689
98a8e1e5
RH
4690 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4691 (alpha-linux-tdep.o): Update dependencies.
4692 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4693 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4694
615967cb
RH
46952003-06-01 Richard Henderson <rth@redhat.com>
4696
98a8e1e5
RH
4697 * alpha-tdep.c (alpha_register_reggroup_p): New.
4698 (alpha_gdbarch_init): Register it.
615967cb 4699
b59661bd
AC
47002003-06-02 Andrew Cagney <cagney@redhat.com>
4701
4702 * dwarfread.c: Eliminate "register"
4703 (decode_die_type): Eliminate assignment within "if".
4704 (struct_type, decode_array_element_type): Ditto.
4705 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4706 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4707 (decode_modified_type, completedieinfo): Ditto.
4708 * block.c: Eliminate "register".
4709 (blockvector_for_pc_sect): Eliminate assignment within "if".
4710 * cp-support.h (struct symbol): Opaque declaration.
4711 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4712
5ef165c2
RH
47132003-06-01 Richard Henderson <rth@redhat.com>
4714
98a8e1e5
RH
4715 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4716 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4717
143985b7
AF
47182003-06-01 Adam Fedor <fedor@gnu.org>
4719
4720 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4721 * gdbarch.[ch]: Regenerate.
4722 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4723 (hppa_gdbarch_init): Set it in the gdbarch vector.
4724 * i386-tdep.c (i386_fetch_pointer_argument): New
4725 (i386_gdbarch_init): Set it into gdbarch.
4726 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4727 (rs6000_gdbarch_init): Set it in gdbarch.
4728 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4729 (sparc_gdbarch_init): Set it in gdbarch.
4730
ae0167b9
AC
47312003-06-01 Andrew Cagney <cagney@redhat.com>
4732
7c0b4a20
AC
4733 * defs.h (extract_address): Delete declaration.
4734 * findvar.c (extract_address): Delete function.
4735 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4736 extract_address with the inline equivalent,
4737 extract_unsigned_integer.
4738 (xstormy16_extract_struct_value_address): Ditto.
4739 (xstormy16_pointer_to_address): Ditto.
4740 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4741 * v850-tdep.c (v850_push_arguments): Ditto.
4742 (v850_extract_return_value): Ditto.
4743 (v850_extract_struct_value_address): Ditto.
4744 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4745 (sparcnbsd_get_longjmp_target_64): Ditto.
4746 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4747 (get_longjmp_target): Ditto.
4748 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4749 (sh64_extract_struct_value_address): Ditto.
4750 (sh_push_arguments): Ditto.
4751 (sh64_push_arguments): Ditto.
4752 * remote-vxsparc.c (vx_read_register): Ditto.
4753 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4754 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4755 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4756 * mipsv4-nat.c (get_longjmp_target): Ditto.
4757 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4758 * mips-nat.c (get_longjmp_target): Ditto.
4759 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4760 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4761 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4762 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4763 * irix5-nat.c (get_longjmp_target): Ditto.
4764 * irix4-nat.c (get_longjmp_target): Ditto.
4765 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4766 (ia64_push_arguments): Ditto.
4767 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4768 * h8300-tdep.c (h8300_push_arguments): Ditto.
4769 (h8300_store_return_value): Ditto.
4770 (h8300_extract_struct_value_address): Ditto.
4771 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4772 (frv_push_arguments): Ditto.
4773 * avr-tdep.c (avr_pointer_to_address): Ditto.
4774 (avr_push_arguments): Ditto.
4775 * arm-tdep.c (arm_push_dummy_call): Ditto.
4776 (arm_get_longjmp_target): Ditto.
4777 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4778 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4779 (alpha_get_longjmp_target): Ditto.
4780
ae0167b9
AC
4781 * solib-irix.c (extract_mips_address): Inline extract_address,
4782 replacing it with extract_signed_integer.
4783 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4784 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4785 (first_link_map_member, open_symbol_file_object): Ditto.
4786 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4787 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4788 (LM_NEXT, LM_NAME): Ditto.
4789
44d88583
RH
47902003-06-01 Richard Henderson <rth@redhat.com>
4791
98a8e1e5
RH
4792 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4793 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4794 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4795 (alpha_cannot_store_register): Likewise.
4796 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4797 * alpha-nat.c (supply_gregset): Likewise.
4798 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4799
310e9b6a
AC
48002003-06-01 Andrew Cagney <cagney@redhat.com>
4801
4802 * infcall.c (call_function_by_hand): Update comment on
4803 DEPRECATED_DUMMY_WRITE_SP.
4804
4805 * mips-tdep.c (mips_gdbarch_init): Do not set
4806 deprecated_dummy_write_sp.
4807 (mips_eabi_push_dummy_call): Set the SP register.
4808 (mips_o64_push_dummy_call): Set the SP register.
4809 (mips_o32_push_dummy_call): Set the SP register.
4810 (mips_n32n64_push_dummy_call): Set the SP register.
4811
5ab84872
RH
48122003-06-01 Richard Henderson <rth@redhat.com>
4813
98a8e1e5
RH
4814 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4815 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4816 (supply_gregset): Likewise.
4817 * alpha-tdep.c (alpha_store_return_value): Likewise.
4818 (alpha_get_longjmp_target): Likewise.
4819 (alpha_register_name): Constify array.
4820 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4821 deprecated_register_size, deprecated_register_bytes,
4822 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4823 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4824 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4825
09cc52fd
RH
48262003-06-01 Richard Henderson <rth@redhat.com>
4827
4828 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4829 from arg_reg_buffer to regcache to avoid double conversion.
4830
c7f16359
MK
48312003-06-01 Mark Kettenis <kettenis@gnu.org>
4832
4833 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4834 SP_REGNUM.
4835 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4836 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4837
7131cb6e
RH
48382003-06-01 Richard Henderson <rth@redhat.com>
4839
98a8e1e5
RH
4840 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4841 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4842
f3e0f90b
RH
48432003-06-01 Richard Henderson <rth@redhat.com>
4844
98a8e1e5
RH
4845 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4846 not overlapping PC_REGNUM.
f3e0f90b 4847
c88e30c0
RH
48482003-06-01 Richard Henderson <rth@redhat.com>
4849
98a8e1e5
RH
4850 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4851 alpha_push_arguments. Don't dump argument register data to
4852 the target stack. Fix float and 128-bit long double semantics.
4853 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4854 (alpha_fix_call_dummy): Remove.
4855 (alpha_call_dummy_words): Remove.
4856 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4857
f1a559ae
RH
48582003-06-01 Richard Henderson <rth@redhat.com>
4859
4860 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4861
5e045346
AC
48622003-06-01 Andrew Cagney <cagney@redhat.com>
4863
95404a3e
AC
4864 * mips-tdep.c (is_mips16_addr): New function.
4865 (make_mips16_addr, unmake_mips16_addr): New functions.
4866 (pc_is_mips16, mips_fetch_instruction): Use.
4867 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4868 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4869 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4870 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4871 TARGET_MIPS.
4872 * config/mips/tm-mips.h: Update copyright.
4873 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4874 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4875 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4876 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4877 (TM_PRINT_INSN_MACH): Delete.
4878 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4879
5e045346
AC
4880 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4881 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4882 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4883 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4884 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4885 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4886 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4887 mips*-*-riscos* and mips*-*-sysv* onto mips.
4888 * config/mips/mips64.mt: New file.
4889 * config/mips/mips.mt: New file.
4890 * config/mips/littlemips.mt: Delete file.
4891 * config/mips/decstation.mt: Delete file.
4892 * config/mips/vr4300el.mt: Delete file.
4893 * config/mips/vr5000el.mt: Delete file.
4894 * config/mips/vr5000.mt: Delete file.
4895 * config/mips/vr4100.mt: Delete file.
4896 * config/mips/vr4xxxel.mt: Delete file.
4897 * config/mips/vr4300.mt: Delete file.
4898 * config/mips/vr4xxx.mt: Delete file.
4899 * config/mips/bigmips.mt: Delete file.
4900 * config/mips/bigmips64.mt: Delete file.
4901 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4902 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4903 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4904 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4905 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4906 "tm-bigmips.h".
4907 * config/mips/tm-irix3.h: Ditto.
4908 * config/mips/tm-mipsv4.h: Ditto.
4909 * config/mips/tm-embed.h: Ditto.
4910 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4911 "tm-bigmips64.h".
4912 * config/mips/tm-vr5000el.h: Delete file.
4913 * config/mips/tm-tx39l.h: Delete file.
4914 * config/mips/tm-vr4300el.h: Delete file.
4915 * config/mips/tm-vr4xxxel.h: Delete file.
4916 * config/mips/tm-vr4300.h: Delete file.
4917 * config/mips/tm-vr4100.h: Delete file.
4918 * config/mips/tm-vr4xxx.h: Delete file.
4919 * config/mips/tm-vr5000.h: Delete file.
4920 * config/mips/tm-embedl64.h: Delete file.
4921 * config/mips/tm-embedl.h: Delete file.
4922 * config/mips/tm-embed64.h: Delete file.
4923 * config/mips/tm-bigmips64.h: Delete file.
4924 * config/mips/tm-bigmips.h: Delete file.
4925
2473a4a9
MK
49262003-06-01 Mark Kettenis <kettenis@gnu.org>
4927
97a5b208
MK
4928 Fix gdb/1216.
4929 * shnbsd-nat.c: Include "sh-tdep.h".
4930
2473a4a9
MK
4931 From Richard Henderson <rth@redhat.com>:
4932 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4933
e0f7ec59
AC
49342003-05-31 Andrew Cagney <cagney@redhat.com>
4935
4936 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4937 forward declaration.
4938 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4939 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4940 (mips_find_saved_regs): Use set_reg_offset.
4941 (mips_frame_init_saved_regs): Delete function.
4942 (mips_pop_frame): Call mips_find_saved_regs instead of
4943 DEPRECATED_FRAME_INIT_SAVED_REGS.
4944
68dcc709
AC
49452003-05-31 Andrew Cagney <cagney@redhat.com>
4946
4947 * mips-tdep.c (mips_gdbarch_init): Do not set
4948 deprecated_max_register_raw_size, register_virtual_size, and
4949 deprecated_max_register_virtual_size.
4950
cfc14b3a
MK
49512003-05-31 Mark Kettenis <kettenis@gnu.org>
4952
6405b0a6
MK
4953 * i386-tdep.c: Include "dwarf2-frame.h".
4954 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4955 * Makefile.in (i386-tdep.o): Update dependencies.
4956
cfc14b3a
MK
4957 * dwarf2-frame.c, dwarf2-frame.h: New files.
4958 * Makefile.in (SFILES): Add dwarf2-frame.c.
4959 (dwarf2_frame_h): Define.
4960 (COMMON_OBS): Add dwarf2-frame.o.
4961 (dwarf2-frame.o): Add dependencies.
4962
6a2751d2
AJ
49632003-05-31 Andreas Jaeger <aj@suse.de>
4964
4965 * x86-64-linux-nat.c: Fix comment.
4966
1c3545ae
MK
49672003-05-31 Mark Kettenis <kettenis@gnu.org>
4968
10f93086
MK
4969 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4970 function signature.
4971
1c3545ae
MK
4972 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4973 have a sigcontext_addr handler.
4974 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4975 sigcontext_addr handler.
4976
e11c53d2
AC
49772003-05-31 Andrew Cagney <cagney@redhat.com>
4978
4979 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4980 (print_fp_register_row): Replace do_fp_register_row.
4981 (mips_print_fp_register): Add "file" and "frame" parameters.
4982 (mips_print_register): Add "file" and "frame" parameters.
4983 (mips_print_registers_info): Replace mips_do_registers_info.
4984 (mips_gdbarch_init): Set print_registers_info instead of
4985 deprecated_do_registers_info.
4986 (mips_read_fp_register_single): Add "frame" parameter.
4987 (mips_read_fp_register_double): Add "frame" parameter.
4988
a3386186
MK
49892003-05-31 Mark Kettenis <kettenis@gnu.org>
4990
70913449
MK
4991 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4992 Fixes a bug where GDB would print the wrong register names for
4993 targets without SSE.
4994
2b5e0749
MK
4995 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4996 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4997 registers.
4998
4999 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5000 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5001 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5002 TDEP->sc_sp_offset.
5003
a3386186
MK
5004 From Michal Ludvig <mludvig@suse.cz>:
5005 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5006 and `sc_num_regs'.
5007 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5008 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5009 I386_ST0_REGNUM): Move here from...
5010 * i386-tdep.c: ... here.
5011 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5012 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5013 registers if possible.
5014 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5015 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5016 Remove variables.
5017 (i386bsd_sc_reg_offset): New variable.
5018 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5019 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5020 TDEP->sc_sp_offset.
5021 (i386fbsd_sc_reg_offset): New variable.
5022 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5023 TDEP->sc_num_regs.
5024 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5025 variables.
5026 (i386fbsd4_sc_reg_offset): New variable.
5027 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5028 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5029 TDEP->sc_sp_offset.
5030 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5031 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5032 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5033 Remove variables.
5034 (i386nbsd_sc_reg_offset): New variable.
5035 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5036 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5037 TDEP->sc_sp_offset.
5038 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5039 Remove variables.
5040 (i386obsd_sc_reg_offset): New variable.
5041 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5042 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5043 TDEP->sc_sp_offset.
5044 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5045 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5046 for frame pointer offset in `struct sigcontext'.
5047
25ab4790
AC
50482003-05-31 Andrew Cagney <cagney@redhat.com>
5049
5050 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5051 architecture methods call_dummy_words, sizeof_call_dummy_words,
5052 push_return_address, store_struct_return, and fix_call_dummy. Set
5053 push_dummy_call instead of deprecated_push_arguments.
5054 (mips_store_struct_return): Delete function.
5055 (mips_fix_call_dummy): Delete function.
5056 (mips_push_return_address): Delete function.
5057 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5058 RA_REGNUM and T9_REGNUM.
5059 (mips_n32n64_push_dummy_call): Ditto for
5060 mips_n32n64_push_arguments.
5061 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5062 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5063
6a65450a
AC
50642003-05-31 Andrew Cagney <cagney@redhat.com>
5065
5066 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5067 "dummy_addr" to "bp_addr".
5068 * infcall.c (call_function_by_hand): Pass "funaddr" to
5069 gdbarch_push_dummy_call.
5070 * gdbarch.h, gdbarch.c: Re-generate.
5071 * i386-tdep.c (i386_push_dummy_call): Update.
5072 * arm-tdep.c (arm_push_dummy_call): Update.
5073 * d10v-tdep.c (d10v_push_dummy_call): Update.
5074
c4f35dd8
MK
50752003-05-31 Mark Kettenis <kettenis@gnu.org>
5076
5077 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5078 variable declarations.
5079 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5080 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5081 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5082 x86_64_init_frame_pc, x86_64_init_frame_pc,
5083 x86_64_function_has_prologue): Remove prototypes.
5084 (X86_64_NUM_GREGS): New define.
5085 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5086 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5087 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5088 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5089 XMM1_REGNUM): Remove defines.
5090 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5091 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5092 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5093 X86_64_XMM1_REGNUM): New defines.
5094 (struct x86_64_register_info): Renamed from `struct
5095 register_info'. Remove `size' member.
5096 (x86_64_register_info_table): Remove variable.
5097 (x86_64_register_info): New variable.
5098 (X86_64_NUM_REGS): New define.
5099 (X86_64_NUM_GREGS): Remove define.
5100 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5101 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5102 Remove variables.
5103 (x86_54_dwarf2_reg_to_regnum): Remove function.
5104 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5105 (x86_64_dwarf_reg_to_regnum): New function.
5106 (x86_64_register_name): Rewrite.
5107 (x86_64_register_raw_size): Remove function.
5108 (x86_64_register_byte_table): Remove variable.
5109 (x86_64_register_byte): Remove function.
5110 (x86_64_register_virtual_type): Remove function.
5111 (x86_64_register_type): New function.
5112 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5113 x86_64_register_convert_to_raw): Remove functions.
5114 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5115 (x86_64_use_struct_convention): Make static. Adjust for renamed
5116 defines.
5117 (x86_64_frame_init_saved_regs): Remove function.
5118 (x86_64_push_arguments): Make static. Change to accept a regcache
5119 as argument.
5120 (x86_64_store_return_value, x86_64_extract_return_value): Make
5121 static. Rewrite based on i386 counterparts.
5122 (x86_64_push_dummy_call): New function.
5123 (X86_64_NUM_SAVED_REGS): New define.
5124 (x86_64_register_number): Remove function.
5125 (x86_64_store_struct_return): Remove function.
5126 (x86_64_frameless_function_invocation,
5127 x86_64_function_has_prologue): Remove functions.
5128 (PROLOG_BUFSIZE): Remove define.
5129 (struct x86_64_frame_cache): New structure.
5130 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5131 x86_64_frame_cache, x86_64_frame_this_id,
5132 x86_64_frame_prev_register, x86_64_frame_p,
5133 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5134 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5135 functions.
5136 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5137 variables.
5138 (x86_64_skip_prologue): Rewrite in terms of
5139 x86_64_analyze_prologue.
5140 (x86_64_frame_base_address): New function.
5141 (x86_64_frame_base): New variable.
5142 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5143 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5144 set deprecated_fp_regnum, deprecated_register_size,
5145 deprecated_register_bytes, register_raw_size, register_byte,
5146 register_virtual_type, register_convertiable,
5147 register_convert_to_virtual, convert_to_raw,
5148 deprecated_get_saved_register, deprecated_target_read_fp,
5149 deprecated_push_arguments, deprecated_push_return_address,
5150 deprecated_pop_frame, deprecated_store_struct_return,
5151 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5152 frameless_function_invocation, deprecated_frame_saved_pc,
5153 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5154 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5155 deprecated_init_frame_pc and virtual_frame_pointer. Call
5156 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5157 and x86_64_frame_p. Call frame_base_set_default to register
5158 x86_64_frame_base.
5159 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5160 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5161 (_initialize_x86_64_tdep): Remove function.
5162 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5163 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5164 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5165 define.
5166 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5167 (x86_64_linux_sigcontext_addr): Rewrite.
5168 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5169 x86_64_linux_frame_saved_pc): Remove functions.
5170 (x86_64_linux_pc_in_sigtramp): Renamed from
5171 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5172 trampoline.
5173 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5174 Remove_functions.
5175 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5176 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5177 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5178 (x86_64_regmap): Rename to regmap.
5179 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5180 x86_64_num_gregs.
5181 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5182 x86_64_regmap.
5183 (x86_64_fxsave_offset): Remove function.
5184 (supply_fpregset): Simply call x86_64_supply_fxsave.
5185 (fill_fpregset): Simply call x86_64_fill_fxsave.
5186 (fetch_inferior_registers, store_inferior_registers): Avoid
5187 asignment in if-statement.
5188 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5189 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5190 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5191 (fetch_core_registers): Remove function.
5192 (linux_elf_core_fns): Remove.
5193 (offsetoff): Don't define.
5194 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5195 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5196 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5197 add core-regset.o.
5198 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5199 protection against multiple includes instead of NM_X86_64_h. Add
5200 various comments. Include "config/nm-linux.h". Don't include
5201 <signal.h>.
5202 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5203 GET_THREAD_SIGNALS): Remove defines.
5204 (x86_64_register_u_addr, kernel_u_size,
5205 lin_thread_get_thread_signals): Remove prototypes.
5206 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5207 [HAVE_LINK_H]: Don't include "solib.h".
5208 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5209 * config/i386/tm-x86-64linux.h: Fix comments.
5210 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5211 x86-64-tdep.o): Update dependencies.
5212
c25083af
AC
52132003-05-30 Andrew Cagney <cagney@redhat.com>
5214
c8f55a7b
AC
5215 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5216 Change parameter type to a "struct regcache *".
5217
c25083af
AC
5218 * gdbarch.sh: Regardless of the multi-arch level, always define
5219 the macro when not already defined.
5220 * gdbarch.h, gdbarch.c: Re-generate.
5221
fbe586ae
RH
52222003-05-30 Richard Henderson <rth@redhat.com>
5223
5224 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5225 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5226 (alpha_mdebug_frame_this_id): Likewise.
5227 (alpha_mdebug_frame_prev_register): Likewise.
5228 (alpha_mdebug_frame_base_address): Likewise.
5229 (alpha_mdebug_frame_locals_address): Likewise.
5230 (alpha_mdebug_frame_args_address): Likewise.
5231 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5232 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5233 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5234 loop increment.
5235 (alpha_heuristic_frame_this_id): Make static.
5236 (alpha_heuristic_frame_prev_register): Likewise.
5237 (alpha_heuristic_frame_base_address): Likewise.
5238 * alpha-tdep.h: Update.
5239
acd5c798
MK
52402003-05-30 Mark Kettenis <kettenis@gnu.org>
5241
5242 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5243 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5244 defenitions.
5245 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5246 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5247 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5248 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5249 I386_ST0_REGNUM): New defines.
5250 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5251 codestream_get): Remove define.
5252 (codestream_next_addr, condestream_addr, condestream_buf,
5253 codestream_off, codestream_cnt): Remove variables.
5254 (codestream_fill, codestream_seek, codestream_read): Remove
5255 functions.
5256 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5257 functionality.
5258 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5259 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5260 i386_frame_saved_pc, i386_saved_pc_after_call,
5261 i386_frame_num_args, i386_frame_init_saved_regs,
5262 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5263 i386_push_arguments): Remove functions.
5264 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5265 functionality. Use i386_analyze_prologue instead of
5266 i386_get_frame_setup.
5267 (I386_NUM_SAVED_REGS): New define.
5268 (struct i386_frame_cache): New structure.
5269 (i386_alloc_frame_cache, i386_analyze_struct_return,
5270 i386_skip_probe, i386_analyze_frame_setup,
5271 i386_analyze_register_saves, i386_analyze_prologue,
5272 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5273 i386_frame_prev_register, i386_sigtramp_frame_cache,
5274 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5275 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5276 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5277 New functions.
5278 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5279 New variables.
5280 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5281 I386_EAX_REGNUM and I386_EDX_REGNUM.
5282 (i386_extract_return_value, i386_store_return_value): Use
5283 I386_ST0_REGNUM where appropriate.
5284 (i386_extract_struct_value_address): Rewrite to use extract_address.
5285 (i386_svr4_pc_in_sigtramp): Add comment.
5286 (i386_svr4_sigcontext_addr): Rewrite.
5287 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5288 TDEP->sc_sp_offset.
5289 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5290 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5291 of new defines. Set push_dummy_call, don't set
5292 deprecated_push_arguments, deprecated_push_return_address,
5293 deprecated_pop_frame. Don't set parm_boundary. Don't set
5294 deprecated_frame_chain, deprecated_frame_saved_pc,
5295 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5296 save_dummy_frame_tos, unwind_pc. Call
5297 frame_unwind_append_predicate and frame_base_set_default. Don't
5298 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5299 Don't set frameless_function_invocation. Don't set
5300 deprecated_register_bytes, deprecated_register_size,
5301 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5302 * i386-linux-tdep.c: Fix formatting in some comments.
5303 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5304 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5305 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5306 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5307 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5308 redundant parentheses.
5309 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5310 (i386_linux_sigcontext_addr): Use it. Rewrite.
5311 (find_minsym_and_objfile): Change name of second argument.
5312 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5313 changed. Use frame_pc_unwind instead of
5314 DEPRECATED_SAVED_PC_AFTER_CALL.
5315 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5316 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5317 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5318 unwinder.
5319 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5320 "dummy-frame.h".
5321 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5322 (_initialize_i386_cygwin_tdep): New prototype.
5323 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5324 deprecated_frame_chain_valid.
5325 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5326 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5327 Rely on the SVR4 defaults.
5328 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5329 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5330
c89b70f1
AC
53312003-05-30 Andrew Cagney <cagney@redhat.com>
5332
5333 * infcall.c (call_function_by_hand): Always call
5334 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5335
85b32d22
RH
53362003-05-30 Richard Henderson <rth@redhat.com>
5337
c89b70f1
AC
5338 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5339 increment.
85b32d22 5340
bfe51b1e
JB
53412003-05-29 Jim Blandy <jimb@redhat.com>
5342
5343 Use gdbarch methods for solib stuff on PowerPC Linux.
5344 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5345 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5346 show through.
5347 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5348 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5349 giving the same effect as the #definitions above.
5350
1abf022c
AF
53512003-05-29 Adam Fedor <fedor@gnu.org>
5352
5353 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5354 (find_implementation_from_class): Replace it with the standard
5355 case i.e. do nothing.
5356
d2427a71
RH
53572003-05-29 Richard Henderson <rth@redhat.com>
5358
5359 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5360 (alpha_linux_sigtramp_offset): Use it. Make static.
5361 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5362 update for new frame model.
5363 * alpha-mdebug-tdep.c: New file.
5364 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5365 (alpha_osf1_init_abi): Install it.
5366 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5367 (linked_proc_desc_table): Remove.
5368 (alpha_frame_past_sigtramp_frame): Remove.
5369 (alpha_dynamic_sigtramp_offset): Remove.
5370 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5371 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5372 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5373 (push_sigtramp_desc): Remove.
5374 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5375 (alpha_cannot_store_register): Likewise.
5376 (alpha_sigcontext_addr): Remove.
5377 (alpha_find_saved_regs): Remove.
5378 (alpha_frame_init_saved_regs): Remove.
5379 (alpha_init_frame_pc_first): Remove.
5380 (read_next_frame_reg): Remove.
5381 (alpha_frame_saved_pc): Remove.
5382 (alpha_saved_pc_after_call): Remove.
5383 (temp_proc_desc, temp_saved_regs): Remove.
5384 (alpha_about_to_return): Remove.
5385 (cached_proc_desc): Remove.
5386 (alpha_frame_chain): Remove.
5387 (alpha_print_extra_frame_info): Remove.
5388 (alpha_init_extra_frame_info): Remove.
5389 (alpha_frame_locals_address): Remove.
5390 (alpha_frame_args_address): Remove.
5391 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5392 (alpha_push_dummy_frame): Remove.
5393 (alpha_pop_frame): Remove.
5394 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5395 (alpha_read_insn): New.
5396 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5397 for different insn encodings.
5398 (alpha_in_lenient_prologue): Remove.
5399 (struct alpha_sigtramp_unwind_cache): New.
5400 (alpha_sigtramp_frame_unwind_cache): New.
5401 (alpha_sigtramp_register_address): New.
5402 (alpha_sigtramp_frame_this_id): New.
5403 (alpha_sigtramp_frame_prev_register): New.
5404 (alpha_sigtramp_frame_unwind): New.
5405 (alpha_sigtramp_frame_p): New.
5406 (struct alpha_heuristic_unwind_cache): New.
5407 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5408 don't count nop insns that occur between functions.
5409 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5410 heuristic_proc_desc, but without the mdebug wrapping.
5411 (alpha_heuristic_frame_this_id): New.
5412 (alpha_heuristic_frame_prev_register): New.
5413 (alpha_heuristic_frame_unwind): New.
5414 (alpha_heuristic_frame_p): New.
5415 (alpha_heuristic_frame_base_address): New.
5416 (alpha_heuristic_frame_base): New.
5417 (alpha_unwind_dummy_id): New.
5418 (alpha_unwind_pc): New.
5419 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5420 frame related deprecated initializations; install replacements.
5421 (alpha_dump_tdep): Remove.
5422 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5423 (alpha_read_insn, alpha_after_prologue,
5424 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5425 alpha_heuristic_frame_prev_register,
5426 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5427 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5428 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5429 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5430
93ec1121
AC
54312003-05-29 Andrew Cagney <cagney@redhat.com>
5432
5433 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5434 dependant on the availability of ASSERT_FUNCTION.
5435 (ASSERT_FUNCTION): Do not define when there is no function name.
5436
98f08d3d
KB
54372003-05-29 Kevin Buettner <kevinb@redhat.com>
5438
5439 From Jimi X <jimix@watson.ibm.com>:
5440 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5441
0897f59b
JB
54422003-05-28 Jim Blandy <jimb@redhat.com>
5443
5444 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5445 argument to ptrace to int; the system headers should give it the
5446 right type, and pointers don't fit in ints on powerpc64-*-*.
5447
14898363
L
54482003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5449
5450 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5451 DW_TAG_catch_block.
5452
a7a48797
EZ
54532003-05-26 Elena Zannoni <ezannoni@redhat.com>
5454
5455 * stabsread.c (dbx_lookup_type): Make static.
5456 (read_type): Ditto.
5457 (add_undefined_type): Ditto.
5458 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5459 not export.
5460
f5479e9c
EZ
54612003-05-26 Elena Zannoni <ezannoni@redhat.com>
5462
5463 * hpread.c (hpread_has_name): Make static.
5464 (hpread_psymtab_to_symtab): Ditto.
5465 (file_exists): Ditto.
5466 (hpread_call_pxdb): Ditto.
5467 (hpread_pxdb_needed): Ditto.
5468 (hpread_quick_traverse): Ditto.
5469 (hpread_get_header): Ditto.
5470 (hpread_get_lntt): Ditto.
5471 (hpread_get_slt): Ditto.
5472 (class_of): Ditto.
5473
eb2e12d7
AS
54742003-05-25 Andreas Schwab <schwab@suse.de>
5475
78bf922a
AS
5476 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5477 stack_align and deprecated_extra_stack_alignment_needed.
5478 (m68k_stack_align): Delete.
5479
eb2e12d7
AS
5480 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5481 (m68k_register_virtual_size): Likewise.
5482 (altos_skip_prologue): Remove obsolete function.
5483 (isi_frame_num_args): Likewise.
5484 (news_frame_num_args): Likewise.
5485 (m68k_fix_call_dummy): Make static.
5486 (m68k_push_dummy_frame): Likewise.
5487 (m68k_pop_frame): Likewise.
5488 (m68k_skip_prologue): Likewise.
5489 (m68k_frame_init_saved_regs): Likewise.
5490 (m68k_saved_pc_after_call): Likewise.
5491 (m68k_get_longjmp_target): Make multi-arch.
5492 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5493 structure. Register m68k_get_longjmp_target if enabled.
5494 * m68k-tdep.h (struct gdbarch_tdep): Define.
5495 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5496
5497 * Makefile.in (config.status): Also depend on configure.tgt
5498 and configure.host.
5499 (m68klinux-tdep.o): Update dependencies.
5500 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5501 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5502 (M68K_LINUX_JB_PC): Define.
5503 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5504 and take additional parameter.
5505 (m68k_linux_sigtramp_saved_pc): Update.
5506 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5507 m68k_linux_pc_in_sigtramp, in_plt_section,
5508 find_solib_trampoline_target.
5509 * config/m68k/tm-linux.h: Don't include any tm headers.
5510 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5511 (JB_ELEMENT_SIZE): Likewise.
5512 (JB_PC): Likewise.
5513 (GET_LONGJMP_TARGET): Likewise.
5514 (IN_SIGTRAMP): Likewise.
5515 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5516
eb2c22dc
MK
55172003-05-25 Mark Kettenis <kettenis@gnu.org>
5518
5519 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5520 (sparc32_push_arguments): Re-implement by calling
5521 sparc32_do_push_arguments.
5522
44b7b84e
MK
55232003-05-25 Mark Kettenis <kettenis@gnu.org>
5524
5525 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5526 SPARC_O1_REGNUM): New defines.
5527 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5528 (sparc32_store_return_value): New function.
5529 (sparc_extract_struct_value_address): Rewrite to operate on a
5530 regcache.
5531 (sparc_gdbarch_init): Don't set
5532 deprecated_extract_struct_value_address. Set
5533 extract_struct_value_address instead. Don't set
5534 deprecated_extract_return_value and deprecated_store_return_value
5535 for 32-bit targets. Set extract_return_value and
5536 store_return_value instead.
5537 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5538 DEPRECTAED_EXTRACT_RETURN_VALUE,
5539 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5540 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5541 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5542 (sparc_store_return_value): Remove prototype.
5543 (sparc32_store_return_value): New prototype.
5544 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5545 Adjust prototypes.
5546
f6ad61e3
MK
55472003-05-24 Mark Kettenis <kettenis@gnu.org>
5548
5549 * sparcnbsd-tdep.c: Include "gdb_string.h".
5550
b276f1bb
AC
55512003-05-23 Andrew Cagney <cagney@redhat.com>
5552
5553 * p-valprint.c (pascal_val_print): Replace extract_address with
5554 the inline equivalent extract_unsigned_integer.
5555 * jv-valprint.c (java_value_print): Ditto.
5556 * ada-valprint.c (ada_val_print_1): Ditto.
5557 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5558
e76c5fcc
TR
55592003-05-23 Theodore A. Roth <troth@openavr.org>
5560
5561 * blockframe.c (frameless_look_for_prologue): Remove unused
5562 after_prologue variable.
5563
2cdd89cb
MK
55642003-05-23 Mark Kettenis <kettenis@gnu.org>
5565
5566 * blockframe.c (get_pc_function_start): Rewrite to avoid
5567 asignments in if-statements.
5568
182d43bc
EZ
55692003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5570
5571 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5572 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5573 files, don't relocate absolute symbols (and do use mst_abs).
5574
e8f3fcdd
AC
55752003-05-23 Andrew Cagney <cagney@redhat.com>
5576
5577 * objc-lang.c: Include "gdb_assert.h".
5578 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5579 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5580 (gdb_check, gdb_check_fatal): Delete functions.
5581 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5582 gdb_assert.
5583 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5584 * Makefile.in (objc-lang.o): Update dependencies.
5585
3c23e6fb
ILT
55862003-05-22 Ian Lance Taylor <ian@airs.com>
5587
5588 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5589 with fprintf_filtered, not fprintf_unfiltered.
5590
af1342ab
AC
55912003-05-22 Andrew Cagney <cagney@redhat.com>
5592
5593 * stack.c (frame_info): Inline extract_address, replacing it with
5594 extract_unsigned_integer.
5595 * findvar.c (unsigned_pointer_to_address): Ditto.
5596 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5597 * dwarf2expr.c (dwarf2_read_address): Ditto.
5598 * frame.c (frame_pc_unwind): Update comment.
5599 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5600
47e242ec
JJ
56012003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5602
5603 * infptrace.c (detach): Call print_sys_errmsg rather than
5604 perror_with_name to issue warning message when errno is non-zero
5605 after calling ptrace detach.
5606
e2ac8128
JB
56072003-05-21 J. Brobecker <brobecker@gnat.com>
5608
5609 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5610 macro definitions from here...
5611 * hppa-tdep.c: ...to there.
5612
92b3541e
KB
56132003-05-20 Kevin Buettner <kevinb@redhat.com>
5614
5615 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5616 register_ptrace_addr(). Fix all callers.
5617
55809acb
AS
56182003-05-21 Andreas Schwab <schwab@suse.de>
5619
5620 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5621 dependencies.
5622 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5623 end.
5624 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5625 (_initialize_m68k_linux_tdep): New function.
5626 (m68k_linux_frame_saved_pc): Make static.
5627 (m68k_linux_extract_return_value): Likewise.
5628 (m68k_linux_store_return_value): Likewise.
5629 (m68k_linux_extract_struct_value_address): Likewise.
5630 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5631 Remove.
5632 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5633 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5634 (DEPRECATED_FRAME_SAVED_PC): Remove.
5635
0fbc10f7
KW
56362003-05-20 Kris Warkentin <kewarken@qnx.com>
5637
5638 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5639 regset numbering rather than our own.
5640
58da2eb2
DC
56412003-05-19 David Carlton <carlton@bactrian.org>
5642
5643 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5644
1fcb5155
DC
56452003-05-19 David Carlton <carlton@bactrian.org>
5646
5647 Partial fix for PR c++/827.
5648 * cp-support.h: Include symtab.h.
5649 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5650 * cp-namespace.c: Update contributors.
5651 (cp_lookup_symbol_nonlocal): New.
5652 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5653 (lookup_symbol_file): Ditto.
5654 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5655 * block.h: Declare block_scope, block_using, block_global_block.
5656 * block.c (block_scope): New.
5657 (block_using, block_global_block): Ditto.
5658 * Makefile.in (cp_support_h): Depend on symtab_h.
5659 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5660
5f9a71c3
DC
56612003-05-19 David Carlton <carlton@bactrian.org>
5662
5663 * language.h (struct language_defn): Add 'la_value_of_this'
5664 and 'la_lookup_symbol_nonlocal' members.
5665 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5666 lookup_symbol_static, lookup_symbol_global,
5667 lookup_symbol_aux_block.
5668 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5669 if we should search fields of this and how to do static/global
5670 lookup.
5671 (lookup_symbol_aux_block): Make extern.
5672 (basic_lookup_symbol_nonlocal): New.
5673 (lookup_symbol_static, lookup_symbol_global): Ditto.
5674 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5675 'la_lookup_symbol_nonlocal' members.
5676 * c-lang.c (c_language_defn, cplus_language_defn)
5677 (asm_language_defn, minimal_language_defn): Ditto.
5678 * jv-lang.c (java_language_defn): Ditto.
5679 * language.c (unknown_language_defn, auto_language_defn)
5680 (local_language_defn): Ditto.
5681 * m2-lang.c (m2_language_defn): Ditto.
5682 * objc-lang.c (objc_language_defn): Ditto.
5683 * scm-lang.c (scm_language_defn): Ditto.
5684 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5685 * p-lang.c (pascal_language_defn): Ditto for both.
5686 * Makefile.in (f-lang.o): Depend on value_h.
5687 (p-lang.o): Ditto.
5688
89a9d1b1
DC
56892003-05-19 David Carlton <carlton@bactrian.org>
5690
5691 * block.h: Declare block_static_block.
5692 * block.c (block_static_block): New.
5693 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5694 lookup_symbol_aux_local, calling block_static_block instead.
5695 (lookup_symbol_aux_local): Delete 'static_block' argument.
5696
eed3f8ab
DC
56972003-05-19 David Carlton <carlton@bactrian.org>
5698
5699 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5700
a09d8bda
ML
57012003-05-19 Michal Ludvig <mludvig@suse.cz>
5702
5703 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5704 register numbers mapping.
5705
69636828
AF
57062003-05-18 Adam Fedor <fedor@gnu.org>
5707
5708 * symtab.c (completion_list_objc_symbol): New function.
5709 (make_symbol_completion_list): Use it to add ObjC symbols
5710 when looking though the list.
5711 (language_search_unquoted_string): New function.
5712 (make_file_symbol_completion_list): Use it.
5713
55baeb84
AS
57142003-05-18 Andreas Schwab <schwab@suse.de>
5715
d0b45d99
AS
5716 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5717 dependencies.
5718 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5719 as m68k_linux_extract_return_value.
5720 (DEPRECATED_STORE_RETURN_VALUE): Define as
5721 m68k_linux_store_return_value.
5722 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5723 m68k_linux_extract_struct_value_address.
5724 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5725 get_next_frame, get_frame_base, get_frame_pc.
5726 (m68k_linux_frame_saved_pc): Use get_frame_base.
5727 (m68k_linux_extract_return_value): New function.
5728 (m68k_linux_store_return_value): New function.
5729 (m68k_linux_extract_struct_value_address): New function.
5730 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5731
55baeb84
AS
5732 * c-exp.y (typebase): Remove duplicate occurence of
5733 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5734 of lookup_signed_typename.
55baeb84 5735
b6b08ebf
MK
57362003-05-18 Mark Kettenis <kettenis@gnu.org>
5737
5738 * dwarf2loc.c (find_location_expression): Change type of second
5739 argument to `size_t *'.
5740 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5741 for size variable.
5742
5ad1c190
DC
57432003-05-18 David Carlton <carlton@bactrian.org>
5744
5745 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5746 'linkage_name'. Add comment.
5747 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5748 'linkage_name'.
5749 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5750 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5751 (lookup_block_symbol): Ditto.
5752
b8b527c5
AC
57532003-05-16 Andrew Cagney <cagney@redhat.com>
5754
5755 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5756 * gdbarch.h, gdbarch.c: Re-generate.
5757 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5758 * TODO (REGISTER_BYTES): Delete reference.
5759 * alpha-tdep.c (alpha_gdbarch_init): Update.
5760 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5761 * x86-64-tdep.c (x86_64_init_abi): Update.
5762 * vax-tdep.c (vax_gdbarch_init): Update.
5763 * v850-tdep.c (v850_gdbarch_init): Update.
5764 * sparc-tdep.c (sparc_gdbarch_init): Update.
5765 * sh-tdep.c (sh_gdbarch_init): Update.
5766 * s390-tdep.c (s390_gdbarch_init): Update.
5767 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5768 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5769 (ns32k_gdbarch_init_32382): Update.
5770 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5771 * mcore-tdep.c (mcore_gdbarch_init): Update.
5772 * m68k-tdep.c (m68k_gdbarch_init): Update.
5773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5774 * ia64-tdep.c (ia64_gdbarch_init): Update.
5775 * i386-tdep.c (i386_gdbarch_init): Update.
5776 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5777 * hppa-tdep.c (hppa_gdbarch_init): Update.
5778 * h8300-tdep.c (h8300_gdbarch_init): Update.
5779 * frv-tdep.c (frv_gdbarch_init): Update.
5780 * cris-tdep.c (cris_gdbarch_init): Update.
5781 * avr-tdep.c (avr_gdbarch_init): Update.
5782 * arm-tdep.c (arm_gdbarch_init): Update.
5783 * sparc-tdep.c (sparc_pop_frame): Update.
5784 * rs6000-tdep.c (rs6000_pop_frame): Update.
5785 * remote.c (init_remote_state): Update.
5786 (remote_prepare_to_store): Update.
5787 * remote-vx.c (vx_prepare_to_store): Update.
5788 * remote-sds.c (sds_fetch_registers): Update.
5789 (sds_prepare_to_store): Update.
5790 * remote-array.c: Update.
5791 * regcache.c (init_legacy_regcache_descr): Update.
5792 (init_regcache_descr): Update.
5793 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5794 (mips_o64_extract_return_value): Update.
5795 * irix5-nat.c (fetch_core_registers): Update.
5796 * irix4-nat.c (fetch_core_registers): Update.
5797 * i386-tdep.h: Update.
5798 * hppa-tdep.c (pa_do_registers_info): Update.
5799 (pa_do_strcat_registers_info): Update.
5800 * cris-tdep.c (cris_register_bytes_ok): Update.
5801 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5802 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5803 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5804 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5805 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5806 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5807 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5808 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5809 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5810 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5811 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5812 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5813 (REGISTER_BYTES_OK): Update.
5814 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5815 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5816
ee2842e2
ILT
58172003-05-16 Ian Lance Taylor <ian@airs.com>
5818
5819 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5820 (vax_print_insn, print_insn_arg): Remove static functions.
5821 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5822 print_insn_vax from opcodes library.
5823 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5824
973177d3
AC
58252003-05-15 Andrew Cagney <cagney@redhat.com>
5826
aaab4dba
AC
5827 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5828 * target.h (memory_breakpoint_from_pc): Delete declaration.
5829 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5830 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5831 * monitor.c (monitor_insert_breakpoint): Use
5832 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5833 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5834 * gdbarch.h, gdbarch.c: Re-generate.
5835 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5836 (sparc_gdbarch_init): Set breakpoint_from_pc to
5837 sparc_breakpoint_from_pc.
5838 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5839 (BREAKPOINT_FROM_PC): Define.
5840 (sparc_breakpoint_from_pc): Declare.
5841 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5842 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5843 (BREAKPOINT_FROM_PC): Define.
5844 (BREAKPOINT): Delete macro.
5845 * target.h: Update comment.
5846 * s390-tdep.c (s390_gdbarch_init): Update comments.
5847 * remote.c: Update comments.
5848 * remote-mips.c: Update comments.
5849 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5850 * mem-break.c: Update comment.
5851 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5852 (ia64_memory_insert_breakpoint): Update.
5853 * config/sparc/tm-sparc.h: Update comment.
5854 * config/pa/tm-hppa64.h: Update comment.
5855 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5856 (rs6000_breakpoint_from_pc): Update.
5857 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5858 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5859 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5860 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5861 (mips_breakpoint_from_pc): Update.
5862 (mips_dump_tdep): Update.
5863
e06963ff
AC
5864 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5865 * minsyms.c (lookup_minimal_symbol): Inline
5866 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5867
973177d3
AC
5868 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5869 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5870 * p-lang.c (pascal_printstr): Ditto.
5871 * objc-lang.c (objc_printstr): Ditto.
5872 * m2-lang.c (m2_printstr): Ditto.
5873 * jv-valprint.c (java_print_value_fields): Ditto.
5874 * f-lang.c (f_printstr): Ditto.
5875 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5876 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5877 for repeat_count_threshold.
5878 * Makefile.in (cp-valprint.o): Update dependencies.
5879
5ea2bd7f 58802003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5881
5ea2bd7f
JJ
5882 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5883 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5884 they start with mov r2,r12. Support skipping over indirect stores
5885 of the input registers. Upon hitting a non-nop branch instruction
5886 or predicated instruction, bail out by setting lim_pc to the current
5887 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5888 beyond our calculated value and we have trust_limit set,
5889 use the lim_pc value.
5890
cc8c88f3
AC
58912003-05-15 Andrew Cagney <cagney@redhat.com>
5892
5893 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5894 generic_find_dummy_frame.
5895 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5896 (deprecated_generic_find_dummy_frame): Update.
5897 (deprecated_read_register_dummy): Update.
5898 * frame.c (deprecated_generic_get_saved_register): Update.
5899
909cd28e
TR
59002003-05-15 Theodore A. Roth <troth@openavr.org>
5901
5902 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5903 (avr_gdbarch_init): Set breakpoint_from_pc method.
5904
b923b08d
AC
59052003-05-15 Andrew Cagney <cagney@redhat.com>
5906
5907 * regcache.c (build_regcache): Set deprecated_register_valid
5908 directly.
5909 (deprecated_grub_regcache_for_register_valid): Delete function.
5910 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5911 declaration.
5912
ae2f03ac 59132003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5914
5915 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5916 * symtab.c (lookup_symbol_aux): Delete calls to
5917 lookup_symbol_aux_minsyms.
5918 (lookup_symbol_aux_minsyms): Comment out function and
5919 prototype. Delete lookup by mangled name.
ae2f03ac 5920
18ec9831
KB
59212003-05-14 Kevin Buettner <kevinb@redhat.com>
5922
5923 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5924 correctly indicate an empty stack and ``stack_allocated'' to the
5925 indicate the number of elements initially allocated.
5926 (dwarf_expr_grow_stack): Simplify method for computing new
5927 stack size. Don't loop infinitely if ``stack_len'' is zero.
5928 (execute_stack_op): Move ``ctx->in_reg'' initialization
5929 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5930 be used in conjuction with DW_OP_piece. Revise error message
5931 accordingly.
5932
de18ac1f
TR
59332003-05-14 Theodore A. Roth <troth@openavr.org>
5934
5935 * MAINTAINERS: Update my email address.
5936 * avr-tdep.c: Ditto.
5937
176620f1
EZ
59382003-05-14 Elena Zannoni <ezannoni@redhat.com>
5939
5940 * symtab.h (enum domain_enum): Rename from namespace_enum.
5941 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5942 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5943 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5944 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5945 TYPES_NAMESPACE, METHODS_NAMESPACE.
5946 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5947 (struct symbol, struct partial_symbol): Rename field
5948 'namespace_enum namespace' to 'domain_enum domain'.
5949 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5950 Delete old define kludge for namespace.
5951
5952 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5953 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5954 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5955 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5956 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5957 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5958 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5959 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5960 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5961 occurrences of the above.
5962
b7f31508
ILT
59632003-05-14 Ian Lance Taylor <ian@airs.com>
5964
5965 * Makefile.in (install-only): Use $(SHELL) when running
5966 mkinstalldirs.
5967
2fdbdd39
ILT
59682003-05-13 Ian Lance Taylor <ian@airs.com>
5969
a208d82c
ILT
5970 * MAINTAINERS (write after approval): Add myself.
5971
2fdbdd39
ILT
5972 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5973 second and third arguments.
5974 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5975 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5976
fbd9dcd3
AC
59772003-05-13 Andrew Cagney <cagney@redhat.com>
5978
5979 * defs.h (store_address): Delete declaration.
5980 findvar.c (store_address): Delete function.
5981 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5982 store_unsigned_integer.
5983 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5984 * v850-tdep.c (v850_push_arguments): Ditto.
5985 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5986 * sh-tdep.c (sh64_get_saved_register): Ditto.
5987 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5988 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5989 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5990 (mips_get_saved_register): Ditto.
5991 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5992 (find_func_descr, ia64_push_arguments): Ditto.
5993 * i386-tdep.c (i386_push_arguments): Ditto.
5994 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5995 * frv-tdep.c (frv_push_arguments): Ditto.
5996 * frame.c (legacy_saved_regs_prev_register): Ditto.
5997 (deprecated_generic_get_saved_register): Ditto.
5998 * findvar.c (unsigned_address_to_pointer): Ditto.
5999 * dwarf2read.c (dwarf2_const_value): Ditto.
6000 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6001 * alpha-tdep.c (alpha_push_arguments): Ditto.
6002
6760f9e6
JB
60032003-05-12 J. Brobecker <brobecker@gnat.com>
6004
6005 * NEWS: Mention that the hppa-hpux port has been partially
6006 multiarched (32bit ABIT only, so far).
6007
30e221b4
AC
60082003-05-11 Andrew Cagney <cagney@redhat.com>
6009
6010 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6011 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6012 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6013 sim/testsuite/sim/arm/misaligned2.ms, and
6014 sim/testsuite/sim/arm/misaligned3.ms.
6015 * disasm.h (struct ui_file): Add opaque struct declaration.
6016 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6017 * frame.h (struct ui_file): Ditto.
6018
dea7f9ba
MK
60192003-05-11 Mark Kettenis <kettenis@gnu.org>
6020
6021 * value.h: Pretty print.
6022
01986c48
MK
60232003-05-10 Mark Kettenis <kettenis@gnu.org>
6024
6025 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6026
123a958e
AC
60272003-05-08 Andrew Cagney <cagney@redhat.com>
6028
6029 * regcache.h (max_register_size): Delete declaration.
6030 * regcache.c (max_register_size): Delete function.
6031 (struct regcache_descr): Delete field "max_register_size".
6032 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6033 registers fit in MAX_REGISTER_SIZE.
6034 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6035 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6036 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6037 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6038 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6039 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6040 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6041 * dve3900-rom.c, hppa-tdep.c: Ditto.
6042
eb294659
DC
60432003-05-08 David Carlton <carlton@math.stanford.edu>
6044
6045 * valops.c (push_word): Fix typo.
6046
d9d9c31f
AC
60472003-05-08 Andrew Cagney <cagney@redhat.com>
6048
6049 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6050 * gdbarch.h: Re-generate.
6051 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6052 (legacy_max_register_raw_size): Delete declaration.
6053 * regcache.c (legacy_max_register_raw_size): Delete function.
6054 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6055 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6056 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6057 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6058 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6059 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6060 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6061 * findvar.c, dwarf2cfi.c: Ditto.
6062
22540ece
AC
60632003-05-08 Andrew Cagney <cagney@redhat.com>
6064
6065 * mips-tdep.c (read_signed_register): New function, moved to here
6066 from "regcache.c".
6067 (read_signed_register_pid): Ditto.
6068 * regcache.c (read_signed_register_pid): Delete function, moved to
6069 "mips-tdep.c".
6070 (read_signed_register): Ditto.
6071 * regcache.h (read_signed_register): Delete declaration.
6072 (read_signed_register_pid): Delete declaration.
6073
0c92afe8
AC
60742003-05-08 Andrew Cagney <cagney@redhat.com>
6075
6076 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6077 * gdbarch.h: Re-generate.
6078 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6079 (legacy_max_register_virtual_size): Delete declaration.
6080 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6081 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6082 * tracepoint.c (memrange_sortmerge): Ditto.
6083 * sparc-tdep.c (sparc_print_registers): Ditto.
6084 * regcache.c (legacy_max_register_virtual_size): Delete function.
6085
6037b830
JB
60862002-05-08 J. Brobecker <brobecker@gnat.com>
6087
6088 * fork-child.c (escape_bang_in_quoted_argument): New function.
6089 (fork_inferior): Escape '!' characters in quoted arguments
6090 only when needed.
6091
5d62c8b1
JB
60922003-05-08 J. Brobecker <brobecker@gnat.com>
6093
6094 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6095 the language of the CU is not currently supported by GDB.
6096
20a0e81d
JB
60972003-05-08 J. Brobecker <brobecker@gnat.com>
6098
6099 * defs.h (language): Add language_minimal enum value.
6100 * c-lang.c (minimal_language_defn): New language definition.
6101 (_initialize_c_language): Add the new minimal language to the list
6102 of languages known to GDB.
6103
710ee10a
KB
61042003-05-08 Kevin Buettner <kevinb@redhat.com>
6105
6106 * frame.c (get_frame_type): Don't attempt to lazily initialize
6107 frame's unwinder for legacy frames.
6108
1750fa04
AC
61092003-05-07 Andrew Cagney <cagney@redhat.com>
6110
6111 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6112 and "regcache" parameters.
6113 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6114
ddf9f258 61152003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6116
6117 * dwarf2read.c (dwarf_decode_lines): Only use output of
6118 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6119 the current address.
6120
87767c29
AC
61212003-05-07 Andrew Cagney <cagney@redhat.com>
6122
6123 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6124 code.
6125
5e7b2f39
JB
61262003-05-07 Jim Blandy <jimb@redhat.com>
6127
6128 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6129 'maint info symtabs' and 'maint info psymtabs'.
6130 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6131 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6132 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6133 Declarations updated.
6134 * maint.c (maintenance_list_command): Delete.
6135 (_initialize_maint_cmds): Update calls to add_cmd.
6136 * gdbcmd.h (maintenancelistlist): Delete declaration.
6137 * cli/cli-cmds.c (maintenancelistlist): Delete.
6138 (init_cmd_lists): Don't initialize it.
6139 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6140
f6684c31
AC
61412003-05-07 Andrew Cagney <cagney@redhat.com>
6142
6143 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6144 "regcache".
6145 (d10v_print_registers_info): Update.
6146 (d10v_dmap_register, d10v_imap_register): Delete functions.
6147 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6148 and "imap_register".
6149 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6150 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6151 * arch-utils.c (generic_remote_translate_xfer_address): Add
6152 "regcache" and "gdbarch" parameters.
6153 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6154 parameter. Change class to multi-arch.
6155 * gdbarch.h, gdbarch.c: Re-generate.
6156 * remote.c (remote_xfer_memory): Use
6157 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6158
e4846b08
JJ
61592003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6160
6161 * infrun.c (prev_pc): Move declaration ahead of proceed().
6162 (proceed): Refresh prev_pc value before resuming.
6163 (stop_stepping): Remove code to refresh prev_pc.
6164
6b71b8ac
KW
61652003-05-06 Kris Warkentin <kewarken@qnx.com>
6166
6167 * nto-tdep.c: Removed stray comment.
6168
47979a4b
KW
61692003-05-06 Kris Warkentin <kewarken@qnx.com>
6170
6171 * i386-nto-tdep.c: Fix old K&R function definitions.
6172 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6173 Also change add_show_from_set() call to add_setshow_cmd().
6174 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6175
00905d52
AC
61762003-05-05 Andrew Cagney <cagney@redhat.com>
6177
6178 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6179 (fprint_dummy_frames): New function.
6180 (maintenance_print_dummy_frames): New function.
6181 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6182 * frame.c (fprint_frame_id): Make global.
6183 * frame.h (fprint_frame_id): Declare.
6184 * Makefile.in (dummy-frame.o): Update dependencies.
6185
b1e29e33
AC
61862003-05-05 Andrew Cagney <cagney@redhat.com>
6187
6188 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6189 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6190 SIZEOF_CALL_DUMMY_WORDS.
6191 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6192 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6193 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6194 CALL_DUMMY_BREAKPOINT_OFFSET.
6195 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6196 CALL_DUMMY_START_OFFSET.
6197 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6198 * gdbarch.h, gdbarch.c: Re-generate.
6199 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6200 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6201 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6202 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6203 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6204 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6205 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6206 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6207 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6208 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6209 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6210 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6211 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6212 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6213 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6214
62152003-05-05 Kris Warkentin <kewarken@qnx.com>
6216
6217 * configure.tgt: Add i[3456]86-*-nto*.
6218 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6219 * nto-tdep.c: New file. Neutrino target support routines.
6220 * nto-tdep.h: New file. Neutrino target header.
6221 * config/tm-qnxnto.h: New file.
6222 * config/i386/i386nto.mt: New file.
6223 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6224
0ce3d317
AC
62252003-05-04 Andrew Cagney <cagney@redhat.com>
6226
6227 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6228 (load_infrun_state): Ditto.
6229 (struct thread_info): Drop "prev_func_name" field.
6230 * thread.c (load_infrun_state): Update.
6231 (save_infrun_state): Update.
6232 * infrun.c (prev_func_name): Delete variable.
6233 (init_wait_for_inferior): Do not clear prev_func_name.
6234 (stop_stepping, keep_going, context_switch): Do not swap
6235 prev_func_name.
6236 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6237 instead of PC_IN_SIGTRAMP.
6238
46654a5b
AC
62392003-05-04 Andrew Cagney <cagney@redhat.com>
6240
6241 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6242 REGISTER_BYTE with register_offset_hack.
6243 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6244 that REGISTER_BYTE is consistent with the regcache.
6245 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6246 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6247
14b08c1b
MK
62482003-05-04 Mark Kettenis <kettenis@gnu.org>
6249
04c8243f
MK
6250 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6251 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6252
14b08c1b
MK
6253 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6254
c7a11e01
JB
62552003-05-03 J. Brobecker <brobecker@gnat.com>
6256
6257 From Thierry Schneider <tpschneider1@yahoo.com>
6258 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6259 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6260 (mi-cmd-symbol.o): Add rule.
6261
7043d8dc
AC
62622003-05-03 Andrew Cagney <cagney@redhat.com>
6263
6264 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6265 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6266 * gdbarch.h, gdbarch.c: Re-generate.
6267 * d10v-tdep.c (d10v_push_dummy_code): New function.
6268 (d10v_gdbarch_init): Set push_dummy_code.
6269 * infcall.c (legacy_push_dummy_code): New function.
6270 (generic_push_dummy_code): New function.
6271 (push_dummy_code): New function.
6272 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6273 instead of dummy_addr, to push_dummy_call. Move call to
6274 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6275 switch.
6276 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6277
92bf2b80
AC
62782003-05-03 Andrew Cagney <cagney@redhat.com>
6279
6280 * disasm.h (print_insn): Declare.
6281 * disasm.c (init_gdb_disassemble_info): New function.
6282 (gdb_disassembly): Call init_gdb_disassemble_info.
6283 (gdb_print_insn): New function.
6284 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6285 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6286 * mcore-tdep.c: Include "disasm.h"
6287 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6288 * d10v-tdep.c: Include "disasm.h".
6289 (display_trace): Call gdb_print_insn, instead of print_insn.
6290 (print_insn): Delete function.
6291 * printcmd.c: Include "disasm.h".
6292 (print_insn): Delete function.
6293 (print_formatted): Call gdb_print_insn, instead of print_insn.
6294 * Makefile.in (printcmd.o): Update dependencies.
6295 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6296
27d94c49
AC
62972003-05-02 Andrew Cagney <cagney@redhat.com>
6298
82de1e5b
AC
6299 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6300 PC_REGNUM, re-indent.
6301 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6302 PC_REGNUM isn't set.
6303
27d94c49
AC
6304 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6305 * gdbarch.h, gdbarch.c: Re-generate.
6306 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6307 register_virtual_size, pc_regnum, or register_bytes.
6308 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6309 (d10v_register_type): Use D10V_PC_REGNUM.
6310 (d10v_print_registers_info, d10v_read_pc): Ditto.
6311 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6312 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6313
a9c0dc7f
DC
63142003-05-02 David Carlton <carlton@bactrian.org>
6315
6316 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6317 the name with mstrsave.
6318
e33d66ec
EZ
63192003-05-02 Elena Zannoni <ezannoni@redhat.com>
6320
6321 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6322 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6323 (host_charset_name, target_charset_name): New vars for use by
6324 set/show commands.
6325 (host_charset_enum, target_charset_enum): New enums for set/show
6326 commands.
6327 (set_charset_sfunc, set_host_charset_sfunc,
6328 set_target_charset_sfunc): New functions.
6329 (set_host_charset, set_target_charset): Make static.
6330 (list_charsets, set_host_charset_command,
6331 set_target_charset_command): Delete functions.
6332 (show_charset_command): Rewrite as....
6333 (show_charset): Hook this up with the set/show command mechanism.
6334 (_initialize_charset): Change names of charsets to match the
6335 set/show enums. Use host_charset_name and target_charset_name.
6336 Use set/show mechanism for charset, host-charset, target-charset
6337 commands. Do not make 'show host-charset' and 'show
6338 target-charset' be aliases of 'show charset'.
6339
6340 * charset.h (set_host_charset, set_target_charset): Don't export,
6341 they are not used outside the file.
6342
2b6fd0d8
AC
63432003-05-01 Andrew Cagney <cagney@redhat.com>
6344
6345 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6346 (gdb_disassembly): Make "di" non static, always initialize and
6347 cleanup. Always use dis_asm_read_memory.
6348 (gdb_dis_asm_read_memory): Delete function.
6349
6ae2f580
AC
63502003-05-01 Andrew Cagney <cagney@redhat.com>
6351
6352 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6353 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6354
810ecf9f
AC
63552003-04-30 Andrew Cagney <cagney@redhat.com>
6356
6357 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6358 "tm_print_insn_info".
6359 (TARGET_PRINT_INSN_INFO): Delete macro.
6360 (dis_asm_read_memory): Delete function declaration.
6361 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6362 (tm_print_insn_info): Delete variable definition.
6363 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6364 * gdbarch.h, gdbarch.c: Re-generate.
6365 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6366 "deprecated_tm_print_insn_info".
6367 * mcore-tdep.c (mcore_dump_insn): Ditto.
6368 * mips-tdep.c (mips_gdbarch_init): Ditto.
6369 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6370 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6371 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6372 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6373 instead of TARGET_PRINT_INSN_INFO, add comment.
6374 * s390-tdep.c (s390_get_frame_info): Instead of
6375 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6376 (s390_check_function_end, s390_is_sigreturn): Ditto.
6377 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6378 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6379 * disasm.c: Include "gdbcore.h".
6380 (_initialize_disasm): New function, initialize
6381 "deprecated_tm_print_insn_info".
6382 (deprecated_tm_print_insn_info): New variable.
6383 (dis_asm_read_memory): Moved from "corefile.c", made static.
6384 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6385 * Makefile.in (disasm.o): Update dependencies.
6386
07020390
AC
63872003-04-30 Andrew Cagney <cagney@redhat.com>
6388
6389 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6390
a9fa03de
AF
63912003-04-29 Adam Fedor <fedor@gnu.org>
6392
6393 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6394 * infcall.c (find_function_addr): Make non-static.
6395 * infcall.h (find_function_addr): Declare.
6396 * Makefile.in (eval.o): Update dependencies.
6397
1bae87b9
AF
63982003-04-28 Adam Fedor <fedor@gnu.org>
6399
6400 * symtab.c (symbol_find_demangled_name): Check for and demangle
6401 ObjC symbols.
6402 (symbol_init_demangled_name): Init for language_objc as well.
6403
0ba6dca9
AC
64042003-04-28 Andrew Cagney <cagney@redhat.com>
6405
6406 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6407 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6408 * gdbarch.h, gdbarch.c: Re-generate.
6409 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6410 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6411 * inferior.h (deprecated_read_fp): Rename read_fp.
6412 (generic_target_read_fp): Delete declaration.
6413 * regcache.c (generic_target_read_fp): Delete function.
6414 (deprecated_read_fp): Replace read_fp, use
6415 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6416 * d10v-tdep.c (d10v_read_fp): Delete function.
6417 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6418
6419 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6420 deprecated_target_read_fp to generic_target_read_fp.
6421 * sh-tdep.c (sh_gdbarch_init): Ditto.
6422 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6424 * frv-tdep.c (frv_gdbarch_init): Ditto.
6425
6426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6427 deprecated_fp_regnum.
6428 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6429 * vax-tdep.c (vax_gdbarch_init): Ditto.
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 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6437 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6439 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6440 * i386-tdep.c (i386_gdbarch_init): Ditto.
6441 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6442 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6443 * frv-tdep.c (frv_gdbarch_init): Ditto.
6444 * cris-tdep.c (cris_gdbarch_init): Ditto.
6445 * avr-tdep.c (avr_gdbarch_init): Ditto.
6446 * arm-tdep.c (arm_gdbarch_init): Ditto.
6447 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6448
6449 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6450 * v850-tdep.c (v850_gdbarch_init): Ditto.
6451 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6452 * sh-tdep.c (sh_gdbarch_init): Ditto.
6453 * s390-tdep.c (s390_gdbarch_init): Ditto.
6454 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6455 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6456 * mips-tdep.c (mips_gdbarch_init): Ditto.
6457 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6458 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6459 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6460 * frv-tdep.c (frv_gdbarch_init): Ditto.
6461 * avr-tdep.c (avr_gdbarch_init): Ditto.
6462 * arm-tdep.c (arm_gdbarch_init): Ditto.
6463
6464 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6465 DEPRECATED_FP_REGNUM.
6466 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6467 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6468 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6469 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6470 (sparc32_register_virtual_type): Ditto.
6471 * sh-tdep.c (sh64_frame_chain): Ditto.
6472 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6473 (sh_nofp_frame_init_saved_regs): Ditto.
6474 (sh64_nofp_frame_init_saved_regs): Ditto.
6475 (sh_fp_frame_init_saved_regs): Ditto.
6476 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6477 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6478 * procfs.c (procfs_fetch_registers): Ditto.
6479 (procfs_store_registers): Ditto.
6480 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6481 (store_inferior_registers, fetch_core_registers): Ditto.
6482 (fetch_kcore_registers, clear_regs): Ditto.
6483 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6484 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6485 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6486 * nlm/i386.c (do_status): Ditto.
6487 * mipsv4-nat.c (supply_gregset): Ditto.
6488 * mips-tdep.c: Ditto for comments.
6489 * mips-nat.c (fetch_inferior_registers): Ditto.
6490 (store_inferior_registers, fetch_core_registers): Ditto.
6491 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6492 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6493 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6494 (i386_do_pop_frame, i386_register_type): Ditto.
6495 * hppa-tdep.c (hppa_frame_chain): Ditto.
6496 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6497 (hppa_pop_frame, hppa_read_fp): Ditto.
6498 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6499 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6500 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6501 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6502 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6503 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6504 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6505 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6506 * blockframe.c: Ditto for comments.
6507 * arch-utils.h: Ditto for comments.
6508 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6509 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6510 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6511 * alpha-tdep.h: Ditto for comments.
6512 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6513 (alpha_cannot_store_register): Ditto.
6514 (alpha_push_dummy_frame): Ditto.
6515 * alpha-nat.c (supply_gregset): Ditto.
6516
6517 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6518 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6519 * config/sparc/tm-sparc.h: Update comment.
6520
6521 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6522 deprecated_read_fp instead of TARGET_READ_FP.
6523 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6524 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6525 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6526 deprecated_read_fp instead of read_fp.
6527 * s390-tdep.c (s390_push_arguments): Ditto.
6528 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6529 * frame.h: Ditto in comments.
6530 * frame.c (legacy_get_prev_frame): Ditto.
6531 * dummy-frame.c (dummy_frame_this_id): Ditto.
6532 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6533
d7a27068
AC
65342003-04-28 Andrew Cagney <cagney@redhat.com>
6535
6536 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6537 * gdbarch.h, gdbarch.c: Re-generate.
6538 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6539 * vax-tdep.c (_initialize_vax_tdep): Update.
6540 * v850-tdep.c (_initialize_v850_tdep): Update.
6541 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6542 * s390-tdep.c (_initialize_s390_tdep): Update.
6543 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6544 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6545 * mips-tdep.c (_initialize_mips_tdep): Update.
6546 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6547 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6548 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6549 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6550 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6551 * frv-tdep.c (_initialize_frv_tdep): Update.
6552 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6553 (_initialize_cris_tdep): Update.
6554 * arch-utils.c (legacy_print_insn): Update.
6555 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6556
d2630e69
AF
65572003-04-26 Adam Fedor <fedor@gnu.org>
6558
6559 * linespec.c (decode_objc): New function to decode ObjC calls
6560 (decode_line_1): Check for ObjC calls (using decode_objc)
6561 * Makefile (linespec.o): Update dependencies.
6562
3086aeae
DJ
65632003-04-26 Daniel Jacobowitz <drow@mvista.com>
6564
6565 * breakpoint.h (struct breakpoint_ops): New.
6566 (struct breakpoint): Add ops member.
6567
6568 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6569 (mention): Use new breakpoint ops member.
6570 (set_raw_breakpoint): Initialize ops field to NULL.
6571 (print_exception_catchpoint, print_one_exception_catchpoint)
6572 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6573 (gnu_v3_exception_catchpoint_ops): New.
6574 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6575
1fbec6c3
AF
65762003-04-25 Adam Fedor <fedor@gnu.org>
6577
6578 * Makefile.in (COMMON_OBS): Add objc-lang.o
6579
0ef21242
AC
65802003-04-25 Andrew Cagney <cagney@redhat.com>
6581
6582 * d10v-tdep.c (print_insn): Delete function.
6583 (display_trace): Use TARGET_PRINT_INSN.
6584 (_initialize_d10v_tdep): Do not set tm_print_insn.
6585 (d10v_gdbarch_init): Set print_insn.
6586
f75493ed
AC
65872003-04-25 Andrew Cagney <cagney@redhat.com>
6588
6589 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6590 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6591 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6592 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6593 (nr_dmap_regs, a0_regnum): ... new functions.
6594 (d10v_print_registers_info): Use a0_regnum, use register_size.
6595 (d10v_register_byte): Delete function.
6596 (d10v_register_raw_size): Delete function.
6597 (d10v_register_type): Use a0_regnum.
6598 (d10v_print_registers_info): Use a0_regnum.
6599 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6600 (d10v_gdbarch_init): Do not set register_byte or
6601 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6602 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6603 extract_address.
6604 (trace_command): Use XCALLOC.
6605 (print_insn): Delete reference to tm_print_insn.
6606 (saved_regs_unwinder): Use store_unsigned_integer instead of
6607 store_address.
6608 * frame.h (FRAME_OBSTACK_CALLOC): Define
6609
2202b100
DC
66102003-04-25 David Carlton <carlton@bactrian.org>
6611
6612 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6613
4e45ca2e
AF
66142003-04-24 Adam Fedor <fedor@gnu.org>
6615
6616 * objc-lang.c: Include "valprint.h"
6617 * Makefile.in (objc-lang.o): Update dependencies.
6618
93de3e7f
AF
66192003-04-24 Adam Fedor <fedor@gnu.org>
6620
8ffd9b1b 6621 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6622 architecture dependant compilation and mark as unimplemented
6623 (until they get put in the gdbarch vector).
6624
0f20eeea
DC
66252003-04-23 David Carlton <carlton@bactrian.org>
6626
6627 * cp-support.c (cp_find_first_component): Accept 'operator' in
6628 more locations.
6629
74cfe982
AC
66302003-04-23 Andrew Cagney <cagney@redhat.com>
6631
6632 * infcall.c (call_function_by_hand): Eliminate redundant
6633 indentation. Move "saved_async" and "old_cleanups" to where they
6634 are needed.
8ffd9b1b 6635
52557533
AC
66362003-04-23 Andrew Cagney <cagney@redhat.com>
6637
6638 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6639 and "buffer". Move the "name" code to where it is needed.
6640
158775de
AC
66412003-04-23 Andrew Cagney <cagney@redhat.com>
6642
6643 * infcall.c (call_function_by_hand): Move variables "start_sp",
6644 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6645 code to ON_STACK switch branch.
8ffd9b1b 6646
ebc7896c
AC
66472003-04-23 Andrew Cagney <cagney@redhat.com>
6648
6649 * infcall.c (call_function_by_hand): Make declaration of "i",
6650 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6651 lint.
6652
d727590f
AC
66532003-04-23 Andrew Cagney <cagney@redhat.com>
6654
6655 * infcall.c (call_function_by_hand): Delete variable
6656 "n_method_args". Localize "param_type"'s declaration to the loop
6657 that it is used. Reinstate code assigning to said variable -
6658 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6659 Rationalize code using "param_type".
6660
d585e13a
AC
66612003-04-22 Andrew Cagney <cagney@redhat.com>
6662
6663 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6664 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6665 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6666 to DEPRECATED_PUSH_RETURN_ADDRESS.
6667
051caad9
KB
66682003-04-22 Kevin Buettner <kevinb@redhat.com>
6669
6670 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6671 on the DWARF2 register number prior to fetching a register.
6672
77296879
JB
66732003-04-22 J. Brobecker <brobecker@gnat.com>
6674
6675 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6676 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6677 this macro was always set to 0.
77296879
JB
6678 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6679 considering the fact that this macro was always set to 0.
6680 * hppa-tdep.h (hppa_store_return_value): Likewise.
6681 (hppa_extract_return_value): Likewise.
6682
4252f1df
JB
66832003-04-22 J. Brobecker <brobecker@gnat.com>
6684
6685 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6686 the hppa-pro target only.
6687
14604c6b
JB
66882003-04-21 J. Brobecker <brobecker@gnat.com>
6689
6690 Ongoing multi-arch conversion effort for HP/UX:
6691 * config/pa/tm-hppa.h: Move all macro that are no longer
6692 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6693 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6694
77eb01d1
JB
66952003-04-21 J. Brobecker <brobecker@gnat.com>
6696
6697 * config/pa/tm-hppa.h: Obsolete a section that was only used
6698 for hppa-pro.
6699
61995b3b
JB
67002003-04-21 J. Brobecker <brobecker@gnat.com>
6701
6702 Ongoing multi-arch conversion for HP/UX.
6703 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6704 if already defined (allows hppa64 to stay non-multiarched for now).
6705 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6706
4aa79dcc
AC
67072003-04-21 Andrew Cagney <cagney@redhat.com>
6708
6709 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6710
0f751ff2
AC
67112003-04-21 Andrew Cagney <cagney@redhat.com>
6712
6713 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6714 "i386_num_mmx_regs".
6715
04714b91
AC
67162003-04-21 Andrew Cagney <cagney@redhat.com>
6717
6718 * infcall.c: New file.
6719 * infcall.h: New file.
6720 * valarith.c: Include "infcall.h".
6721 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6722 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6723 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6724 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6725 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6726 (SFILES): Add "infcall.c"
6727 (COMMON_OBS): Add "infcall.o".
6728 (infcall.o): Specify dependencies.
6729 * value.h (call_function_by_hand): Delete declaration.
6730 * inferior.h (run_stack_dummy): Delete declaration.
6731 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6732 (run_stack_dummy): Move to "infcall.c", merged into
6733 call_function_by_hand.
6734 * valops.c (call_function_by_hand): Moved to "infcall.c".
6735 (find_function_addr, value_arg_coerce): Ditto.
6736 (unwindonsignal_p, coerce_float_to_double): Ditto.
6737 (_initialize_valops): Move "set/show coerce-float-to-double", and
6738 "set/show unwindonsignal" commands to "infcall.c".
6739 * v850-tdep.c, target.h: Update comments.
6740 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6741 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6742 (sh64_init_extra_frame_info): Update comments.
6743 * mn10300-tdep.c: Update comments.
6744 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6745 * config/sparc/tm-sparc.h: Update comments.
6746 * breakpoint.h: Update comments.
6747 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6748 * arm-tdep.c: Update comment.
6749
f9d3c2a8
MK
67502003-04-19 Mark Kettenis <kettenis@gnu.org>
6751
c40e1eab
MK
6752 * i386-tdep.c (i386_num_register_names): New variable.
6753 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6754 (MM0_REGNUM): Remove redundant parentheses in define.
6755 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6756 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6757 i386_mxcsr_regnum_p): Remove redundant parentheses.
6758 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6759
94ea66b3
MK
6760 * i386-tdep.c (i386_extract_return_value,
6761 i386_store_return_value): Correct check for availability of
6762 floating-point registers.
6763
54299a1d
MK
6764 * i386-tdep.c (i386_frame_num_args): Remove function.
6765 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6766
c86c27af
MK
6767 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6768 mmx_regnum_to_fp_regnum. Adjust all callers.
6769
f9d3c2a8
MK
6770 * i386-tdep.c (i386_get_longjmp_target): Use
6771 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6772 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6773 extract_address.
6774
94ba74a9
MK
67752003-04-19 Mark Kettenis <kettenis@gnu.org>
6776
6777 * core-regset.c: Update comments to reflect reality. Re-order
6778 includes.
6779 (fetch_core_registers): Use switch instead of if. Remove
6780 redundant prototype.
6781
4074e13c
JB
67822003-04-18 Jim Blandy <jimb@redhat.com>
6783
6784 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6785 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6786
e3ab4aba
RH
67872003-04-17 Richard Henderson <rth@redhat.com>
6788
6789 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6790
627bf7c1
EZ
67912003-04-17 Michael Snyder <msnyder@redhat.com>
6792 Karen Bennet <bennet@redhat.com>
6793
6794 Committed by Elena Zannoni <ezannoni@redhat.com>
6795 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6796
514621a9
EZ
67972003-04-17 Elena Zannoni <ezannoni@redhat.com>
6798
6799 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6800 value if the return type is void.
514621a9 6801
b4acd559
JJ
68022003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6803
6804 * thread-db.c: Reindented.
8ffd9b1b 6805
530b167e 68062003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6807
6808 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6809 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6810 as types.
6811
0a48e7e8
MS
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
8ffd9b1b 6835
ab9fe00e
KB
68362003-04-16 Kevin Buettner <kevinb@redhat.com>
6837
610a3745 6838 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6839 the size of ``long double'' to 16, instead of 8.
6840
e64a344c
MK
68412003-04-16 Mark Kettenis <kettenis@gnu.org>
6842
6843 * i386-linux-nat.c: Add some whitespace to make things more
6844 readable.
6845 (fetch_register, store_register, fetch_inferior_registers,
6846 store_inferior_registers): Get rid of assignment in if-statement.
6847 (store_register): Fix typo in error message.
6848
25d41031
AC
68492003-04-16 Andrew Cagney <cagney@redhat.com>
6850
6851 * utils.c (xmmalloc): Always allocate something, matches
6852 libiberty/xmalloc's semantics.
6853 (xmrealloc, xmcalloc): Ditto.
6854
c50901fd
AC
68552003-04-16 Andrew Cagney <cagney@redhat.com>
6856
6857 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6858 update comments.
6859 (get_frame_type): Initialize unwind and type when needed.
6860 (get_frame_id, frame_register_unwind): Ditto.
6861
f81824a9
AC
68622003-04-16 Andrew Cagney <cagney@redhat.com>
6863
6864 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6865 obsolete.
6866 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6867 * sparcl-stub.c: Obsolete file.
6868 * config/sparc/tm-sparclet.h: Obsolete file.
6869 * sparclet-stub.c: Obsolete file.
6870 * sparclet-rom.c: Obsolete file.
6871 * sparcl-tdep.c: Obsolete file.
6872 * config/sparc/tm-sparclite.h: Obsolete file.
6873 * config/sparc/sparclite.mt: Obsolete file.
6874 * config/sparc/sparclet.mt: Obsolete file.
6875 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6876 sparc86x-*-* obsolete.
6877
9219021c
DC
68782003-04-15 David Carlton <carlton@math.stanford.edu>
6879
6880 * Makefile.in (SFILES): Add cp-namespace.c.
6881 (COMMON_OBS): Add cp-namespace.o.
6882 (block.o): Depend on gdb_obstack_h and cp_support_h.
6883 (buildsym.o): Depend on cp_support_h.
6884 (cp-namespace.o): New.
6885 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6886 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6887 (dwarf2read.o): Depend on cp_support_h.
6888 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6889 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6890 processing_current_namespace.
6891 (read_namespace): Update processing_current_namespace; check for
6892 anonymous namespaces.
6893 (dwarf2_name): New function.
6894 (dwarf2_extension): Ditto.
6895 * cp-support.h: Update copyright, contributors.
6896 Add inclusion guards.
6897 Add opaque declaration for structs obstack, block, symbol.
6898 (struct using_direct): New struct.
6899 Add declarations for cp_find_first_component,
6900 cp_entire_prefix_len, processing_has_namespace_info,
6901 processing_current_namespace, cp_is_anonymous,
6902 cp_add_using_directive, cp_initialize_namespace,
6903 cp_finalize_namespace, cp_set_block_scope,
6904 cp_scan_for_anonymous_namespaces.
6905 * cp-namespace.c: New file.
6906 * cp-support.c: Update copyright.
6907 Include ctype.h, gdb_assert.h, gdbcmd.h.
6908 New variable maint_cplus_cmd_list.
6909 (cp_find_first_component): New function.
6910 (cp_entire_prefix_len, maint_cplus_command)
6911 (first_component_command, _initialize_cp_support): Ditto.
6912 * buildsym.c: Include cp-support.h.
6913 New variable using_list.
6914 (add_symbol_to_list): Check for anonymous namespaces.
6915 (finish_block): Set block's scope.
6916 (start_symtab): Initialize C++ namespace support.
6917 (end_symtab): Finalize C++ namespace support.
6918 * block.h: Add opaque declarations for structs
6919 block_namespace_info, using_direct, and obstack.
6920 Add declarations for block_set_scope and block_set_using.
6921 (struct block): Add 'language_specific' member.
6922 (BLOCK_NAMESPACE): New macro.
6923 * block.c: Include gdb_obstack.h and cp-support.h.
6924 (struct block_namespace_info): New struct.
6925 (block_set_scope): New function.
6926 (block_set_using, block_initialize_namespace): Ditto.
6927
d5a921c9
KB
69282003-04-14 Kevin Buettner <kevinb@redhat.com>
6929
6930 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6931 (locate_base): Return early if there aren't any link map offsets.
6932 (svr4_solib_create_inferior_hook): Warn if shared library support
6933 is unavailable.
6934
d2a52b27
DC
69352003-04-14 David Carlton <carlton@math.stanford.edu>
6936
6937 * symtab.c (symbol_set_names): Add prefix when storing Java names
6938 in hash table. Fix for PR java/1039.
6939
980cae7a
DC
69402003-04-14 David Carlton <carlton@math.stanford.edu>
6941
6942 * symtab.c (symbol_set_names): Rename 'name' arg to
6943 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6944 * symtab.h: Change 'name' argument in declaration of
6945 symbol_set_names to 'linkage_name'.
6946 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6947
e227b13c
AC
69482003-04-14 Andrew Cagney <cagney@redhat.com>
6949
6950 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6951 return the fully sign-extended register value.
6952 (get_frame_pointer): Ditto.
6953 (mips_pop_frame): Initialize "proc_desc" after checking for a
6954 dummy frame.
6955
36712a20
AC
69562003-04-14 Andrew Cagney <cagney@redhat.com>
6957
6958 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6959 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6960 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6961 (mips_push_register): Delete function.
6962 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6963 PUSH_FP_REGNUM.
6964
44ea7b70
JB
69652003-04-14 Jim Blandy <jimb@redhat.com>
6966
6967 * symmisc.c: #include "gdb_regex.h".
6968 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6969 functions.
6970 * maint.c (maintenance_list_command): New function.
6971 (_initialize_maint_cmds): Register the above as commands.
6972 * symtab.h (maintenance_list_symtabs,
6973 maintenance_list_psymtabs): New declarations.
6974 * cli/cli-cmds.c (maintenancelistlist): New variable.
6975 (init_cmd_lists): Initialize it.
6976 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6977 * gdbcmd.h (maintenancelistlist): New declaration.
6978 * Makefile.in (symmisc.o): Update dependencies.
6979
2d0c7962
EZ
69802003-04-14 Elena Zannoni <ezannoni@redhat.com>
6981
6982 * s390-nat.c: Include asm/types.h for addr_t.
6983
1947a811
CV
69842003-04-14 Corinna Vinschen <vinschen@redhat.com>
6985
6986 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6987 actually incoming type.
6988
adb616d7
AC
69892003-04-13 Andrew Cagney <cagney@redhat.com>
6990
6991 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6992 get_next_frame and get_frame_saved_regs.
6993
9b5e151c
AC
69942003-04-13 Andrew Cagney <cagney@redhat.com>
6995
6996 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6997 of gdbarch_num_regs.
6998
ef6e7e13
AC
69992003-04-13 Andrew Cagney <cagney@redhat.com>
7000
7001 * frame.h: Mention what replaced what in "struct frame_info".
7002 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7003 deprecated_update_frame_base_hack and
7004 deprecated_update_frame_pc_hack.
7005 * hppa-tdep.c: Ditto.
7006
61fbb938
DJ
70072003-04-13 Daniel Jacobowitz <drow@mvista.com>
7008
7009 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7010 to read_reg and update its comment. Remove regnum member.
7011 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7012 Don't call read_reg when setting in_reg. Call read_reg to get
7013 the frame base if it's in a register. Return the register number
7014 on the stack instead of in the context. Remove extra arguments
7015 to read_reg.
7016 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7017 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7018 the register number on the expression stack.
7019 (needs_frame_read_reg): Remove extra arguments.
7020
0d53c4c4
DJ
70212003-04-13 Daniel Jacobowitz <drow@mvista.com>
7022
7023 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7024 made non-static.
7025 (execute_stack_op): All callers updated.
7026 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7027 * dwarf2loc.c (find_location_expression): New function.
7028 (dwarf_expr_frame_base): Call it.
7029 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7030 (dwarf2_tracepoint_var_ref): New function, broken out from
7031 locexpr_tracepoint_var_ref.
7032 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7033 Make static.
7034 (loclist_read_variable, loclist_read_needs_frame): New functions.
7035 (loclist_describe_location, loclist_tracepoint_var_ref): New
7036 functions.
7037 (dwarf2_loclist_funcs): New struct location_funcs.
7038 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7039 (struct dwarf2_locexpr_baton): Add comments.
7040 (dwarf2_loclist_funcs): New extern.
7041 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7042 base_address and base_known.
7043 (dwarf_loc_buffer): New variable.
7044 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7045 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7046 (dwarf2_has_info): Initialize dwarf_loc_offset.
7047 (dwarf2_build_psymtabs): Read in .debug_loc.
7048 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7049 DWARF_LOC_SIZE.
7050 (psymtab_to_symtab_1): Likewise. Move base address calculation
7051 here, from...
7052 (dwarf2_get_pc_bounds): ... here. Use the base address from
7053 cu_header.
7054 (dwarf2_symbol_mark_computed): Handle location lists.
7055
6aca59a3
DJ
70562003-04-13 Daniel Jacobowitz <drow@mvista.com>
7057
7058 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7059 if the linkage name demangled successfully.
7060
aca1fcd0
MK
70612003-04-13 Mark Kettenis <kettenis@gnu.org>
7062
97095916
MK
7063 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7064 disassmbly_flavour): Removed.
7065
aca1fcd0
MK
7066 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7067
562a961f
MK
70682003-04-13 Mark Kettenis <kettenis@gnu.org>
7069
7070 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7071
bd013d54
AC
70722003-04-12 Andrew Cagney <cagney@redhat.com>
7073
7074 * frame.h (struct frame_info): Move definition from here ...
7075 * frame.c (struct frame_info): ... to here.
7076
167ef8b1
AC
70772003-04-12 Andrew Cagney <cagney@redhat.com>
7078
7079 * gdbthread.h (save_infrun_state): Delete parameter
7080 "prev_func_start".
7081 (struct thread_info): Delete field "prev_func_start".
7082 (load_infrun_state): Ditto.
7083 * thread.c (load_infrun_state, save_infrun_state): Update.
7084 * infrun.c (prev_func_start): Delete variable.
7085 (context_switch, init_wait_for_inferior): Update.
7086 (stop_stepping, keep_going): Update.
7087
da3331ec
AC
70882003-04-12 Andrew Cagney <cagney@redhat.com>
7089
7090 * gdbarch.sh: Add missing opaque declarations.
7091 * gdbarch.h: Regnerate.
7092 * symtab.h: Add missing opaque declarations.
7093 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7094 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7095 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7096 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7097 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7098 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7099 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7100 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7101 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7102 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7103 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7104 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7105 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7106
18adea3f
AC
71072003-04-11 Andrew Cagney <cagney@redhat.com>
7108
7109 * frame.c (get_frame_id): Return this frame's "id".
7110 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7111 function start.
7112 (legacy_saved_regs_this_id): Replace function body with
7113 internal-error.
7114 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7115 FRAME_OBSTACK_ZALLOC.
7116 (create_new_frame): Mark the frame ID as valid.
7117
2252e863
AO
71182003-04-11 Alexandre Oliva <aoliva@redhat.com>
7119
7120 * Makefile.in (libbfd_h): Added missing setting.
7121 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7122 according to the selected ABI.
7123
a8245ab8
JJ
71242003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7125
7126 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7127
6913c89a
AC
71282003-04-11 Andrew Cagney <cagney@redhat.com>
7129
7130 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7131 SAVED_PC_AFTER_CALL.
7132 * gdbarch.h, gdbarch.c: Regenerate.
7133 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7134 * x86-64-tdep.c (x86_64_init_abi): Update.
7135 * vax-tdep.c (vax_gdbarch_init): Update.
7136 * v850-tdep.c (v850_gdbarch_init): Update.
7137 * sparc-tdep.c (sparc_gdbarch_init): Update.
7138 * sh-tdep.c (sh_gdbarch_init): Update.
7139 * s390-tdep.c (s390_gdbarch_init): Update.
7140 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7141 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7142 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7143 * mips-tdep.c (mips_gdbarch_init): Update.
7144 * mcore-tdep.c (mcore_gdbarch_init): Update.
7145 * m68k-tdep.c (m68k_gdbarch_init): Update.
7146 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7147 * ia64-tdep.c (ia64_gdbarch_init): Update.
7148 (ia64_saved_pc_after_call): Update declaration.
7149 * i386ly-tdep.c (i386lynx_init_abi): Update.
7150 * i386-tdep.c (i386_gdbarch_init): Update.
7151 * hppa-tdep.c (hppa_gdbarch_init): Update.
7152 * h8300-tdep.c (h8300_gdbarch_init): Update.
7153 * frv-tdep.c (frv_gdbarch_init): Update.
7154 * cris-tdep.c (cris_gdbarch_init): Update.
7155 * avr-tdep.c (avr_gdbarch_init): Update.
7156 * arm-tdep.c (arm_gdbarch_init): Update.
7157 * alpha-tdep.c (alpha_gdbarch_init): Update.
7158 * ns32knbsd-nat.c (frame_num_args): Update.
7159 * ns32k-tdep.c (umax_frame_num_args): Update.
7160 * mips-tdep.c (mips_init_frame_pc_first): Update.
7161 * infrun.c (step_over_function): Update.
7162 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7163 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7164 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7165 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7166 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7167 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7168 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7169 * arch-utils.c (init_frame_pc_default): Update.
7170 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7171 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7172 declaration.
8ffd9b1b 7173
38edeab8
AC
71742003-04-11 Andrew Cagney <cagney@redhat.com>
7175
7176 * i387-tdep.c: Update copyright.
7177 (i387_to_double): Delete function.
7178 (double_to_i387): Delete function.
7179
81f8a206
AC
71802003-04-10 Andrew Cagney <cagney@redhat.com>
7181
7182 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7183 frame's function's address. Simplify.
7184 (d10v_frame_unwind_cache): Check that the frame's function is
7185 non-zero.
7186
6e691f7a
JB
71872003-04-10 Jim Blandy <jimb@redhat.com>
7188
7189 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7190 call to set_gdbarch_deprecated_push_arguments.
7191
7f78e237
AC
71922003-04-10 Andrew Cagney <cagney@redhat.com>
7193
7194 * frame.c (fprint_frame_id): New function.
7195 (fprint_frame_type, fprint_frame): New function.
7196 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7197 (create_sentinel_frame, get_frame_id): Ditto.
7198 (frame_id_p, frame_id_eq): Ditto.
7199 (frame_id_inner, create_new_frame): Ditto.
7200 (legacy_get_prev_frame, get_prev_frame): Ditto.
7201 (deprecated_update_frame_pc_hack): Ditto.
7202 (frame_register_unwind): Ditto.
7203 (deprecated_update_frame_base_hack): Ditto.
7204
f870b49b
CV
72052003-04-10 Corinna Vinschen <vinschen@redhat.com>
7206
7207 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7208 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7209 frame_chain function.
7210 * Makefile.in: Add dependencies due to above change.
7211
7c86889b
CV
72122003-04-10 Corinna Vinschen <vinschen@redhat.com>
7213
7214 * blockframe.c (legacy_frame_chain_valid): Move call to
7215 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7216 inside_entry_file.
7217
d0a55772
AC
72182003-04-09 Andrew Cagney <cagney@redhat.com>
7219
7220 * frame.h (struct frame_id): Replace "pc" and "base" with
7221 "stack_addr" and "code_addr". Update comments.
7222 (frame_id_build): Update parameter names and comment.
7223 (struct frame_info): Replace "id_p" and "id" with "this_id".
7224 * dummy-frame.c (dummy_frame_this_id): Update.
7225 * breakpoint.c (print_one_breakpoint): Update.
7226 * frame.c (get_frame_id): Update.
7227 (get_frame_base, frame_id_build): Update.
7228 (create_sentinel_frame, legacy_get_prev_frame): Update.
7229 (deprecated_update_frame_base_hack): Update.
7230 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7231 (frame_id_inner): Ditto.
7232
ac16bf07
AC
72332003-04-09 Andrew Cagney <cagney@redhat.com>
7234
7235 * defs.h (gdb_print_host_address): Make "addr" parameter a
7236 pointer constant.
7237 * utils.c (gdb_print_host_address): Update.
7238
366cfc9e
KB
72392003-04-09 Kevin Buettner <kevinb@redhat.com>
7240
7241 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7242 register number for R0 is 0.
7243
cd983b5c
JB
72442003-04-09 J. Brobecker <brobecker@gnat.com>
7245
7246 * frame.h (struct gdbarch): Add opaque structure definition
7247 to avoid a compilation warning on LynxOS 4.0.
7248
d1340264
AC
72492003-04-09 Andrew Cagney <cagney@redhat.com>
7250
7251 * frame.h (struct frame_info): Delete field "pc". Replace
7252 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7253 structure.
7254 * frame.c (frame_pc_unwind): Update.
7255 (create_sentinel_frame): Do not set "pc".
7256 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7257 (get_frame_pc): Call frame_pc_unwind.
7258 (deprecated_update_frame_pc_hack): Update.
7259 (create_new_frame): Use "pc" not "->pc".
7260
90a6fffb
AC
72612003-04-09 Andrew Cagney <cagney@redhat.com>
7262
7263 * frame.c (get_frame_id): Eliminate code updating "frame".
7264 (legacy_get_prev_frame): Ditto.
7265 (get_frame_base): Return id.base directly.
7266 (deprecated_update_frame_base_hack): Update "id.base".
7267 * frame.h (struct frame_info): Delete field "frame".
7268
2fbce691
AC
72692003-04-09 Andrew Cagney <cagney@redhat.com>
7270
7271 * NEWS: Mention that the "Sequent family" is obsolete.
7272 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7273 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7274 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7275 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7276 * config/i386/tm-ptx4.h: Obsolete file.
7277 * config/i386/tm-ptx.h: Obsolete file.
7278 * symm-tdep.c: Obsolete file.
7279 * config/i386/symmetry.mt: Obsolete file.
7280 * config/i386/tm-symmetry.h: Obsolete file.
7281 * symm-nat.c: Obsolete file.
7282 * config/i386/nm-symmetry.h: Obsolete file.
7283 * config/i386/xm-symmetry.h: Obsolete file.
7284 * config/i386/symmetry.mh: Obsolete file.
7285 * config/i386/nm-ptx4.h: Obsolete file.
7286 * config/i386/ptx4.mh: Obsolete file.
7287 * config/i386/ptx.mt: Obsolete file.
7288 * config/i386/ptx.mh: Obsolete file.
7289 * config/i386/xm-ptx4.h: Obsolete file.
7290 * config/i386/xm-ptx.h: Obsolete file.
7291
78c43945
AC
72922003-04-09 Andrew Cagney <cagney@redhat.com>
7293
7294 Obsolete mips*-*-mach3*.
7295 * NEWS: Mention that mips*-*-mach3* is obsolete.
7296 * m3-nat.c: Obsolete file.
7297 * config/nm-m3.h: Obsolete file.
7298 * config/mips/tm-mipsm3.h: Obsolete file.
7299 * config/mips/mipsm3.mt: Obsolete file.
7300 * config/mips/mipsm3.mh: Obsolete file.
7301 * config/mips/xm-mipsm3.h: Obsolete file.
7302 * mipsm3-nat.c: Obsolete file.
7303 * configure.host: Obsolete mips-dec-mach3*.
7304 * configure.tgt: Obsolete mips*-*-mach3*.
7305
f1908289
AC
73062003-04-09 Andrew Cagney <cagney@redhat.com>
7307
7308 * doublest.h: Update copyright.
7309 (deprecated_store_floating, deprecated_extract_floating): Rename
7310 store_floating and extract_floating. Update comments.
7311 * doublest.c: Update copyright.
7312 (extract_floating_by_length): Replace extract_floating.
7313 (store_floating_by_length): Replace store_floating.
7314 (deprecated_extract_floating): New function.
7315 (deprecated_store_floating): New function.
7316 (extract_typed_floating): Call extract_floating_by_length.
7317 (store_typed_floating): Call store_floating_by_length.
7318 * x86-64-tdep.c (x86_64_store_return_value): Update.
7319 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7320 (sh64_extract_return_value): Update.
7321 (sh_sh4_register_convert_to_virtual): Update.
7322 (sh_sh64_register_convert_to_virtual): Update.
7323 (sh_sh4_register_convert_to_raw): Update.
7324 (sh_sh64_register_convert_to_raw): Update.
7325 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7326 (rs6000_register_convert_to_raw): Update.
7327 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7328 (ia64_register_convert_to_raw): Update.
7329 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7330 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7331 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7332 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7333 (alpha_register_convert_to_raw): Update.
7334
4443bd83
AC
73352003-04-08 Andrew Cagney <cagney@redhat.com>
7336
7337 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7338 * gdbarch.h, gdbarch.c: Re-generate.
7339 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7340 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7341 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7342 conditionally, use frame_pc_unwind as an alternative. Add
7343 comments.
7344 * arch-utils.c (init_frame_pc_default): Only call
7345 SAVED_PC_AFTER_CALL when available.
7346
c0236d92
EZ
73472003-04-08 Elena Zannoni <ezannoni@redhat.com>
7348
fbe586ae 7349 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7350 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7351 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7352 (start_remote): Ditto.
7353 (handle_inferior_event): Ditto.
7354 (save_inferior_status): Ditto.
7355 (restore_inferior_status): Ditto.
7356 * infcmd.c (attach_command): Ditto.
7357 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7358 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7359 * alpha-tdep.c (heuristic_proc_start): Ditto.
7360 * mips-tdep.c (heuristic_proc_start): Ditto.
7361 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7362 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7363 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7364 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7365 * remote-vx.c (vx_create_inferior): Ditto.
7366
73672003-04-08 Elena Zannoni <ezannoni@redhat.com>
7368
7369 * infrun.c (stop_soon_quietly): Make it an enum, to better
7370 override the default behavior of handle_inferior_event.
7371 (clear_proceed_status): Update uses of stop_soon_quietly to
7372 reflect that it is now an enum.
7373 (start_remote): Ditto.
7374 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7375 is set to handle the new GNU/Linux kernel behavior for
7376 attach/sigstop. Update uses of stop_soon_quietly.
7377 * inferior.h (enum stop_kind): New enum.
7378 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7379 Reset normal handle_inferior_event behavior, afterwards.
7380 * fork-child.c (startup_inferior): Update.
7381 * alpha-tdep.c (heuristic_proc_start): Update.
7382 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7383 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7384 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7385 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7386 * remote-vx.c (vx_create_inferior): Update.
7387 * mips-tdep.c (heuristic_proc_start): Update.
7388
1211bce3
EZ
73892003-04-07 Elena Zannoni <ezannoni@redhat.com>
7390
7391 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7392 be freed more than once, causing wild memory corruptions.
1211bce3 7393 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7394 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7395 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7396 with the "core" target.
1211bce3 7397
f0ef6b29
KB
73982003-04-07 Kevin Buettner <kevinb@redhat.com>
7399
7400 * mips-tdep.c (mips_print_fp_register): New function, created from
7401 do_fp_register_row(). Registers are now (also) printed as hex.
7402 Only one register is printed per row.
7403 (mips_print_register, do_fp_register_row): Print floating point
7404 registers with mips_print_fp_register().
7405
8cf71652
AC
74062003-04-06 Andrew Cagney <cagney@redhat.com>
7407
5e488a7b
AC
7408 * valprint.h (inspect_it): Add extern declaration.
7409 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7410 (selectors_info, classes_info): Ditto.
7411 (find_objc_msgcall): Fix indentation.
7412 (objc_printstr): Delete extern declarations.
7413
8cf71652
AC
7414 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7415
e6ba3bc9
AC
74162003-04-06 Andrew Cagney <cagney@redhat.com>
7417
7418 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7419 Update comment.
7420 * frame.c (legacy_saved_regs_this_id): Update.
7421 (legacy_get_prev_frame): Update.
7422 * xstormy16-tdep.c: Update comment.
7423 * sparc-tdep.c (sparc_frame_chain): Update comment.
7424 * blockframe.c (legacy_frame_chain_valid): Update.
7425
55e1d7e7
AC
74262003-04-06 Andrew Cagney <cagney@redhat.com>
7427
996179ee
AC
7428 * valprint.c (val_print_type_code_int): Delete #ifdef
7429 PRINT_TYPELESS_INTEGER code.
7430
55e1d7e7
AC
7431 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7432 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7433 multi-arch definition.
7434 * gdbarch.h: Re-generate.
7435
43bd9a9e
AC
74362003-04-05 Andrew Cagney <cagney@redhat.com>
7437
7438 Eliminate FRAME_FIND_SAVED_REGS.
7439 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7440 Change FSR parameter to a pointer.
7441 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7442 Assume FSR parameter is a pointer.
7443 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7444 Make fsr a pointer.
7445 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7446 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7447 saved_regs a pointer.
7448 (hppa_frame_saved_pc): Ditto.
7449 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7450 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7451 pointer.
7452 (restore_pc_queue): Make fsr a pointer.
7453 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7454 (hppa_frame_chain): Make saved_regs a pointer, call
7455 hppa_frame_init_saved_regs.
7456 * sparc-tdep.c: Include "gdb_assert.h".
7457 (sparc_frame_find_saved_regs): Replace internal_error with
7458 gdb_assert.
7459 * remote-vxsparc.c (vx_read_register): Delete reference to
7460 FRAME_FIND_SAVED_REGS.
7461 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7462 * gdbarch.h: Regenerate.
7463 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7464 (deprecated_get_frame_saved_regs): Delete declaration.
7465 (struct frame_saved_regs): Delete definition.
7466 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7467 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7468 (hppa_frame_find_saved_regs): Delete declaration.
7469 (FRAME_FIND_SAVED_REGS): Delete macro.
7470 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7471 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7472 FRAME_FIND_SAVED_REGS in comment.
7473
be41e9f4
AC
74742003-04-05 Andrew Cagney <cagney@redhat.com>
7475
7476 * frame.c (frame_func_unwind, get_frame_func): New functions.
7477 * frame.h (get_frame_func, frame_func_unwind): Declare.
7478 (struct frame_info): Add field "prev_func" for caching the
7479 previous frame's function address.
7480 * arm-tdep.c (arm_frameless_function_invocation): Combine
7481 get_pc_function_start and get_frame_pc into get_frame_func.
7482 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7483 (sh64_nofp_frame_init_saved_regs): Ditto.
7484 * s390-tdep.c (s390_function_start): Ditto.
7485 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7486 (rs6000_frameless_function_invocation): Ditto.
7487 (rs6000_frame_saved_pc): Ditto.
7488 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7489 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7490 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7491 (i386_frame_init_saved_regs): Ditto.
7492 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7493 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7494 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7495 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7496 * blockframe.c (frameless_look_for_prologue): Ditto.
7497
a01dd7cc
AC
74982003-04-05 Andrew Cagney <cagney@redhat.com>
7499
7500 * frame.c (legacy_get_prev_frame): Link prev to next at the
7501 function start. Update comments.
7502
5e5592e6
AC
75032003-04-05 Andrew Cagney <cagney@redhat.com>
7504
7505 * frame.c (get_frame_id): Update comment.
7506 (legacy_get_prev_frame): Update comment.
7507 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7508 * gdbarch.h: Regenerate.
7509 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7510 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7511
6fba5002
AC
75122003-04-05 Andrew Cagney <cagney@redhat.com>
7513
7514 * stack.c (print_frame_info): Use get_frame_pc.
7515
7df05f2b
AC
75162003-04-04 Andrew Cagney <cagney@redhat.com>
7517
7518 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7519 the frame's type from the unwinder.
7520 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7521 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7522 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7523 (get_frame_base_address): Use get_frame_type.
7524 (get_frame_locals_address, get_frame_args_address): Ditto.
7525 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7526 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7527 (struct frame_info): Add comment explaining why the frame contains
7528 a "type" field.
7529 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7530 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7531 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7532 NORMAL_FRAME.
7533 * frame-unwind.h: Include "frame.h".
7534 (struct frame_unwind): Add "type" field.
7535 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7536
11889732
AC
75372003-04-04 Andrew Cagney <cagney@redhat.com>
7538
7539 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7540 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7541 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7542 get_frame_base.
7543 (d10v_unwind_dummy_id): Use frame_id_build.
7544 * frame.c (find_frame_sal): Use get_frame_pc.
7545 (create_new_frame): Use deprecated_update_frame_pc_hack and
7546 deprecated_update_frame_base_hack.
7547 (create_sentinel_frame): Add comment about ->pc going away.
7548 (get_prev_frame): Add comment about ->pc going away.
7549 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7550 frame_id_build, deprecated_update_frame_pc_hack and
7551 deprecated_update_frame_base_hack.
7552 (select_frame): Use get_frame_pc.
7553 (legacy_saved_regs_this_id): Use frame_id_build.
7554
50c46a0d
EZ
75552003-04-04 Elena Zannoni <ezannoni@redhat.com>
7556
fbe586ae
RH
7557 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7558 signed integer case.
7559 (classify_argument): Handle enumerations and references.
50c46a0d 7560
50bbdbd9
AC
75612003-04-04 Andrew Cagney <cagney@redhat.com>
7562
7563 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7564 ID to NULL.
7565
36018d2e
AF
75662003-04-01 Adam Fedor <fedor@gnu.org>
7567
7568 * gdb/objc-lang.c (selectors_info): Replace calls to
7569 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7570 SYMBOL_NATURAL_NAME.
7571 (classes_info, find_methods): Likewise.
7572
35cec841
KB
75732003-04-03 Kevin Buettner <kevinb@redhat.com>
7574
7575 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7576 ``mach'' to the value determined by bfd_default_set_arch_mach().
7577
43136899
BR
75782003-04-02 Bob Rossi <bob_rossi@cox.net>
7579
7580 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7581 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7582 (mi-cmd-file.o): Update dependencies.
7583
040b99fd
KB
75842003-04-01 Kevin Buettner <kevinb@redhat.com>
7585
7586 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7587 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7588
9a3d7dfd
AF
75892003-04-01 Adam Fedor <fedor@gnu.org>
7590
7591 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7592 * language.h (struct language_defn): Add la_demangle.
7593 (language_demangle): Declare.
7594 * language.c (language_demangle): New function.
7595 (unk_lang_demangle): Likewise.
7596 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7597 Add ukn_lang_demangle.
9a3d7dfd 7598 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7599 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7600 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7601 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7602 * jv-lang.c (java_demangle): New function
7603 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7604 * objc-lang.c (objc_demangle): Add options argument
7605 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7606 * maint.c (maintenance_demangle): Replace switch with
7607 call to language_demangle.
7608 * utils.c (fprintf_symbol_filtered): Likewise.
7609
5e074003
AC
76102003-04-01 Andrew Cagney <cagney@redhat.com>
7611
7612 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7613 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7614 PRINT_TYPELESS_INTEGER.
7615 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7616 PUSH_RETURN_ADDRESS.
7617
270cb5d6
AC
76182003-04-01 Andrew Cagney <cagney@redhat.com>
7619
7620 * Makefile.in (d10v-tdep.o): Update dependencies.
7621 * d10v-tdep.c: Include "frame-base.h".
7622 (d10v_frame_unwind): Make constant.
7623 (d10v_frame_base_address): New function.
7624 (d10v_frame_base): New variable.
7625 (d10v_gdbarch_init): Set frame_base default.
7626 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7627 comment for base.
7628 (d10v_frame_unwind_cache): Set and use "prev_sp".
7629 (d10v_frame_this_id): Use the previous frame's inner most stack
7630 address and this frame's func address for the frame ID. Use
7631 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7632
6bfb3e36
AC
76332003-04-01 Andrew Cagney <cagney@redhat.com>
7634
7635 * frame.h (get_frame_locals_address, get_frame_args_address):
7636 Refer to the base address, instead of the address of the first
7637 local or parameter.
8ffd9b1b 7638
da62e633
AC
76392003-04-01 Andrew Cagney <cagney@redhat.com>
7640
7641 Add frame debug info addresses:
7642 * frame-base.c: New file.
7643 * frame-base.h: New file.
7644 * frame.h (struct frame_base): Add opaque declaration.
7645 (get_frame_base): Update comment.
7646 (get_frame_base_address): Declare.
7647 (get_frame_locals_address): Declare.
7648 (get_frame_args_address): Declare.
7649 (struct frame_info): Add "base" and "base_cache". Update
7650 comments on the unwinder.
7651 * frame.c: Include "frame-base.h".
7652 (get_frame_locals_address): New function.
7653 (get_frame_base_address): New function.
7654 (get_frame_args_address): New function.
7655 * findvar.c (read_var_value): Use get_frame_locals_address and
7656 get_frame_args_address.
7657 * stack.c (frame_info): Use get_frame_locals_address and
7658 get_frame_args_address.
7659 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7660 moved to "frame-base.c".
7661 * printcmd.c (print_frame_nameless_args): Ditto.
7662 * symtab.h (address_class): Update comments.
7663 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7664 get_frame_base_address.
7665 * dwarf2expr.c (execute_stack_op): Ditto.
7666 * Makefile.in (frame_base_h): Define.
7667 (frame.o): Update dependencies.
7668 (frame-base.o): Add dependencies.
7669 (SFILES): Add frame-base.c.
7670 (COMMON_OBS): Add frame-base.o.
7671
3d30e9c2
AC
76722003-04-01 Andrew Cagney <cagney@redhat.com>
7673
7674 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7675 CALL_DUMMY_LENGTH): Ditto.
7676 * gdbarch.c: Re-generate.
7677 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7678 (CALL_DUMMY_LENGTH): Delete macro.
7679 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7680 * arm-tdep.c (arm_gdbarch_init): Ditto.
7681 * avr-tdep.c (avr_gdbarch_init): Ditto.
7682 * cris-tdep.c (cris_gdbarch_init): Ditto.
7683 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7684 * frv-tdep.c (frv_gdbarch_init): Ditto.
7685 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7686 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7687 * i386-tdep.c (i386_gdbarch_init): Ditto.
7688 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7690 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7691 * mips-tdep.c (mips_gdbarch_init): Ditto.
7692 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7693 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7694 * s390-tdep.c (s390_gdbarch_init): Ditto.
7695 * sh-tdep.c (sh_gdbarch_init): Ditto.
7696 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7697 * v850-tdep.c (v850_gdbarch_init): Ditto.
7698 * vax-tdep.c (vax_gdbarch_init): Ditto.
7699 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7700
ce0c7262
CV
77012003-04-01 Corinna Vinschen <vinschen@redhat.com>
7702
7703 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7704
73dd234f
AC
77052003-04-01 Andrew Cagney <cagney@redhat.com>
7706
7707 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7708 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7709 * gdbarch.h, gdbarch.c: Re-generate.
7710 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7711 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7712 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7713 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7714 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7715 * infcmd.c (run_stack_dummy): Simplify assuming
7716 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7717 * infrun.c (handle_inferior_event): Ditto.
7718 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7719 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7720 * arm-tdep.c (arm_gdbarch_init): Ditto.
7721 * avr-tdep.c (avr_gdbarch_init): Ditto.
7722 * cris-tdep.c (cris_gdbarch_init): Ditto.
7723 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7724 * frv-tdep.c (frv_gdbarch_init): Ditto.
7725 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7726 * i386-tdep.c (i386_gdbarch_init): Ditto.
7727 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7728 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7729 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7730 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7731 * mips-tdep.c (mips_gdbarch_init): Ditto.
7732 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7733 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7734 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7735 * s390-tdep.c (s390_gdbarch_init): Ditto.
7736 * sh-tdep.c (sh_gdbarch_init): Ditto.
7737 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7738 * v850-tdep.c (v850_gdbarch_init): Ditto.
7739 * vax-tdep.c (vax_gdbarch_init): Ditto.
7740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7741
97606a13
DJ
77422003-04-01 Daniel Jacobowitz <drow@mvista.com>
7743
7744 * symfile.c (symfile_relocate_debug_section): Update call to
7745 bfd_simple_get_relocated_section_contents.
7746
e8ab51f7
AC
77472003-03-31 Andrew Cagney <cagney@redhat.com>
7748
7749 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7750 * gdbarch.h, gdbarch.c: Regenerate.
7751 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7752 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7753 available.
7754 * frame.h (generic_fix_call_dummy): Delete declaration.
7755 * dummy-frame.h: Update comment.
7756 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7758 fix_call_dummy.
7759 * sh-tdep.c (sh_gdbarch_init): Ditto.
7760 * s390-tdep.c (s390_gdbarch_init): Ditto.
7761 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7762 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7763 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7764 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7765 * i386-tdep.c (i386_gdbarch_init): Ditto.
7766 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7767 * frv-tdep.c (frv_gdbarch_init): Ditto.
7768 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7769 * cris-tdep.c (cris_gdbarch_init): Ditto.
7770 * avr-tdep.c (avr_gdbarch_init): Ditto.
7771 * arm-tdep.c (arm_gdbarch_init): Ditto.
7772
018d1b48
JB
77732003-03-31 J. Brobecker <brobecker@gnat.com>
7774
7775 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7776 (INIT_FRAME_AP): Likewise.
7777 (EXTRA_FRAME_INFO): Likewise.
7778
e9a2674e
AC
77792003-03-31 Andrew Cagney <cagney@redhat.com>
7780
7781 * gdbarch.sh: Include "symfile.h".
7782 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7783 * gdbarch.h, gdbarch.c: Re-generate.
7784 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7786 call_dummy_address, the default is at entry_point_address.
7787 * v850-tdep.c (v850_gdbarch_init): Ditto.
7788 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7789 * sh-tdep.c (sh_gdbarch_init): Ditto.
7790 * s390-tdep.c (s390_gdbarch_init): Ditto.
7791 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7792 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7793 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7794 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7795 * i386-tdep.c (i386_gdbarch_init): Ditto.
7796 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7797 * frv-tdep.c (frv_gdbarch_init): Ditto.
7798 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7799 * cris-tdep.c (cris_gdbarch_init): Ditto.
7800 * arm-tdep.c (arm_gdbarch_init): Ditto.
7801
e8a8712a
AC
78022003-03-31 Andrew Cagney <cagney@redhat.com>
7803
7804 * gdbarch.sh (CALL_DUMMY_P): Delete.
7805 * gdbarch.h, gdbarch.c: Re-generate.
7806 * inferior.h (CALL_DUMMY_P): Delete macro.
7807 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7808 * vax-tdep.c (vax_gdbarch_init): Update.
7809 * v850-tdep.c (v850_gdbarch_init): Update.
7810 * sparc-tdep.c (sparc_gdbarch_init): Update.
7811 * sh-tdep.c (sh_gdbarch_init): Update.
7812 * s390-tdep.c (s390_gdbarch_init): Update.
7813 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7814 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7815 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7816 * mips-tdep.c (mips_gdbarch_init): Update.
7817 * mcore-tdep.c (mcore_gdbarch_init): Update.
7818 * m68k-tdep.c (m68k_gdbarch_init): Update.
7819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7820 * ia64-tdep.c (ia64_gdbarch_init): Update.
7821 * i386-tdep.c (i386_gdbarch_init): Update.
7822 * h8300-tdep.c (h8300_gdbarch_init): Update.
7823 * frv-tdep.c (frv_gdbarch_init): Update.
7824 * d10v-tdep.c (d10v_gdbarch_init): Update.
7825 * cris-tdep.c (cris_gdbarch_init): Update.
7826 * breakpoint.c (deprecated_frame_in_dummy): Update.
7827 * avr-tdep.c (avr_gdbarch_init): Update.
7828 * alpha-tdep.c (alpha_gdbarch_init): Update.
7829 * arm-tdep.c (arm_gdbarch_init): Update.
7830 * dummy-frame.c (dummy_frame_this_id): Update comments.
7831 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7832 * frame.c (legacy_get_prev_frame): Ditto.
7833 * valops.c (call_function_by_hand): Delete function.
7834 (hand_function_call): Rename to call_function_by_hand
7835
ed234cf8
AC
78362003-03-30 Andrew Cagney <cagney@redhat.com>
7837
7838 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7839 * value.h (struct value): Update comment.
ed234cf8 7840
06c77151
AC
78412003-03-30 Andrew Cagney <cagney@redhat.com>
7842
6c2b5168
AC
7843 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7844 D10V_FP_REGNUM.
7845 (d10v_gdbarch_init): Do not set fp_regnum.
7846
06c77151
AC
7847 * frame.c (get_frame_base): Force ID initialization.
7848 (get_prev_frame): Move computation of the frame ID from here ...
7849 (get_frame_id): ... to here.
7850 (legacy_get_prev_frame): Mark the frame ID as valid.
7851 * frame.h (struct frame_info): Add field "id_p".
7852
97a1a11c
MK
78532003-03-30 Mark Kettenis <kettenis@gnu.org>
7854
7855 * i386-tdep.c (i386_store_struct_return): Removed.
7856 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7857
6c0e89ed
AC
78582003-03-30 Andrew Cagney <cagney@redhat.com>
7859
7860 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7861 * gdbarch.h, gdbarch.c: Regenerate.
7862 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7863 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7864 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7865 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7866 * i386-tdep.c (i386_gdbarch_init): Ditto.
7867 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7868 * cris-tdep.c (cris_gdbarch_init): Ditto.
7869 * vax-tdep.c (vax_gdbarch_init): Ditto.
7870 * s390-tdep.c (s390_gdbarch_init): Ditto.
7871 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7872 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7873 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7874 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7875 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7876 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7877 * sparc-tdep.c (sparc_gdbarch_init): Update.
7878 * sh-tdep.c (sh_gdbarch_init): Update.
7879 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7880 * mips-tdep.c (mips_gdbarch_init): Update.
7881 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7882 * ia64-tdep.c (ia64_gdbarch_init): Update.
7883 * frv-tdep.c (frv_gdbarch_init): Update.
7884 * avr-tdep.c (avr_gdbarch_init): Update.
7885 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7886 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7887 instead of when push_dummy_call is not available.
8ffd9b1b 7888
f7dd6af2
AC
78892003-03-30 Andrew Cagney <cagney@redhat.com>
7890
7891 * infttrace.c: Include "gdbthread.h".
7892 (parent_attach_all): Fix function signature.
7893 (call_ptrace): Update call.
7894 * Makefile.in (infttrace.o): Update dependencies.
7895
28f617b3
AC
78962003-03-30 Andrew Cagney <cagney@redhat.com>
7897
7898 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7899 PUSH_RETURN_ADDRESS.
7900 * gdbarch.h, gdbarch.c: Regenerate.
7901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7902 * x86-64-tdep.c (x86_64_init_abi): Update.
7903 * v850-tdep.c (v850_gdbarch_init): Update.
7904 * sparc-tdep.c (sparc_gdbarch_init): Update.
7905 * sh-tdep.c (sh_gdbarch_init): Update.
7906 * s390-tdep.c (s390_gdbarch_init): Update.
7907 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7908 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7909 * mips-tdep.c (mips_gdbarch_init): Update.
7910 * mcore-tdep.c (mcore_gdbarch_init): Update.
7911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7912 * ia64-tdep.c (ia64_gdbarch_init): Update.
7913 * i386-tdep.c (i386_gdbarch_init): Update.
7914 * h8300-tdep.c (h8300_gdbarch_init): Update.
7915 * frv-tdep.c (frv_gdbarch_init): Update.
7916 * cris-tdep.c (cris_gdbarch_init): Update.
7917 * avr-tdep.c (avr_gdbarch_init): Update.
7918 * arm-tdep.c (arm_gdbarch_init): Update.
7919 * valops.c (hand_function_call): Update.
7920
4d628cd7
AC
79212003-03-29 Andrew Cagney <cagney@redhat.com>
7922
7923 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7924 sizeof_call_dummy_words.
7925 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7926 define.
7927 * gdbarch.h: Regenerate.
8ffd9b1b 7928
65e82032
AC
79292003-03-29 Andrew Cagney <cagney@redhat.com>
7930
7931 * infttrace.h: New file.
7932 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7933 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7934 (hpread_read_doc_function_type): Detect an initialized type1.
7935 (hpread_quick_traverse): Initialize mod_name_string.
7936 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7937 (som_solib_get_solib_by_pc): Declare.
7938 (so_lib_thread_start_addr): Declare.
7939 (no_shared_libraries): Declare.
7940 * somread.c (init_import_symbols): Make static. Add forward
7941 declaration.
7942 * config/pa/nm-hppah.h: Include "infttrace.h" for
7943 parent_attach_all.
7944 (hppa_insert_hw_watchpoint): Declare.
7945 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7946 * hppah-nat.c: Include "gdb_string.h".
7947 (parent_attach_all): Delete extern declaration, moved to
7948 "infttrace.h".
7949 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7950 int.
7951 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7952 * Makefile.in (infttrace_h): Define.
7953 (hpread.o): Update dependencies.
7954 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7955 * hppa-hpux-tdep.c: Include "gdb_string.h".
7956 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7957 * infrun.c (handle_inferior_event): Always initialize
7958 stepped_after_stopped_by_watchpoint. Add default and remove
7959 fallthrough in switch statement.
7960 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7961 parameter to int.
7962 (hppa_remove_hw_watchpoint): Ditto.
7963
2c3bbe77
AC
79642003-03-29 Andrew Cagney <cagney@redhat.com>
7965
7966 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7967 offset.
7968
2dd604e7
RE
79692003-03-29 Richard Earnshaw <rearnsha@arm.com>
7970
7971 * arm-tdep.c (arm_push_arguments): Delete.
7972 (struct stack_item): New type.
7973 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7974 (arm_store_struct_return): Delte.
7975 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7976 arm_push_arguments or arm_store_struct_return.
7977
e8933a55
AC
79782003-03-28 Andrew Cagney <cagney@redhat.com>
7979
7980 * Makefile.in (d10v-tdep.o): Update dependencies.
7981 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7982 * d10v-tdep.c: Include "remote.h".
7983 (target_resume_hook): Delete extern declaration.
7984 (target_wait_loop_hook): Ditto.
7985 (tdisassemble_command): Eliminate assignment in "if" conditional.
7986 (d10v_ts2_register_sim_regno): Eliminate call to
7987 legacy_register_sim_regno.
7988 (d10v_ts3_register_sim_regno): Ditto.
7989
6949171e
JJ
79902003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7991
7992 * thread.c: Reindented.
7993 * lin-lwp.c: Ditto.
7994 * linux-proc.c: Ditto.
7995
98c7071f
BR
79962003-03-28 Bob Rossi <bob_rossi@cox.net>
7997
fbe586ae 7998 * MAINTAINERS (write after approval): Add myself.
98c7071f 7999
5edc9ca6
TR
80002003-03-27 Theodore A. Roth <troth@openavr.org>
8001
8002 * objc-exp.y: Add missing semi-colons.
8003
378bfd1b
AC
80042003-03-27 Andrew Cagney <cagney@redhat.com>
8005
8006 * regcache.c (write_sp): Delete function and references.
8007 * inferior.h (write_sp): Delete declaration.
8008 * valops.c (hand_function_call): Replace write_sp with
8009 TARGET_WRITE_SP.
8010 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8011 (sparc_pop_frame): Ditto.
8ffd9b1b 8012
56056df7
AC
80132003-03-27 Andrew Cagney <cagney@redhat.com>
8014
8015 * NEWS: Mention removal of support for hppa*-*-bsd* and
8016 hppa*-*-osf* natives, and hppa*-*-pro* target.
8017 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8018 * config/pa/xm-pa.h: Obsolete file.
8019 * config/pa/xm-hppab.h: Obsolete file.
8020 * config/pa/nm-hppab.h: Obsolete file.
8021 * config/pa/tm-hppab.h: Obsolete file.
8022 * config/pa/tm-hppao.h: Obsolete file.
8023 * config/pa/nm-hppao.h: Obsolete file.
8024 * config/pa/tm-pro.h: Obsolete file.
8025 * config/pa/hppaosf.mt: Obsolete file.
8026 * config/pa/hppaosf.mh: Obsolete file.
8027 * config/pa/hppapro.mt: Obsolete file.
8028 * config/pa/hppabsd.mt: Obsolete file.
8029 * config/pa/hppabsd.mh: Obsolete file.
8030 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8031 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8032 hppa*-*-osf*.
8033
5873a88d
AC
80342003-03-27 Andrew Cagney <cagney@redhat.com>
8035
8036 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8037 push_arguments. Don't set push_return_address or write_sp.
8038 (d10v_push_dummy_call): Replace d10v_push_arguments.
8039 (d10v_push_return_address, d10v_write_sp): Delete function,
8040 handled by push_dummy_call.
8041
b81774d8
AC
80422003-03-26 Andrew Cagney <cagney@redhat.com>
8043
8044 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8045 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8046 regcache and dummy_addr parameters.
8047 * gdbarch.h, gdbarch.c: Re-generate.
8048 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8049 available; assume it will handle stack alignment and return
8050 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8051 legacy_push_arguments.
8052 (legacy_push_arguments): Rename default_push_arguments.
8053 * value.h (legacy_push_arguments): Rename default_push_arguments.
8054 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8055 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8056 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8057 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8058 * config/i386/tm-symmetry.h: Update.
8059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8060 * x86-64-tdep.c (x86_64_init_abi): Update.
8061 * v850-tdep.c (v850_gdbarch_init): Update.
8062 * sparc-tdep.c (sparc_gdbarch_init): Update.
8063 * sh-tdep.c (sh_gdbarch_init): Update.
8064 * s390-tdep.c (s390_gdbarch_init): Update.
8065 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8066 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8067 * mips-tdep.c (mips_gdbarch_init): Update.
8068 * mcore-tdep.c (mcore_gdbarch_init): Update.
8069 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8070 * ia64-tdep.c (ia64_gdbarch_init): Update.
8071 * i386-tdep.c (i386_gdbarch_init): Update.
8072 * hppa-tdep.c (hppa_gdbarch_init): Update.
8073 * h8300-tdep.c (h8300_gdbarch_init): Update.
8074 * frv-tdep.c (frv_gdbarch_init): Update.
8075 * d10v-tdep.c (d10v_gdbarch_init): Update.
8076 * cris-tdep.c (cris_gdbarch_init): Update.
8077 * avr-tdep.c (avr_gdbarch_init): Update.
8078 * arm-tdep.c (arm_gdbarch_init): Update.
8079 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8080 * alpha-tdep.c (alpha_gdbarch_init): Update.
8081
f541410f
DJ
80822003-03-26 Daniel Jacobowitz <drow@mvista.com>
8083
8084 * signals/signals.c (do_target_signal_to_host): Correct realtime
8085 signal range test.
8086
69f567ae
DJ
80872003-03-26 Daniel Jacobowitz <drow@mvista.com>
8088
8089 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8090 (struct sal_chain, map_catch_names): Remove.
8091 (catch_exception_command_1): Don't call
8092 handle_gnu_4_16_catch_command.
8093
d5d14a5a
DJ
80942003-03-26 Daniel Jacobowitz <drow@mvista.com>
8095
8096 From Mark Dettinger <dettinge@de.ibm.com>:
8097 * dwarf2cfi.c (read_2u): Increment pointer by two.
8098
bdd73e22
DJ
80992003-03-26 Daniel Jacobowitz <drow@mvista.com>
8100
8101 * signals/signals.c: Fix typos in last change.
8102
960cb555
DJ
81032003-03-26 Daniel Jacobowitz <drow@mvista.com>
8104
8105 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8106 not already defined. Use __SIGRTMIN if available.
8107 (target_signal_from_host): Remove SIGRTMIN block.
8108 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8109 the signal is within the realtime range.
8110
f636b87d
AF
81112003-03-25 Adam Fedor <fedor@gnu.org>
8112
8113 * Makefile.in (infrun.o): Add $(language_h)
8114 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8115 for language specific trampolines.
8116 * language.h (struct language_defn): Add skip_trampoline.
8117 (skip_language_trampoline): Declare.
8118 * language.c (unk_lang_trampoline, skip_language_trampoline):
8119 New functions.
8120 (unknown_language_defn, auto_language_defn, local_language_defn):
8121 Add ukn_lang_trampoline.
8122 * ada-lang.c (ada_language_defn): Add NULL for language
8123 specific skip_trampoline.
8124 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8125 scm-lang.c: Likewise.
8126 * objc-lang.c (objc_skip_trampoline): New function.
8127 (objc_language_defn): Add objc_skip_trampoline.
8128
28f617b3 81292003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8130
8131 * frame.c (get_prev_frame): Delay validating a frame's ID -
8132 non-NULL, didn't go backwards - until an attempt to unwind it to
8133 the previous frame.
8134
f933a9c5
AC
81352003-03-25 Andrew Cagney <cagney@redhat.com>
8136
8137 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8138 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8139 * gdbarch.h, gdbarch.c: Re-generate.
8140 * config/sparc/tm-sparc.h
8141 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8142 * sparc-tdep.c (sparc_gdbarch_init): Set
8143 deprecated_extra_stack_alignment_needed.
8144 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8146 extra_stack_alignment_needed.
8147 * v850-tdep.c (v850_gdbarch_init): Ditto.
8148 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8149 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8150 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8151 * cris-tdep.c (cris_gdbarch_init): Ditto.
8152 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8154
4183d812
AC
81552003-03-25 Andrew Cagney <cagney@redhat.com>
8156
8157 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8158 STORE_STRUCT_RETURN.
8159 * gdbarch.h, gdbarch.c: Regenerate.
8160 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8161 (d10v_push_arguments): Set the struct return register.
8162 (d10v_gdbarch_init): Update.
8163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8164 * x86-64-tdep.c (x86_64_init_abi): Update.
8165 * vax-tdep.c (vax_gdbarch_init): Update.
8166 * v850-tdep.c (v850_gdbarch_init): Update.
8167 * sparc-tdep.c (sparc_gdbarch_init): Update.
8168 * sh-tdep.c (sh_gdbarch_init): Update.
8169 * s390-tdep.c (s390_gdbarch_init): Update.
8170 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8171 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8172 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8173 * mips-tdep.c (mips_gdbarch_init): Update.
8174 * mcore-tdep.c (mcore_gdbarch_init): Update.
8175 * m68k-tdep.c (m68k_gdbarch_init): Update.
8176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8177 * ia64-tdep.c (ia64_gdbarch_init): Update.
8178 * i386-tdep.c (i386_gdbarch_init): Update.
8179 * hppa-tdep.c (hppa_gdbarch_init): Update.
8180 * h8300-tdep.c (h8300_gdbarch_init): Update.
8181 * frv-tdep.c (frv_gdbarch_init): Update.
8182 * cris-tdep.c (cris_gdbarch_init): Update.
8183 * avr-tdep.c (avr_gdbarch_init): Update.
8184 * arm-tdep.c (arm_gdbarch_init): Update.
8185 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8186
1bf6d5cc
AC
81872003-03-25 Andrew Cagney <cagney@redhat.com>
8188
8189 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8190 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8191 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8192 * gdbarch.h, gdbarch.c: Regenerate.
8193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8194 call_dummy_stack_adjust_p.
8195 * vax-tdep.c (vax_gdbarch_init): Ditto.
8196 * v850-tdep.c (v850_gdbarch_init): Ditto.
8197 * sh-tdep.c (sh_gdbarch_init): Ditto.
8198 * s390-tdep.c (s390_gdbarch_init): Ditto.
8199 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8200 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8201 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8202 * mips-tdep.c (mips_gdbarch_init): Ditto.
8203 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8204 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8206 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8207 * i386-tdep.c (i386_gdbarch_init): Ditto.
8208 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8209 * frv-tdep.c (frv_gdbarch_init): Ditto.
8210 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8211 * cris-tdep.c (cris_gdbarch_init): Ditto.
8212 * avr-tdep.c (avr_gdbarch_init): Ditto.
8213 * arm-tdep.c (arm_gdbarch_init): Ditto.
8214 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8215 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8216 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8217 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8218 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8219 call_dummy_stack_adjust_p.
8220 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8221 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8222 * sparc-tdep.c (sparc32_push_arguments): Update.
8223 * valops.c (hand_function_call): Update.
8224
71c08af0
CV
82252003-03-25 Corinna Vinschen <vinschen@redhat.com>
8226
8227 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8228 set_gdbarch_char_signed.
8229
30757f90
RE
82302003-03-25 Richard Earnshaw <rearnsha@arm.com>
8231
8232 PR cli/548
8233 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8234
03d48a7d
RE
82352003-03-25 Richard Earnshaw <rearnsha@arm.com>
8236
8237 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8238 (_initialize_arm_tdep): Don't set tm_print_insn.
8239
2cf6873c
AF
82402003-03-24 Adam Fedor <fedor@gnu.org>
8241
8242 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8243 * objc-lang.h: Add multiple inclusion protection.
8244 (start_msglist, add_msglist, end_msglist): Additional declarations.
8245
17c0759e
RE
82462003-03-24 Richard Earnshaw <rearnsha@arm.com>
8247
8248 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8249 value was renamed to ARM_FLOAT_SOFT_FPA.
8250
618ce49f
AC
82512003-03-23 Andrew Cagney <cagney@redhat.com>
8252
8253 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8254 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8255 * gdbarch.h, gdbarch.c: Regenerate.
8256 * valops.c (hand_function_call): Update.
8257 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8258 * frame.c (legacy_saved_regs_this_id): Update.
8259 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8260 * dummy-frame.h: Update.
8261 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8262 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8263 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8264 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8265 * config/m68k/tm-sun3.h: Update.
8266 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8267 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8268 * x86-64-tdep.c (x86_64_init_abi): Update.
8269 * vax-tdep.c (vax_gdbarch_init): Update.
8270 * v850-tdep.c (v850_gdbarch_init): Update.
8271 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8272 * sh-tdep.c (sh_gdbarch_init): Update.
8273 * s390-tdep.c (s390_gdbarch_init): Update.
8274 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8275 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8276 (frame_get_saved_regs): Update.
8277 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8278 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8279 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8280 * mips-tdep.c (mips_gdbarch_init): Update.
8281 * mcore-tdep.c (mcore_gdbarch_init): Update.
8282 * m68k-tdep.c (m68k_gdbarch_init): Update.
8283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8284 * ia64-tdep.c (ia64_gdbarch_init): Update.
8285 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8286 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8287 (i386_interix_back_one_frame): Update.
8288 * hppa-tdep.c (hppa_gdbarch_init): Update.
8289 (hppa_init_extra_frame_info): Update.
8290 * h8300-tdep.c (h8300_gdbarch_init): Update.
8291 * frv-tdep.c (frv_gdbarch_init): Update.
8292 * cris-tdep.c (cris_gdbarch_init): Update.
8293 * avr-tdep.c (avr_gdbarch_init): Update.
8294 * arm-tdep.c (arm_gdbarch_init): Update.
8295 * alpha-tdep.c (alpha_gdbarch_init): Update.
8296
fd50bc42
RE
82972003-03-22 Richard Earnshaw <rearnsha@arm.com>
8298
8299 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8300 (arm_get_fp_model): Declare.
8301 * arm-tdep.c (fp_model_strings): New string array.
8302 (arm_fp_model, current_fp_model): New variables.
8303 (arm_get_fp_model): New function.
8304 (arm_set_fp): New function.
8305 (set_fp_model_sfunc): New function.
8306 (show_fp_model): New function.
8307 (_initialize_arm_tdep): Add new command to set/show the FPU.
8308 (arm_extract_return_value): Use arm_get_fp_model.
8309 (arm_store_return_value): Likewise.
8310 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8311 to initialize the floating-point data types.
8312 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8313 model is FPA.
8314
26304000
RE
83152003-03-22 Richard Earnshaw <rearnsha@arm.com>
8316
8317 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8318 the current setting of each value.
8319 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8320 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8321 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8322 commands and add new version as subcommands of "set/show arm".
8323
afd7eef0
RE
83242003-03-22 Richard Earnshaw <rearnsha@arm.com>
8325
8326 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8327 (set_arm_command, show_arm_command): New functions.
8328 (_initialize_arm_tdep): Add them.
8329 (num_disassembly_options): Renamed from num_flavor_options.
8330 (valid_disassembly_styles): Renamed from valid_flavors.
8331 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8332 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8333 set_disassembly_flavor_sfunc.
8334 (set_disassembly_style): Renamed from set_disassembly_flavor.
8335 (arm_othernames): Updated.
8336 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8337 command. Add "set/show arm disassembly" commands. Deprecate
8338 "othernames" command.
8339
299a7944
RE
83402003-03-22 Richard Earnshaw <rearnsha@arm.com>
8341
8342 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8343 (arm-tdep.o): Depend on elf_arm_h.
8344
c1dac9e6
RE
83452003-03-22 Richard Earnshaw <rearnsha@arm.com>
8346
8347 * Makefile.in (coff_internal_h): Define.
8348 (arm-tdep.o): Update dependencies.
8349
2702d96c
RE
83502003-03-22 Richard Earnshaw <rearnsha@arm.com>
8351
8352 * arm-tdep.c (prologue_cache): Delete.
8353 (check_prologue_cache, save_prologue_cache): Delete.
8354 (arm_scan_prologue): Don't check or update the prologue_cache.
8355 (arm_gdb_arch_init): Don't initialize it.
8356 (_initialize_arm_tdep): Likewise.
8357
27d5d74b
SC
83582003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8359
8360 * MAINTAINERS (tui): Maintainer of tui code.
8361
1762d96d
CV
83622003-03-21 Corinna Vinschen <vinschen@redhat.com>
8363
8364 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8365 (i386-cygwin-tdep.o): Add dependencies.
8366 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8367 * i386-cygwin-tdep.c: New file.
8368 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8369 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8370
4c2e2391
AC
83712003-03-20 Andrew Cagney <cagney@redhat.com>
8372
f20d38b7
AC
8373 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8374 (handle_inferior_event): Remove code calling
8375 DYNAMIC_TRAMPOLINE_NEXTPC.
8376
0022b738
AC
8377 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8378 already has a full path.
8379
864dbc90
AC
8380 * main.c (gdb_main): Return 1.
8381 (captured_main): Call error to report an invalid interpreter.
8382
4c2e2391
AC
8383 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8384 * alpha-osf1-tdep.c: Include "gdb_string.h".
8385
5ef7553b
JB
83862003-03-19 J. Brobecker <brobecker@gnat.com>
8387
8388 Continuing work to convert the hppa targets to multiarch partial.
8389
8390 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8391 method, now that hppa_push_dummy_frame has a conformant prototype.
8392 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8393 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8394 for the switch to multiarch partial.
8395
7bde8967
KB
83962003-03-19 Kevin Buettner <kevinb@redhat.com>
8397
8398 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8399 when iss is issNull.
8400
b006a9e9
KB
84012003-03-18 Kevin Buettner <kevinb@redhat.com>
8402
8403 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8404 NUM_REGS bounds check.
8405
5e2e9765
KB
84062003-03-18 Kevin Buettner <kevinb@redhat.com>
8407
8408 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8409 * mips-tdep.c (gdb_assert.h): Include.
8410 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8411 (mips_register_name): Handle integer registers explicitly. Add
8412 bounds checking.
8413 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8414 (mips_lsi33k_reg_names): Don't list integer registers; they're
8415 handled by mips_register_name() now.
8416 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8417 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8418 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8419 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8420 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8421
a2867626
AC
84222003-03-18 Andrew Cagney <cagney@redhat.com>
8423
8424 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8425 a void pointer.
8426 * gdbtypes.h (print_scalar_formatted): Update declaration.
8427 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8428
06600e06
JB
84292003-03-18 J. Brobecker <brobecker@gnat.com>
8430
8431 * infrun.c (observer.h): Add #include.
8432 (normal_stop): Add call to observer_notify_normal_stop.
8433 * Makefile.in (infrun.o): Add dependency on observer.h.
8434
7daf4f5b
JB
84352003-03-18 J. Brobecker <brobecker@gnat.com>
8436
8437 Continuing work to convert the hppa targets to multiarch partial.
8438 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8439 parameter. Reformat comment.
8440 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8441 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8442 to match new profile.
8443
3371ccc0
JB
84442003-03-18 J. Brobecker <brobecker@gnat.com>
8445
8446 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8447 appear to be working in any case.
8448
4fbe891e
JB
84492003-03-18 J. Brobecker <brobecker@gnat.com>
8450
8451 * observer.c (observer_test_first_observer): New static variable.
8452 (observer_test_second_observer): Likewise.
8453 (observer_test_third_observer): Likewise.
8454 (observer_test_first_notification_function): New static function.
8455 (observer_test_second_notification_function): Likewise.
8456 (observer_test_third_notification_function): Likewise.
8457
a7ff40e7
JB
84582003-03-17 J. Brobecker <brobecker@gnat.com>
8459
8460 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8461 * somsolib.c (gdb_assert.h): Likewise.
8462 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8463 (somsolib.o): Likewise.
8464
26ca4152
AC
84652003-03-17 Andrew Cagney <cagney@redhat.com>
8466
8467 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8468 BFD. Simplify setting of di.endian.
8469
0a613259
AC
84702003-03-17 Andrew Cagney <cagney@redhat.com>
8471
8472 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8473 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8474
8475 From Elena Zannoni <ezannoni@redhat.com>
8476 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8477 vector and floating-point parameters.
8478 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8479 convention.
8480 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8481
1132738f
FN
84822003-03-17 Fernando Nasser <fnasser@redhat.com>
8483
8484 * MAINTAINERS: Remove my name from several maintainership roles.
8485
6dc42492
AC
84862003-03-17 Andrew Cagney <cagney@redhat.com>
8487
8488 Fix frame off-by-one bug.
8489 * frame-unwind.h (frame_this_id_ftype): Replace
8490 frame_unwind_id_ftype.
8491 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8492 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8493 with "prev_register".
8494 * frame-unwind.c (frame_unwind_find_by_pc): Return
8495 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8496 comment.
8497 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8498 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8499 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8500 (dummy_frame_unwind): Update.
8501 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8502 sentinel_frame_register_unwind.
8503 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8504 (sentinel_frame_unwinder): Update.
8505 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8506 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8507 * frame.c (create_sentinel_frame): Update. Initialize
8508 "prologue_cache" instead of "unwind_cache".
8509 (frame_register_unwind): Call this frame's prev_register with the
8510 next frame and this frame's prologue cache.
8511 (get_prev_frame): Simplify. Always call prev frame's this_id with
8512 this frame and prev frame's prologue cache. Document that this
8513 call is shifted one to the left when compared to the
8514 frame_register_unwind call.
8515 (legacy_saved_regs_prev_register): Replace
8516 frame_saved_regs_register_unwind.
8517 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8518 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8519 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8520 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8521 (d10v_frame_unwind): Update.
8522 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8523 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8524 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8525 "saved_regs" with "this_saved_regs".
8526
efd710d6
AC
85272003-03-16 Andrew Cagney <cagney@redhat.com>
8528
8529 * frame.c (frame_pop): Don't call target_store_registers. Fix
8530 problem reported by Mark Kettenis.
8531
4e259f09
MK
85322003-03-16 Mark Kettenis <kettenis@gnu.org>
8533
8534 * i386-tdep.c (i386_register_type): Renamed from
8535 i386_register_virtual_type. Adjust function signature.
8536 (i386_gdbarch_init): Set register_type instead of
8537 deprecated_max_register_raw_size,
8538 deprecated_max_register_virtual_size and register_virtual_type.
8539
055bb976
AC
85402003-03-14 Andrew Cagney <cagney@redhat.com>
8541
8542 * frame.c (get_prev_frame): When a legacy frame, always call
8543 legacy_get_prev_frame. Simplify unwind code using assumption that
8544 the unwinder is new.
8545 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8546 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8547 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8548
ac2adee5
AC
85492003-03-14 Andrew Cagney <cagney@redhat.com>
8550
8551 * frame.c (get_saved_register): Delete function.
8552 * frame.h (get_saved_register): Delete declaration.
8553 * xstormy16-tdep.c: Update comment.
8554 * regcache.h: Update comments.
8555 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8556 get_saved_register and extract_address, use
8557 frame_read_unsigned_register.
8558 (sparc_frame_saved_pc): Ditto.
8559 (sparc_get_saved_register): Instead of get_saved_register, use
8560 frame_register.
8561 (sparc_pop_frame): Ditto.
8562 * findvar.c: Update comments.
8563 (value_of_register): Call frame_register instead of
8564 get_saved_register.
8565 (value_from_register): Ditto.
8566 * config/sparc/tm-sparc.h: Update comment.
8567 * breakpoint.c: Update comment.
8568
129c1cd6
AC
85692003-03-14 Andrew Cagney <cagney@redhat.com>
8570
8571 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8572 GET_SAVED_REGISTER.
8573 * gdbarch.h, gdbarch.c: Re-generate.
8574 * frame.h: Update comments.
8575 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8576 * x86-64-tdep.c (x86_64_init_abi): Update.
8577 * sparc-tdep.c (sparc_gdbarch_init): Update.
8578 * sh-tdep.c (sh_gdbarch_init): Update.
8579 * mips-tdep.c (mips_gdbarch_init): Update.
8580 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8581 * cris-tdep.c (cris_gdbarch_init): Update.
8582 * ia64-tdep.c (ia64_gdbarch_init): Update.
8583 * frame.c (frame_register): Update.
8584 (get_saved_register): Update.
8585 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8586
749b82f6
AC
85872003-03-13 Andrew Cagney <cagney@redhat.com>
8588
8589 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8590 * gdbarch.h, gdbarch.c: Regenerate.
8591 * valops.c (hand_function_call): Update comment.
8592 * stack.c (return_command): Update comment.
8593 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8594 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8595 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8596 * x86-64-tdep.c (x86_64_init_abi): Update.
8597 * vax-tdep.c (vax_gdbarch_init): Update.
8598 * v850-tdep.c (v850_gdbarch_init): Update.
8599 * sparc-tdep.c (sparc_gdbarch_init): Update.
8600 * sh-tdep.c (sh_gdbarch_init): Update.
8601 * s390-tdep.c (s390_gdbarch_init): Update.
8602 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8603 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8604 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8605 * mips-tdep.c (mips_gdbarch_init): Update.
8606 * mcore-tdep.c (mcore_gdbarch_init): Update.
8607 * m68k-tdep.c (m68k_gdbarch_init): Update.
8608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8609 * ia64-tdep.c (ia64_gdbarch_init): Update.
8610 * i386-tdep.c (i386_gdbarch_init): Update.
8611 * hppa-tdep.c (hppa_gdbarch_init): Update.
8612 * h8300-tdep.c (h8300_gdbarch_init): Update.
8613 * frv-tdep.c (frv_gdbarch_init): Update.
8614 * cris-tdep.c (cris_gdbarch_init): Update.
8615 * avr-tdep.c (avr_gdbarch_init): Update.
8616 * arm-tdep.c (arm_gdbarch_init): Update.
8617 * alpha-tdep.c (alpha_gdbarch_init): Update.
8618
1594fa56
AC
86192003-03-13 Andrew Cagney <cagney@redhat.com>
8620
8621 * frame.c (legacy_frame_p): New function.
8622 (get_prev_frame): Use legacy_frame_p.
8623 * frame.h (legacy_frame_p): Declare.
8624
7717fda3
V
86252003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8626
fbe586ae 8627 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8628 listing corrected.
8629
0c67cbe9
V
86302003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8631
fbe586ae 8632 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8633
03febf99
AC
86342003-03-12 Andrew Cagney <cagney@redhat.com>
8635
8636 * frame.c (get_prev_frame): Rename the frame parameter to
8637 "this_frame".
8638 (get_next_frame, legacy_get_prev_frame): Ditto.
8639
0a1e1ca1
AC
86402003-03-12 Andrew Cagney <cagney@redhat.com>
8641
8642 * frame.c (get_current_frame): Check target_has_registers before
8643 checking target_has_stack.
8644 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8645 instead of deprecated_selected_frame.
8646 * findvar.c (value_of_register): Pass "frame", not
8647 deprecated_selected_frame, to value_of_builtin_reg.
8648
a66a9c23
AC
86492003-03-12 Andrew Cagney <cagney@redhat.com>
8650
8651 * regcache.c (regcache_cooked_write_signed): New function.
8652 (regcache_cooked_write_unsigned): New function.
8653 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8654 (regcache_cooked_read_signed): Fix regnum in range assertion.
8655 * regcache.h (regcache_cooked_write_signed): Declare.
8656 (regcache_cooked_write_unsigned): Declare.
8657
8bedc050
AC
86582003-03-12 Andrew Cagney <cagney@redhat.com>
8659
8660 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8661 * gdbarch.h, gdbarch.c: Re-generate.
8662 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8663 * x86-64-tdep.h: Update.
8664 * x86-64-tdep.c (x86_64_init_abi): Update.
8665 * v850-tdep.c (v850_gdbarch_init): Update.
8666 * sparc-tdep.c (sparc_gdbarch_init): Update.
8667 * sh-tdep.c (sh_gdbarch_init): Update.
8668 * s390-tdep.c (s390_gdbarch_init): Update.
8669 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8670 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8671 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8672 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8673 * mips-tdep.c (mips_gdbarch_init): Update.
8674 * mcore-tdep.c (mcore_gdbarch_init): Update.
8675 * m68k-tdep.c (m68k_gdbarch_init): Update.
8676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8677 * ia64-tdep.c (ia64_gdbarch_init): Update.
8678 * i386-tdep.c (i386_gdbarch_init): Update.
8679 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8680 * hppa-tdep.c (hppa_gdbarch_init): Update.
8681 * h8300-tdep.c (h8300_gdbarch_init): Update.
8682 * frv-tdep.c (frv_gdbarch_init): Update.
8683 * cris-tdep.c (cris_gdbarch_init): Update.
8684 * avr-tdep.c (avr_gdbarch_init): Update.
8685 * arm-tdep.c (arm_gdbarch_init): Update.
8686 * alpha-tdep.c (alpha_gdbarch_init): Update.
8687 * sh-tdep.c (sh_init_extra_frame_info): Update.
8688 (sh64_init_extra_frame_info): Update.
8689 * ns32knbsd-nat.c (frame_num_args): Update.
8690 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8691 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8692 (xstormy16_frame_chain_valid): Update.
8693 * vax-tdep.c (vax_saved_pc_after_call): Update.
8694 * v850-tdep.c (v850_frame_chain): Update.
8695 (v850_pop_frame): Update.
8696 (v850_init_extra_frame_info): Update.
8697 * sparc-tdep.c (setup_arbitrary_frame): Update.
8698 * ns32k-tdep.c (umax_frame_num_args): Update.
8699 * s390-tdep.c (s390_pop_frame_regular): Update.
8700 * mn10300-tdep.c (mn10300_frame_chain): Update.
8701 (mn10300_pop_frame_regular): Update.
8702 (mn10300_init_extra_frame_info): Update.
8703 * mips-tdep.c (mips_init_frame_pc_first): Update.
8704 (mips_frame_chain): Update.
8705 (mips_pop_frame): Update.
8706 * mcore-tdep.c (mcore_frame_chain): Update.
8707 (mcore_pop_frame): Update.
8708 (mcore_init_extra_frame_info): Update.
8709 * arch-utils.c (init_frame_pc_default): Update.
8710 * m68k-tdep.c (isi_frame_num_args): Update.
8711 (delta68_frame_num_args): Update.
8712 (news_frame_num_args): Update.
8713 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8714 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8715 (alpha_frame_chain): Update.
8716 (alpha_pop_frame): Update.
8717 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8718 (hppa_init_extra_frame_info): Update.
8719 (hppa_frame_chain): Update.
8720 (hppa_frame_chain_valid): Update.
8721 * cris-tdep.c (cris_init_extra_frame_info): Update.
8722 * avr-tdep.c (avr_init_extra_frame_info): Update.
8723 * arm-tdep.c (arm_frame_chain_valid): Update.
8724 (arm_init_extra_frame_info): Update.
8725 (arm_pop_frame): Update.
8726 * frame.c (frame_pc_unwind): Update.
8727 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8728 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8729 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8730 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8731 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8732 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8733
7a25a7c1
AC
87342003-03-12 Andrew Cagney <cagney@redhat.com>
8735
8736 Eliminate the need for POP_FRAME.
8737 * frame.c (do_frame_unwind_register): New function.
8738 (frame_pop): When no POP_FRAME, pop the frame using register
8739 unwind and a scratch regcache.
8740 (frame_saved_regs_pop): Delete function.
8741 (trad_frame_unwinder): Update.
8742 * d10v-tdep.c (d10v_frame_pop): Delete function.
8743 (d10v_frame_unwind): Update.
8744 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8745 (sentinel_frame_unwinder): Update.
8746 * dummy-frame.c (dummy_frame_pop): Delete function.
8747 (dummy_frame_unwind): Update.
8748 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8749 (struct frame_unwind): Update.
8750
2f38ef89
KB
87512003-03-11 Kevin Buettner <kevinb@redhat.com>
8752
8753 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8754 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8755 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8756 Do range checks on register number obtained from debugging info.
8757 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8758 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8759 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8760 mapping function.
8761 (do_fp_register_row): Fix typo which caused double type to be
8762 used when attempting to unpack a float.
8763
552f4abf
JB
87642003-03-11 J. Brobecker <brobecker@gnat.com>
8765
8766 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8767
e0d2ae16
AC
87682003-03-11 Andrew Cagney <cagney@redhat.com>
8769
8770 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8771 frame. Problem found by Corinna Vinschen.
8772
ddbfdd06
PM
87732003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8774
8775 * doublest.c (floatformat_from_length): Accept also
8776 the real size of 'long double' type.
8777
088b2ddc 87782003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8779
088b2ddc 8780 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8781 * breakpoint.c (bpstat_copy): Copy the command lines as well
8782 as the old value, to match what is freed in bpstat_clear.
8783
f56f77c1
DC
87842003-03-10 David Carlton <carlton@math.stanford.edu>
8785
8786 * minsyms.c (add_minsym_to_hash_table): Replace
8787 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8788 (compare_minimal_symbols, compact_minimal_symbols)
8789 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8790 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8791 of DEPRECATED_SYMBOL_MATCHES_NAME.
8792 (lookup_minimal_symbol_solib_trampoline): Ditto.
8793
5602984a
AC
87942003-03-10 Andrew Cagney <cagney@redhat.com>
8795
8796 * regcache.h (regcache_cooked_read_ftype): Define.
8797 (regcache_save, regcache_restore): Add a cooked_read parameter.
8798 * regcache.c (regcache_save, regcache_restore): Update.
8799 (do_cooked_read): New function.
8800 (regcache_cpy): Pass do_cooked_read to regcache_save and
8801 regcache_restore.
8802
8bedc050
AC
88032003-03-10 Andrew Cagney <cagney@redhat.com>
8804
8805 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8806 * gdbarch.h, gdbarch.c: Re-generate.
8807 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8808 * x86-64-tdep.h: Update.
8809 * x86-64-tdep.c (x86_64_init_abi): Update.
8810 * v850-tdep.c (v850_gdbarch_init): Update.
8811 * sparc-tdep.c (sparc_gdbarch_init): Update.
8812 * sh-tdep.c (sh_gdbarch_init): Update.
8813 * s390-tdep.c (s390_gdbarch_init): Update.
8814 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8815 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8816 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8817 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8818 * mips-tdep.c (mips_gdbarch_init): Update.
8819 * mcore-tdep.c (mcore_gdbarch_init): Update.
8820 * m68k-tdep.c (m68k_gdbarch_init): Update.
8821 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8822 * ia64-tdep.c (ia64_gdbarch_init): Update.
8823 * i386-tdep.c (i386_gdbarch_init): Update.
8824 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8825 * hppa-tdep.c (hppa_gdbarch_init): Update.
8826 * h8300-tdep.c (h8300_gdbarch_init): Update.
8827 * frv-tdep.c (frv_gdbarch_init): Update.
8828 * cris-tdep.c (cris_gdbarch_init): Update.
8829 * avr-tdep.c (avr_gdbarch_init): Update.
8830 * arm-tdep.c (arm_gdbarch_init): Update.
8831 * alpha-tdep.c (alpha_gdbarch_init): Update.
8832 * sh-tdep.c (sh_init_extra_frame_info): Update.
8833 (sh64_init_extra_frame_info): Update.
8834 * ns32knbsd-nat.c (frame_num_args): Update.
8835 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8836 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8837 (xstormy16_frame_chain_valid): Update.
8838 * vax-tdep.c (vax_saved_pc_after_call): Update.
8839 * v850-tdep.c (v850_frame_chain): Update.
8840 (v850_pop_frame): Update.
8841 (v850_init_extra_frame_info): Update.
8842 * sparc-tdep.c (setup_arbitrary_frame): Update.
8843 * ns32k-tdep.c (umax_frame_num_args): Update.
8844 * s390-tdep.c (s390_pop_frame_regular): Update.
8845 * mn10300-tdep.c (mn10300_frame_chain): Update.
8846 (mn10300_pop_frame_regular): Update.
8847 (mn10300_init_extra_frame_info): Update.
8848 * mips-tdep.c (mips_init_frame_pc_first): Update.
8849 (mips_frame_chain): Update.
8850 (mips_pop_frame): Update.
8851 * mcore-tdep.c (mcore_frame_chain): Update.
8852 (mcore_pop_frame): Update.
8853 (mcore_init_extra_frame_info): Update.
8854 * arch-utils.c (init_frame_pc_default): Update.
8855 * m68k-tdep.c (isi_frame_num_args): Update.
8856 (delta68_frame_num_args): Update.
8857 (news_frame_num_args): Update.
8858 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8859 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8860 (alpha_frame_chain): Update.
8861 (alpha_pop_frame): Update.
8862 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8863 (hppa_init_extra_frame_info): Update.
8864 (hppa_frame_chain): Update.
8865 (hppa_frame_chain_valid): Update.
8866 * cris-tdep.c (cris_init_extra_frame_info): Update.
8867 * avr-tdep.c (avr_init_extra_frame_info): Update.
8868 * arm-tdep.c (arm_frame_chain_valid): Update.
8869 (arm_init_extra_frame_info): Update.
8870 (arm_pop_frame): Update.
8871 * frame.c (frame_pc_unwind): Update.
8872 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8873 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8874 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8875 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8876 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8877 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8878
12cc2063
AC
88792003-03-10 Andrew Cagney <cagney@redhat.com>
8880
8881 * gdbarch.sh (gdbarch_unwind_pc): New method.
8882 * gdbarch.h, gdbarch.c: Regenerate.
8883 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8884 but use read_pc and FRAME_SAVED_PC as fall backs.
8885 (frame_saved_regs_pc_unwind): Delete function.
8886 (trad_frame_unwinder): Update.
8887 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8888 (struct frame_unwind): Update.
8889 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8890 (dummy_frame_unwind): Update.
8891 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8892 (sentinel_frame_unwinder): Update.
8893 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8894 (d10v_frame_unwind): Update.
8895 (d10v_unwind_pc): New function.
8896 (d10v_gdbarch_init): Set unwind_pc.
8897
ef840a37
AC
88982003-03-10 Andrew Cagney <cagney@redhat.com>
8899
a2ce2e56
AC
8900 * gdbarch.h: Re-generate.
8901
ef840a37
AC
8902 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8903 PC.
8904 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8905 the PC register.
8906
08f3424b
MK
89072003-03-08 Mark Kettenis <kettenis@gnu.org>
8908
8909 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8910
1248ede2
AC
89112003-03-08 Andrew Cagney <cagney@redhat.com>
8912
8913 * cli-out.c: Update copyright.
8914 (cli_out_data): Define typedef. Use instead of ui_out_data.
8915
f49bacc8
AC
89162003-03-08 Andrew Cagney <cagney@redhat.com>
8917
8918 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8919 the result.
8920
9b05f993
AC
89212003-03-07 Andrew Cagney <cagney@redhat.com>
8922
8923 * gdbarch.sh: Don't generate two macro definitions when an
8924 undefined macro taking no arguments.
8925 * gdbarch.h: Regenerate.
8ffd9b1b 8926
166f4c7b
ML
89272002-03-07 Michal Ludvig <mludvig@suse.cz>
8928
8929 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8930 (x86_64_unwind_dummy_id): New functions.
8931 (x86_64_init_abi): Register these two new functions.
8932
6d686a84
ML
89332003-03-07 Michal Ludvig <mludvig@suse.cz>
8934
8935 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8936 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8937 separate function.
8938 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8939
6314f104
AC
89402003-03-05 Andrew Cagney <cagney@redhat.com>
8941
8942 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8943 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8944 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8945 to use unwind_dummy_id when a dummy frame.
8946 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8947 predicate.
8948 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8949
ceea5145
AC
89502003-03-05 Andrew Cagney <cagney@redhat.com>
8951
8952 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8953 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8954 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8955 values.
8956
0d843116
AC
89572003-03-05 Andrew Cagney <cagney@redhat.com>
8958
8959 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8960 (struct d10v_unwind_cache): Delete field "frameless". Replace
8961 "next_addr" with "sp_offset". Add "r11_offset".
8962 (d10v_frame_unwind_cache): Update.
8963 (prologue_find_regs): Update. When "mv r11, sp", save the
8964 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8965 RN was saved in r11_offset.
8966
b2579786
AC
89672003-03-05 Andrew Cagney <cagney@redhat.com>
8968
8969 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8970 cached PC value in the next frame.
8971
218e5956
AC
89722003-03-05 Andrew Cagney <cagney@redhat.com>
8973
8974 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8975 "id_unwind_cache" with "id".
8976 (frame_id_unwind): Delete declaration.
8977 * frame.c (frame_id_unwind): Delete function.
8978 (get_prev_frame): Call the frame id unwind method directly. Store
8979 the returned next frame's ID value in NEXT_FRAME. Note that there
8980 is a problem with the wrong unwind ID being called with the wrong
8981 unwind cache.
8982
ed363b1b
DJ
89832003-03-05 Daniel Jacobowitz <drow@mvista.com>
8984
8985 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8986
fe1f4a5e
DJ
89872003-03-05 James Ingham <jingham@apple.com>
8988 Daniel Jacobowitz <drow@mvista.com>
8989
8990 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8991 (auto_cp_abi): New variable.
8992 (current_cp_abi, num_cp_abis): Make static.
8993 (CP_ABI_MAX): Define.
8994 (cp_abis): Turn into an array.
8995 (value_virtual_fn_field): Fix formatting.
8996 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8997 takes a pointer.
8998 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8999 (list_cp_abis, _initialize_cp_abi): New functions.
9000 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9001 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9002 switch_to_cp_abi. Update prototype for register_cp_abi.
9003 * Makefile.in (cp-abi.o): Update dependencies.
9004 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9005 instead of switch_to_cp_abi.
9006 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9007 register_cp_abi.
9008 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9009 register_cp_abi.
9010 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9011
e4adbba9
DJ
90122003-03-05 Daniel Jacobowitz <drow@mvista.com>
9013
9014 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9015 * dwarf2loc.c: Include "regcache.h".
9016 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9017 register_size.
9018 * Makefile.in (dwarf2loc.o): Update dependencies.
9019
91ccbfc1
TR
90202003-03-04 Theodore A. Roth <troth@openavr.org>
9021
9022 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9023 number of io registers reported by remote target is not a multiple of
9024 step.
9025
3d4e8fd2
DC
90262003-03-04 David Carlton <carlton@math.stanford.edu>
9027
9028 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9029 (lookup_symbol_aux_psymtabs): Update call to
9030 lookup_partial_symbol.
9031 (lookup_transparent_type, find_main_psymtab)
9032 (make_symbol_overload_list): Ditto.
9033
ed42d87b
KH
90342003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9035
9036 * MAINTAINERS (Write after approval): Update my email address.
9037
a0ed5532
AC
90382003-03-03 Andrew Cagney <cagney@redhat.com>
9039
9040 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9041 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9042 predicate. Replace MAX_REGISTER_RAW_SIZE.
9043 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9044 MAX_REGISTER_VIRTUAL_SIZE.
9045 * regcache.c (legacy_max_register_raw_size): New function.
9046 (legacy_max_register_virtual_size): New function.
9047 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9048 (MAX_REGISTER_RAW_SIZE): Define.
9049 (legacy_max_register_raw_size): Declare.
9050 (legacy_max_register_virtual_size): Declare.
9051 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9052 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9053 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9054 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9055 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9056 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9057 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9058 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9059 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9060 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9061 * vax-tdep.c (vax_gdbarch_init): Update.
9062 * v850-tdep.c (v850_gdbarch_init): Update.
9063 * sparc-tdep.c (sparc_gdbarch_init): Update.
9064 * sh-tdep.c (sh_gdbarch_init): Update.
9065 * s390-tdep.c (s390_gdbarch_init): Update.
9066 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9067 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9068 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9069 * mips-tdep.c (mips_gdbarch_init): Update.
9070 * mcore-tdep.c (mcore_gdbarch_init): Update.
9071 * m68k-tdep.c (m68k_gdbarch_init): Update.
9072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9073 * ia64-tdep.c (ia64_gdbarch_init): Update.
9074 * i386-tdep.c (i386_gdbarch_init): Update.
9075 * hppa-tdep.c (hppa_gdbarch_init): Update.
9076 * h8300-tdep.c (h8300_gdbarch_init): Update.
9077 * frv-tdep.c (frv_gdbarch_init): Update.
9078 * cris-tdep.c (cris_gdbarch_init): Update.
9079 * avr-tdep.c (avr_gdbarch_init): Update.
9080 * arm-tdep.c (arm_gdbarch_init): Update.
9081 * alpha-tdep.c (alpha_gdbarch_init): Update.
9082 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9083 max_register_raw_size or max_register_virtual_size.
9084
8e437497
DC
90852003-03-03 David Carlton <carlton@math.stanford.edu>
9086
9087 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9088 SYMBOL_MATCHES_NAME, add comment.
9089 (SYMBOL_MATCHES_NATURAL_NAME): New.
9090 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9091 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9092 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9093 * symtab.c (lookup_partial_symbol): Use
9094 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9095 unhelpful comment.
9096 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9097 SYMBOL_MATCHES_NAME.
9098 Fix for PR c++/33.
9099
25120b0d
DC
91002003-03-03 David Carlton <carlton@math.stanford.edu>
9101
9102 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9103 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9104 by regexp matching against SYMBOL_NATURAL_NAME.
9105
78a11fb4
DC
91062003-03-03 David Carlton <carlton@math.stanford.edu>
9107
9108 * linespec.c (find_method): Extract code into collect_methods.
9109 (collect_methods): New.
9110
645dd519
MK
91112003-03-02 Mark Kettenis <kettenis@gnu.org>
9112
b4700d91
MK
9113 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9114 get_frame_base.
9115
645dd519
MK
9116 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9117 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9118
0aa7e1aa
SC
91192003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9120
8ffd9b1b 9121 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9122 and not regnum when summing the size of all registers up to regnum.
9123
f30ee0bc
AC
91242003-03-01 Andrew Cagney <cagney@redhat.com>
9125
9126 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9127 FRAME_INIT_SAVED_REGS.
9128 * gdbarch.h, gdbarch.c: Regenerate.
9129 * stack.c (frame_info): Update.
9130 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9131 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9132 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9133 * ns32k-tdep.c (ns32k_pop_frame): Update.
9134 * mips-tdep.c (mips_pop_frame): Update.
9135 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9136 * ia64-tdep.c (ia64_frame_chain): Update.
9137 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9138 (ia64_frameless_function_invocation): Update.
9139 (ia64_init_extra_frame_info): Update.
9140 (ia64_pop_frame_regular): Update.
9141 * frame.h (struct frame_info): Update comment.
9142 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9143 * frame.c (frame_saved_regs_register_unwind): Update.
9144 (frame_saved_regs_register_unwind): Update.
9145 (deprecated_generic_get_saved_register): Update.
9146 * cris-tdep.c: Update comment.
9147 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9148 Rename macro.
9149 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9150 * x86-64-tdep.c (x86_64_init_abi): Update.
9151 * vax-tdep.c (vax_gdbarch_init): Update.
9152 * v850-tdep.c (v850_gdbarch_init): Update.
9153 * sparc-tdep.c (sparc_gdbarch_init): Update.
9154 * sh-tdep.c (sh_gdbarch_init): Update.
9155 * s390-tdep.c (s390_gdbarch_init): Update.
9156 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9157 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9158 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9159 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9160 * mips-tdep.c (mips_gdbarch_init): Update.
9161 * mcore-tdep.c (mcore_gdbarch_init): Update.
9162 * m68k-tdep.c (m68k_gdbarch_init): Update.
9163 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9164 * ia64-tdep.c (ia64_gdbarch_init): Update.
9165 * i386-tdep.c (i386_gdbarch_init): Update.
9166 * frv-tdep.c (frv_gdbarch_init): Update.
9167 * avr-tdep.c (avr_gdbarch_init): Update.
9168 * arm-tdep.c (arm_gdbarch_init): Update.
9169 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9170
42fa7c0f
AC
91712003-03-01 Andrew Cagney <cagney@redhat.com>
9172
9173 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9174 option enum and switch. When no windows, set the interpreter to
9175 INTERP_CONSOLE.
8ffd9b1b 9176
49c7e338
AC
91772003-03-01 Andrew Cagney <cagney@redhat.com>
9178
9179 * main.c (captured_main): Replace magic option characters with an
9180 enum.
9181
e9582e71
AC
91822003-03-01 Andrew Cagney <cagney@redhat.com>
9183
9184 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9185 INIT_EXTRA_FRAME_INFO.
9186 * gdbarch.h, gdbarch.c: Regenerate.
9187 * arm-tdep.c: Update comments.
9188 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9189 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9190 * frame.h, avr-tdep.c: Ditto.
9191 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9192 (create_new_frame, legacy_get_prev_frame): Ditto.
9193 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9194 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9196 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9197 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9198 * v850-tdep.c (v850_gdbarch_init): Ditto.
9199 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9200 * sh-tdep.c (sh_gdbarch_init): Ditto.
9201 * s390-tdep.c (s390_gdbarch_init): Ditto.
9202 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9203 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9204 * mips-tdep.c (mips_gdbarch_init): Ditto.
9205 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9206 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9207 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9208 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9209 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9210 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9211 * frv-tdep.c (frv_gdbarch_init): Ditto.
9212 * cris-tdep.c (cris_gdbarch_init): Ditto.
9213 * avr-tdep.c (avr_gdbarch_init): Ditto.
9214 * arm-tdep.c (arm_gdbarch_init): Ditto.
9215 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9216 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9217
35cac7cf
AC
92182003-03-01 Andrew Cagney <cagney@redhat.com>
9219
9220 * gdbarch.sh (register_type): New function with predicate.
9221 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9222 * gdbarch.h, gdbarch.c: Re-generate.
9223 * arch-utils.c (generic_register_byte): Use generic_register_size.
9224 (generic_register_size): When available, use
9225 gdbarch_register_type.
9226 * regcache.c (init_regcache_descr): When available, initialize the
9227 register type array using gdbarch_register_type. If the
9228 architecture supplies gdbarch_register_type, do not use the legacy
9229 regcache layout.
9230 * d10v-tdep.c (d10v_register_type): Replace
9231 d10v_register_virtual_type.
9232 (d10v_gdbarch_init): Set register_type instead of
9233 register_virtual_type.
9234
7b83296f
AC
92352003-03-01 Andrew Cagney <cagney@redhat.com>
9236
9237 * Makefile.in (ax-gdb.o): Update dependencies.
9238 * ax-gdb.c: Include "regcache.h".
9239 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9240 * findvar.c (value_of_register): Ditto.
9241 * infcmd.c (default_print_registers_info): Ditto.
9242
eadc1c87
MK
92432003-03-01 Mark Kettenis <kettenis@gnu.org>
9244
9245 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9246 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9247
14143612
MK
92482003-03-01 Mark Kettenis <kettenis@gnu.org>
9249
9250 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9251 of STREQ.
9252
a55cc764
DJ
92532003-02-28 Daniel Jacobowitz <drow@mvista.com>
9254
9255 * Makefile.in (dwarf2loc.o): Update dependencies.
9256 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9257 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9258 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9259 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9260 (locexpr_tracepoint_var_ref): New function.
9261 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9262
08a617da
AC
92632003-02-28 Andrew Cagney <cagney@redhat.com>
9264
9265 * regcache.c (register_size): New function.
9266 * regcache.h (register_size): Declare
9267 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9268 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9269
4224873a
DC
92702003-02-28 David Carlton <carlton@math.stanford.edu>
9271
9272 * linespec.c (decode_compound): Extract code into find_method.
9273 (find_method): New.
9274
ccdc5d7f
JB
92752003-02-28 J. Brobecker <brobecker@gnat.com>
9276
9277 * Makefile.in: Add rules to build and link in observer.o.
9278
974e8ced
JB
92792003-02-27 J. Brobecker <brobecker@gnat.com>
9280
9281 * observer.c: Minor comments edits.
9282
7a28f973
JB
92832003-02-27 J. Brobecker <brobecker@gnat.com>
9284
9285 * observer.h, observer.c: New file.
9286
27cddce2
AC
92872003-02-27 Andrew Cagney <cagney@redhat.com>
9288
9289 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9290
b94a41a1
SC
92912003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9292
9293 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9294 (M6812_OP_STS_EXT): Likewise.
9295 (m6811_prologue): Use the above to recognize prologue.
9296 (m6812_prologue): Likewise.
9297
c8be8951
DC
92982003-02-27 David Carlton <carlton@math.stanford.edu>
9299
9300 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9301 SYMBOL_PRINT_NAME.
9302 (compare_psymbols): Ditto.
9303 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9304
d05bb1fc
MS
93052003-02-27 Michael Snyder <msnyder@redhat.com>
9306
4e845cd3
MS
9307 * f-lang.c (build_fortran_types): New function.
9308 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9309 * doublest.c (extract_floating): Fix warning text.
9310
f3824013
AC
93112003-02-27 Andrew Cagney <cagney@redhat.com>
9312
9313 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9314 predicate. Replaces PUSH_DUMMY_FRAME.
9315 * gdbarch.h, gdbarch.c: Regnerate.
9316 * valops.c (hand_function_call): Update. Call
9317 generic_push_dummy_frame directly.
9318 * vax-tdep.c (vax_gdbarch_init): Update.
9319 * sparc-tdep.c (sparc_gdbarch_init): Update.
9320 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9321 * m68k-tdep.c (m68k_gdbarch_init): Update.
9322 * hppa-tdep.c (hppa_gdbarch_init): Update.
9323 * alpha-tdep.c (alpha_gdbarch_init): Update.
9324 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9325 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9326 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9327 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9328 push_dummy_frame to generic_push_dummy_frame.
9329 * v850-tdep.c (v850_gdbarch_init): Ditto.
9330 * sh-tdep.c (sh_gdbarch_init): Ditto.
9331 * s390-tdep.c (s390_gdbarch_init): Ditto.
9332 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9333 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9334 * mips-tdep.c (mips_gdbarch_init): Ditto.
9335 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9337 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9338 * i386-tdep.c (i386_gdbarch_init): Ditto.
9339 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9340 * frv-tdep.c (frv_gdbarch_init): Ditto.
9341 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9342 * cris-tdep.c (cris_gdbarch_init): Ditto.
9343 * avr-tdep.c (avr_gdbarch_init): Ditto.
9344 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9345
ad188201
KB
93462003-02-26 Kevin Buettner <kevinb@redhat.com>
9347
9348 * mips-tdep.c (show_mips_abi): New function.
9349 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9350 command ``show mips abi''.
9351
6b37567a 93522003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9353
6b37567a 9354 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9355 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9356 more sline entries have been seen for the function.
9357
d3e0a5bf
MC
93582003-02-26 Michael Chastain <mec@shout.net>
9359
9360 * configure: Regenerate with autoconf 000227.
9361
18972eea
MC
93622003-02-26 Michael Chastain <mec@shout.net>
9363
9364 Close PR build/660.
9365 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9366 for old libc5/glibc.
9367 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9368
0bbde931
KW
93692003-02-26 Kris Warkentin <kewarken@qnx.com>
9370
9371 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9372 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9373
27ca5dad
MC
93742003-02-26 Michael Chastain <mec@shout.net>
9375
9376 * configure.in: New variable HAVE_UINTPTR_T.
9377 * configure, config.in: Regenerated.
9378
6f88d630
DJ
93792003-02-26 Daniel Jacobowitz <drow@mvista.com>
9380
9381 Fix PR build/1097.
9382 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9383
b14185ce
AC
93842003-02-25 Andrew Cagney <cagney@redhat.com>
9385
9386 * frame.c (get_prev_frame): Add comment on check for
9387 inside_entry_func. Only check for inside_entry_file when not a
9388 dummy and not a sentinel. Check that the new frame is not inner
9389 to the old frame.
9390
ac2bd0a9
AC
93912003-02-25 Andrew Cagney <cagney@redhat.com>
9392
9393 * frame.c (frame_debug): New variable.
9394 (_initialize_frame): Add "set/show debug frame" command.
9395 (get_prev_frame): When frame_debug, print reason why unwind
9396 failed.
9397
b18a0fd2
MC
93982003-02-25 Michael Chastain <mec@shout.net>
9399
9400 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9401 to avoid uintptr_t definition problems.
9402
22abf04a
DC
94032003-02-25 David Carlton <carlton@math.stanford.edu>
9404
9405 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9406 (SYMBOL_LINKAGE_NAME): Ditto.
9407 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9408 SYMBOL_LINKAGE_NAME.
9409 (struct general_symbol_info): Expand comment.
9410 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9411 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9412 (SYMBOL_MATCHES_REGEXP): Ditto.
9413 * symtab.c (symbol_natural_name): New function.
9414 * objfiles.h: Replace all uses of SYMBOL_NAME by
9415 DEPRECATED_SYMBOL_NAME.
9416 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9417 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9418 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9419 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9420 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9421 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9422 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9423 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9424 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9425 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9426 * ada-exp.y: Ditto.
9427 * ada-exp.y: Update copyright.
9428 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9429 * cp-valprint.c: Ditto.
9430
1a5848f6
JJ
94312003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9432
9433 * infptrace.c (detach): Do not flag error if ptrace detach fails
9434 and errno is set to ESRCH.
9435
7343d46a
AC
94362003-02-24 Andrew Cagney <cagney@redhat.com>
9437
9438 * infptrace.c (udot_info): Change type of udot_off to long. Use
9439 paddr when printing udot_off's value.
9440
49fa1dc2
DC
94412003-02-24 David Carlton <carlton@math.stanford.edu>
9442
9443 * symtab.c (make_symbol_overload_list): Only read in partial
9444 symtabs containing a matching partial symbol.
9445
0fe19209
DC
94462003-02-24 David Carlton <carlton@math.stanford.edu>
9447
9448 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9449 do the comparison, not strcmp.
9450 * symfile.c (compare_psymbols): Ditto.
9451 * defs.h: Declare strcmp_iw_ordered.
9452 * utils.c (strcmp_iw_ordered): New function.
9453
8e3ee7b5
JB
94542003-02-24 Jim Blandy <jimb@redhat.com>
9455
9456 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9457 support, shared libs): Remove my name from here, to better reflect
9458 reality.
9459
7df1a324
KW
94602003-02-24 Kris Warkentin <kewarken@qnx.com>
9461
9462 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9463 (target_ops): Add to_have_continuable_watchpoint.
9464 * target.c (update_current_target): Add INHERIT line for
9465 to_have_continuable_watchpoint.
9466 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9467 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9468 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9469 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9470
d1c76907
EZ
94712003-02-24 Elena Zannoni <ezannoni@redhat.com>
9472
9473 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9474 maintainership.
9475
2610b0bf
KW
94762003-02-24 Kris Warkentin <kewarken@qnx.com>
9477
f46169db
KW
9478 * solib.c (solib_open): Call target defined search function after
9479 failing with solib-search-path.
9480 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9481 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9482
9a3c34fe
KW
94832003-02-24 Kris Warkentin <kewarken@qnx.com>
9484
f46169db 9485 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9486
2417dd25
SC
94872003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9488
9489 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9490
b631436b
SC
94912003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9492
9493 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9494 (m68hc11_add_reggroups): New function.
9495 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9496 (m68hc11_gdbarch_init): Install the reggroups.
9497 (_initialize_m68hc11_tdep): Initialize them.
9498
0aa8c1e4
JW
94992003-02-21 James E Wilson <wilson@tuliptree.org>
9500
9501 * MAINTAINERS: Update my email address.
9502
50ceaba5
DC
95032003-02-21 David Carlton <carlton@math.stanford.edu>
9504
9505 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9506
4c2df51b
DJ
95072003-02-21 Daniel Jacobowitz <drow@mvista.com>
9508
9509 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9510 * symtab.h: Add opaque declarations of struct axs_value and
9511 struct agent_expr.
9512 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9513 (struct location_funcs): New type.
9514 (struct symbol): Add "loc" to aux_value.
9515 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9516 * dwarf2read.c: Include "dwarf2expr.h".
9517 (dwarf2_symbol_mark_computed): New function.
9518 (read_func_scope): Use it.
9519 (var_decode_location): New function.
9520 (new_symbol): Use it.
9521 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9522
9523 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9524 (dwarf2expr_h, dwarf2loc_h): New variables.
9525 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9526 (dwarf2expr.o, dwarf2loc.o): New rules.
9527 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9528 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9529 LOC_COMPUTED_ARG.
9530 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9531 * m2-exp.y (yylex): Likewise.
9532 * printcmd.c (address_info, print_frame_args): Likewise.
9533 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9534 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9535 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9536 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9537 * symtab.c (lookup_block_symbol): Likewise.
9538
5784d15e
AF
95392003-02-20 Adam Fedor <fedor@gnu.org>
9540
9541 * symtab.h: Remove objc_specific struct
9542 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9543 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9544 Have language_objc use cplus_specific struct.
9545
d4cad8db
TT
95462003-02-20 Tom Tromey <tromey@redhat.com>
9547
9548 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9549 TYPE_NAME, when printing a String value. PR java/1075.
9550
2f9a90b4
AF
95512003-02-20 Adam Fedor <fedor@gnu.org>
9552
d38074a8 9553 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9554 * objc-lang.c (find_methods): Make static.
2f9a90b4 9555
6f17862b
CF
95562003-02-20 Christopher Faylor <cgf@redhat.com>
9557
9558 * win32-nat.c (get_image_name): Check return value from
9559 ReadProcessMemory.
9560 (child_xfer_memory): Ditto.
9561
715d1656
AO
95622003-02-20 Alexandre Oliva <aoliva@redhat.com>
9563
9564 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9565 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9566 '${exec_prefix}' (in addition to the expansion thereof) as
9567 relocatable.
9568 * configure: Rebuilt.
9569
b1262a02
DC
95702003-02-20 David Carlton <carlton@math.stanford.edu>
9571
9572 * symtab.c (search_symbols): Revert the search_symbols part of my
9573 2002-12-23 patch. Add comment.
9574
7134143f
DJ
95752002-02-20 Daniel Jacobowitz <drow@mvista.com>
9576
9577 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9578 * dbxread.c (elfstab_build_psymtabs): Don't call
9579 install_minimal_symbols.
9580 (stabsect_build_psymtabs): Likewise.
9581 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9582 earlier.
9583 * somread.c (som_symfile_read): Call install_minimal_symbols
9584 and do_cleanups earlier.
9585 * nlmread.c (nlm_symfile_read): Likewise.
9586 * mdebugread.c (elfmdebug_build_psymtabs): Call
9587 install_minimal_symbols and make appropriate cleanups.
9588
cf466558
KB
95892003-02-20 Kevin Buettner <kevinb@redhat.com>
9590
9591 * solib.c (reload_shared_libraries): New function.
9592 (_initialize_solib): Add callbacks for ``set solib-search-path''
9593 and ``set solib-absolute-prefix''.
9594
de5ad195
DC
95952003-02-20 David Carlton <carlton@math.stanford.edu>
9596
9597 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9598 expand comment.
9599 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9600 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9601 * ada-typeprint.c (ada_typedef_print): Ditto.
9602 * ax-gdb.c (gen_var_ref): Ditto.
9603 * breakpoint.c (print_one_breakpoint): Ditto.
9604 * buildsym.c (finish_block): Ditto.
9605 * c-valprint.c (c_val_print): Ditto.
9606 * expprint.c (print_subexp): Ditto.
9607 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9608 * infcmd.c (jump_command): Ditto.
9609 * linespec.c (decode_line_2, decode_compound): Ditto.
9610 * maint.c (maintenance_translate_address): Ditto.
9611 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9612 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9613 Ditto.
8ffd9b1b
AJ
9614 * p-valprint.c (pascal_val_print): Ditto.
9615 * stabsread.c (define_symbol): Ditto.
de5ad195 9616 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9617 (print_frame_arg_vars, return_command): Ditto.
9618 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9619 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9620 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9621 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9622 (rbreak_command): Ditto.
9623 * tracepoint.c (tracepoints_info): Ditto.
9624 * typeprint.c (typedef_print): Ditto.
9625 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9626 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9627 * ada-typeprint.c: Update Copyright.
9628 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9629 * tracepoint.c, cli/cli-cmds.c: Ditto.
9630
f796e4be
KB
96312003-02-20 Kevin Buettner <kevinb@redhat.com>
9632
9633 * frame.c (generic_unwind_get_saved_register): Make non-static.
9634 * frame.h (generic_unwind_get_saved_register): Declare.
9635 * mips-tdep.c (read_next_frame_reg): Fetch register from
9636 current regcache when frame is NULL.
9637 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9638 that must be NULL.
9639 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9640 instead of frame_register_unwind().
9641
836cc9f4
AC
96422003-02-20 Andrew Cagney <ac131313@redhat.com>
9643
9644 * remote-sim.c (gdbsim_insert_breakpoint)
9645 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9646 code.
9647
501eef12
AC
96482003-02-20 Andrew Cagney <ac131313@redhat.com>
9649
9650 * remote.c (_initialize_remote): Add commands "set/show remote
9651 hardware-watchpoint-limit" and "set/show remote
9652 hardware-breakpoint-limit".
9653 (remote_hw_watchpoint_limit): Initialize to -1.
9654 (remote_hw_breakpoint_limit): Ditto.
9655 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9656
1b6bc7e0
CF
96572003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9658
9659 * coff-pe-read.c: New file - support reading of minimal symbols from a
9660 portable executable using the export table.
9661 * coff-pe-read.h: New file.
9662 * coffread.c: Include coff-pe-read.h.
9663 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9664 debugging symbols found.
9665 * Makefile.in (SFILES): Add coff-pe-read.o.
9666 (coff_pe_read_h): Define.
9667 (COMMON_OBS): Add coff-pe-read.o.
9668 (coffread.o): Add coff_pe_read_h dependency.
9669 (coff-pe-read.o): New target.
9670
fe898f56
DC
96712003-02-19 David Carlton <carlton@math.stanford.edu>
9672
9673 * Makefile.in (SFILES): Add block.c.
9674 (block_h): New.
9675 (COMMON_OBS): Add block.o.
9676 (block.o): New.
9677 (x86-64-tdep.o): Add $(block_h).
9678 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9679 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9680 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9681 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9682 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9683 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9684 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9685 * value.h: Add opaque declaration for struct block.
9686 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9687 * ada-lang.h: Ditto.
9688 * x86-64-tdep.c: #include "block.h"
9689 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9690 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9691 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9692 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9693 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9694 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9695 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9696 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9697 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9698 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9699 * symtab.c (block_function): Ditto.
9700 (contained_in): Ditto.
9701 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9702 block.h. Add opaque declaration for struct block.
9703 * symtab.h: Move block_function and contained_in declarations to
9704 block.h. Add opaque declarations for struct block, struct
9705 blockvector.
9706 (struct block): Move to block.h.
9707 (struct blockvector): Ditto.
9708 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9709 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9710 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9711 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9712 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9713 Ditto.
9714 * block.c: New file.
9715 * block.h: New file.
9716
173345b5
TR
97172003-02-19 Theodore A. Roth <troth@openavr.org>
9718
9719 * avr-tdep.c (avr_extract_return_value): Remove function.
9720 (avr_store_return_value): Remove function.
9721 (avr_extract_struct_value_address): Remove function.
9722 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9723
338ef23d
AC
97242003-02-19 Andrew Cagney <ac131313@redhat.com>
9725
9726 * rs6000-tdep.c: Include "gdb_assert.h".
9727 (registers_e500): Add "acc" and "spefscr".
9728 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9729 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9730 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9731 really is "r0".
9732 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9733
5412f5f3
KS
97342003-02-18 Keith Seitz <keiths@redhat.com>
9735
9736 * Makefile.in: Add gdbtk-interps.c.
9737
881324eb
KB
97382003-02-18 Kevin Buettner <kevinb@redhat.com>
9739
9740 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9741 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9742
6a2f5abf
AC
97432003-02-18 Andrew Cagney <cagney@redhat.com>
9744
9745 * symtab.h (struct objfile): Add opaque declaration.
9746
54c7009d
EZ
97472003-02-18 Elena Zannoni <ezannoni@redhat.com>
9748
9749 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9750 * dbxread.c (process_one_symbol): Use last_function_start rather
9751 than function_start_offset to find the real beginning of the
9752 current function. The latter is just the text section offset on
9753 some systems, the former is always the real function start.
54c7009d 9754
7ee6d7eb
AC
97552003-02-17 Andrew Cagney <cagney@redhat.com>
9756
9757 * configure.in: Revert ${target} != ${host}.
9758
2846da9b
AC
97592003-02-17 Andrew Cagney <ac131313@redhat.com>
9760
9761 * configure.in (Makefile): Use the test ${target} != ${host},
9762 instead of the absence of the "nm.h" file, to determine of the
9763 configuration non-native.
9764 * configure: Regenerate.
8ffd9b1b 9765
3b27aeea
EZ
97662003-02-14 Elena Zannoni <ezannoni@redhat.com>
9767
fbe586ae 9768 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9769
9770 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9771 conditionalize tui_active test.
9772 (lookup_cmd_1): Ditto.
9773
b0b1c2c0
MK
97742003-02-14 Mark Kettenis <kettenis@gnu.org>
9775
9776 * configure.in: Add check for _etext.
9777 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9778 available.
9779 * config.in, configure: regenerated.
9780
8f05cde5
DJ
97812003-02-14 Daniel Jacobowitz <drow@mvista.com>
9782
9783 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9784
021e7609
AC
97852003-02-14 Andrew Cagney <ac131313@redhat.com>
9786
9787 * main.c (tui_version): Delete variable.
9788 (captured_main): When --tui, set interpreter_p to "tui" instead of
9789 enabling tui_version.
9790 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9791 tui_version.
9792 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9793 * cli/cli-cmds.c (disassemble_command): Ditto.
9794 * defs.h (tui_version): Delete declaration.
9795 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9796 (tui-interp.o): Add rules.
9797 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9798
e325dcec
CF
97992003-02-14 Christopher Faylor <cgf@redhat.com>
9800
36ffb041 9801 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9802 just-loaded dll.
9803
c4f90d87
JM
98042003-02-12 Jason Molenda (jmolenda@apple.com)
9805
fbe586ae
RH
9806 * symmisc.c (print_objfile_statistics): Include information about
9807 the number of psymtabs and symtabs in each object file.
c4f90d87 9808
e46e5ccd
KS
98092003-02-13 Keith R Seitz <keiths@redhat.com>
9810
9811 * main.h (struct captured_main_args): Add interpreter_p.
9812 * main.c (captured_main): Initialize interpreter_p from context.
9813 * gdb.c (main): Set interpreter_p argument.
9814 * Makefile.in (gdb.o): Add dependency for interps.h.
9815
fe97fe9c
AC
98162003-02-12 Andrew Cagney <ac131313@redhat.com>
9817
9818 * event-top.c (cli_command_loop): Delete declaration.
9819 (_initialize_event_loop): Delete function setting event_loop_hook.
9820 * event-top.h (cli_command_loop): Declare. Update copyright.
9821 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9822 * interps.c (current_interp_command_loop): When event_loop_p, call
9823 cli_command_loop.
9824
1cdac4ef
AC
98252003-02-12 Andrew Cagney <ac131313@redhat.com>
9826
9827 * interps.h (interp_command_loop_ftype): Change return type to
9828 void.
9829
48037ead
ML
98302003-02-12 Michal Ludvig <mludvig@suse.cz>
9831
9832 * x86-64-tdep.c (x86_64_extract_return_value)
9833 (x86_64_store_return_value): Use regcache instead of regbuf.
9834 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9835 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9836
033afc63
AC
98372003-02-11 Andrew Cagney <ac131313@redhat.com>
9838
9839 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9840 * aclocal.m4: Regenerate.
9841 * configure: Regenerate.
9842
9843 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9844 TCL_LD_SEARCH_FLAGS.
9845
40d02bca
ML
98462003-02-10 Michal Ludvig <mludvig@suse.cz>
9847
9848 * dwarf2cfi.c: Reindented.
9849
11308a41
AC
98502003-02-09 Andrew Cagney <ac131313@redhat.com>
9851
9852 * interps.c (clear_interpreter_hooks): Convert function definition
9853 to ISO C.
9854
e1c1c0f6
DC
98552003-02-07 David Carlton <carlton@math.stanford.edu>
9856
9857 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9858
ab5d3da6
KB
98592003-02-07 Kevin Buettner <kevinb@redhat.com>
9860
9861 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9862 (struct type): ...to here.
9863 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9864 field.
9865 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9866 (replace_type): Set length on all type variants for a given type.
9867
b8a92b82
AC
98682003-02-07 Andrew Cagney <ac131313@redhat.com>
9869
9870 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9871 <sys/stat.h>.
9872 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9873
5cb316ef
AC
98742003-02-06 Andrew Cagney <ac131313@redhat.com>
9875
2555fe1a
AC
9876 * Makefile.in (symm-nat.o): Update dependencies.
9877 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9878 (lynx-nat.o, ia64-linux-nat.): Ditto.
9879 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9880 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9881 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9882
44270758
AC
9883 * Makefile.in (inflow_h): Define.
9884 (procfs.o, inflow.o, procfs.o): Update dependencies.
9885 * inftarg.c (child_stop): Delete extern declaration of
9886 inferior_process_group. Include "inflow.h".
9887 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9888 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9889 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9890 (our_process_group, inferior_process_group): Extern declarations.
9891
df8f7274
AC
9892 * procfs.c: Include "gdb_assert.h".
9893
5cb316ef
AC
9894 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9895 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9896 * jv-typeprint.c (java_type_print_base): Ditto.
9897 * typeprint.c (typedef_print): Eliminate STREQ.
9898 * cli/cli-script.c (define_command, define_command): Ditto.
9899 * main.c (captured_main): Ditto.
9900 * values.c (lookup_internalvar): Ditto.
9901 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9902 within `if' conditional.
9903 * linespec.c (decode_line_2): Ditto.
9904 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9905 (bfd_openw_with_cleanup): Ditto.
9906
2a28ccea
MK
99072003-02-07 Mark Kettenis <kettenis@gnu.org>
9908
9909 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9910 legacy_extract_return_value and store_return_value to
9911 legacy_return_value.
9912
786b8124
CF
99132003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9914
9915 * win32-nat.c (get_relocated_section_addrs): New function. Find
9916 section load addresses for symbol handling in relocated DLLs.
9917 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9918
b871e4ec
FF
99192003-02-05 Fred Fish <fnf@intrinsity.com>
9920
9921 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9922 '=' and '!='.
9923 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9924 with '&' and '=='.
9925 (angel_RDI_info): Ditto.
9926 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9927 with '&' and '!='.
9928 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9929
4389a95a 99302003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9931 Keith Seitz <keiths@redhat.com>
9932 Elena Zannoni <ezannoni@redhat.com>
9933 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9934
9935 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9936 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9937 (SUBDIR_MI_OBS): Add "mi-interp.o".
9938 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9939 (SFILES): Add "interps.c".
9940 (COMMON_OBS): Add "interps.o".
9941 (interps_h, mi_main_h): Define.
9942 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9943 (mi-main.o, main.o, event-top.o): Update dependencies.
9944 * cli/cli-interp.c: New file.
9945 * interps.h, interps.c: New files.
9946 * top.c: (gdb_init): Don't install the default interpreter, handed
9947 by captured_main.
9948 * main.c: Include "interps.h".
9949 (interpreter_p): Note that it should malloc'ed.
9950 (captured_command_loop): Call current_interp_command_loop.
9951 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9952 xfree and xstrdup when updating interpreter_p. Install the
9953 default interpreter. Add hack to stop mi1's copyright notice
9954 being encoded.
9955 * event-top.h (gdb_setup_readline): Declare.
9956 (gdb_disable_readline): Declare.
9957 * event-top.c: Include "interps.h".
9958 (display_gdb_prompt): Call current_interp_display_prompt_p.
9959 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9960 gdb_stdlog, and gdb_stdtarg.
9961 (_initialize_event_loop): Don't call gdb_setup_readline.
9962 * cli-out.c (cli_out_set_stream): New function.
9963 * cli-out.h (cli_out_set_stream): Declare.
9964
ff3b5810
MK
99652003-02-06 Mark Kettenis <kettenis@gnu.org>
9966
9967 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9968 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9969 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9970 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9971 config/i386/i386v42mp.mt: Removed.
9972
5b729aa5
MK
99732003-02-05 Mark Kettenis <kettenis@gnu.org>
9974
9975 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9976 GDB_OSABI_SOLARIS.
9977
8cc15142
MC
99782003-02-05 Michael Chastain <mec@shout.net>
9979
9980 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9981 2.12.1 and earlier versions.
9982
5aa5d4b9
AC
99832003-02-05 Andrew Cagney <ac131313@redhat.com>
9984
9985 Remove orphaned hosts, targets and files.
9986 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9987 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9988 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9989 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9990 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9991 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9992 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9993 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9994 * config/sparc/tm-sp64sim.h: Delete.
9995 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9996 hosts.
9997 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9998 mips*-dec-mach3* targets.
9999
b68767c1
MC
100002003-02-04 Michael Chastain <mec@shout.net>
10001
10002 * NEWS: Fix typo: sepcifying -> specifying.
10003
5ae7ca1d
MC
100042003-02-04 Michael Chastain <mec@shout.net>
10005
10006 * dwarfread.c: Add documentation on the state of dwarf-1,
10007 looking towards obsoletion.
10008
d08a4280
MC
100092003-02-03 Michael Chastain <mec@shout.net>
10010
10011 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10012 gdb/testsuite/gdb.c++/pr-1023.exp.
10013
e9be73e4
AC
100142003-02-04 Andrew Cagney <ac131313@redhat.com>
10015
10016 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10017 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10018
10019 * utils.c (init_page_info): Delete reference to MPW in comments.
10020 * main.c (captured_main): Delete #ifdef MPW.
10021
05d57f6f
AC
100222003-02-04 Andrew Cagney <ac131313@redhat.com>
10023
8ffd9b1b 10024 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
10025 * monitor.c (monitor_expect): Obsolete reference to m32r.
10026 * configure.tgt: Mark m32r-*-elf* as obsolete.
10027 * MAINTAINERS: Mark m32k as obsolete.
10028 * m32r-rom.c: Obsolete file.
10029 * config/m32r/m32r.mt: Obsolete file.
10030 * config/m32r/tm-m32r.h: Obsolete file.
10031 * m32r-stub.c: Obsolete file.
10032 * m32r-tdep.c: Obsolete file.
10033
8b0e5691
AC
100342003-02-04 Andrew Cagney <ac131313@redhat.com>
10035
10036 * NEWS: Mention that the z8k-zilog-none is obsolete.
10037 * MAINTAINERS: Mark z8k as obsolete.
10038 * configure.tgt: Obsolete the z8k-*-coff* target.
10039 * config/z8k/z8k.mt: Obsolete file.
10040 * config/z8k/tm-z8k.h: Obsolete file.
10041 * z8k-tdep.c: Obsolete file.
10042
67f16606
AC
100432003-02-04 Andrew Cagney <ac131313@redhat.com>
10044
10045 * NEWS: Mention that the mn10200-elf is obsolete.
10046 * configure.tgt: Obsolete mn10200-*-* target.
10047 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10048 mention that the mn10200 is obsolete.
10049 * breakpoint.h: Ditto.
10050 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10051 * config/mn10200/mn10200.mt: Obsolete file.
10052 * config/mn10200/tm-mn10200.h: Obsolete file.
10053 * mn10200-tdep.c: Obsolete file.
10054
fd2299bd
AC
100552003-02-04 Andrew Cagney <ac131313@redhat.com>
10056
10057 * MAINTAINERS: Mark h8500 as obsolete.
10058 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10059 * findvar.c (value_from_register): Ditto.
10060 * h8500-tdep.c: Mark file as obsolete.
10061 * config/h8500/h8500.mt: Ditto.
10062 * config/h8500/tm-h8500.h: Ditto.
10063 * NEWS: Mention that h8500 is obsolete.
10064
eb9a305d
DC
100652003-02-04 David Carlton <carlton@math.stanford.edu>
10066
10067 * objfiles.c (allocate_objfile): Always set name. Add comment at
10068 start of function.
10069 * jv-lang.c (get_dynamics_objfile): Add comment.
10070
406fc7fb
DC
100712003-02-04 David Carlton <carlton@math.stanford.edu>
10072
10073 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10074 * printcmd.c (build_address_symbolic): Replace uses of
10075 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10076 SYMBOL_NAME, and asm_demangle.
10077 Update copyright.
10078
93d91629
DC
100792003-02-04 David Carlton <carlton@math.stanford.edu>
10080
10081 * linespec.c (decode_compound): Extract code into
10082 lookup_prefix_sym.
10083 (lookup_prefix_sym): New function.
10084
1c5cb38e
DC
100852003-02-04 David Carlton <carlton@math.stanford.edu>
10086
10087 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10088 FLOAT_COERCION_BADNESS.
10089 * gdbtypes.c (rank_one_type): Replace all uses of
10090 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10091
0cf824c9
JB
100922003-02-04 Jim Blandy <jimb@redhat.com>
10093
10094 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10095 section, let dwarf_macinfo_section point to it, not
10096 dwarf_loc_section.
10097
a2d356b0
DJ
100982003-02-04 Daniel Jacobowitz <drow@mvista.com>
10099
10100 Pointed out by Anton Blanchard <anton@samba.org>.
10101 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10102 (ppc_linux_at_sigtramp_return_path): Use it.
10103
2de7ced7
DJ
101042003-02-04 Daniel Jacobowitz <drow@mvista.com>
10105
10106 * defs.h (streq): Add prototype.
10107 * utils.c (streq): New function.
10108
10109 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10110 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10111 * mdebugread.c (new_symbol): Likewise.
10112 * stabsread.c (define_symbol): Likewise.
10113 * coffread.c (process_coff_symbol): Likewise.
10114 * dwarfread.c (new_symbol): Likewise.
10115
10116 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10117 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10118 here.
10119 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10120 SYMBOL_INIT_DEMANGLED_NAME.
10121 * objfiles.c: Include "hashtab.h".
10122 (allocate_objfile): Call htab_set_functions_ex for the
10123 demangled_names_hash.
10124 (free_objfile): Call htab_delete for the demangled_names_hash.
10125 * objfiles.h (struct htab): Add declaration.
10126 (struct objfile): Add demangled_names_hash.
10127 * symfile.c: Include "hashtab.h".
10128 (reread_symbols): Call htab_delete for the demangled_names_hash.
10129 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10130 SYMBOL_NAME in the bcache.
10131 * symtab.c: Include "hashtab.h". Update comments.
10132 (create_demangled_names_hash, symbol_set_names): New functions.
10133 (symbol_find_demangled_name): New function, broken out from
10134 symbol_init_demangled_names.
10135 (symbol_init_demangled_names): Use it.
10136 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10137 (SYMBOL_SET_NAMES): New macro.
10138 (symbol_set_names): Add prototype.
10139
15831452
JB
101402003-02-03 Jim Blandy <jimb@redhat.com>
10141
10142 Use a single, consistent representation for an empty minimal
10143 symbol table in an objfile.
10144 * objfiles.c (terminate_minimal_symbol_table): New function.
10145 (allocate_objfile): Call it.
10146 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10147 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10148 non-NULL.
15831452
JB
10149 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10150 objfile has minimal symbols, compare minimal_symbol_count to zero,
10151 instead of comparing msymbols with NULL.
10152 * objfiles.c (have_minimal_symbols): Same.
10153 * solib-sunos.c (solib_add_common_symbols): Call
10154 terminate_minimal_symbol_table.
10155 * symfile.c (reread_symbols): Same.
8ffd9b1b 10156
ffc65945
KB
101572003-02-03 Kevin Buettner <kevinb@redhat.com>
10158
10159 * s390-tdep.c (s390_address_class_type_flags)
10160 (s390_address_class_type_flags_to_name)
10161 (s390_address_class_name_to_type_flags): New functions.
10162 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10163 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10164
f211c6d4
MS
101652003-02-03 Michael Snyder <msnyder@redhat.com>
10166
10167 * arm-tdep.c: Fix spell-o in comment.
10168
659b0389
ML
101692003-02-03 Michal Ludvig <mludvig@suse.cz>
10170
10171 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10172 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10173 error messages to contain BFD filename.
659b0389 10174
3b31d625
EZ
101752003-02-02 Elena Zannoni <ezannoni@redhat.com>
10176
997b089a 10177 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10178 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10179 (do_mixed_source_and_assembly): Use
10180 make_cleanup_ui_out_tuple_begin_end and
10181 make_cleanup_ui_out_tuple_begin_end.
10182 (do_mixed_source_and_assembly): Ditto.
10183 * thread.c (do_captured_list_thread_ids): Ditto.
10184 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10185 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10186 ui_out_tuple_end): Delete prototypes.
10187 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10188 ui_out_list_end, ui_out_tuple_end): Delete.
10189
10190 From Kevin Buettner <kevinb@redhat.com>:
10191 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10192 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10193 (do_cleanup_table_end): New functions.
10194 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10195 Use cleanups to invoke_ui_out_tuple_end().
10196 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10197 * cli/cli-setshow.c (cmd_show_list): Use
10198 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10199
5b181d62
AC
102002003-02-02 Andrew Cagney <ac131313@redhat.com>
10201
10202 * frame.c (frame_unwind_register): New function.
10203 (frame_unwind_unsigned_register): Use.
10204 (frame_unwind_signed_register): Use.
10205 (frame_read_register): New function.
10206 * frame.h (frame_unwind_register): Declare.
10207 (frame_read_register): Declare.
10208
10209 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10210 and frame_unwind_register instead of read_memory, write_register
10211 and deprecated_write_register_bytes.
10212
5f601589
AC
102132003-02-02 Andrew Cagney <ac131313@redhat.com>
10214
10215 * frame.h: Note that namelen can be negative.
10216 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10217 NAME's length.
10218
10219 * NEWS: Mention that the d10v's `regs' command is deprecated.
10220 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10221 (d10v_print_registers_info): New function.
10222 (show_regs): Call d10v_print_registers_info.
10223 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10224
6a3fe0a4
MK
102252003-02-02 Mark Kettenis <kettenis@gnu.org>
10226
10227 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10228 lost in the previous patch.
10229
075559bc
AC
102302003-02-01 Andrew Cagney <ac131313@redhat.com>
10231
10232 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10233 * stack.c (print_frame_info_base): Output complete FRAME tuple
10234 for synthesized frames.
075559bc 10235
6789195b
AC
102362003-02-02 Andrew Cagney <ac131313@redhat.com>
10237
10238 * mips-nat.c (zerobuf): Delete.
10239 (fetch_inferior_registers): Alloc local zerobuf.
10240 (fetch_core_registers): Alloc local zerobuf.
10241 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10242 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10243 * thread-db.c (thread_db_store_registers): Ditto.
10244 * sh-tdep.c (sh_do_register): Ditto.
10245 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10246 * remote-sim.c (gdbsim_store_register): Ditto.
10247 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10248 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10249 * monitor.c (monitor_supply_register): Ditto.
10250 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10251 * mips-nat.c (fetch_inferior_registers): Ditto.
10252 * m68klinux-nat.c (fetch_register): Ditto.
10253 * lynx-nat.c (fetch_inferior_registers): Ditto.
10254 (fetch_inferior_registers): Ditto.
10255 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10256 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10257 (hpux_thread_store_registers): Ditto.
10258 * hppah-nat.c (fetch_register): Ditto.
10259 * hppab-nat.c (fetch_register): Ditto.
10260 * hppa-tdep.c (pa_register_look_aside): Ditto.
10261 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10262 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10263
e669114a
AC
102642003-02-01 Andrew Cagney <ac131313@redhat.com>
10265
10266 * gdbarch.sh: Explictly specify all method levels. When a
10267 variable with an empty level, provide a non-multi-arch default.
10268 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10269 * gdbarch.h: Re-generate.
10270 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10271 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10272
9a043c1d
AC
102732003-02-01 Andrew Cagney <ac131313@redhat.com>
10274
10275 * defs.h (host_pointer_to_address): Delete declaration.
10276 (address_to_host_pointer): Delete declaration.
10277 * utils.c (host_pointer_to_address): Delete function.
10278 (address_to_host_pointer): Delete function.
10279 * procfs.c (procfs_address_to_host_pointer): New function.
10280 * procfs.c (proc_set_watchpoint): Use.
10281 (procfs_can_use_hw_breakpoint): Update comments.
10282 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10283 (som_solib_add): Use.
10284 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10285 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10286
7ca9f392
AC
102872003-02-01 Andrew Cagney <ac131313@redhat.com>
10288
94bbfd30
AC
10289 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10290 strlen d_name.
10291
7ca9f392
AC
10292 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10293 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10294 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10295 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10296 (define_symbol): Update.
10297 * symfile.c (generic_load): Remove references to nindy.
10298 * symtab.c: Remove references to nindy.
10299
31a85ea2
AC
103002003-02-01 Andrew Cagney <ac131313@redhat.com>
10301
10302 * infcmd.c (print_float_info): Delete code conditional on
10303 FLOAT_INFO.
10304 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10305 * config/m68k/nm-apollo68b.h: Ditto.
10306 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10307 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10308 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10309
f6e85fc8
MK
103102003-02-01 Mark Kettenis <kettenis@gnu.org>
10311
6015b6a0
MK
10312 * config/i386/tm-i386os9k.h: Removed.
10313
f7a30bdf
MK
10314 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10315 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10316 they're identical to i[3456]86-*-sysv* now.
10317 * config/i386/i386v32.mh: Removed.
10318 * config/i386/xm-i386v32.h: Removed.
10319 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10320
28d52111
MK
10321 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10322
4d3f6bce
MK
10323 * config/i386/i386dgux.mh: Removed.
10324 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10325
f6e85fc8
MK
10326 * configure.in: Fix typo.
10327 * configure: Regenerated.
10328
53955967
DC
103292003-01-31 David Carlton <carlton@math.stanford.edu>
10330
10331 * dwarf2read.c (dwarf2_locate_sections): Set
10332 dwarf_ranges_section.
10333
b1364885
AC
103342003-01-31 Andrew Cagney <ac131313@redhat.com>
10335
8dbb1c65
AC
10336 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10337 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10338
8731e58e
AC
10339 * utils.c: Re-indent.
10340
b1364885
AC
10341 * config/djgpp/fnchange.lst: Delete nindy files.
10342 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10343 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10344 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10345 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10346 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10347 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10348 * Makefile.in (init.c): Remove nindy references.
10349 (saber_gdb): Delete rule.
10350 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10351 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10352 and a68v-nat.c.
10353 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10354 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10355 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10356 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10357 nindy-share/stop.h.
10358 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10359 * saber.suppress: Delete file.
10360
086df311
DJ
103612003-01-31 Daniel Jacobowitz <drow@mvista.com>
10362
10363 * dbxread.c (stabs_data): New static variable.
10364 (fill_symbuf): Support an in-memory buffer for stabs data.
10365 (stabs_seek): New function.
10366 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10367 (read_ofile_symtab): Use stabs_seek.
10368 (elfstab_build_psymtabs): Take an asection* instead of
10369 an offset and size. Relocate the stabs data if necessary.
10370 Save the section* for dbx_psymtab_to_symtab.
10371 * dwarf2read.c: Add section variables for each debug section.
10372 (dwarf2_locate_sections): Fill them in.
10373 (dwarf2_read_section): Take an asection* argument.
10374 Relocate the section contents if necessary.
10375 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10376 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10377 it to dwarf2_read_section.
10378 (dwarf2_build_frame_info): Update callers.
10379 * elfread.c (elf_symfile_read): Update call to
10380 elfstab_build_psymtabs.
10381 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10382 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10383 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10384 * symfile.c (symfile_dummy_outputs): New function.
10385 (symfile_relocate_debug_section): New function.
10386 * symfile.h (symfile_relocate_debug_section): Add prototype.
10387
87d1b352
RH
103882003-01-31 Richard Henderson <rth@redhat.com>
10389
10390 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10391 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10392 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10393 * alpha-tdep.c (alpha_register_name): Add "unique".
10394 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10395 (ALPHA_UNIQUE_REGNUM): New.
10396 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10397
c48861fb
AC
103982003-01-31 Andrew Cagney <ac131313@redhat.com>
10399
10400 * README: Remove reference to Ericsson 1800 monitor.
10401 * Makefile.in (remote-es.o): Delete rule.
10402 (ALLDEPFILES): Delete remote-es.c.
10403 * remote-es.c: Delete file.
10404 * config/m68k/es1800.mt: Delete file.
10405 * config/djgpp/fnchange.lst: Update.
10406 * configure.tgt: Delete m68*-ericsson-* target.
10407
d764a824
AF
104082003-01-31 Adam Fedor <fedor@gnu.org>
10409
10410 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10411 Remove duplicate/shadowing variable of same name.
10412
fe36c4f4
JB
104132003-01-30 Jim Blandy <jimb@redhat.com>
10414
10415 * symfile.c (find_separate_debug_file): Assert that the objfile's
10416 directory name we compute ends with a slash, and then assume that
10417 that's so everywhere we use it.
10418
cb741690
DJ
104192003-01-30 Daniel Jacobowitz <drow@mvista.com>
10420
10421 * valops.c (value_assign): Flush frame cache after stores to memory
10422 also.
10423
96ee5227
AC
104242003-01-30 Andrew Cagney <ac131313@redhat.com>
10425
10426 * Makefile.in (mon960-rom.o): Delete rule.
10427 * mon960-rom.c: Delete file.
10428
7f6104a9
AC
104292003-01-30 Andrew Cagney <ac131313@redhat.com>
10430
10431 * d10v-tdep.c: Include "frame-unwind.h".
10432 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10433 list.
10434 (next_addr, uses_frame): Delete.
10435 (struct d10v_unwind_cache): Define.
10436 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10437 Use info instead of next_addr and uses_frame globals.
10438 (d10v_frame_init_saved_regs): Delete function.
10439 (d10v_init_extra_frame_info): Delete function.
10440 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10441 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10442 init_frame_pc or frame_saved_pc.
10443 (d10v_pop_frame): Delete function.
10444 (do_d10v_pop_frame): Delete function.
10445 (d10v_frame_chain): Delete function.
10446 (d10v_frame_chain_valid): Delete function.
10447 (d10v_frame_pc_unwind): New function.
10448 (d10v_frame_id_unwind): New function.
10449 (saved_regs_unwinder): New function.
10450 (d10v_frame_register_unwind): New function.
10451 (d10v_frame_pop): New function.
10452 (d10v_frame_unwind): New variable.
10453 (d10v_frame_p): New function.
10454 (d10v_frame_saved_pc): Delete function.
10455 * Makefile.in (d10v-tdep.o): Update dependencies.
10456
cad2e848
JB
104572003-01-30 J. Brobecker <brobecker@gnat.com>
10458
10459 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10460 causing some regressions due to a change in the default value
10461 for this macro.
10462
af34e669
DJ
104632003-01-29 Richard Henderson <rth@redhat.com>
10464 Elena Zannoni <ezannoni@redhat.com>
10465 Daniel Jacobowitz <drow@mvista.com>
10466
10467 Fix PR gdb/961.
8ffd9b1b 10468 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10469 variables.
10470 (RANGES_SECTION): New.
10471 (dwarf_ranges_buffer): New variable.
10472 (struct comp_unit_head): Add member "die".
10473 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10474 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10475 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10476 (dwarf2_locate_sections): Likewise.
10477 (dwarf2_build_psymtabs): Read .debug_ranges.
10478 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10479 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10480 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10481 Look for DW_AT_ranges and return the bounding box.
10482
baa93fa6
CF
104832003-01-29 Brian Ford <ford@vss.fsi.com>
10484
10485 * win32-nat.c (cygwin_pid): Removed as unused.
10486 (child_attach): Try fall back to Cygwin pid.
10487
c63f977f
JB
104882003-01-29 Jim Blandy <jimb@redhat.com>
10489
10490 * objfiles.h (struct objfile): Doc fix.
10491
d62d1979
AC
104922003-01-29 Andrew Cagney <ac131313@redhat.com>
10493
10494 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10495 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10496 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10497 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10498 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10499 (FRAME_SAVED_PC): Change to a function with predicate.
10500 * gdbarch.h, gdbarch.c: Re-generate.
10501
1ae18a04
AC
105022003-01-28 Andrew Cagney <ac131313@redhat.com>
10503
52287340
AC
10504 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10505
1ae18a04
AC
10506 * complaints.c (complain): Delete function.
10507 * complaints.h (struct deprecated_complaint): Delete definition.
10508 (complain): Delete declaration.
10509
f2c16bd6
KB
105102003-01-28 Kevin Buettner <kevinb@redhat.com>
10511
10512 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10513 dummy frames.
10514
a94dd1fd
AC
105152003-01-27 Andrew Cagney <ac131313@redhat.com>
10516
10517 * sentinel-frame.h, sentinel-frame.c: New files.
10518 * Makefile.in (frame.o): Update dependencies.
10519 (SFILES): Add sentinel-frame.c.
10520 (sentinel_frame_h): Define.
10521 (COMMON_OBS): Add sentinel-frame.o.
10522 (sentinel-frame.o): Specify dependencies.
10523 * frame.c: Include "sentinel-frame.h".
10524 (frame_register_unwind): Rewrite assuming that there is always a a
10525 ->next frame.
10526 (frame_register, generic_unwind_get_saved_register): Ditto.
10527 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10528 (create_sentinel_frame, unwind_to_current_frame): New functions.
10529 (get_current_frame): Rewrite using create_sentinel_frame and
10530 unwind_to_current_frame. When possible, always create a frame.
10531 (create_new_frame): Set next to the sentinel frame.
10532 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10533 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10534 ID cache when necessary.
10535 (frame_saved_regs_id_unwind): Use frame_relative_level.
10536 (deprecated_generic_get_saved_register): Use frame_relative_level,
10537 get_frame_saved_regs, get_frame_pc, get_frame_base and
10538 get_next_frame.
10539 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10540 frame_register.
10541
5378adc4
DJ
105422003-01-27 Daniel Jacobowitz <drow@mvista.com>
10543
10544 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10545
51ee2ddc
DJ
105462003-01-27 Daniel Jacobowitz <drow@mvista.com>
10547
10548 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10549 (maintenance_set_profile_cmd): Use error () instead of warning ().
10550
d9feb4e7
DJ
105512003-01-27 Daniel Jacobowitz <drow@mvista.com>
10552
10553 * configure.in: Check that -pg works if using --enable-profiling.
10554 Check for monstartup and _mcleanup regardless of --enable-profiling.
10555 * maint.c: Check for monstartup and _mcleanup before using them.
10556 * config.in: Regenerated.
10557 * configure: Regenerated.
10558
2d188dd3
NC
105592003-01-24 Nick Clifton <nickc@redhat.com>
10560
10561 * Add sh2e support:
10562
10563 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10564
10565 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10566 (sh2e_show_regs): New.
10567 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10568 * config/sh/tm-sh.h: Added sh2e to comments.
10569
cb3c37b2
JB
105702003-01-23 Jim Blandy <jimb@redhat.com>
10571
10572 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10573 symbols found)" message here; we haven't checked for a separate
10574 debug info file yet, so we don't know yet.
10575 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10576 we've looked everywhere. Also, there's no need to print a special
10577 message when we're loading the separate debug info file: the one
10578 symbol_file_add prints is fine.
10579
5b5d99cf
JB
105802003-01-23 Alexander Larsson <alexl@redhat.com>
10581 Jim Blandy <jimb@redhat.com>
10582
10583 Add support for executables whose debug info has been separated
10584 out into a separate file, leaving only a link behind.
10585 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10586 and separate_debug_objfile_backlink.
10587 (put_objfile_before): New declaration.
10588 * symfile.c: #include "filenames.h".
10589 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10590 debug info in a separate file, read that, too. Save the addrs
10591 argument, so we can use it again to read the separated debug info;
10592 syms_from_objfile modifies the table we pass it.
10593 (reread_symbols): After re-reading an objfile, call
10594 reread_separate_symbols to refresh its separate debug info
10595 objfile, if it has one.
10596 (reread_separate_symbols, find_separate_debug_file,
10597 get_debug_link_info, separate_debug_file_exists): New functions.
10598 (debug_file_directory): New global var.
10599 (_initialize_symfile): Initialize debug_file_directory, and
10600 provide the new `set debug-file-directory' command to let the user
10601 change it.
10602 * objfiles.c (free_objfile): If this objfile has its debug info in
10603 a separate objfile, free that one too. If this is itself a
10604 separate debug info objfile, clear our parent's backlink.
10605 (put_objfile_before): New function.
10606 * utils.c (gnu_debuglink_crc32): New function.
10607 * defs.h (gnu_debuglink_crc32): New declaration.
10608 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10609 * configure.in: Handle --with-separate-debug-dir config option.
10610 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10611 * acconfig.h (DEBUGDIR): New macro.
10612 * configure, aclocal.m4, config.in: Regenerated.
10613
7e8580c1
JB
106142003-01-22 Jim Blandy <jimb@redhat.com>
10615
7904e09f
JB
10616 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10617 like the old symbol_file_add, but taking new arguments: you can
10618 now pass in either a `struct section_addr_info' list to say where
10619 each section is loaded, or a `struct section_offsets' table. Pass
10620 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10621 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10622 with the appropriate quiescent values for the new arguments.
10623
7e8580c1
JB
10624 * symfile.c: #include "gdb_assert.h".
10625 (syms_from_objfile): Add the ability to pass in a section offset
10626 table directly, as an alternative to the section_addr_info table.
10627 Document arguments better.
10628 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10629 * symfile.h (syms_from_objfile): Update declaration.
10630 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10631 syms_from_objfile.
10632 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10633
d28f9cdf
DJ
106342003-01-22 Daniel Jacobowitz <drow@mvista.com>
10635
10636 Original patch by Tom Tromey <tromey@cygnus.com> and
10637 Jason Molenda <jmolenda@apple.com>.
10638 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10639 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10640 * NEWS: Mention profiling.
10641 * configure.in (--enable-gdbtk): Fix typo.
10642 (--enable-profiling): New. Set PROFILE_CFLAGS.
10643 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10644 Fill in function.
10645 (profiling_state): New variable.
10646 (mcleanup_wrapper): New function.
10647 (_initialize_maint): Remove NOTYET, fix call to
10648 add_setshow_boolean_cmd for "maint set profile".
10649 * configure: Regenerated.
10650
df21e465
MH
106512003-01-21 Martin M. Hunt <hunt@redhat.com>
10652
10653 * Makefile.in (install-gdbtk): Install PNG images too.
10654
73c1f219
AC
106552003-01-21 Andrew Cagney <ac131313@redhat.com>
10656
10657 * exec.c (text_start): Delete global variable.
10658 (exec_file_attach): Make text_start local to the function.
10659 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10660 * valops.c (hand_function_call): Delete code that handles
10661 BEFORE_TEXT_END and AFTER_TEXT_END.
10662 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10663 of CALL_DUMMY_LOCATION.
10664 * gdbarch.c: Regenerate.
10665 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10666 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10667 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10668 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10669 (text_end): Delete extern declaration.
10670
eb4f72c5
AC
106712003-01-21 Andrew Cagney <ac131313@redhat.com>
10672
10673 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10674 * blockframe.c (backtrace_below_main): Move to "frame.c".
10675 (frame_chain_valid): Delete check for backtrace_below_main.
10676 (_initialize_blockframe): Delete initialization, move ``set
10677 backtrace-below-main'' command to "frame.c".
10678 (do_flush_frames_sfunc): Delete function.
10679 * frame.c: Include "command.h" and "gdbcmd.h".
10680 (frame_type_from_pc): New function.
10681 (create_new_frame): Use frame_type_from_pc.
10682 (legacy_get_prev_frame): New function.
10683 (get_prev_frame): Rewrite. When an old style frame, call
10684 legacy_get_prev_frame. Otherwize, unwind the PC first.
10685 (_initialize_frame): Add ``set backtrace-below-main'' command.
10686 * Makefile.in (frame.o): Update dependencies.
10687
778ce8cc
AC
106882003-01-19 Andrew Cagney <ac131313@redhat.com>
10689
10690 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10691 DEPRECATED_REGISTERS_INFO.
10692
01c193c8
AC
106932003-01-19 Andrew Cagney <ac131313@redhat.com>
10694
10695 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10696 Maintainers'. Update `Various Maintainers'.
10697
dedc2a2b
AC
106982003-01-19 Andrew Cagney <ac131313@redhat.com>
10699
10700 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10701 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10702 Suppress actual parameters when `-'.
10703 * gdbarch.h, gdbarch.c: Regenerate.
10704
b7261c70
AC
107052003-01-19 Andrew Cagney <ac131313@redhat.com>
10706
10707 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10708 code handling dummy frames.
10709
dbe9fe58
AC
107102003-01-19 Andrew Cagney <ac131313@redhat.com>
10711
10712 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10713 (struct frame_unwind): Add field pop.
10714 * frame.h (frame_pop): Declare.
10715 * frame.c (frame_saved_regs_pop): New function.
10716 (trad_frame_unwinder): Add frame_saved_regs_pop.
10717 (frame_pop): New function.
10718 * dummy-frame.c (dummy_frame_pop): New function.
10719 (discard_innermost_dummy): New function.
10720 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10721 (dummy_frame_unwind): Add dummy_frame_pop.
10722 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10723 * valops.c (hand_function_call): Ditto.
10724 * stack.c (return_command): Ditto.
10725
570b8f7c
AC
107262003-01-18 Andrew Cagney <ac131313@redhat.com>
10727
10728 * cris-tdep.c: Fix function declaration indentation.
10729 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10730 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10731 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10732 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10733 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10734 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10735
107362003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10737
10738 * README (Unpacking and Installation -- quick overview):
10739 Warn against ".../gdb-5.3/gdb/configure".
10740
494cca16
AC
107412003-01-18 Andrew Cagney <ac131313@redhat.com>
10742
10743 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10744 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10745 (struct frame_unwind): Declare opaque.
10746 (dummy_frame_p): Declare function.
10747 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10748 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10749 * dummy-frame.c: Include "frame-unwind.h".
10750 (dummy_frame_p): New function.
10751 (dummy_frame_unwind): New variable.
10752 * frame.c: Include "frame-unwind.h".
10753 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10754 to use the new unwind field.
10755 (set_unwind_by_pc): Delete function.
10756 (create_new_frame, get_prev_frame): Set unwind field using
10757 frame_unwind_find_by_pc.
10758 (trad_frame_unwind, trad_frame_unwinder): New variables.
10759 * frame.h (trad_frame_unwind): Declare variable.
10760 (frame_id_unwind_ftype): Delete declaration.
10761 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10762 (struct frame_unwind): Declare opaque.
10763 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10764 register_unwind with a single unwind pointer.
10765 * frame-unwind.h, frame-unwind.c: New files.
10766 * Makefile.in (SFILES): Add frame-unwind.c.
10767 (frame_unwind_h): Define.
10768 (COMMON_OBS): Add frame-unwind.o.
10769 (frame-unwind.o): Specify dependencies.
10770 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10771
4efb68b1
AC
107722003-01-18 Andrew Cagney <ac131313@redhat.com>
10773
10774 * ada-valprint.c: Eliminate PTR.
10775 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10776 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10777 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10778 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10779 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10780 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10781 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10782
a84d24ee
AC
107832003-01-17 Andrew Cagney <ac131313@redhat.com>
10784
762f08a3
AC
10785 * main.c (captured_main): Don't use PTR.
10786 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10787 * gdbtypes.c (lookup_primitive_typename): Ditto.
10788 (lookup_struct_elt_type): Ditto.
10789 * f-valprint.c (info_common_command): Ditto.
10790 (list_all_visible_commons): Ditto.
10791 * jv-typeprint.c (java_type_print_base): Ditto.
10792
a84d24ee
AC
10793 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10794 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10795 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10796 i386-interix-nat.c and i386-interix-tdep.c. Rename
10797 m68klinux-nat.c and m68klinux-tdep.c. Rename
10798 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10799 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10800 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10801 * main.c (captured_main): Use xfree, not free.
10802
c170fb60
AC
108032003-01-16 Andrew Cagney <ac131313@redhat.com>
10804
10805 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10806 ID back using a parameter.
10807 * frame.c (frame_id_unwind): Update call.
10808 (frame_saved_regs_id_unwind): Update.
10809 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10810 * dummy-frame.h (struct frame_id): Add opaque declaration.
10811 (dummy_frame_id_unwind): Update declaration.
10812
867f3898
AC
108132003-01-15 Andrew Cagney <ac131313@redhat.com>
10814
10815 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10816
40622be8 108172003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10818
40622be8 10819 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10820
ae66c1fc
EZ
108212003-01-14 Elena Zannoni <ezannoni@redhat.com>
10822
997b089a 10823 Fix PR gdb/898
ae66c1fc
EZ
10824 * breakpoint.c (until_break_command): Add new argument. Use it to
10825 decide whether to stop only at the current frame or not.
10826 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10827 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10828 call.
10829 (advance_command): New function.
10830 (_initialize_infcmd): Update help string for 'until' command.
10831 Add new 'advance' command.
10832
a04257e6
DC
108332003-01-14 David Carlton <carlton@math.stanford.edu>
10834
10835 * linespec.c (decode_line_1): Normalize comments.
10836 (set_flags): Ditto.
10837 (locate_first_half): Ditto.
10838 (decode_compound): Ditto.
10839 (symtab_from_filename): Ditto.
10840 (decode_all_digits): Ditto.
10841 (decode_dollar): Ditto.
10842 (find_methods): Ditto.
10843 (find_toplevel_char): Ditto.
10844
1bac305b
AC
108452003-01-13 Andrew Cagney <ac131313@redhat.com>
10846
10847 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10848 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10849 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10850 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10851 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10852 * language.c, language.h, m32r-tdep.c: Update copyright.
10853 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10854 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10855 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10856 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10857 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10858 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10859
25caa7a8
EZ
108602003-01-13 Elena Zannoni <ezannoni@redhat.com>
10861
10862 * stabsread.h (process_later, resolve_cfront_continuation):
10863 Obsolete.
10864 Update copyright years.
10865 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10866 Update copyright year.
10867 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10868 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10869 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10870 Update copyright year.
10871 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10872 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10873 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10874 (parse_partial_symbols): Obsolete cfront support.
10875 * stabsread.c
10876 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10877 macros.
10878 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10879 read_cfront_baseclasses, read_cfront_member_functions,
10880 resolve_cfront_continuation,read_cfront_static_fields,
10881 copy_cfront_struct_fields): Obsolete functions.
10882 (define_symbol, read_one_struct_field): Obsolete cfront support.
10883 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10884 Update Copyright year.
10885
7789c6f5
EZ
108862003-01-13 Elena Zannoni <ezannoni@redhat.com>
10887
10888 * stack.c (print_frame_info, print_stack_frame_base_stub,
10889 print_stack_frame_base, show_and_print_stack_frame_stub,
10890 show_and_print_stack_frame, print_only_stack_frame_stub,
10891 print_only_stack_frame): Delete functions.
10892 (print_stack_frame_stub): Call print_frame_info instead of
10893 print_frame_info_base.
10894 (print_frame_info_base): Rename to print_frame_info.
10895 (backtrace_command_1): Call print_frame_info, instead of
10896 print_frame_info_base.
10897 (current_frame_command): Call print_stack_frame, instead of
10898 print_only_stack_frame.
10899 (frame_command): Call print_stack_frame, instead of
10900 show_and_print_stack_frame.
10901 (up_command): Ditto.
10902 (down_command): Ditto.
10903 * frame.h (print_only_stack_frame): Delete prototype.
10904 * infrun.c (normal_stop): Call print_stack_frame, instead of
10905 show_and_print_stack_frame.
10906 * thread.c (info_threads_command): Call print_stack_frame, instead
10907 of print_only_stack_frame.
10908
3f5a3016
AC
109092003-01-13 Andrew Cagney <ac131313@redhat.com>
10910
d99ba314
AC
10911 * README (Graphical interface to GDB): Update URL. Point at
10912 gdb/links/.
10913
3f5a3016
AC
10914 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10915 version match.
10916
083ae935
DJ
109172003-01-13 Daniel Jacobowitz <drow@mvista.com>
10918
10919 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10920 lines.
10921
5365276c
DJ
109222003-01-13 Daniel Jacobowitz <drow@mvista.com>
10923
10924 * thread-db.c (attach_thread): Prototype.
10925 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10926 thread information (ti), and valid flags (th_valid, ti_valid).
10927 (attach_thread): Move target_pid_to_str call to after the thread
10928 is added to GDB's list. Initialize the cache.
10929 (thread_get_info_callback, thread_db_map_id2thr)
10930 (thread_db_get_info): New functions.
10931 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10932 (thread_db_store_registers, thread_db_thread_alive)
10933 (thread_db_get_thread_local_address): Use them.
10934 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10935 of calling error() for threads in unknown state.
10936
10937 (clear_lwpid_callback): New function.
10938 (thread_db_resume): Use it to clear the cache.
10939
9fc30b6b
DJ
109402003-01-13 Daniel Jacobowitz <drow@mvista.com>
10941
10942 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10943 (resume_callback): Remove dead code.
10944
8f871025
AC
109452003-01-13 Andrew Cagney <ac131313@redhat.com>
10946
10947 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10948 predicate.
10949 * gdbarch.h, gdbarch.c: Regenerate.
10950 * stack.c (frame_info): Only initialize the saved registers when
10951 FRAME_INIT_SAVED_REGS_P.
10952 * frame.c (frame_saved_regs_register_unwind): Assert
10953 FRAME_INIT_SAVED_REGS_P.
10954 (deprecated_generic_get_saved_register): Ditto.
10955
3f565f1e
DJ
109562003-01-13 Daniel Jacobowitz <drow@mvista.com>
10957
10958 * source.c (openp): Squelch warning about "filename".
10959
072b1022
DJ
109602003-01-13 Daniel Jacobowitz <drow@mvista.com>
10961
10962 * source.c (openp): If the file does not exist don't necessarily
10963 search the path.
10964
973ccf8b
DJ
109652003-01-13 Daniel Jacobowitz <drow@mvista.com>
10966
10967 Fix PR gdb/872.
10968 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10969 (integer_types_same_name_p): New function.
10970 (rank_one_type): Use it.
10971 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10972
030292b7
DJ
109732003-01-13 Daniel Jacobowitz <drow@mvista.com>
10974
10975 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10976 variables.
10977 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10978 * configure.in: Add --with-sysroot.
10979 * configure: Regenerated.
10980 * main.c (gdb_sysroot): New variable.
10981 (captured_main): Initialize gdb_sysroot.
10982 * defs.h (gdb_sysroot): New extern declaration.
10983 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10984
afb5d334
MC
109852003-01-12 Michael Chastain <mec@shout.net>
10986
10987 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10988
751ceeb4
MC
109892003-01-12 Michael Chastain <mec@shout.net>
10990
10991 * top.c (print_gdb_version): Bump copyright year to 2003.
10992
94cd26f8
DC
109932003-01-12 David Carlton <carlton@bactrian.org>
10994
10995 * linespec.c (symtab_from_filename): Rename variable 's' to
10996 'file_symtab'.
10997
1ce79225
AC
109982003-01-12 Andrew Cagney <ac131313@redhat.com>
10999
11000 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11001 dummy frame.
11002 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11003
fa1fd571
AC
110042003-01-12 Andrew Cagney <ac131313@redhat.com>
11005
11006 * d10v-tdep.c: Include "gdb_assert.h".
11007 (d10v_store_return_value): Rewrite to match current interface.
11008 (d10v_extract_struct_value_address): Ditto.
11009 (d10v_extract_return_value): Ditto.
11010 (d10v_gdbarch_init): Set store_restore_value,
11011 extract_struct_value_address and extract_return_value.
11012
68b8d23e
JB
110132003-01-12 J. Brobecker <brobecker@gnat.com>
11014
11015 * hpread.c (set_namestring): New procedure replacing the
11016 SET_NAMESTRING macro.
11017 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11018 by calls to set_namestring.
11019
110202003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
11021
11022 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11023 a compilation warning.
11024 (hpread_process_one_debug_symbol): Likewise.
11025
88d262ca
DC
110262003-01-10 David Carlton <carlton@math.stanford.edu>
11027
11028 * linespec.c (decode_line_1): Rename variable 's' to
11029 'file_symtab'.
11030 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11031 (decode_dollar): Ditto.
11032 (decode_variable): Ditto.
11033 (symbol_found): Ditto.
11034
86669319
MC
110352003-01-09 Michael Chastain <mec@shout.net>
11036
11037 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11038
616a9dc4
CV
110392003-01-07 Corinna Vinschen <vinschen@redhat.com>
11040
11041 * win32-nat.c (set_process_privilege): New function.
11042 (child_attach): Call set_process_privilege() to enable the
11043 SE_DEBUG_NAME user privilege if available in process token.
11044
3269bcfa
JB
110452003-01-10 J. Brobecker <brobecker@gnat.com>
11046
11047 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11048 compilation error in the previous revision.
11049
2b0ee454
DC
110502003-01-09 David Carlton <carlton@math.stanford.edu>
11051
11052 * linespec.c: Update copyright.
11053
b3ba1b44
DJ
110542003-01-09 Daniel Jacobowitz <drow@mvista.com>
11055
11056 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11057 than inferior_ptid.
11058 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11059
4ef3f3be
AC
110602003-01-09 Andrew Cagney <ac131313@redhat.com>
11061
479ab5a0
AC
11062 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11063 Update comments.
11064 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11065 (frame_saved_regs_zalloc): Update.
11066 (frame_saved_regs_register_unwind): Update.
11067 (create_new_frame): Update.
11068 (get_prev_frame): Update.
11069 (frame_extra_info_zalloc): Update.
11070 (deprecated_get_frame_saved_regs): Update.
11071 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11072 * cris-tdep.c: Update comment.
11073
bde58177
AC
11074 * somsolib.h: Fix function indentation.
11075 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11076 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11077 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11078 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11079 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11080
4ef3f3be
AC
11081 * infrun.c (follow_fork): Use ISO C definition.
11082 * expprint.c (print_subexp): Use xfree instead of free.
11083 * charset.c: Include "gdb_string.h" instead of <string.h>.
11084 (register_iconv_charsets): Use ISO C definition.
11085 (host_charset, target_charset): Ditto.
11086 * Makefile.in (charset.o): Update dependencies.
11087 (mi-cmd-env.o): Update dependencies.
11088
1c615f7a
AC
110892003-01-08 Andrew Cagney <cagney@redhat.com>
11090
11091 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11092 get_frame_base.
11093
c9a1dc08
AC
110942003-01-08 Andrew Cagney <ac131313@redhat.com>
11095
11096 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11097 build directories. Save edited gdb output in Mbuild.log. If a
11098 build fails, remove any final GDB executable.
11099
dbad9d94
AC
111002003-01-08 Andrew Cagney <ac131313@redhat.com>
11101
11102 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11103 replacing hex constants with function names and stripping leading
11104 file name directory prefixes.
11105
8d357cca
AC
111062003-01-08 Andrew Cagney <cagney@redhat.com>
11107
11108 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11109 get_frame_base.
11110
bca02a8a
DC
111112003-01-08 David Carlton <carlton@math.stanford.edu>
11112
11113 * linespec.c (decode_line_1): Move code into decode_variable.
11114 (decode_variable): New function.
11115
7f8ab3a0
AC
111162003-01-08 Andrew Cagney <ac131313@redhat.com>
11117
11118 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11119
7b5849cc
AC
111202003-01-08 Andrew Cagney <cagney@redhat.com>
11121
11122 * cris-tdep.c (cris_frame_init_saved_regs): Use
11123 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11124 saved_regs buffer.
11125 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11126 (sh64_nofp_frame_init_saved_regs): Ditto.
11127 (sh_fp_frame_init_saved_regs): Ditto.
11128 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11129 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11130 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11131 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11132
72a5efb3
DJ
111332003-01-08 Daniel Jacobowitz <drow@mvista.com>
11134
11135 * minsyms.c (lookup_minimal_symbol): Update comment.
11136 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11137 (lookup_minimal_symbol_solib_trampoline): Likewise.
11138
11c02a10
AC
111392003-01-08 Andrew Cagney <cagney@redhat.com>
11140
aab3ea25
AC
11141 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11142 frame_relative_level.
11143
da50a4b7
AC
11144 * alpha-tdep.c: Use get_frame_extra_info.
11145 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11146 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11147 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11148 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11149
11c02a10
AC
11150 * alpha-tdep.c: Use get_next_frame.
11151 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11152 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11153 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11154 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11155 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11156 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11157 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11158
1e2330ba
AC
111592003-01-07 Andrew Cagney <cagney@redhat.com>
11160
11161 * alpha-tdep.c: Use get_frame_base.
11162 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11163 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11164 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11165 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11166 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11167 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11168 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11169 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11170
2d75187b
AC
111712003-01-07 Andrew Cagney <cagney@redhat.com>
11172
11173 * frame.c (deprecated_get_frame_context): New function.
11174 (deprecated_set_frame_context): New function.
11175 * frame.h (deprecated_get_frame_context): Declare.
11176 (deprecated_set_frame_context): Declare.
11177 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11178 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11179
483d36b2
AC
111802003-01-07 Andrew Cagney <cagney@redhat.com>
11181
11182 * frame.c (deprecated_set_frame_next_hack): New function.
11183 (deprecated_set_frame_prev_hack): New function.
11184 * frame.h (deprecated_set_frame_next_hack): Declare.
11185 (deprecated_set_frame_prev_hack): Declare.
11186 * mcore-tdep.c (analyze_dummy_frame): Use
11187 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11188 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11189
14e91ac5
DC
111902003-01-07 David Carlton <carlton@math.stanford.edu>
11191
11192 * linespec.c (decode_line_1): Move code into decode_dollar.
11193 (decode_dollar): New function.
11194
b0c6b05c
AC
111952003-01-07 Andrew Cagney <cagney@redhat.com>
11196
11197 * arm-tdep.c (arm_init_extra_frame_info): Use
11198 deprecated_update_frame_base_hack.
11199 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11200 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11201 (fix_frame_pointer): Ditto.
11202 (mn10300_analyze_prologue): Ditto.
11203
a00a19e9
AC
112042003-01-07 Andrew Cagney <cagney@redhat.com>
11205
11206 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11207 extra_info using frame_extra_info_zalloc.
11208 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11209 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11210 (sh64_init_extra_frame_info): Ditto.
11211 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11212 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11213 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11214 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11215 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11216 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11217 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11218 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11219 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11220 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11221 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11222 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11223
11224 * mn10300-tdep.c (analyze_dummy_frame): Use
11225 deprecated_set_frame_extra_info_hack.
11226 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11227
1fb4c65b
JB
112282003-01-07 J. Brobecker <brobecker@gnat.com>
11229
11230 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11231 class is not scText. These do not define "real" procedures.
11232 (parse_partial_symbols): Likewise.
11233
9fe7d6bf
MS
112342003-01-06 Michael Snyder <msnyder@redhat.com>
11235
11236 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11237
f6c609c4
AC
112382003-01-06 Andrew Cagney <ac131313@redhat.com>
11239
11240 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11241 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11242 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11243 deprecated_frame_xmalloc_with_cleanup.
11244 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11245 deprecated_frame_xmalloc.
11246 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11247 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11248
d995ff4b
AC
112492003-01-06 Andrew Cagney <cagney@redhat.com>
11250
84dc46cb
AC
11251 * x86-64-linux-tdep.c: Include "osabi.h".
11252 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11253
d995ff4b
AC
11254 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11255
66140c26
AC
112562003-01-06 Andrew Cagney <cagney@redhat.com>
11257
11258 * MAINTAINERS (Target Instruction Set Architectures): Update
11259 arm-elf. Can be built with -Werror, has been multiarched.
11260
11261 * value.h (unpack_long): Make buffer parameter constant.
11262 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11263 * scm-lang.h (scm_parse): Ditto.
11264 * defs.h (extract_typed_address, extract_address): Ditto.
11265 (extract_long_unsigned_integer): Ditto.
11266 * inferior.h (unsigned_pointer_to_address): Ditto.
11267 (signed_pointer_to_address): Ditto.
11268 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11269 * gdbarch.h, gdbarch.c: Regenerate.
11270 * findvar.c (extract_long_unsigned_integer): Update.
11271 (extract_address): Update.
11272 (extract_typed_address): Update.
11273 (unsigned_pointer_to_address): Update.
11274 * values.c (unpack_long): Update.
11275 (unpack_double): Update.
11276 (unpack_pointer): Update.
11277 (unpack_field_as_long): Update.
11278 * d10v-tdep.c (d10v_pointer_to_address): Update.
11279 * avr-tdep.c (avr_pointer_to_address): Update.
11280 * scm-lang.c (scm_unpack): Update.
11281 * findvar.c (signed_pointer_to_address): Update.
11282
b089b3da
ML
112832003-01-06 Michal Ludvig <mludvig@suse.cz>
11284
8ffd9b1b 11285 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11286 since it is in i386-tdep.c.
11287
aff87235
JB
112882003-01-06 J. Brobecker <brobecker@gnat.com>
11289
11290 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11291 failure introduced in the previous change.
11292
34f5e845
MC
112932003-01-05 Michael Chastain <mec@shout.net>
11294
11295 * README: Remove references to deleted remote-*.c files:
11296 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11297 remote-nrom.c, remote-os9k.c, remote-udi.c.
11298
28bcfd30
MK
112992003-01-05 Mark Kettenis <kettenis@gnu.org>
11300
11301 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11302 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11303 i386_get_longjmp_target.
11304
15a5b3ee
AC
113052003-01-05 Andrew Cagney <ac131313@redhat.com>
11306
11307 * arm-tdep.c (prologue_cache): Change to a pointer.
11308 (_initialize_arm_tdep): Allocate prologue_cache.
11309 (check_prologue_cache): Update.
11310 (save_prologue_cache): Update.
11311 (arm_gdbarch_init): Update.
11312
c263362b
DJ
113132003-01-04 Daniel Jacobowitz <drow@mvista.com>
11314
11315 * stabsread.c (update_method_name_from_physname): Call complaint()
11316 instead of error.
11317
51603483
DJ
113182003-01-04 Daniel Jacobowitz <drow@mvista.com>
11319
11320 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11321 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11322 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11323
11324 * blockframe.c: Include "gdbcmd.h" and "command.h".
11325 (backtrace_below_main): New variable.
11326 (file_frame_chain_valid, func_frame_chain_valid)
11327 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11328 (generic_func_frame_chain_valid): Remove functions.
11329 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11330 (_initialize_blockframe): New function.
11331 * Makefile.in (blockframe.o): Update dependencies.
11332 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11333 comment. Call frame_chain_valid ().
11334 * frame.h: Remove old prototypes. Add prototype for
11335 frame_chain_valid and update comments to match.
11336 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11337 Remove old comment.
11338 * gdbarch.h: Regenerated.
11339 * gdbarch.c: Regenerated.
11340
11341 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11342 set_gdbarch_frame_chain_valid.
11343 * avr-tdep.c (avr_gdbarch_init): Likewise.
11344 * cris-tdep.c (cris_gdbarch_init): Likewise.
11345 * frv-tdep.c (frv_gdbarch_init): Likewise.
11346 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11347 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11348 (i386_nw_init_abi): Likewise.
11349 (i386_gdbarch_init): Likewise.
11350 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11351 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11352 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11353 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11354 * mips-tdep.c (mips_gdbarch_init): Likewise.
11355 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11356 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11357 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11358 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11359 * s390-tdep.c (s390_gdbarch_init): Likewise.
11360 * sh-tdep.c (sh_gdbarch_init): Likewise.
11361 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11362 * v850-tdep.c (v850_gdbarch_init): Likewise.
11363 * vax-tdep.c (vax_gdbarch_init): Likewise.
11364 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11365
11366 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11367 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11368 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11369 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11370 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11371 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11372 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11373 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11374
b00a8037
DJ
113752002-01-04 Daniel Jacobowitz <drow@mvista.com>
11376
11377 * Makefile.in (acconfig_h): Remove incorrect macro.
11378 (config_h): Define.
11379 (osabi.o): Update dependencies.
11380 * configure.tgt: Set gdb_osabi based on target triplet.
11381 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11382 * configure: Regenerated.
11383 * config.in: Regenerated.
11384 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11385 (GDB_OSABI_DEFAULT): Define if not already defined.
11386 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11387 (set_osabi_string): New variables.
11388 (gdbarch_register_osabi): Add new OS ABI to
11389 gdb_osabi_available_names.
11390 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11391 (set_osabi, show_osabi): New functions.
11392 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11393
4be87837
DJ
113942003-01-04 Daniel Jacobowitz <drow@mvista.com>
11395
11396 * arch-utils.c (gdbarch_info_init): Set osabi to
11397 GDB_OSABI_UNINITIALIZED.
11398 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11399 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11400 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11401 * gdbarch.c: Regenerated.
11402 * gdbarch.h: Regenerated.
11403 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11404 there's no BFD.
11405 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11406 * osabi.h (enum gdb_osabi): Move to defs.h.
11407 (gdbarch_init_osabi): Update prototype.
11408 * defs.h (enum gdb_osabi): Moved here.
11409 * Makefile.in: Update dependencies.
11410
11411 * alpha-tdep.h: Don't include "osabi.h".
11412 (struct gdbarch_tdep): Remove osabi member.
11413 * alpha-tdep.c: Include "osabi.h".
11414 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11415 iterate over arches. Update call to gdbarch_init_osabi.
11416 (alpha_dump_tdep): Don't dump osabi.
11417 * alpha-linux-tdep.c: Include "osabi.h".
11418 * alpha-osf1-tdep.c: Include "osabi.h".
11419 * alphafbsd-tdep.c: Include "osabi.h".
11420 * alphanbsd-tdep.c: Include "osabi.h".
11421
11422 * arm-tdep.h: Don't include "osabi.h".
11423 (struct gdbarch_tdep): Remove osabi member.
11424 * arm-tdep.c: Include "osabi.h".
11425 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11426 iterate over arches. Update call to gdbarch_init_osabi.
11427 (arm_dump_tdep): Don't dump osabi.
11428 * arm-linux-tdep.c: Include "osabi.h".
11429 * armnbsd-tdep.c: Include "osabi.h".
11430
11431 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11432 Update call to gdbarch_init_osabi.
11433
11434 * i386-tdep.h: Don't include "osabi.h".
11435 (struct gdbarch_tdep): Remove osabi member.
11436 * i386-tdep.c: Include "osabi.h".
11437 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11438 iterate over arches. Update call to gdbarch_init_osabi.
11439 (i386_dump_tdep): Don't dump osabi.
11440 * i386-linux-tdep.c: Include "osabi.h".
11441 * i386-sol2-tdep.c: Include "osabi.h".
11442 * i386bsd-tdep.c: Include "osabi.h".
11443 * i386gnu-tdep.c: Include "osabi.h".
11444 * i386ly-tdep.c: Include "osabi.h".
11445 * i386nbsd-tdep.c: Include "osabi.h".
11446 * i386obsd-tdep.c: Include "osabi.h".
11447
11448 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11449 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11450 check osabi when iterating over arches. Update call to
11451 gdbarch_init_osabi.
11452 (mips_dump_tdep): Don't dump osabi.
11453
11454 * ns32k-tdep.h: Don't include "osabi.h".
11455 (struct gdbarch_tdep): Remove.
11456 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11457 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11458 allocate tdep. Update call to gdbarch_init_osabi.
11459 (ns32k_dump_tdep): Remove.
11460 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11461 * ns32knbsd-tdep.c: Include "osabi.h".
11462
11463 * ppc-tdep.h: Don't include "osabi.h".
11464 (struct gdbarch_tdep): Remove osabi member.
11465 * rs6000-tdep.c: Include "osabi.h".
11466 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11467 osabi when iterating over arches. Update call to
11468 gdbarch_init_osabi.
11469 (rs6000_dump_tdep): Don't dump osabi.
11470 * ppc-linux-tdep.c: Include "osabi.h".
11471 * ppcnbsd-tdep.c: Include "osabi.h".
11472
11473 * sh-tdep.h: Don't include "osabi.h".
11474 (struct gdbarch_tdep): Remove osabi member.
11475 * sh-tdep.c: Include "osabi.h".
11476 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11477 iterate over arches. Update call to gdbarch_init_osabi.
11478 (sh_dump_tdep): Don't dump osabi.
11479 * shnbsd-tdep.c: Include "osabi.h".
11480
11481 * sparc-tdep.c: Include "osabi.h".
11482 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11483 iterate over arches. Update call to gdbarch_init_osabi.
11484 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11485 tdep structure.
11486
11487 * vax-tdep.h: Don't include "osabi.h".
11488 (struct gdbarch_tdep): Remove.
11489 * vax-tdep.c: Include "osabi.h".
11490 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11491 iterate over arches. Don't allocate tdep. Update call
11492 to gdbarch_init_osabi.
11493 (vax_dump_tdep): Remove.
11494 (_initialize_vax_tdep): Update call to gdbarch_register.
11495
a881cf8e
DJ
114962003-01-04 Daniel Jacobowitz <drow@mvista.com>
11497
11498 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11499 entirely.
11500 (breakpoint_re_set_one): Don't fetch the value for a disabled
11501 watchpoint.
11502
1e698235
DJ
115032003-01-04 Daniel Jacobowitz <drow@mvista.com>
11504
11505 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11506 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11507 (COERCE_FLOAT_TO_DOUBLE): Remove.
11508 * gdbarch.c: Regenerate.
11509 * gdbarch.h: Regenerate.
11510 * Makefile.in: Remove value_h from gdbarch_h.
11511 * valops.c (coerce_float_to_double): New variable.
11512 (default_coerce_float_to_double): Remove.
11513 (standard_coerce_float_to_double): Remove.
11514 (value_arg_coerce): Use coerce_float_to_double.
11515 (_initialize_valops): Add "set coerce-float-to-double".
11516 * value.h (default_coerce_float_to_double): Remove prototype.
11517 (standard_coerce_float_to_double): Remove prototype.
11518
11519 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11520 prototyped.
11521 * mdebugread.c (parse_symbol): Likewise.
11522 * stabsread.c (define_symbol): Mark all functions as prototyped.
11523
11524 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11525 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11526 set_gdbarch_coerce_float_to_double.
11527 * arm-tdep.c (arm_gdbarch_init): Likewise.
11528 * frv-tdep.c (frv_gdbarch_init): Likewise.
11529 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11530 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11531 * mips-tdep.c (mips_gdbarch_init): Likewise.
11532 (mips_coerce_float_to_double): Remove.
11533 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11534 (rs6000_coerce_float_to_double): Remove.
11535 * s390-tdep.c (s390_gdbarch_init): Likewise.
11536 * sh-tdep.c (sh_gdbarch_init): Likewise.
11537 (sh_coerce_float_to_double): Remove.
11538 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11539 (sparc_coerce_float_to_double): Remove.
11540 * v850-tdep.c (v850_gdbarch_init): Likewise.
11541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11542 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11543 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11544 (hppa_coerce_float_to_double): Remove prototype.
11545 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11546
f436a26a
DJ
115472003-01-04 Daniel Jacobowitz <drow@mvista.com>
11548
11549 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11550
248f8055
DJ
115512003-01-04 Daniel Jacobowitz <drow@mvista.com>
11552
11553 Suggested by Stewart Brown <sb24@avaya.com>:
11554 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11555 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11556 (c_type_print_varspec_suffix): Likewise.
11557
72cfdc76
MK
115582003-01-04 Mark Kettenis <kettenis@gnu.org>
11559
bfd260bb
MK
11560 * configure.in: Don't set and AC_SUBST SUBDIRS.
11561 * configure: Regenerated.
11562
72cfdc76
MK
11563 * configure.in: Remove code dealing with shared libraries.
11564 * Makefile.in: Remove HLDFLAGS and HLDENV.
11565 * configure: Regenerated.
11566
c8b8a898
AC
115672003-01-04 Andrew Cagney <ac131313@redhat.com>
11568
11569 * frame.c (deprecated_frame_xmalloc): New function.
11570 (deprecated_set_frame_saved_regs_hack): New function.
11571 (deprecated_set_frame_extra_info_hack): New function.
11572 * frame.h (deprecated_frame_xmalloc): Declare.
11573 (deprecated_set_frame_saved_regs_hack): Declare.
11574 (deprecated_set_frame_extra_info_hack): Declare.
11575
14abd0fb
MK
115762003-01-04 Mark Kettenis <kettenis@gnu.org>
11577
8ee53726
MK
11578 * configure.in: Move code that provides the --enable-gdbtk option
11579 right after the code that handles the --enable-tui option, and
11580 polish it somewhat.
11581 * configure: Regenerated.
11582
14abd0fb
MK
11583 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11584 AC_CHECK_FUNCS and remove the old check for pread64.
11585 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11586 * acconfig.h (_GNU_SOURCE): Add.
11587 (HAVE_PREAD64): Remove.
11588 * configure, aclocal.m4, config.in: Regenerated.
11589
b2fb4676
AC
115902003-01-03 Andrew Cagney <ac131313@redhat.com>
11591
11592 * alpha-tdep.c: Use get_frame_saved_regs.
11593 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11594 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11595 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11596 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11597 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11598
8dcde887
MK
115992003-01-03 Mark Kettenis <kettenis@gnu.org>
11600
11601 * configure.in: Remove all use of the SUBDIRS variable; add
11602 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11603 code providing the --enable-multi-ice option, and move it right in
11604 front of the code that checks whether gdbserver is supported.
11605 Polish that too.
11606 * configure: Regenerated.
11607 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11608 @SUBDIRS@.
11609
8ccd593b
AC
116102003-01-03 Andrew Cagney <cagney@redhat.com>
11611
11612 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11613 * avr-tdep.c, cris-tdep.c: Ditto.
11614 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11615 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11616
91151a06
MK
116172003-01-03 Mark Kettenis <kettenis@gnu.org>
11618
11619 * configure.in: Remove --enable-netrom option.
11620 * configure: Regenerated.
11621
8fe84d01
MK
116222003-01-03 Mark Kettenis <kettenis@gnu.org>
11623
11624 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11625 declaration for `struct re_pattern_buffer' instead.
11626 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11627
f0394be6
JB
116282003-01-03 J. Brobecker <brobecker@gnat.com>
11629
11630 * mdebugread.c (parse_symbol): Count until the stEnd matching
11631 the structure name.
11632
27e9bf90
MK
116332003-01-02 Mark Kettenis <kettenis@gnu.org>
11634
93d331ba
MK
11635 * configure.in: Remove --with-cpu option.
11636 subscripts. Remove evil changequotes here.
11637 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11638 * config.in, configure: Regenerated.
8ffd9b1b 11639
27e9bf90
MK
11640 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11641 * configure.in: Cleanup section that sources GDB and BFD configure
11642 subscripts. Remove evil changequotes here.
11643 * config.in, configure: Regenerated.
11644
50abf9e5
AC
116452003-01-02 Andrew Cagney <ac131313@redhat.com>
11646
11647 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11648 frame accessor methods.
11649 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11650 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11651 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11652 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11653 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11654 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11655 * z8k-tdep.c: Ditto.
8ffd9b1b 11656
287c1a40
MK
116572003-01-02 Mark Kettenis <kettenis@gnu.org>
11658
f5dbc56d
MK
11659 * configure.in: Remove UI_OUT configuration code.
11660 * ada-lang.c: Update assuming UI_OUT is always true.
11661 * Makefile.in (UIOUT_CFLAGS): Remove.
11662 * configure: Regenerated.
11663 * TODO: Remove blurb about elimination of -DUI_OUT.
11664
627af7ea
MK
11665 * configure.in: Move code that provides the --enable-gdbcli,
11666 --enable-gdbmi options right before the code that handles the
11667 --enable-tui option. Polish a bit.
11668 * configure: Regenerated.
11669
06825bd1
MK
11670 * configure.in: Rewrite check for GNU regex and the
11671 --without-included regex option, and move it into the "Checks for
11672 library functions" section. This makes us use the system regex
11673 again by default on systems with version 2 of the GNU C library.
11674 This was apparently broken.
11675 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11676 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11677 * config.in, configure: Regenerated.
11678
287c1a40
MK
11679 * configure.in: Move code that provides the --enable-tui option
11680 before the "Checks for libraries" section. Polish the code
11681 somewhat and set need_curses to yes if we build the TUI. Rewrite
11682 code that looks for a library providing termcap functionality to
11683 match more closely what's done in the Readline library, and move
11684 it into to the "Checks for libraries" section.
11685 * configure: Regenerated.
11686 * Makefile.in (TERMCAP): Remove variable.
11687 * config/i386/go32.mh (TERMCAP): Remove variable.
11688
684e56bf
AC
116892003-01-02 Andrew Cagney <ac131313@redhat.com>
11690
11691 * MAINTAINERS: Mention gdb_mbuild.sh.
11692 * gdb_mbuild.sh: Rewrite.
11693
e1ea1d75
MK
116942003-01-02 Mark Kettenis <kettenis@gnu.org>
11695
11696 * configure.in: Fix typo in last change.
11697 * config.in, configure: Regenerated.
11698
1b831c93
AC
116992003-01-02 Andrew Cagney <ac131313@redhat.com>
11700
11701 * valarith.c (value_binop): Delete obsolete code and comments.
11702 * configure.host: Ditto.
11703 * buildsym.h (make_blockvector): Ditto.
11704 * buildsym.c (make_blockvector): Ditto.
11705 * defs.h (enum language): Ditto.
11706 (chill_demangle): Ditto.
11707 * elfread.c (elf_symtab_read): Ditto.
11708 * dwarfread.c (CHILL_PRODUCER): Ditto.
11709 (set_cu_language): Ditto.
11710 (handle_producer): Ditto.
11711 * expprint.c (print_subexp): Ditto.
11712 * gdbtypes.c (chill_varying_type): Ditto.
11713 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11714 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11715 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11716 (chill_varying_type): Ditto.
11717 * language.h (_LANG_chill): Ditto.
11718 * language.c (binop_result_type, integral_type): Ditto.
11719 (character_type, string_type, structured_type): Ditto.
11720 (lang_bool_type, binop_type_check): Ditto.
11721 * stabsread.h (os9k_stabs): Ditto.
11722 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11723 (define_symbol, read_type, read_struct_fields): Ditto.
11724 (read_array_type, read_enum_type, read_huge_number): Ditto.
11725 (read_range_type, start_stabs): Ditto.
11726 * symfile.c (init_filename_language_table): Ditto.
11727 (add_psymbol_with_dem_name_to_list): Ditto.
11728 * symtab.c (symbol_init_language_specific): Ditto.
11729 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11730 * symtab.h (struct general_symbol_info): Ditto.
11731 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11732 * typeprint.c (typedef_print): Ditto.
11733 * utils.c (fprintf_symbol_filtered): Ditto.
11734 * valops.c (value_cast, search_struct_field, value_slice): Delete
11735 obsolete code.
11736 (varying_to_slice): Delete function.
11737 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11738 (varying_to_slice): Delete declaration.
11739 * MAINTAINERS: Update.
11740
8bb2c122
MK
117412003-01-02 Mark Kettenis <kettenis@gnu.org>
11742
97bf5e38
MK
11743 * configure.in: Reorganize "Checks for library functions section"
11744 a bit. Remove check for `btowc' and `isascii' functions.
11745 * configure: Regenerated.
11746
5ee754fc
MK
11747 * acconfig.h (_MSE_INT_H): Remove.
11748 * configure.in: Create "Checks for header files" section, and move
11749 appropriate tests there. Don't check for objlist.h, wchar.h,
11750 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11751 misdetection fix. Also add "Checks for types", "Checks for
11752 compiler characteristics" and "Checks for library functions"
11753 sections.
11754 * config.in, configure: Regenerated.
11755
8bb2c122
MK
11756 * configure.in: Create "Checks for programs" section, and move
11757 appropriate tests there.
11758
9a156167
MK
117592003-01-01 Mark Kettenis <kettenis@gnu.org>
11760
11761 * configure.in: Create "Checks for libraries" section, and move
11762 appropriate tests there. Cleanup check for wctype in libw. Use
11763 AC_SEARCH_LIBS to see whether we need libsocket.
11764 * configure: Regenerated.
11765
a80e2bcb 11766For older changes see ChangeLog-2002
c906108c
SS
11767\f
11768Local Variables:
11769mode: change-log
11770left-margin: 8
11771fill-column: 74
11772version-control: never
11773End:
This page took 1.011023 seconds and 4 git commands to generate.