2003-09-09 David Carlton <carlton@kealia.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
91c24f0a
DC
12003-09-09 David Carlton <carlton@kealia.com>
2
3 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
4 highpc initialization here out of scan_partial_symbols.
5 (scan_partial_symbols): Restructure into a recursive version,
6 calling add_partial_namespace and add_partial_enumeration when
7 appropriate.
8 (add_partial_namespace): New.
9 (add_partial_enumeration, locate_pdi_sibling): Ditto.
10
c9263853
AC
112003-09-09 Andrew Cagney <cagney@redhat.com>
12
e56a0ecc
AC
13 * rs6000-tdep.c (ppc_push_return_address): Delete function.
14 (rs6000_push_dummy_call): Set LR to BP_ADDR.
15 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
16 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
17
794a477a
AC
18 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
19 (rs6000_push_dummy_call): Set the "TOC" register.
20
c9263853
AC
21 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
22 methods "max_register_raw_size", "max_register_virtual_size" or
23 "register_virtual_size".
24
afa7d0b2
ILT
252003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
26
27 * MAINTAINERS: Update my e-mail address.
28
7a41266b
AC
292003-09-09 Andrew Cagney <cagney@redhat.com>
30
31 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
32 (rs6000_push_dummy_call): Store the struct return address.
33 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
34
77b2b6d4
AC
352003-09-09 Andrew Cagney <cagney@redhat.com>
36
37 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
38 "ppc_sysv_abi_push_arguments".
39 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
40 "ppc_sysv_abi_push_arguments".
41 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
42 instead of "push_arguments".
43 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
44
e8a7b686
AC
452003-09-09 Andrew Cagney <cagney@redhat.com>
46
47 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
48 instead of CALL_DUMMY_ADDRESS.
49
f86f5ca3
PH
502003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
51
52 * p-lang.c: Eliminate "register".
53 * c-lang.c: Ditto.
54 * expprint.c: Ditto.
55 * f-lang.c: Ditto.
56 * jv-lang.c: Ditto.
57 * language.c: Ditto.
58 * m2-lang.c: Ditto.
59 * parse.c: Ditto.
60 * scm-lang.c: Ditto.
61 * objc-lang.c: Ditto.
62
83ee270e
NC
632003-09-09 Nick Clifton <nickc@redhat.com>
64
65 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
66
a89aa300
AC
672003-09-04 Andrew Cagney <cagney@redhat.com>
68
69 * avr-tdep.c: Include "dis-asm.h".
70 * cris-tdep.c: Include "dis-asm.h".
71 (cris_delayed_get_disassembler): Use "struct disassemble_info"
72 instead of corresponding typedef.
73 * h8300-tdep.c: Include "dis-asm.h".
74 * ia64-tdep.c: Include "dis-asm.h".
75 * i386-tdep.c: Include "dis-asm.h".
76 (i386_print_insn): Use "struct disassemble_info" instead of
77 corresponding typedef.
78 * m68k-tdep.c: Include "dis-asm.h".
79 * mcore-tdep.c: Include "dis-asm.h".
80 * mips-tdep.c: Include "dis-asm.h".
81 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
82 instead of corresponding typedef.
83 * ns32k-tdep.c: Include "dis-asm.h".
84 * s390-tdep.c: Include "dis-asm.h".
85 * sparc-tdep.c: Include "dis-asm.h".
86 * vax-tdep.c: Include "dis-asm.h".
87 * v850-tdep.c: Include "dis-asm.h".
88 * mn10300-tdep.c: Include "dis-asm.h".
89 * rs6000-tdep.c: Include "dis-asm.h".
90 * xstormy16-tdep.c: Include "dis-asm.h".
91 (_initialize_xstormy16_tdep): Delete "extern" declaration of
92 print_insn_xstormy16.
93 * Makefile.in (v850-tdep.o): Update dependencies.
94 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
95 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
96 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
97 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
98 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
99 (gdbarch_h): Remove $(dis_asm_h).
100 * disasm.c: Include "dis-asm.h".
101 (dis_asm_read_memory): Use "struct disassemble_info" instead of
102 corresponding typedef.
103 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
104 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
105 * gdbarch.sh: Do not include "dis-asm.h".
106 (struct disassemble_info): Declare opaque.
107 (TARGET_PRINT_INSN): Update declaration.
108 * gdbarch.h, gdbarch.c: Re-generate.
109
88a82a65
AC
1102003-09-08 Andrew Cagney <cagney@redhat.com>
111
112 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
113 CALL_DUMMY_ADDRESS, change to a predicate.
114 * gdbarch.h, gdbarch.c: Re-generate.
115 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
116 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
117 * infcall.c (call_function_by_hand): Ditto.
118 * sparc-tdep.c (sparc_push_return_address): Ditto.
119 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
120 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
121 CALL_DUMMY_ADDRESS with entry_point_address.
122 * v850-tdep.c (v850_push_return_address): Ditto.
123 * s390-tdep.c (s390_push_return_address): Ditto.
124 * rs6000-tdep.c (ppc_push_return_address): Ditto.
125 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
126 * mcore-tdep.c (mcore_push_return_address): Ditto.
127 * cris-tdep.c (cris_push_return_address): Ditto.
128 * arm-tdep.c (arm_push_return_address): Ditto.
129
3e2c4033
AC
1302003-09-08 Andrew Cagney <cagney@redhat.com>
131
132 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
133 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
134 and REG_UNMODIFIED to REG_SAME_VALUE.
135 (execute_cfa_program): Update.
136 (dwarf2_frame_cache): Update. Initialize table to
137 REG_UNSPECIFIED, complain if CFI fails to specify a register's
138 location.
139 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
140
39efb398
AC
1412003-09-08 Andrew Cagney <cagney@redhat.com>
142
143 * gnu-nat.c: Remove "inline" function attribute.
144 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
145
f5cb5aca
KB
1462003-09-08 Kevin Buettner <kevinb@redhat.com>
147
148 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
149 target.
150
1cb761c7
KB
1512003-09-08 Kevin Buettner <kevinb@redhat.com>
152
153 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
154 (frame_extra_info): Rename this struct to frv_unwind_cache.
155 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
156 Add fields ``prev_sp'' and ``base''.
157 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
158 (frv_saved_pc_after_call, frv_init_extra_frame_info)
159 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
160 Delete.
161 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
162 Revise all callers. Fill in the unwind cache argument and make
163 other adjustments to account for new frame mechanisms.
164 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
165 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
166 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
167 (frv_frame_unwind, frv_frame_base): New structs.
168 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
169 additional arguments expected by this method and adjust function
170 body accordingly.
171 (frv_gdbarch_init): Remove calls to the following functions:
172 set_gdbarch_deprecated_init_frame_pc(),
173 set_gdbarch_deprecated_saved_pc_after_call(),
174 set_gdbarch_deprecated_frame_chain(),
175 set_gdbarch_deprecated_frame_saved_pc(),
176 set_gdbarch_deprecated_frame_init_saved_regs(),
177 set_gdbarch_deprecated_push_arguments(),
178 set_gdbarch_deprecated_push_return_address(),
179 set_gdbarch_deprecated_pop_frame(),
180 set_gdbarch_deprecated_call_dummy_words(),
181 set_gdbarch_deprecated_sizeof_call_dummy_words(),
182 set_gdbarch_deprecated_init_extra_frame_info(),
183 set_gdbarch_deprecated_dummy_write_sp(), and
184 set_gdbarch_deprecated_pc_in_call_dummy().
185 Add calls to the following functions:
186 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
187 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
188 frame_base_set_default().
189 * Makefile.in (frv-tdep.o): Update dependencies.
190
68f6cf99
MK
1912003-09-09 Mark Kettenis <kettenis@gnu.org>
192
193 * dwarf2-frame.c (read_encoded_value): Add support for
194 DW_EH_PE_aligned encoding.
195
73b65bb0
DJ
1962003-09-08 Daniel Jacobowitz <drow@mvista.com>
197
198 * infrun.c (normal_stop): Don't print a message if the inferior
199 has exited.
200
7c8a5605
JB
2012003-09-08 Jim Blandy <jimb@redhat.com>
202
203 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
204 * dbxread.c: #include "gdb_assert.h".
205 (read_dbx_symtab): If the objfile has no .data section, use the
206 section index for the .bss section instead.
207
7dd88986
DJ
2082003-09-08 Daniel Jacobowitz <drow@mvista.com>
209
210 * frame.c (deprecated_safe_get_selected_frame): New function.
211 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
212 * findvar.c (read_var_value): Call it.
213
55ff77ac
CV
2142003-09-08 Corinna Vinschen <vinschen@redhat.com>
215
216 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
217 (sh64-tdep.o): Add dependencies.
218 * configure.tgt: Add FIXME to sh-*-linux*.
219 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
220 (sh_gdbarch_init): Always set correct sh_show_regs function
221 pointer. Call sh64_gdbarch_init() if machine type is sh5.
222 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
223 * sh64-tdep.c: New file, containing all sh64 related code from
224 sh-tdep.c.
225 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
226 * config/sh/linux.mt (TDEPFILES): Ditto.
227 * config/sh/nbsd.mt (TDEPFILES): Ditto.
228 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
229 * config/sh/wince.mt (TDEPFILES): Ditto.
230
bfb39158
DJ
2312003-09-07 Daniel Jacobowitz <drow@mvista.com>
232
233 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
234 (stop_wait_callback): Handle !lp->signalled also.
235 (lin_lwp_has_pending, flush_callback): New functions.
236 (lin_lwp_wait): Call flush_callback.
237 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
238 (linux_proc_pending_signals): New function.
239 * linux-nat.h (linux_proc_pending_signals): Add prototype.
240
9407de8e
DJ
2412003-09-07 Daniel Jacobowitz <drow@mvista.com>
242
243 From Nick Kelsey <nickk@ubicom.com>:
244 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
245 when the stop PC is at the beginning of a function also.
246
2ef47cd0
DJ
2472003-09-06 Daniel Jacobowitz <drow@mvista.com>
248
249 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
250 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
251
6f4492c8
MK
2522003-09-06 Mark Kettenis <kettenis@gnu.org>
253
254 * sol-thread.c: Include "gdb_string.h".
255
d3420b2f
MK
2562003-09-03 Mark Kettenis <m.kettenis@osp.nl>
257
258 * gcore.c: Reorder include files in alphabetical order. Include
259 "gdb_assert.h". Various coding style fixes.
260 (derive_stack_segment, derive_heap_segment): Replace check for
261 non-null BOTTOM and TOP with gdb_assert.
262 (derive_heap_segment): Replace check for successful creation of
263 ZERO with gdb_assert.
264 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
265
5220ea4c
AC
2662003-09-04 Andrew Cagney <cagney@redhat.com>
267
268 * thread-db.c (verbose_dlsym): New function.
269 (thread_db_load): Use verbose_dlsym
270 (thread_db_new_objfile): Print that libthread_db was loaded, and
271 that thread debugging was enabled.
272
6e8c2c06
AC
2732003-09-04 Andrew Cagney <cagney@redhat.com>
274
275 * configure.tgt: Add "mips64*-*-*" target. Delete
276 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
277 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
278 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
279 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
280 mips*-sony-*, and mips64*-*-elf* targets.
281 * config/mips/embedl.mt: Delete file.
282 * config/mips/embedl64.mt: Delete file.
283 * config/mips/mips.mt: Delete file.
284 * config/mips/mips64.mt: Delete file.
285 * config/mips/tm-embed.h: Delete file.
286 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
287 * config/mips/embed64.mt: Delete out-of-date comment.
288
3a3bc038
AC
2892003-09-04 Andrew Cagney <cagney@redhat.com>
290
291 * hppa-tdep.c (hppa_gdbarch_init): Set
292 "have_nonsteppable_watchpoint".
293 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
294 * mips-tdep.c (mips_dump_tdep): Do not print
295 HAVE_NONSTEPPABLE_WATCHPOINT.
296 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
297 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
298 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
299 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
300
a957e642
CV
3012003-09-04 Corinna Vinschen <vinschen@redhat.com>
302
303 * breakpoint.c (watchpoint_check): Remove accidentally checked in
304 unused code. Add comment.
305
a6fbcf2f
CV
3062003-09-04 Corinna Vinschen <vinschen@redhat.com>
307
308 * breakpoint.c (watchpoint_check): Check for pc being in an
309 epilogue if watchpoint frame couldn't be found.
310
c14a44d5
AC
3112003-09-04 Andrew Cagney <cagney@redhat.com>
312
313 * Makefile.in: Re-generate all dependencies.
314
f6c40618
AC
3152003-09-03 Andrew Cagney <cagney@redhat.com>
316
317 * arch-utils.h (legacy_print_insn): Delete declaration.
318 * arch-utils.c (legacy_print_insn): Delete function.
319 * disasm.c (deprecated_tm_print_insn_info): Delete.
320 (_initialize_disasm): Delete function, contained code initializing
321 deprecated_tm_print_insn_info.
322 * gdbarch.sh (deprecated_tm_print_insn): Delete.
323 (deprecated_tm_print_insn_info): Delete.
324 (TARGET_PRINT_INSN): Do not provide a default.
325 * gdbarch.h, gdbarch.c: Re-generate.
326
242e8be5
AC
3272003-09-03 Andrew Cagney <cagney@redhat.com>
328
329 * disasm.c (fprintf_disasm): New function.
330 (gdb_disassemble_info): Call "init_disassemble_info", instead of
331 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
332 reverts 2003-08-14 change.
333 (_initialize_disasm): Call "init_disassemble_info", instead of
334 INIT_DISASSEMBLE_INFO_NO_ARCH.
335
3ffc3dda
MS
3362003-09-03 Michael Snyder <msnyder@redhat.com>
337
338 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
339
52d16ba8
AC
3402003-09-03 Andrew Cagney <cagney@redhat.com>
341
342 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
343 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
344 * symfile.c (syms_from_objfile): Update.
345 (reread_symbols): `Update
346 * exec.c (exec_file_attach): Update.
347 (exec_file_attach): Update.
348 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
349 2003-08-29 change.
350 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
351
eb5492fa
DJ
3522003-09-03 Daniel Jacobowitz <drow@mvista.com>
353
354 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
355 trad-frame.h.
356 (arm_get_cache): Delete macro.
357 (struct arm_prologue_cache): Update comments. Make saved_regs into
358 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
359 to prev_sp.
360 (thumb_scan_prologue): Update for cache changes. Don't call
361 DEPRECATED_PC_IN_CALL_DUMMY.
362 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
363 argument and use it in desperation search for our prologue. Do not
364 search past the specified PC.
365 (arm_make_prologue_cache): Simplify.
366
367 (arm_prologue_this_id, arm_prologue_prev_register)
368 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
369 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
370 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
371 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
372 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
373
374 (arm_frame_chain_valid, arm_find_callers_reg)
375 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
376 (arm_pop_frame): Delete obsolete methods.
377 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
378
379 (arm_gdbarch_init): Update for new frame methods. Register prologue
380 and sigtramp unwinders. Set the default frame base method.
381
382 * Makefile.in (arm-tdep.o): Update dependencies.
383 * varobj.c (find_frame_addr_in_frame_chain): Call
384 get_frame_base_address.
385 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
386
24de872b
DJ
3872003-09-03 Daniel Jacobowitz <drow@mvista.com>
388
389 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
390 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
391 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
392 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
393 Take NEXT_FRAME and CACHE arguments. Call
394 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
395 Set unwound_pc in CACHE instead of modifying the frame argument.
396 Don't bother checking the frame type when looking for sigtramp
397 frames.
398 (arm_make_prologue_cache, arm_frame_chain)
399 (arm_init_extra_frame_info): New functions.
400
9b8d791a
DJ
4012003-09-03 Daniel Jacobowitz <drow@mvista.com>
402
403 * arm-tdep.c (arm_get_cache): Define.
404 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
405 unwound_sp, unwound_pc, and saved_regs.
406 (thumb_scan_prologue): Take a cache instead of the frame.
407 (arm_scan_prologue): Likewise.
408 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
409 instead of a temporary frame.
410 (arm_init_extra_frame_info): Allocate and use a cache.
411 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
412
7ee3275f
AC
4132003-09-03 Andrew Cagney <cagney@redhat.com>
414
415 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
416 * config/mips/wince.mt (TM_CLIBS): Ditto.
417 * config/sh/wince.mt (TM_CLIBS): Ditto.
418 * config/pa/hppa64.mt (TM_CLIBS): Delete.
419 * config/sparc/sp64.mt (CC): Delete.
420
57b29be7
AC
4212003-09-03 Andrew Cagney <cagney@redhat.com>
422
423 * defs.h: Do not include "arch-utils.h".
424 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
425 GDB_MULTI_ARCH_PURE.
426 * configure.in (GDB_MULTI_ARCH): Do not define.
427 * configure, config.in: Regenerate.
428 * configure.tgt: Do not set variable "gdb_multi_arch".
429 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
430 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
431 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
432 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
433 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
434 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
435 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
436 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
437 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
438 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
439 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
440 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
441 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
442 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
443 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
444 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
445 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
446 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
447
12e035e2
MC
4482003-08-30 Michael Chastain <mec@shout.net>
449
450 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
451 * config/m68k/nm-hp300hpux.h: Delete.
452 * config/m68k/tm-hp300hpux.h: Delete.
453 * config/m68k/xm-hp300hpux.h: Delete.
454 * config/m68k/xm-hp300bsd.h: Delete.
455 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
456 tm-hp300hpux.h, xm-hp300hpux.h.
457 * somsolib.c: Remove comment about hp300 shared libraries.
458
bda34dc2
MK
4592003-08-31 Mark Kettenis <kettenis@gnu.org>
460
5bca7895
MK
461 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
462 Only define PTRACE_GET_THREAD_AREA is not already defined.
463 Various style fixes in code and comments and some additional
464 spelling fixes in comments. Move after functions dealing with
465 debug registers.
466 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
467 Fix coding-style.
468
bda34dc2
MK
469 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
470 frame_unwind_register_unsigned instead of
471 frame_unwind_unsigned_register.
472
c890192f
MK
4732003-08-30 Mark Kettenis <kettenis@gnu.org>
474
475 * configure.in: Search for gethostbyname in libnsl.
476 * configure: Regenerated.
477
60fac5b8
MK
4782003-08-29 Mark Kettenis <kettenis@gnu.org>
479
e294916c
MK
480 * configure.in: Remove redundant AC_MSG_RESULT in check for
481 uintptr_t in stdint.h.
482 * configure: Regenerated.
483
c40d267a
MK
484 * amd64-nat.h (struct regcache): Add opaque declaration.
485
60fac5b8
MK
486 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
487 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
488 Change "register array" to "register cache" in comments.
489 (x86_64_linux_gregset64_reg_offset): New variable.
490 (GETREGS_SUPPLIES): Remove macro.
491 (supply_gregset): Call amd64_supply_native_gregset instead of
492 x86_64_linux_supply_gregset.
493 (fill_gregset): Rename `regno' to `regnum'. Call
494 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
495 (store_regs): Rename `regno' to `regnum'.
496 (store_fpregs): Rename `regno' to `regnum'.
497 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
498 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
499 Reorganize function a bit.
500 (store_inferior_registers): Rename `regno' to `regnum'. Use
501 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
502 Reorganize function a bit.
503 (_initialize_x86_64_linux_nat): New function.
504 * config/i386/x86-64linux.mh.
505
546143b6
AC
5062003-08-29 Andrew Cagney <cagney@redhat.com>
507
508 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
509 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
510 (target_remove_watchpoint): Delete macro.
511 (target_insert_watchpoint): Delete macro.
512 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
513 (remote_mips_stopped_by_watchpoint): Delete declaration.
514 (remote_mips_remove_watchpoint): Delete declaration.
515 (remote_mips_set_watchpoint): Delete declaration.
516 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
517 * remote-mips.c (_initialize_remote_mips): Set
518 "to_insert_watchpoint", "to_stopped_by_watchpoint",
519 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
520 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
521 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
522 (mips_stopped_by_watchpoint): Rename
523 remote_mips_stopped_by_watchpoint.
524 (mips_can_hardware_watchpoint): Rename
525 remote_mips_can_use_hardware_watchpoint, update function
526 signature.
527
7bace51b
MK
5282003-08-29 Mark Kettenis <kettenis@gnu.org>
529
b0f5c6f2
MK
530 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
531 USER_DS. We haven't given them a register number yet.
532
2a6d284d
MK
533 * amd64-nat.h: New file.
534 * amd64-nat.c: New file.
535 * amd64fbsd-nat.c: Include "amd64-nat.h".
536 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
537 (amd64fbsd32_r_reg_offset): New variable.
538 (supply_gregset): Simply call amd64_supply_native_gregset.
539 (fill_gregset): Rename `regno' to `regnum'. Simply call
540 amd64_collect_native_gregset.
541 (fill_fpregset): Rename `regno' to `regnum'.
542 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
543 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
544 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
545 `fpregset_t'. Call amd64_supply_native_gregset instead of
546 supply_gregset. Call x86_64_supply_fxsave instead of
547 supply_fpregset.
548 (store_inferior_registers): Rename `regno' to `regnum'. Replace
549 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
550 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
551 `fpregset_t'. Call amd64_collect_native_gregset instead of
552 fill_gregset. Call x86_64_collect_fxsave instead of
553 fill_fpregset.
554 (_initialize_am64fbsd_nat): Initialize
555 amd64_native_gregset32_reg_offset and
556 amd64_native_gregset64_reg_offset.
557 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
558
a16d75cc
MK
559 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
560 null pointer. Fix typo in comment.
561
7bace51b
MK
562 * regcache.c (supply_register): Reimplement to call
563 regcache_raw_supply.
564 (regcache_collect): Reimplement by calling regcache_raw_collect.
565
9a661b68
MK
5662003-08-28 Mark Kettenis <kettenis@gnu.org>
567
568 * regcache.c (register_buffer): Consitify first argument.
569 (regcache_raw_supply, regcache_raw_collect): New
570 functions.
571
e94cc8fa
DJ
5722003-08-28 Daniel Jacobowitz <drow@mvista.com>
573
574 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
575 by Nathan J. Williams.
576
c64bd0ce
DJ
5772003-08-28 Daniel Jacobowitz <drow@mvista.com>
578
579 * lin-lwp.c (wait_lwp): New function, copied from
580 stop_wait_callback. Clean up.
581 (stop_wait_callback): Use wait_lwp.
582
e5ab0dce
AC
5832003-08-28 Andrew Cagney <cagney@redhat.com>
584
585 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
586 flavour and disassembler options.
587 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
588 (mips_gdbarch_init): Set "print_insn". Delete initialization of
589 deprecated_tm_print_insn_info.
590
a788de9b
AC
5912003-08-27 Andrew Cagney <cagney@redhat.com>
592
593 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
594 Use target_read_memory.
595 (s390_get_frame_info): Update. Do not reference
596 deprecated_tm_print_insn_info.
597 (s390_check_function_end, s390_is_sigreturn): Ditto.
598
36482093
AC
5992003-08-27 Andrew Cagney <cagney@redhat.com>
600
601 * Makefile.in (cris-tdep.o): Update dependencies.
602 * cris-tdep.c: Include "gdb_assert.h".
603 (cris_gdbarch_init): Set print_insn.
604 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
605 (cris_delayed_get_disassembler): Simplify, directly call the
606 disassembler returned by cris_get_disassembler.
607 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
608 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
609 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
610 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
611 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
612 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
613 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
614 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
615 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
616 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
617 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
618 (gdb_print_insn_sparc): Delete function.
619 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
620 deprecated_tm_print_insn_info.
621 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
622 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
623 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
624 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
625 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
626 * s390-tdep.c (gdb_print_insn_s390): Delete function.
627 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
628 (s390_gdbarch_init): Set print_insn.
629
0285512f
AC
6302003-08-27 Andrew Cagney <cagney@redhat.com>
631
632 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
633 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
634 * infcall.c (call_function_by_hand): Convert the entry point
635 address into a code address.
636
cdcd5552
AC
6372003-08-27 Andrew Cagney <cagney@redhat.com>
638
639 * dsrec.c: Include "gdb_string.h".
640 * Makefile.in (dsrec.o): Update dependencies.
641
e85cddad
MC
6422003-08-27 Michael Chastain <mec@shout.net>
643
644 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
645
8bbfbb23
AC
6462003-08-27 Andrew Cagney <cagney@redhat.com>
647
648 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
649 (alpha_osf1_init_abi): Do not set call_dummy_address.
650
ba058b66
DC
6512003-08-27 David Carlton <carlton@kealia.com>
652
653 From Randolph Chung <tausq@debian.org>:
654 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
655 compiles with -Wformat-nonliteral -Werror.
656
87f84c9d
JB
6572003-08-26 Jim Blandy <jimb@redhat.com>
658
659 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
660 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
661 bfd_lookup_symbol, since we only want symbols in code sections.
662 (look_for_base): Pass zero as the SECT_FLAGS argument to
663 bfd_lookup_symbol, since we're not concerned about which section
664 the symbol is in.
665
102d615a
JJ
6662003-08-26 Jeff Johnston <jjohnstn@redhat.com>
667
668 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
669 we are frameless or the return address register is already known.
670
cc7ad3ea
AC
6712003-08-26 Andrew Cagney <cagney@redhat.com>
672
673 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
674 in size. Add comments.
675
af8b88dd
JJ
6762003-08-26 Jeff Johnston <jjohnstn@redhat.com>
677
678 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
679 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
680
e0a4f5a1
JM
6812003-08-26 Jason Merrill <jason@redhat.com>
682
683 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
684 case out of #ifdef MIPS block.
685
4ae9ee8e
DJ
6862003-08-25 Daniel Jacobowitz <drow@mvista.com>
687
688 PR java/1322
689 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
690 available before calling SECT_OFF_TEXT.
3c164570 691 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 692
004d836a
JJ
6932003-08-25 Jeff Johnston <jjohnstn@redhat.com>
694
695 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
696 bof, and nat0-nat127 as pseudo-registers.
697 (ia64_frame_cache): New struct used to cache frame info.
698 (ia64_register_reggroup_p): New routine used to override default
699 register grouping so registers without names are still saved and
700 restored.
701 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
702 pseudo values.
703 (ia64_pseudo_register_read): New routine to read pseudo-registers.
704 (ia64_pseudo_register_write): New routine to write pseudo-registers.
705 (ia64_alloc_frame_cache): New routine to create a new
706 ia64_frame_cache.
707 (examine_prologue): Change prototype to add next_frame pointer.
708 Assume frameless until otherwise proven. Verify that the cfm for
709 current frame matches the cfm that should occur for the prologues
710 alloc insn and if equal, mark as not frameless. At end of routine,
711 if not frameless, calculate registers for the previous frame and store
712 in the cache, if a cache is provided.
713 (ia64_skip_prologue): Use new prototype when calling examine_prologue
714 and pass 0 for next_frame.
715 (ia64_store_return_value): Change to use convert_typed_floating()
716 instead of calling ia64_convert_to_raw().
717 (ia64_extract_return_value): Change to use convert_typed_floating()
718 instead of calling ia64_convert_to_virtual().
719 (ia64_frame_cache): New routine to support new frame model.
720 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
721 (ia64_frame_sniffer): Ditto.
722 (ia64_sigtramp_frame_init_saved_regs): Ditto.
723 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
724 (ia64_sigtramp_frame_prev_register): Ditto.
725 (ia64_sigtramp_frame_sniffer): Ditto.
726 (ia64_frame_base_address): Ditto.
727 (ia64_extract_struct_value_address): Change to issue error message.
728 (ia64_frame_align): New routine to align sp.
729 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
730 (ia64_push_arguments): Removed. Logic moved to
731 ia64_push_dummy_call().
732 (ia64_push_return_address): Ditto.
733 (ia64_unwind_dummy_id): New function.
734 (ia64_unwind_pc): Ditto.
735 (ia64_convert_register_p): Ditto.
736 (ia64_register_to_value): Ditto.
737 (ia64_value_to_register): Ditto.
738 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
739 (ia64_register_byte, ia64_register_raw_size): Ditto.
740 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
741 (ia64_saved_pc_after_call): Ditto.
742 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
743 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
744 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
745 (ia64_register_convert_to_raw): Ditto.
746 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
747 (ia64_init_extra_frame_info): Ditto.
748 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
749 (ia64_gdbarch_init): Remove registering of deprecated functions that
750 are no longer used. Add registration of new gdbarch functions.
751 Remove registering deprecated_write_sp. Replace
752 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
753 Delete set_gdbarch_deprecated_register_convertible(),
754 set_gdbarch_deprecated_register_convert_to_virtual(), and
755 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
756 set_gdbarch_deprecated_register_size(),
757 set_gdbarch_deprecated_register_bytes(),
758 set_gdbarch_pcregnum(),
759 set_gdbarch_deprecated_register_byte(),
760 set_gdbarch_deprecated_register_raw_size(),
761 set_gdbarch_deprecated_max_register_raw_size(),
762 set_gdbarch_deprecated_register_virtual_size(),
763 and set_gdbarch_deprecated_max_register_virtual_size() calls.
764 Replace set_gdbarch_deprecated_extract_return_value() with
765 set_gdbarch_extract_return_value(). Remove calls to:
766 set_gdbarch_deprecated_saved_pc_after_call();
767 set_gdbarch_deprecated_frame_chain(),
768 set_gdbarch_deprecated_frame_saved_pc(),
769 set_gdbarch_deprecated_frame_init_saved_regs(),
770 set_gdbarch_deprecated_get_saved_register(),
771 set_gdbarch_deprecated_call_dummy_words(),
772 set_gdbarch_deprecated_sizeof_call_dummy_words(),
773 set_gdbarch_deprecated_init_extra_frame_info(),
774 set_gdbarch_deprecated_frame_args_address(),
775 set_gdbarch_deprecated_frame_locals_address(),
776 and set_gdbarch_deprecated_dummy_write_sp().
777 Add set_gdbarch_convert_register_p(),
778 set_gdbarch_register_to_value(),
779 set_gdbarch_value_to_register(),
780 set_gdbarch_push_dummy_call(),
781 set_gdbarch_frame_align(),
782 set_gdbarch_unwind_dummy_id(),
783 set_gdbarch_unwind_pc(),
784 frame_unwind_append_sniffer(),
785 frame_unwind_append_sniffer(),
786 and frame_base_set_default().
787
aede7613
CD
7882003-08-25 Chris Demetriou <cgd@broadcom.com>
789
790 * configure.tgt: Document need for special "mipsisa64" handling.
791 (mipsisa64*-*-linux64): Handle as target linux64.
792 (mipsisa64*-*-*): Handle as target embed64.
793
43c3a82e
MC
7942003-08-18 Michael Chastain <mec@shout.net>
795
796 * PROBLEMS: Document pr gdb/1322, the Java anonymous
797 objfile bug.
798
6564f77d
MK
7992003-08-24 Mark Kettenis <kettenis@gnu.org>
800
2de139ba
MK
801 * i387-tdep.h: Update copyright date.
802 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
803
6564f77d
MK
804 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
805 CFLAGS games to reflect reality.
806
42cf1509
AC
8072003-08-24 Andrew Cagney <cagney@redhat.com>
808
809 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
810 GDB_MULTI_ARCH is always non-zero.
811 * osabi.c (_initialize_gdb_osabi): Ditto.
812 (gdbarch_init_osabi): Ditto.
813 * sparc-tdep.c: Ditto for #if code.
814
0485f6ad
MK
8152003-08-23 Mark Kettenis <kettenis@gnu.org>
816
817 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
818 Update comments.
819 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
820 comments.
821 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
822 x86_64_supply_fxsave.
823 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
824 x86_64_supply_fxsave.
825 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
826 x86_64_supply_fxsave.
827
c7716133
AJ
8282003-08-23 Andreas Jaeger <aj@suse.de>
829
830 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
831 i387_supply_fxsave.
832
ed504bdf
MK
8332003-08-23 Mark Kettenis <kettenis@gnu.org>
834
835 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
836 i387_supply_register.
837 (go32_fetch_registers): Adjust call to i387_supply_fsave.
838 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
839 i387_supply_fsave.
840 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
841 i387_supply_fxsave.
842 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
843 i387_supply_fsave.
844 * i386bsd-nat.c (supply_fpregset): Adjust call to
845 i387_supply_fsave.
846 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
847 call to i387_supply_fxsave. Call i387_supply_fsave instead of
848 supply_fpregset.
849 (store_inferior_registers): Remove extraneous whitespace. Call
850 i387_fill_fsave instead of fill_fpregset.
851 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
852 (supply_fpregset): Likewise.
853 * i386v4-nat.c (supply_fpregset): Adjust call to
854 i387_supply_fsave.
855 * i386-interix-nat.c (supply_fpregset): Adjust call to
856 i387_supply_fsave.
857 * i386-linux-nat.c (supply_fpregset): Adjust call to
858 i387_supply_fsave.
859 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
860 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
861 i387supply_fsave and i387_supply_fxsave.
862 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
863 Incorporate code from `i387_supply_register.
864 (i387_supply_register): Remove.
865 (i387_supply_fxsave): Add `regnum' argument.
866 Update comments.
867 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
868 prototype.
869 (i387_supply_register): remove prototype.
870 Update comments.
871
4be5d520
MC
8722003-08-22 Michael Chastain <mec@shout.net>
873
874 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
875 Add lines for files in gdb/testsuite/gdb.cp/* that are
876 still not 8.3 unique.
877
7ed85d26
DJ
8782003-08-22 Daniel Jacobowitz <drow@mvista.com>
879
880 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
881 TYPE_VPTR_FIELDNO is valid.
882
eb0d3137
MK
8832003-08-19 Mark Kettenis <kettenis@gnu.org>
884
885 * utils.c (set_width_command): Remove prototypes.
886 (set_screen_size): New prototype.
887 (init_page_info): Simplify by fetching the screen size from
888 Readline. Call set_screen_size.
889 (set_screen_size): New function.
890 (set_width): Add missing whitespace in comment.
891 (set_width_command): Call set_screen_size.
892 (set_height_command): New function.
893 (initialize_utils): Fix formatting. Make "set height" command
894 call set_height_command. Remove redundant code that turns off
895 pagination if output isn't a terminal. Remove redundant call to
896 set_width_command.
897
7e6d0ac8
MK
8982003-08-22 Mark Kettenis <kettenis@gnu.org>
899
3567a8ea
MK
900 * sparc64-tdep.h (sparc64_regnum): Fix comment.
901 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
902 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
903 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
904 `case' keyword.
905 (sparc64_register_info): Give the reister with number
906 SPARC64_STATE_REGNUM a name.
907 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
908 %asi and %ccr.
909 (sparc64_push_dummy_call): Take BIAS into account when checking
910 stcak alignment.
911 (sparc_software_single_step): Remove assertions that check whether
912 NPC and NNPC were zero.
913 (sparc_supply_rwindow): Make public. Merge functionality with
914 sparc64_supply_rwindow.
915 (sparc_fill_rwindow): Make public. Merge functionality with
916 sparc64_fill_rwindow.
917 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
918 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
919 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
920 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
921 sparc_supply_rwindow instead of sparc64_supply_rwindow.
922
7e6d0ac8
MK
923 * reggroups.c: Add whitespace after declarations of local
924 variables in functions.
925
72e5f484
MC
9262003-08-21 Michael Chastain <mec@shout.net>
927
928 * gdbtypes.h: Change array bound type from an int to enum.
929
435ac228
AC
9302003-08-21 Andrew Cagney <cagney@redhat.com>
931
932 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
933 * config/sparc/tm-sparc.h: Ditto.
934 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
935 unconditionally.
936 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
937
0d0e1a63
MK
9382003-07-13 Mark Kettenis <kettenis@gnu.org>
939
940 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
941 (register_objfile_data, set_objfile_data, objfile_data): New
942 prototypes.
943 * objfiles.c (objfile_alloc_data, objfile_free_data): New
944 prototypes.
945 (allocate_objfile): Call objfile_alloc_data.
946 (free_objfile): Call objfile_free_data.
947 (struct objfile_data): New.
948 (struct objfile_data_registration): New.
949 (struct objfile_data_registry): New.
950 (objfile_data_registry): New variable.
951 (register_objfile_data): New function.
952 (objfile_alloc_data, objfile_free_data): New functions.
953 (set_objfile_data, objfile_data): New functions.
954 * dwarf2-frame.c (dwarf2_frame_data): New variable.
955 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
956 (_initialize_dwarf2_frame): New function and prototype.
957
d90cf509
AC
9582003-08-21 Andrew Cagney <cagney@redhat.com>
959
960 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
961 a specific architecture.
962 * arch-utils.h (set_architecture_from_arch_mach): Delete
963 declaration.
964 (target_architecture_hook): Delete declaration.
965 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
966 (default_float_format): Assume GDB_MULTI_ARCH.
967 (default_double_format): Assume GDB_MULTI_ARCH.
968 (set_endian_from_file): Delete function.
969 (arch_ok): Delete function.
970 (set_arch): Delete function.
971 (set_architecture_from_arch_mach): Delete function.
972 (set_architecture_from_file): Delete function.
973 (set_architecture): Assume GDB_MULTI_ARCH.
974 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
975
8b39fe56
MK
9762003-08-21 Mark Kettenis <kettenis@gnu.org>
977
978 Rewrite FreeBSD/sparc64 native configuration.
979 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
980 * sparc64fbsd-nat.c: New file.
981 * sparc64fbsd-tdep.c: New file.
982 * sparc64-tdep.c sparc64-tdep.h: New files.
983 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
984 sparc64fbsd-tdep.o): New dependencies.
985 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
986 and sparc64fbsd-tdep.c.
987 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
988 * config/sparc/fbsd.mh: Remove copyright notice.
989 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
990 sparcbsd-nat.o.
991 * config/sparc/fbsd.mt: Remove copyright notice.
992 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
993 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
994 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
995 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
996 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
997 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
998 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
999 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1000 "sparc/tm-sp64.h".
1001 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1002 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1003
a7f19c79
MC
10042003-08-21 Michael Chastain <mec@shout.net>
1005
1006 * symtab.h: Add doco on the space critical structures and
1007 some measurements of space usage.
1008
da08ea5b
MS
10092003-08-21 Michael Snyder <msnyder@redhat.com>
1010
1011 * tracepoint.c (trace_dump_command): Trace break address
1012 is subject to DECR_PC_AFTER_BREAK.
1013 (set_traceframe_context): Make "trace_line" an int.
1014 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1015
6df2bf50
MS
10162003-08-20 Michael Snyder <msnyder@redhat.com>
1017
1018 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1019 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1020 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1021 argument passing.
1022 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1023 functions, replace sh_push_dummy_call.
1024 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1025
0955bbf0
MC
10262003-08-20 Michael Chastain <mec@shout.net>
1027
1028 * gdbtypes.h (struct main_type): Rearrange to save space.
1029
260a4188
MS
10302003-08-20 Michael Snyder <msnyder@redhat.com>
1031
1032 * trad-frame.c: Comment typo fix.
1033
8baa6f92
KB
10342003-08-20 Michael Snyder <msnyder@redhat.com>
1035 Kevin Buettner <kevinb@redhat.com>
1036
1037 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1038 (frv_frame_init_saved_regs): Add declaration.
1039 (frame_extra_info): Add new field ``saved_regs''.
1040 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1041 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1042 Update frame related code.
1043 (frv_extract_struct_value_address): Adjust formatting.
1044 * Makefile.in (frv-tdep.o): Update dependencies.
1045 * config/frv/tm-frv.h (target_insert_watchpoint)
1046 (target_remove_watchpoint, target_insert_hw_breakpoint)
1047 (target_remove_hw_breakpoint): Delete these macros.
1048 (remote_insert_watchpoint, remote_remove_watchpoint)
1049 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1050 these declarations.
1051
87193939
MC
10522003-08-20 Michael Chastain <mec@shout.net>
1053
1054 * defs.h (ENUM_BITFIELD): New macro.
1055 * symtab.h (ENUM_BITFIELD): Use it.
1056 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1057
062103ba
SA
10582003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1059
1060 * MAINTAINERS (write after approval): Add myself.
1061
8b148df9
AC
10622003-08-18 Andrew Cagney <cagney@redhat.com>
1063
1064 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1065 * gdbarch.h, gdbarch.c: Re-generate.
1066 * infcall.c (call_function_by_hand): Adjust the SP by
1067 frame_red_zone_size before allocating any stack space.
1068 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1069 * x86-64-tdep.c (x86_64_frame_align): New function.
1070 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1071
1072 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1073 Remove code adjusting SP so that it skips over the Red Zone.
1074
954a4db8
MK
10752003-08-18 Mark Kettenis <kettenis@gnu.org>
1076
1077 * NEWS (New native configurations): Mention FreeBSD/amd64.
1078
1a241548
AC
10792003-08-18 Andrew Cagney <cagney@redhat.com>
1080
1081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1082 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1083 "m68k_frame_p".
1084 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1085
f82b2acd
MK
10862003-08-18 Mark Kettenis <kettenis@gnu.org>
1087
1088 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1089
4056d258
ML
10902003-08-18 Michal Ludvig <mludvig@suse.cz>
1091
1092 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1093 Define.
1094 * i386-linux-nat.c: Include "linux-nat.h".
1095 (child_post_startup_inferior): New function.
1096
99ab4326
MK
10972003-08-18 Mark Kettenis <kettenis@gnu.org>
1098
1099 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1100 at the start of a frameless function. This probably fixes PR
1101 backtrace/1338.
1102
c8d5f0d6
MC
11032003-08-17 Michael Chastain <mec@shout.net>
1104
1105 * symfile.c (find_sym_fns): Remove special case for apollo target.
1106
9016a515
DJ
11072003-08-17 Daniel Jacobowitz <drow@mvista.com>
1108
1109 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1110 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1111 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1112 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1113 (linux_supports_tracevforkdone): New function.
1114 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1115 TRACEVFORKDONE.
1116 (child_follow_fork): Handle vfork.
1117 (linux_handle_extended_wait): Likewise. Also handle exec.
1118 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1119 * NEWS: Mention fork tracing.
1120
c538c11c
DJ
11212003-08-17 Daniel Jacobowitz <drow@mvista.com>
1122
1123 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1124
4de4c07c
DJ
11252003-08-17 Daniel Jacobowitz <drow@mvista.com>
1126
1127 * Makefile.in (i386-linux-nat.o): Update dependencies.
1128 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1129 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1130 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1131 * i386-linux-nat.c: Include "linux-nat.h".
1132 (child_post_startup_inferior): New function.
1133 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1134 * infptrace.c (kill_inferior): Wrap in #ifdef.
1135 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1136 attaching to each LWP.
1137 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1138 (init_lin_lwp_ops): Fill in some more operations.
1139 * linux-nat.h (linux_enable_event_reporting)
1140 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1141 prototypes.
1142 * linux-nat.c (linux_enable_event_reporting): New function.
1143 (child_post_attach, linux_child_post_startup_inferior)
1144 (child_post_startup_inferior, child_follow_fork)
1145 (linux_handle_extended_wait, kill_inferior): New functions.
1146
7996bcec
AC
11472003-08-16 Andrew Cagney <cagney@redhat.com>
1148
1149 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1150 * gdbarch.h, gdbarch.c: Re-generate.
1151
3d48a7a0
MK
11522003-08-16 Mark Kettenis <kettenis@gnu.org>
1153
1154 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1155
7989c619
AC
11562003-08-16 Andrew Cagney <cagney@redhat.com>
1157
1158 * NEWS: Mention that "set prompt-escape-char" was deleted.
1159 * top.c (get_prompt_1): Delete function.
1160 (gdb_prompt_escape):
1161 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1162 prompt-escape-char" command.
1163 (MAX_PROMPT_SIZE): Delete macro.
1164 (get_prompt): Simplify, do not call get_prompt_1.
1165
07978cd8
AC
11662003-08-16 Andrew Cagney <cagney@redhat.com>
1167
1168 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1169 -Werror. -Wformat-nonliteral problems.
1170
3ff7cf9e
JB
11712003-08-15 J. Brobecker <brobecker@gnat.com>
1172
1173 Further multiarching work mostly for hppa64-*-hpux11:
1174 * hppa-tdep.h: New file.
1175 * hppa-tdep.c: #include hppa-tdep.c.
1176 (hppa32_num_regs): Renamed from hppa_num_regs.
1177 (hppa64_num_regs): New constant.
1178 (hppa64_call_dummy_breakpoint_offset): New constant.
1179 (hppa32_call_dummy_length): New constant.
1180 (hppa64_call_dummy_length): New constant.
1181 (hppa32_stack_align): Make name 32bit explicit.
1182 (hppa32_register_virtual_type): Likewise.
1183 (hppa32_extract_return_value): Likewise.
1184 (hppa32_use_struct_convention): Likewise.
1185 (hppa32_store_return_value): Likewise.
1186 (hppa64_register_virtual_type): New function.
1187 (hppa64_extract_return_value): New function.
1188 (hppa64_use_struct_convention): New function.
1189 (hppa64_store_return_value): New function.
1190 (hppa_frame_locals_address): Remove declaration, function does
1191 not exist anymore.
1192 (hppa_register_byte): Add support for PA64 ABI.
1193 (hppa_gdbarch_init): Add support for PA64 ABI.
1194 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1195 Make name 32bit explicit.
1196 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1197 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1198 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1199 (hppa64_hpux_frame_base_before_sigtramp): New function.
1200 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1201 * config/pa/tm-hppa64.h: Remove macros that are no longer
1202 necessary now that the gdbarch vector is properly setup.
1203 Transform some macros into function calls. Some minor cleanup.
1204 * config/pa/tm-hppah.h: Update function calls in macros
1205 following the function renaming in hppa-hpux-tdep.c.
1206 * Makefile.in (hppa_tdep_h): New variable.
1207 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1208
5d05ca6d
MS
12092003-08-14 Michael Snyder <msnyder@redhat.com>
1210
1211 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1212
37ba2569
JB
12132003-08-13 J. Brobecker <brobecker@gnat.com>
1214
1215 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1216 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1217 routine.
1218
aed7f26a
MS
12192003-08-13 Michael Snyder <msnyder@redhat.com>
1220
1221 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1222 (frv_saved_pc_after_call): Use deprecated ftype.
1223 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1224 (frv_remote_translate_xfer_address): Remove.
1225 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1226
752d4ac1
JB
12272003-08-13 J. Brobecker <brobecker@gnat.com>
1228
1229 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1230 initialization after the common gdbarch initialization, not before.
1231
1426ac1d
JB
12322003-08-13 J. Brobecker <brobecker@gnat.com>
1233
1234 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1235 (ADDR_BITS_REMOVE): Remove, redundant.
1236
b6fbdd1d
JB
12372003-08-13 J. Brobecker <brobecker@gnat.com>
1238
1239 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1240 gdbarch method to clear the 2 low bits of text addresses.
1241
44160db3
AC
12422003-08-12 Andrew Cagney <cagney@redhat.com>
1243
1244 * Makefile.in (dsrec.o): Update dependencies.
1245 * dsrec.c: Include "gdb_assert.h".
1246 (make_srec): Use snprintf instead of sprintf, use a literal format
1247 string.
1248
bcf7d3ca
AC
12492003-08-12 Andrew Cagney <cagney@redhat.com>
1250
1251 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1252 FRAME_OBSTACK_ZALLOC.
1253
49ed40de
KB
12542003-08-12 Kevin Buettner <kevinb@redhat.com>
1255
1256 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1257 SSE registers.
1258
b246147c
MK
12592003-08-10 Mark Kettenis <kettenis@gnu.org>
1260
1261 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1262 amd64fbsd_sc_reg_offset): Add extern declarations.
1263 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1264 declarations.
1265
d95fdc0d
BE
12662003-08-11 Ben Elliston <bje@wasabisystems.com>
1267
1268 * MAINTAINERS (write after approval): Update my mail address.
1269
cf6a0e73
AC
12702003-08-10 Andrew Cagney <cagney@redhat.com>
1271
1272 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1273
f837910f
MK
12742003-08-10 Mark Kettenis <kettenis@gnu.org>
1275
e2dbbd2d
MK
1276 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1277 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1278 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1279 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1280 i386bsd_sc_reg_offset): Add extern declarations.
1281 * i386obsd-nat.c: Include "i386-tdep.h"
1282 (_initialize_i386obsd_nat): Remove extern declarations.
1283 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1284 declarations.
1285 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1286 declarations.
1287
f837910f
MK
1288 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1289 instead of frame_read_register.
1290 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1291 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1292 SP_REGNUM.
1293 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1294 instead of frame_unwind_unsigned_register. Use
1295 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1296 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1297 instead of read_register. Use builtin_type_void_data_ptr instead
1298 of builtin_type_void_func_ptr when extracting the address of the
1299 jmp_buf.
1300 (i386_extract_return_value, i386_store_return_value,
1301 i386_pseudo_register_read, i386_pseudo_register_write): Use
1302 register_size instead REGISTER_RAW_SIZE.
1303
edcf254d
AC
13042003-08-10 Andrew Cagney <cagney@redhat.com>
1305
1306 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1307 sprintf. Make "name" constant.
1308
26604a34
MK
13092003-08-10 Mark Kettenis <kettenis@gnu.org>
1310
192285c6
MK
1311 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1312 instead of frame_read_register.
f837910f
MK
1313 (i387_print_float_info): Use get_frame_register and
1314 get_frame_register_unsigned instead of frame_register_read.
192285c6 1315
f0925262
MK
1316 * i386fbsd-nat.c: Include "i386-tdep.h".
1317 (child_resume): Make `eflags' an ULONGEST. Use
1318 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1319 instead of register_read and register_write.
1320
a144416f
MK
1321 * i386bsd-nat.c (fetch_inferior_registers,
1322 store_inferior_registers): Don't use && at the end of a line.
1323 (_initialize_i386bsd_nat): Fix typo.
1324
fec74868
MK
1325 * frame.c (_initialize_frame): Add missing backslash.
1326
87232496
MK
1327 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1328 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1329 and supply_register instead of manipulating the register buffer
1330 directly.
1331
c9b9de0b
MK
1332 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1333 * config/i386/nm-i386sol2.h
1334 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1335
26604a34
MK
1336 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1337 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1338 instructions that GCC likes to mingle into the prologue. Fixes
1339 gdb/1253 and gdb/1255.
1340
25d29d70
AC
13412003-08-09 Andrew Cagney <cagney@redhat.com>
1342
1343 Fix GDB PR cli/926.
1344 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1345 * command.h (add_setshow_uinteger_cmd): Declare.
1346 * frame.c (set_backtrace_cmd): New function.
1347 (show_backtrace_cmd): New function.
1348 * frame.c (_initialize_frame): Replace "set/show
1349 backtrace-below-main" with "set/show backtrace past-main". Add
1350 command "set/show backtrace limit".
1351 (backtrace_past_main): Rename "backtrace_below_main".
1352 (backtrace_limit): New variable.
1353 (get_prev_frame): Update. Check the backtrace_limit.
1354
9ebf4acf
AC
13552003-08-09 Andrew Cagney <cagney@redhat.com>
1356
1357 * defs.h (xstrprintf): Declare.
1358 * utils.c (xstrprintf): New function.
1359 * breakpoint.c (insert_breakpoints): Replace sprintf and
1360 non-literal format strings, with xstrprintf and cleanups.
1361 (delete_breakpoint,breakpoint_re_set): Ditto.
1362 (commands_command, insert_breakpoints): Ditto.
1363 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1364 (break_at_finish_command_1): Ditto.
1365
3771659b
AC
13662003-08-09 Andrew Cagney <cagney@redhat.com>
1367
1368 * MAINTAINERS (language support): List Adam Fedor as Objective C
1369 maintainer.
1370
b4263afa
JB
13712003-08-08 J. Brobecker <brobecker@gnat.com>
1372
1373 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1374 are now multiarched.
1375
d84defb1
JB
13762003-08-08 J. Brobecker <brobecker@gnat.com>
1377
1378 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1379 longer necessary now that hppa64 is partially multiarch'ed.
1380
f786f615
AC
13812003-08-08 Andrew Cagney <cagney@redhat.com>
1382
1383 * interps.c (interp_set): Check for a NULL "old_interp".
1384
c938e9b0
L
13852003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1386
1387 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1388 (install-only): Support DESTDIR.
1389 (uninstall): Likewise.
1390 (install-gdbtk): Likewise.
1391
9a146a11
EZ
13922003-08-08 Elena Zannoni <ezannoni@redhat.com>
1393
1394 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1395 contains something meaningful at all times.
1396
1397Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1398
62599e99 1399 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1400
56296155
BC
1401Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1402
62599e99 1403 * MAINTAINERS (write after approval): Added self.
56296155 1404
9710e734
AC
14052003-08-07 Andrew Cagney <cagney@redhat.com>
1406
1407 * inferior.h (AT_SYMBOL): Define.
1408 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1409 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1410 * mips-tdep.c (mips_call_dummy_address): Delete function.
1411 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1412 set call_dummy_address.
1413
98b3ab73
AC
14142003-08-07 Andrew Cagney <cagney@redhat.com>
1415
1416 * language.c (op_error): Delete function.
1417 (binop_type_check): Delete function.
1418 * language.h (type_op_error, range_op_error): Delete macros.
1419 (op_error): Delete declaration.
1420
2fcf52f0
AC
14212003-08-07 Andrew Cagney <cagney@redhat.com>
1422
1423 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1424
abd4220e 14252003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1426
abd4220e 1427 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1428 (x86_64_push_arguments): Skip the red zone.
abd4220e 1429
9dd5f34f
AC
14302003-08-05 Andrew Cagney <cagney@redhat.com>
1431
1432 * reggroups.c (reggroup_next): Check for the final entry.
1433
e5e78edc
AC
14342003-08-04 Andrew Cagney <cagney@redhat.com>
1435
ab4e3d93
AC
1436 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1437 * cli/cli-script.c (define_command): Call query directly, instead
1438 of passing it a buffer.
1439 * ocd.c (ocd_error): Pass error a constant format string.
1440 * remote-mips.c (mips_error): Use fputs_filtered.
1441
1062ca82
AC
1442 * solib-svr4.c (_initialize_svr4_solib): Update
1443 register_gdbarch_data call.
1444 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1445
fcc1c85c
AC
1446 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1447 (register_gdbarch_data): Delete "free" parameter. Update
1448 comments.
1449 * gdbarch.h, gdbarch.c: Re-generate.
1450 * reggroups.c (_initialize_reggroup): Update.
1451 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1452 * frame-base.c (_initialize_frame_base): Update.
1453 * frame-unwind.c (_initialize_frame_unwind): Update.
1454 * user-regs.c (_initialize_user_regs): Update.
1455 * remote.c (_initialize_remote): Update.
1456 * regcache.c (_initialize_regcache): Update.
1457
116f06ea
AC
1458 * regcache.c (xfree_regcache_descr): Delete function.
1459 (_initialize_regcache): Update call to register_gdbarch_data.
1460 (init_regcache_descr, init_legacy_regcache_descr): Use
1461 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1462
e5e78edc
AC
1463 * remote.c (free_remote_state): Delete function.
1464 (_initialize_remote): Update register_gdbarch_data.
1465 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1466 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1467
6c7d17ba
AC
14682003-08-04 Andrew Cagney <cagney@redhat.com>
1469
1470 * reggroups.c (struct reggroup_el): Define.
1471 (struct reggroups): Delete field "nr_group". Replace array
1472 "group" with a "first" to "last" linked list.
1473 (reggroups_init): Update. Allocate using gdbarch's obstack.
1474 (reggroups_free): Delete function.
1475 (add_group): Update. Add "el" parameter.
1476 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1477 (default_groups): Update.
1478 (reggroup_next): Replace reggroups.
1479 (reggroups_dump): Update.
1480 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1481 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1482 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1483
89b7795b
DJ
14842003-08-04 Daniel Jacobowitz <drow@mvista.com>
1485
1486 * Makefile.in (tui-interp.o): Update dependencies.
1487
306d9ac5
DC
14882003-08-04 David Carlton <carlton@kealia.com>
1489
1490 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1491 to internal_error call.
1492 * source.c (forward_search_command): Add "%s" format argument.
1493 (reverse_search_command): Ditto.
1494 * top.c (quit_confirm): Ditto.
1495 * cli/cli-setshow.c (do_setshow_command): Ditto.
1496 * cp-valprint.c (cp_print_class_method): Replace
1497 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1498 (cp_print_class_member): Ditto.
1499 * event-top.c (command_line_handler): Ditto.
1500 * linux-proc.c (linux_info_proc_cmd): Ditto.
1501 * p-typeprint.c (pascal_type_print_base): Ditto.
1502 * p-valprint.c (pascal_object_print_class_method): Ditto.
1503 (pascal_object_print_class_member): Ditto.
1504 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1505 * remote.c (remote_cisco_section_offsets): Ditto.
1506 * top.c (command_line_input): Ditto.
1507 * utils.c (vwarning,error_stream,quit): Ditto.
1508 * valprint.c (print_floating,print_binary_chars)
1509 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1510
57bfe177
AC
15112003-08-04 Andrew Cagney <cagney@redhat.com>
1512
1513 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1514
e546b999
AC
15152003-08-02 Andrew Cagney <cagney@redhat.com>
1516
1517 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1518 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1519 amd64fbsd-nat.c.
1520
91092ee5
AC
15212003-08-02 Andrew Cagney <cagney@redhat.com>
1522
1523 * Makefile.in: Update all dependencies and definitions.
1524
889f28e2
AF
15252003-08-02 Adam Fedor <fedor@gnu.org>
1526
1527 * linespec.c (is_objc_method_format): New function
1528 (decode_line_1, locate_first_half): Use it.
1529 Fixes PR objc/1298
1530
880bc914
AC
15312003-08-01 Andrew Cagney <cagney@redhat.com>
1532
1533 * NEWS: Mention that m32r is multi-arch.
1534 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1535 * configure.tgt: Recognize m32r-*-*.
1536 * config/m32r/tm-m32r.h: Delete file.
1537 * config/m32r/m32r.mt: New file.
1538 * m32r-rom.c (m32r_upload_command): Use hostent only when
1539 gethostname succeeds, in order to avoid a compilation
1540 warning.
1541 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1542 compiler warning.
1543
19f59343
MS
15442003-08-01 Michael Snyder <msnyder@redhat.com>
1545
1546 * sh-tdep.c (sh_frame_align): New gdbarch method.
1547 (sh_gdbarch_init): Set up frame_align method.
1548
4e7d7511
MS
15492003-07-31 Michael Snyder <msnyder@redhat.com>
1550
1551 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1552 which is already covered by the new frames infrastructure.
1553
63022984
AC
15542003-07-31 Andrew Cagney <cagney@redhat.com>
1555
1556 * user-regs.c (struct user_reg): Add "next" link.
1557 (struct user_regs): Replace "user" with "first" and "last" links.
1558 (append_user_reg): Add pre-allocated "reg" parameter.
1559 (builtin_user_regs): Provide initial value for "last".
1560 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1561 (user_regs_init): Allocate memory from the gdbarch obstack.
1562 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1563 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1564 linked list.
1565 (usernum_to_user_reg): New function.
1566 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1567 (value_of_user_reg): Use usernum_to_user_reg.
1568 (user_regs_free): Delete function.
1569 (_initialize_user_regs): Update register_gdbarch_data call.
1570
7cf6e574
DJ
15712003-07-31 Daniel Jacobowitz <drow@mvista.com>
1572
1573 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1574
c48a845b
MS
15752003-07-30 Michael Snyder <msnyder@redhat.com>
1576
4e7d7511 1577 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1578 * infcall.c (call_function_by_hand): Pass struct_addr to
1579 value_being_returned.
1580 * infcmd.c (print_return_value): Pass zero as struct_addr.
1581 * values.c (value_being_returned): If struct_addr is passed,
1582 use it instead of trying to recover it from the inferior.
1583
f0d8db19
KB
15842003-07-30 Kevin Buettner <kevinb@redhat.com>
1585
1586 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1587 the prologue analyzer won't need to attempt to extract the pc
1588 value from the woefully incomplete dummy frame.
1589 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1590 possible. Disable code which modifies the frame.
1591
e5c113a1
AC
15922003-07-28 Andrew Cagney <cagney@redhat.com>
1593
1594 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1595 to level 2.
1596 (annotate_breakpoints_table, annotate_record): Ditto.
1597 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1598 (annotate_field_name_end, annotate_field_value): Ditto.
1599 (annotate_field_end, annotate_frame_source_begin): Ditto.
1600 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1601 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1602 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1603 (annotate_frame_address_end, annotate_frame_address): Ditto.
1604 (annotate_frame_args, annotate_frame_end): Ditto.
1605 (annotate_frame_where, annotate_arg_begin): Ditto.
1606 (annotate_arg_name_end, annotate_arg_value): Ditto.
1607 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1608 (annotate_function_call, annotate_signal_name): Ditto.
1609 (annotate_signal_string, annotate_signal_name_end): Ditto.
1610 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1611 (annotate_value_begin, annotate_value_history_value): Ditto.
1612 (annotate_value_history_end, annotate_value_end): Ditto.
1613 (annotate_display_begin, annotate_display_number_end): Ditto.
1614 (annotate_display_format, annotate_display_expression): Ditto.
1615 (annotate_display_expression_end, annotate_display_value): Ditto.
1616 (annotate_display_end, annotate_array_section_begin): Ditto.
1617 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1618 (annotate_elt, annotate_array_section_end): Ditto.
1619
bb1db049
AC
16202003-07-28 Andrew Cagney <cagney@redhat.com>
1621
1622 * regcache.c (struct regcache_descr): Update comments on
1623 nr_raw_registers.
1624 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1625 sizeof_raw_register_valid_p.
1626 (init_regcache_descr): Set nr_raw_registers and
1627 sizeof_raw_register_valid_p before calling
1628 init_legacy_regcache_descr.
1629
20e6603c
AC
16302003-07-28 Andrew Cagney <cagney@redhat.com>
1631
1632 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1633 MOD NUM_REGS.
1634
db742940
DJ
16352003-07-28 Daniel Jacobowitz <drow@mvista.com>
1636
1637 * thread.c (info_threads_command): Use get_selected_frame ().
1638 Check that there is at least one non-sentinel frame.
1639
ce7f4371
SC
16402003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1641
1642 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1643 (m68hc11_pop_frame): Remove.
1644 (m68hc11_frame_saved_pc): Remove.
1645 (m68hc11_frame_chain): Remove.
1646 (m68hc11_frame_init_saved_regs): Remove.
1647 (m68hc11_init_extra_frame_info): Remove.
1648 (m68hc11_store_struct_return): Remove.
1649 (m68hc11_saved_pc_after_call): Remove.
1650
1ea653ae
SC
16512003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1652
1653 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1654 frame unwind information.
1655 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1656 and adapted for frame unwinding.
1657 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1658 (m68hc11_unwind_pc): New function.
1659 (m68hc11_frame_unwind_cache): New function to analyze frames.
1660 (m68hc11_frame_this_id): New function to create new frame struct.
1661 (m68hc11_frame_prev_register): New function to unwind a register from
1662 the frame.
1663 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1664 (m68hc11_frame_p): New function for the above.
1665 (m68hc11_frame_base_address): New function to return fp of frame.
1666 (m68hc11_frame_args_address): Update for frame.
1667 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1668 (m68hc11_unwind_sp): New function.
1669 (m68hc11_unwind_dummy_id): New function.
1670 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1671 calls.
1672
c8a7f6ac
SC
16732003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1674
1675 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1676 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1677 when we are beyond the current pc.
1678
3dc990bf
SC
16792003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1680
1681 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1682 from m68hc11_push_arguments.
1683 (m68hc11_push_arguments): Remove.
1684 (m68hc11_push_return_address): Remove.
1685 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1686 handlers; remove deprecated_extra_stack_alignment_needed.
1687
222e5d1d
AC
16882003-07-27 Andrew Cagney <cagney@redhat.com>
1689
1690 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1691 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1692 REAL_PC and not the pointer.
1693 * hppa-hpux-tdep.c: Include frame.h
1694
a7e9a47e
AC
16952003-07-27 Andrew Cagney <cagney@redhat.com>
1696
1697 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1698 GDB_MULTI_ACH_PARTIAL.
1699
7e3dd49e
AC
17002003-07-27 Andrew Cagney <cagney@redhat.com>
1701
1702 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1703 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1704 operator at start and not end of line.
1705 (decode_prologue): Ditto.
1706 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1707 frame_unwind_register_unsigned instead of
1708 frame_unwind_unsigned_register.
1709 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1710 read_register.
1711 (m32r_push_dummy_call): Use register_size instead of
1712 REGISTER_RAW_SIZE.
1713 (m32r_frame_sniffer): Replace m32r_frame_p.
1714 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1715 * m32r-rom.c (report_transfer_performance): Delete extern
1716 declaration.
1717 (m32r_load, m32r_upload_command): Use print_transfer_performance
1718 instead of report_transfer_performance.
1719 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1720 / add_show_from_set.
1721
0880807f
AC
17222003-07-26 Andrew Cagney <cagney@redhat.com>
1723
1724 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1725 store_return_value and extract_struct_value_address.
1726
64ae9269
DJ
17272003-07-26 Daniel Jacobowitz <drow@mvista.com>
1728
1729 PR c++/1267
1730 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1731 NULL, default to the section containing PC.
1732
e286caf2
SC
17332003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1734
1735 * NEWS: Mention "regs" deprecated for m68hc11 too.
1736
1737 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1738 (m68hc11_print_register): New function to print out one register.
1739 (m68hc11_print_registers_info): New function to print registers.
1740 (show_regs): Deprecate and use the above.
1741 (m68hc11_gdbarch_init): Install the print_registers_info.
1742
705b278b
JJ
17432003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1744
1745 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1746 that we have a SIGTRAP before returning non-zero.
1747
63cd4198
EZ
17482003-07-23 Michal Ludvig <mludvig@suse.cz>
1749 Elena Zannoni <ezannoni@redhat.com>
1750
1751 * linespec.c (decode_line_2): Avoid crash if
1752 find_function_start_sal() returns empty record.
1753
6926787d
AS
17542003-07-23 Andreas Schwab <schwab@suse.de>
1755
1756 * ia64-tdep.c (ia64_print_insn): New function.
1757 (ia64_gdbarch_init): Set print_insn to it.
1758 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1759 deprecated_tm_print_insn_info.
1760
708cc1b6
MS
17612003-07-22 Michael Snyder <msnyder@redhat.com>
1762
1763 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1764 handle 8-bit returns (long long).
1765 (h8300h_extract_return_value): Ditto.
1766 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1767
aebd7893
AC
17682003-07-22 Andrew Cagney <cagney@redhat.com>
1769
1770 * gdbarch.c Include "gdb_obstack.h".
1771 (struct gdbarch): Add an "obstack".
1772 (alloc_gdbarch_data): Allocate the gdbarch data using
1773 GDBARCH_OBSTACK_CALLOC.
1774 (free_gdbarch_data): Delete function.
1775 (gdbarch_obstack_zalloc): New function.
1776 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1777 Assert that the architecture is not initialized.
1778 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1779 vector from the obstack.
1780 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1781 architecture obstack.
1782 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1783 (set_gdbarch_data): Assert that the data is not initialized.
1784 (struct gdbarch_data): Delete member "free".
1785 (register_gdbarch_data): Do not initialize "free".
1786 * gdbarch.h, gdbarch.c: Re-generate.
1787
153721e6
AC
17882003-07-22 Andrew Cagney <cagney@redhat.com>
1789
1790 * configure.in (build_warnings): Add -Wformat-nonliteral.
1791 * configure: Re-generate.
1792
c193f044 17932003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1794
1795 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1796
c3228f12
EZ
17972003-07-22 Elena Zannoni <ezannoni@redhat.com>
1798
1799 * findvar.c (read_var_value): Remove case for thread local storage
1800 variables. It is now entirely handled by the dwarf2 location
1801 expression code.
1802 * printcmd.c (address_info): Ditto.
1803 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1804 enumeration value.
1805 (struct symbol): Remove objfile field, which was used by
1806 LOC_THREAD_LOCAL_STATIC only.
1807 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1808 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1809 usage of objfile pointer.
1810 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1811 thread local variables.
1812 Add include of objfiles.h.
1813 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1814 storage variables.
1815 * Makefile.in (dwarf2loc.o): Update dependencies.
1816
aef9bcd2
AC
18172003-07-22 Andrew Cagney <cagney@redhat.com>
1818
1819 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1820 get_frame_base.
1821 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1822 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1823 (struct value): Add opaque declaration.
1824 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1825
d95a8903
AC
18262003-07-21 Andrew Cagney <cagney@redhat.com>
1827
1828 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1829 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1830
4db73d49
SC
18312003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1832
1833 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1834 regcache_cooked_read_unsigned instead of read_register.
1835 (m68hc11_saved_pc_after_call): Likewise.
1836 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1837 instead of write_register.
1838 (m68hc11_register_type): New function.
1839 (m68hc11_register_virtual_type): Remove.
1840 (m68hc11_store_return_value): Convert to use the regcache.
1841 (m68hc11_extract_struct_value_address): Likewise.
1842 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1843 m68hc11_register_type; undeprecate store_return_value and
1844 extract_struct_value_address.
1845
ef2b8fcd
SC
18462003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1847
1848 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1849 and translate to use regcache.
1850 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1851
625b0b97
AC
18522003-07-18 Andrew Cagney <cagney@redhat.com>
1853
1854 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1855 * gdbarch.h, gdbarch.c: Re-generate.
1856 * i386-tdep.c (i386_gdbarch_init): Do not set
1857 DWARF2_BUILD_FRAME_INFO.
1858 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1859 unconditionally.
1860 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1861 DWARF2_BUILD_FRAME_INFO.
1862
22b0d388
AC
18632003-07-18 Andrew Cagney <cagney@redhat.com>
1864
1865 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1866 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1867
1ce5d6dd
AC
18682003-07-18 Andrew Cagney <cagney@redhat.com>
1869
1870 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1871 frame_unwind_address_in_block, instead of frame_pc_unwind.
1872 (dwarf2_frame_cache): Ditto.
1873
e6e5e94c
AC
18742003-07-18 Andrew Cagney <cagney@redhat.com>
1875
1876 * user-regs.h (struct gdbarch): Declare opaque.
1877 * ui-out.h (struct ui_file): Declare opaque.
1878 * dwarf2-frame.h (struct frame_info): Declare opaque.
1879
5483d879
KW
18802003-07-18 Kris Warkentin <kewarken@qnx.com>
1881
1882 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1883 #include "...".
1884 (procfs_meminfo): Change strerror to safe_strerror.
1885 (procfs_can_run): Remove K&R badness.
1886
278a7cf7
MS
18872003-07-17 Michael Snyder <msnyder@redhat.com>
1888
1889 * remote-sim.c: Comment typo fix.
1890
606e3b82
AC
18912003-07-17 Andrew Cagney <cagney@redhat.com>
1892
1893 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1894 configure.
1895 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1896 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1897 GDB_MULTI_ARCH_PARTIAL.
1898
c43af07c
EZ
18992003-07-17 Elena Zannoni <ezannoni@redhat.com>
1900
1901 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1902 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1903 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1904
3b85b0f1
TR
19052003-07-16 Theodore A. Roth <troth@openavr.org>
1906
1907 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1908 found.
1909 (avr_frame_unwind_cache): Don't unwind FP for main.
1910 Update a comment.
1911 Save the computed prev_sp.
1912 (avr_saved_regs_unwinder): Remove function.
1913 (avr_frame_prev_register): Use PC unwind logic from
1914 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1915
336d1bba
AC
19162003-07-16 Andrew Cagney <cagney@redhat.com>
1917
1918 * frame-base.h (frame_base_p_ftype): Delete definition.
1919 (frame_base_append_predicate): Delete declaration.
1920 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1921 (frame_unwind_append_predicate): Delete declaration.
1922 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1923 (append_predicate): Delete parameter "p".
1924 (frame_unwind_append_predicate): Delete function.
1925 (frame_unwind_append_sniffer): Update call to append_predicate.
1926 (frame_unwind_free): Delete function.
1927 (_initialize_frame_unwind): Pass NULL as "free" to
1928 register_gdbarch_data.
1929 (frame_unwind_init): Append the dummy_frame_sniffer.
1930 (frame_unwind_find_by_frame): Simplify.
1931 * frame-base.c (struct frame_base_table): Delete field "p".
1932 (append_predicate): Delete parameter "p".
1933 (frame_base_append_predicate): Delete function.
1934 (frame_base_append_sniffer): Update call to append_predicate.
1935 (frame_base_free): Delete function.
1936 (frame_base_find_by_frame): Simplify.
1937 (_initialize_frame_base): Pass NULL as "free" to
1938 register_gdbarch_data.
1939 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1940 (x86_64_sigtramp_frame_sniffer): Replace
1941 "x86_64_sigtramp_frame_p".
1942 (x86_64_init_abi): Set the frame unwind sniffers.
1943 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1944 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1945 (m68k_gdbarch_init): Set the frame unwind sniffers.
1946 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1947 "i386_sigtramp_frame_p".
1948 (i386_frame_sniffer): Replace "i386_frame_p".
1949 (i386_gdbarch_init): Set the frame unwind sniffers.
1950 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1951 (avr_gdbarch_init): Set the frame unwind sniffers.
1952 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1953 "alpha_sigtramp_frame_p"
1954 (alpha_heuristic_frame_sniffer): Replace
1955 "alpha_heuristic_frame_p".
1956 (alpha_gdbarch_init): Set the frame unwind sniffers.
1957 (alpha_dwarf2_init_abi): Ditto.
1958 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1959 "alpha_debug_frame_p".
1960 (alpha_mdebug_frame_base_sniffer): Replace
1961 "alpha_mdebug_frame_base_p".
1962 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1963 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1964 (d10v_gdbarch_init): Set the frame unwind sniffer.
1965 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1966 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1967 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1968 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1969 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1970 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1971
48db5a3c
CV
19722003-07-16 Michael Snyder <msnyder@redhat.com>
1973
1974 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1975 should go thru sh_dsp_register_sim_regno, else the dsp regs
1976 will not get the right values.
1977
19782003-07-16 Corinna Vinschen <vinschen@redhat.com>
1979
1980 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1981 deprecated_store_floating by call to store_typed_floating.
1982 (sh_sh4_register_convert_to_raw): Substitute call to
1983 deprecated_extract_floating by call to extract_typed_floating.
1984
19852003-07-16 Corinna Vinschen <vinschen@redhat.com>
1986
1987 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
1988
19892003-07-16 Corinna Vinschen <vinschen@redhat.com>
1990
1991 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
1992 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
1993 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
1994 as possible.
1995 (do_pseudo_register): Remove.
1996 (sh_push_dummy_code): New function.
1997 (sh64_store_struct_return): Rename from sh_store_struct_return.
1998 Only called for sh64 now.
1999 (sh_extract_struct_value_address): Regcache'ify.
2000 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2001 and accomodate new tasks.
2002 (sh64_push_return_address): Rename from sh_push_return_address.
2003 Only called for sh64 now.
2004 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2005 Regcache'ify.
2006 (sh3e_sh4_extract_return_value): Regcache'ify.
2007 (sh_default_store_return_value): Ditto.
2008 (sh3e_sh4_store_return_value): Ditto.
2009 (sh_default_register_byte): Remove.
2010 (sh_sh4_register_byte): Remove.
2011 (sh_default_register_raw_size): Remove.
2012 (sh_sh4_register_raw_size): Remove.
2013 (sh_register_virtual_size): Remove.
2014 (sh_sh3e_register_virtual_type): Remove.
2015 (sh_sh3e_register_type): New function.
2016 (sh_sh4_register_virtual_type): Remove.
2017 (sh_sh4_register_type): New function.
2018 (sh_default_register_virtual_type): Remove.
2019 (sh_default_register_type): New function.
2020 (do_fv_register_info): Add parameters to accomodate call from
2021 sh_print_registers_info.
2022 (do_dr_register_info): Ditto.
2023 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2024 Add parameters to accomodate call from sh_print_registers_info.
2025 (sh_do_fp_register): Ditto.
2026 (sh64_do_pseudo_register): Call do_dr_register_info,
2027 do_fv_register_info and sh_do_fp_register with default parameters.
2028 (sh_do_register): Add parameters to accomodate call from
2029 sh_print_registers_info.
2030 (sh_print_register): Ditto.
2031 (sh_print_registers_info): Rename from sh_do_registers_info.
2032 Add parameters to be used as gdbarch_print_registers_info
2033 implementation. Accomodate removed do_pseudo_register function
2034 pointer.
2035 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2036 function pointer. Call sh_print_register with default parameters.
2037 (sh64_do_registers_info): Call sh_print_registers_info instead of
2038 sh_do_registers_info.
2039 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2040 detection of deprecated vs. non-deprecated functionality.
2041 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2042 function pointer assignments by direct function calls.
2043
e8a89fe2
AC
20442003-07-15 Andrew Cagney <cagney@redhat.com>
2045
2046 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2047 (frame_register_unwind, create_new_frame): Ditto.
2048 (legacy_get_prev_frame, get_frame_type): Ditto.
2049 (get_frame_base_address): Use frame_base_find_by_frame.
2050 (get_frame_locals_address): Use frame_base_find_by_frame.
2051 (get_frame_args_address): Use frame_base_find_by_frame.
2052 * frame-base.h (frame_base_sniffer_ftype): Declare.
2053 (frame_base_append_sniffer): Declare.
2054 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2055 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2056 (frame_base_append_sniffer): New function.
2057 (frame_base_append_predicate): Add a NULL sniffer.
2058 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2059 (struct frame_base_table): Add "sniffer".
2060 (frame_base_free): Free the "sniffer" table.
2061 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2062 (frame_unwind_append_sniffer): Declare.
2063 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2064 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2065 (struct frame_unwind_table): Add "sniffer", delete "middle".
2066 (append_predicate): Add "sniffer" parameter, append the sniffer.
2067 (frame_unwind_init): Update append_predicate call.
2068 (frame_unwind_append_sniffer): New function.
2069 (frame_unwind_append_predicate): Update append_predicate call.
2070 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2071
0714963c
AC
20722003-07-15 Andrew Cagney <cagney@redhat.com>
2073
2074 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2075 before code inhibiting repeated unwind attempts. Add to
2076 commentary on that test's problems.
2077 * blockframe.c (inside_main_func): Look for "main" in the minimal
2078 symbol table.
2079 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2080 identical.
2081
d9170e22
AC
20822003-07-15 Andrew Cagney <cagney@redhat.com>
2083
2084 * complaints.c (struct explanation): Define.
2085 (struct complaints): Change type of "explanation" to "struct
2086 explanation".
2087 (symfile_explanations): Convert to a "struct explanation" table.
2088 (vcomplaint): Update.
2089
eba29c8c
ML
20902003-07-15 Michal Ludvig <mludvig@suse.cz>
2091
2092 * x86-64-linux-nat.c (regmap): Removed.
2093 (supply_gregset, fill_gregset): Call
2094 x86_64_linux_(fill,supply)_gregset functions.
2095 * x86-64-linux-tdep.c (USER_*): New defines.
2096 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2097 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2098 New functions.
2099 (fetch_core_registers): Ditto.
2100 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2101 * x86-64-linux-tdep.h: New file.
2102 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2103 and core-regset.o.
2104 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2105
68cc0bfb
MK
21062003-07-13 Mark Kettenis <kettenis@gnu.org>
2107
88a115f7
MK
2108 * x86-64-tdep.c (x86_64_store_return_value): Use
2109 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2110
68cc0bfb
MK
2111 * configure.host: Add x86_64-*-freebsd*.
2112 * configure.tgt: Add x86_64-*-freebsd*.
2113 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2114 * amd64fbsd-nat.c: New file.
2115 * amd64fbsd-tdep.c: New file.
2116 * config/i386/nm-fbsd64.h: New file.
2117 * config/i386/fbsd64.mh: New file.
2118 * config/i386/fbsd64.mt: New file.
2119
138e7be5
MK
21202003-07-11 Mark Kettenis <kettenis@gnu.org>
2121
2122 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2123 `sc_regs_offset' and `sc_fpregs_offset'.
2124 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2125 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2126 (alpha_sigtramp_register_address): Rewrite to use new members of
2127 `struct gdbarch_tdep'.
2128 (alpha_gdbarch_init): Initialize new members of struct
2129 gdbarch_tdep'.
2130 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2131 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2132 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2133 (alphafbsd_pc_in_sigtramp): Implement.
2134 (alphafbsd_sigtramp_offset): New function.
2135 (alphafbsd_sigcontext_addr): New function.
2136 (alphafbsd_init_abi): Initialize signal trampoline related members
2137 of `struct gdbarch_tdep'.
2138 (_initialize_alphafbsd_tdep): Add prototype.
2139
95303a68
TR
21402003-07-11 Theodore A. Roth <troth@openavr.org>
2141
ba292e4c
TR
2142 * Makefile.in (install-only): Quote sed expression when generating
2143 transformed_name.
95303a68 2144
6896c0c7
RH
21452003-07-11 Richard Henderson <rth@redhat.com>
2146
2147 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2148 * dwarf2-frame.c: Include complaints.h.
2149 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2150 variable initialization; return NULL on error.
2151 (decode_frame_entry): New.
2152
8edd5d01
AC
21532003-07-11 Andrew Cagney <cagney@redhat.com>
2154
c4a09524
AC
2155 * frame.h (frame_address_in_block): Delete declaration.
2156 * blockframe.c (frame_address_in_block): Delete function.
2157 (get_frame_block): Use get_frame_address_in_block.
2158 (block_innermost_frame): Ditto.
2159 * stack.c (print_frame, backtrace_command_1): Ditto.
2160
8edd5d01
AC
2161 * frame.h (get_frame_address_in_block): Declare.
2162 (frame_unwind_address_in_block): Declare.
2163 * frame.c (frame_unwind_address_in_block): New function.
2164 (get_frame_address_in_block): New function.
2165
f7968451
AC
21662003-07-10 Andrew Cagney <cagney@redhat.com>
2167
2168 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2169 pre-default. Note: re-generate has no effect.
2170
ae99b398
AC
21712003-07-10 Andrew Cagney <cagney@redhat.com>
2172
2173 * gdbarch.sh: When a variable, but not a function, compare against
2174 0. Fix problem in previous patch.
2175 * gdbarch.c: Re-generate.
2176
956ac328
AC
21772003-07-10 Andrew Cagney <cagney@redhat.com>
2178
2179 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2180 functions against NULL, not 0.
2181 * gdbarch.c: Re-generate.
2182
287c3240
FF
21832003-07-10 Fred Fish <fnf@ninemoons.com>
2184
2185 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2186 null string instead of a null pointer.
2187 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2188
32f63c4b
MS
21892003-07-09 Michael Snyder <msnyder@redhat.com>
2190
2191 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2192
402ecd56
MK
21932003-07-09 Mark Kettenis <kettenis@gnu.org>
2194
2195 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2196 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2197 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2198 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2199 * x86-64-tdep.c: ... from here.
2200
c481dac7
AS
22012003-07-09 Andreas Schwab <schwab@suse.de>
2202
2203 * m68k-tdep.h (enum struct_return): Define.
2204 (struct gdbarch_tdep): Add struct_return.
2205 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2206 bytes are padded to the right, not to the left. Pass struct value
2207 address in register %a1, not on stack.
2208 (m68k_use_struct_convention): New function.
2209 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2210 struct_return in tdep to pcc_struct_return.
2211 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2212 reg_struct_return.
2213
64176fa3
JB
22142003-07-09 Joel Brobecker <brobecker@gnat.com>
2215
2216 * somread.c (som_symfile_offsets): Fix compilation error.
2217
96a4ee76
AC
22182003-07-09 Andrew Cagney <cagney@redhat.com>
2219
2220 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2221 Add comments about the checks.
2222
1517c6d1
AC
22232003-07-08 Andrew Cagney <cagney@redhat.com>
2224
2225 * Makefile.in: Make dependency section headers consistent.
2226 (config_h): Move to $BUILD headers section.
2227 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2228 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2229 (ada-exp.tab.c): Move to YACC/LEX section.
2230 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2231 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2232
dc5dd1eb
KW
22332003-07-08 Kris Warkentin <kewarken@qnx.com>
2234
2235 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2236 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2237 of strerror with safe_strerror, use ISO C function definitions,
2238 and replace instances of sprintf with snprintf.
dc5dd1eb 2239
612dde91
AC
22402003-07-07 Andrew Cagney <cagney@redhat.com>
2241
2242 * frame.c (get_prev_frame): Enable check for identical frames.
2243 Update comments. Update error messages.
2244
492c11d3
JB
22452003-07-07 Joel Brobecker <brobecker@gnat.com>
2246
2247 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2248
376a5a49
JB
22492003-07-07 Joel Brobecker <brobecker@gnat.com>
2250
2251 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2252 sort_symtab_syms, no longer necessary.
2253
22b4a9ad
JB
22542003-07-07 Joel Brobecker <brobecker@gnat.com>
2255
2256 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2257
5bbcb741
JB
22582003-07-07 Joel Brobecker <brobecker@gnat.com>
2259
2260 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2261 (mips_register_byte): Likewise.
2262
c139e7d9
DJ
22632003-07-07 Daniel Jacobowitz <drow@mvista.com>
2264
2265 * Makefile.in (sparc_tdep_h): New.
2266 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2267 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2268 * sparc-linux-nat.c: Include "sparc-tdep.h".
2269 * sparc-nat.c: Likewise.
2270 * sparc-tdep.c: Likewise.
2271 * sparc64nbsd-nat.c: Likewise.
2272 * sparcnbsd-nat.c: Likewise.
2273 * sparcnbsd-tdep.c: Likewise.
2274 * sparc-tdep.h: New file.
2275 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2276 and sparc_npc_regnum.
2277
fd8f87c5
DJ
22782003-07-07 Daniel Jacobowitz <drow@mvista.com>
2279
2280 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2281 (mips_linux_cannot_store_register): List supported instead of
2282 unsupported registers.
2283
13adf674
DJ
22842003-07-07 Daniel Jacobowitz <drow@mvista.com>
2285
2286 * disasm.c (dump_insns): Separate instructions from addresses.
2287
8de307e0
AS
22882003-07-07 Andreas Schwab <schwab@suse.de>
2289
2290 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2291 dependencies.
2292 * m68k-tdep.c (NUM_FREGS): Delete.
2293 (SIG_PC_FP_OFFSET): Delete.
2294 (TARGET_M68K): Delete.
2295 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2296 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2297 P_MOVEL_SP, P_MOVEML_SP): Define.
2298 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2299 P_TRAP): Delete.
2300 (m68k_register_raw_size): Delete.
2301 (m68k_register_virtual_size): Delete.
2302 (m68k_register_type): Renamed from m68k_register_virtual_type and
2303 add gdbarch argument.
2304 (m68k_store_struct_return): Delete.
2305 (m68k_deprecated_extract_return_value): Delete.
2306 (m68k_deprecated_extract_struct_value_address): Delete.
2307 (m68k_frame_chain): Delete.
2308 (m68k_frame_saved_pc): Delete.
2309 (m68k_fix_call_dummy): Delete.
2310 (m68k_push_dummy_frame): Delete.
2311 (m68k_pop_frame): Delete.
2312 (m68k_extract_return_value): New function.
2313 (m68k_store_return_value): Rewrite using regcache.
2314 (m68k_extract_struct_value_address): Rewrite using regcache.
2315 (m68k_push_dummy_call): New function.
2316 (struct m68k_frame_cache): Define.
2317 (m68k_alloc_frame_cache): New function.
2318 (m68k_analyze_frame_setup): New function.
2319 (m68k_analyze_register_saves): New function.
2320 (m68k_analyze_prologue): New function.
2321 (m68k_skip_prologue): Rewrite using above functions.
2322 (m68k_unwind_pc): New function.
2323 (m68k_frame_cache): New function.
2324 (m68k_frame_this_id): New function.
2325 (m68k_frame_prev_register): New function.
2326 (m68k_frame_unwind): New variable.
2327 (m68k_frame_p): New function.
2328 (m68k_sigtramp_frame_cache): New function.
2329 (m68k_sigtramp_frame_this_id): New function.
2330 (m68k_sigtramp_frame_prev_register): New function.
2331 (m68k_sigtramp_frame_unwind): New variable.
2332 (m68k_sigtramp_frame_p): New function.
2333 (m68k_frame_base_address): New function.
2334 (m68k_frame_base): New function.
2335 (m68k_unwind_dummy_id): New function.
2336 (fill_gregset): Use regcache_collect.
2337 (fill_fpregset): Likewise.
2338 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2339 defined.
2340 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2341 deprecated_init_frame_pc, deprecated_store_struct_return,
2342 deprecated_extract_return_value, deprecated_store_return_value,
2343 deprecated_frame_chain, deprecated_frame_saved_pc,
2344 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2345 deprecated_register_virtual_size,
2346 deprecated_max_register_raw_size,
2347 deprecated_max_register_virtual_size,
2348 deprecated_register_virtual_type, deprecated_register_size,
2349 deprecated_register_byte, deprecated_register_bytes,
2350 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2351 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2352 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2353 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2354 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2355 deprecated_push_dummy_frame, deprecated_pop_frame,
2356 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2357 only if SYSCALL_TRAP is defined. Set extract_return_value,
2358 store_return_value, extract_struct_value_address, register_type,
2359 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2360 predicates.
2361 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2362 M68K_MAX_REGISTER_SIZE): Define.
2363 (struct m68k_sigtramp_info): Define.
2364 (struct gdbarch_tdep): Add get_sigtramp_info.
2365 * m68klinux-nat.c (fetch_register): Use register_size instead of
2366 REGISTER_RAW_SIZE. Don't put assignment in if.
2367 (store_register): Likewise.
2368 (fetch_inferior_registers): Likewise.
2369 (store_inferior_registers): Likewise.
2370 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2371 (m68k_linux_frame_saved_pc): Delete.
2372 (m68k_linux_sigcontext_reg_offset,
2373 m68k_linux_ucontext_reg_offset): Define.
2374 (m68k_linux_get_sigtramp_info): New function.
2375 (m68k_linux_extract_return_value): Rewrite using regcache.
2376 (m68k_linux_store_return_value): Likewise.
2377 (m68k_linux_extract_struct_value_address): Likewise.
2378 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2379 Don't set deprecated_frame_saved_pc,
2380 deprecated_extract_return_value, deprecated_store_return_value,
2381 deprecated_extract_struct_value_address. Set
2382 extract_return_value, store_return_value,
2383 extract_struct_value_address.
2384
eb8bc282
AC
23852003-07-07 Andrew Cagney <cagney@redhat.com>
2386
2387 * expprint.c: Include "user-regs.h" instead of "frame.h".
2388 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2389 frame_map_regnum_to_name.
2390 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2391 (frame_map_name_to_regnum): Simplify, call
2392 user_reg_map_name_to_regnum.
2393 (frame_map_regnum_to_name): Simplify, call
2394 user_reg_map_regnum_to_name.
2395 (frame_register_unwind): Update.
2396 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2397 (_initialize_frame_reg): Call user_reg_add_builtin.
2398 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2399 (value_of_register): Use value_of_user_reg.
2400 * eval.c (evaluate_subexp_standard): Update.
2401 * parse.c (write_dollar_variable): Update.
2402 * d10v-tdep.c (d10v_print_registers_info): Update.
2403 * infcmd.c (registers_info): Update.
2404 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2405 (builtin_regs_h): Delete macro.
2406 (user_regs_h): Define.
2407 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2408 (builtin-regs.o): Delete target.
2409 (user-regs.o): Specify dependencies.
2410 (expprint.o): Update dependencies.
2411 (findvar.o): Update dependencies.
2412 (frame.o): Update dependencies.
2413 (std-regs.o): Update dependencies.
2414
9f476a01
CF
24152003-07-06 Christopher Faylor <cgf@redhat.com>
2416
2417 * win32-nat.c (solib_symbols_add): Use one variable for all section
2418 address stuff. Pass variable rather than address of variable to
2419 safe_symbol_file_add.
2420
a731b831
AS
24212003-07-06 Andreas Schwab <schwab@suse.de>
2422
2423 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2424
9f83329d
JB
24252003-07-04 Joel Brobecker <brobecker@gnat.com>
2426
2427 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2428
27e28cc5
KW
24292003-07-04 Kris Warkentin <kewarken@qnx.com>
2430
2431 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2432
24332003-07-04 Kris Warkentin <kewarken@qnx.com>
2434
2435 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2436 * config/i386/nto.mh: New file.
2437 * config/i386/nm-nto.h: New file.
2438 * configure.host: Add i[3456]86-*-nto*.
2439
100f2e98
JB
24402003-07-03 Joel Brobecker <brobecker@gnat.com>
2441
2442 * remote-vx.c (vx_add_symbols): Fix compilation error.
2443
e23457df
AC
24442003-07-03 Andrew Cagney <cagney@redhat.com>
2445
2446 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2447 * gdbarch.h, gdbarch.c: Re-generate.
2448 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2449 (legacy_register_name): Declare.
2450 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2451 (REGISTER_NAME): Define.
2452 * sparc-tdep.c (legacy_register_name): New function.
2453 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2454 (REGISTER_NAME): Define.
2455 (hppa64_register_name): Declare.
2456 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2457 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2458 (hppa64_register_name): New function.
2459 (hppa_register_name): New function.
2460 * arch-utils.c (legacy_register_name): Delete.
2461 * arch-utils.h (legacy_register_name): Delete.
2462
38caaeec
DJ
24632003-07-03 Daniel Jacobowitz <drow@mvista.com>
2464
2465 * cli/cli-interp.c (cli_interpreter_resume): Update the
2466 cli_uiout's stream to gdb_stdout.
2467
dadd712e
AC
24682003-07-03 Andrew Cagney <cagney@redhat.com>
2469
2470 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2471 predicate.
2472 * gdbarch.h, gdbarch.c: Re-generate.
2473 * regcache.c (init_regcache_descr): Use legacy code when either
2474 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2475
c7f1390e
DJ
24762003-07-02 Daniel Jacobowitz <drow@mvista.com>
2477
2478 * NEWS: Move "set logging" entry into GDB 6.0 section.
2479
4bc8c588
JB
24802003-07-02 Jim Blandy <jimb@redhat.com>
2481
a9dd42f1
JB
2482 * s390-tdep.c (struct frame_extra_info): new member:
2483 'stack_bought_valid'.
2484 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2485 initialize fextra_info->stack_bought.
2486 (s390_frameless_function_invocation): Don't trust the value of
2487 fextra_info_ptr->stack_bought unless
2488 fextra_info->stack_bought_valid is set.
2489
4bc8c588
JB
2490 New S390 prologue analyzer.
2491 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2492 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2493 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2494 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2495 compute_x_addr, s390_on_stack, s390_store,
2496 s390_get_signal_frame_info): New functions.
2497 (S390_NUM_SPILL_SLOTS): New macro.
2498 (s390_get_frame_info): Rewritten.
2499 (is_arg_reg): Deleted.
2500
2501 Break out the decoding of S/390 instructions into separate
2502 functions, to make it more legible, and easier to check
2503 against the spec.
2504 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2505 is_rx, is_rxe): New functions.
2506 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2507 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2508 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2509 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2510 enums for opcode values. (Is this an improvement?)
2511
fd13a04a
AC
25122003-07-02 Andrew Cagney <cagney@redhat.com>
2513
2514 * i386-tdep.c: Revert change committed as part of trad-frame code
2515 below.
2516
3f8091c1
DJ
25172003-07-02 Daniel Jacobowitz <drow@mvista.com>
2518
2519 * breakpoint.c (insert_catchpoint): Make static.
2520
8dd5115e
AS
25212003-07-02 Andreas Schwab <schwab@suse.de>
2522
2523 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2524 former ia64_push_arguments and ia64_push_return_address, and use
2525 regcache functions instead of read/write_register.
2526 (ia64_gdbarch_init): Set push_dummy_call instead of
2527 deprecated_push_arguments and deprecated_push_return_address.
2528
a2229c23
AJ
25292003-07-01 Andreas Jaeger <aj@suse.de>
2530
2531 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2532 before the call.
2533 Set %rax only to number of SSE registers used.
2534
3b3850e8
AC
25352003-07-01 Andrew Cagney <cagney@redhat.com>
2536
2537 * trad-frame.h: Update comments, a -1 .addr is reserved.
2538 (trad_frame_value_p, trad_frame_addr_p): Declare.
2539 (trad_frame_reg_p): Declare.
2540 (trad_frame_set_value): Rename trad_frame_register_value.
2541 (trad_frame_set_unknown): Declare.
2542 * trad-frame.c (trad_frame_realreg_p): New function.
2543 (trad_frame_addr_p, trad_frame_value_p): New function.
2544 (trad_frame_set_unknown): New function.
2545 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2546 (trad_frame_prev_register): Use trad_frame_realreg_p,
2547 trad_frame_addr_p and trad_frame_value_p.
2548 (trad_frame_set_value): Rename trad_frame_register_value.
2549 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2550 and trad_frame_set_value.
a2229c23 2551
4d819d0e
JB
25522003-06-30 Jim Blandy <jimb@redhat.com>
2553
2554 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2555 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2556 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2557 for 16 registers, and then 32 more bytes.
2558 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2559 New macros.
2560 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2561 Move up in the file, since it's now used by is_simple_arg.
2562 (is_simple_arg): Don't assume registers are four bytes long.
2563 Exclude all double arguments. Extended floats are not simple
2564 args.
2565 (is_power_of_two): New function.
2566 (pass_by_copy_ref): Call is_power_of_two, and check that the
2567 length fits in a register, rather than listing all the acceptable
2568 sizes. Extended floats are not passed by reference.
2569 (s390_push_arguments): Don't assume registers are four bytes long.
2570 Reserve an argument register to point to the buffer for structures
2571 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2572 S390_STACK_FRAME_OVERHEAD.
2573
1ad828f1
AS
25742003-06-30 Andreas Schwab <schwab@suse.de>
2575
2576 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2577 format error message.
2578
39b00981
JB
25792003-06-30 Joel Brobecker <brobecker@gnat.com>
2580
2581 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2582
b2a7f303
DC
25832003-06-30 David Carlton <carlton@kealia.com>
2584
2585 Band-aid for PR c++/1245.
2586 * Makefile.in (cp-support.o): Depend on complaints_h.
2587 * cp-support.c: Include complaints.h. Add declaration for
2588 find_last_component.
2589 (cp_find_first_component): Separate code into
2590 cp_find_first_component_aux.
2591 (cp_find_first_component_aux): Call demangled_name_complaint.
2592 (demangled_name_complaint): New.
2593
a257b5bb
AC
25942003-06-30 Andrew Cagney <cagney@redhat.com>
2595
2596 * remote.c (remote_write_bytes): Explicitly compute and then use
2597 the payload size. Update comments to reflect. Fixes problem of
2598 GDB not sending small packets as found by Fred Fish.
2599
0a2cfde4
AC
26002003-06-30 Andrew Cagney <cagney@redhat.com>
2601
2602 * remote.c (remote_async_wait): Fix -Wformat problem.
2603
3fcb8548
AC
26042003-06-29 Andrew Cagney <cagney@redhat.com>
2605
2606 * remote.c (remote_wait): Call error, and not warning, when the
2607 packet is corrupt.
2608 (remote_async_wait): Ditto.
2609
9f9970a3
DJ
26102003-06-29 Daniel Jacobowitz <drow@mvista.com>
2611
2612 * sparc-tdep.c (sparc_y_regnum): Make external again.
2613
83a8ccca
DJ
26142003-06-29 Daniel Jacobowitz <drow@mvista.com>
2615
2616 * cli/cli-logging.c (pop_output_files): Add void to function
2617 definition.
2618
d2cf594a
AC
26192003-06-29 Andrew Cagney <cagney@redhat.com>
2620
2621 * frame.c (frame_register_unwind): Use unsigned char when dumping
2622 the buffer contents.
2623
0fac0b41
DJ
26242003-06-28 Daniel Jacobowitz <drow@mvista.com>
2625
2626 * cli/cli-logging.c: New file.
2627 * cli-out.c (struct ui_out_data): Add original_stream.
2628 (cli_redirect): New function.
2629 (cli_ui_out_impl): Add cli_redirect.
2630 (cli_out_new): Initialize original_stream.
2631 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2632 (uo_redirect, ui_out_redirect): New.
2633 * ui-out.h (struct ui_out_impl): Add redirect member.
2634 (redirect_ftype): New.
2635 (ui_out_redirect): Add prototype.
2636 * Makefile.in: Add rules for cli-logging.c.
2637 * NEWS: Mention "set logging".
2638
88a07d7c
EZ
26392003-06-27 Elena Zannoni <ezannoni@redhat.com>
2640
2641 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2642
4eb58876
AC
26432003-06-27 Andrew Cagney <cagney@redhat.com>
2644
2645 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2646 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2647 * avr-tdep.c (avr_call_dummy_address): Delete function.
2648 (avr_gdbarch_init): Do not set call_dummy_address.
2649
1549f619
EZ
26502003-06-27 Elena Zannoni <ezannoni@redhat.com>
2651
2652 * symfile.c (syms_from_objfile): Move variables to inner block.
2653 Move the checks for the non-mainline case a bit earlier to avoid
2654 doing some useless computations.
2655
3cb3398d
EZ
26562003-06-27 Elena Zannoni <ezannoni@redhat.com>
2657
2658 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2659
3799ccc6
EZ
26602003-06-26 Elena Zannoni <ezannoni@redhat.com>
2661
2662 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2663 sections.
2664
ce1f6491
MC
26652003-06-26 Michael Chastain <mec@shout.net>
2666
2667 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2668 gdb/testsuite/gdb.c++/pr-1210.exp.
2669
d958dfd0
AC
26702003-06-26 Andrew Cagney <cagney@redhat.com>
2671
2672 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2673 altivec_expression.h and altivec_registers.h.
2674
d31431ed
AC
26752003-06-26 Andrew Cagney <cagney@redhat.com>
2676
2677 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2678 info->mach when MIPS16. Patch suggested by Fred Fish.
2679
714b1282
AC
26802003-06-26 Andrew Cagney <cagney@redhat.com>
2681
2682 * utils.c (internal_vproblem): Print the problem to a reason
2683 buffer and then pass to query. Make the msg variable more local.
2684
42efa47a
AC
26852003-06-26 Andrew Cagney <cagney@redhat.com>
2686
2687 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2688 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2689 * gdbarch.h, gdbarch.c: Re-generate.
2690 * frame-base.c (default_frame_args_address): Update. Use
2691 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2692 not available.
2693 (default_frame_locals_address): Ditto for
2694 DEPRECATED_FRAME_LOCALS_ADDRESS.
2695 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2696 (vax_frame_num_args): Update.
2697 (vax_gdbarch_init): Update.
2698 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2699 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2700 * mcore-tdep.c (mcore_gdbarch_init): Update.
2701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2702 * ia64-tdep.c (ia64_gdbarch_init): Update.
2703 * symtab.h (address_class): Update comments.
2704 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2705 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2706 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2707 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2708 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2709 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2710 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2711 * alpha-mdebug-tdep.c: Update.
2712 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2713
8ffd9b1b
AJ
27142003-06-26 Andreas Jaeger <aj@suse.de>
2715
2716 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2717 of SSE registers so that varargs functions work. Rework handling
2718 of passing arguments on the stack.
2719 (x86_64_store_return_value): Return double and float values in SSE
2720 register.
2721
e8ac10a6
MC
27222003-06-24 Michael Chastain <mec@shout.net>
2723
2724 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2725 the "constructor breakpoints ignored" bug.
2726
986af8e6
DC
27272003-06-25 David Carlton <carlton@kealia.com>
2728
2729 * MAINTAINERS: Update e-mail address.
2730
d64558a5
JB
27312003-06-24 Jim Blandy <jimb@redhat.com>
2732
e538d2d7
JB
2733 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2734
02631ec0
JB
2735 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2736 function.
2737 (ppc_linux_init_abi): Register it as the
2738 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2739
e716d87a
JB
2740 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2741 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2742 method.
2743
d64558a5
JB
2744 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2745 (ppc64_standard_linkage_target): Use it.
2746
449a5da4
AC
27472003-06-23 Andrew Cagney <cagney@redhat.com>
2748
2749 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2750 for 0 "int0" and 4 "int32" sized registers.
2751 * gdbtypes.c (builtin_type_int0): Define.
2752 (build_gdbtypes): Initialize builtin_type_int0.
2753 * gdbtypes.h (builtin_type_int0): Declare.
2754
b2a02dda
SC
27552003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2756
2757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2758 as characters are unsigned.
2759
fba3138e
DJ
27602003-06-22 Daniel Jacobowitz <drow@mvista.com>
2761
2762 PR gdb/1179
2763 * dwarfread.c (struct_type): Skip static fields without crashing.
2764
f6c8180b
AC
27652003-06-22 Andrew Cagney <cagney@redhat.com>
2766
2767 GDB 6.0 branch created.
f2c06f52
AC
2768 * README: Update.
2769 * PROBLEMS: Update. Empty.
2770 * NEWS: Update.
f6c8180b 2771
ae822768
DJ
27722003-06-22 Daniel Jacobowitz <drow@mvista.com>
2773
2774 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2775 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2776
261de166
AC
27772003-06-22 Andrew Cagney <cagney@redhat.com>
2778
2779 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2780 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2781 Velikov.
2782
30e94205
DJ
27832003-06-22 Daniel Jacobowitz <drow@mvista.com>
2784
2785 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2786 compilers.
2787
9e14d721
DJ
27882003-06-21 Daniel Jacobowitz <drow@mvista.com>
2789
2790 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2791 argument of val_print.
2792 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2793 to the address argument of baseclass_offset or target_read_memory.
2794 Do add it to the argument of cp_print_value_fields.
2795
a4b8ebc8
AC
27962003-06-21 Andrew Cagney <cagney@redhat.com>
2797
2798 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2799 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2800 instead of 0..NUM_REGS.
2801 (mips_register_reggroup_p): New function.
2802 (mips_pseudo_register_write): New function.
2803 (mips_pseudo_register_read): New function.
2804 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2805 based on the register's type.
2806 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2807 cooked.
2808 (mips_get_saved_register): Simplify. Assert that REGNO is a
2809 pseudo / cooked.
2810 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2811 (mips_register_type): Replace mips_register_virtual_type. Map
2812 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2813 when available.
2814 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2815 that the register is cooked / virtual.
2816 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2817 Only get the extra info when needed.
2818 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2819 (mips32_heuristic_proc_desc): Fetch the cooked register.
2820 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2821 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2822 (mips_print_register): Use gdbarch_register_type, instead of
2823 REGISTER_VIRTUAL_TYPE.
2824 (print_gp_register_row): Use gdbarch_register_type, instead of
2825 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2826 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2827 Print the pseudo / cooked registers.
2828 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2829 Print the pseudo / cooked registers.
2830 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2831 REG_NUM is pseudo / cooked.
2832 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2833 (mips_n32n64_xfer_return_value): Ditto.
2834 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2835 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2836 (mips_register_sim_regno): New function.
2837 (mips_gdbarch_init): Set deprecated_register_byte,
2838 register_group_p, pseudo_register_write, pseudo_register_read,
2839 register_sim_regno, and num_pseudo_regs. Set register_type,
2840 instead of register_virtual_type.
2841 * Makefile.in (mips-tdep.o): Update dependencies.
2842 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2843 REGISTER_VIRTUAL_TYPE.
2844 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2845 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2846 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2847 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2848 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2849
325ed089
DJ
28502003-06-21 Daniel Jacobowitz <drow@mvista.com>
2851
2852 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2853 * cli/cli-cmds.c: Include "gdb_vfork.h".
2854 (shell_escape): Use vfork.
2855
f0e7d0e8
AC
28562003-06-21 Andrew Cagney <cagney@redhat.com>
2857
c57bb9fa
AC
2858 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2859 32 bit floating-point register saves.
2860
6e51443a
AC
2861 * frame.h (deprecated_unwind_get_saved_register): Delete.
2862 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2863 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2864 and deprecated_get_next_frame_hack instead of
2865 deprecated_unwind_get_saved_register.
2866
ed183c7c
AC
2867 * mips-tdep.c (mips_dump_tdep): Do not print
2868 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2869
f0e7d0e8
AC
2870 * frame.c (get_frame_register): New function.
2871 (frame_unwind_register_signed): New function.
2872 (get_frame_register_signed): New function.
2873 (frame_unwind_register_unsigned): New function.
2874 (get_frame_register_unsigned): New function.
2875 * frame.h: Add comments on naming schema.
2876 (get_frame_register, frame_unwind_register_signed): Declare.
2877 (get_frame_register_signed, get_frame_register_signed): Declare.
2878 (frame_unwind_register_unsigned): Declare.
2879 (get_frame_register_unsigned): Declare.
2880
2224d941
TR
28812003-06-20 Theodore A. Roth <troth@openavr.org>
2882
2883 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2884
8619218d
TR
28852003-06-20 Theodore A. Roth <troth@openavr.org>
2886
2887 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2888 (avr_read_sp): Ditto.
2889
0b1b50c0
DJ
28902003-06-20 Daniel Jacobowitz <drow@mvista.com>
2891
2892 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2893 * config/arm/nm-linux.h: Likewise.
2894 * config/arm/tm-linux.h: Likewise.
2895 * config/ia64/nm-linux.h: Likewise.
2896 * config/ia64/tm-ia64.h: Likewise.
2897 * config/s390/tm-linux.h: Likewise.
2898 * config/s390/tm-s390.h: Likewise.
2899 * s390-nat.c: Likewise.
2900 * s390-tdep.c: Likewise.
2901
2902 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2903 * config/ia64/linux.mt: Likewise.
2904 * config/m68k/linux.mh: Likewise.
2905 * config/mips/linux.mt: Likewise.
2906 * config/powerpc/linux.mh: Likewise.
2907 * config/sh/linux.mt: Likewise.
2908
c8c18e65
KW
29092003-06-19 Kris Warkentin <kewarken@qnx.com>
2910
2911 * solib.c (solib_open): Change tests for whether to search
2912 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2913 comments.
2914
dcccef2e
TR
29152003-06-19 Theodore A. Roth <troth@openavr.org>
2916
2917 * avr-tdep.c (avr_frame_address): Delete function.
2918 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2919 set_gdbarch_frame_args_address.
2920
5861a190
AC
29212003-06-19 Andrew Cagney <cagney@redhat.com>
2922
2923 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2924 (REGISTER_CONVERT_FROM_TYPE): Delete.
2925 (mips_register_convert_to_type): Delete declaration.
2926 (mips_register_convert_from_type): Delete declaration.
2927 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2928 kernel/.
2929
0274a8ce
MS
29302003-06-19 Michael Snyder <msnyder@redhat.com>
2931
2932 * linux-nat.h: New file.
2933 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2934 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2935 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2936 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2937 (linux_make_note_section): Iterate over lwps instead of threads.
2938 (linux_do_thread_registers): Use lwp instead of merged pid.
2939 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2940 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2941 Add dependency on linux_nat_h.
2942
adf5f719
TR
29432003-06-19 Theodore A. Roth <troth@openavr.org>
2944
2945 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2946
6766a268
DJ
29472003-06-19 Daniel Jacobowitz <drow@mvista.com>
2948
2949 * varobj.c (get_type, get_target_type): Use check_typedef.
2950
1171114a
DJ
29512003-06-19 Daniel Jacobowitz <drow@mvista.com>
2952
2953 * breakpoint.c (insert_catchpoint): Call internal_error.
2954
adcf68a2
TR
29552003-06-19 Theodore A. Roth <troth@openavr.org>
2956
2957 * avr-tdep.c (avr_push_dummy_code): Delete function.
2958 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2959
ea67f13b
DJ
29602003-06-19 Daniel Jacobowitz <drow@mvista.com>
2961
2962 * arch-utils.c (default_prepare_to_proceed): Remove.
2963 (generic_prepare_to_proceed): Remove.
2964 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2965 (generic_prepare_to_proceed): Remove prototype.
2966 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2967 * gdbarch.c: Regenerate.
2968 * gdbarch.h: Regenerate.
2969 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2970 * hppah-nat.c (hppa_switched_threads): Remove.
2971 * infrun.c (prepare_to_proceed): New static function, copied from
2972 generic_prepare_to_proceed. Remove select_it argument.
2973 (proceed): Call prepare_to_proceed.
2974 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2975 variables.
2976 (ptrace_wait): Don't set the removed variables.
2977 (hppa_switched_threads): Remove.
2978 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2979 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2980 (lin_lwp_prepare_to_proceed): Remove prototype.
2981 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2982 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2983
4add8633
TR
29842003-06-18 Theodore A. Roth <troth@openavr.org>
2985
2986 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
2987 trad-frame.h.
2988 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
2989 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
2990 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
2991 (AVR_PROLOGUE_*): Enumerate prologue types.
2992 (struct frame_extra_info): Remove.
2993 (struct avr_unwind_cache): Define.
2994 (avr_write_sp): Delete function.
2995 (avr_read_fp): Ditto.
2996 (avr_init_extra_frame_info): Ditto.
2997 (avr_pop_frame): Ditto.
2998 (avr_frame_saved_pc): Ditto.
2999 (avr_saved_pc_after_call): Ditto.
3000 (avr_push_return_address): Ditto.
3001 (avr_frame_chain): Ditto.
3002 (avr_store_struct_return): Ditto.
3003 (avr_push_arguments): Ditto.
3004 (avr_scan_prologue): Update comments. Changed to set up the info for
3005 cache unwinding. Now returns end of prologue PC.
3006 (avr_skip_prologue): Better handling of functions lacking a prologue
3007 by using avr_scan_prologue.
3008 (avr_scan_arg_moves): New function.
3009 (avr_saved_regs_unwinder): Ditto.
3010 (avr_frame_unwind_cache): Ditto.
3011 (avr_unwind_pc): Ditto.
3012 (avr_frame_this_id): Ditto.
3013 (avr_frame_prev_register): Ditto.
3014 (avr_frame_p): Ditto.
3015 (avr_frame_base_address ): Ditto.
3016 (avr_unwind_dummy_id): Ditto.
3017 (avr_push_dummy_code): Ditto.
3018 (push_stack_item): Ditto.
3019 (pop_stack_item): Ditto.
3020 (avr_push_dummy_call): Ditto.
3021 (struct stack_item): Define.
3022 (avr_frame_unwind): Declare structure.
3023 (avr_frame_base): Ditto.
3024 (avr_gdbarch_init): Remove calls to
3025 set_gdbarch_deprecated_init_frame_pc,
3026 set_gdbarch_deprecated_target_read_fp,
3027 set_gdbarch_deprecated_dummy_write_sp,
3028 set_gdbarch_deprecated_fp_regnum,
3029 set_gdbarch_deprecated_push_arguments,
3030 set_gdbarch_deprecated_push_return_address,
3031 set_gdbarch_deprecated_pop_frame,
3032 set_gdbarch_deprecated_store_struct_return,
3033 set_gdbarch_deprecated_frame_init_saved_regs,
3034 set_gdbarch_deprecated_init_extra_frame_info,
3035 set_gdbarch_deprecated_frame_chain,
3036 set_gdbarch_deprecated_frame_saved_pc,
3037 set_gdbarch_deprecated_saved_pc_after_call.
3038 Add calls to set_gdbarch_push_dummy_call,
3039 set_gdbarch_push_dummy_code,
3040 frame_unwind_append_predicate,
3041 frame_base_set_default,
3042 set_gdbarch_unwind_dummy_id,
3043 set_gdbarch_unwind_pc.
3044 Wrap a long line.
3045
7be04a68
MS
30462003-06-18 Corinna Vinschen <vinschen@redhat.com>
3047
3048 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3049 registers for H8/300S.
3050 (h8300_print_registers_info): Ditto.
8ffd9b1b 3051 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3052
ae087d01
DJ
30532003-06-18 Daniel Jacobowitz <drow@mvista.com>
3054
3055 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3056 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3057 (lin_lwp_wait): Likewise. Update comments.
3058 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3059 (pull_pid_from_list, linux_record_stopped_pid): New.
3060
07d8f827
SC
30612003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3062
3063 * ada-lang.c (scan_discrim_bound): Name first argument.
3064 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3065 declared by ALL_BLOCK_SYMBOLS.
3066
7cb47b14
SC
30672003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3068
3069 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3070 ("regcache.h"): Include it.
3071 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3072
6ad8ae5c
DJ
30732003-06-17 Daniel Jacobowitz <drow@mvista.com>
3074
3075 * NEWS: Mention gdbserver detach change and "disconnect" command.
3076 * infcmd.c (disconnect_command): New function.
3077 (_initialize_infcmd): Add ``disconnect'' command.
3078 * remote.c (remote_async_detach): Delete.
3079 (remote_detach): Merge remote_async_detach.
3080 (remote_disconnect): New.
3081 (init_remote_ops): Set to_disconnect.
3082 (init_remote_cisco_ops): Likewise.
3083 (init_remote_async_ops): Likewise. Use remote_detach.
3084 * target.c (cleanup_target): Default to_disconnect.
3085 (update_current_target): Inherit to_disconnect.
3086 (target_disconnect, debug_to_disconnect): New functions.
3087 (setup_target_debug): Set to_disconnect.
3088 * target.h (struct target_ops): Add to_disconnect.
3089 (target_disconnect): Add prototype.
3090
687595f9
DJ
30912003-06-17 Daniel Jacobowitz <drow@mvista.com>
3092
3093 * breakpoint.c (insert_catchpoint): New function.
3094 (insert_breakpoints): Use catch_exceptions to call
3095 insert_catchpoint. Disable catchpoints if they fail to insert.
3096
29239a8f
DJ
30972003-06-17 Daniel Jacobowitz <drow@mvista.com>
3098
3099 * symfile.c (reread_symbols): Clear sym_private.
3100
2cdf3c63
AC
31012003-06-17 Andrew Cagney <cagney@redhat.com>
3102
3103 * trad-frame.h (struct frame_info): Add opaque declaration.
3104 * remote-fileio.h (struct cmd_list_element): Add opaque
3105 declaration.
3106 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3107 comments.
3108
cf0e1e0d
DJ
31092003-06-17 Daniel Jacobowitz <drow@mvista.com>
3110
3111 * remote.c (remote_prepare_to_store): Replace call to
3112 deprecated_read_register_bytes with multiple regcache_raw_read
3113 calls.
3114
192cdb19
KW
31152003-06-17 Kris Warkentin <kewarken@qnx.com>
3116
3117 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3118 (nto_find_and_open_solib): Likewise.
3119 (nto_init_solib_absolute_prefix): Likewise.
3120 (_initialize_nto_tdep): Fix indentation.
3121
89929b45
KW
31222003-06-17 Kris Warkentin <kewarken@qnx.com>
3123
3124 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3125
46019f27
KW
31262003-06-17 Kris Warkentin <kewarken@qnx.com>
3127
3128 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3129
1a38736e
JB
31302003-06-17 Jim Blandy <jimb@redhat.com>
3131
3132 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3133
3605c34a
TR
31342003-06-16 Theodore A. Roth <troth@openavr.org>
3135
3136 * avr-tdep.c (avr_extract_return_value): New function.
3137 (avr_gdbarch_init): Set extract_return_value method.
3138
870b3035
AC
31392003-06-16 Andrew Cagney <cagney@redhat.com>
3140
3141 * frame.h (deprecated_get_next_frame_hack): Declare.
3142 * frame.c (legacy_saved_regs_prev_register): Only require
3143 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3144 there are always saved regs.
3145 (deprecated_generic_get_saved_register): Do not require
3146 DEPRECATED_FRAME_INIT_SAVED_REGS.
3147 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3148 use frame ID unwind instead.
3149 (deprecated_get_next_frame_hack): New function.
3150
63d47a7d
CV
31512003-06-16 Corinna Vinschen <vinschen@redhat.com>
3152
3153 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3154 (h8300_push_dummy_call): ...this function. Some minor optimization.
3155 (h8300_push_return_address): Remove.
3156 (h8300_gdbarch_init): Remove calls to
3157 set_gdbarch_deprecated_dummy_write_sp,
3158 set_gdbarch_deprecated_push_arguments and
3159 set_gdbarch_deprecated_push_return_address.
3160 Add call to set_gdbarch_push_dummy_call.
3161
4bb1dc5e
CV
31622003-06-16 Corinna Vinschen <vinschen@redhat.com>
3163
3164 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3165 (E_PSEUDO_EXR_REGNUM): Ditto.
3166 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3167 registers into safe registers.
4bb1dc5e
CV
3168 (h8300_skip_prologue): Check for stm instruction to push registers
3169 used for register variables onto stack.
3170 (gdb_print_insn_h8300): Remove.
3171 (h8300_examine_prologue): Add a comment.
3172 (h8300_register_name): Take pseudo registers into account.
3173 (h8300s_register_name): Ditto.
3174 (h8300sx_register_name): Ditto.
3175 (h8300_print_register): Ditto.
3176 (h8300_print_registers_info): Define "nice" printing order.
3177 (h8300_saved_pc_after_call): Take pseudo registers into account.
3178 (h8300_register_type): Ditto. Return type used for remote connection
3179 when requesting real CCR or EXR register, return actual type when
3180 requesting pseudo CCR or EXR.
3181 (h8300_pseudo_register_read): New function.
3182 (h8300_pseudo_register_write): Ditto.
3183 (h8300_dbg_reg_to_regnum): Ditto.
3184 (h8300s_dbg_reg_to_regnum): Ditto.
3185 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3186 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3187 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3188 set_gdbarch_print_insn architecture dependent.
3189 Call set_gdbarch_pseudo_register_read and
3190 set_gdbarch_pseudo_register_write.
3191 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3192
a59fe496
AC
31932003-06-16 Andrew Cagney <cagney@redhat.com>
3194
3195 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3196 * gdbarch.h, gdbarch.c: Re-generate.
3197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3198 * s390-tdep.c (s390_gdbarch_init): Update.
3199 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3200 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3201 * mips-tdep.c (mips_gdbarch_init): Update.
3202 * mcore-tdep.c (mcore_gdbarch_init): Update.
3203 * cris-tdep.c (cris_gdbarch_init): Update.
3204 * infcall.c (call_function_by_hand): Update.
3205 * ia64-tdep.c (ia64_push_arguments): Update comment.
3206 * frame.c (legacy_get_prev_frame): Do not assume
3207 SAVE_DUMMY_FRAME_TOS_P.
3208 * dummy-frame.c (find_dummy_frame): Update comment.
3209
6f4e5a41
AC
32102003-06-16 Andrew Cagney <cagney@redhat.com>
3211
3212 * regcache.c (do_cooked_read): Do not use register_valid_p.
3213
72fab697
TR
32142003-06-15 Theodore A. Roth <troth@openavr.org>
3215
3216 * avr-tdep.c (avr_register_type): Remove a blank line.
3217 (avr_scan_prologue): Correct some comments.
3218
e3d8b004
TR
32192003-06-15 Theodore A. Roth <troth@openavr.org>
3220
3221 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3222 prologue types.
8ffd9b1b 3223 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3224 option.
3225 Add code to scan -mcall-prologues for mega devices.
3226
866b76ea
TR
32272003-06-15 Theodore A. Roth <troth@openavr.org>
3228
3229 * avr-tdep.c (avr_register_byte): Delete function.
3230 (avr_register_raw_size): Delete function.
3231 (avr_register_virtual_size): Delete function.
3232 (avr_register_virtual_type): Delete function.
3233 (avr_register_type): New function.
3234 (avr_address_to_pointer): Remove unused code.
3235 (avr_read_fp): Need to read FP as two separate bytes due to change to
3236 avr_register_type() usage.
3237 (avr_gdbarch_init): Don't set deprecated_register_size.
3238 Don't set deprecated_register_bytes.
3239 Don't set deprecated_register_byte.
3240 Don't set deprecated_register_raw_size.
3241 Don't set deprecated_max_register_raw_size.
3242 Don't set deprecated_register_virtual_size.
3243 Don't set deprecated_max_register_virtual_size.
3244 Don't set deprecated_register_virtual_type.
3245 Set register_type method.
3246
3993f6b1
DJ
32472003-06-15 Daniel Jacobowitz <drow@mvista.com>
3248
3249 * Makefile.in (linux-nat.o): Add rule.
3250 * linux-nat.c: New file.
3251 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3252 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3253 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3254 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3255 * config/arm/linux.mh (NATDEPFILES): Likewise.
3256 * config/i386/linux.mh (NATDEPFILES): Likewise.
3257 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3258 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3259 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3260 * config/mips/linux.mh (NATDEPFILES): Likewise.
3261 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3262 * config/s390/s390.mh (NATDEPFILES): Likewise.
3263 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3264
786a90bb
MK
32652003-06-15 Mark Kettenis <kettenis@gnu.org>
3266
3267 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3268 replace out-of-date comment.
3269
3bd3f01e
AC
32702003-06-15 Andrew Cagney <cagney@redhat.com>
3271
3272 * rdi-share/host.h (Fail): Change to a varargs function.
3273 * remote-rdi.c (Fail): Update.
8ffd9b1b 3274
de5b9bb9
MK
32752003-06-15 Mark Kettenis <kettenis@gnu.org>
3276
3277 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3278 (i386_convert_register_p, i386_register_to_value,
3279 i386_register_from_value): Handle types longer than 8 bytes.
3280
d532c08f
MK
32812003-06-15 Mark Kettenis <kettenis@gnu.org>
3282
3283 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3284 Move floating-point code to new function in i387-tdep.c.
3285 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3286 New functions containing code moved here from i386-tdep.c.
3287 * i387-tdep.h: Add opaque declaration for `struct type'.
3288 (i387_register_to_value, i387_value_to_register): New prototypes.
3289 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3290 (x86_64_init_abi): Set convert_register_p, register_to_value and
3291 value_to_register here.
8ffd9b1b 3292
42c466d7
AC
32932003-06-14 Andrew Cagney <cagney@redhat.com>
3294
3295 * mips-tdep.c (mips_register_to_value): Make static.
3296 (mips_value_to_register): Make static.
3297 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3298 * ia64-tdep.c (ia64_register_raw_size): Make static.
3299 (ia64_register_virtual_size): Make static.
3300 (ia64_register_byte): Make static.
3301 * i387-tdep.c: Include "i387-tdep.h".
3302 (print_387_control_word): Delete function.
3303 (print_387_status_word): Delete function.
3304 (print_387_status_bits): Delete function.
3305 (print_387_control_bits): Delete function.
3306 * Makefile.in (i387-tdep.o): Update dependencies.
3307 * rdi-share/host.h (Fail): Declare.
3308 * remote-rdi.c (Fail): Update to match declaration.
3309
2a9cda49
AC
33102003-06-14 Andrew Cagney <cagney@redhat.com>
3311
3312 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3313 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3314 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3315 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3316 * README: Delete reference to remote-array.
3317 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3318 (remote-array.o): Delete target.
3319 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3320 * remote-array.c: Delete file.
3321
ff2e87ac
AC
33222003-06-14 Andrew Cagney <cagney@redhat.com>
3323 Mark Kettenis <kettenis@gnu.org>
3324
3325 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3326 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3327 parameter with "frame".
3328 * gdbarch.h, gdbarch.c: Re-generate.
3329 * frame.h (put_frame_register): Declare.
3330 * frame.c (put_frame_register): New function.
3331 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3332 (legacy_register_to_value): Rewrite, use "frame" to get the
3333 register value.
3334 (legacy_value_to_register): Rewrite, use "frame" to find the
3335 register's location before storing.
3336 * arch-utils.h (legacy_convert_register_p): Update.
3337 (legacy_register_to_value, legacy_value_to_register): Update.
3338 * findvar.c (value_from_register): Rewrite, eliminate use of
3339 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3340 "frame" to REGISTER_TO_VALUE.
3341 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3342 lval_reg_frame_relative + lval_register branch of the switch. Do
3343 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3344 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3345 I386_EDI_REGNUM): New defines.
3346 (i386_next_regnum, i386_convert_register_p,
3347 i386_register_to_value, i386_value_to_register): New functions.
3348 (i386_register_convertible, i386_register_convert_to_virtual,
3349 i386_convert_to_raw): Remove functions.
3350 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3351 value_to_register instead of register_convertible,
3352 register_convert_to_virtual and register_convert_to_raw.
3353 * mips-tdep.c (mips_convert_register_p): New function.
3354 (mips_value_to_register): Replace mips_register_convert_from_type.
3355 (mips_register_to_value): Replace mips_register_convert_to_type.
3356 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3357 register_to_value.
3358 * alpha-tdep.c (alpha_convert_register_p): Update.
3359 (alpha_value_to_register): Update, store the register.
3360 (alpha_register_to_value): Update, fetch the register.
3361
98be1e77
TR
33622003-06-14 Theodore A. Roth <troth@openavr.org>
3363
3364 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3365 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3366 Don't set deprecated_call_dummy_words.
3367 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3368 Don't set remote_translate_xfer_address.
3369 (avr_io_reg_read_command): Remove commented out debug printf.
3370 Wrap a long line.
3371
57bc6122
TR
33722003-06-14 Theodore A. Roth <troth@openavr.org>
3373
3374 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3375 causes gdb to seg fault.
3376
eb01fc62
DJ
33772003-06-14 Daniel Jacobowitz <drow@mvista.com>
3378
3379 * sparc-nat.c (fetch_inferior_registers): Correct
3380 a reference to "registers".
3381
3b3e6bee
DJ
33822003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3383
3384 * Makefile.in (exc_request_U_h): Define
3385 (exc_request_S_h): Likewise.
3386 (msg_reply_S_h): Likewise.
3387 (msg_U_h): Likewise.
3388 (notify_S_h): Likewise.
3389 (process_reply_S_h): Likewise.
3390 (gnu-nat.o): Depend on gdb_obstack_h
3391 * gnu-nat.c: Include "gdb_obstack.h".
3392
b8de8283
AC
33932003-06-13 Andrew Cagney <cagney@redhat.com>
3394
3395 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3396 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3397
f3be58bc
AC
33982003-06-13 Andrew Cagney <cagney@redhat.com>
3399
3400 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3401 when deprecated REGISTER macros can be deleted.
3402 * gdbarch.h, gdbarch.c: Re-generate.
3403
4c0122c8
JB
34042003-06-13 Jim Blandy <jimb@redhat.com>
3405
3406 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3407 Linux entry point symbols for _dl_debug_state, too.
3408
3e210248
AC
34092003-06-13 Andrew Cagney <cagney@redhat.com>
3410
3411 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3412 available, do not use the FP register, and always save the TOS.
3413 * dummy-frame.c (dummy_frame_this_id): Do not assert
3414 SAVE_DUMMY_FRAME_TOS.
3415 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3416 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3417 (i386_push_dummy_call): Add 8 to the returned SP.
3418 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3419 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3420 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3421 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3422 (x86_64_push_dummy_call): Return "sp + 16".
3423 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3424 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3425 save_dummy_frame_tos.
3426
0b65af49
JB
34272003-06-13 Jim Blandy <jimb@redhat.com>
3428
3429 * frv-tdep.c (frv_use_struct_convention): Delete static
3430 declaration for function deleted in my change of 2003-06-12.
3431
4ea2465e
TR
34322003-06-13 Theodore A. Roth <troth@openavr.org>
3433
3434 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3435 (avr_pointer_to_address): Shift code addrs left 1 bit.
3436 (avr_convert_from_func_ptr_addr): Delete function since operation is
3437 better handled by avr_address_to_pointer and avr_pointer_to_address.
3438 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3439
1581182a
MK
34402003-06-13 Mark Kettenis <kettenis@gnu.org>
3441
3442 From Kelley Cook <kelleycook@wideopenwest.com>:
3443 * configure.host: Accept i[34567]86 variants.
3444 * configure.tgt: Likewise.
3445 * nlm/configure.in: Likewise.
3446 * nlm/configure: Regenerated.
3447
7aa1783e
RE
34482003-06-13 Richard Earnshaw <rearnsha@arm.com>
3449
3450 * arm-tdep.c (solib-svr4.h): Dont' include it.
3451 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3452 * arm-linux-tdep.c: ... here. Make static.
3453 (arm_linux_init_abi): Register it.
3454 (solib-svr4.h): Include it.
3455 * Makefile.in: Update dependencies.
3456 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3457 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3458
0261a0d0
CV
34592003-06-13 Corinna Vinschen <vinschen@redhat.com>
3460
3461 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3462 indicate registers used for return values.
3463 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3464 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3465 members.
3466 (h8300_init_extra_frame_info): Ditto.
3467 (h8300_frame_locals_address): Removed.
3468 (h8300_frame_args_address): Removed.
3469 (h8300_extract_return_value): Use new regcache structure. Only care
3470 for 16 bit CPUs.
3471 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3472 (h8300_store_return_value): Use new regcache structure. Only care
3473 for 16 bit CPUs.
3474 (h8300h_store_return_value): Same function for 32 bit CPUs.
3475 (h8300_store_struct_return): Removed.
3476 (h8300_extract_struct_value_address): Use new regcache structure.
3477 (h8300h_extract_struct_value_address): Removed.
3478 (h8300_push_dummy_code): New function.
3479 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3480 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3481 set_gdbarch_store_return_value architecture dependent.
3482 Call set_gdbarch_push_dummy_code and
3483 set_gdbarch_extract_struct_value_address.
3484 Remove calls to set_gdbarch_frame_args_address,
3485 set_gdbarch_frame_locals_address,
3486 set_gdbarch_deprecated_store_struct_return,
3487 set_gdbarch_deprecated_extract_return_value,
3488 set_gdbarch_deprecated_extract_struct_value_address,
3489 set_gdbarch_deprecated_call_dummy_words and
3490 set_gdbarch_deprecated_sizeof_call_dummy_words.
3491
055c394a
CV
34922003-06-13 Corinna Vinschen <vinschen@redhat.com>
3493
3494 * h8300-tdep.c (h8300_register_byte): Remove.
3495 (h8300h_register_byte): Remove.
3496 (h8300_register_virtual_type): Remove. Substitute by...
3497 (h8300_register_type): New function.
3498 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3499 (h8300h_extract_struct_value_address): Ditto.
3500 (h8300_gdbarch_init): Drop calls to
3501 set_gdbarch_deprecated_register_byte and
3502 set_gdbarch_deprecated_register_virtual_type.
3503 Add call to set_gdbarch_register_type.
3504
9c04cab7
AC
35052003-06-13 Andrew Cagney <cagney@redhat.com>
3506
3507 * gdbarch.sh: Update comments on registers.
3508 (deprecated_register_byte): Rename register_byte.
3509 (deprecated_register_raw_size): Rename register_raw_size.
3510 (deprecated_register_virtual_size): Rename register_virtual_size.
3511 (deprecated_register_virtual_type): Rename register_virtual_type.
3512 * gdbarch.h, gdbarch.c: Re-generate.
3513 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3514 * vax-tdep.c (vax_gdbarch_init): Update.
3515 * v850-tdep.c (v850_gdbarch_init): Update.
3516 * sparc-tdep.c (sparc_gdbarch_init): Update.
3517 * sh-tdep.c (sh_gdbarch_init): Update.
3518 * s390-tdep.c (s390_gdbarch_init): Update.
3519 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3520 * ns32k-tdep.c: Update.
3521 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3522 * mips-tdep.c (mips_gdbarch_init): Update.
3523 * mcore-tdep.c (mcore_gdbarch_init): Update.
3524 * m68k-tdep.c (m68k_gdbarch_init): Update.
3525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3526 * ia64-tdep.c (ia64_gdbarch_init): Update.
3527 * hppa-tdep.c (hppa_gdbarch_init): Update.
3528 * h8300-tdep.c (h8300_gdbarch_init): Update.
3529 * frv-tdep.c (frv_gdbarch_init): Update.
3530 * cris-tdep.c (cris_gdbarch_init): Update.
3531 * avr-tdep.c (avr_gdbarch_init): Update.
3532 * alpha-tdep.c (alpha_gdbarch_init): Update.
3533 * arm-tdep.c (arm_gdbarch_init): Update.
3534
b060cbea
AC
35352003-06-13 Andrew Cagney <cagney@redhat.com>
3536
3537 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3538 mips_o32_use_struct_convention with always_use_struct_convention.
3539
0fc9922a
DC
35402003-06-12 David Carlton <carlton@kealia.com>
3541
3542 * cp-namespace.c (cp_set_block_scope): Comment out
3543 processing_has_namespace_info branch.
3544
1fd35568
JB
35452003-06-12 Jim Blandy <jimb@redhat.com>
3546
f470a70a
JB
3547 Recognize and skip 64-bit PowerPC Linux linkage functions.
3548 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3549 insn_pattern, insns_match_pattern, d_field, ds_field): New
3550 functions, macros, and types for working with PPC instructions.
3551 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3552 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3553 ppc64_skip_trampoline_code): New functions, variables, and macros
3554 for recognizing and skipping linkage functions.
3555 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3556 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3557
49ff75ad
JB
3558 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3559 register offsets for both the 32- and 64-bit interfaces.
3560
bd918c83
JB
3561 Actually finish the job started by my change of 2003-05-29.
3562 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3563 other #definition of this.
3564 (ppc_linux_skip_trampoline_code): Remove declaration.
3565 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3566 static.
3567 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3568 method for GDBARCH.
3569
3570 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3571 'long' on ppc64-*-linux*.
3572
f8c59253
JB
3573 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3574 isn't #defined, assume the register doesn't exist: act as if
3575 tdep->ppc_mq_regnum were -1.
3576
8fbb30b1
JB
3577 * configure.host, configure.tgt: Add entries for
3578 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3579 powerpc/linux.mt.
3580 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3581 New files.
3582
1fd35568
JB
3583 * arch-utils.c (always_use_struct_convention): New function.
3584 * arch-utils.h (always_use_struct_convention): New prototype.
3585 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3586 (alpha_gdbarch_init): Register always_use_struct_convention,
3587 instead of alpha_use_struct_convention.
3588 * cris-tdep.c (cris_use_struct_convention): Delete.
3589 (cris_gdbarch_init): Register always_use_struct_convention,
3590 instead of cris_use_struct_convention.
3591 * frv-tdep.c (frv_use_struct_convention): Delete.
3592 (frv_gdbarch_init): Register always_use_struct_convention,
3593 instead of frv_use_struct_convention.
3594 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3595 (h8300_gdbarch_init): Register always_use_struct_convention,
3596 instead of h8300_use_struct_convention.
e3305dd9 3597 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3598 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3599 instead of mips_o32_use_struct_convention.
3600
e14e6e9c
AC
36012003-06-12 Andrew Cagney <cagney@redhat.com>
3602
3603 * wince.c: Include "mips-tdep.h".
3604 * mips-tdep.h (mips_next_pc): Declare.
3605 * mcore-tdep.c: Make more local functions static.
3606 * Makefile.in (wince.o): Update dependencies.
3607
2335f48e
DC
36082003-06-12 David Carlton <carlton@kealia.com>
3609
3610 * symtab.c (lookup_symbol_aux_minsyms): Replace
3611 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3612 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3613 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3614 SYMBOL_NATURAL_NAME.
3615
f70a7d61
AS
36162003-06-12 Andreas Schwab <schwab@suse.de>
3617
3618 * Makefile.in (tuiDisassem.o): Update dependencies.
3619
b6429628
DC
36202003-06-12 David Carlton <carlton@bactrian.org>
3621
3622 * symtab.h: Delete declaration of make_symbol_overload_list.
3623 Add declaration of lookup_partial_symbol.
3624 * symtab.c (remove_params): Move to cp-support.c.
3625 (overload_list_add_symbol, make_symbol_overload_list)
3626 (sym_return_val_size, sym_return_val_index): Ditto.
3627 (lookup_partial_symbol): Make extern.
3628 * cp-support.h: Add declaration of make_symbol_overload_list.
3629 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3630 symtab.h, and block.h.
3631 (remove_params): Move here from symtab.c.
3632 (overload_list_add_symbol, make_symbol_overload_list)
3633 (sym_return_val_size, sym_return_val_index): Ditto.
3634 * valops.c: Include cp-support.h.
3635 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3636 frame_h, and block_h.
3637 (valops.o): Depend on cp_support_h.
3638
084edea5
CV
36392003-06-12 Corinna Vinschen <vinschen@redhat.com>
3640
3641 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3642 substitute by NUM_REGS throughout.
3643 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3644 (h8300s_register_name): New function for H8S registers.
3645 (h8300sx_register_name): Ditto for H8SX registers.
3646 (h8300_print_register): Revise register printing, avoid depending
3647 on 32 bit long.
0261a0d0 3648 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3649 (h8300h_register_byte): New function for any other architecture.
3650 (h8300_register_raw_size): Remove.
3651 (h8300_register_virtual_type): Revise to return actually useful
3652 type.
3653 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3654 (h8300h_extract_struct_value_address): New function for any other
3655 architecture.
3656 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3657 set_gdbarch_register_name, set_gdbarch_register_byte,
3658 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3659 Remove calls to set_gdbarch_deprecated_register_size,
3660 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3661 set_gdbarch_deprecated_max_register_raw_size,
3662 set_gdbarch_register_virtual_size and
3663 set_gdbarch_deprecated_max_register_virtual_size entirely.
3664 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3665 set_gdbarch_long_double_bit.
3666
06194148
JJ
36672003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3668
8ffd9b1b
AJ
3669 * doublest.c (convert_doublest_to_floatformat): When dealing
3670 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3671 processing a full 32 bits of mantissa.
3672
de4f826b
DC
36732003-06-11 David Carlton <carlton@bactrian.org>
3674
3675 * dictionary.h: New.
3676 * dictionary.c: New.
3677 * block.h: Add opaque declaration for struct dictionary.
3678 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3679 'sym' members.
3680 (BLOCK_DICT): New macro.
3681 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3682 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3683 BLOCK_SHOULD_SORT.
3684 (ALL_BLOCK_SYMBOLS): Update definition.
3685 * Makefile.in (SFILES): Add dictionary.c.
3686 (dictionary_h): New.
3687 (COMMON_OBS): Add dictionary.o.
3688 (dictionary.o): New.
3689 (ada-lang.o): Depend on dictionary_h.
3690 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3691 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3692 (mi-cmd-stack.o): Ditto.
3693 (gdbtk-cmds.o): Update dependencies.
3694 (gdbtk-stack.o): Ditto.
3695 * ada-lang.c: Include dictionary.h.
3696 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3697 (fill_in_ada_prototype, debug_print_block): Ditto.
3698 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3699 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3700 'is_sorted'.
3701 * mdebugread.c: Include dictionary.h.
3702 (struct parse_stack): Delete 'maxsyms' member.
3703 (parse_symbol): Update calls to new_block. Delete calls to
3704 shrink_block. Use dictionary methods.
3705 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3706 Update calls to new_symtab. Don't maintain maxsyms data.
3707 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3708 (add_symbol): Just call dict_add_symbol.
3709 (new_symtab): Delete 'maxsyms' argument.
3710 (new_symtab): Update calls to new_block.
3711 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3712 (shrink_block): Delete function.
3713 (fixup_sigtramp): Update call to new_block. Add symbol via
3714 dict_add_symbol.
3715 * jv-lang.c: Include dictionary.h.
3716 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3717 appropriately. Set class_symtab->free_func. Make sure the
3718 blockvector is big enough to hold two blocks.
3719 (add_class_symtab_symbol): Use dictionary methods.
3720 (free_class_block): New function.
3721 (type_from_class): Replace explicit iteration by
3722 ALL_BLOCK_SYMBOLS.
3723 * symtab.h (struct symtab): Replace 'free_ptr' method by
3724 'free_func'.
3725 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3726 sort_symtab_syms.
3727 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3728 sort_symtab_syms.
3729 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3730 Include dictionary.h.
3731 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3732 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3733 sort_symtab_syms.
3734 * objfiles.c: Include dictionary.h.
3735 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3736 * buildsym.c: Include dictionary.h.
3737 (finish_block): Use dictionary methods.
3738 (end_symtab): Set free_func to NULL, not free_ptr.
3739 * tracepoint.c: Include dictionary.h.
3740 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3741 (scope_info): Ditto.
3742 * stack.c: Include dictionary.h.
3743 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3744 (print_block_frame_labels, print_frame_arg_vars)
3745 (print_frame_args): Ditto.
3746 * symmisc.c (free_symtab_block): Use dictionary methods.
3747 (dump_symtab): Ditto.
3748 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3749 Include dictionary.h.
3750 * symfile.h: Delete declarations of sort_block_syms,
3751 sort_symtab_syms.
3752 * symfile.c (sort_block_syms): Delete.
3753 (sort_symtab_syms): Delete.
3754 * symtab.c: Include dictionary.h.
3755 (lookup_block_symbol): Use dictionary iterators.
3756 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3757 (search_symbols, make_symbol_completion_list): Ditto.
3758 (make_symbol_overload_list): Ditto.
3759 * valops.c (value_of_local): Use dict_empty.
3760 Include dictionary.h.
3761
a31f978c
JB
37622003-06-11 J. Brobecker <brobecker@gnat.com>
3763
3764 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3765
526e70c0
DC
37662003-06-11 David Carlton <carlton@bactrian.org>
3767
3768 * block.h (BLOCK_SHOULD_SORT): Delete.
3769 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3770 blocks.
3771 * ada-lang.c (ada_add_block_symbols): Ditto.
3772 * symfile.c (sort_block_syms): Delete.
3773 (sort_symtab_syms): Ditto.
3774 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3775 declarations.
3776 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3777 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3778 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3779 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3780 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3781 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3782 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3783
33c08150
JJ
37842003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3785
8ffd9b1b 3786 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3787 bits to 128.
3788
781a750d
AC
37892003-06-11 Andrew Cagney <cagney@redhat.com>
3790
3791 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3792 REGISTER_CONVERTIBLE.
3793 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3794 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3795 * gdbarch.h, gdbarch.c: Re-generate.
3796 * arch-utils.h (deprecated_register_convertible_not): Rename
3797 generic_register_convertible_not.
3798 * arch-utils.c (deprecated_register_convertible_not): Rename
3799 generic_register_convertible.
3800 (legacy_convert_register_p, legacy_register_to_value): Update.
3801 * sh-tdep.c (sh64_push_arguments): Update.
3802 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3803 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3804 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3805 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3806 * arch-utils.c (legacy_value_to_register): Update.
3807 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3808 (rs6000_register_convert_to_raw): Make parameter "from" const.
3809 * mips-tdep.c (mips_gdbarch_init): Update.
3810 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3811 * infcmd.c (default_print_registers_info): Update.
3812 * ia64-tdep.c (ia64_gdbarch_init): Update.
3813 (ia64_register_convert_to_raw): Make parameter "from" const.
3814 * i386-tdep.c (i386_gdbarch_init): Update.
3815 (i386_register_convert_to_raw): Update.
3816
cd90e54f
AC
38172003-06-11 Andrew Cagney <cagney@redhat.com>
3818
3819 * remote-fileio.c: Include "remote-fileio.h".
3820 * Makefile.in (remote-fileio.o): Update dependencies.
3821 (remote_fileio_h): Fix typo.
3822
a78f21af
AC
38232003-06-11 Andrew Cagney <cagney@redhat.com>
3824
3825 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3826 (xstormy16_save_dummy_frame_tos): Make static.
3827 (_initialize_xstormy16_tdep): Add declaration.
3828 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3829 * v850-tdep.c: Make local functions static.
3830 (_initialize_v850_tdep): Add declaration.
3831 * sparc-tdep.c: Make local functions static.
3832 (_initialize_sparc_tdep): Add declaration.
3833 * sh-tdep.c: Make local functions static.
3834 (_initialize_sh_tdep): Add declaration.
3835 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3836 * s390-tdep.c: Make local functions static.
3837 (_initialize_s390_tdep): Add declaration.
3838 * dbxread.c (find_stab_function_addr): Make static.
3839 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3840 * ocd.c (_initialize_remote_ocd): Add declaration.
3841 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3842 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3843 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3844 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3845 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3846 * remote-array.c (_initialize_array): Add declaration.
3847 (_initialize_remote_monitors): Add declaration.
3848 * remote-mips.c: Make local functions static.
3849 (_initialize_remote_mips): Add declaration.
3850 * mcore-tdep.c: Make all local functions static.
3851 (_initialize_mcore_tdep): Add declaration.
3852 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3853 * abug-rom.c (_initialize_abug_rom): Add declaration.
3854 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3855 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3856 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3857 * remote-est.c (_initialize_est): Add declaration.
3858 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3859 (m68hc11_call_dummy_address): Make static.
3860 * ia64-tdep.c: Make local functions static.
3861 (_initialize_ia64_tdep): Add declaration.
3862 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3863 * monitor.c (monitor_wait_filter): Make static.
3864 (_initialize_remote_monitors): Add declaration.
3865 * remote-hms.c (_initialize_remote_hms): Add declaration.
3866 * remote-e7000.c (fetch_regs_from_dump): Make static.
3867 (expect_n): Make static.
3868 (_initialize_remote_e7000): Add declaration.
3869 * ser-e7kpc.c: Always include "defs.h".
3870 (_initialize_ser_e7000pc): Add declaration.
3871 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3872 * cris-tdep.c: Make all but one function static.
3873 (_initialize_cris_tdep): Add declaration.
3874 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3875 * solib.c (update_solib_list): Make static.
3876 (_initialize_solib): Add declaration.
3877 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3878 (_initialize_avr_tdep): Add declaration.
3879 * remote-rdi.c (voiddummy): Make static.
3880 (_initialize_remote_rdi): Add declaration.
3881 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3882 * remote-rdp.c (send_rdp): Make static.
3883 (_initialize_remote_rdp): Add declaration.
3884 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3885
cbcdb1f5
CV
38862003-06-11 Corinna Vinschen <vinschen@redhat.com>
3887
3888 * remote-fileio.c: Make ari happy.
3889
a191ea8d
JB
38902003-06-10 J. Brobecker <brobecker@gnat.com>
3891
3892 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3893 fetching the trailing bytes of the buffer we are about to write.
3894
0ef75e11
AC
38952003-06-10 Andrew Cagney <cagney@redhat.com>
3896
3897 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3898 * Makefile.in (remote-fileio.o): Update dependencies.
3899 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3900 include <setjmp.h>, or <sys/types.h> conditional on USG.
3901 (remote_fio_jmp_buf): Delete global variable.
3902
449092f6 39032003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3904 Martin M. Hunt <hunt@redhat.com>
449092f6 3905
559fa028
AC
3906 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3907 (SFILES): Add remote-fileio.c.
3908 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3909 dependencies for building remote.o.
449092f6
CV
3910 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3911 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3912 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3913 static storage class.
3914 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3915 'F' packet.
3916 (_initialize_remote): Call initialize_remote_fileio().
3917 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3918 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3919 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3920 (captured_main): Initialize new ui_files.
3921 * ui-file.c: Add read and fgets input functions.
3922 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3923 (null_file_read): New function.
3924 (ui_file_read): New function.
3925 (set_ui_file_read): New function.
3926 (stdio_file_read): New function.
3927 * ui-file.h: New type ui_file_read_ftype.
3928 (set_ui_file_read): Declare.
3929 (ui_file_read): Declare.
3930
248de703
AC
39312003-06-09 Andrew Cagney <cagney@redhat.com>
3932
3933 * frame.h (deprecated_unwind_get_saved_register): Rename
3934 generic_unwind_get_saved_register, update comments.
3935 * mips-tdep.c (mips_get_saved_register): Update.
3936 * frame.c (deprecated_unwind_get_saved_register): Update.
3937
0ed8aa57
AC
39382003-06-09 Andrew Cagney <cagney@redhat.com>
3939
3940 * vax-tdep.c (vax_frame_locals_address): Delete function.
3941 (vax_gdbarch_init): Do not set frame_locals_address.
3942 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3943 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3944 * s390-tdep.c (s390_frame_args_address): Delete function.
3945 (s390_gdbarch_init): Do not set frame_args_address or
3946 frame_locals_address.
3947 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3948 (ns32k_gdbarch_init): Do not set frame_locals_address.
3949 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3950 (hppa_frame_locals_address): Delete function.
3951 (hppa_gdbarch_init): Do not set frame_args_address, or
3952 frame_locals_address.
3953 * arm-tdep.c (arm_frame_args_address): Delete.
3954 (arm_frame_locals_address): Delete.
3955 (arm_gdbarch_init): Do not set frame_args_address, or
3956 frame_locals_address.
3957
983a287a
AC
39582003-06-09 Andrew Cagney <cagney@redhat.com>
3959
3960 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3961 * gdbarch.h, gdbarch.c: Re-generate.
3962 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3963 * arch-utils.c (frame_num_args_unknown): Delete function.
3964 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3965 (frame_info): Use FRAME_NUM_ARGS_P.
3966 * arm-tdep.c (arm_frame_num_args): Delete function.
3967 (arm_gdbarch_init): Do not set frame_num_args.
3968 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3969 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3970 (hppa_gdbarch_init): Do not set frame_num_args.
3971 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3973 frame_num_args to default frame_num_args_unknown.
3974 * v850-tdep.c (v850_gdbarch_init): Ditto.
3975 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3976 * sh-tdep.c (sh_gdbarch_init): Ditto.
3977 * s390-tdep.c (s390_gdbarch_init): Ditto.
3978 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3979 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3980 * mips-tdep.c (mips_gdbarch_init): Ditto.
3981 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3982 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3983 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3984 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3985 * i386-tdep.c (i386_gdbarch_init): Ditto.
3986 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3987 * frv-tdep.c (frv_gdbarch_init): Ditto.
3988 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3989 * cris-tdep.c (cris_gdbarch_init): Ditto.
3990 * avr-tdep.c (avr_gdbarch_init): Ditto.
3991 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3992
8d3b0994
AC
39932003-06-09 Andrew Cagney <cagney@redhat.com>
3994
3995 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
3996 (print_frame_args): Moved to "stack.c".
3997 * stack.c: Include "gdb_assert.h".
3998 (print_frame_nameless_args): Moved from "printcmd.c", made static.
3999 (print_frame_args): Moved from "printcmd.c".
4000 * frame.h (print_frame_args): Delete declaration.
4001 * Makefile.in (stack.o): Update dependencies.
4002
25e3a86b
AC
40032003-06-08 Andrew Cagney <cagney@redhat.com>
4004
4005 * frame.c (get_prev_frame): Remove reference to
4006 frame_args_address_correct in comments.
4007 * frame-base.c (default_frame_args_address): Delete code
4008 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4009 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4010 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4011 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4012 (vax_frame_args_address_correct): Delete declaration.
4013
a9e5fdc2
AC
40142003-06-08 Andrew Cagney <cagney@redhat.com>
4015
4016 * gdbarch.sh (UNWIND_SP): Add.
4017 * gdbarch.h, gdbarch.c: Re-generate.
4018 * frame.c (frame_sp_unwind): New function.
4019 (get_frame_sp): New function.
4020 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4021 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4022 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4023 value.
4024 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4025 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4026
8983bd83
AC
40272003-06-08 Andrew Cagney <cagney@redhat.com>
4028
7fec2c59
AC
4029 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4030 REMOTE_BREAKPOINT.
4031 * remote.c: Update.
4032 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4033 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4034 * config/m68k/tm-sun3.h: Update.
4035 * config/m68k/tm-m68klynx.h: Update.
4036 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4037
8983bd83
AC
4038 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4039 trad_frame". Update comments.
4040 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4041 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4042 (trad_frame_register_value, trad_frame_prev_register): Update.
4043
b9362cc7
AC
40442003-06-08 Andrew Cagney <cagney@redhat.com>
4045
4046 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4047 from GCC's acinclude.m4.
4048 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4049 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4050 * main.c (error_init): Delete declaration.
4051 * defs.h (error_init): Declare.
4052 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4053 (rs6000_convert_from_func_ptr_addr): Make static.
4054 (_initialize_rs6000_tdep): Add declaration.
4055 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4056 (show_commands, set_verbose, show_history): Delete declaration.
4057 * top.h (set_verbose): Add declaration.
4058 (show_history, set_history, show_commands): Add declaration.
4059 (do_restore_instream_cleanup): Add declaration.
4060 * objc-lang.c (specialcmp): Make static.
4061 (print_object_command): Make static.
4062 (find_objc_msgsend): Make static.
4063 (find_objc_msgcall_submethod_helper): Make static.
4064 (find_objc_msgcall_submethod): Make static.
4065 (_initialize_objc_language): Add declaration.
4066 (find_implementation_from_class): Make static.
4067 (find_implementation): Make static.
4068 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4069 * objc-lang.h (lookup_struct_typedef): Add declaration.
4070 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4071 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4072 (do_restore_user_call_depth): Make static.
4073 (do_restore_instream_cleanup): Delete declaration.
4074 (dont_repeat): Delete declaration.
4075 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4076 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4077 * reggroups.c (_initialize_reggroup): Add declaration.
4078 * cp-support.c (_initialize_cp_support): Add declaration.
4079 * cp-abi.c (_initialize_cp_abi): Add declaration.
4080 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4081 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4082 (_initialize_gnu_v3_abi): Add declaration.
4083 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4084 (_initialize_gnu_v2_abi): Add declaration.
4085 * frame-base.c (_initialize_frame_base): Add declaration.
4086 * doublest.c (floatformat_from_length): Make static.
4087 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4088 * frame.c (create_sentinel_frame): Make static.
4089 (_initialize_frame): Add declaration.
4090 * top.c (do_catch_errors): Make static.
4091 (gdb_rl_operate_and_get_next_completion): Make static.
4092 * typeprint.c: Include "typeprint.h".
4093 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4094 (sentinel_frame_this_id): Make static.
4095 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4096 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4097 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4098 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4099 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4100 * maint.c (maintenance_print_architecture): Make static.
4101 * signals/signals.c (_initialize_signals): Add declaration.
4102 * std-regs.c (_initialize_frame_reg): Add declaration.
4103 * jv-exp.y (push_variable): ISO C definition.
4104 (push_qualified_expression_name): Ditto.
4105 * memattr.c (_initialize_mem): Add declaration.
4106 * remote.c (remote_check_watch_resources): Make static.
4107 (remote_stopped_by_watchpoint): Make static.
4108 (remote_stopped_data_address): Make static.
4109 * d10v-tdep.c (nr_dmap_regs): Make static.
4110 (a0_regnum): Make static.
4111 (d10v_frame_unwind_cache): Make static.
4112 (d10v_frame_p): Make static.
4113 * osabi.c (show_osabi): Make static.
4114 (_initialize_gdb_osabi): Add extern declaration.
4115 * gdbtypes.c (make_qualified_type): Make static.
4116 (safe_parse_type): Make static.
4117 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4118 * macrotab.c (macro_bcache_free): Make static.
4119 * interps.c (interp_set_quiet): Make static.
4120 (interpreter_exec_cmd): Make static.
4121 * stack.h (select_frame_command): New file.
4122 * stack.c: Include "stack.h".
4123 (select_frame_command_wrapper): Delete function.
4124 (select_frame_command): Make global.
4125 * infcall.c: Include "infcall.h".
4126 * linespec.c: Include "linespec.h".
4127 * symfile.c (sections_overlap): Make static.
4128 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4129 * charset.c (_initialize_charset): Add missing prototype.
4130 * regcache.c (init_legacy_regcache_descr): Make static.
4131 (do_regcache_xfree): Make static.
4132 (regcache_xfer_part): Make static.
4133 (_initialize_regcache): Add missing prototype.
4134 * breakpoint.c (parse_breakpoint_sals): Make static.
4135 (breakpoint_sals_to_pc): Make static.
4136 * interps.h (clear_interpreter_hooks): ISO C declaration.
4137 * Makefile.in (stack_h): Define.
4138 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4139 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4140
a0f267c7
AC
41412003-06-08 Andrew Cagney <cagney@redhat.com>
4142
4143 * Makefile.in (d10v-tdep.o): Update dependencies.
4144 (SFILES): Add trad-frame.c.
4145 (trad_frame_h): Define.
4146 (COMMON_OBS): Add trad-frame.o.
4147 (trad-frame.o): Specify dependencies.
4148 * d10v-tdep.c: Include "trad-frame.h".
4149 (saved_regs_unwinder): Delete function.
4150 (d10v_frame_prev_register): Use trad_frame_prev_register.
4151 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4152 trad_frame", delete "regs" and "prev_sp".
4153 (prologue_find_regs): Use trad-frame.
4154 * trad-frame.h, trad-frame.c: New files.
4155
4538b4f4
MK
41562003-06-08 Mark Kettenis <kettenis@gnu.org>
4157
4158 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4159
a0273b2f
AF
41602003-06-07 Adam Fedor <fedor@gnu.org>
4161
4162 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4163 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4164 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4165 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4166 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4167 Use it.
4168
3a6c3343
AC
41692003-06-07 Andrew Cagney <cagney@redhat.com>
4170
4171 * symfile.h: Re-indent, clean up comments.
4172
b46e02f6
AC
41732003-06-07 Andrew Cagney <cagney@redhat.com>
4174
4175 * inferior.h (deprecated_write_sp): Replace
4176 generic_target_write_sp.
4177 * regcache.c (deprecated_write_sp): Replace
4178 generic_target_write_sp.
4179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4180 * vax-tdep.c (vax_gdbarch_init): Update.
4181 * v850-tdep.c (v850_gdbarch_init): Update.
4182 * sparc-tdep.c (sparc_gdbarch_init): Update.
4183 * sh-tdep.c (sh_gdbarch_init): Update.
4184 * s390-tdep.c (s390_gdbarch_init): Update.
4185 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4186 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4187 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4188 * mcore-tdep.c (mcore_gdbarch_init): Update.
4189 * m68k-tdep.c (m68k_gdbarch_init): Update.
4190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4191 * ia64-tdep.c (ia64_gdbarch_init): Update.
4192 * h8300-tdep.c (h8300_gdbarch_init): Update.
4193 * frv-tdep.c (frv_gdbarch_init): Update.
4194 * cris-tdep.c (cris_gdbarch_init): Update.
4195 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4196
a42e117c
AC
41972003-06-07 Andrew Cagney <cagney@redhat.com>
4198
4199 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4200 Assert that PC_REGNUM is valid.
4201 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4202
bd1ce8ba
AC
42032003-06-07 Andrew Cagney <cagney@redhat.com>
4204
4205 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4206 * gdbarch.h, gdbarch.c: Regenerate.
4207 * mn10300-tdep.c: Include "gdb_assert.h".
4208 (mn10300_read_fp): New function.
4209 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4210 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4211 * ia64-tdep.c: Include "gdb_assert.h".
4212 (ia64_read_fp): New function.
4213 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4214 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4215 * regcache.c (generic_target_read_sp): Delete function.
4216 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4217 * inferior.h (generic_target_read_sp): Delete declaration.
4218 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4219 generic_target_read_sp.
4220 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4221 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4222 * sh-tdep.c (sh_gdbarch_init): Ditto.
4223 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4224 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4225
ec5cbaec
AC
42262003-06-07 Andrew Cagney <cagney@redhat.com>
4227
4228 * gdbarch.sh: Comment each field of startup_gdbarch.
4229 * gdbarch.h, gdbarch.c: Re-generate.
4230
cde9ea48
AC
42312003-06-07 Andrew Cagney <cagney@redhat.com>
4232
4233 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4234 * gdbarch.h, gdbarch.c: Re-generate.
4235 * regcache.c: Update comments on read_pc et.al.
4236 (generic_target_read_pc): Delete function.
4237 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4238 * inferior.h (generic_target_read_pc): Delete declaration.
4239 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4240 generic_target_read_pc.
4241 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4242 * sh-tdep.c (sh_gdbarch_init): Ditto.
4243 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4244 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4245
9a90a780
AC
42462003-06-07 Andrew Cagney <cagney@redhat.com>
4247
4248 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4249 "index" with "special_local_sect". Use strcmp instead of STREQ.
4250 Append period to coments.
4251
a39a16c4
MM
42522003-06-06 Mark Mitchell <mark@codesourcery.com>
4253
4254 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4255 (elfstab_offset_sections): Likewise.
4256 * gdb-stabs.h (stab_section_info): Likewise.
4257 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4258 * objfiles.c (objfile_relocate): Likewise.
4259 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4260 * remote.c (get_offsets): Likewise.
4261 (remote_cisco_objfile_relocate): Likewise.
4262 * somread.c (som_symfile_offsets): Likewise.
4263 * symfile.c (alloc_section_addr_info): New function.
4264 (build_section_addr_info_from_section_tab): Use it.
4265 (free_section_addr_info): Adjust.
4266 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4267 (syms_from_objfile): Allocate local_addr dynamically.
4268 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4269 dynamically.
4270 (add_symbol_file_command): Allocate sect_opts dynamically.
4271 (reread_symbols): Avoid use of SECT_OFF_MAX.
4272 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4273 (alloc_section_addr_info): Declare it.
4274 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4275 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4276 dynamically.
4277 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4278
20c6c2f8
AC
42792003-06-06 Andrew Cagney <cagney@redhat.com>
4280
4281 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4282 (d10v_frame_unwind_cache): Do not set "return_pc".
4283
884a26c8
MS
42842003-06-06 Michael Snyder <msnyder@redhat.com>
4285
4286 * h8300-tdep.c: Make tidy (long lines).
4287
088ce440
ML
42882003-06-06 Michal Ludvig <mludvig@suse.cz>
4289
8ffd9b1b 4290 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4291 to regcache_collect().
4292
7d773d96
JB
42932003-06-05 J. Brobecker <brobecker@gnat.com>
4294
4295 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4296 pc_in_sigtramp multiarch method.
4297 (hppa_hpux_som_init_abi): Use it.
4298 (hppa_hpux_elf_init_abi): Likewise.
4299 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4300 macro has been multiarched.
4301 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4302 macro here, as hppa64 isn't multiarched yet.
4303
1df6926e
AC
43042003-06-05 Andrew Cagney <cagney@redhat.com>
4305
4306 * Makefile.in (value_h): Add $(frame_h).
4307 * value.h: Include "frame.h".
4308 (struct value): Replace "frame_addr" with "frame_id".
4309 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4310 * values.c (allocate_value): Use VALUE_FRAME_ID.
4311 (value_copy): Use VALUE_FRAME_ID.
4312 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4313 * valops.c (value_assign): Update. Use frame_find_by_id.
4314
6b53acc6
ML
43152003-06-05 Michal Ludvig <mludvig@suse.cz>
4316
4317 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4318 in each pass.
4319
4d9850d3
JJ
43202003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4321
4322 * thread-db.c (check_event): For create/death event breakpoints,
4323 loop through all messages to ensure that we read the message
4324 corresponding to the breakpoint we are at.
4325
8efca6ba
MS
43262003-06-04 Michael Snyder <msnyder@redhat.com>
4327
4328 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4329
0912c7f2
MK
43302003-06-04 Mark Kettenis <kettenis@gnu.org>
4331
4332 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4333 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4334 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4335 when handling .eh_frame sections.
4336
4e370325
JB
43372003-06-04 J. Brobecker <brobecker@gnat.com>
4338
4339 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4340 prepare_to_proceed procedure instead of the hppa-specific one.
4341 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4342
b757528f 43432003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4344
b757528f
JJ
4345 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4346 * config.in: Regenerated.
4347 * configure.in: Add test for syscall function and check for
4348 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4349 * configure: Regenerated.
4350 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4351 <sys/syscall.h>.
4352 (kill_lwp): New function that uses tkill syscall or
4353 uses kill, depending on whether threading model is nptl or not.
4354 All callers of kill() changed to use kill_lwp().
4355 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4356 see if all threads have already exited in the nptl model.
4357 (stop_and_resume_callback): New callback function used by the
4358 lin_lwp_wait thread exit handling code.
4359 (stop_wait_callback): Check for threads already having exited and
4360 delete such threads fromt the lwp list when discovered.
4361 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4362
b757528f
JJ
4363 Roland McGrath <roland@redhat.com>
4364 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4365 nptl libthread_db.
4366
087779b1
RH
43672003-06-03 Richard Henderson <rth@redhat.com>
4368
b21fd293
RH
4369 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4370 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4371 (alpha_sigtramp_frame_prev_register): Likewise.
4372 (alpha_heuristic_frame_prev_register): Likewise.
4373 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4374
8ffd9b1b 4375 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4376 alpha-specific register id names.
4377 (alpha_mdebug_frame_unwind_cache): Likewise.
4378 (alpha_mdebug_frame_prev_register): Likewise.
4379
baa490c4
RH
43802003-06-03 Richard Henderson <rth@redhat.com>
4381
4382 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4383 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4384 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4385 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4386 unwind routines.
4387 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4388 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4389 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4390
4391 * alpha-linux-tdep.c: Remove unnecessary includes.
4392 * Makefile.in (alpha-linux-tdep.o): Update.
4393
43942003-06-03 Richard Henderson <rth@redhat.com>
4395
4396 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4397 (alphabsd_fill_fpreg): Likewise.
4398
f534e522
JB
43992003-06-03 J. Brobecker <brobecker@gnat.com>
4400
4401 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4402 references to struct frame_info fields by calls to the equivalent
4403 accessors. Necessary now that frame_info is opaque.
4404
4035536b
JB
44052003-06-03 J. Brobecker <brobecker@gnat.com>
4406
4407 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4408 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4409 structure, field no longer exists.
4410
0bd79c5c
JB
44112003-06-03 J. Brobecker <brobecker@gnat.com>
4412
4413 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4414 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4415
37bb6d9f
JB
44162003-06-03 J. Brobecker <brobecker@gnat.com>
4417
4418 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4419 references to struct frame_info fields by calls to the equivalent
4420 accessors. Necessary now that frame_info is opaque.
4421
852ee05c
JB
44222003-06-03 J. Brobecker <brobecker@gnat.com>
4423
4424 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4425 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4426 structure, field no longer exists.
4427
7d58c67d
TR
44282003-06-03 Theodore A. Roth <troth@openavr.org>
4429
8ffd9b1b 4430 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4431 accumulation of the size of all registers instead of blindly using
4432 DEPRECATED_REGISTER_BYTES.
4433
0a48e7e8
MS
44342003-06-03 Michael Snyder <msnyder@redhat.com>
4435
4436 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4437 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4438 for h8300sx.
4439
9798ab0d
JB
44402003-06-03 J. Brobecker <brobecker@gnat.com>
4441
4442 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4443 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4444
00b037e2
AC
44452003-06-03 Andrew Cagney <cagney@redhat.com>
4446
4447 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4448 (sparc_convert_to_raw): Delete function.
4449 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4450 register_convert_to_virtual.
4451
043b2f77
JJ
44522003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4453
4454 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4455 layer if not dealing with a statically-linked threaded program.
4456
f43caff8
KW
44572003-06-03 Kris Warkentin <kewarken@qnx.com>
4458
4459 * solib.c (solib_open): Update comment to reflect actual search order.
4460
ae1e7417
AC
44612003-06-03 Andrew Cagney <cagney@redhat.com>
4462
4463 * frame.c (get_frame_memory_signed): New function.
4464 (get_frame_memory, get_frame_memory_unsigned): New function.
4465 (get_frame_arch): New function.
4466 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4467 (get_frame_memory, get_frame_unsigned_memory): Declare.
4468 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4469 get_frame_memory_unsigned and get_frame_arch.
4470 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4471
cb123844
RG
44722003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4473
4474 * MAINTAINERS (write after approval): Add myself.
4475
1bb792e9
JB
44762003-06-03 Jim Blandy <jimb@redhat.com>
4477
4478 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4479 elements of gregset_t are 64 bits each, but access registers
4480 are still 32 bits, so they're packed two per gregset_t
4481 element. Unpack/pack them properly.
4482
aee8d8ba
DC
44832003-06-02 David Carlton <carlton@bactrian.org>
4484
4485 * linespec.c (find_methods): Break out code into
4486 add_matching_methods and add_constructors.
4487 (add_matching_methods): New.
4488 (add_constructors): Ditto.
4489
bf7488d2
AC
44902003-06-02 Andrew Cagney <cagney@redhat.com>
4491
bf7488d2
AC
4492 * sparc-tdep.c (sparc_print_registers): Delete call to
4493 REGISTER_CONVERTIBLE.
4494 (sparc_gdbarch_init): Do not set register_convertible.
4495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4496 * frv-tdep.c (frv_gdbarch_init): Ditto.
4497 * cris-tdep.c (cris_gdbarch_init): Ditto.
4498
adedef68
EZ
44992003-06-02 Elena Zannoni <ezannoni@redhat.com>
4500
8ffd9b1b 4501 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4502 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4503 (syms_from_objfile): Ditto.
4504
650fcc91
AS
45052003-06-03 Andreas Schwab <schwab@suse.de>
4506
4507 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4508 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4509
df4a182b
RH
45102003-06-02 Richard Henderson <rth@redhat.com>
4511
4512 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4513 a member of all_reggroup.
4514
c483c494
RH
45152003-06-02 Richard Henderson <rth@redhat.com>
4516
4517 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4518 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4519 (alpha_lds, alpha_sts): New.
4520 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4521 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4522 restructure and fail for type sizes other than 4 or 8.
4523 (alpha_value_to_register): Similarly.
4524 (alpha_extract_return_value): Use alpha_sts.
4525 (alpha_store_return_value): Use alpha_lds.
4526 (alpha_gdbarch_init): Update hooks.
4527
b38b6be2
RH
45282003-06-02 Richard Henderson <rth@redhat.com>
4529
4530 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4531 regnum identifiers.
4532 (alpha_sigtramp_register_address): Likewise.
4533
98a8e1e5
RH
45342003-06-02 Richard Henderson <rth@redhat.com>
4535
4536 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4537 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4538 * alpha-tdep.h: Declare them.
4539
4540 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4541 Remove zerobuf. Don't error on UNIQUE.
4542 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4543 (ALPHA_REGSET_UNIQUE): Provide default.
4544 (supply_gregset): Use alpha_supply_int_regs.
4545 (fill_gregset): Use alpha_fill_int_regs.
4546 (supply_fpregset): Use alpha_supply_fp_regs.
4547 (fill_fpregset): Use alpha_fill_fp_regs.
4548 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4549 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4550 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4551 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4552 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4553 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4554
67dfac52
RH
45552003-06-02 Richard Henderson <rth@redhat.com>
4556
f75d70cc
RH
4557 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4558
67dfac52
RH
4559 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4560 (alpha_store_return_value): Likewise.
4561
0cf566ec
DC
45622003-06-02 David Carlton <carlton@math.stanford.edu>
4563
4564 * block.c (contained_in): Add 'const' to arguments.
4565 (block_function): Ditto.
4566 * block.h: Update declarations for block_function and
4567 contained_in.
4568
cdef89d0
DC
45692003-06-02 David Carlton <carlton@math.stanford.edu>
4570
4571 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4572 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4573 * p-valprint.c (pascal_val_print): Ditto.
4574 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4575
72667056
RH
45762003-06-02 Richard Henderson <rth@redhat.com>
4577
98a8e1e5
RH
4578 * alpha-tdep.c (alpha_push_dummy_call): Use
4579 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4580
8ffd9b1b 4581 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4582 sign-extension of 32-bit values.
4583 (alpha_store_return_value): Similarly.
0ede8eca 4584
98a8e1e5
RH
4585 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4586 (alpha_extract_return_value): Likewise.
4587 (alpha_store_return_value): Likewise.
7b5e1cb3 4588
98a8e1e5
RH
4589 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4590 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4591
98a8e1e5
RH
4592 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4593 (alpha_extract_struct_value_address): Likewise.
4594 (alpha_store_return_value): Likewise.
4595 (alpha_store_struct_return): Remove.
4596 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4597
98a8e1e5
RH
4598 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4599 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4600 macros where appropriate.
4601 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4602 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4603
98a8e1e5
RH
4604 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4605 for SP, GP; void_func_ptr for PC; non-language-specific types
4606 for all others.
4607 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4608
6dd77b81
RH
46092003-06-02 Richard Henderson <rth@redhat.com>
4610
4611 * top.h (lim_at_start): Declare.
4612 * main.c (captured_main): Set it.
4613 * top.c (lim_at_start): Define.
4614 (command_loop): Use it instead of &environ.
4615 * event-top.c (command_handler): Likewise.
4616
f4dbdb54
JT
46172003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4618
4619 * mipsnbsd-tdep.c: Update copyright years.
4620 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4621
8f285956
RH
46222003-06-01 Richard Henderson <rth@redhat.com>
4623
98a8e1e5
RH
4624 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4625 (alpha-linux-tdep.o): Update dependencies.
4626 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4627 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4628
615967cb
RH
46292003-06-01 Richard Henderson <rth@redhat.com>
4630
98a8e1e5
RH
4631 * alpha-tdep.c (alpha_register_reggroup_p): New.
4632 (alpha_gdbarch_init): Register it.
615967cb 4633
b59661bd
AC
46342003-06-02 Andrew Cagney <cagney@redhat.com>
4635
4636 * dwarfread.c: Eliminate "register"
4637 (decode_die_type): Eliminate assignment within "if".
4638 (struct_type, decode_array_element_type): Ditto.
4639 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4640 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4641 (decode_modified_type, completedieinfo): Ditto.
4642 * block.c: Eliminate "register".
4643 (blockvector_for_pc_sect): Eliminate assignment within "if".
4644 * cp-support.h (struct symbol): Opaque declaration.
4645 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4646
5ef165c2
RH
46472003-06-01 Richard Henderson <rth@redhat.com>
4648
98a8e1e5
RH
4649 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4650 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4651
143985b7
AF
46522003-06-01 Adam Fedor <fedor@gnu.org>
4653
4654 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4655 * gdbarch.[ch]: Regenerate.
4656 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4657 (hppa_gdbarch_init): Set it in the gdbarch vector.
4658 * i386-tdep.c (i386_fetch_pointer_argument): New
4659 (i386_gdbarch_init): Set it into gdbarch.
4660 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4661 (rs6000_gdbarch_init): Set it in gdbarch.
4662 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4663 (sparc_gdbarch_init): Set it in gdbarch.
4664
ae0167b9
AC
46652003-06-01 Andrew Cagney <cagney@redhat.com>
4666
7c0b4a20
AC
4667 * defs.h (extract_address): Delete declaration.
4668 * findvar.c (extract_address): Delete function.
4669 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4670 extract_address with the inline equivalent,
4671 extract_unsigned_integer.
4672 (xstormy16_extract_struct_value_address): Ditto.
4673 (xstormy16_pointer_to_address): Ditto.
4674 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4675 * v850-tdep.c (v850_push_arguments): Ditto.
4676 (v850_extract_return_value): Ditto.
4677 (v850_extract_struct_value_address): Ditto.
4678 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4679 (sparcnbsd_get_longjmp_target_64): Ditto.
4680 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4681 (get_longjmp_target): Ditto.
4682 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4683 (sh64_extract_struct_value_address): Ditto.
4684 (sh_push_arguments): Ditto.
4685 (sh64_push_arguments): Ditto.
4686 * remote-vxsparc.c (vx_read_register): Ditto.
4687 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4688 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4689 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4690 * mipsv4-nat.c (get_longjmp_target): Ditto.
4691 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4692 * mips-nat.c (get_longjmp_target): Ditto.
4693 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4694 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4695 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4696 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4697 * irix5-nat.c (get_longjmp_target): Ditto.
4698 * irix4-nat.c (get_longjmp_target): Ditto.
4699 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4700 (ia64_push_arguments): Ditto.
4701 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4702 * h8300-tdep.c (h8300_push_arguments): Ditto.
4703 (h8300_store_return_value): Ditto.
4704 (h8300_extract_struct_value_address): Ditto.
4705 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4706 (frv_push_arguments): Ditto.
4707 * avr-tdep.c (avr_pointer_to_address): Ditto.
4708 (avr_push_arguments): Ditto.
4709 * arm-tdep.c (arm_push_dummy_call): Ditto.
4710 (arm_get_longjmp_target): Ditto.
4711 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4712 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4713 (alpha_get_longjmp_target): Ditto.
4714
ae0167b9
AC
4715 * solib-irix.c (extract_mips_address): Inline extract_address,
4716 replacing it with extract_signed_integer.
4717 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4718 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4719 (first_link_map_member, open_symbol_file_object): Ditto.
4720 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4721 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4722 (LM_NEXT, LM_NAME): Ditto.
4723
44d88583
RH
47242003-06-01 Richard Henderson <rth@redhat.com>
4725
98a8e1e5
RH
4726 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4727 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4728 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4729 (alpha_cannot_store_register): Likewise.
4730 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4731 * alpha-nat.c (supply_gregset): Likewise.
4732 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4733
310e9b6a
AC
47342003-06-01 Andrew Cagney <cagney@redhat.com>
4735
4736 * infcall.c (call_function_by_hand): Update comment on
4737 DEPRECATED_DUMMY_WRITE_SP.
4738
4739 * mips-tdep.c (mips_gdbarch_init): Do not set
4740 deprecated_dummy_write_sp.
4741 (mips_eabi_push_dummy_call): Set the SP register.
4742 (mips_o64_push_dummy_call): Set the SP register.
4743 (mips_o32_push_dummy_call): Set the SP register.
4744 (mips_n32n64_push_dummy_call): Set the SP register.
4745
5ab84872
RH
47462003-06-01 Richard Henderson <rth@redhat.com>
4747
98a8e1e5
RH
4748 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4749 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4750 (supply_gregset): Likewise.
4751 * alpha-tdep.c (alpha_store_return_value): Likewise.
4752 (alpha_get_longjmp_target): Likewise.
4753 (alpha_register_name): Constify array.
4754 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4755 deprecated_register_size, deprecated_register_bytes,
4756 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4757 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4758 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4759
09cc52fd
RH
47602003-06-01 Richard Henderson <rth@redhat.com>
4761
4762 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4763 from arg_reg_buffer to regcache to avoid double conversion.
4764
c7f16359
MK
47652003-06-01 Mark Kettenis <kettenis@gnu.org>
4766
4767 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4768 SP_REGNUM.
4769 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4770 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4771
7131cb6e
RH
47722003-06-01 Richard Henderson <rth@redhat.com>
4773
98a8e1e5
RH
4774 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4775 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4776
f3e0f90b
RH
47772003-06-01 Richard Henderson <rth@redhat.com>
4778
98a8e1e5
RH
4779 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4780 not overlapping PC_REGNUM.
f3e0f90b 4781
c88e30c0
RH
47822003-06-01 Richard Henderson <rth@redhat.com>
4783
98a8e1e5
RH
4784 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4785 alpha_push_arguments. Don't dump argument register data to
4786 the target stack. Fix float and 128-bit long double semantics.
4787 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4788 (alpha_fix_call_dummy): Remove.
4789 (alpha_call_dummy_words): Remove.
4790 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4791
f1a559ae
RH
47922003-06-01 Richard Henderson <rth@redhat.com>
4793
4794 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4795
5e045346
AC
47962003-06-01 Andrew Cagney <cagney@redhat.com>
4797
95404a3e
AC
4798 * mips-tdep.c (is_mips16_addr): New function.
4799 (make_mips16_addr, unmake_mips16_addr): New functions.
4800 (pc_is_mips16, mips_fetch_instruction): Use.
4801 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4802 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4803 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4804 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4805 TARGET_MIPS.
4806 * config/mips/tm-mips.h: Update copyright.
4807 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4808 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4809 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4810 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4811 (TM_PRINT_INSN_MACH): Delete.
4812 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4813
5e045346
AC
4814 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4815 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4816 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4817 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4818 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4819 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4820 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4821 mips*-*-riscos* and mips*-*-sysv* onto mips.
4822 * config/mips/mips64.mt: New file.
4823 * config/mips/mips.mt: New file.
4824 * config/mips/littlemips.mt: Delete file.
4825 * config/mips/decstation.mt: Delete file.
4826 * config/mips/vr4300el.mt: Delete file.
4827 * config/mips/vr5000el.mt: Delete file.
4828 * config/mips/vr5000.mt: Delete file.
4829 * config/mips/vr4100.mt: Delete file.
4830 * config/mips/vr4xxxel.mt: Delete file.
4831 * config/mips/vr4300.mt: Delete file.
4832 * config/mips/vr4xxx.mt: Delete file.
4833 * config/mips/bigmips.mt: Delete file.
4834 * config/mips/bigmips64.mt: Delete file.
4835 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4836 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4837 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4838 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4839 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4840 "tm-bigmips.h".
4841 * config/mips/tm-irix3.h: Ditto.
4842 * config/mips/tm-mipsv4.h: Ditto.
4843 * config/mips/tm-embed.h: Ditto.
4844 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4845 "tm-bigmips64.h".
4846 * config/mips/tm-vr5000el.h: Delete file.
4847 * config/mips/tm-tx39l.h: Delete file.
4848 * config/mips/tm-vr4300el.h: Delete file.
4849 * config/mips/tm-vr4xxxel.h: Delete file.
4850 * config/mips/tm-vr4300.h: Delete file.
4851 * config/mips/tm-vr4100.h: Delete file.
4852 * config/mips/tm-vr4xxx.h: Delete file.
4853 * config/mips/tm-vr5000.h: Delete file.
4854 * config/mips/tm-embedl64.h: Delete file.
4855 * config/mips/tm-embedl.h: Delete file.
4856 * config/mips/tm-embed64.h: Delete file.
4857 * config/mips/tm-bigmips64.h: Delete file.
4858 * config/mips/tm-bigmips.h: Delete file.
4859
2473a4a9
MK
48602003-06-01 Mark Kettenis <kettenis@gnu.org>
4861
97a5b208
MK
4862 Fix gdb/1216.
4863 * shnbsd-nat.c: Include "sh-tdep.h".
4864
2473a4a9
MK
4865 From Richard Henderson <rth@redhat.com>:
4866 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4867
e0f7ec59
AC
48682003-05-31 Andrew Cagney <cagney@redhat.com>
4869
4870 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4871 forward declaration.
4872 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4873 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4874 (mips_find_saved_regs): Use set_reg_offset.
4875 (mips_frame_init_saved_regs): Delete function.
4876 (mips_pop_frame): Call mips_find_saved_regs instead of
4877 DEPRECATED_FRAME_INIT_SAVED_REGS.
4878
68dcc709
AC
48792003-05-31 Andrew Cagney <cagney@redhat.com>
4880
4881 * mips-tdep.c (mips_gdbarch_init): Do not set
4882 deprecated_max_register_raw_size, register_virtual_size, and
4883 deprecated_max_register_virtual_size.
4884
cfc14b3a
MK
48852003-05-31 Mark Kettenis <kettenis@gnu.org>
4886
6405b0a6
MK
4887 * i386-tdep.c: Include "dwarf2-frame.h".
4888 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4889 * Makefile.in (i386-tdep.o): Update dependencies.
4890
cfc14b3a
MK
4891 * dwarf2-frame.c, dwarf2-frame.h: New files.
4892 * Makefile.in (SFILES): Add dwarf2-frame.c.
4893 (dwarf2_frame_h): Define.
4894 (COMMON_OBS): Add dwarf2-frame.o.
4895 (dwarf2-frame.o): Add dependencies.
4896
6a2751d2
AJ
48972003-05-31 Andreas Jaeger <aj@suse.de>
4898
4899 * x86-64-linux-nat.c: Fix comment.
4900
1c3545ae
MK
49012003-05-31 Mark Kettenis <kettenis@gnu.org>
4902
10f93086
MK
4903 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4904 function signature.
4905
1c3545ae
MK
4906 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4907 have a sigcontext_addr handler.
4908 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4909 sigcontext_addr handler.
4910
e11c53d2
AC
49112003-05-31 Andrew Cagney <cagney@redhat.com>
4912
4913 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4914 (print_fp_register_row): Replace do_fp_register_row.
4915 (mips_print_fp_register): Add "file" and "frame" parameters.
4916 (mips_print_register): Add "file" and "frame" parameters.
4917 (mips_print_registers_info): Replace mips_do_registers_info.
4918 (mips_gdbarch_init): Set print_registers_info instead of
4919 deprecated_do_registers_info.
4920 (mips_read_fp_register_single): Add "frame" parameter.
4921 (mips_read_fp_register_double): Add "frame" parameter.
4922
a3386186
MK
49232003-05-31 Mark Kettenis <kettenis@gnu.org>
4924
70913449
MK
4925 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4926 Fixes a bug where GDB would print the wrong register names for
4927 targets without SSE.
4928
2b5e0749
MK
4929 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4930 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4931 registers.
4932
4933 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4934 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4935 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4936 TDEP->sc_sp_offset.
4937
a3386186
MK
4938 From Michal Ludvig <mludvig@suse.cz>:
4939 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4940 and `sc_num_regs'.
4941 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4942 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4943 I386_ST0_REGNUM): Move here from...
4944 * i386-tdep.c: ... here.
4945 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4946 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4947 registers if possible.
4948 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4949 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4950 Remove variables.
4951 (i386bsd_sc_reg_offset): New variable.
4952 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4953 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4954 TDEP->sc_sp_offset.
4955 (i386fbsd_sc_reg_offset): New variable.
4956 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4957 TDEP->sc_num_regs.
4958 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4959 variables.
4960 (i386fbsd4_sc_reg_offset): New variable.
4961 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4962 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4963 TDEP->sc_sp_offset.
4964 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4965 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4966 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4967 Remove variables.
4968 (i386nbsd_sc_reg_offset): New variable.
4969 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4970 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4971 TDEP->sc_sp_offset.
4972 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4973 Remove variables.
4974 (i386obsd_sc_reg_offset): New variable.
4975 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4976 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4977 TDEP->sc_sp_offset.
4978 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4979 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4980 for frame pointer offset in `struct sigcontext'.
4981
25ab4790
AC
49822003-05-31 Andrew Cagney <cagney@redhat.com>
4983
4984 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4985 architecture methods call_dummy_words, sizeof_call_dummy_words,
4986 push_return_address, store_struct_return, and fix_call_dummy. Set
4987 push_dummy_call instead of deprecated_push_arguments.
4988 (mips_store_struct_return): Delete function.
4989 (mips_fix_call_dummy): Delete function.
4990 (mips_push_return_address): Delete function.
4991 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
4992 RA_REGNUM and T9_REGNUM.
4993 (mips_n32n64_push_dummy_call): Ditto for
4994 mips_n32n64_push_arguments.
4995 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
4996 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
4997
6a65450a
AC
49982003-05-31 Andrew Cagney <cagney@redhat.com>
4999
5000 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5001 "dummy_addr" to "bp_addr".
5002 * infcall.c (call_function_by_hand): Pass "funaddr" to
5003 gdbarch_push_dummy_call.
5004 * gdbarch.h, gdbarch.c: Re-generate.
5005 * i386-tdep.c (i386_push_dummy_call): Update.
5006 * arm-tdep.c (arm_push_dummy_call): Update.
5007 * d10v-tdep.c (d10v_push_dummy_call): Update.
5008
c4f35dd8
MK
50092003-05-31 Mark Kettenis <kettenis@gnu.org>
5010
5011 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5012 variable declarations.
5013 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5014 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5015 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5016 x86_64_init_frame_pc, x86_64_init_frame_pc,
5017 x86_64_function_has_prologue): Remove prototypes.
5018 (X86_64_NUM_GREGS): New define.
5019 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5020 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5021 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5022 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5023 XMM1_REGNUM): Remove defines.
5024 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5025 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5026 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5027 X86_64_XMM1_REGNUM): New defines.
5028 (struct x86_64_register_info): Renamed from `struct
5029 register_info'. Remove `size' member.
5030 (x86_64_register_info_table): Remove variable.
5031 (x86_64_register_info): New variable.
5032 (X86_64_NUM_REGS): New define.
5033 (X86_64_NUM_GREGS): Remove define.
5034 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5035 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5036 Remove variables.
5037 (x86_54_dwarf2_reg_to_regnum): Remove function.
5038 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5039 (x86_64_dwarf_reg_to_regnum): New function.
5040 (x86_64_register_name): Rewrite.
5041 (x86_64_register_raw_size): Remove function.
5042 (x86_64_register_byte_table): Remove variable.
5043 (x86_64_register_byte): Remove function.
5044 (x86_64_register_virtual_type): Remove function.
5045 (x86_64_register_type): New function.
5046 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5047 x86_64_register_convert_to_raw): Remove functions.
5048 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5049 (x86_64_use_struct_convention): Make static. Adjust for renamed
5050 defines.
5051 (x86_64_frame_init_saved_regs): Remove function.
5052 (x86_64_push_arguments): Make static. Change to accept a regcache
5053 as argument.
5054 (x86_64_store_return_value, x86_64_extract_return_value): Make
5055 static. Rewrite based on i386 counterparts.
5056 (x86_64_push_dummy_call): New function.
5057 (X86_64_NUM_SAVED_REGS): New define.
5058 (x86_64_register_number): Remove function.
5059 (x86_64_store_struct_return): Remove function.
5060 (x86_64_frameless_function_invocation,
5061 x86_64_function_has_prologue): Remove functions.
5062 (PROLOG_BUFSIZE): Remove define.
5063 (struct x86_64_frame_cache): New structure.
5064 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5065 x86_64_frame_cache, x86_64_frame_this_id,
5066 x86_64_frame_prev_register, x86_64_frame_p,
5067 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5068 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5069 functions.
5070 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5071 variables.
5072 (x86_64_skip_prologue): Rewrite in terms of
5073 x86_64_analyze_prologue.
5074 (x86_64_frame_base_address): New function.
5075 (x86_64_frame_base): New variable.
5076 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5077 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5078 set deprecated_fp_regnum, deprecated_register_size,
5079 deprecated_register_bytes, register_raw_size, register_byte,
5080 register_virtual_type, register_convertiable,
5081 register_convert_to_virtual, convert_to_raw,
5082 deprecated_get_saved_register, deprecated_target_read_fp,
5083 deprecated_push_arguments, deprecated_push_return_address,
5084 deprecated_pop_frame, deprecated_store_struct_return,
5085 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5086 frameless_function_invocation, deprecated_frame_saved_pc,
5087 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5088 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5089 deprecated_init_frame_pc and virtual_frame_pointer. Call
5090 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5091 and x86_64_frame_p. Call frame_base_set_default to register
5092 x86_64_frame_base.
5093 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5094 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5095 (_initialize_x86_64_tdep): Remove function.
5096 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5097 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5098 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5099 define.
5100 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5101 (x86_64_linux_sigcontext_addr): Rewrite.
5102 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5103 x86_64_linux_frame_saved_pc): Remove functions.
5104 (x86_64_linux_pc_in_sigtramp): Renamed from
5105 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5106 trampoline.
5107 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5108 Remove_functions.
5109 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5110 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5111 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5112 (x86_64_regmap): Rename to regmap.
5113 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5114 x86_64_num_gregs.
5115 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5116 x86_64_regmap.
5117 (x86_64_fxsave_offset): Remove function.
5118 (supply_fpregset): Simply call x86_64_supply_fxsave.
5119 (fill_fpregset): Simply call x86_64_fill_fxsave.
5120 (fetch_inferior_registers, store_inferior_registers): Avoid
5121 asignment in if-statement.
5122 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5123 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5124 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5125 (fetch_core_registers): Remove function.
5126 (linux_elf_core_fns): Remove.
5127 (offsetoff): Don't define.
5128 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5129 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5130 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5131 add core-regset.o.
5132 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5133 protection against multiple includes instead of NM_X86_64_h. Add
5134 various comments. Include "config/nm-linux.h". Don't include
5135 <signal.h>.
5136 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5137 GET_THREAD_SIGNALS): Remove defines.
5138 (x86_64_register_u_addr, kernel_u_size,
5139 lin_thread_get_thread_signals): Remove prototypes.
5140 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5141 [HAVE_LINK_H]: Don't include "solib.h".
5142 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5143 * config/i386/tm-x86-64linux.h: Fix comments.
5144 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5145 x86-64-tdep.o): Update dependencies.
5146
c25083af
AC
51472003-05-30 Andrew Cagney <cagney@redhat.com>
5148
c8f55a7b
AC
5149 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5150 Change parameter type to a "struct regcache *".
5151
c25083af
AC
5152 * gdbarch.sh: Regardless of the multi-arch level, always define
5153 the macro when not already defined.
5154 * gdbarch.h, gdbarch.c: Re-generate.
5155
fbe586ae
RH
51562003-05-30 Richard Henderson <rth@redhat.com>
5157
5158 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5159 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5160 (alpha_mdebug_frame_this_id): Likewise.
5161 (alpha_mdebug_frame_prev_register): Likewise.
5162 (alpha_mdebug_frame_base_address): Likewise.
5163 (alpha_mdebug_frame_locals_address): Likewise.
5164 (alpha_mdebug_frame_args_address): Likewise.
5165 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5166 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5167 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5168 loop increment.
5169 (alpha_heuristic_frame_this_id): Make static.
5170 (alpha_heuristic_frame_prev_register): Likewise.
5171 (alpha_heuristic_frame_base_address): Likewise.
5172 * alpha-tdep.h: Update.
5173
acd5c798
MK
51742003-05-30 Mark Kettenis <kettenis@gnu.org>
5175
5176 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5177 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5178 defenitions.
5179 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5180 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5181 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5182 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5183 I386_ST0_REGNUM): New defines.
5184 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5185 codestream_get): Remove define.
5186 (codestream_next_addr, condestream_addr, condestream_buf,
5187 codestream_off, codestream_cnt): Remove variables.
5188 (codestream_fill, codestream_seek, codestream_read): Remove
5189 functions.
5190 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5191 functionality.
5192 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5193 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5194 i386_frame_saved_pc, i386_saved_pc_after_call,
5195 i386_frame_num_args, i386_frame_init_saved_regs,
5196 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5197 i386_push_arguments): Remove functions.
5198 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5199 functionality. Use i386_analyze_prologue instead of
5200 i386_get_frame_setup.
5201 (I386_NUM_SAVED_REGS): New define.
5202 (struct i386_frame_cache): New structure.
5203 (i386_alloc_frame_cache, i386_analyze_struct_return,
5204 i386_skip_probe, i386_analyze_frame_setup,
5205 i386_analyze_register_saves, i386_analyze_prologue,
5206 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5207 i386_frame_prev_register, i386_sigtramp_frame_cache,
5208 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5209 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5210 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5211 New functions.
5212 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5213 New variables.
5214 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5215 I386_EAX_REGNUM and I386_EDX_REGNUM.
5216 (i386_extract_return_value, i386_store_return_value): Use
5217 I386_ST0_REGNUM where appropriate.
5218 (i386_extract_struct_value_address): Rewrite to use extract_address.
5219 (i386_svr4_pc_in_sigtramp): Add comment.
5220 (i386_svr4_sigcontext_addr): Rewrite.
5221 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5222 TDEP->sc_sp_offset.
5223 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5224 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5225 of new defines. Set push_dummy_call, don't set
5226 deprecated_push_arguments, deprecated_push_return_address,
5227 deprecated_pop_frame. Don't set parm_boundary. Don't set
5228 deprecated_frame_chain, deprecated_frame_saved_pc,
5229 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5230 save_dummy_frame_tos, unwind_pc. Call
5231 frame_unwind_append_predicate and frame_base_set_default. Don't
5232 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5233 Don't set frameless_function_invocation. Don't set
5234 deprecated_register_bytes, deprecated_register_size,
5235 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5236 * i386-linux-tdep.c: Fix formatting in some comments.
5237 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5238 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5239 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5240 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5241 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5242 redundant parentheses.
5243 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5244 (i386_linux_sigcontext_addr): Use it. Rewrite.
5245 (find_minsym_and_objfile): Change name of second argument.
5246 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5247 changed. Use frame_pc_unwind instead of
5248 DEPRECATED_SAVED_PC_AFTER_CALL.
5249 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5250 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5251 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5252 unwinder.
5253 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5254 "dummy-frame.h".
5255 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5256 (_initialize_i386_cygwin_tdep): New prototype.
5257 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5258 deprecated_frame_chain_valid.
5259 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5260 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5261 Rely on the SVR4 defaults.
5262 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5263 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5264
c89b70f1
AC
52652003-05-30 Andrew Cagney <cagney@redhat.com>
5266
5267 * infcall.c (call_function_by_hand): Always call
5268 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5269
85b32d22
RH
52702003-05-30 Richard Henderson <rth@redhat.com>
5271
c89b70f1
AC
5272 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5273 increment.
85b32d22 5274
bfe51b1e
JB
52752003-05-29 Jim Blandy <jimb@redhat.com>
5276
5277 Use gdbarch methods for solib stuff on PowerPC Linux.
5278 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5279 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5280 show through.
5281 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5282 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5283 giving the same effect as the #definitions above.
5284
1abf022c
AF
52852003-05-29 Adam Fedor <fedor@gnu.org>
5286
5287 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5288 (find_implementation_from_class): Replace it with the standard
5289 case i.e. do nothing.
5290
d2427a71
RH
52912003-05-29 Richard Henderson <rth@redhat.com>
5292
5293 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5294 (alpha_linux_sigtramp_offset): Use it. Make static.
5295 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5296 update for new frame model.
5297 * alpha-mdebug-tdep.c: New file.
5298 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5299 (alpha_osf1_init_abi): Install it.
5300 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5301 (linked_proc_desc_table): Remove.
5302 (alpha_frame_past_sigtramp_frame): Remove.
5303 (alpha_dynamic_sigtramp_offset): Remove.
5304 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5305 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5306 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5307 (push_sigtramp_desc): Remove.
5308 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5309 (alpha_cannot_store_register): Likewise.
5310 (alpha_sigcontext_addr): Remove.
5311 (alpha_find_saved_regs): Remove.
5312 (alpha_frame_init_saved_regs): Remove.
5313 (alpha_init_frame_pc_first): Remove.
5314 (read_next_frame_reg): Remove.
5315 (alpha_frame_saved_pc): Remove.
5316 (alpha_saved_pc_after_call): Remove.
5317 (temp_proc_desc, temp_saved_regs): Remove.
5318 (alpha_about_to_return): Remove.
5319 (cached_proc_desc): Remove.
5320 (alpha_frame_chain): Remove.
5321 (alpha_print_extra_frame_info): Remove.
5322 (alpha_init_extra_frame_info): Remove.
5323 (alpha_frame_locals_address): Remove.
5324 (alpha_frame_args_address): Remove.
5325 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5326 (alpha_push_dummy_frame): Remove.
5327 (alpha_pop_frame): Remove.
5328 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5329 (alpha_read_insn): New.
5330 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5331 for different insn encodings.
5332 (alpha_in_lenient_prologue): Remove.
5333 (struct alpha_sigtramp_unwind_cache): New.
5334 (alpha_sigtramp_frame_unwind_cache): New.
5335 (alpha_sigtramp_register_address): New.
5336 (alpha_sigtramp_frame_this_id): New.
5337 (alpha_sigtramp_frame_prev_register): New.
5338 (alpha_sigtramp_frame_unwind): New.
5339 (alpha_sigtramp_frame_p): New.
5340 (struct alpha_heuristic_unwind_cache): New.
5341 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5342 don't count nop insns that occur between functions.
5343 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5344 heuristic_proc_desc, but without the mdebug wrapping.
5345 (alpha_heuristic_frame_this_id): New.
5346 (alpha_heuristic_frame_prev_register): New.
5347 (alpha_heuristic_frame_unwind): New.
5348 (alpha_heuristic_frame_p): New.
5349 (alpha_heuristic_frame_base_address): New.
5350 (alpha_heuristic_frame_base): New.
5351 (alpha_unwind_dummy_id): New.
5352 (alpha_unwind_pc): New.
5353 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5354 frame related deprecated initializations; install replacements.
5355 (alpha_dump_tdep): Remove.
5356 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5357 (alpha_read_insn, alpha_after_prologue,
5358 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5359 alpha_heuristic_frame_prev_register,
5360 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5361 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5362 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5363 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5364
93ec1121
AC
53652003-05-29 Andrew Cagney <cagney@redhat.com>
5366
5367 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5368 dependant on the availability of ASSERT_FUNCTION.
5369 (ASSERT_FUNCTION): Do not define when there is no function name.
5370
98f08d3d
KB
53712003-05-29 Kevin Buettner <kevinb@redhat.com>
5372
5373 From Jimi X <jimix@watson.ibm.com>:
5374 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5375
0897f59b
JB
53762003-05-28 Jim Blandy <jimb@redhat.com>
5377
5378 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5379 argument to ptrace to int; the system headers should give it the
5380 right type, and pointers don't fit in ints on powerpc64-*-*.
5381
14898363
L
53822003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5383
5384 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5385 DW_TAG_catch_block.
5386
a7a48797
EZ
53872003-05-26 Elena Zannoni <ezannoni@redhat.com>
5388
5389 * stabsread.c (dbx_lookup_type): Make static.
5390 (read_type): Ditto.
5391 (add_undefined_type): Ditto.
5392 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5393 not export.
5394
f5479e9c
EZ
53952003-05-26 Elena Zannoni <ezannoni@redhat.com>
5396
5397 * hpread.c (hpread_has_name): Make static.
5398 (hpread_psymtab_to_symtab): Ditto.
5399 (file_exists): Ditto.
5400 (hpread_call_pxdb): Ditto.
5401 (hpread_pxdb_needed): Ditto.
5402 (hpread_quick_traverse): Ditto.
5403 (hpread_get_header): Ditto.
5404 (hpread_get_lntt): Ditto.
5405 (hpread_get_slt): Ditto.
5406 (class_of): Ditto.
5407
eb2e12d7
AS
54082003-05-25 Andreas Schwab <schwab@suse.de>
5409
78bf922a
AS
5410 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5411 stack_align and deprecated_extra_stack_alignment_needed.
5412 (m68k_stack_align): Delete.
5413
eb2e12d7
AS
5414 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5415 (m68k_register_virtual_size): Likewise.
5416 (altos_skip_prologue): Remove obsolete function.
5417 (isi_frame_num_args): Likewise.
5418 (news_frame_num_args): Likewise.
5419 (m68k_fix_call_dummy): Make static.
5420 (m68k_push_dummy_frame): Likewise.
5421 (m68k_pop_frame): Likewise.
5422 (m68k_skip_prologue): Likewise.
5423 (m68k_frame_init_saved_regs): Likewise.
5424 (m68k_saved_pc_after_call): Likewise.
5425 (m68k_get_longjmp_target): Make multi-arch.
5426 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5427 structure. Register m68k_get_longjmp_target if enabled.
5428 * m68k-tdep.h (struct gdbarch_tdep): Define.
5429 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5430
5431 * Makefile.in (config.status): Also depend on configure.tgt
5432 and configure.host.
5433 (m68klinux-tdep.o): Update dependencies.
5434 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5435 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5436 (M68K_LINUX_JB_PC): Define.
5437 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5438 and take additional parameter.
5439 (m68k_linux_sigtramp_saved_pc): Update.
5440 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5441 m68k_linux_pc_in_sigtramp, in_plt_section,
5442 find_solib_trampoline_target.
5443 * config/m68k/tm-linux.h: Don't include any tm headers.
5444 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5445 (JB_ELEMENT_SIZE): Likewise.
5446 (JB_PC): Likewise.
5447 (GET_LONGJMP_TARGET): Likewise.
5448 (IN_SIGTRAMP): Likewise.
5449 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5450
eb2c22dc
MK
54512003-05-25 Mark Kettenis <kettenis@gnu.org>
5452
5453 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5454 (sparc32_push_arguments): Re-implement by calling
5455 sparc32_do_push_arguments.
5456
44b7b84e
MK
54572003-05-25 Mark Kettenis <kettenis@gnu.org>
5458
5459 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5460 SPARC_O1_REGNUM): New defines.
5461 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5462 (sparc32_store_return_value): New function.
5463 (sparc_extract_struct_value_address): Rewrite to operate on a
5464 regcache.
5465 (sparc_gdbarch_init): Don't set
5466 deprecated_extract_struct_value_address. Set
5467 extract_struct_value_address instead. Don't set
5468 deprecated_extract_return_value and deprecated_store_return_value
5469 for 32-bit targets. Set extract_return_value and
5470 store_return_value instead.
5471 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5472 DEPRECTAED_EXTRACT_RETURN_VALUE,
5473 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5474 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5475 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5476 (sparc_store_return_value): Remove prototype.
5477 (sparc32_store_return_value): New prototype.
5478 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5479 Adjust prototypes.
5480
f6ad61e3
MK
54812003-05-24 Mark Kettenis <kettenis@gnu.org>
5482
5483 * sparcnbsd-tdep.c: Include "gdb_string.h".
5484
b276f1bb
AC
54852003-05-23 Andrew Cagney <cagney@redhat.com>
5486
5487 * p-valprint.c (pascal_val_print): Replace extract_address with
5488 the inline equivalent extract_unsigned_integer.
5489 * jv-valprint.c (java_value_print): Ditto.
5490 * ada-valprint.c (ada_val_print_1): Ditto.
5491 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5492
e76c5fcc
TR
54932003-05-23 Theodore A. Roth <troth@openavr.org>
5494
5495 * blockframe.c (frameless_look_for_prologue): Remove unused
5496 after_prologue variable.
5497
2cdd89cb
MK
54982003-05-23 Mark Kettenis <kettenis@gnu.org>
5499
5500 * blockframe.c (get_pc_function_start): Rewrite to avoid
5501 asignments in if-statements.
5502
182d43bc
EZ
55032003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5504
5505 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5506 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5507 files, don't relocate absolute symbols (and do use mst_abs).
5508
e8f3fcdd
AC
55092003-05-23 Andrew Cagney <cagney@redhat.com>
5510
5511 * objc-lang.c: Include "gdb_assert.h".
5512 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5513 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5514 (gdb_check, gdb_check_fatal): Delete functions.
5515 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5516 gdb_assert.
5517 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5518 * Makefile.in (objc-lang.o): Update dependencies.
5519
3c23e6fb
ILT
55202003-05-22 Ian Lance Taylor <ian@airs.com>
5521
5522 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5523 with fprintf_filtered, not fprintf_unfiltered.
5524
af1342ab
AC
55252003-05-22 Andrew Cagney <cagney@redhat.com>
5526
5527 * stack.c (frame_info): Inline extract_address, replacing it with
5528 extract_unsigned_integer.
5529 * findvar.c (unsigned_pointer_to_address): Ditto.
5530 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5531 * dwarf2expr.c (dwarf2_read_address): Ditto.
5532 * frame.c (frame_pc_unwind): Update comment.
5533 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5534
47e242ec
JJ
55352003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5536
5537 * infptrace.c (detach): Call print_sys_errmsg rather than
5538 perror_with_name to issue warning message when errno is non-zero
5539 after calling ptrace detach.
5540
e2ac8128
JB
55412003-05-21 J. Brobecker <brobecker@gnat.com>
5542
5543 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5544 macro definitions from here...
5545 * hppa-tdep.c: ...to there.
5546
92b3541e
KB
55472003-05-20 Kevin Buettner <kevinb@redhat.com>
5548
5549 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5550 register_ptrace_addr(). Fix all callers.
5551
55809acb
AS
55522003-05-21 Andreas Schwab <schwab@suse.de>
5553
5554 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5555 dependencies.
5556 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5557 end.
5558 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5559 (_initialize_m68k_linux_tdep): New function.
5560 (m68k_linux_frame_saved_pc): Make static.
5561 (m68k_linux_extract_return_value): Likewise.
5562 (m68k_linux_store_return_value): Likewise.
5563 (m68k_linux_extract_struct_value_address): Likewise.
5564 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5565 Remove.
5566 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5567 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5568 (DEPRECATED_FRAME_SAVED_PC): Remove.
5569
0fbc10f7
KW
55702003-05-20 Kris Warkentin <kewarken@qnx.com>
5571
5572 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5573 regset numbering rather than our own.
5574
58da2eb2
DC
55752003-05-19 David Carlton <carlton@bactrian.org>
5576
5577 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5578
1fcb5155
DC
55792003-05-19 David Carlton <carlton@bactrian.org>
5580
5581 Partial fix for PR c++/827.
5582 * cp-support.h: Include symtab.h.
5583 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5584 * cp-namespace.c: Update contributors.
5585 (cp_lookup_symbol_nonlocal): New.
5586 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5587 (lookup_symbol_file): Ditto.
5588 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5589 * block.h: Declare block_scope, block_using, block_global_block.
5590 * block.c (block_scope): New.
5591 (block_using, block_global_block): Ditto.
5592 * Makefile.in (cp_support_h): Depend on symtab_h.
5593 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5594
5f9a71c3
DC
55952003-05-19 David Carlton <carlton@bactrian.org>
5596
5597 * language.h (struct language_defn): Add 'la_value_of_this'
5598 and 'la_lookup_symbol_nonlocal' members.
5599 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5600 lookup_symbol_static, lookup_symbol_global,
5601 lookup_symbol_aux_block.
5602 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5603 if we should search fields of this and how to do static/global
5604 lookup.
5605 (lookup_symbol_aux_block): Make extern.
5606 (basic_lookup_symbol_nonlocal): New.
5607 (lookup_symbol_static, lookup_symbol_global): Ditto.
5608 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5609 'la_lookup_symbol_nonlocal' members.
5610 * c-lang.c (c_language_defn, cplus_language_defn)
5611 (asm_language_defn, minimal_language_defn): Ditto.
5612 * jv-lang.c (java_language_defn): Ditto.
5613 * language.c (unknown_language_defn, auto_language_defn)
5614 (local_language_defn): Ditto.
5615 * m2-lang.c (m2_language_defn): Ditto.
5616 * objc-lang.c (objc_language_defn): Ditto.
5617 * scm-lang.c (scm_language_defn): Ditto.
5618 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5619 * p-lang.c (pascal_language_defn): Ditto for both.
5620 * Makefile.in (f-lang.o): Depend on value_h.
5621 (p-lang.o): Ditto.
5622
89a9d1b1
DC
56232003-05-19 David Carlton <carlton@bactrian.org>
5624
5625 * block.h: Declare block_static_block.
5626 * block.c (block_static_block): New.
5627 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5628 lookup_symbol_aux_local, calling block_static_block instead.
5629 (lookup_symbol_aux_local): Delete 'static_block' argument.
5630
eed3f8ab
DC
56312003-05-19 David Carlton <carlton@bactrian.org>
5632
5633 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5634
a09d8bda
ML
56352003-05-19 Michal Ludvig <mludvig@suse.cz>
5636
5637 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5638 register numbers mapping.
5639
69636828
AF
56402003-05-18 Adam Fedor <fedor@gnu.org>
5641
5642 * symtab.c (completion_list_objc_symbol): New function.
5643 (make_symbol_completion_list): Use it to add ObjC symbols
5644 when looking though the list.
5645 (language_search_unquoted_string): New function.
5646 (make_file_symbol_completion_list): Use it.
5647
55baeb84
AS
56482003-05-18 Andreas Schwab <schwab@suse.de>
5649
d0b45d99
AS
5650 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5651 dependencies.
5652 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5653 as m68k_linux_extract_return_value.
5654 (DEPRECATED_STORE_RETURN_VALUE): Define as
5655 m68k_linux_store_return_value.
5656 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5657 m68k_linux_extract_struct_value_address.
5658 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5659 get_next_frame, get_frame_base, get_frame_pc.
5660 (m68k_linux_frame_saved_pc): Use get_frame_base.
5661 (m68k_linux_extract_return_value): New function.
5662 (m68k_linux_store_return_value): New function.
5663 (m68k_linux_extract_struct_value_address): New function.
5664 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5665
55baeb84
AS
5666 * c-exp.y (typebase): Remove duplicate occurence of
5667 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5668 of lookup_signed_typename.
55baeb84 5669
b6b08ebf
MK
56702003-05-18 Mark Kettenis <kettenis@gnu.org>
5671
5672 * dwarf2loc.c (find_location_expression): Change type of second
5673 argument to `size_t *'.
5674 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5675 for size variable.
5676
5ad1c190
DC
56772003-05-18 David Carlton <carlton@bactrian.org>
5678
5679 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5680 'linkage_name'. Add comment.
5681 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5682 'linkage_name'.
5683 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5684 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5685 (lookup_block_symbol): Ditto.
5686
b8b527c5
AC
56872003-05-16 Andrew Cagney <cagney@redhat.com>
5688
5689 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5690 * gdbarch.h, gdbarch.c: Re-generate.
5691 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5692 * TODO (REGISTER_BYTES): Delete reference.
5693 * alpha-tdep.c (alpha_gdbarch_init): Update.
5694 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5695 * x86-64-tdep.c (x86_64_init_abi): Update.
5696 * vax-tdep.c (vax_gdbarch_init): Update.
5697 * v850-tdep.c (v850_gdbarch_init): Update.
5698 * sparc-tdep.c (sparc_gdbarch_init): Update.
5699 * sh-tdep.c (sh_gdbarch_init): Update.
5700 * s390-tdep.c (s390_gdbarch_init): Update.
5701 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5702 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5703 (ns32k_gdbarch_init_32382): Update.
5704 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5705 * mcore-tdep.c (mcore_gdbarch_init): Update.
5706 * m68k-tdep.c (m68k_gdbarch_init): Update.
5707 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5708 * ia64-tdep.c (ia64_gdbarch_init): Update.
5709 * i386-tdep.c (i386_gdbarch_init): Update.
5710 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5711 * hppa-tdep.c (hppa_gdbarch_init): Update.
5712 * h8300-tdep.c (h8300_gdbarch_init): Update.
5713 * frv-tdep.c (frv_gdbarch_init): Update.
5714 * cris-tdep.c (cris_gdbarch_init): Update.
5715 * avr-tdep.c (avr_gdbarch_init): Update.
5716 * arm-tdep.c (arm_gdbarch_init): Update.
5717 * sparc-tdep.c (sparc_pop_frame): Update.
5718 * rs6000-tdep.c (rs6000_pop_frame): Update.
5719 * remote.c (init_remote_state): Update.
5720 (remote_prepare_to_store): Update.
5721 * remote-vx.c (vx_prepare_to_store): Update.
5722 * remote-sds.c (sds_fetch_registers): Update.
5723 (sds_prepare_to_store): Update.
5724 * remote-array.c: Update.
5725 * regcache.c (init_legacy_regcache_descr): Update.
5726 (init_regcache_descr): Update.
5727 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5728 (mips_o64_extract_return_value): Update.
5729 * irix5-nat.c (fetch_core_registers): Update.
5730 * irix4-nat.c (fetch_core_registers): Update.
5731 * i386-tdep.h: Update.
5732 * hppa-tdep.c (pa_do_registers_info): Update.
5733 (pa_do_strcat_registers_info): Update.
5734 * cris-tdep.c (cris_register_bytes_ok): Update.
5735 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5736 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5737 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5738 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5739 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5740 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5741 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5742 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5743 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5744 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5745 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5746 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5747 (REGISTER_BYTES_OK): Update.
5748 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5749 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5750
ee2842e2
ILT
57512003-05-16 Ian Lance Taylor <ian@airs.com>
5752
5753 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5754 (vax_print_insn, print_insn_arg): Remove static functions.
5755 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5756 print_insn_vax from opcodes library.
5757 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5758
973177d3
AC
57592003-05-15 Andrew Cagney <cagney@redhat.com>
5760
aaab4dba
AC
5761 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5762 * target.h (memory_breakpoint_from_pc): Delete declaration.
5763 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5764 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5765 * monitor.c (monitor_insert_breakpoint): Use
5766 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5767 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5768 * gdbarch.h, gdbarch.c: Re-generate.
5769 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5770 (sparc_gdbarch_init): Set breakpoint_from_pc to
5771 sparc_breakpoint_from_pc.
5772 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5773 (BREAKPOINT_FROM_PC): Define.
5774 (sparc_breakpoint_from_pc): Declare.
5775 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5776 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5777 (BREAKPOINT_FROM_PC): Define.
5778 (BREAKPOINT): Delete macro.
5779 * target.h: Update comment.
5780 * s390-tdep.c (s390_gdbarch_init): Update comments.
5781 * remote.c: Update comments.
5782 * remote-mips.c: Update comments.
5783 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5784 * mem-break.c: Update comment.
5785 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5786 (ia64_memory_insert_breakpoint): Update.
5787 * config/sparc/tm-sparc.h: Update comment.
5788 * config/pa/tm-hppa64.h: Update comment.
5789 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5790 (rs6000_breakpoint_from_pc): Update.
5791 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5792 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5793 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5794 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5795 (mips_breakpoint_from_pc): Update.
5796 (mips_dump_tdep): Update.
5797
e06963ff
AC
5798 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5799 * minsyms.c (lookup_minimal_symbol): Inline
5800 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5801
973177d3
AC
5802 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5803 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5804 * p-lang.c (pascal_printstr): Ditto.
5805 * objc-lang.c (objc_printstr): Ditto.
5806 * m2-lang.c (m2_printstr): Ditto.
5807 * jv-valprint.c (java_print_value_fields): Ditto.
5808 * f-lang.c (f_printstr): Ditto.
5809 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5810 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5811 for repeat_count_threshold.
5812 * Makefile.in (cp-valprint.o): Update dependencies.
5813
5ea2bd7f 58142003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5815
5ea2bd7f
JJ
5816 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5817 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5818 they start with mov r2,r12. Support skipping over indirect stores
5819 of the input registers. Upon hitting a non-nop branch instruction
5820 or predicated instruction, bail out by setting lim_pc to the current
5821 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5822 beyond our calculated value and we have trust_limit set,
5823 use the lim_pc value.
5824
cc8c88f3
AC
58252003-05-15 Andrew Cagney <cagney@redhat.com>
5826
5827 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5828 generic_find_dummy_frame.
5829 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5830 (deprecated_generic_find_dummy_frame): Update.
5831 (deprecated_read_register_dummy): Update.
5832 * frame.c (deprecated_generic_get_saved_register): Update.
5833
909cd28e
TR
58342003-05-15 Theodore A. Roth <troth@openavr.org>
5835
5836 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5837 (avr_gdbarch_init): Set breakpoint_from_pc method.
5838
b923b08d
AC
58392003-05-15 Andrew Cagney <cagney@redhat.com>
5840
5841 * regcache.c (build_regcache): Set deprecated_register_valid
5842 directly.
5843 (deprecated_grub_regcache_for_register_valid): Delete function.
5844 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5845 declaration.
5846
ae2f03ac 58472003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5848
5849 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5850 * symtab.c (lookup_symbol_aux): Delete calls to
5851 lookup_symbol_aux_minsyms.
5852 (lookup_symbol_aux_minsyms): Comment out function and
5853 prototype. Delete lookup by mangled name.
ae2f03ac 5854
18ec9831
KB
58552003-05-14 Kevin Buettner <kevinb@redhat.com>
5856
5857 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5858 correctly indicate an empty stack and ``stack_allocated'' to the
5859 indicate the number of elements initially allocated.
5860 (dwarf_expr_grow_stack): Simplify method for computing new
5861 stack size. Don't loop infinitely if ``stack_len'' is zero.
5862 (execute_stack_op): Move ``ctx->in_reg'' initialization
5863 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5864 be used in conjuction with DW_OP_piece. Revise error message
5865 accordingly.
5866
de18ac1f
TR
58672003-05-14 Theodore A. Roth <troth@openavr.org>
5868
5869 * MAINTAINERS: Update my email address.
5870 * avr-tdep.c: Ditto.
5871
176620f1
EZ
58722003-05-14 Elena Zannoni <ezannoni@redhat.com>
5873
5874 * symtab.h (enum domain_enum): Rename from namespace_enum.
5875 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5876 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5877 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5878 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5879 TYPES_NAMESPACE, METHODS_NAMESPACE.
5880 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5881 (struct symbol, struct partial_symbol): Rename field
5882 'namespace_enum namespace' to 'domain_enum domain'.
5883 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5884 Delete old define kludge for namespace.
5885
5886 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5887 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5888 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5889 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5890 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5891 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5892 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5893 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5894 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5895 occurrences of the above.
5896
b7f31508
ILT
58972003-05-14 Ian Lance Taylor <ian@airs.com>
5898
5899 * Makefile.in (install-only): Use $(SHELL) when running
5900 mkinstalldirs.
5901
2fdbdd39
ILT
59022003-05-13 Ian Lance Taylor <ian@airs.com>
5903
a208d82c
ILT
5904 * MAINTAINERS (write after approval): Add myself.
5905
2fdbdd39
ILT
5906 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5907 second and third arguments.
5908 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5909 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5910
fbd9dcd3
AC
59112003-05-13 Andrew Cagney <cagney@redhat.com>
5912
5913 * defs.h (store_address): Delete declaration.
5914 findvar.c (store_address): Delete function.
5915 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5916 store_unsigned_integer.
5917 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5918 * v850-tdep.c (v850_push_arguments): Ditto.
5919 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5920 * sh-tdep.c (sh64_get_saved_register): Ditto.
5921 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5922 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5923 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5924 (mips_get_saved_register): Ditto.
5925 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5926 (find_func_descr, ia64_push_arguments): Ditto.
5927 * i386-tdep.c (i386_push_arguments): Ditto.
5928 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5929 * frv-tdep.c (frv_push_arguments): Ditto.
5930 * frame.c (legacy_saved_regs_prev_register): Ditto.
5931 (deprecated_generic_get_saved_register): Ditto.
5932 * findvar.c (unsigned_address_to_pointer): Ditto.
5933 * dwarf2read.c (dwarf2_const_value): Ditto.
5934 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5935 * alpha-tdep.c (alpha_push_arguments): Ditto.
5936
6760f9e6
JB
59372003-05-12 J. Brobecker <brobecker@gnat.com>
5938
5939 * NEWS: Mention that the hppa-hpux port has been partially
5940 multiarched (32bit ABIT only, so far).
5941
30e221b4
AC
59422003-05-11 Andrew Cagney <cagney@redhat.com>
5943
5944 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5945 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5946 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5947 sim/testsuite/sim/arm/misaligned2.ms, and
5948 sim/testsuite/sim/arm/misaligned3.ms.
5949 * disasm.h (struct ui_file): Add opaque struct declaration.
5950 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5951 * frame.h (struct ui_file): Ditto.
5952
dea7f9ba
MK
59532003-05-11 Mark Kettenis <kettenis@gnu.org>
5954
5955 * value.h: Pretty print.
5956
01986c48
MK
59572003-05-10 Mark Kettenis <kettenis@gnu.org>
5958
5959 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5960
123a958e
AC
59612003-05-08 Andrew Cagney <cagney@redhat.com>
5962
5963 * regcache.h (max_register_size): Delete declaration.
5964 * regcache.c (max_register_size): Delete function.
5965 (struct regcache_descr): Delete field "max_register_size".
5966 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5967 registers fit in MAX_REGISTER_SIZE.
5968 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5969 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5970 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5971 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5972 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5973 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5974 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5975 * dve3900-rom.c, hppa-tdep.c: Ditto.
5976
eb294659
DC
59772003-05-08 David Carlton <carlton@math.stanford.edu>
5978
5979 * valops.c (push_word): Fix typo.
5980
d9d9c31f
AC
59812003-05-08 Andrew Cagney <cagney@redhat.com>
5982
5983 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5984 * gdbarch.h: Re-generate.
5985 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
5986 (legacy_max_register_raw_size): Delete declaration.
5987 * regcache.c (legacy_max_register_raw_size): Delete function.
5988 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
5989 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
5990 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
5991 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
5992 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
5993 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
5994 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
5995 * findvar.c, dwarf2cfi.c: Ditto.
5996
22540ece
AC
59972003-05-08 Andrew Cagney <cagney@redhat.com>
5998
5999 * mips-tdep.c (read_signed_register): New function, moved to here
6000 from "regcache.c".
6001 (read_signed_register_pid): Ditto.
6002 * regcache.c (read_signed_register_pid): Delete function, moved to
6003 "mips-tdep.c".
6004 (read_signed_register): Ditto.
6005 * regcache.h (read_signed_register): Delete declaration.
6006 (read_signed_register_pid): Delete declaration.
6007
0c92afe8
AC
60082003-05-08 Andrew Cagney <cagney@redhat.com>
6009
6010 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6011 * gdbarch.h: Re-generate.
6012 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6013 (legacy_max_register_virtual_size): Delete declaration.
6014 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6015 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6016 * tracepoint.c (memrange_sortmerge): Ditto.
6017 * sparc-tdep.c (sparc_print_registers): Ditto.
6018 * regcache.c (legacy_max_register_virtual_size): Delete function.
6019
6037b830
JB
60202002-05-08 J. Brobecker <brobecker@gnat.com>
6021
6022 * fork-child.c (escape_bang_in_quoted_argument): New function.
6023 (fork_inferior): Escape '!' characters in quoted arguments
6024 only when needed.
6025
5d62c8b1
JB
60262003-05-08 J. Brobecker <brobecker@gnat.com>
6027
6028 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6029 the language of the CU is not currently supported by GDB.
6030
20a0e81d
JB
60312003-05-08 J. Brobecker <brobecker@gnat.com>
6032
6033 * defs.h (language): Add language_minimal enum value.
6034 * c-lang.c (minimal_language_defn): New language definition.
6035 (_initialize_c_language): Add the new minimal language to the list
6036 of languages known to GDB.
6037
710ee10a
KB
60382003-05-08 Kevin Buettner <kevinb@redhat.com>
6039
6040 * frame.c (get_frame_type): Don't attempt to lazily initialize
6041 frame's unwinder for legacy frames.
6042
1750fa04
AC
60432003-05-07 Andrew Cagney <cagney@redhat.com>
6044
6045 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6046 and "regcache" parameters.
6047 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6048
ddf9f258 60492003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6050
6051 * dwarf2read.c (dwarf_decode_lines): Only use output of
6052 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6053 the current address.
6054
87767c29
AC
60552003-05-07 Andrew Cagney <cagney@redhat.com>
6056
6057 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6058 code.
6059
5e7b2f39
JB
60602003-05-07 Jim Blandy <jimb@redhat.com>
6061
6062 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6063 'maint info symtabs' and 'maint info psymtabs'.
6064 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6065 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6066 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6067 Declarations updated.
6068 * maint.c (maintenance_list_command): Delete.
6069 (_initialize_maint_cmds): Update calls to add_cmd.
6070 * gdbcmd.h (maintenancelistlist): Delete declaration.
6071 * cli/cli-cmds.c (maintenancelistlist): Delete.
6072 (init_cmd_lists): Don't initialize it.
6073 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6074
f6684c31
AC
60752003-05-07 Andrew Cagney <cagney@redhat.com>
6076
6077 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6078 "regcache".
6079 (d10v_print_registers_info): Update.
6080 (d10v_dmap_register, d10v_imap_register): Delete functions.
6081 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6082 and "imap_register".
6083 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6084 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6085 * arch-utils.c (generic_remote_translate_xfer_address): Add
6086 "regcache" and "gdbarch" parameters.
6087 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6088 parameter. Change class to multi-arch.
6089 * gdbarch.h, gdbarch.c: Re-generate.
6090 * remote.c (remote_xfer_memory): Use
6091 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6092
e4846b08
JJ
60932003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6094
6095 * infrun.c (prev_pc): Move declaration ahead of proceed().
6096 (proceed): Refresh prev_pc value before resuming.
6097 (stop_stepping): Remove code to refresh prev_pc.
6098
6b71b8ac
KW
60992003-05-06 Kris Warkentin <kewarken@qnx.com>
6100
6101 * nto-tdep.c: Removed stray comment.
6102
47979a4b
KW
61032003-05-06 Kris Warkentin <kewarken@qnx.com>
6104
6105 * i386-nto-tdep.c: Fix old K&R function definitions.
6106 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6107 Also change add_show_from_set() call to add_setshow_cmd().
6108 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6109
00905d52
AC
61102003-05-05 Andrew Cagney <cagney@redhat.com>
6111
6112 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6113 (fprint_dummy_frames): New function.
6114 (maintenance_print_dummy_frames): New function.
6115 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6116 * frame.c (fprint_frame_id): Make global.
6117 * frame.h (fprint_frame_id): Declare.
6118 * Makefile.in (dummy-frame.o): Update dependencies.
6119
b1e29e33
AC
61202003-05-05 Andrew Cagney <cagney@redhat.com>
6121
6122 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6123 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6124 SIZEOF_CALL_DUMMY_WORDS.
6125 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6126 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6127 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6128 CALL_DUMMY_BREAKPOINT_OFFSET.
6129 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6130 CALL_DUMMY_START_OFFSET.
6131 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6132 * gdbarch.h, gdbarch.c: Re-generate.
6133 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6134 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6135 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6136 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6137 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6138 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6139 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6140 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6141 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6142 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6143 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6144 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6145 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6146 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6147 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6148
61492003-05-05 Kris Warkentin <kewarken@qnx.com>
6150
6151 * configure.tgt: Add i[3456]86-*-nto*.
6152 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6153 * nto-tdep.c: New file. Neutrino target support routines.
6154 * nto-tdep.h: New file. Neutrino target header.
6155 * config/tm-qnxnto.h: New file.
6156 * config/i386/i386nto.mt: New file.
6157 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6158
0ce3d317
AC
61592003-05-04 Andrew Cagney <cagney@redhat.com>
6160
6161 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6162 (load_infrun_state): Ditto.
6163 (struct thread_info): Drop "prev_func_name" field.
6164 * thread.c (load_infrun_state): Update.
6165 (save_infrun_state): Update.
6166 * infrun.c (prev_func_name): Delete variable.
6167 (init_wait_for_inferior): Do not clear prev_func_name.
6168 (stop_stepping, keep_going, context_switch): Do not swap
6169 prev_func_name.
6170 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6171 instead of PC_IN_SIGTRAMP.
6172
46654a5b
AC
61732003-05-04 Andrew Cagney <cagney@redhat.com>
6174
6175 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6176 REGISTER_BYTE with register_offset_hack.
6177 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6178 that REGISTER_BYTE is consistent with the regcache.
6179 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6180 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6181
14b08c1b
MK
61822003-05-04 Mark Kettenis <kettenis@gnu.org>
6183
04c8243f
MK
6184 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6185 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6186
14b08c1b
MK
6187 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6188
c7a11e01
JB
61892003-05-03 J. Brobecker <brobecker@gnat.com>
6190
6191 From Thierry Schneider <tpschneider1@yahoo.com>
6192 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6193 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6194 (mi-cmd-symbol.o): Add rule.
6195
7043d8dc
AC
61962003-05-03 Andrew Cagney <cagney@redhat.com>
6197
6198 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6199 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6200 * gdbarch.h, gdbarch.c: Re-generate.
6201 * d10v-tdep.c (d10v_push_dummy_code): New function.
6202 (d10v_gdbarch_init): Set push_dummy_code.
6203 * infcall.c (legacy_push_dummy_code): New function.
6204 (generic_push_dummy_code): New function.
6205 (push_dummy_code): New function.
6206 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6207 instead of dummy_addr, to push_dummy_call. Move call to
6208 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6209 switch.
6210 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6211
92bf2b80
AC
62122003-05-03 Andrew Cagney <cagney@redhat.com>
6213
6214 * disasm.h (print_insn): Declare.
6215 * disasm.c (init_gdb_disassemble_info): New function.
6216 (gdb_disassembly): Call init_gdb_disassemble_info.
6217 (gdb_print_insn): New function.
6218 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6219 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6220 * mcore-tdep.c: Include "disasm.h"
6221 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6222 * d10v-tdep.c: Include "disasm.h".
6223 (display_trace): Call gdb_print_insn, instead of print_insn.
6224 (print_insn): Delete function.
6225 * printcmd.c: Include "disasm.h".
6226 (print_insn): Delete function.
6227 (print_formatted): Call gdb_print_insn, instead of print_insn.
6228 * Makefile.in (printcmd.o): Update dependencies.
6229 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6230
27d94c49
AC
62312003-05-02 Andrew Cagney <cagney@redhat.com>
6232
82de1e5b
AC
6233 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6234 PC_REGNUM, re-indent.
6235 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6236 PC_REGNUM isn't set.
6237
27d94c49
AC
6238 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6239 * gdbarch.h, gdbarch.c: Re-generate.
6240 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6241 register_virtual_size, pc_regnum, or register_bytes.
6242 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6243 (d10v_register_type): Use D10V_PC_REGNUM.
6244 (d10v_print_registers_info, d10v_read_pc): Ditto.
6245 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6246 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6247
a9c0dc7f
DC
62482003-05-02 David Carlton <carlton@bactrian.org>
6249
6250 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6251 the name with mstrsave.
6252
e33d66ec
EZ
62532003-05-02 Elena Zannoni <ezannoni@redhat.com>
6254
6255 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6256 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6257 (host_charset_name, target_charset_name): New vars for use by
6258 set/show commands.
6259 (host_charset_enum, target_charset_enum): New enums for set/show
6260 commands.
6261 (set_charset_sfunc, set_host_charset_sfunc,
6262 set_target_charset_sfunc): New functions.
6263 (set_host_charset, set_target_charset): Make static.
6264 (list_charsets, set_host_charset_command,
6265 set_target_charset_command): Delete functions.
6266 (show_charset_command): Rewrite as....
6267 (show_charset): Hook this up with the set/show command mechanism.
6268 (_initialize_charset): Change names of charsets to match the
6269 set/show enums. Use host_charset_name and target_charset_name.
6270 Use set/show mechanism for charset, host-charset, target-charset
6271 commands. Do not make 'show host-charset' and 'show
6272 target-charset' be aliases of 'show charset'.
6273
6274 * charset.h (set_host_charset, set_target_charset): Don't export,
6275 they are not used outside the file.
6276
2b6fd0d8
AC
62772003-05-01 Andrew Cagney <cagney@redhat.com>
6278
6279 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6280 (gdb_disassembly): Make "di" non static, always initialize and
6281 cleanup. Always use dis_asm_read_memory.
6282 (gdb_dis_asm_read_memory): Delete function.
6283
6ae2f580
AC
62842003-05-01 Andrew Cagney <cagney@redhat.com>
6285
6286 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6287 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6288
810ecf9f
AC
62892003-04-30 Andrew Cagney <cagney@redhat.com>
6290
6291 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6292 "tm_print_insn_info".
6293 (TARGET_PRINT_INSN_INFO): Delete macro.
6294 (dis_asm_read_memory): Delete function declaration.
6295 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6296 (tm_print_insn_info): Delete variable definition.
6297 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6298 * gdbarch.h, gdbarch.c: Re-generate.
6299 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6300 "deprecated_tm_print_insn_info".
6301 * mcore-tdep.c (mcore_dump_insn): Ditto.
6302 * mips-tdep.c (mips_gdbarch_init): Ditto.
6303 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6304 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6305 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6306 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6307 instead of TARGET_PRINT_INSN_INFO, add comment.
6308 * s390-tdep.c (s390_get_frame_info): Instead of
6309 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6310 (s390_check_function_end, s390_is_sigreturn): Ditto.
6311 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6312 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6313 * disasm.c: Include "gdbcore.h".
6314 (_initialize_disasm): New function, initialize
6315 "deprecated_tm_print_insn_info".
6316 (deprecated_tm_print_insn_info): New variable.
6317 (dis_asm_read_memory): Moved from "corefile.c", made static.
6318 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6319 * Makefile.in (disasm.o): Update dependencies.
6320
07020390
AC
63212003-04-30 Andrew Cagney <cagney@redhat.com>
6322
6323 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6324
a9fa03de
AF
63252003-04-29 Adam Fedor <fedor@gnu.org>
6326
6327 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6328 * infcall.c (find_function_addr): Make non-static.
6329 * infcall.h (find_function_addr): Declare.
6330 * Makefile.in (eval.o): Update dependencies.
6331
1bae87b9
AF
63322003-04-28 Adam Fedor <fedor@gnu.org>
6333
6334 * symtab.c (symbol_find_demangled_name): Check for and demangle
6335 ObjC symbols.
6336 (symbol_init_demangled_name): Init for language_objc as well.
6337
0ba6dca9
AC
63382003-04-28 Andrew Cagney <cagney@redhat.com>
6339
6340 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6341 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6342 * gdbarch.h, gdbarch.c: Re-generate.
6343 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6344 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6345 * inferior.h (deprecated_read_fp): Rename read_fp.
6346 (generic_target_read_fp): Delete declaration.
6347 * regcache.c (generic_target_read_fp): Delete function.
6348 (deprecated_read_fp): Replace read_fp, use
6349 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6350 * d10v-tdep.c (d10v_read_fp): Delete function.
6351 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6352
6353 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6354 deprecated_target_read_fp to generic_target_read_fp.
6355 * sh-tdep.c (sh_gdbarch_init): Ditto.
6356 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6358 * frv-tdep.c (frv_gdbarch_init): Ditto.
6359
6360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6361 deprecated_fp_regnum.
6362 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6363 * vax-tdep.c (vax_gdbarch_init): Ditto.
6364 * v850-tdep.c (v850_gdbarch_init): Ditto.
6365 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6366 * sh-tdep.c (sh_gdbarch_init): Ditto.
6367 * s390-tdep.c (s390_gdbarch_init): Ditto.
6368 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6369 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6370 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6371 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6373 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6374 * i386-tdep.c (i386_gdbarch_init): Ditto.
6375 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6376 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6377 * frv-tdep.c (frv_gdbarch_init): Ditto.
6378 * cris-tdep.c (cris_gdbarch_init): Ditto.
6379 * avr-tdep.c (avr_gdbarch_init): Ditto.
6380 * arm-tdep.c (arm_gdbarch_init): Ditto.
6381 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6382
6383 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6384 * v850-tdep.c (v850_gdbarch_init): Ditto.
6385 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6386 * sh-tdep.c (sh_gdbarch_init): Ditto.
6387 * s390-tdep.c (s390_gdbarch_init): Ditto.
6388 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6389 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6390 * mips-tdep.c (mips_gdbarch_init): Ditto.
6391 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6392 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6393 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6394 * frv-tdep.c (frv_gdbarch_init): Ditto.
6395 * avr-tdep.c (avr_gdbarch_init): Ditto.
6396 * arm-tdep.c (arm_gdbarch_init): Ditto.
6397
6398 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6399 DEPRECATED_FP_REGNUM.
6400 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6401 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6402 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6403 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6404 (sparc32_register_virtual_type): Ditto.
6405 * sh-tdep.c (sh64_frame_chain): Ditto.
6406 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6407 (sh_nofp_frame_init_saved_regs): Ditto.
6408 (sh64_nofp_frame_init_saved_regs): Ditto.
6409 (sh_fp_frame_init_saved_regs): Ditto.
6410 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6411 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6412 * procfs.c (procfs_fetch_registers): Ditto.
6413 (procfs_store_registers): Ditto.
6414 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6415 (store_inferior_registers, fetch_core_registers): Ditto.
6416 (fetch_kcore_registers, clear_regs): Ditto.
6417 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6418 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6419 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6420 * nlm/i386.c (do_status): Ditto.
6421 * mipsv4-nat.c (supply_gregset): Ditto.
6422 * mips-tdep.c: Ditto for comments.
6423 * mips-nat.c (fetch_inferior_registers): Ditto.
6424 (store_inferior_registers, fetch_core_registers): Ditto.
6425 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6426 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6427 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6428 (i386_do_pop_frame, i386_register_type): Ditto.
6429 * hppa-tdep.c (hppa_frame_chain): Ditto.
6430 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6431 (hppa_pop_frame, hppa_read_fp): Ditto.
6432 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6433 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6434 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6435 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6436 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6437 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6438 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6439 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6440 * blockframe.c: Ditto for comments.
6441 * arch-utils.h: Ditto for comments.
6442 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6443 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6444 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6445 * alpha-tdep.h: Ditto for comments.
6446 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6447 (alpha_cannot_store_register): Ditto.
6448 (alpha_push_dummy_frame): Ditto.
6449 * alpha-nat.c (supply_gregset): Ditto.
6450
6451 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6452 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6453 * config/sparc/tm-sparc.h: Update comment.
6454
6455 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6456 deprecated_read_fp instead of TARGET_READ_FP.
6457 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6458 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6459 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6460 deprecated_read_fp instead of read_fp.
6461 * s390-tdep.c (s390_push_arguments): Ditto.
6462 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6463 * frame.h: Ditto in comments.
6464 * frame.c (legacy_get_prev_frame): Ditto.
6465 * dummy-frame.c (dummy_frame_this_id): Ditto.
6466 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6467
d7a27068
AC
64682003-04-28 Andrew Cagney <cagney@redhat.com>
6469
6470 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6471 * gdbarch.h, gdbarch.c: Re-generate.
6472 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6473 * vax-tdep.c (_initialize_vax_tdep): Update.
6474 * v850-tdep.c (_initialize_v850_tdep): Update.
6475 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6476 * s390-tdep.c (_initialize_s390_tdep): Update.
6477 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6478 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6479 * mips-tdep.c (_initialize_mips_tdep): Update.
6480 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6481 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6482 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6483 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6484 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6485 * frv-tdep.c (_initialize_frv_tdep): Update.
6486 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6487 (_initialize_cris_tdep): Update.
6488 * arch-utils.c (legacy_print_insn): Update.
6489 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6490
d2630e69
AF
64912003-04-26 Adam Fedor <fedor@gnu.org>
6492
6493 * linespec.c (decode_objc): New function to decode ObjC calls
6494 (decode_line_1): Check for ObjC calls (using decode_objc)
6495 * Makefile (linespec.o): Update dependencies.
6496
3086aeae
DJ
64972003-04-26 Daniel Jacobowitz <drow@mvista.com>
6498
6499 * breakpoint.h (struct breakpoint_ops): New.
6500 (struct breakpoint): Add ops member.
6501
6502 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6503 (mention): Use new breakpoint ops member.
6504 (set_raw_breakpoint): Initialize ops field to NULL.
6505 (print_exception_catchpoint, print_one_exception_catchpoint)
6506 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6507 (gnu_v3_exception_catchpoint_ops): New.
6508 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6509
1fbec6c3
AF
65102003-04-25 Adam Fedor <fedor@gnu.org>
6511
6512 * Makefile.in (COMMON_OBS): Add objc-lang.o
6513
0ef21242
AC
65142003-04-25 Andrew Cagney <cagney@redhat.com>
6515
6516 * d10v-tdep.c (print_insn): Delete function.
6517 (display_trace): Use TARGET_PRINT_INSN.
6518 (_initialize_d10v_tdep): Do not set tm_print_insn.
6519 (d10v_gdbarch_init): Set print_insn.
6520
f75493ed
AC
65212003-04-25 Andrew Cagney <cagney@redhat.com>
6522
6523 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6524 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6525 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6526 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6527 (nr_dmap_regs, a0_regnum): ... new functions.
6528 (d10v_print_registers_info): Use a0_regnum, use register_size.
6529 (d10v_register_byte): Delete function.
6530 (d10v_register_raw_size): Delete function.
6531 (d10v_register_type): Use a0_regnum.
6532 (d10v_print_registers_info): Use a0_regnum.
6533 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6534 (d10v_gdbarch_init): Do not set register_byte or
6535 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6536 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6537 extract_address.
6538 (trace_command): Use XCALLOC.
6539 (print_insn): Delete reference to tm_print_insn.
6540 (saved_regs_unwinder): Use store_unsigned_integer instead of
6541 store_address.
6542 * frame.h (FRAME_OBSTACK_CALLOC): Define
6543
2202b100
DC
65442003-04-25 David Carlton <carlton@bactrian.org>
6545
6546 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6547
4e45ca2e
AF
65482003-04-24 Adam Fedor <fedor@gnu.org>
6549
6550 * objc-lang.c: Include "valprint.h"
6551 * Makefile.in (objc-lang.o): Update dependencies.
6552
93de3e7f
AF
65532003-04-24 Adam Fedor <fedor@gnu.org>
6554
8ffd9b1b 6555 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6556 architecture dependant compilation and mark as unimplemented
6557 (until they get put in the gdbarch vector).
6558
0f20eeea
DC
65592003-04-23 David Carlton <carlton@bactrian.org>
6560
6561 * cp-support.c (cp_find_first_component): Accept 'operator' in
6562 more locations.
6563
74cfe982
AC
65642003-04-23 Andrew Cagney <cagney@redhat.com>
6565
6566 * infcall.c (call_function_by_hand): Eliminate redundant
6567 indentation. Move "saved_async" and "old_cleanups" to where they
6568 are needed.
8ffd9b1b 6569
52557533
AC
65702003-04-23 Andrew Cagney <cagney@redhat.com>
6571
6572 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6573 and "buffer". Move the "name" code to where it is needed.
6574
158775de
AC
65752003-04-23 Andrew Cagney <cagney@redhat.com>
6576
6577 * infcall.c (call_function_by_hand): Move variables "start_sp",
6578 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6579 code to ON_STACK switch branch.
8ffd9b1b 6580
ebc7896c
AC
65812003-04-23 Andrew Cagney <cagney@redhat.com>
6582
6583 * infcall.c (call_function_by_hand): Make declaration of "i",
6584 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6585 lint.
6586
d727590f
AC
65872003-04-23 Andrew Cagney <cagney@redhat.com>
6588
6589 * infcall.c (call_function_by_hand): Delete variable
6590 "n_method_args". Localize "param_type"'s declaration to the loop
6591 that it is used. Reinstate code assigning to said variable -
6592 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6593 Rationalize code using "param_type".
6594
d585e13a
AC
65952003-04-22 Andrew Cagney <cagney@redhat.com>
6596
6597 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6598 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6599 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6600 to DEPRECATED_PUSH_RETURN_ADDRESS.
6601
051caad9
KB
66022003-04-22 Kevin Buettner <kevinb@redhat.com>
6603
6604 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6605 on the DWARF2 register number prior to fetching a register.
6606
77296879
JB
66072003-04-22 J. Brobecker <brobecker@gnat.com>
6608
6609 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6610 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6611 this macro was always set to 0.
77296879
JB
6612 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6613 considering the fact that this macro was always set to 0.
6614 * hppa-tdep.h (hppa_store_return_value): Likewise.
6615 (hppa_extract_return_value): Likewise.
6616
4252f1df
JB
66172003-04-22 J. Brobecker <brobecker@gnat.com>
6618
6619 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6620 the hppa-pro target only.
6621
14604c6b
JB
66222003-04-21 J. Brobecker <brobecker@gnat.com>
6623
6624 Ongoing multi-arch conversion effort for HP/UX:
6625 * config/pa/tm-hppa.h: Move all macro that are no longer
6626 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6627 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6628
77eb01d1
JB
66292003-04-21 J. Brobecker <brobecker@gnat.com>
6630
6631 * config/pa/tm-hppa.h: Obsolete a section that was only used
6632 for hppa-pro.
6633
61995b3b
JB
66342003-04-21 J. Brobecker <brobecker@gnat.com>
6635
6636 Ongoing multi-arch conversion for HP/UX.
6637 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6638 if already defined (allows hppa64 to stay non-multiarched for now).
6639 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6640
4aa79dcc
AC
66412003-04-21 Andrew Cagney <cagney@redhat.com>
6642
6643 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6644
0f751ff2
AC
66452003-04-21 Andrew Cagney <cagney@redhat.com>
6646
6647 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6648 "i386_num_mmx_regs".
6649
04714b91
AC
66502003-04-21 Andrew Cagney <cagney@redhat.com>
6651
6652 * infcall.c: New file.
6653 * infcall.h: New file.
6654 * valarith.c: Include "infcall.h".
6655 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6656 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6657 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6658 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6659 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6660 (SFILES): Add "infcall.c"
6661 (COMMON_OBS): Add "infcall.o".
6662 (infcall.o): Specify dependencies.
6663 * value.h (call_function_by_hand): Delete declaration.
6664 * inferior.h (run_stack_dummy): Delete declaration.
6665 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6666 (run_stack_dummy): Move to "infcall.c", merged into
6667 call_function_by_hand.
6668 * valops.c (call_function_by_hand): Moved to "infcall.c".
6669 (find_function_addr, value_arg_coerce): Ditto.
6670 (unwindonsignal_p, coerce_float_to_double): Ditto.
6671 (_initialize_valops): Move "set/show coerce-float-to-double", and
6672 "set/show unwindonsignal" commands to "infcall.c".
6673 * v850-tdep.c, target.h: Update comments.
6674 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6675 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6676 (sh64_init_extra_frame_info): Update comments.
6677 * mn10300-tdep.c: Update comments.
6678 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6679 * config/sparc/tm-sparc.h: Update comments.
6680 * breakpoint.h: Update comments.
6681 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6682 * arm-tdep.c: Update comment.
6683
f9d3c2a8
MK
66842003-04-19 Mark Kettenis <kettenis@gnu.org>
6685
c40e1eab
MK
6686 * i386-tdep.c (i386_num_register_names): New variable.
6687 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6688 (MM0_REGNUM): Remove redundant parentheses in define.
6689 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6690 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6691 i386_mxcsr_regnum_p): Remove redundant parentheses.
6692 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6693
94ea66b3
MK
6694 * i386-tdep.c (i386_extract_return_value,
6695 i386_store_return_value): Correct check for availability of
6696 floating-point registers.
6697
54299a1d
MK
6698 * i386-tdep.c (i386_frame_num_args): Remove function.
6699 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6700
c86c27af
MK
6701 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6702 mmx_regnum_to_fp_regnum. Adjust all callers.
6703
f9d3c2a8
MK
6704 * i386-tdep.c (i386_get_longjmp_target): Use
6705 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6706 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6707 extract_address.
6708
94ba74a9
MK
67092003-04-19 Mark Kettenis <kettenis@gnu.org>
6710
6711 * core-regset.c: Update comments to reflect reality. Re-order
6712 includes.
6713 (fetch_core_registers): Use switch instead of if. Remove
6714 redundant prototype.
6715
4074e13c
JB
67162003-04-18 Jim Blandy <jimb@redhat.com>
6717
6718 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6719 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6720
e3ab4aba
RH
67212003-04-17 Richard Henderson <rth@redhat.com>
6722
6723 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6724
627bf7c1
EZ
67252003-04-17 Michael Snyder <msnyder@redhat.com>
6726 Karen Bennet <bennet@redhat.com>
6727
6728 Committed by Elena Zannoni <ezannoni@redhat.com>
6729 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6730
514621a9
EZ
67312003-04-17 Elena Zannoni <ezannoni@redhat.com>
6732
6733 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6734 value if the return type is void.
514621a9 6735
b4acd559
JJ
67362003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6737
6738 * thread-db.c: Reindented.
8ffd9b1b 6739
530b167e 67402003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6741
6742 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6743 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6744 as types.
6745
0a48e7e8
MS
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
8ffd9b1b 6769
ab9fe00e
KB
67702003-04-16 Kevin Buettner <kevinb@redhat.com>
6771
610a3745 6772 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6773 the size of ``long double'' to 16, instead of 8.
6774
e64a344c
MK
67752003-04-16 Mark Kettenis <kettenis@gnu.org>
6776
6777 * i386-linux-nat.c: Add some whitespace to make things more
6778 readable.
6779 (fetch_register, store_register, fetch_inferior_registers,
6780 store_inferior_registers): Get rid of assignment in if-statement.
6781 (store_register): Fix typo in error message.
6782
25d41031
AC
67832003-04-16 Andrew Cagney <cagney@redhat.com>
6784
6785 * utils.c (xmmalloc): Always allocate something, matches
6786 libiberty/xmalloc's semantics.
6787 (xmrealloc, xmcalloc): Ditto.
6788
c50901fd
AC
67892003-04-16 Andrew Cagney <cagney@redhat.com>
6790
6791 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6792 update comments.
6793 (get_frame_type): Initialize unwind and type when needed.
6794 (get_frame_id, frame_register_unwind): Ditto.
6795
f81824a9
AC
67962003-04-16 Andrew Cagney <cagney@redhat.com>
6797
6798 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6799 obsolete.
6800 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6801 * sparcl-stub.c: Obsolete file.
6802 * config/sparc/tm-sparclet.h: Obsolete file.
6803 * sparclet-stub.c: Obsolete file.
6804 * sparclet-rom.c: Obsolete file.
6805 * sparcl-tdep.c: Obsolete file.
6806 * config/sparc/tm-sparclite.h: Obsolete file.
6807 * config/sparc/sparclite.mt: Obsolete file.
6808 * config/sparc/sparclet.mt: Obsolete file.
6809 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6810 sparc86x-*-* obsolete.
6811
9219021c
DC
68122003-04-15 David Carlton <carlton@math.stanford.edu>
6813
6814 * Makefile.in (SFILES): Add cp-namespace.c.
6815 (COMMON_OBS): Add cp-namespace.o.
6816 (block.o): Depend on gdb_obstack_h and cp_support_h.
6817 (buildsym.o): Depend on cp_support_h.
6818 (cp-namespace.o): New.
6819 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6820 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6821 (dwarf2read.o): Depend on cp_support_h.
6822 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6823 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6824 processing_current_namespace.
6825 (read_namespace): Update processing_current_namespace; check for
6826 anonymous namespaces.
6827 (dwarf2_name): New function.
6828 (dwarf2_extension): Ditto.
6829 * cp-support.h: Update copyright, contributors.
6830 Add inclusion guards.
6831 Add opaque declaration for structs obstack, block, symbol.
6832 (struct using_direct): New struct.
6833 Add declarations for cp_find_first_component,
6834 cp_entire_prefix_len, processing_has_namespace_info,
6835 processing_current_namespace, cp_is_anonymous,
6836 cp_add_using_directive, cp_initialize_namespace,
6837 cp_finalize_namespace, cp_set_block_scope,
6838 cp_scan_for_anonymous_namespaces.
6839 * cp-namespace.c: New file.
6840 * cp-support.c: Update copyright.
6841 Include ctype.h, gdb_assert.h, gdbcmd.h.
6842 New variable maint_cplus_cmd_list.
6843 (cp_find_first_component): New function.
6844 (cp_entire_prefix_len, maint_cplus_command)
6845 (first_component_command, _initialize_cp_support): Ditto.
6846 * buildsym.c: Include cp-support.h.
6847 New variable using_list.
6848 (add_symbol_to_list): Check for anonymous namespaces.
6849 (finish_block): Set block's scope.
6850 (start_symtab): Initialize C++ namespace support.
6851 (end_symtab): Finalize C++ namespace support.
6852 * block.h: Add opaque declarations for structs
6853 block_namespace_info, using_direct, and obstack.
6854 Add declarations for block_set_scope and block_set_using.
6855 (struct block): Add 'language_specific' member.
6856 (BLOCK_NAMESPACE): New macro.
6857 * block.c: Include gdb_obstack.h and cp-support.h.
6858 (struct block_namespace_info): New struct.
6859 (block_set_scope): New function.
6860 (block_set_using, block_initialize_namespace): Ditto.
6861
d5a921c9
KB
68622003-04-14 Kevin Buettner <kevinb@redhat.com>
6863
6864 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6865 (locate_base): Return early if there aren't any link map offsets.
6866 (svr4_solib_create_inferior_hook): Warn if shared library support
6867 is unavailable.
6868
d2a52b27
DC
68692003-04-14 David Carlton <carlton@math.stanford.edu>
6870
6871 * symtab.c (symbol_set_names): Add prefix when storing Java names
6872 in hash table. Fix for PR java/1039.
6873
980cae7a
DC
68742003-04-14 David Carlton <carlton@math.stanford.edu>
6875
6876 * symtab.c (symbol_set_names): Rename 'name' arg to
6877 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6878 * symtab.h: Change 'name' argument in declaration of
6879 symbol_set_names to 'linkage_name'.
6880 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6881
e227b13c
AC
68822003-04-14 Andrew Cagney <cagney@redhat.com>
6883
6884 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6885 return the fully sign-extended register value.
6886 (get_frame_pointer): Ditto.
6887 (mips_pop_frame): Initialize "proc_desc" after checking for a
6888 dummy frame.
6889
36712a20
AC
68902003-04-14 Andrew Cagney <cagney@redhat.com>
6891
6892 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6893 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6894 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6895 (mips_push_register): Delete function.
6896 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6897 PUSH_FP_REGNUM.
6898
44ea7b70
JB
68992003-04-14 Jim Blandy <jimb@redhat.com>
6900
6901 * symmisc.c: #include "gdb_regex.h".
6902 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6903 functions.
6904 * maint.c (maintenance_list_command): New function.
6905 (_initialize_maint_cmds): Register the above as commands.
6906 * symtab.h (maintenance_list_symtabs,
6907 maintenance_list_psymtabs): New declarations.
6908 * cli/cli-cmds.c (maintenancelistlist): New variable.
6909 (init_cmd_lists): Initialize it.
6910 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6911 * gdbcmd.h (maintenancelistlist): New declaration.
6912 * Makefile.in (symmisc.o): Update dependencies.
6913
2d0c7962
EZ
69142003-04-14 Elena Zannoni <ezannoni@redhat.com>
6915
6916 * s390-nat.c: Include asm/types.h for addr_t.
6917
1947a811
CV
69182003-04-14 Corinna Vinschen <vinschen@redhat.com>
6919
6920 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6921 actually incoming type.
6922
adb616d7
AC
69232003-04-13 Andrew Cagney <cagney@redhat.com>
6924
6925 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6926 get_next_frame and get_frame_saved_regs.
6927
9b5e151c
AC
69282003-04-13 Andrew Cagney <cagney@redhat.com>
6929
6930 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6931 of gdbarch_num_regs.
6932
ef6e7e13
AC
69332003-04-13 Andrew Cagney <cagney@redhat.com>
6934
6935 * frame.h: Mention what replaced what in "struct frame_info".
6936 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6937 deprecated_update_frame_base_hack and
6938 deprecated_update_frame_pc_hack.
6939 * hppa-tdep.c: Ditto.
6940
61fbb938
DJ
69412003-04-13 Daniel Jacobowitz <drow@mvista.com>
6942
6943 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6944 to read_reg and update its comment. Remove regnum member.
6945 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6946 Don't call read_reg when setting in_reg. Call read_reg to get
6947 the frame base if it's in a register. Return the register number
6948 on the stack instead of in the context. Remove extra arguments
6949 to read_reg.
6950 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6951 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6952 the register number on the expression stack.
6953 (needs_frame_read_reg): Remove extra arguments.
6954
0d53c4c4
DJ
69552003-04-13 Daniel Jacobowitz <drow@mvista.com>
6956
6957 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6958 made non-static.
6959 (execute_stack_op): All callers updated.
6960 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6961 * dwarf2loc.c (find_location_expression): New function.
6962 (dwarf_expr_frame_base): Call it.
6963 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6964 (dwarf2_tracepoint_var_ref): New function, broken out from
6965 locexpr_tracepoint_var_ref.
6966 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6967 Make static.
6968 (loclist_read_variable, loclist_read_needs_frame): New functions.
6969 (loclist_describe_location, loclist_tracepoint_var_ref): New
6970 functions.
6971 (dwarf2_loclist_funcs): New struct location_funcs.
6972 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6973 (struct dwarf2_locexpr_baton): Add comments.
6974 (dwarf2_loclist_funcs): New extern.
6975 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6976 base_address and base_known.
6977 (dwarf_loc_buffer): New variable.
6978 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6979 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6980 (dwarf2_has_info): Initialize dwarf_loc_offset.
6981 (dwarf2_build_psymtabs): Read in .debug_loc.
6982 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6983 DWARF_LOC_SIZE.
6984 (psymtab_to_symtab_1): Likewise. Move base address calculation
6985 here, from...
6986 (dwarf2_get_pc_bounds): ... here. Use the base address from
6987 cu_header.
6988 (dwarf2_symbol_mark_computed): Handle location lists.
6989
6aca59a3
DJ
69902003-04-13 Daniel Jacobowitz <drow@mvista.com>
6991
6992 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
6993 if the linkage name demangled successfully.
6994
aca1fcd0
MK
69952003-04-13 Mark Kettenis <kettenis@gnu.org>
6996
97095916
MK
6997 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
6998 disassmbly_flavour): Removed.
6999
aca1fcd0
MK
7000 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7001
562a961f
MK
70022003-04-13 Mark Kettenis <kettenis@gnu.org>
7003
7004 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7005
bd013d54
AC
70062003-04-12 Andrew Cagney <cagney@redhat.com>
7007
7008 * frame.h (struct frame_info): Move definition from here ...
7009 * frame.c (struct frame_info): ... to here.
7010
167ef8b1
AC
70112003-04-12 Andrew Cagney <cagney@redhat.com>
7012
7013 * gdbthread.h (save_infrun_state): Delete parameter
7014 "prev_func_start".
7015 (struct thread_info): Delete field "prev_func_start".
7016 (load_infrun_state): Ditto.
7017 * thread.c (load_infrun_state, save_infrun_state): Update.
7018 * infrun.c (prev_func_start): Delete variable.
7019 (context_switch, init_wait_for_inferior): Update.
7020 (stop_stepping, keep_going): Update.
7021
da3331ec
AC
70222003-04-12 Andrew Cagney <cagney@redhat.com>
7023
7024 * gdbarch.sh: Add missing opaque declarations.
7025 * gdbarch.h: Regnerate.
7026 * symtab.h: Add missing opaque declarations.
7027 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7028 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7029 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7030 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7031 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7032 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7033 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7034 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7035 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7036 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7037 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7038 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7039 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7040
18adea3f
AC
70412003-04-11 Andrew Cagney <cagney@redhat.com>
7042
7043 * frame.c (get_frame_id): Return this frame's "id".
7044 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7045 function start.
7046 (legacy_saved_regs_this_id): Replace function body with
7047 internal-error.
7048 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7049 FRAME_OBSTACK_ZALLOC.
7050 (create_new_frame): Mark the frame ID as valid.
7051
2252e863
AO
70522003-04-11 Alexandre Oliva <aoliva@redhat.com>
7053
7054 * Makefile.in (libbfd_h): Added missing setting.
7055 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7056 according to the selected ABI.
7057
a8245ab8
JJ
70582003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7059
7060 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7061
6913c89a
AC
70622003-04-11 Andrew Cagney <cagney@redhat.com>
7063
7064 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7065 SAVED_PC_AFTER_CALL.
7066 * gdbarch.h, gdbarch.c: Regenerate.
7067 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7068 * x86-64-tdep.c (x86_64_init_abi): Update.
7069 * vax-tdep.c (vax_gdbarch_init): Update.
7070 * v850-tdep.c (v850_gdbarch_init): Update.
7071 * sparc-tdep.c (sparc_gdbarch_init): Update.
7072 * sh-tdep.c (sh_gdbarch_init): Update.
7073 * s390-tdep.c (s390_gdbarch_init): Update.
7074 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7075 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7076 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7077 * mips-tdep.c (mips_gdbarch_init): Update.
7078 * mcore-tdep.c (mcore_gdbarch_init): Update.
7079 * m68k-tdep.c (m68k_gdbarch_init): Update.
7080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7081 * ia64-tdep.c (ia64_gdbarch_init): Update.
7082 (ia64_saved_pc_after_call): Update declaration.
7083 * i386ly-tdep.c (i386lynx_init_abi): Update.
7084 * i386-tdep.c (i386_gdbarch_init): Update.
7085 * hppa-tdep.c (hppa_gdbarch_init): Update.
7086 * h8300-tdep.c (h8300_gdbarch_init): Update.
7087 * frv-tdep.c (frv_gdbarch_init): Update.
7088 * cris-tdep.c (cris_gdbarch_init): Update.
7089 * avr-tdep.c (avr_gdbarch_init): Update.
7090 * arm-tdep.c (arm_gdbarch_init): Update.
7091 * alpha-tdep.c (alpha_gdbarch_init): Update.
7092 * ns32knbsd-nat.c (frame_num_args): Update.
7093 * ns32k-tdep.c (umax_frame_num_args): Update.
7094 * mips-tdep.c (mips_init_frame_pc_first): Update.
7095 * infrun.c (step_over_function): Update.
7096 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7097 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7098 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7099 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7100 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7101 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7102 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7103 * arch-utils.c (init_frame_pc_default): Update.
7104 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7105 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7106 declaration.
8ffd9b1b 7107
38edeab8
AC
71082003-04-11 Andrew Cagney <cagney@redhat.com>
7109
7110 * i387-tdep.c: Update copyright.
7111 (i387_to_double): Delete function.
7112 (double_to_i387): Delete function.
7113
81f8a206
AC
71142003-04-10 Andrew Cagney <cagney@redhat.com>
7115
7116 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7117 frame's function's address. Simplify.
7118 (d10v_frame_unwind_cache): Check that the frame's function is
7119 non-zero.
7120
6e691f7a
JB
71212003-04-10 Jim Blandy <jimb@redhat.com>
7122
7123 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7124 call to set_gdbarch_deprecated_push_arguments.
7125
7f78e237
AC
71262003-04-10 Andrew Cagney <cagney@redhat.com>
7127
7128 * frame.c (fprint_frame_id): New function.
7129 (fprint_frame_type, fprint_frame): New function.
7130 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7131 (create_sentinel_frame, get_frame_id): Ditto.
7132 (frame_id_p, frame_id_eq): Ditto.
7133 (frame_id_inner, create_new_frame): Ditto.
7134 (legacy_get_prev_frame, get_prev_frame): Ditto.
7135 (deprecated_update_frame_pc_hack): Ditto.
7136 (frame_register_unwind): Ditto.
7137 (deprecated_update_frame_base_hack): Ditto.
7138
f870b49b
CV
71392003-04-10 Corinna Vinschen <vinschen@redhat.com>
7140
7141 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7142 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7143 frame_chain function.
7144 * Makefile.in: Add dependencies due to above change.
7145
7c86889b
CV
71462003-04-10 Corinna Vinschen <vinschen@redhat.com>
7147
7148 * blockframe.c (legacy_frame_chain_valid): Move call to
7149 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7150 inside_entry_file.
7151
d0a55772
AC
71522003-04-09 Andrew Cagney <cagney@redhat.com>
7153
7154 * frame.h (struct frame_id): Replace "pc" and "base" with
7155 "stack_addr" and "code_addr". Update comments.
7156 (frame_id_build): Update parameter names and comment.
7157 (struct frame_info): Replace "id_p" and "id" with "this_id".
7158 * dummy-frame.c (dummy_frame_this_id): Update.
7159 * breakpoint.c (print_one_breakpoint): Update.
7160 * frame.c (get_frame_id): Update.
7161 (get_frame_base, frame_id_build): Update.
7162 (create_sentinel_frame, legacy_get_prev_frame): Update.
7163 (deprecated_update_frame_base_hack): Update.
7164 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7165 (frame_id_inner): Ditto.
7166
ac16bf07
AC
71672003-04-09 Andrew Cagney <cagney@redhat.com>
7168
7169 * defs.h (gdb_print_host_address): Make "addr" parameter a
7170 pointer constant.
7171 * utils.c (gdb_print_host_address): Update.
7172
366cfc9e
KB
71732003-04-09 Kevin Buettner <kevinb@redhat.com>
7174
7175 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7176 register number for R0 is 0.
7177
cd983b5c
JB
71782003-04-09 J. Brobecker <brobecker@gnat.com>
7179
7180 * frame.h (struct gdbarch): Add opaque structure definition
7181 to avoid a compilation warning on LynxOS 4.0.
7182
d1340264
AC
71832003-04-09 Andrew Cagney <cagney@redhat.com>
7184
7185 * frame.h (struct frame_info): Delete field "pc". Replace
7186 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7187 structure.
7188 * frame.c (frame_pc_unwind): Update.
7189 (create_sentinel_frame): Do not set "pc".
7190 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7191 (get_frame_pc): Call frame_pc_unwind.
7192 (deprecated_update_frame_pc_hack): Update.
7193 (create_new_frame): Use "pc" not "->pc".
7194
90a6fffb
AC
71952003-04-09 Andrew Cagney <cagney@redhat.com>
7196
7197 * frame.c (get_frame_id): Eliminate code updating "frame".
7198 (legacy_get_prev_frame): Ditto.
7199 (get_frame_base): Return id.base directly.
7200 (deprecated_update_frame_base_hack): Update "id.base".
7201 * frame.h (struct frame_info): Delete field "frame".
7202
2fbce691
AC
72032003-04-09 Andrew Cagney <cagney@redhat.com>
7204
7205 * NEWS: Mention that the "Sequent family" is obsolete.
7206 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7207 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7208 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7209 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7210 * config/i386/tm-ptx4.h: Obsolete file.
7211 * config/i386/tm-ptx.h: Obsolete file.
7212 * symm-tdep.c: Obsolete file.
7213 * config/i386/symmetry.mt: Obsolete file.
7214 * config/i386/tm-symmetry.h: Obsolete file.
7215 * symm-nat.c: Obsolete file.
7216 * config/i386/nm-symmetry.h: Obsolete file.
7217 * config/i386/xm-symmetry.h: Obsolete file.
7218 * config/i386/symmetry.mh: Obsolete file.
7219 * config/i386/nm-ptx4.h: Obsolete file.
7220 * config/i386/ptx4.mh: Obsolete file.
7221 * config/i386/ptx.mt: Obsolete file.
7222 * config/i386/ptx.mh: Obsolete file.
7223 * config/i386/xm-ptx4.h: Obsolete file.
7224 * config/i386/xm-ptx.h: Obsolete file.
7225
78c43945
AC
72262003-04-09 Andrew Cagney <cagney@redhat.com>
7227
7228 Obsolete mips*-*-mach3*.
7229 * NEWS: Mention that mips*-*-mach3* is obsolete.
7230 * m3-nat.c: Obsolete file.
7231 * config/nm-m3.h: Obsolete file.
7232 * config/mips/tm-mipsm3.h: Obsolete file.
7233 * config/mips/mipsm3.mt: Obsolete file.
7234 * config/mips/mipsm3.mh: Obsolete file.
7235 * config/mips/xm-mipsm3.h: Obsolete file.
7236 * mipsm3-nat.c: Obsolete file.
7237 * configure.host: Obsolete mips-dec-mach3*.
7238 * configure.tgt: Obsolete mips*-*-mach3*.
7239
f1908289
AC
72402003-04-09 Andrew Cagney <cagney@redhat.com>
7241
7242 * doublest.h: Update copyright.
7243 (deprecated_store_floating, deprecated_extract_floating): Rename
7244 store_floating and extract_floating. Update comments.
7245 * doublest.c: Update copyright.
7246 (extract_floating_by_length): Replace extract_floating.
7247 (store_floating_by_length): Replace store_floating.
7248 (deprecated_extract_floating): New function.
7249 (deprecated_store_floating): New function.
7250 (extract_typed_floating): Call extract_floating_by_length.
7251 (store_typed_floating): Call store_floating_by_length.
7252 * x86-64-tdep.c (x86_64_store_return_value): Update.
7253 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7254 (sh64_extract_return_value): Update.
7255 (sh_sh4_register_convert_to_virtual): Update.
7256 (sh_sh64_register_convert_to_virtual): Update.
7257 (sh_sh4_register_convert_to_raw): Update.
7258 (sh_sh64_register_convert_to_raw): Update.
7259 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7260 (rs6000_register_convert_to_raw): Update.
7261 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7262 (ia64_register_convert_to_raw): Update.
7263 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7264 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7265 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7266 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7267 (alpha_register_convert_to_raw): Update.
7268
4443bd83
AC
72692003-04-08 Andrew Cagney <cagney@redhat.com>
7270
7271 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7272 * gdbarch.h, gdbarch.c: Re-generate.
7273 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7274 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7275 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7276 conditionally, use frame_pc_unwind as an alternative. Add
7277 comments.
7278 * arch-utils.c (init_frame_pc_default): Only call
7279 SAVED_PC_AFTER_CALL when available.
7280
c0236d92
EZ
72812003-04-08 Elena Zannoni <ezannoni@redhat.com>
7282
fbe586ae 7283 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7284 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7285 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7286 (start_remote): Ditto.
7287 (handle_inferior_event): Ditto.
7288 (save_inferior_status): Ditto.
7289 (restore_inferior_status): Ditto.
7290 * infcmd.c (attach_command): Ditto.
7291 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7292 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7293 * alpha-tdep.c (heuristic_proc_start): Ditto.
7294 * mips-tdep.c (heuristic_proc_start): Ditto.
7295 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7296 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7297 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7298 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7299 * remote-vx.c (vx_create_inferior): Ditto.
7300
73012003-04-08 Elena Zannoni <ezannoni@redhat.com>
7302
7303 * infrun.c (stop_soon_quietly): Make it an enum, to better
7304 override the default behavior of handle_inferior_event.
7305 (clear_proceed_status): Update uses of stop_soon_quietly to
7306 reflect that it is now an enum.
7307 (start_remote): Ditto.
7308 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7309 is set to handle the new GNU/Linux kernel behavior for
7310 attach/sigstop. Update uses of stop_soon_quietly.
7311 * inferior.h (enum stop_kind): New enum.
7312 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7313 Reset normal handle_inferior_event behavior, afterwards.
7314 * fork-child.c (startup_inferior): Update.
7315 * alpha-tdep.c (heuristic_proc_start): Update.
7316 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7317 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7318 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7319 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7320 * remote-vx.c (vx_create_inferior): Update.
7321 * mips-tdep.c (heuristic_proc_start): Update.
7322
1211bce3
EZ
73232003-04-07 Elena Zannoni <ezannoni@redhat.com>
7324
7325 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7326 be freed more than once, causing wild memory corruptions.
1211bce3 7327 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7328 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7329 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7330 with the "core" target.
1211bce3 7331
f0ef6b29
KB
73322003-04-07 Kevin Buettner <kevinb@redhat.com>
7333
7334 * mips-tdep.c (mips_print_fp_register): New function, created from
7335 do_fp_register_row(). Registers are now (also) printed as hex.
7336 Only one register is printed per row.
7337 (mips_print_register, do_fp_register_row): Print floating point
7338 registers with mips_print_fp_register().
7339
8cf71652
AC
73402003-04-06 Andrew Cagney <cagney@redhat.com>
7341
5e488a7b
AC
7342 * valprint.h (inspect_it): Add extern declaration.
7343 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7344 (selectors_info, classes_info): Ditto.
7345 (find_objc_msgcall): Fix indentation.
7346 (objc_printstr): Delete extern declarations.
7347
8cf71652
AC
7348 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7349
e6ba3bc9
AC
73502003-04-06 Andrew Cagney <cagney@redhat.com>
7351
7352 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7353 Update comment.
7354 * frame.c (legacy_saved_regs_this_id): Update.
7355 (legacy_get_prev_frame): Update.
7356 * xstormy16-tdep.c: Update comment.
7357 * sparc-tdep.c (sparc_frame_chain): Update comment.
7358 * blockframe.c (legacy_frame_chain_valid): Update.
7359
55e1d7e7
AC
73602003-04-06 Andrew Cagney <cagney@redhat.com>
7361
996179ee
AC
7362 * valprint.c (val_print_type_code_int): Delete #ifdef
7363 PRINT_TYPELESS_INTEGER code.
7364
55e1d7e7
AC
7365 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7366 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7367 multi-arch definition.
7368 * gdbarch.h: Re-generate.
7369
43bd9a9e
AC
73702003-04-05 Andrew Cagney <cagney@redhat.com>
7371
7372 Eliminate FRAME_FIND_SAVED_REGS.
7373 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7374 Change FSR parameter to a pointer.
7375 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7376 Assume FSR parameter is a pointer.
7377 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7378 Make fsr a pointer.
7379 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7380 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7381 saved_regs a pointer.
7382 (hppa_frame_saved_pc): Ditto.
7383 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7384 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7385 pointer.
7386 (restore_pc_queue): Make fsr a pointer.
7387 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7388 (hppa_frame_chain): Make saved_regs a pointer, call
7389 hppa_frame_init_saved_regs.
7390 * sparc-tdep.c: Include "gdb_assert.h".
7391 (sparc_frame_find_saved_regs): Replace internal_error with
7392 gdb_assert.
7393 * remote-vxsparc.c (vx_read_register): Delete reference to
7394 FRAME_FIND_SAVED_REGS.
7395 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7396 * gdbarch.h: Regenerate.
7397 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7398 (deprecated_get_frame_saved_regs): Delete declaration.
7399 (struct frame_saved_regs): Delete definition.
7400 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7401 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7402 (hppa_frame_find_saved_regs): Delete declaration.
7403 (FRAME_FIND_SAVED_REGS): Delete macro.
7404 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7405 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7406 FRAME_FIND_SAVED_REGS in comment.
7407
be41e9f4
AC
74082003-04-05 Andrew Cagney <cagney@redhat.com>
7409
7410 * frame.c (frame_func_unwind, get_frame_func): New functions.
7411 * frame.h (get_frame_func, frame_func_unwind): Declare.
7412 (struct frame_info): Add field "prev_func" for caching the
7413 previous frame's function address.
7414 * arm-tdep.c (arm_frameless_function_invocation): Combine
7415 get_pc_function_start and get_frame_pc into get_frame_func.
7416 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7417 (sh64_nofp_frame_init_saved_regs): Ditto.
7418 * s390-tdep.c (s390_function_start): Ditto.
7419 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7420 (rs6000_frameless_function_invocation): Ditto.
7421 (rs6000_frame_saved_pc): Ditto.
7422 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7423 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7424 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7425 (i386_frame_init_saved_regs): Ditto.
7426 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7427 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7428 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7429 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7430 * blockframe.c (frameless_look_for_prologue): Ditto.
7431
a01dd7cc
AC
74322003-04-05 Andrew Cagney <cagney@redhat.com>
7433
7434 * frame.c (legacy_get_prev_frame): Link prev to next at the
7435 function start. Update comments.
7436
5e5592e6
AC
74372003-04-05 Andrew Cagney <cagney@redhat.com>
7438
7439 * frame.c (get_frame_id): Update comment.
7440 (legacy_get_prev_frame): Update comment.
7441 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7442 * gdbarch.h: Regenerate.
7443 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7444 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7445
6fba5002
AC
74462003-04-05 Andrew Cagney <cagney@redhat.com>
7447
7448 * stack.c (print_frame_info): Use get_frame_pc.
7449
7df05f2b
AC
74502003-04-04 Andrew Cagney <cagney@redhat.com>
7451
7452 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7453 the frame's type from the unwinder.
7454 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7455 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7456 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7457 (get_frame_base_address): Use get_frame_type.
7458 (get_frame_locals_address, get_frame_args_address): Ditto.
7459 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7460 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7461 (struct frame_info): Add comment explaining why the frame contains
7462 a "type" field.
7463 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7464 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7465 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7466 NORMAL_FRAME.
7467 * frame-unwind.h: Include "frame.h".
7468 (struct frame_unwind): Add "type" field.
7469 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7470
11889732
AC
74712003-04-04 Andrew Cagney <cagney@redhat.com>
7472
7473 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7474 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7475 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7476 get_frame_base.
7477 (d10v_unwind_dummy_id): Use frame_id_build.
7478 * frame.c (find_frame_sal): Use get_frame_pc.
7479 (create_new_frame): Use deprecated_update_frame_pc_hack and
7480 deprecated_update_frame_base_hack.
7481 (create_sentinel_frame): Add comment about ->pc going away.
7482 (get_prev_frame): Add comment about ->pc going away.
7483 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7484 frame_id_build, deprecated_update_frame_pc_hack and
7485 deprecated_update_frame_base_hack.
7486 (select_frame): Use get_frame_pc.
7487 (legacy_saved_regs_this_id): Use frame_id_build.
7488
50c46a0d
EZ
74892003-04-04 Elena Zannoni <ezannoni@redhat.com>
7490
fbe586ae
RH
7491 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7492 signed integer case.
7493 (classify_argument): Handle enumerations and references.
50c46a0d 7494
50bbdbd9
AC
74952003-04-04 Andrew Cagney <cagney@redhat.com>
7496
7497 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7498 ID to NULL.
7499
36018d2e
AF
75002003-04-01 Adam Fedor <fedor@gnu.org>
7501
7502 * gdb/objc-lang.c (selectors_info): Replace calls to
7503 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7504 SYMBOL_NATURAL_NAME.
7505 (classes_info, find_methods): Likewise.
7506
35cec841
KB
75072003-04-03 Kevin Buettner <kevinb@redhat.com>
7508
7509 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7510 ``mach'' to the value determined by bfd_default_set_arch_mach().
7511
43136899
BR
75122003-04-02 Bob Rossi <bob_rossi@cox.net>
7513
7514 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7515 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7516 (mi-cmd-file.o): Update dependencies.
7517
040b99fd
KB
75182003-04-01 Kevin Buettner <kevinb@redhat.com>
7519
7520 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7521 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7522
9a3d7dfd
AF
75232003-04-01 Adam Fedor <fedor@gnu.org>
7524
7525 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7526 * language.h (struct language_defn): Add la_demangle.
7527 (language_demangle): Declare.
7528 * language.c (language_demangle): New function.
7529 (unk_lang_demangle): Likewise.
7530 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7531 Add ukn_lang_demangle.
9a3d7dfd 7532 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7533 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7534 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7535 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7536 * jv-lang.c (java_demangle): New function
7537 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7538 * objc-lang.c (objc_demangle): Add options argument
7539 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7540 * maint.c (maintenance_demangle): Replace switch with
7541 call to language_demangle.
7542 * utils.c (fprintf_symbol_filtered): Likewise.
7543
5e074003
AC
75442003-04-01 Andrew Cagney <cagney@redhat.com>
7545
7546 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7547 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7548 PRINT_TYPELESS_INTEGER.
7549 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7550 PUSH_RETURN_ADDRESS.
7551
270cb5d6
AC
75522003-04-01 Andrew Cagney <cagney@redhat.com>
7553
7554 * Makefile.in (d10v-tdep.o): Update dependencies.
7555 * d10v-tdep.c: Include "frame-base.h".
7556 (d10v_frame_unwind): Make constant.
7557 (d10v_frame_base_address): New function.
7558 (d10v_frame_base): New variable.
7559 (d10v_gdbarch_init): Set frame_base default.
7560 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7561 comment for base.
7562 (d10v_frame_unwind_cache): Set and use "prev_sp".
7563 (d10v_frame_this_id): Use the previous frame's inner most stack
7564 address and this frame's func address for the frame ID. Use
7565 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7566
6bfb3e36
AC
75672003-04-01 Andrew Cagney <cagney@redhat.com>
7568
7569 * frame.h (get_frame_locals_address, get_frame_args_address):
7570 Refer to the base address, instead of the address of the first
7571 local or parameter.
8ffd9b1b 7572
da62e633
AC
75732003-04-01 Andrew Cagney <cagney@redhat.com>
7574
7575 Add frame debug info addresses:
7576 * frame-base.c: New file.
7577 * frame-base.h: New file.
7578 * frame.h (struct frame_base): Add opaque declaration.
7579 (get_frame_base): Update comment.
7580 (get_frame_base_address): Declare.
7581 (get_frame_locals_address): Declare.
7582 (get_frame_args_address): Declare.
7583 (struct frame_info): Add "base" and "base_cache". Update
7584 comments on the unwinder.
7585 * frame.c: Include "frame-base.h".
7586 (get_frame_locals_address): New function.
7587 (get_frame_base_address): New function.
7588 (get_frame_args_address): New function.
7589 * findvar.c (read_var_value): Use get_frame_locals_address and
7590 get_frame_args_address.
7591 * stack.c (frame_info): Use get_frame_locals_address and
7592 get_frame_args_address.
7593 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7594 moved to "frame-base.c".
7595 * printcmd.c (print_frame_nameless_args): Ditto.
7596 * symtab.h (address_class): Update comments.
7597 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7598 get_frame_base_address.
7599 * dwarf2expr.c (execute_stack_op): Ditto.
7600 * Makefile.in (frame_base_h): Define.
7601 (frame.o): Update dependencies.
7602 (frame-base.o): Add dependencies.
7603 (SFILES): Add frame-base.c.
7604 (COMMON_OBS): Add frame-base.o.
7605
3d30e9c2
AC
76062003-04-01 Andrew Cagney <cagney@redhat.com>
7607
7608 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7609 CALL_DUMMY_LENGTH): Ditto.
7610 * gdbarch.c: Re-generate.
7611 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7612 (CALL_DUMMY_LENGTH): Delete macro.
7613 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7614 * arm-tdep.c (arm_gdbarch_init): Ditto.
7615 * avr-tdep.c (avr_gdbarch_init): Ditto.
7616 * cris-tdep.c (cris_gdbarch_init): Ditto.
7617 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7618 * frv-tdep.c (frv_gdbarch_init): Ditto.
7619 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7620 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7621 * i386-tdep.c (i386_gdbarch_init): Ditto.
7622 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7623 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7624 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7625 * mips-tdep.c (mips_gdbarch_init): Ditto.
7626 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7627 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7628 * s390-tdep.c (s390_gdbarch_init): Ditto.
7629 * sh-tdep.c (sh_gdbarch_init): Ditto.
7630 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7631 * v850-tdep.c (v850_gdbarch_init): Ditto.
7632 * vax-tdep.c (vax_gdbarch_init): Ditto.
7633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7634
ce0c7262
CV
76352003-04-01 Corinna Vinschen <vinschen@redhat.com>
7636
7637 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7638
73dd234f
AC
76392003-04-01 Andrew Cagney <cagney@redhat.com>
7640
7641 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7642 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7643 * gdbarch.h, gdbarch.c: Re-generate.
7644 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7645 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7646 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7647 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7648 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7649 * infcmd.c (run_stack_dummy): Simplify assuming
7650 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7651 * infrun.c (handle_inferior_event): Ditto.
7652 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7653 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7654 * arm-tdep.c (arm_gdbarch_init): Ditto.
7655 * avr-tdep.c (avr_gdbarch_init): Ditto.
7656 * cris-tdep.c (cris_gdbarch_init): Ditto.
7657 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7658 * frv-tdep.c (frv_gdbarch_init): Ditto.
7659 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7660 * i386-tdep.c (i386_gdbarch_init): Ditto.
7661 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7662 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7663 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7664 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7665 * mips-tdep.c (mips_gdbarch_init): Ditto.
7666 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7667 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7668 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7669 * s390-tdep.c (s390_gdbarch_init): Ditto.
7670 * sh-tdep.c (sh_gdbarch_init): Ditto.
7671 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7672 * v850-tdep.c (v850_gdbarch_init): Ditto.
7673 * vax-tdep.c (vax_gdbarch_init): Ditto.
7674 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7675
97606a13
DJ
76762003-04-01 Daniel Jacobowitz <drow@mvista.com>
7677
7678 * symfile.c (symfile_relocate_debug_section): Update call to
7679 bfd_simple_get_relocated_section_contents.
7680
e8ab51f7
AC
76812003-03-31 Andrew Cagney <cagney@redhat.com>
7682
7683 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7684 * gdbarch.h, gdbarch.c: Regenerate.
7685 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7686 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7687 available.
7688 * frame.h (generic_fix_call_dummy): Delete declaration.
7689 * dummy-frame.h: Update comment.
7690 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7691 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7692 fix_call_dummy.
7693 * sh-tdep.c (sh_gdbarch_init): Ditto.
7694 * s390-tdep.c (s390_gdbarch_init): Ditto.
7695 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7696 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7697 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7698 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7699 * i386-tdep.c (i386_gdbarch_init): Ditto.
7700 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7701 * frv-tdep.c (frv_gdbarch_init): Ditto.
7702 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7703 * cris-tdep.c (cris_gdbarch_init): Ditto.
7704 * avr-tdep.c (avr_gdbarch_init): Ditto.
7705 * arm-tdep.c (arm_gdbarch_init): Ditto.
7706
018d1b48
JB
77072003-03-31 J. Brobecker <brobecker@gnat.com>
7708
7709 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7710 (INIT_FRAME_AP): Likewise.
7711 (EXTRA_FRAME_INFO): Likewise.
7712
e9a2674e
AC
77132003-03-31 Andrew Cagney <cagney@redhat.com>
7714
7715 * gdbarch.sh: Include "symfile.h".
7716 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7717 * gdbarch.h, gdbarch.c: Re-generate.
7718 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7719 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7720 call_dummy_address, the default is at entry_point_address.
7721 * v850-tdep.c (v850_gdbarch_init): Ditto.
7722 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7723 * sh-tdep.c (sh_gdbarch_init): Ditto.
7724 * s390-tdep.c (s390_gdbarch_init): Ditto.
7725 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7726 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7727 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7728 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7729 * i386-tdep.c (i386_gdbarch_init): Ditto.
7730 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7731 * frv-tdep.c (frv_gdbarch_init): Ditto.
7732 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7733 * cris-tdep.c (cris_gdbarch_init): Ditto.
7734 * arm-tdep.c (arm_gdbarch_init): Ditto.
7735
e8a8712a
AC
77362003-03-31 Andrew Cagney <cagney@redhat.com>
7737
7738 * gdbarch.sh (CALL_DUMMY_P): Delete.
7739 * gdbarch.h, gdbarch.c: Re-generate.
7740 * inferior.h (CALL_DUMMY_P): Delete macro.
7741 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7742 * vax-tdep.c (vax_gdbarch_init): Update.
7743 * v850-tdep.c (v850_gdbarch_init): Update.
7744 * sparc-tdep.c (sparc_gdbarch_init): Update.
7745 * sh-tdep.c (sh_gdbarch_init): Update.
7746 * s390-tdep.c (s390_gdbarch_init): Update.
7747 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7748 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7749 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7750 * mips-tdep.c (mips_gdbarch_init): Update.
7751 * mcore-tdep.c (mcore_gdbarch_init): Update.
7752 * m68k-tdep.c (m68k_gdbarch_init): Update.
7753 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7754 * ia64-tdep.c (ia64_gdbarch_init): Update.
7755 * i386-tdep.c (i386_gdbarch_init): Update.
7756 * h8300-tdep.c (h8300_gdbarch_init): Update.
7757 * frv-tdep.c (frv_gdbarch_init): Update.
7758 * d10v-tdep.c (d10v_gdbarch_init): Update.
7759 * cris-tdep.c (cris_gdbarch_init): Update.
7760 * breakpoint.c (deprecated_frame_in_dummy): Update.
7761 * avr-tdep.c (avr_gdbarch_init): Update.
7762 * alpha-tdep.c (alpha_gdbarch_init): Update.
7763 * arm-tdep.c (arm_gdbarch_init): Update.
7764 * dummy-frame.c (dummy_frame_this_id): Update comments.
7765 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7766 * frame.c (legacy_get_prev_frame): Ditto.
7767 * valops.c (call_function_by_hand): Delete function.
7768 (hand_function_call): Rename to call_function_by_hand
7769
ed234cf8
AC
77702003-03-30 Andrew Cagney <cagney@redhat.com>
7771
7772 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7773 * value.h (struct value): Update comment.
ed234cf8 7774
06c77151
AC
77752003-03-30 Andrew Cagney <cagney@redhat.com>
7776
6c2b5168
AC
7777 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7778 D10V_FP_REGNUM.
7779 (d10v_gdbarch_init): Do not set fp_regnum.
7780
06c77151
AC
7781 * frame.c (get_frame_base): Force ID initialization.
7782 (get_prev_frame): Move computation of the frame ID from here ...
7783 (get_frame_id): ... to here.
7784 (legacy_get_prev_frame): Mark the frame ID as valid.
7785 * frame.h (struct frame_info): Add field "id_p".
7786
97a1a11c
MK
77872003-03-30 Mark Kettenis <kettenis@gnu.org>
7788
7789 * i386-tdep.c (i386_store_struct_return): Removed.
7790 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7791
6c0e89ed
AC
77922003-03-30 Andrew Cagney <cagney@redhat.com>
7793
7794 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7795 * gdbarch.h, gdbarch.c: Regenerate.
7796 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7798 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7799 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7800 * i386-tdep.c (i386_gdbarch_init): Ditto.
7801 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7802 * cris-tdep.c (cris_gdbarch_init): Ditto.
7803 * vax-tdep.c (vax_gdbarch_init): Ditto.
7804 * s390-tdep.c (s390_gdbarch_init): Ditto.
7805 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7806 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7807 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7808 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7809 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7810 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7811 * sparc-tdep.c (sparc_gdbarch_init): Update.
7812 * sh-tdep.c (sh_gdbarch_init): Update.
7813 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7814 * mips-tdep.c (mips_gdbarch_init): Update.
7815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7816 * ia64-tdep.c (ia64_gdbarch_init): Update.
7817 * frv-tdep.c (frv_gdbarch_init): Update.
7818 * avr-tdep.c (avr_gdbarch_init): Update.
7819 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7820 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7821 instead of when push_dummy_call is not available.
8ffd9b1b 7822
f7dd6af2
AC
78232003-03-30 Andrew Cagney <cagney@redhat.com>
7824
7825 * infttrace.c: Include "gdbthread.h".
7826 (parent_attach_all): Fix function signature.
7827 (call_ptrace): Update call.
7828 * Makefile.in (infttrace.o): Update dependencies.
7829
28f617b3
AC
78302003-03-30 Andrew Cagney <cagney@redhat.com>
7831
7832 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7833 PUSH_RETURN_ADDRESS.
7834 * gdbarch.h, gdbarch.c: Regenerate.
7835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7836 * x86-64-tdep.c (x86_64_init_abi): Update.
7837 * v850-tdep.c (v850_gdbarch_init): Update.
7838 * sparc-tdep.c (sparc_gdbarch_init): Update.
7839 * sh-tdep.c (sh_gdbarch_init): Update.
7840 * s390-tdep.c (s390_gdbarch_init): Update.
7841 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7842 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7843 * mips-tdep.c (mips_gdbarch_init): Update.
7844 * mcore-tdep.c (mcore_gdbarch_init): Update.
7845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7846 * ia64-tdep.c (ia64_gdbarch_init): Update.
7847 * i386-tdep.c (i386_gdbarch_init): Update.
7848 * h8300-tdep.c (h8300_gdbarch_init): Update.
7849 * frv-tdep.c (frv_gdbarch_init): Update.
7850 * cris-tdep.c (cris_gdbarch_init): Update.
7851 * avr-tdep.c (avr_gdbarch_init): Update.
7852 * arm-tdep.c (arm_gdbarch_init): Update.
7853 * valops.c (hand_function_call): Update.
7854
4d628cd7
AC
78552003-03-29 Andrew Cagney <cagney@redhat.com>
7856
7857 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7858 sizeof_call_dummy_words.
7859 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7860 define.
7861 * gdbarch.h: Regenerate.
8ffd9b1b 7862
65e82032
AC
78632003-03-29 Andrew Cagney <cagney@redhat.com>
7864
7865 * infttrace.h: New file.
7866 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7867 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7868 (hpread_read_doc_function_type): Detect an initialized type1.
7869 (hpread_quick_traverse): Initialize mod_name_string.
7870 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7871 (som_solib_get_solib_by_pc): Declare.
7872 (so_lib_thread_start_addr): Declare.
7873 (no_shared_libraries): Declare.
7874 * somread.c (init_import_symbols): Make static. Add forward
7875 declaration.
7876 * config/pa/nm-hppah.h: Include "infttrace.h" for
7877 parent_attach_all.
7878 (hppa_insert_hw_watchpoint): Declare.
7879 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7880 * hppah-nat.c: Include "gdb_string.h".
7881 (parent_attach_all): Delete extern declaration, moved to
7882 "infttrace.h".
7883 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7884 int.
7885 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7886 * Makefile.in (infttrace_h): Define.
7887 (hpread.o): Update dependencies.
7888 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7889 * hppa-hpux-tdep.c: Include "gdb_string.h".
7890 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7891 * infrun.c (handle_inferior_event): Always initialize
7892 stepped_after_stopped_by_watchpoint. Add default and remove
7893 fallthrough in switch statement.
7894 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7895 parameter to int.
7896 (hppa_remove_hw_watchpoint): Ditto.
7897
2c3bbe77
AC
78982003-03-29 Andrew Cagney <cagney@redhat.com>
7899
7900 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7901 offset.
7902
2dd604e7
RE
79032003-03-29 Richard Earnshaw <rearnsha@arm.com>
7904
7905 * arm-tdep.c (arm_push_arguments): Delete.
7906 (struct stack_item): New type.
7907 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7908 (arm_store_struct_return): Delte.
7909 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7910 arm_push_arguments or arm_store_struct_return.
7911
e8933a55
AC
79122003-03-28 Andrew Cagney <cagney@redhat.com>
7913
7914 * Makefile.in (d10v-tdep.o): Update dependencies.
7915 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7916 * d10v-tdep.c: Include "remote.h".
7917 (target_resume_hook): Delete extern declaration.
7918 (target_wait_loop_hook): Ditto.
7919 (tdisassemble_command): Eliminate assignment in "if" conditional.
7920 (d10v_ts2_register_sim_regno): Eliminate call to
7921 legacy_register_sim_regno.
7922 (d10v_ts3_register_sim_regno): Ditto.
7923
6949171e
JJ
79242003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7925
7926 * thread.c: Reindented.
7927 * lin-lwp.c: Ditto.
7928 * linux-proc.c: Ditto.
7929
98c7071f
BR
79302003-03-28 Bob Rossi <bob_rossi@cox.net>
7931
fbe586ae 7932 * MAINTAINERS (write after approval): Add myself.
98c7071f 7933
5edc9ca6
TR
79342003-03-27 Theodore A. Roth <troth@openavr.org>
7935
7936 * objc-exp.y: Add missing semi-colons.
7937
378bfd1b
AC
79382003-03-27 Andrew Cagney <cagney@redhat.com>
7939
7940 * regcache.c (write_sp): Delete function and references.
7941 * inferior.h (write_sp): Delete declaration.
7942 * valops.c (hand_function_call): Replace write_sp with
7943 TARGET_WRITE_SP.
7944 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7945 (sparc_pop_frame): Ditto.
8ffd9b1b 7946
56056df7
AC
79472003-03-27 Andrew Cagney <cagney@redhat.com>
7948
7949 * NEWS: Mention removal of support for hppa*-*-bsd* and
7950 hppa*-*-osf* natives, and hppa*-*-pro* target.
7951 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7952 * config/pa/xm-pa.h: Obsolete file.
7953 * config/pa/xm-hppab.h: Obsolete file.
7954 * config/pa/nm-hppab.h: Obsolete file.
7955 * config/pa/tm-hppab.h: Obsolete file.
7956 * config/pa/tm-hppao.h: Obsolete file.
7957 * config/pa/nm-hppao.h: Obsolete file.
7958 * config/pa/tm-pro.h: Obsolete file.
7959 * config/pa/hppaosf.mt: Obsolete file.
7960 * config/pa/hppaosf.mh: Obsolete file.
7961 * config/pa/hppapro.mt: Obsolete file.
7962 * config/pa/hppabsd.mt: Obsolete file.
7963 * config/pa/hppabsd.mh: Obsolete file.
7964 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7965 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7966 hppa*-*-osf*.
7967
5873a88d
AC
79682003-03-27 Andrew Cagney <cagney@redhat.com>
7969
7970 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7971 push_arguments. Don't set push_return_address or write_sp.
7972 (d10v_push_dummy_call): Replace d10v_push_arguments.
7973 (d10v_push_return_address, d10v_write_sp): Delete function,
7974 handled by push_dummy_call.
7975
b81774d8
AC
79762003-03-26 Andrew Cagney <cagney@redhat.com>
7977
7978 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7979 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7980 regcache and dummy_addr parameters.
7981 * gdbarch.h, gdbarch.c: Re-generate.
7982 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7983 available; assume it will handle stack alignment and return
7984 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7985 legacy_push_arguments.
7986 (legacy_push_arguments): Rename default_push_arguments.
7987 * value.h (legacy_push_arguments): Rename default_push_arguments.
7988 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
7989 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7990 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7991 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
7992 * config/i386/tm-symmetry.h: Update.
7993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7994 * x86-64-tdep.c (x86_64_init_abi): Update.
7995 * v850-tdep.c (v850_gdbarch_init): Update.
7996 * sparc-tdep.c (sparc_gdbarch_init): Update.
7997 * sh-tdep.c (sh_gdbarch_init): Update.
7998 * s390-tdep.c (s390_gdbarch_init): Update.
7999 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8001 * mips-tdep.c (mips_gdbarch_init): Update.
8002 * mcore-tdep.c (mcore_gdbarch_init): Update.
8003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8004 * ia64-tdep.c (ia64_gdbarch_init): Update.
8005 * i386-tdep.c (i386_gdbarch_init): Update.
8006 * hppa-tdep.c (hppa_gdbarch_init): Update.
8007 * h8300-tdep.c (h8300_gdbarch_init): Update.
8008 * frv-tdep.c (frv_gdbarch_init): Update.
8009 * d10v-tdep.c (d10v_gdbarch_init): Update.
8010 * cris-tdep.c (cris_gdbarch_init): Update.
8011 * avr-tdep.c (avr_gdbarch_init): Update.
8012 * arm-tdep.c (arm_gdbarch_init): Update.
8013 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8014 * alpha-tdep.c (alpha_gdbarch_init): Update.
8015
f541410f
DJ
80162003-03-26 Daniel Jacobowitz <drow@mvista.com>
8017
8018 * signals/signals.c (do_target_signal_to_host): Correct realtime
8019 signal range test.
8020
69f567ae
DJ
80212003-03-26 Daniel Jacobowitz <drow@mvista.com>
8022
8023 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8024 (struct sal_chain, map_catch_names): Remove.
8025 (catch_exception_command_1): Don't call
8026 handle_gnu_4_16_catch_command.
8027
d5d14a5a
DJ
80282003-03-26 Daniel Jacobowitz <drow@mvista.com>
8029
8030 From Mark Dettinger <dettinge@de.ibm.com>:
8031 * dwarf2cfi.c (read_2u): Increment pointer by two.
8032
bdd73e22
DJ
80332003-03-26 Daniel Jacobowitz <drow@mvista.com>
8034
8035 * signals/signals.c: Fix typos in last change.
8036
960cb555
DJ
80372003-03-26 Daniel Jacobowitz <drow@mvista.com>
8038
8039 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8040 not already defined. Use __SIGRTMIN if available.
8041 (target_signal_from_host): Remove SIGRTMIN block.
8042 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8043 the signal is within the realtime range.
8044
f636b87d
AF
80452003-03-25 Adam Fedor <fedor@gnu.org>
8046
8047 * Makefile.in (infrun.o): Add $(language_h)
8048 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8049 for language specific trampolines.
8050 * language.h (struct language_defn): Add skip_trampoline.
8051 (skip_language_trampoline): Declare.
8052 * language.c (unk_lang_trampoline, skip_language_trampoline):
8053 New functions.
8054 (unknown_language_defn, auto_language_defn, local_language_defn):
8055 Add ukn_lang_trampoline.
8056 * ada-lang.c (ada_language_defn): Add NULL for language
8057 specific skip_trampoline.
8058 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8059 scm-lang.c: Likewise.
8060 * objc-lang.c (objc_skip_trampoline): New function.
8061 (objc_language_defn): Add objc_skip_trampoline.
8062
28f617b3 80632003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8064
8065 * frame.c (get_prev_frame): Delay validating a frame's ID -
8066 non-NULL, didn't go backwards - until an attempt to unwind it to
8067 the previous frame.
8068
f933a9c5
AC
80692003-03-25 Andrew Cagney <cagney@redhat.com>
8070
8071 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8072 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8073 * gdbarch.h, gdbarch.c: Re-generate.
8074 * config/sparc/tm-sparc.h
8075 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8076 * sparc-tdep.c (sparc_gdbarch_init): Set
8077 deprecated_extra_stack_alignment_needed.
8078 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8079 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8080 extra_stack_alignment_needed.
8081 * v850-tdep.c (v850_gdbarch_init): Ditto.
8082 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8083 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8084 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8085 * cris-tdep.c (cris_gdbarch_init): Ditto.
8086 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8087 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8088
4183d812
AC
80892003-03-25 Andrew Cagney <cagney@redhat.com>
8090
8091 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8092 STORE_STRUCT_RETURN.
8093 * gdbarch.h, gdbarch.c: Regenerate.
8094 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8095 (d10v_push_arguments): Set the struct return register.
8096 (d10v_gdbarch_init): Update.
8097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8098 * x86-64-tdep.c (x86_64_init_abi): Update.
8099 * vax-tdep.c (vax_gdbarch_init): Update.
8100 * v850-tdep.c (v850_gdbarch_init): Update.
8101 * sparc-tdep.c (sparc_gdbarch_init): Update.
8102 * sh-tdep.c (sh_gdbarch_init): Update.
8103 * s390-tdep.c (s390_gdbarch_init): Update.
8104 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8105 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8106 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8107 * mips-tdep.c (mips_gdbarch_init): Update.
8108 * mcore-tdep.c (mcore_gdbarch_init): Update.
8109 * m68k-tdep.c (m68k_gdbarch_init): Update.
8110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8111 * ia64-tdep.c (ia64_gdbarch_init): Update.
8112 * i386-tdep.c (i386_gdbarch_init): Update.
8113 * hppa-tdep.c (hppa_gdbarch_init): Update.
8114 * h8300-tdep.c (h8300_gdbarch_init): Update.
8115 * frv-tdep.c (frv_gdbarch_init): Update.
8116 * cris-tdep.c (cris_gdbarch_init): Update.
8117 * avr-tdep.c (avr_gdbarch_init): Update.
8118 * arm-tdep.c (arm_gdbarch_init): Update.
8119 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8120
1bf6d5cc
AC
81212003-03-25 Andrew Cagney <cagney@redhat.com>
8122
8123 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8124 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8125 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8126 * gdbarch.h, gdbarch.c: Regenerate.
8127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8128 call_dummy_stack_adjust_p.
8129 * vax-tdep.c (vax_gdbarch_init): Ditto.
8130 * v850-tdep.c (v850_gdbarch_init): Ditto.
8131 * sh-tdep.c (sh_gdbarch_init): Ditto.
8132 * s390-tdep.c (s390_gdbarch_init): Ditto.
8133 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8134 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8135 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8136 * mips-tdep.c (mips_gdbarch_init): Ditto.
8137 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8138 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8139 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8140 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8141 * i386-tdep.c (i386_gdbarch_init): Ditto.
8142 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8143 * frv-tdep.c (frv_gdbarch_init): Ditto.
8144 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8145 * cris-tdep.c (cris_gdbarch_init): Ditto.
8146 * avr-tdep.c (avr_gdbarch_init): Ditto.
8147 * arm-tdep.c (arm_gdbarch_init): Ditto.
8148 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8149 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8150 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8151 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8152 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8153 call_dummy_stack_adjust_p.
8154 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8155 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8156 * sparc-tdep.c (sparc32_push_arguments): Update.
8157 * valops.c (hand_function_call): Update.
8158
71c08af0
CV
81592003-03-25 Corinna Vinschen <vinschen@redhat.com>
8160
8161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8162 set_gdbarch_char_signed.
8163
30757f90
RE
81642003-03-25 Richard Earnshaw <rearnsha@arm.com>
8165
8166 PR cli/548
8167 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8168
03d48a7d
RE
81692003-03-25 Richard Earnshaw <rearnsha@arm.com>
8170
8171 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8172 (_initialize_arm_tdep): Don't set tm_print_insn.
8173
2cf6873c
AF
81742003-03-24 Adam Fedor <fedor@gnu.org>
8175
8176 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8177 * objc-lang.h: Add multiple inclusion protection.
8178 (start_msglist, add_msglist, end_msglist): Additional declarations.
8179
17c0759e
RE
81802003-03-24 Richard Earnshaw <rearnsha@arm.com>
8181
8182 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8183 value was renamed to ARM_FLOAT_SOFT_FPA.
8184
618ce49f
AC
81852003-03-23 Andrew Cagney <cagney@redhat.com>
8186
8187 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8188 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8189 * gdbarch.h, gdbarch.c: Regenerate.
8190 * valops.c (hand_function_call): Update.
8191 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8192 * frame.c (legacy_saved_regs_this_id): Update.
8193 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8194 * dummy-frame.h: Update.
8195 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8196 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8197 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8198 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8199 * config/m68k/tm-sun3.h: Update.
8200 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8202 * x86-64-tdep.c (x86_64_init_abi): Update.
8203 * vax-tdep.c (vax_gdbarch_init): Update.
8204 * v850-tdep.c (v850_gdbarch_init): Update.
8205 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8206 * sh-tdep.c (sh_gdbarch_init): Update.
8207 * s390-tdep.c (s390_gdbarch_init): Update.
8208 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8209 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8210 (frame_get_saved_regs): Update.
8211 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8212 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8213 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8214 * mips-tdep.c (mips_gdbarch_init): Update.
8215 * mcore-tdep.c (mcore_gdbarch_init): Update.
8216 * m68k-tdep.c (m68k_gdbarch_init): Update.
8217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8218 * ia64-tdep.c (ia64_gdbarch_init): Update.
8219 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8220 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8221 (i386_interix_back_one_frame): Update.
8222 * hppa-tdep.c (hppa_gdbarch_init): Update.
8223 (hppa_init_extra_frame_info): Update.
8224 * h8300-tdep.c (h8300_gdbarch_init): Update.
8225 * frv-tdep.c (frv_gdbarch_init): Update.
8226 * cris-tdep.c (cris_gdbarch_init): Update.
8227 * avr-tdep.c (avr_gdbarch_init): Update.
8228 * arm-tdep.c (arm_gdbarch_init): Update.
8229 * alpha-tdep.c (alpha_gdbarch_init): Update.
8230
fd50bc42
RE
82312003-03-22 Richard Earnshaw <rearnsha@arm.com>
8232
8233 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8234 (arm_get_fp_model): Declare.
8235 * arm-tdep.c (fp_model_strings): New string array.
8236 (arm_fp_model, current_fp_model): New variables.
8237 (arm_get_fp_model): New function.
8238 (arm_set_fp): New function.
8239 (set_fp_model_sfunc): New function.
8240 (show_fp_model): New function.
8241 (_initialize_arm_tdep): Add new command to set/show the FPU.
8242 (arm_extract_return_value): Use arm_get_fp_model.
8243 (arm_store_return_value): Likewise.
8244 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8245 to initialize the floating-point data types.
8246 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8247 model is FPA.
8248
26304000
RE
82492003-03-22 Richard Earnshaw <rearnsha@arm.com>
8250
8251 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8252 the current setting of each value.
8253 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8254 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8255 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8256 commands and add new version as subcommands of "set/show arm".
8257
afd7eef0
RE
82582003-03-22 Richard Earnshaw <rearnsha@arm.com>
8259
8260 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8261 (set_arm_command, show_arm_command): New functions.
8262 (_initialize_arm_tdep): Add them.
8263 (num_disassembly_options): Renamed from num_flavor_options.
8264 (valid_disassembly_styles): Renamed from valid_flavors.
8265 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8266 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8267 set_disassembly_flavor_sfunc.
8268 (set_disassembly_style): Renamed from set_disassembly_flavor.
8269 (arm_othernames): Updated.
8270 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8271 command. Add "set/show arm disassembly" commands. Deprecate
8272 "othernames" command.
8273
299a7944
RE
82742003-03-22 Richard Earnshaw <rearnsha@arm.com>
8275
8276 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8277 (arm-tdep.o): Depend on elf_arm_h.
8278
c1dac9e6
RE
82792003-03-22 Richard Earnshaw <rearnsha@arm.com>
8280
8281 * Makefile.in (coff_internal_h): Define.
8282 (arm-tdep.o): Update dependencies.
8283
2702d96c
RE
82842003-03-22 Richard Earnshaw <rearnsha@arm.com>
8285
8286 * arm-tdep.c (prologue_cache): Delete.
8287 (check_prologue_cache, save_prologue_cache): Delete.
8288 (arm_scan_prologue): Don't check or update the prologue_cache.
8289 (arm_gdb_arch_init): Don't initialize it.
8290 (_initialize_arm_tdep): Likewise.
8291
27d5d74b
SC
82922003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8293
8294 * MAINTAINERS (tui): Maintainer of tui code.
8295
1762d96d
CV
82962003-03-21 Corinna Vinschen <vinschen@redhat.com>
8297
8298 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8299 (i386-cygwin-tdep.o): Add dependencies.
8300 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8301 * i386-cygwin-tdep.c: New file.
8302 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8303 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8304
4c2e2391
AC
83052003-03-20 Andrew Cagney <cagney@redhat.com>
8306
f20d38b7
AC
8307 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8308 (handle_inferior_event): Remove code calling
8309 DYNAMIC_TRAMPOLINE_NEXTPC.
8310
0022b738
AC
8311 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8312 already has a full path.
8313
864dbc90
AC
8314 * main.c (gdb_main): Return 1.
8315 (captured_main): Call error to report an invalid interpreter.
8316
4c2e2391
AC
8317 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8318 * alpha-osf1-tdep.c: Include "gdb_string.h".
8319
5ef7553b
JB
83202003-03-19 J. Brobecker <brobecker@gnat.com>
8321
8322 Continuing work to convert the hppa targets to multiarch partial.
8323
8324 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8325 method, now that hppa_push_dummy_frame has a conformant prototype.
8326 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8327 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8328 for the switch to multiarch partial.
8329
7bde8967
KB
83302003-03-19 Kevin Buettner <kevinb@redhat.com>
8331
8332 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8333 when iss is issNull.
8334
b006a9e9
KB
83352003-03-18 Kevin Buettner <kevinb@redhat.com>
8336
8337 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8338 NUM_REGS bounds check.
8339
5e2e9765
KB
83402003-03-18 Kevin Buettner <kevinb@redhat.com>
8341
8342 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8343 * mips-tdep.c (gdb_assert.h): Include.
8344 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8345 (mips_register_name): Handle integer registers explicitly. Add
8346 bounds checking.
8347 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8348 (mips_lsi33k_reg_names): Don't list integer registers; they're
8349 handled by mips_register_name() now.
8350 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8351 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8352 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8353 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8354 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8355
a2867626
AC
83562003-03-18 Andrew Cagney <cagney@redhat.com>
8357
8358 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8359 a void pointer.
8360 * gdbtypes.h (print_scalar_formatted): Update declaration.
8361 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8362
06600e06
JB
83632003-03-18 J. Brobecker <brobecker@gnat.com>
8364
8365 * infrun.c (observer.h): Add #include.
8366 (normal_stop): Add call to observer_notify_normal_stop.
8367 * Makefile.in (infrun.o): Add dependency on observer.h.
8368
7daf4f5b
JB
83692003-03-18 J. Brobecker <brobecker@gnat.com>
8370
8371 Continuing work to convert the hppa targets to multiarch partial.
8372 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8373 parameter. Reformat comment.
8374 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8375 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8376 to match new profile.
8377
3371ccc0
JB
83782003-03-18 J. Brobecker <brobecker@gnat.com>
8379
8380 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8381 appear to be working in any case.
8382
4fbe891e
JB
83832003-03-18 J. Brobecker <brobecker@gnat.com>
8384
8385 * observer.c (observer_test_first_observer): New static variable.
8386 (observer_test_second_observer): Likewise.
8387 (observer_test_third_observer): Likewise.
8388 (observer_test_first_notification_function): New static function.
8389 (observer_test_second_notification_function): Likewise.
8390 (observer_test_third_notification_function): Likewise.
8391
a7ff40e7
JB
83922003-03-17 J. Brobecker <brobecker@gnat.com>
8393
8394 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8395 * somsolib.c (gdb_assert.h): Likewise.
8396 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8397 (somsolib.o): Likewise.
8398
26ca4152
AC
83992003-03-17 Andrew Cagney <cagney@redhat.com>
8400
8401 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8402 BFD. Simplify setting of di.endian.
8403
0a613259
AC
84042003-03-17 Andrew Cagney <cagney@redhat.com>
8405
8406 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8407 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8408
8409 From Elena Zannoni <ezannoni@redhat.com>
8410 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8411 vector and floating-point parameters.
8412 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8413 convention.
8414 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8415
1132738f
FN
84162003-03-17 Fernando Nasser <fnasser@redhat.com>
8417
8418 * MAINTAINERS: Remove my name from several maintainership roles.
8419
6dc42492
AC
84202003-03-17 Andrew Cagney <cagney@redhat.com>
8421
8422 Fix frame off-by-one bug.
8423 * frame-unwind.h (frame_this_id_ftype): Replace
8424 frame_unwind_id_ftype.
8425 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8426 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8427 with "prev_register".
8428 * frame-unwind.c (frame_unwind_find_by_pc): Return
8429 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8430 comment.
8431 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8432 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8433 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8434 (dummy_frame_unwind): Update.
8435 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8436 sentinel_frame_register_unwind.
8437 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8438 (sentinel_frame_unwinder): Update.
8439 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8440 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8441 * frame.c (create_sentinel_frame): Update. Initialize
8442 "prologue_cache" instead of "unwind_cache".
8443 (frame_register_unwind): Call this frame's prev_register with the
8444 next frame and this frame's prologue cache.
8445 (get_prev_frame): Simplify. Always call prev frame's this_id with
8446 this frame and prev frame's prologue cache. Document that this
8447 call is shifted one to the left when compared to the
8448 frame_register_unwind call.
8449 (legacy_saved_regs_prev_register): Replace
8450 frame_saved_regs_register_unwind.
8451 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8452 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8453 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8454 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8455 (d10v_frame_unwind): Update.
8456 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8457 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8458 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8459 "saved_regs" with "this_saved_regs".
8460
efd710d6
AC
84612003-03-16 Andrew Cagney <cagney@redhat.com>
8462
8463 * frame.c (frame_pop): Don't call target_store_registers. Fix
8464 problem reported by Mark Kettenis.
8465
4e259f09
MK
84662003-03-16 Mark Kettenis <kettenis@gnu.org>
8467
8468 * i386-tdep.c (i386_register_type): Renamed from
8469 i386_register_virtual_type. Adjust function signature.
8470 (i386_gdbarch_init): Set register_type instead of
8471 deprecated_max_register_raw_size,
8472 deprecated_max_register_virtual_size and register_virtual_type.
8473
055bb976
AC
84742003-03-14 Andrew Cagney <cagney@redhat.com>
8475
8476 * frame.c (get_prev_frame): When a legacy frame, always call
8477 legacy_get_prev_frame. Simplify unwind code using assumption that
8478 the unwinder is new.
8479 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8480 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8481 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8482
ac2adee5
AC
84832003-03-14 Andrew Cagney <cagney@redhat.com>
8484
8485 * frame.c (get_saved_register): Delete function.
8486 * frame.h (get_saved_register): Delete declaration.
8487 * xstormy16-tdep.c: Update comment.
8488 * regcache.h: Update comments.
8489 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8490 get_saved_register and extract_address, use
8491 frame_read_unsigned_register.
8492 (sparc_frame_saved_pc): Ditto.
8493 (sparc_get_saved_register): Instead of get_saved_register, use
8494 frame_register.
8495 (sparc_pop_frame): Ditto.
8496 * findvar.c: Update comments.
8497 (value_of_register): Call frame_register instead of
8498 get_saved_register.
8499 (value_from_register): Ditto.
8500 * config/sparc/tm-sparc.h: Update comment.
8501 * breakpoint.c: Update comment.
8502
129c1cd6
AC
85032003-03-14 Andrew Cagney <cagney@redhat.com>
8504
8505 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8506 GET_SAVED_REGISTER.
8507 * gdbarch.h, gdbarch.c: Re-generate.
8508 * frame.h: Update comments.
8509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8510 * x86-64-tdep.c (x86_64_init_abi): Update.
8511 * sparc-tdep.c (sparc_gdbarch_init): Update.
8512 * sh-tdep.c (sh_gdbarch_init): Update.
8513 * mips-tdep.c (mips_gdbarch_init): Update.
8514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8515 * cris-tdep.c (cris_gdbarch_init): Update.
8516 * ia64-tdep.c (ia64_gdbarch_init): Update.
8517 * frame.c (frame_register): Update.
8518 (get_saved_register): Update.
8519 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8520
749b82f6
AC
85212003-03-13 Andrew Cagney <cagney@redhat.com>
8522
8523 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8524 * gdbarch.h, gdbarch.c: Regenerate.
8525 * valops.c (hand_function_call): Update comment.
8526 * stack.c (return_command): Update comment.
8527 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8528 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8529 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8530 * x86-64-tdep.c (x86_64_init_abi): Update.
8531 * vax-tdep.c (vax_gdbarch_init): Update.
8532 * v850-tdep.c (v850_gdbarch_init): Update.
8533 * sparc-tdep.c (sparc_gdbarch_init): Update.
8534 * sh-tdep.c (sh_gdbarch_init): Update.
8535 * s390-tdep.c (s390_gdbarch_init): Update.
8536 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8537 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8538 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8539 * mips-tdep.c (mips_gdbarch_init): Update.
8540 * mcore-tdep.c (mcore_gdbarch_init): Update.
8541 * m68k-tdep.c (m68k_gdbarch_init): Update.
8542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8543 * ia64-tdep.c (ia64_gdbarch_init): Update.
8544 * i386-tdep.c (i386_gdbarch_init): Update.
8545 * hppa-tdep.c (hppa_gdbarch_init): Update.
8546 * h8300-tdep.c (h8300_gdbarch_init): Update.
8547 * frv-tdep.c (frv_gdbarch_init): Update.
8548 * cris-tdep.c (cris_gdbarch_init): Update.
8549 * avr-tdep.c (avr_gdbarch_init): Update.
8550 * arm-tdep.c (arm_gdbarch_init): Update.
8551 * alpha-tdep.c (alpha_gdbarch_init): Update.
8552
1594fa56
AC
85532003-03-13 Andrew Cagney <cagney@redhat.com>
8554
8555 * frame.c (legacy_frame_p): New function.
8556 (get_prev_frame): Use legacy_frame_p.
8557 * frame.h (legacy_frame_p): Declare.
8558
7717fda3
V
85592003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8560
fbe586ae 8561 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8562 listing corrected.
8563
0c67cbe9
V
85642003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8565
fbe586ae 8566 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8567
03febf99
AC
85682003-03-12 Andrew Cagney <cagney@redhat.com>
8569
8570 * frame.c (get_prev_frame): Rename the frame parameter to
8571 "this_frame".
8572 (get_next_frame, legacy_get_prev_frame): Ditto.
8573
0a1e1ca1
AC
85742003-03-12 Andrew Cagney <cagney@redhat.com>
8575
8576 * frame.c (get_current_frame): Check target_has_registers before
8577 checking target_has_stack.
8578 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8579 instead of deprecated_selected_frame.
8580 * findvar.c (value_of_register): Pass "frame", not
8581 deprecated_selected_frame, to value_of_builtin_reg.
8582
a66a9c23
AC
85832003-03-12 Andrew Cagney <cagney@redhat.com>
8584
8585 * regcache.c (regcache_cooked_write_signed): New function.
8586 (regcache_cooked_write_unsigned): New function.
8587 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8588 (regcache_cooked_read_signed): Fix regnum in range assertion.
8589 * regcache.h (regcache_cooked_write_signed): Declare.
8590 (regcache_cooked_write_unsigned): Declare.
8591
8bedc050
AC
85922003-03-12 Andrew Cagney <cagney@redhat.com>
8593
8594 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8595 * gdbarch.h, gdbarch.c: Re-generate.
8596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8597 * x86-64-tdep.h: Update.
8598 * x86-64-tdep.c (x86_64_init_abi): Update.
8599 * v850-tdep.c (v850_gdbarch_init): Update.
8600 * sparc-tdep.c (sparc_gdbarch_init): Update.
8601 * sh-tdep.c (sh_gdbarch_init): Update.
8602 * s390-tdep.c (s390_gdbarch_init): Update.
8603 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8604 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8605 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8606 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8607 * mips-tdep.c (mips_gdbarch_init): Update.
8608 * mcore-tdep.c (mcore_gdbarch_init): Update.
8609 * m68k-tdep.c (m68k_gdbarch_init): Update.
8610 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8611 * ia64-tdep.c (ia64_gdbarch_init): Update.
8612 * i386-tdep.c (i386_gdbarch_init): Update.
8613 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8614 * hppa-tdep.c (hppa_gdbarch_init): Update.
8615 * h8300-tdep.c (h8300_gdbarch_init): Update.
8616 * frv-tdep.c (frv_gdbarch_init): Update.
8617 * cris-tdep.c (cris_gdbarch_init): Update.
8618 * avr-tdep.c (avr_gdbarch_init): Update.
8619 * arm-tdep.c (arm_gdbarch_init): Update.
8620 * alpha-tdep.c (alpha_gdbarch_init): Update.
8621 * sh-tdep.c (sh_init_extra_frame_info): Update.
8622 (sh64_init_extra_frame_info): Update.
8623 * ns32knbsd-nat.c (frame_num_args): Update.
8624 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8625 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8626 (xstormy16_frame_chain_valid): Update.
8627 * vax-tdep.c (vax_saved_pc_after_call): Update.
8628 * v850-tdep.c (v850_frame_chain): Update.
8629 (v850_pop_frame): Update.
8630 (v850_init_extra_frame_info): Update.
8631 * sparc-tdep.c (setup_arbitrary_frame): Update.
8632 * ns32k-tdep.c (umax_frame_num_args): Update.
8633 * s390-tdep.c (s390_pop_frame_regular): Update.
8634 * mn10300-tdep.c (mn10300_frame_chain): Update.
8635 (mn10300_pop_frame_regular): Update.
8636 (mn10300_init_extra_frame_info): Update.
8637 * mips-tdep.c (mips_init_frame_pc_first): Update.
8638 (mips_frame_chain): Update.
8639 (mips_pop_frame): Update.
8640 * mcore-tdep.c (mcore_frame_chain): Update.
8641 (mcore_pop_frame): Update.
8642 (mcore_init_extra_frame_info): Update.
8643 * arch-utils.c (init_frame_pc_default): Update.
8644 * m68k-tdep.c (isi_frame_num_args): Update.
8645 (delta68_frame_num_args): Update.
8646 (news_frame_num_args): Update.
8647 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8648 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8649 (alpha_frame_chain): Update.
8650 (alpha_pop_frame): Update.
8651 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8652 (hppa_init_extra_frame_info): Update.
8653 (hppa_frame_chain): Update.
8654 (hppa_frame_chain_valid): Update.
8655 * cris-tdep.c (cris_init_extra_frame_info): Update.
8656 * avr-tdep.c (avr_init_extra_frame_info): Update.
8657 * arm-tdep.c (arm_frame_chain_valid): Update.
8658 (arm_init_extra_frame_info): Update.
8659 (arm_pop_frame): Update.
8660 * frame.c (frame_pc_unwind): Update.
8661 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8662 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8663 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8664 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8665 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8666 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8667
7a25a7c1
AC
86682003-03-12 Andrew Cagney <cagney@redhat.com>
8669
8670 Eliminate the need for POP_FRAME.
8671 * frame.c (do_frame_unwind_register): New function.
8672 (frame_pop): When no POP_FRAME, pop the frame using register
8673 unwind and a scratch regcache.
8674 (frame_saved_regs_pop): Delete function.
8675 (trad_frame_unwinder): Update.
8676 * d10v-tdep.c (d10v_frame_pop): Delete function.
8677 (d10v_frame_unwind): Update.
8678 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8679 (sentinel_frame_unwinder): Update.
8680 * dummy-frame.c (dummy_frame_pop): Delete function.
8681 (dummy_frame_unwind): Update.
8682 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8683 (struct frame_unwind): Update.
8684
2f38ef89
KB
86852003-03-11 Kevin Buettner <kevinb@redhat.com>
8686
8687 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8688 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8689 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8690 Do range checks on register number obtained from debugging info.
8691 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8692 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8693 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8694 mapping function.
8695 (do_fp_register_row): Fix typo which caused double type to be
8696 used when attempting to unpack a float.
8697
552f4abf
JB
86982003-03-11 J. Brobecker <brobecker@gnat.com>
8699
8700 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8701
e0d2ae16
AC
87022003-03-11 Andrew Cagney <cagney@redhat.com>
8703
8704 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8705 frame. Problem found by Corinna Vinschen.
8706
ddbfdd06
PM
87072003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8708
8709 * doublest.c (floatformat_from_length): Accept also
8710 the real size of 'long double' type.
8711
088b2ddc 87122003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8713
088b2ddc 8714 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8715 * breakpoint.c (bpstat_copy): Copy the command lines as well
8716 as the old value, to match what is freed in bpstat_clear.
8717
f56f77c1
DC
87182003-03-10 David Carlton <carlton@math.stanford.edu>
8719
8720 * minsyms.c (add_minsym_to_hash_table): Replace
8721 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8722 (compare_minimal_symbols, compact_minimal_symbols)
8723 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8724 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8725 of DEPRECATED_SYMBOL_MATCHES_NAME.
8726 (lookup_minimal_symbol_solib_trampoline): Ditto.
8727
5602984a
AC
87282003-03-10 Andrew Cagney <cagney@redhat.com>
8729
8730 * regcache.h (regcache_cooked_read_ftype): Define.
8731 (regcache_save, regcache_restore): Add a cooked_read parameter.
8732 * regcache.c (regcache_save, regcache_restore): Update.
8733 (do_cooked_read): New function.
8734 (regcache_cpy): Pass do_cooked_read to regcache_save and
8735 regcache_restore.
8736
8bedc050
AC
87372003-03-10 Andrew Cagney <cagney@redhat.com>
8738
8739 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8740 * gdbarch.h, gdbarch.c: Re-generate.
8741 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8742 * x86-64-tdep.h: Update.
8743 * x86-64-tdep.c (x86_64_init_abi): Update.
8744 * v850-tdep.c (v850_gdbarch_init): Update.
8745 * sparc-tdep.c (sparc_gdbarch_init): Update.
8746 * sh-tdep.c (sh_gdbarch_init): Update.
8747 * s390-tdep.c (s390_gdbarch_init): Update.
8748 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8749 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8750 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8751 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8752 * mips-tdep.c (mips_gdbarch_init): Update.
8753 * mcore-tdep.c (mcore_gdbarch_init): Update.
8754 * m68k-tdep.c (m68k_gdbarch_init): Update.
8755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8756 * ia64-tdep.c (ia64_gdbarch_init): Update.
8757 * i386-tdep.c (i386_gdbarch_init): Update.
8758 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8759 * hppa-tdep.c (hppa_gdbarch_init): Update.
8760 * h8300-tdep.c (h8300_gdbarch_init): Update.
8761 * frv-tdep.c (frv_gdbarch_init): Update.
8762 * cris-tdep.c (cris_gdbarch_init): Update.
8763 * avr-tdep.c (avr_gdbarch_init): Update.
8764 * arm-tdep.c (arm_gdbarch_init): Update.
8765 * alpha-tdep.c (alpha_gdbarch_init): Update.
8766 * sh-tdep.c (sh_init_extra_frame_info): Update.
8767 (sh64_init_extra_frame_info): Update.
8768 * ns32knbsd-nat.c (frame_num_args): Update.
8769 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8770 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8771 (xstormy16_frame_chain_valid): Update.
8772 * vax-tdep.c (vax_saved_pc_after_call): Update.
8773 * v850-tdep.c (v850_frame_chain): Update.
8774 (v850_pop_frame): Update.
8775 (v850_init_extra_frame_info): Update.
8776 * sparc-tdep.c (setup_arbitrary_frame): Update.
8777 * ns32k-tdep.c (umax_frame_num_args): Update.
8778 * s390-tdep.c (s390_pop_frame_regular): Update.
8779 * mn10300-tdep.c (mn10300_frame_chain): Update.
8780 (mn10300_pop_frame_regular): Update.
8781 (mn10300_init_extra_frame_info): Update.
8782 * mips-tdep.c (mips_init_frame_pc_first): Update.
8783 (mips_frame_chain): Update.
8784 (mips_pop_frame): Update.
8785 * mcore-tdep.c (mcore_frame_chain): Update.
8786 (mcore_pop_frame): Update.
8787 (mcore_init_extra_frame_info): Update.
8788 * arch-utils.c (init_frame_pc_default): Update.
8789 * m68k-tdep.c (isi_frame_num_args): Update.
8790 (delta68_frame_num_args): Update.
8791 (news_frame_num_args): Update.
8792 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8793 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8794 (alpha_frame_chain): Update.
8795 (alpha_pop_frame): Update.
8796 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8797 (hppa_init_extra_frame_info): Update.
8798 (hppa_frame_chain): Update.
8799 (hppa_frame_chain_valid): Update.
8800 * cris-tdep.c (cris_init_extra_frame_info): Update.
8801 * avr-tdep.c (avr_init_extra_frame_info): Update.
8802 * arm-tdep.c (arm_frame_chain_valid): Update.
8803 (arm_init_extra_frame_info): Update.
8804 (arm_pop_frame): Update.
8805 * frame.c (frame_pc_unwind): Update.
8806 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8807 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8808 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8809 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8810 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8811 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8812
12cc2063
AC
88132003-03-10 Andrew Cagney <cagney@redhat.com>
8814
8815 * gdbarch.sh (gdbarch_unwind_pc): New method.
8816 * gdbarch.h, gdbarch.c: Regenerate.
8817 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8818 but use read_pc and FRAME_SAVED_PC as fall backs.
8819 (frame_saved_regs_pc_unwind): Delete function.
8820 (trad_frame_unwinder): Update.
8821 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8822 (struct frame_unwind): Update.
8823 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8824 (dummy_frame_unwind): Update.
8825 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8826 (sentinel_frame_unwinder): Update.
8827 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8828 (d10v_frame_unwind): Update.
8829 (d10v_unwind_pc): New function.
8830 (d10v_gdbarch_init): Set unwind_pc.
8831
ef840a37
AC
88322003-03-10 Andrew Cagney <cagney@redhat.com>
8833
a2ce2e56
AC
8834 * gdbarch.h: Re-generate.
8835
ef840a37
AC
8836 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8837 PC.
8838 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8839 the PC register.
8840
08f3424b
MK
88412003-03-08 Mark Kettenis <kettenis@gnu.org>
8842
8843 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8844
1248ede2
AC
88452003-03-08 Andrew Cagney <cagney@redhat.com>
8846
8847 * cli-out.c: Update copyright.
8848 (cli_out_data): Define typedef. Use instead of ui_out_data.
8849
f49bacc8
AC
88502003-03-08 Andrew Cagney <cagney@redhat.com>
8851
8852 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8853 the result.
8854
9b05f993
AC
88552003-03-07 Andrew Cagney <cagney@redhat.com>
8856
8857 * gdbarch.sh: Don't generate two macro definitions when an
8858 undefined macro taking no arguments.
8859 * gdbarch.h: Regenerate.
8ffd9b1b 8860
166f4c7b
ML
88612002-03-07 Michal Ludvig <mludvig@suse.cz>
8862
8863 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8864 (x86_64_unwind_dummy_id): New functions.
8865 (x86_64_init_abi): Register these two new functions.
8866
6d686a84
ML
88672003-03-07 Michal Ludvig <mludvig@suse.cz>
8868
8869 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8870 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8871 separate function.
8872 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8873
6314f104
AC
88742003-03-05 Andrew Cagney <cagney@redhat.com>
8875
8876 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8877 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8878 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8879 to use unwind_dummy_id when a dummy frame.
8880 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8881 predicate.
8882 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8883
ceea5145
AC
88842003-03-05 Andrew Cagney <cagney@redhat.com>
8885
8886 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8887 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8888 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8889 values.
8890
0d843116
AC
88912003-03-05 Andrew Cagney <cagney@redhat.com>
8892
8893 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8894 (struct d10v_unwind_cache): Delete field "frameless". Replace
8895 "next_addr" with "sp_offset". Add "r11_offset".
8896 (d10v_frame_unwind_cache): Update.
8897 (prologue_find_regs): Update. When "mv r11, sp", save the
8898 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8899 RN was saved in r11_offset.
8900
b2579786
AC
89012003-03-05 Andrew Cagney <cagney@redhat.com>
8902
8903 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8904 cached PC value in the next frame.
8905
218e5956
AC
89062003-03-05 Andrew Cagney <cagney@redhat.com>
8907
8908 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8909 "id_unwind_cache" with "id".
8910 (frame_id_unwind): Delete declaration.
8911 * frame.c (frame_id_unwind): Delete function.
8912 (get_prev_frame): Call the frame id unwind method directly. Store
8913 the returned next frame's ID value in NEXT_FRAME. Note that there
8914 is a problem with the wrong unwind ID being called with the wrong
8915 unwind cache.
8916
ed363b1b
DJ
89172003-03-05 Daniel Jacobowitz <drow@mvista.com>
8918
8919 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8920
fe1f4a5e
DJ
89212003-03-05 James Ingham <jingham@apple.com>
8922 Daniel Jacobowitz <drow@mvista.com>
8923
8924 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8925 (auto_cp_abi): New variable.
8926 (current_cp_abi, num_cp_abis): Make static.
8927 (CP_ABI_MAX): Define.
8928 (cp_abis): Turn into an array.
8929 (value_virtual_fn_field): Fix formatting.
8930 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8931 takes a pointer.
8932 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8933 (list_cp_abis, _initialize_cp_abi): New functions.
8934 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8935 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8936 switch_to_cp_abi. Update prototype for register_cp_abi.
8937 * Makefile.in (cp-abi.o): Update dependencies.
8938 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8939 instead of switch_to_cp_abi.
8940 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8941 register_cp_abi.
8942 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8943 register_cp_abi.
8944 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8945
e4adbba9
DJ
89462003-03-05 Daniel Jacobowitz <drow@mvista.com>
8947
8948 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8949 * dwarf2loc.c: Include "regcache.h".
8950 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8951 register_size.
8952 * Makefile.in (dwarf2loc.o): Update dependencies.
8953
91ccbfc1
TR
89542003-03-04 Theodore A. Roth <troth@openavr.org>
8955
8956 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8957 number of io registers reported by remote target is not a multiple of
8958 step.
8959
3d4e8fd2
DC
89602003-03-04 David Carlton <carlton@math.stanford.edu>
8961
8962 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8963 (lookup_symbol_aux_psymtabs): Update call to
8964 lookup_partial_symbol.
8965 (lookup_transparent_type, find_main_psymtab)
8966 (make_symbol_overload_list): Ditto.
8967
ed42d87b
KH
89682003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8969
8970 * MAINTAINERS (Write after approval): Update my email address.
8971
a0ed5532
AC
89722003-03-03 Andrew Cagney <cagney@redhat.com>
8973
8974 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8975 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8976 predicate. Replace MAX_REGISTER_RAW_SIZE.
8977 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8978 MAX_REGISTER_VIRTUAL_SIZE.
8979 * regcache.c (legacy_max_register_raw_size): New function.
8980 (legacy_max_register_virtual_size): New function.
8981 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8982 (MAX_REGISTER_RAW_SIZE): Define.
8983 (legacy_max_register_raw_size): Declare.
8984 (legacy_max_register_virtual_size): Declare.
8985 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8986 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
8987 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8988 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8989 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
8990 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
8991 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8992 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8993 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
8994 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8995 * vax-tdep.c (vax_gdbarch_init): Update.
8996 * v850-tdep.c (v850_gdbarch_init): Update.
8997 * sparc-tdep.c (sparc_gdbarch_init): Update.
8998 * sh-tdep.c (sh_gdbarch_init): Update.
8999 * s390-tdep.c (s390_gdbarch_init): Update.
9000 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9001 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9002 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9003 * mips-tdep.c (mips_gdbarch_init): Update.
9004 * mcore-tdep.c (mcore_gdbarch_init): Update.
9005 * m68k-tdep.c (m68k_gdbarch_init): Update.
9006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9007 * ia64-tdep.c (ia64_gdbarch_init): Update.
9008 * i386-tdep.c (i386_gdbarch_init): Update.
9009 * hppa-tdep.c (hppa_gdbarch_init): Update.
9010 * h8300-tdep.c (h8300_gdbarch_init): Update.
9011 * frv-tdep.c (frv_gdbarch_init): Update.
9012 * cris-tdep.c (cris_gdbarch_init): Update.
9013 * avr-tdep.c (avr_gdbarch_init): Update.
9014 * arm-tdep.c (arm_gdbarch_init): Update.
9015 * alpha-tdep.c (alpha_gdbarch_init): Update.
9016 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9017 max_register_raw_size or max_register_virtual_size.
9018
8e437497
DC
90192003-03-03 David Carlton <carlton@math.stanford.edu>
9020
9021 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9022 SYMBOL_MATCHES_NAME, add comment.
9023 (SYMBOL_MATCHES_NATURAL_NAME): New.
9024 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9025 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9026 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9027 * symtab.c (lookup_partial_symbol): Use
9028 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9029 unhelpful comment.
9030 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9031 SYMBOL_MATCHES_NAME.
9032 Fix for PR c++/33.
9033
25120b0d
DC
90342003-03-03 David Carlton <carlton@math.stanford.edu>
9035
9036 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9037 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9038 by regexp matching against SYMBOL_NATURAL_NAME.
9039
78a11fb4
DC
90402003-03-03 David Carlton <carlton@math.stanford.edu>
9041
9042 * linespec.c (find_method): Extract code into collect_methods.
9043 (collect_methods): New.
9044
645dd519
MK
90452003-03-02 Mark Kettenis <kettenis@gnu.org>
9046
b4700d91
MK
9047 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9048 get_frame_base.
9049
645dd519
MK
9050 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9051 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9052
0aa7e1aa
SC
90532003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9054
8ffd9b1b 9055 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9056 and not regnum when summing the size of all registers up to regnum.
9057
f30ee0bc
AC
90582003-03-01 Andrew Cagney <cagney@redhat.com>
9059
9060 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9061 FRAME_INIT_SAVED_REGS.
9062 * gdbarch.h, gdbarch.c: Regenerate.
9063 * stack.c (frame_info): Update.
9064 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9065 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9066 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9067 * ns32k-tdep.c (ns32k_pop_frame): Update.
9068 * mips-tdep.c (mips_pop_frame): Update.
9069 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9070 * ia64-tdep.c (ia64_frame_chain): Update.
9071 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9072 (ia64_frameless_function_invocation): Update.
9073 (ia64_init_extra_frame_info): Update.
9074 (ia64_pop_frame_regular): Update.
9075 * frame.h (struct frame_info): Update comment.
9076 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9077 * frame.c (frame_saved_regs_register_unwind): Update.
9078 (frame_saved_regs_register_unwind): Update.
9079 (deprecated_generic_get_saved_register): Update.
9080 * cris-tdep.c: Update comment.
9081 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9082 Rename macro.
9083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9084 * x86-64-tdep.c (x86_64_init_abi): Update.
9085 * vax-tdep.c (vax_gdbarch_init): Update.
9086 * v850-tdep.c (v850_gdbarch_init): Update.
9087 * sparc-tdep.c (sparc_gdbarch_init): Update.
9088 * sh-tdep.c (sh_gdbarch_init): Update.
9089 * s390-tdep.c (s390_gdbarch_init): Update.
9090 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9091 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9092 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9093 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9094 * mips-tdep.c (mips_gdbarch_init): Update.
9095 * mcore-tdep.c (mcore_gdbarch_init): Update.
9096 * m68k-tdep.c (m68k_gdbarch_init): Update.
9097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9098 * ia64-tdep.c (ia64_gdbarch_init): Update.
9099 * i386-tdep.c (i386_gdbarch_init): Update.
9100 * frv-tdep.c (frv_gdbarch_init): Update.
9101 * avr-tdep.c (avr_gdbarch_init): Update.
9102 * arm-tdep.c (arm_gdbarch_init): Update.
9103 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9104
42fa7c0f
AC
91052003-03-01 Andrew Cagney <cagney@redhat.com>
9106
9107 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9108 option enum and switch. When no windows, set the interpreter to
9109 INTERP_CONSOLE.
8ffd9b1b 9110
49c7e338
AC
91112003-03-01 Andrew Cagney <cagney@redhat.com>
9112
9113 * main.c (captured_main): Replace magic option characters with an
9114 enum.
9115
e9582e71
AC
91162003-03-01 Andrew Cagney <cagney@redhat.com>
9117
9118 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9119 INIT_EXTRA_FRAME_INFO.
9120 * gdbarch.h, gdbarch.c: Regenerate.
9121 * arm-tdep.c: Update comments.
9122 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9123 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9124 * frame.h, avr-tdep.c: Ditto.
9125 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9126 (create_new_frame, legacy_get_prev_frame): Ditto.
9127 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9128 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9129 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9130 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9131 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9132 * v850-tdep.c (v850_gdbarch_init): Ditto.
9133 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9134 * sh-tdep.c (sh_gdbarch_init): Ditto.
9135 * s390-tdep.c (s390_gdbarch_init): Ditto.
9136 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9137 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9138 * mips-tdep.c (mips_gdbarch_init): Ditto.
9139 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9141 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9142 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9143 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9144 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9145 * frv-tdep.c (frv_gdbarch_init): Ditto.
9146 * cris-tdep.c (cris_gdbarch_init): Ditto.
9147 * avr-tdep.c (avr_gdbarch_init): Ditto.
9148 * arm-tdep.c (arm_gdbarch_init): Ditto.
9149 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9150 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9151
35cac7cf
AC
91522003-03-01 Andrew Cagney <cagney@redhat.com>
9153
9154 * gdbarch.sh (register_type): New function with predicate.
9155 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9156 * gdbarch.h, gdbarch.c: Re-generate.
9157 * arch-utils.c (generic_register_byte): Use generic_register_size.
9158 (generic_register_size): When available, use
9159 gdbarch_register_type.
9160 * regcache.c (init_regcache_descr): When available, initialize the
9161 register type array using gdbarch_register_type. If the
9162 architecture supplies gdbarch_register_type, do not use the legacy
9163 regcache layout.
9164 * d10v-tdep.c (d10v_register_type): Replace
9165 d10v_register_virtual_type.
9166 (d10v_gdbarch_init): Set register_type instead of
9167 register_virtual_type.
9168
7b83296f
AC
91692003-03-01 Andrew Cagney <cagney@redhat.com>
9170
9171 * Makefile.in (ax-gdb.o): Update dependencies.
9172 * ax-gdb.c: Include "regcache.h".
9173 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9174 * findvar.c (value_of_register): Ditto.
9175 * infcmd.c (default_print_registers_info): Ditto.
9176
eadc1c87
MK
91772003-03-01 Mark Kettenis <kettenis@gnu.org>
9178
9179 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9180 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9181
14143612
MK
91822003-03-01 Mark Kettenis <kettenis@gnu.org>
9183
9184 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9185 of STREQ.
9186
a55cc764
DJ
91872003-02-28 Daniel Jacobowitz <drow@mvista.com>
9188
9189 * Makefile.in (dwarf2loc.o): Update dependencies.
9190 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9191 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9192 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9193 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9194 (locexpr_tracepoint_var_ref): New function.
9195 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9196
08a617da
AC
91972003-02-28 Andrew Cagney <cagney@redhat.com>
9198
9199 * regcache.c (register_size): New function.
9200 * regcache.h (register_size): Declare
9201 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9202 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9203
4224873a
DC
92042003-02-28 David Carlton <carlton@math.stanford.edu>
9205
9206 * linespec.c (decode_compound): Extract code into find_method.
9207 (find_method): New.
9208
ccdc5d7f
JB
92092003-02-28 J. Brobecker <brobecker@gnat.com>
9210
9211 * Makefile.in: Add rules to build and link in observer.o.
9212
974e8ced
JB
92132003-02-27 J. Brobecker <brobecker@gnat.com>
9214
9215 * observer.c: Minor comments edits.
9216
7a28f973
JB
92172003-02-27 J. Brobecker <brobecker@gnat.com>
9218
9219 * observer.h, observer.c: New file.
9220
27cddce2
AC
92212003-02-27 Andrew Cagney <cagney@redhat.com>
9222
9223 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9224
b94a41a1
SC
92252003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9226
9227 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9228 (M6812_OP_STS_EXT): Likewise.
9229 (m6811_prologue): Use the above to recognize prologue.
9230 (m6812_prologue): Likewise.
9231
c8be8951
DC
92322003-02-27 David Carlton <carlton@math.stanford.edu>
9233
9234 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9235 SYMBOL_PRINT_NAME.
9236 (compare_psymbols): Ditto.
9237 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9238
d05bb1fc
MS
92392003-02-27 Michael Snyder <msnyder@redhat.com>
9240
4e845cd3
MS
9241 * f-lang.c (build_fortran_types): New function.
9242 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9243 * doublest.c (extract_floating): Fix warning text.
9244
f3824013
AC
92452003-02-27 Andrew Cagney <cagney@redhat.com>
9246
9247 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9248 predicate. Replaces PUSH_DUMMY_FRAME.
9249 * gdbarch.h, gdbarch.c: Regnerate.
9250 * valops.c (hand_function_call): Update. Call
9251 generic_push_dummy_frame directly.
9252 * vax-tdep.c (vax_gdbarch_init): Update.
9253 * sparc-tdep.c (sparc_gdbarch_init): Update.
9254 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9255 * m68k-tdep.c (m68k_gdbarch_init): Update.
9256 * hppa-tdep.c (hppa_gdbarch_init): Update.
9257 * alpha-tdep.c (alpha_gdbarch_init): Update.
9258 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9259 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9260 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9262 push_dummy_frame to generic_push_dummy_frame.
9263 * v850-tdep.c (v850_gdbarch_init): Ditto.
9264 * sh-tdep.c (sh_gdbarch_init): Ditto.
9265 * s390-tdep.c (s390_gdbarch_init): Ditto.
9266 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9267 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9268 * mips-tdep.c (mips_gdbarch_init): Ditto.
9269 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9270 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9271 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9272 * i386-tdep.c (i386_gdbarch_init): Ditto.
9273 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9274 * frv-tdep.c (frv_gdbarch_init): Ditto.
9275 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9276 * cris-tdep.c (cris_gdbarch_init): Ditto.
9277 * avr-tdep.c (avr_gdbarch_init): Ditto.
9278 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9279
ad188201
KB
92802003-02-26 Kevin Buettner <kevinb@redhat.com>
9281
9282 * mips-tdep.c (show_mips_abi): New function.
9283 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9284 command ``show mips abi''.
9285
6b37567a 92862003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9287
6b37567a 9288 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9289 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9290 more sline entries have been seen for the function.
9291
d3e0a5bf
MC
92922003-02-26 Michael Chastain <mec@shout.net>
9293
9294 * configure: Regenerate with autoconf 000227.
9295
18972eea
MC
92962003-02-26 Michael Chastain <mec@shout.net>
9297
9298 Close PR build/660.
9299 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9300 for old libc5/glibc.
9301 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9302
0bbde931
KW
93032003-02-26 Kris Warkentin <kewarken@qnx.com>
9304
9305 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9306 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9307
27ca5dad
MC
93082003-02-26 Michael Chastain <mec@shout.net>
9309
9310 * configure.in: New variable HAVE_UINTPTR_T.
9311 * configure, config.in: Regenerated.
9312
6f88d630
DJ
93132003-02-26 Daniel Jacobowitz <drow@mvista.com>
9314
9315 Fix PR build/1097.
9316 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9317
b14185ce
AC
93182003-02-25 Andrew Cagney <cagney@redhat.com>
9319
9320 * frame.c (get_prev_frame): Add comment on check for
9321 inside_entry_func. Only check for inside_entry_file when not a
9322 dummy and not a sentinel. Check that the new frame is not inner
9323 to the old frame.
9324
ac2bd0a9
AC
93252003-02-25 Andrew Cagney <cagney@redhat.com>
9326
9327 * frame.c (frame_debug): New variable.
9328 (_initialize_frame): Add "set/show debug frame" command.
9329 (get_prev_frame): When frame_debug, print reason why unwind
9330 failed.
9331
b18a0fd2
MC
93322003-02-25 Michael Chastain <mec@shout.net>
9333
9334 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9335 to avoid uintptr_t definition problems.
9336
22abf04a
DC
93372003-02-25 David Carlton <carlton@math.stanford.edu>
9338
9339 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9340 (SYMBOL_LINKAGE_NAME): Ditto.
9341 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9342 SYMBOL_LINKAGE_NAME.
9343 (struct general_symbol_info): Expand comment.
9344 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9345 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9346 (SYMBOL_MATCHES_REGEXP): Ditto.
9347 * symtab.c (symbol_natural_name): New function.
9348 * objfiles.h: Replace all uses of SYMBOL_NAME by
9349 DEPRECATED_SYMBOL_NAME.
9350 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9351 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9352 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9353 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9354 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9355 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9356 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9357 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9358 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9359 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9360 * ada-exp.y: Ditto.
9361 * ada-exp.y: Update copyright.
9362 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9363 * cp-valprint.c: Ditto.
9364
1a5848f6
JJ
93652003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9366
9367 * infptrace.c (detach): Do not flag error if ptrace detach fails
9368 and errno is set to ESRCH.
9369
7343d46a
AC
93702003-02-24 Andrew Cagney <cagney@redhat.com>
9371
9372 * infptrace.c (udot_info): Change type of udot_off to long. Use
9373 paddr when printing udot_off's value.
9374
49fa1dc2
DC
93752003-02-24 David Carlton <carlton@math.stanford.edu>
9376
9377 * symtab.c (make_symbol_overload_list): Only read in partial
9378 symtabs containing a matching partial symbol.
9379
0fe19209
DC
93802003-02-24 David Carlton <carlton@math.stanford.edu>
9381
9382 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9383 do the comparison, not strcmp.
9384 * symfile.c (compare_psymbols): Ditto.
9385 * defs.h: Declare strcmp_iw_ordered.
9386 * utils.c (strcmp_iw_ordered): New function.
9387
8e3ee7b5
JB
93882003-02-24 Jim Blandy <jimb@redhat.com>
9389
9390 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9391 support, shared libs): Remove my name from here, to better reflect
9392 reality.
9393
7df1a324
KW
93942003-02-24 Kris Warkentin <kewarken@qnx.com>
9395
9396 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9397 (target_ops): Add to_have_continuable_watchpoint.
9398 * target.c (update_current_target): Add INHERIT line for
9399 to_have_continuable_watchpoint.
9400 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9401 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9402 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9403 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9404
d1c76907
EZ
94052003-02-24 Elena Zannoni <ezannoni@redhat.com>
9406
9407 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9408 maintainership.
9409
2610b0bf
KW
94102003-02-24 Kris Warkentin <kewarken@qnx.com>
9411
f46169db
KW
9412 * solib.c (solib_open): Call target defined search function after
9413 failing with solib-search-path.
9414 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9415 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9416
9a3c34fe
KW
94172003-02-24 Kris Warkentin <kewarken@qnx.com>
9418
f46169db 9419 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9420
2417dd25
SC
94212003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9422
9423 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9424
b631436b
SC
94252003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9426
9427 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9428 (m68hc11_add_reggroups): New function.
9429 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9430 (m68hc11_gdbarch_init): Install the reggroups.
9431 (_initialize_m68hc11_tdep): Initialize them.
9432
0aa8c1e4
JW
94332003-02-21 James E Wilson <wilson@tuliptree.org>
9434
9435 * MAINTAINERS: Update my email address.
9436
50ceaba5
DC
94372003-02-21 David Carlton <carlton@math.stanford.edu>
9438
9439 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9440
4c2df51b
DJ
94412003-02-21 Daniel Jacobowitz <drow@mvista.com>
9442
9443 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9444 * symtab.h: Add opaque declarations of struct axs_value and
9445 struct agent_expr.
9446 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9447 (struct location_funcs): New type.
9448 (struct symbol): Add "loc" to aux_value.
9449 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9450 * dwarf2read.c: Include "dwarf2expr.h".
9451 (dwarf2_symbol_mark_computed): New function.
9452 (read_func_scope): Use it.
9453 (var_decode_location): New function.
9454 (new_symbol): Use it.
9455 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9456
9457 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9458 (dwarf2expr_h, dwarf2loc_h): New variables.
9459 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9460 (dwarf2expr.o, dwarf2loc.o): New rules.
9461 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9462 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9463 LOC_COMPUTED_ARG.
9464 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9465 * m2-exp.y (yylex): Likewise.
9466 * printcmd.c (address_info, print_frame_args): Likewise.
9467 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9468 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9469 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9470 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9471 * symtab.c (lookup_block_symbol): Likewise.
9472
5784d15e
AF
94732003-02-20 Adam Fedor <fedor@gnu.org>
9474
9475 * symtab.h: Remove objc_specific struct
9476 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9477 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9478 Have language_objc use cplus_specific struct.
9479
d4cad8db
TT
94802003-02-20 Tom Tromey <tromey@redhat.com>
9481
9482 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9483 TYPE_NAME, when printing a String value. PR java/1075.
9484
2f9a90b4
AF
94852003-02-20 Adam Fedor <fedor@gnu.org>
9486
d38074a8 9487 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9488 * objc-lang.c (find_methods): Make static.
2f9a90b4 9489
6f17862b
CF
94902003-02-20 Christopher Faylor <cgf@redhat.com>
9491
9492 * win32-nat.c (get_image_name): Check return value from
9493 ReadProcessMemory.
9494 (child_xfer_memory): Ditto.
9495
715d1656
AO
94962003-02-20 Alexandre Oliva <aoliva@redhat.com>
9497
9498 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9499 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9500 '${exec_prefix}' (in addition to the expansion thereof) as
9501 relocatable.
9502 * configure: Rebuilt.
9503
b1262a02
DC
95042003-02-20 David Carlton <carlton@math.stanford.edu>
9505
9506 * symtab.c (search_symbols): Revert the search_symbols part of my
9507 2002-12-23 patch. Add comment.
9508
7134143f
DJ
95092002-02-20 Daniel Jacobowitz <drow@mvista.com>
9510
9511 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9512 * dbxread.c (elfstab_build_psymtabs): Don't call
9513 install_minimal_symbols.
9514 (stabsect_build_psymtabs): Likewise.
9515 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9516 earlier.
9517 * somread.c (som_symfile_read): Call install_minimal_symbols
9518 and do_cleanups earlier.
9519 * nlmread.c (nlm_symfile_read): Likewise.
9520 * mdebugread.c (elfmdebug_build_psymtabs): Call
9521 install_minimal_symbols and make appropriate cleanups.
9522
cf466558
KB
95232003-02-20 Kevin Buettner <kevinb@redhat.com>
9524
9525 * solib.c (reload_shared_libraries): New function.
9526 (_initialize_solib): Add callbacks for ``set solib-search-path''
9527 and ``set solib-absolute-prefix''.
9528
de5ad195
DC
95292003-02-20 David Carlton <carlton@math.stanford.edu>
9530
9531 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9532 expand comment.
9533 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9534 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9535 * ada-typeprint.c (ada_typedef_print): Ditto.
9536 * ax-gdb.c (gen_var_ref): Ditto.
9537 * breakpoint.c (print_one_breakpoint): Ditto.
9538 * buildsym.c (finish_block): Ditto.
9539 * c-valprint.c (c_val_print): Ditto.
9540 * expprint.c (print_subexp): Ditto.
9541 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9542 * infcmd.c (jump_command): Ditto.
9543 * linespec.c (decode_line_2, decode_compound): Ditto.
9544 * maint.c (maintenance_translate_address): Ditto.
9545 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9546 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9547 Ditto.
8ffd9b1b
AJ
9548 * p-valprint.c (pascal_val_print): Ditto.
9549 * stabsread.c (define_symbol): Ditto.
de5ad195 9550 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9551 (print_frame_arg_vars, return_command): Ditto.
9552 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9553 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9554 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9555 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9556 (rbreak_command): Ditto.
9557 * tracepoint.c (tracepoints_info): Ditto.
9558 * typeprint.c (typedef_print): Ditto.
9559 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9560 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9561 * ada-typeprint.c: Update Copyright.
9562 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9563 * tracepoint.c, cli/cli-cmds.c: Ditto.
9564
f796e4be
KB
95652003-02-20 Kevin Buettner <kevinb@redhat.com>
9566
9567 * frame.c (generic_unwind_get_saved_register): Make non-static.
9568 * frame.h (generic_unwind_get_saved_register): Declare.
9569 * mips-tdep.c (read_next_frame_reg): Fetch register from
9570 current regcache when frame is NULL.
9571 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9572 that must be NULL.
9573 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9574 instead of frame_register_unwind().
9575
836cc9f4
AC
95762003-02-20 Andrew Cagney <ac131313@redhat.com>
9577
9578 * remote-sim.c (gdbsim_insert_breakpoint)
9579 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9580 code.
9581
501eef12
AC
95822003-02-20 Andrew Cagney <ac131313@redhat.com>
9583
9584 * remote.c (_initialize_remote): Add commands "set/show remote
9585 hardware-watchpoint-limit" and "set/show remote
9586 hardware-breakpoint-limit".
9587 (remote_hw_watchpoint_limit): Initialize to -1.
9588 (remote_hw_breakpoint_limit): Ditto.
9589 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9590
1b6bc7e0
CF
95912003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9592
9593 * coff-pe-read.c: New file - support reading of minimal symbols from a
9594 portable executable using the export table.
9595 * coff-pe-read.h: New file.
9596 * coffread.c: Include coff-pe-read.h.
9597 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9598 debugging symbols found.
9599 * Makefile.in (SFILES): Add coff-pe-read.o.
9600 (coff_pe_read_h): Define.
9601 (COMMON_OBS): Add coff-pe-read.o.
9602 (coffread.o): Add coff_pe_read_h dependency.
9603 (coff-pe-read.o): New target.
9604
fe898f56
DC
96052003-02-19 David Carlton <carlton@math.stanford.edu>
9606
9607 * Makefile.in (SFILES): Add block.c.
9608 (block_h): New.
9609 (COMMON_OBS): Add block.o.
9610 (block.o): New.
9611 (x86-64-tdep.o): Add $(block_h).
9612 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9613 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9614 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9615 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9616 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9617 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9618 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9619 * value.h: Add opaque declaration for struct block.
9620 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9621 * ada-lang.h: Ditto.
9622 * x86-64-tdep.c: #include "block.h"
9623 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9624 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9625 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9626 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9627 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9628 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9629 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9630 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9631 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9632 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9633 * symtab.c (block_function): Ditto.
9634 (contained_in): Ditto.
9635 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9636 block.h. Add opaque declaration for struct block.
9637 * symtab.h: Move block_function and contained_in declarations to
9638 block.h. Add opaque declarations for struct block, struct
9639 blockvector.
9640 (struct block): Move to block.h.
9641 (struct blockvector): Ditto.
9642 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9643 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9644 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9645 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9646 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9647 Ditto.
9648 * block.c: New file.
9649 * block.h: New file.
9650
173345b5
TR
96512003-02-19 Theodore A. Roth <troth@openavr.org>
9652
9653 * avr-tdep.c (avr_extract_return_value): Remove function.
9654 (avr_store_return_value): Remove function.
9655 (avr_extract_struct_value_address): Remove function.
9656 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9657
338ef23d
AC
96582003-02-19 Andrew Cagney <ac131313@redhat.com>
9659
9660 * rs6000-tdep.c: Include "gdb_assert.h".
9661 (registers_e500): Add "acc" and "spefscr".
9662 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9663 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9664 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9665 really is "r0".
9666 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9667
5412f5f3
KS
96682003-02-18 Keith Seitz <keiths@redhat.com>
9669
9670 * Makefile.in: Add gdbtk-interps.c.
9671
881324eb
KB
96722003-02-18 Kevin Buettner <kevinb@redhat.com>
9673
9674 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9675 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9676
6a2f5abf
AC
96772003-02-18 Andrew Cagney <cagney@redhat.com>
9678
9679 * symtab.h (struct objfile): Add opaque declaration.
9680
54c7009d
EZ
96812003-02-18 Elena Zannoni <ezannoni@redhat.com>
9682
9683 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9684 * dbxread.c (process_one_symbol): Use last_function_start rather
9685 than function_start_offset to find the real beginning of the
9686 current function. The latter is just the text section offset on
9687 some systems, the former is always the real function start.
54c7009d 9688
7ee6d7eb
AC
96892003-02-17 Andrew Cagney <cagney@redhat.com>
9690
9691 * configure.in: Revert ${target} != ${host}.
9692
2846da9b
AC
96932003-02-17 Andrew Cagney <ac131313@redhat.com>
9694
9695 * configure.in (Makefile): Use the test ${target} != ${host},
9696 instead of the absence of the "nm.h" file, to determine of the
9697 configuration non-native.
9698 * configure: Regenerate.
8ffd9b1b 9699
3b27aeea
EZ
97002003-02-14 Elena Zannoni <ezannoni@redhat.com>
9701
fbe586ae 9702 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9703
9704 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9705 conditionalize tui_active test.
9706 (lookup_cmd_1): Ditto.
9707
b0b1c2c0
MK
97082003-02-14 Mark Kettenis <kettenis@gnu.org>
9709
9710 * configure.in: Add check for _etext.
9711 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9712 available.
9713 * config.in, configure: regenerated.
9714
8f05cde5
DJ
97152003-02-14 Daniel Jacobowitz <drow@mvista.com>
9716
9717 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9718
021e7609
AC
97192003-02-14 Andrew Cagney <ac131313@redhat.com>
9720
9721 * main.c (tui_version): Delete variable.
9722 (captured_main): When --tui, set interpreter_p to "tui" instead of
9723 enabling tui_version.
9724 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9725 tui_version.
9726 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9727 * cli/cli-cmds.c (disassemble_command): Ditto.
9728 * defs.h (tui_version): Delete declaration.
9729 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9730 (tui-interp.o): Add rules.
9731 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9732
e325dcec
CF
97332003-02-14 Christopher Faylor <cgf@redhat.com>
9734
36ffb041 9735 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9736 just-loaded dll.
9737
c4f90d87
JM
97382003-02-12 Jason Molenda (jmolenda@apple.com)
9739
fbe586ae
RH
9740 * symmisc.c (print_objfile_statistics): Include information about
9741 the number of psymtabs and symtabs in each object file.
c4f90d87 9742
e46e5ccd
KS
97432003-02-13 Keith R Seitz <keiths@redhat.com>
9744
9745 * main.h (struct captured_main_args): Add interpreter_p.
9746 * main.c (captured_main): Initialize interpreter_p from context.
9747 * gdb.c (main): Set interpreter_p argument.
9748 * Makefile.in (gdb.o): Add dependency for interps.h.
9749
fe97fe9c
AC
97502003-02-12 Andrew Cagney <ac131313@redhat.com>
9751
9752 * event-top.c (cli_command_loop): Delete declaration.
9753 (_initialize_event_loop): Delete function setting event_loop_hook.
9754 * event-top.h (cli_command_loop): Declare. Update copyright.
9755 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9756 * interps.c (current_interp_command_loop): When event_loop_p, call
9757 cli_command_loop.
9758
1cdac4ef
AC
97592003-02-12 Andrew Cagney <ac131313@redhat.com>
9760
9761 * interps.h (interp_command_loop_ftype): Change return type to
9762 void.
9763
48037ead
ML
97642003-02-12 Michal Ludvig <mludvig@suse.cz>
9765
9766 * x86-64-tdep.c (x86_64_extract_return_value)
9767 (x86_64_store_return_value): Use regcache instead of regbuf.
9768 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9769 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9770
033afc63
AC
97712003-02-11 Andrew Cagney <ac131313@redhat.com>
9772
9773 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9774 * aclocal.m4: Regenerate.
9775 * configure: Regenerate.
9776
9777 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9778 TCL_LD_SEARCH_FLAGS.
9779
40d02bca
ML
97802003-02-10 Michal Ludvig <mludvig@suse.cz>
9781
9782 * dwarf2cfi.c: Reindented.
9783
11308a41
AC
97842003-02-09 Andrew Cagney <ac131313@redhat.com>
9785
9786 * interps.c (clear_interpreter_hooks): Convert function definition
9787 to ISO C.
9788
e1c1c0f6
DC
97892003-02-07 David Carlton <carlton@math.stanford.edu>
9790
9791 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9792
ab5d3da6
KB
97932003-02-07 Kevin Buettner <kevinb@redhat.com>
9794
9795 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9796 (struct type): ...to here.
9797 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9798 field.
9799 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9800 (replace_type): Set length on all type variants for a given type.
9801
b8a92b82
AC
98022003-02-07 Andrew Cagney <ac131313@redhat.com>
9803
9804 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9805 <sys/stat.h>.
9806 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9807
5cb316ef
AC
98082003-02-06 Andrew Cagney <ac131313@redhat.com>
9809
2555fe1a
AC
9810 * Makefile.in (symm-nat.o): Update dependencies.
9811 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9812 (lynx-nat.o, ia64-linux-nat.): Ditto.
9813 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9814 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9815 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9816
44270758
AC
9817 * Makefile.in (inflow_h): Define.
9818 (procfs.o, inflow.o, procfs.o): Update dependencies.
9819 * inftarg.c (child_stop): Delete extern declaration of
9820 inferior_process_group. Include "inflow.h".
9821 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9822 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9823 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9824 (our_process_group, inferior_process_group): Extern declarations.
9825
df8f7274
AC
9826 * procfs.c: Include "gdb_assert.h".
9827
5cb316ef
AC
9828 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9829 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9830 * jv-typeprint.c (java_type_print_base): Ditto.
9831 * typeprint.c (typedef_print): Eliminate STREQ.
9832 * cli/cli-script.c (define_command, define_command): Ditto.
9833 * main.c (captured_main): Ditto.
9834 * values.c (lookup_internalvar): Ditto.
9835 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9836 within `if' conditional.
9837 * linespec.c (decode_line_2): Ditto.
9838 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9839 (bfd_openw_with_cleanup): Ditto.
9840
2a28ccea
MK
98412003-02-07 Mark Kettenis <kettenis@gnu.org>
9842
9843 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9844 legacy_extract_return_value and store_return_value to
9845 legacy_return_value.
9846
786b8124
CF
98472003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9848
9849 * win32-nat.c (get_relocated_section_addrs): New function. Find
9850 section load addresses for symbol handling in relocated DLLs.
9851 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9852
b871e4ec
FF
98532003-02-05 Fred Fish <fnf@intrinsity.com>
9854
9855 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9856 '=' and '!='.
9857 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9858 with '&' and '=='.
9859 (angel_RDI_info): Ditto.
9860 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9861 with '&' and '!='.
9862 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9863
4389a95a 98642003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9865 Keith Seitz <keiths@redhat.com>
9866 Elena Zannoni <ezannoni@redhat.com>
9867 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9868
9869 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9870 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9871 (SUBDIR_MI_OBS): Add "mi-interp.o".
9872 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9873 (SFILES): Add "interps.c".
9874 (COMMON_OBS): Add "interps.o".
9875 (interps_h, mi_main_h): Define.
9876 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9877 (mi-main.o, main.o, event-top.o): Update dependencies.
9878 * cli/cli-interp.c: New file.
9879 * interps.h, interps.c: New files.
9880 * top.c: (gdb_init): Don't install the default interpreter, handed
9881 by captured_main.
9882 * main.c: Include "interps.h".
9883 (interpreter_p): Note that it should malloc'ed.
9884 (captured_command_loop): Call current_interp_command_loop.
9885 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9886 xfree and xstrdup when updating interpreter_p. Install the
9887 default interpreter. Add hack to stop mi1's copyright notice
9888 being encoded.
9889 * event-top.h (gdb_setup_readline): Declare.
9890 (gdb_disable_readline): Declare.
9891 * event-top.c: Include "interps.h".
9892 (display_gdb_prompt): Call current_interp_display_prompt_p.
9893 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9894 gdb_stdlog, and gdb_stdtarg.
9895 (_initialize_event_loop): Don't call gdb_setup_readline.
9896 * cli-out.c (cli_out_set_stream): New function.
9897 * cli-out.h (cli_out_set_stream): Declare.
9898
ff3b5810
MK
98992003-02-06 Mark Kettenis <kettenis@gnu.org>
9900
9901 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9902 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9903 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9904 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9905 config/i386/i386v42mp.mt: Removed.
9906
5b729aa5
MK
99072003-02-05 Mark Kettenis <kettenis@gnu.org>
9908
9909 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9910 GDB_OSABI_SOLARIS.
9911
8cc15142
MC
99122003-02-05 Michael Chastain <mec@shout.net>
9913
9914 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9915 2.12.1 and earlier versions.
9916
5aa5d4b9
AC
99172003-02-05 Andrew Cagney <ac131313@redhat.com>
9918
9919 Remove orphaned hosts, targets and files.
9920 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9921 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9922 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9923 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9924 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9925 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9926 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9927 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9928 * config/sparc/tm-sp64sim.h: Delete.
9929 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9930 hosts.
9931 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9932 mips*-dec-mach3* targets.
9933
b68767c1
MC
99342003-02-04 Michael Chastain <mec@shout.net>
9935
9936 * NEWS: Fix typo: sepcifying -> specifying.
9937
5ae7ca1d
MC
99382003-02-04 Michael Chastain <mec@shout.net>
9939
9940 * dwarfread.c: Add documentation on the state of dwarf-1,
9941 looking towards obsoletion.
9942
d08a4280
MC
99432003-02-03 Michael Chastain <mec@shout.net>
9944
9945 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9946 gdb/testsuite/gdb.c++/pr-1023.exp.
9947
e9be73e4
AC
99482003-02-04 Andrew Cagney <ac131313@redhat.com>
9949
9950 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9951 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9952
9953 * utils.c (init_page_info): Delete reference to MPW in comments.
9954 * main.c (captured_main): Delete #ifdef MPW.
9955
05d57f6f
AC
99562003-02-04 Andrew Cagney <ac131313@redhat.com>
9957
8ffd9b1b 9958 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9959 * monitor.c (monitor_expect): Obsolete reference to m32r.
9960 * configure.tgt: Mark m32r-*-elf* as obsolete.
9961 * MAINTAINERS: Mark m32k as obsolete.
9962 * m32r-rom.c: Obsolete file.
9963 * config/m32r/m32r.mt: Obsolete file.
9964 * config/m32r/tm-m32r.h: Obsolete file.
9965 * m32r-stub.c: Obsolete file.
9966 * m32r-tdep.c: Obsolete file.
9967
8b0e5691
AC
99682003-02-04 Andrew Cagney <ac131313@redhat.com>
9969
9970 * NEWS: Mention that the z8k-zilog-none is obsolete.
9971 * MAINTAINERS: Mark z8k as obsolete.
9972 * configure.tgt: Obsolete the z8k-*-coff* target.
9973 * config/z8k/z8k.mt: Obsolete file.
9974 * config/z8k/tm-z8k.h: Obsolete file.
9975 * z8k-tdep.c: Obsolete file.
9976
67f16606
AC
99772003-02-04 Andrew Cagney <ac131313@redhat.com>
9978
9979 * NEWS: Mention that the mn10200-elf is obsolete.
9980 * configure.tgt: Obsolete mn10200-*-* target.
9981 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9982 mention that the mn10200 is obsolete.
9983 * breakpoint.h: Ditto.
9984 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9985 * config/mn10200/mn10200.mt: Obsolete file.
9986 * config/mn10200/tm-mn10200.h: Obsolete file.
9987 * mn10200-tdep.c: Obsolete file.
9988
fd2299bd
AC
99892003-02-04 Andrew Cagney <ac131313@redhat.com>
9990
9991 * MAINTAINERS: Mark h8500 as obsolete.
9992 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
9993 * findvar.c (value_from_register): Ditto.
9994 * h8500-tdep.c: Mark file as obsolete.
9995 * config/h8500/h8500.mt: Ditto.
9996 * config/h8500/tm-h8500.h: Ditto.
9997 * NEWS: Mention that h8500 is obsolete.
9998
eb9a305d
DC
99992003-02-04 David Carlton <carlton@math.stanford.edu>
10000
10001 * objfiles.c (allocate_objfile): Always set name. Add comment at
10002 start of function.
10003 * jv-lang.c (get_dynamics_objfile): Add comment.
10004
406fc7fb
DC
100052003-02-04 David Carlton <carlton@math.stanford.edu>
10006
10007 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10008 * printcmd.c (build_address_symbolic): Replace uses of
10009 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10010 SYMBOL_NAME, and asm_demangle.
10011 Update copyright.
10012
93d91629
DC
100132003-02-04 David Carlton <carlton@math.stanford.edu>
10014
10015 * linespec.c (decode_compound): Extract code into
10016 lookup_prefix_sym.
10017 (lookup_prefix_sym): New function.
10018
1c5cb38e
DC
100192003-02-04 David Carlton <carlton@math.stanford.edu>
10020
10021 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10022 FLOAT_COERCION_BADNESS.
10023 * gdbtypes.c (rank_one_type): Replace all uses of
10024 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10025
0cf824c9
JB
100262003-02-04 Jim Blandy <jimb@redhat.com>
10027
10028 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10029 section, let dwarf_macinfo_section point to it, not
10030 dwarf_loc_section.
10031
a2d356b0
DJ
100322003-02-04 Daniel Jacobowitz <drow@mvista.com>
10033
10034 Pointed out by Anton Blanchard <anton@samba.org>.
10035 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10036 (ppc_linux_at_sigtramp_return_path): Use it.
10037
2de7ced7
DJ
100382003-02-04 Daniel Jacobowitz <drow@mvista.com>
10039
10040 * defs.h (streq): Add prototype.
10041 * utils.c (streq): New function.
10042
10043 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10044 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10045 * mdebugread.c (new_symbol): Likewise.
10046 * stabsread.c (define_symbol): Likewise.
10047 * coffread.c (process_coff_symbol): Likewise.
10048 * dwarfread.c (new_symbol): Likewise.
10049
10050 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10051 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10052 here.
10053 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10054 SYMBOL_INIT_DEMANGLED_NAME.
10055 * objfiles.c: Include "hashtab.h".
10056 (allocate_objfile): Call htab_set_functions_ex for the
10057 demangled_names_hash.
10058 (free_objfile): Call htab_delete for the demangled_names_hash.
10059 * objfiles.h (struct htab): Add declaration.
10060 (struct objfile): Add demangled_names_hash.
10061 * symfile.c: Include "hashtab.h".
10062 (reread_symbols): Call htab_delete for the demangled_names_hash.
10063 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10064 SYMBOL_NAME in the bcache.
10065 * symtab.c: Include "hashtab.h". Update comments.
10066 (create_demangled_names_hash, symbol_set_names): New functions.
10067 (symbol_find_demangled_name): New function, broken out from
10068 symbol_init_demangled_names.
10069 (symbol_init_demangled_names): Use it.
10070 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10071 (SYMBOL_SET_NAMES): New macro.
10072 (symbol_set_names): Add prototype.
10073
15831452
JB
100742003-02-03 Jim Blandy <jimb@redhat.com>
10075
10076 Use a single, consistent representation for an empty minimal
10077 symbol table in an objfile.
10078 * objfiles.c (terminate_minimal_symbol_table): New function.
10079 (allocate_objfile): Call it.
10080 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10081 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10082 non-NULL.
15831452
JB
10083 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10084 objfile has minimal symbols, compare minimal_symbol_count to zero,
10085 instead of comparing msymbols with NULL.
10086 * objfiles.c (have_minimal_symbols): Same.
10087 * solib-sunos.c (solib_add_common_symbols): Call
10088 terminate_minimal_symbol_table.
10089 * symfile.c (reread_symbols): Same.
8ffd9b1b 10090
ffc65945
KB
100912003-02-03 Kevin Buettner <kevinb@redhat.com>
10092
10093 * s390-tdep.c (s390_address_class_type_flags)
10094 (s390_address_class_type_flags_to_name)
10095 (s390_address_class_name_to_type_flags): New functions.
10096 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10097 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10098
f211c6d4
MS
100992003-02-03 Michael Snyder <msnyder@redhat.com>
10100
10101 * arm-tdep.c: Fix spell-o in comment.
10102
659b0389
ML
101032003-02-03 Michal Ludvig <mludvig@suse.cz>
10104
10105 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10106 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10107 error messages to contain BFD filename.
659b0389 10108
3b31d625
EZ
101092003-02-02 Elena Zannoni <ezannoni@redhat.com>
10110
997b089a 10111 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10112 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10113 (do_mixed_source_and_assembly): Use
10114 make_cleanup_ui_out_tuple_begin_end and
10115 make_cleanup_ui_out_tuple_begin_end.
10116 (do_mixed_source_and_assembly): Ditto.
10117 * thread.c (do_captured_list_thread_ids): Ditto.
10118 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10119 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10120 ui_out_tuple_end): Delete prototypes.
10121 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10122 ui_out_list_end, ui_out_tuple_end): Delete.
10123
10124 From Kevin Buettner <kevinb@redhat.com>:
10125 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10126 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10127 (do_cleanup_table_end): New functions.
10128 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10129 Use cleanups to invoke_ui_out_tuple_end().
10130 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10131 * cli/cli-setshow.c (cmd_show_list): Use
10132 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10133
5b181d62
AC
101342003-02-02 Andrew Cagney <ac131313@redhat.com>
10135
10136 * frame.c (frame_unwind_register): New function.
10137 (frame_unwind_unsigned_register): Use.
10138 (frame_unwind_signed_register): Use.
10139 (frame_read_register): New function.
10140 * frame.h (frame_unwind_register): Declare.
10141 (frame_read_register): Declare.
10142
10143 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10144 and frame_unwind_register instead of read_memory, write_register
10145 and deprecated_write_register_bytes.
10146
5f601589
AC
101472003-02-02 Andrew Cagney <ac131313@redhat.com>
10148
10149 * frame.h: Note that namelen can be negative.
10150 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10151 NAME's length.
10152
10153 * NEWS: Mention that the d10v's `regs' command is deprecated.
10154 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10155 (d10v_print_registers_info): New function.
10156 (show_regs): Call d10v_print_registers_info.
10157 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10158
6a3fe0a4
MK
101592003-02-02 Mark Kettenis <kettenis@gnu.org>
10160
10161 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10162 lost in the previous patch.
10163
075559bc
AC
101642003-02-01 Andrew Cagney <ac131313@redhat.com>
10165
10166 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10167 * stack.c (print_frame_info_base): Output complete FRAME tuple
10168 for synthesized frames.
075559bc 10169
6789195b
AC
101702003-02-02 Andrew Cagney <ac131313@redhat.com>
10171
10172 * mips-nat.c (zerobuf): Delete.
10173 (fetch_inferior_registers): Alloc local zerobuf.
10174 (fetch_core_registers): Alloc local zerobuf.
10175 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10176 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10177 * thread-db.c (thread_db_store_registers): Ditto.
10178 * sh-tdep.c (sh_do_register): Ditto.
10179 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10180 * remote-sim.c (gdbsim_store_register): Ditto.
10181 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10182 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10183 * monitor.c (monitor_supply_register): Ditto.
10184 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10185 * mips-nat.c (fetch_inferior_registers): Ditto.
10186 * m68klinux-nat.c (fetch_register): Ditto.
10187 * lynx-nat.c (fetch_inferior_registers): Ditto.
10188 (fetch_inferior_registers): Ditto.
10189 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10190 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10191 (hpux_thread_store_registers): Ditto.
10192 * hppah-nat.c (fetch_register): Ditto.
10193 * hppab-nat.c (fetch_register): Ditto.
10194 * hppa-tdep.c (pa_register_look_aside): Ditto.
10195 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10196 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10197
e669114a
AC
101982003-02-01 Andrew Cagney <ac131313@redhat.com>
10199
10200 * gdbarch.sh: Explictly specify all method levels. When a
10201 variable with an empty level, provide a non-multi-arch default.
10202 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10203 * gdbarch.h: Re-generate.
10204 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10205 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10206
9a043c1d
AC
102072003-02-01 Andrew Cagney <ac131313@redhat.com>
10208
10209 * defs.h (host_pointer_to_address): Delete declaration.
10210 (address_to_host_pointer): Delete declaration.
10211 * utils.c (host_pointer_to_address): Delete function.
10212 (address_to_host_pointer): Delete function.
10213 * procfs.c (procfs_address_to_host_pointer): New function.
10214 * procfs.c (proc_set_watchpoint): Use.
10215 (procfs_can_use_hw_breakpoint): Update comments.
10216 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10217 (som_solib_add): Use.
10218 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10219 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10220
7ca9f392
AC
102212003-02-01 Andrew Cagney <ac131313@redhat.com>
10222
94bbfd30
AC
10223 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10224 strlen d_name.
10225
7ca9f392
AC
10226 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10227 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10228 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10229 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10230 (define_symbol): Update.
10231 * symfile.c (generic_load): Remove references to nindy.
10232 * symtab.c: Remove references to nindy.
10233
31a85ea2
AC
102342003-02-01 Andrew Cagney <ac131313@redhat.com>
10235
10236 * infcmd.c (print_float_info): Delete code conditional on
10237 FLOAT_INFO.
10238 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10239 * config/m68k/nm-apollo68b.h: Ditto.
10240 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10241 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10242 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10243
f6e85fc8
MK
102442003-02-01 Mark Kettenis <kettenis@gnu.org>
10245
6015b6a0
MK
10246 * config/i386/tm-i386os9k.h: Removed.
10247
f7a30bdf
MK
10248 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10249 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10250 they're identical to i[3456]86-*-sysv* now.
10251 * config/i386/i386v32.mh: Removed.
10252 * config/i386/xm-i386v32.h: Removed.
10253 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10254
28d52111
MK
10255 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10256
4d3f6bce
MK
10257 * config/i386/i386dgux.mh: Removed.
10258 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10259
f6e85fc8
MK
10260 * configure.in: Fix typo.
10261 * configure: Regenerated.
10262
53955967
DC
102632003-01-31 David Carlton <carlton@math.stanford.edu>
10264
10265 * dwarf2read.c (dwarf2_locate_sections): Set
10266 dwarf_ranges_section.
10267
b1364885
AC
102682003-01-31 Andrew Cagney <ac131313@redhat.com>
10269
8dbb1c65
AC
10270 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10271 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10272
8731e58e
AC
10273 * utils.c: Re-indent.
10274
b1364885
AC
10275 * config/djgpp/fnchange.lst: Delete nindy files.
10276 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10277 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10278 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10279 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10280 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10281 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10282 * Makefile.in (init.c): Remove nindy references.
10283 (saber_gdb): Delete rule.
10284 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10285 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10286 and a68v-nat.c.
10287 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10288 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10289 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10290 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10291 nindy-share/stop.h.
10292 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10293 * saber.suppress: Delete file.
10294
086df311
DJ
102952003-01-31 Daniel Jacobowitz <drow@mvista.com>
10296
10297 * dbxread.c (stabs_data): New static variable.
10298 (fill_symbuf): Support an in-memory buffer for stabs data.
10299 (stabs_seek): New function.
10300 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10301 (read_ofile_symtab): Use stabs_seek.
10302 (elfstab_build_psymtabs): Take an asection* instead of
10303 an offset and size. Relocate the stabs data if necessary.
10304 Save the section* for dbx_psymtab_to_symtab.
10305 * dwarf2read.c: Add section variables for each debug section.
10306 (dwarf2_locate_sections): Fill them in.
10307 (dwarf2_read_section): Take an asection* argument.
10308 Relocate the section contents if necessary.
10309 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10310 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10311 it to dwarf2_read_section.
10312 (dwarf2_build_frame_info): Update callers.
10313 * elfread.c (elf_symfile_read): Update call to
10314 elfstab_build_psymtabs.
10315 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10316 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10317 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10318 * symfile.c (symfile_dummy_outputs): New function.
10319 (symfile_relocate_debug_section): New function.
10320 * symfile.h (symfile_relocate_debug_section): Add prototype.
10321
87d1b352
RH
103222003-01-31 Richard Henderson <rth@redhat.com>
10323
10324 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10325 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10326 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10327 * alpha-tdep.c (alpha_register_name): Add "unique".
10328 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10329 (ALPHA_UNIQUE_REGNUM): New.
10330 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10331
c48861fb
AC
103322003-01-31 Andrew Cagney <ac131313@redhat.com>
10333
10334 * README: Remove reference to Ericsson 1800 monitor.
10335 * Makefile.in (remote-es.o): Delete rule.
10336 (ALLDEPFILES): Delete remote-es.c.
10337 * remote-es.c: Delete file.
10338 * config/m68k/es1800.mt: Delete file.
10339 * config/djgpp/fnchange.lst: Update.
10340 * configure.tgt: Delete m68*-ericsson-* target.
10341
d764a824
AF
103422003-01-31 Adam Fedor <fedor@gnu.org>
10343
10344 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10345 Remove duplicate/shadowing variable of same name.
10346
fe36c4f4
JB
103472003-01-30 Jim Blandy <jimb@redhat.com>
10348
10349 * symfile.c (find_separate_debug_file): Assert that the objfile's
10350 directory name we compute ends with a slash, and then assume that
10351 that's so everywhere we use it.
10352
cb741690
DJ
103532003-01-30 Daniel Jacobowitz <drow@mvista.com>
10354
10355 * valops.c (value_assign): Flush frame cache after stores to memory
10356 also.
10357
96ee5227
AC
103582003-01-30 Andrew Cagney <ac131313@redhat.com>
10359
10360 * Makefile.in (mon960-rom.o): Delete rule.
10361 * mon960-rom.c: Delete file.
10362
7f6104a9
AC
103632003-01-30 Andrew Cagney <ac131313@redhat.com>
10364
10365 * d10v-tdep.c: Include "frame-unwind.h".
10366 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10367 list.
10368 (next_addr, uses_frame): Delete.
10369 (struct d10v_unwind_cache): Define.
10370 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10371 Use info instead of next_addr and uses_frame globals.
10372 (d10v_frame_init_saved_regs): Delete function.
10373 (d10v_init_extra_frame_info): Delete function.
10374 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10375 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10376 init_frame_pc or frame_saved_pc.
10377 (d10v_pop_frame): Delete function.
10378 (do_d10v_pop_frame): Delete function.
10379 (d10v_frame_chain): Delete function.
10380 (d10v_frame_chain_valid): Delete function.
10381 (d10v_frame_pc_unwind): New function.
10382 (d10v_frame_id_unwind): New function.
10383 (saved_regs_unwinder): New function.
10384 (d10v_frame_register_unwind): New function.
10385 (d10v_frame_pop): New function.
10386 (d10v_frame_unwind): New variable.
10387 (d10v_frame_p): New function.
10388 (d10v_frame_saved_pc): Delete function.
10389 * Makefile.in (d10v-tdep.o): Update dependencies.
10390
cad2e848
JB
103912003-01-30 J. Brobecker <brobecker@gnat.com>
10392
10393 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10394 causing some regressions due to a change in the default value
10395 for this macro.
10396
af34e669
DJ
103972003-01-29 Richard Henderson <rth@redhat.com>
10398 Elena Zannoni <ezannoni@redhat.com>
10399 Daniel Jacobowitz <drow@mvista.com>
10400
10401 Fix PR gdb/961.
8ffd9b1b 10402 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10403 variables.
10404 (RANGES_SECTION): New.
10405 (dwarf_ranges_buffer): New variable.
10406 (struct comp_unit_head): Add member "die".
10407 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10408 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10409 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10410 (dwarf2_locate_sections): Likewise.
10411 (dwarf2_build_psymtabs): Read .debug_ranges.
10412 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10413 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10414 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10415 Look for DW_AT_ranges and return the bounding box.
10416
baa93fa6
CF
104172003-01-29 Brian Ford <ford@vss.fsi.com>
10418
10419 * win32-nat.c (cygwin_pid): Removed as unused.
10420 (child_attach): Try fall back to Cygwin pid.
10421
c63f977f
JB
104222003-01-29 Jim Blandy <jimb@redhat.com>
10423
10424 * objfiles.h (struct objfile): Doc fix.
10425
d62d1979
AC
104262003-01-29 Andrew Cagney <ac131313@redhat.com>
10427
10428 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10429 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10430 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10431 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10432 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10433 (FRAME_SAVED_PC): Change to a function with predicate.
10434 * gdbarch.h, gdbarch.c: Re-generate.
10435
1ae18a04
AC
104362003-01-28 Andrew Cagney <ac131313@redhat.com>
10437
52287340
AC
10438 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10439
1ae18a04
AC
10440 * complaints.c (complain): Delete function.
10441 * complaints.h (struct deprecated_complaint): Delete definition.
10442 (complain): Delete declaration.
10443
f2c16bd6
KB
104442003-01-28 Kevin Buettner <kevinb@redhat.com>
10445
10446 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10447 dummy frames.
10448
a94dd1fd
AC
104492003-01-27 Andrew Cagney <ac131313@redhat.com>
10450
10451 * sentinel-frame.h, sentinel-frame.c: New files.
10452 * Makefile.in (frame.o): Update dependencies.
10453 (SFILES): Add sentinel-frame.c.
10454 (sentinel_frame_h): Define.
10455 (COMMON_OBS): Add sentinel-frame.o.
10456 (sentinel-frame.o): Specify dependencies.
10457 * frame.c: Include "sentinel-frame.h".
10458 (frame_register_unwind): Rewrite assuming that there is always a a
10459 ->next frame.
10460 (frame_register, generic_unwind_get_saved_register): Ditto.
10461 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10462 (create_sentinel_frame, unwind_to_current_frame): New functions.
10463 (get_current_frame): Rewrite using create_sentinel_frame and
10464 unwind_to_current_frame. When possible, always create a frame.
10465 (create_new_frame): Set next to the sentinel frame.
10466 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10467 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10468 ID cache when necessary.
10469 (frame_saved_regs_id_unwind): Use frame_relative_level.
10470 (deprecated_generic_get_saved_register): Use frame_relative_level,
10471 get_frame_saved_regs, get_frame_pc, get_frame_base and
10472 get_next_frame.
10473 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10474 frame_register.
10475
5378adc4
DJ
104762003-01-27 Daniel Jacobowitz <drow@mvista.com>
10477
10478 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10479
51ee2ddc
DJ
104802003-01-27 Daniel Jacobowitz <drow@mvista.com>
10481
10482 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10483 (maintenance_set_profile_cmd): Use error () instead of warning ().
10484
d9feb4e7
DJ
104852003-01-27 Daniel Jacobowitz <drow@mvista.com>
10486
10487 * configure.in: Check that -pg works if using --enable-profiling.
10488 Check for monstartup and _mcleanup regardless of --enable-profiling.
10489 * maint.c: Check for monstartup and _mcleanup before using them.
10490 * config.in: Regenerated.
10491 * configure: Regenerated.
10492
2d188dd3
NC
104932003-01-24 Nick Clifton <nickc@redhat.com>
10494
10495 * Add sh2e support:
10496
10497 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10498
10499 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10500 (sh2e_show_regs): New.
10501 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10502 * config/sh/tm-sh.h: Added sh2e to comments.
10503
cb3c37b2
JB
105042003-01-23 Jim Blandy <jimb@redhat.com>
10505
10506 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10507 symbols found)" message here; we haven't checked for a separate
10508 debug info file yet, so we don't know yet.
10509 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10510 we've looked everywhere. Also, there's no need to print a special
10511 message when we're loading the separate debug info file: the one
10512 symbol_file_add prints is fine.
10513
5b5d99cf
JB
105142003-01-23 Alexander Larsson <alexl@redhat.com>
10515 Jim Blandy <jimb@redhat.com>
10516
10517 Add support for executables whose debug info has been separated
10518 out into a separate file, leaving only a link behind.
10519 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10520 and separate_debug_objfile_backlink.
10521 (put_objfile_before): New declaration.
10522 * symfile.c: #include "filenames.h".
10523 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10524 debug info in a separate file, read that, too. Save the addrs
10525 argument, so we can use it again to read the separated debug info;
10526 syms_from_objfile modifies the table we pass it.
10527 (reread_symbols): After re-reading an objfile, call
10528 reread_separate_symbols to refresh its separate debug info
10529 objfile, if it has one.
10530 (reread_separate_symbols, find_separate_debug_file,
10531 get_debug_link_info, separate_debug_file_exists): New functions.
10532 (debug_file_directory): New global var.
10533 (_initialize_symfile): Initialize debug_file_directory, and
10534 provide the new `set debug-file-directory' command to let the user
10535 change it.
10536 * objfiles.c (free_objfile): If this objfile has its debug info in
10537 a separate objfile, free that one too. If this is itself a
10538 separate debug info objfile, clear our parent's backlink.
10539 (put_objfile_before): New function.
10540 * utils.c (gnu_debuglink_crc32): New function.
10541 * defs.h (gnu_debuglink_crc32): New declaration.
10542 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10543 * configure.in: Handle --with-separate-debug-dir config option.
10544 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10545 * acconfig.h (DEBUGDIR): New macro.
10546 * configure, aclocal.m4, config.in: Regenerated.
10547
7e8580c1
JB
105482003-01-22 Jim Blandy <jimb@redhat.com>
10549
7904e09f
JB
10550 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10551 like the old symbol_file_add, but taking new arguments: you can
10552 now pass in either a `struct section_addr_info' list to say where
10553 each section is loaded, or a `struct section_offsets' table. Pass
10554 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10555 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10556 with the appropriate quiescent values for the new arguments.
10557
7e8580c1
JB
10558 * symfile.c: #include "gdb_assert.h".
10559 (syms_from_objfile): Add the ability to pass in a section offset
10560 table directly, as an alternative to the section_addr_info table.
10561 Document arguments better.
10562 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10563 * symfile.h (syms_from_objfile): Update declaration.
10564 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10565 syms_from_objfile.
10566 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10567
d28f9cdf
DJ
105682003-01-22 Daniel Jacobowitz <drow@mvista.com>
10569
10570 Original patch by Tom Tromey <tromey@cygnus.com> and
10571 Jason Molenda <jmolenda@apple.com>.
10572 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10573 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10574 * NEWS: Mention profiling.
10575 * configure.in (--enable-gdbtk): Fix typo.
10576 (--enable-profiling): New. Set PROFILE_CFLAGS.
10577 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10578 Fill in function.
10579 (profiling_state): New variable.
10580 (mcleanup_wrapper): New function.
10581 (_initialize_maint): Remove NOTYET, fix call to
10582 add_setshow_boolean_cmd for "maint set profile".
10583 * configure: Regenerated.
10584
df21e465
MH
105852003-01-21 Martin M. Hunt <hunt@redhat.com>
10586
10587 * Makefile.in (install-gdbtk): Install PNG images too.
10588
73c1f219
AC
105892003-01-21 Andrew Cagney <ac131313@redhat.com>
10590
10591 * exec.c (text_start): Delete global variable.
10592 (exec_file_attach): Make text_start local to the function.
10593 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10594 * valops.c (hand_function_call): Delete code that handles
10595 BEFORE_TEXT_END and AFTER_TEXT_END.
10596 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10597 of CALL_DUMMY_LOCATION.
10598 * gdbarch.c: Regenerate.
10599 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10600 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10601 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10602 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10603 (text_end): Delete extern declaration.
10604
eb4f72c5
AC
106052003-01-21 Andrew Cagney <ac131313@redhat.com>
10606
10607 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10608 * blockframe.c (backtrace_below_main): Move to "frame.c".
10609 (frame_chain_valid): Delete check for backtrace_below_main.
10610 (_initialize_blockframe): Delete initialization, move ``set
10611 backtrace-below-main'' command to "frame.c".
10612 (do_flush_frames_sfunc): Delete function.
10613 * frame.c: Include "command.h" and "gdbcmd.h".
10614 (frame_type_from_pc): New function.
10615 (create_new_frame): Use frame_type_from_pc.
10616 (legacy_get_prev_frame): New function.
10617 (get_prev_frame): Rewrite. When an old style frame, call
10618 legacy_get_prev_frame. Otherwize, unwind the PC first.
10619 (_initialize_frame): Add ``set backtrace-below-main'' command.
10620 * Makefile.in (frame.o): Update dependencies.
10621
778ce8cc
AC
106222003-01-19 Andrew Cagney <ac131313@redhat.com>
10623
10624 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10625 DEPRECATED_REGISTERS_INFO.
10626
01c193c8
AC
106272003-01-19 Andrew Cagney <ac131313@redhat.com>
10628
10629 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10630 Maintainers'. Update `Various Maintainers'.
10631
dedc2a2b
AC
106322003-01-19 Andrew Cagney <ac131313@redhat.com>
10633
10634 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10635 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10636 Suppress actual parameters when `-'.
10637 * gdbarch.h, gdbarch.c: Regenerate.
10638
b7261c70
AC
106392003-01-19 Andrew Cagney <ac131313@redhat.com>
10640
10641 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10642 code handling dummy frames.
10643
dbe9fe58
AC
106442003-01-19 Andrew Cagney <ac131313@redhat.com>
10645
10646 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10647 (struct frame_unwind): Add field pop.
10648 * frame.h (frame_pop): Declare.
10649 * frame.c (frame_saved_regs_pop): New function.
10650 (trad_frame_unwinder): Add frame_saved_regs_pop.
10651 (frame_pop): New function.
10652 * dummy-frame.c (dummy_frame_pop): New function.
10653 (discard_innermost_dummy): New function.
10654 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10655 (dummy_frame_unwind): Add dummy_frame_pop.
10656 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10657 * valops.c (hand_function_call): Ditto.
10658 * stack.c (return_command): Ditto.
10659
570b8f7c
AC
106602003-01-18 Andrew Cagney <ac131313@redhat.com>
10661
10662 * cris-tdep.c: Fix function declaration indentation.
10663 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10664 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10665 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10666 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10667 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10668 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10669
106702003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10671
10672 * README (Unpacking and Installation -- quick overview):
10673 Warn against ".../gdb-5.3/gdb/configure".
10674
494cca16
AC
106752003-01-18 Andrew Cagney <ac131313@redhat.com>
10676
10677 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10678 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10679 (struct frame_unwind): Declare opaque.
10680 (dummy_frame_p): Declare function.
10681 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10682 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10683 * dummy-frame.c: Include "frame-unwind.h".
10684 (dummy_frame_p): New function.
10685 (dummy_frame_unwind): New variable.
10686 * frame.c: Include "frame-unwind.h".
10687 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10688 to use the new unwind field.
10689 (set_unwind_by_pc): Delete function.
10690 (create_new_frame, get_prev_frame): Set unwind field using
10691 frame_unwind_find_by_pc.
10692 (trad_frame_unwind, trad_frame_unwinder): New variables.
10693 * frame.h (trad_frame_unwind): Declare variable.
10694 (frame_id_unwind_ftype): Delete declaration.
10695 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10696 (struct frame_unwind): Declare opaque.
10697 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10698 register_unwind with a single unwind pointer.
10699 * frame-unwind.h, frame-unwind.c: New files.
10700 * Makefile.in (SFILES): Add frame-unwind.c.
10701 (frame_unwind_h): Define.
10702 (COMMON_OBS): Add frame-unwind.o.
10703 (frame-unwind.o): Specify dependencies.
10704 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10705
4efb68b1
AC
107062003-01-18 Andrew Cagney <ac131313@redhat.com>
10707
10708 * ada-valprint.c: Eliminate PTR.
10709 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10710 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10711 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10712 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10713 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10714 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10715 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10716
a84d24ee
AC
107172003-01-17 Andrew Cagney <ac131313@redhat.com>
10718
762f08a3
AC
10719 * main.c (captured_main): Don't use PTR.
10720 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10721 * gdbtypes.c (lookup_primitive_typename): Ditto.
10722 (lookup_struct_elt_type): Ditto.
10723 * f-valprint.c (info_common_command): Ditto.
10724 (list_all_visible_commons): Ditto.
10725 * jv-typeprint.c (java_type_print_base): Ditto.
10726
a84d24ee
AC
10727 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10728 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10729 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10730 i386-interix-nat.c and i386-interix-tdep.c. Rename
10731 m68klinux-nat.c and m68klinux-tdep.c. Rename
10732 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10733 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10734 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10735 * main.c (captured_main): Use xfree, not free.
10736
c170fb60
AC
107372003-01-16 Andrew Cagney <ac131313@redhat.com>
10738
10739 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10740 ID back using a parameter.
10741 * frame.c (frame_id_unwind): Update call.
10742 (frame_saved_regs_id_unwind): Update.
10743 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10744 * dummy-frame.h (struct frame_id): Add opaque declaration.
10745 (dummy_frame_id_unwind): Update declaration.
10746
867f3898
AC
107472003-01-15 Andrew Cagney <ac131313@redhat.com>
10748
10749 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10750
40622be8 107512003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10752
40622be8 10753 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10754
ae66c1fc
EZ
107552003-01-14 Elena Zannoni <ezannoni@redhat.com>
10756
997b089a 10757 Fix PR gdb/898
ae66c1fc
EZ
10758 * breakpoint.c (until_break_command): Add new argument. Use it to
10759 decide whether to stop only at the current frame or not.
10760 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10761 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10762 call.
10763 (advance_command): New function.
10764 (_initialize_infcmd): Update help string for 'until' command.
10765 Add new 'advance' command.
10766
a04257e6
DC
107672003-01-14 David Carlton <carlton@math.stanford.edu>
10768
10769 * linespec.c (decode_line_1): Normalize comments.
10770 (set_flags): Ditto.
10771 (locate_first_half): Ditto.
10772 (decode_compound): Ditto.
10773 (symtab_from_filename): Ditto.
10774 (decode_all_digits): Ditto.
10775 (decode_dollar): Ditto.
10776 (find_methods): Ditto.
10777 (find_toplevel_char): Ditto.
10778
1bac305b
AC
107792003-01-13 Andrew Cagney <ac131313@redhat.com>
10780
10781 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10782 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10783 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10784 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10785 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10786 * language.c, language.h, m32r-tdep.c: Update copyright.
10787 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10788 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10789 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10790 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10791 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10792 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10793
25caa7a8
EZ
107942003-01-13 Elena Zannoni <ezannoni@redhat.com>
10795
10796 * stabsread.h (process_later, resolve_cfront_continuation):
10797 Obsolete.
10798 Update copyright years.
10799 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10800 Update copyright year.
10801 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10802 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10803 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10804 Update copyright year.
10805 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10806 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10807 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10808 (parse_partial_symbols): Obsolete cfront support.
10809 * stabsread.c
10810 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10811 macros.
10812 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10813 read_cfront_baseclasses, read_cfront_member_functions,
10814 resolve_cfront_continuation,read_cfront_static_fields,
10815 copy_cfront_struct_fields): Obsolete functions.
10816 (define_symbol, read_one_struct_field): Obsolete cfront support.
10817 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10818 Update Copyright year.
10819
7789c6f5
EZ
108202003-01-13 Elena Zannoni <ezannoni@redhat.com>
10821
10822 * stack.c (print_frame_info, print_stack_frame_base_stub,
10823 print_stack_frame_base, show_and_print_stack_frame_stub,
10824 show_and_print_stack_frame, print_only_stack_frame_stub,
10825 print_only_stack_frame): Delete functions.
10826 (print_stack_frame_stub): Call print_frame_info instead of
10827 print_frame_info_base.
10828 (print_frame_info_base): Rename to print_frame_info.
10829 (backtrace_command_1): Call print_frame_info, instead of
10830 print_frame_info_base.
10831 (current_frame_command): Call print_stack_frame, instead of
10832 print_only_stack_frame.
10833 (frame_command): Call print_stack_frame, instead of
10834 show_and_print_stack_frame.
10835 (up_command): Ditto.
10836 (down_command): Ditto.
10837 * frame.h (print_only_stack_frame): Delete prototype.
10838 * infrun.c (normal_stop): Call print_stack_frame, instead of
10839 show_and_print_stack_frame.
10840 * thread.c (info_threads_command): Call print_stack_frame, instead
10841 of print_only_stack_frame.
10842
3f5a3016
AC
108432003-01-13 Andrew Cagney <ac131313@redhat.com>
10844
d99ba314
AC
10845 * README (Graphical interface to GDB): Update URL. Point at
10846 gdb/links/.
10847
3f5a3016
AC
10848 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10849 version match.
10850
083ae935
DJ
108512003-01-13 Daniel Jacobowitz <drow@mvista.com>
10852
10853 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10854 lines.
10855
5365276c
DJ
108562003-01-13 Daniel Jacobowitz <drow@mvista.com>
10857
10858 * thread-db.c (attach_thread): Prototype.
10859 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10860 thread information (ti), and valid flags (th_valid, ti_valid).
10861 (attach_thread): Move target_pid_to_str call to after the thread
10862 is added to GDB's list. Initialize the cache.
10863 (thread_get_info_callback, thread_db_map_id2thr)
10864 (thread_db_get_info): New functions.
10865 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10866 (thread_db_store_registers, thread_db_thread_alive)
10867 (thread_db_get_thread_local_address): Use them.
10868 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10869 of calling error() for threads in unknown state.
10870
10871 (clear_lwpid_callback): New function.
10872 (thread_db_resume): Use it to clear the cache.
10873
9fc30b6b
DJ
108742003-01-13 Daniel Jacobowitz <drow@mvista.com>
10875
10876 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10877 (resume_callback): Remove dead code.
10878
8f871025
AC
108792003-01-13 Andrew Cagney <ac131313@redhat.com>
10880
10881 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10882 predicate.
10883 * gdbarch.h, gdbarch.c: Regenerate.
10884 * stack.c (frame_info): Only initialize the saved registers when
10885 FRAME_INIT_SAVED_REGS_P.
10886 * frame.c (frame_saved_regs_register_unwind): Assert
10887 FRAME_INIT_SAVED_REGS_P.
10888 (deprecated_generic_get_saved_register): Ditto.
10889
3f565f1e
DJ
108902003-01-13 Daniel Jacobowitz <drow@mvista.com>
10891
10892 * source.c (openp): Squelch warning about "filename".
10893
072b1022
DJ
108942003-01-13 Daniel Jacobowitz <drow@mvista.com>
10895
10896 * source.c (openp): If the file does not exist don't necessarily
10897 search the path.
10898
973ccf8b
DJ
108992003-01-13 Daniel Jacobowitz <drow@mvista.com>
10900
10901 Fix PR gdb/872.
10902 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10903 (integer_types_same_name_p): New function.
10904 (rank_one_type): Use it.
10905 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10906
030292b7
DJ
109072003-01-13 Daniel Jacobowitz <drow@mvista.com>
10908
10909 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10910 variables.
10911 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10912 * configure.in: Add --with-sysroot.
10913 * configure: Regenerated.
10914 * main.c (gdb_sysroot): New variable.
10915 (captured_main): Initialize gdb_sysroot.
10916 * defs.h (gdb_sysroot): New extern declaration.
10917 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10918
afb5d334
MC
109192003-01-12 Michael Chastain <mec@shout.net>
10920
10921 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10922
751ceeb4
MC
109232003-01-12 Michael Chastain <mec@shout.net>
10924
10925 * top.c (print_gdb_version): Bump copyright year to 2003.
10926
94cd26f8
DC
109272003-01-12 David Carlton <carlton@bactrian.org>
10928
10929 * linespec.c (symtab_from_filename): Rename variable 's' to
10930 'file_symtab'.
10931
1ce79225
AC
109322003-01-12 Andrew Cagney <ac131313@redhat.com>
10933
10934 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10935 dummy frame.
10936 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10937
fa1fd571
AC
109382003-01-12 Andrew Cagney <ac131313@redhat.com>
10939
10940 * d10v-tdep.c: Include "gdb_assert.h".
10941 (d10v_store_return_value): Rewrite to match current interface.
10942 (d10v_extract_struct_value_address): Ditto.
10943 (d10v_extract_return_value): Ditto.
10944 (d10v_gdbarch_init): Set store_restore_value,
10945 extract_struct_value_address and extract_return_value.
10946
68b8d23e
JB
109472003-01-12 J. Brobecker <brobecker@gnat.com>
10948
10949 * hpread.c (set_namestring): New procedure replacing the
10950 SET_NAMESTRING macro.
10951 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10952 by calls to set_namestring.
10953
109542003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10955
10956 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10957 a compilation warning.
10958 (hpread_process_one_debug_symbol): Likewise.
10959
88d262ca
DC
109602003-01-10 David Carlton <carlton@math.stanford.edu>
10961
10962 * linespec.c (decode_line_1): Rename variable 's' to
10963 'file_symtab'.
10964 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10965 (decode_dollar): Ditto.
10966 (decode_variable): Ditto.
10967 (symbol_found): Ditto.
10968
86669319
MC
109692003-01-09 Michael Chastain <mec@shout.net>
10970
10971 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10972
616a9dc4
CV
109732003-01-07 Corinna Vinschen <vinschen@redhat.com>
10974
10975 * win32-nat.c (set_process_privilege): New function.
10976 (child_attach): Call set_process_privilege() to enable the
10977 SE_DEBUG_NAME user privilege if available in process token.
10978
3269bcfa
JB
109792003-01-10 J. Brobecker <brobecker@gnat.com>
10980
10981 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10982 compilation error in the previous revision.
10983
2b0ee454
DC
109842003-01-09 David Carlton <carlton@math.stanford.edu>
10985
10986 * linespec.c: Update copyright.
10987
b3ba1b44
DJ
109882003-01-09 Daniel Jacobowitz <drow@mvista.com>
10989
10990 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
10991 than inferior_ptid.
10992 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
10993
4ef3f3be
AC
109942003-01-09 Andrew Cagney <ac131313@redhat.com>
10995
479ab5a0
AC
10996 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
10997 Update comments.
10998 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
10999 (frame_saved_regs_zalloc): Update.
11000 (frame_saved_regs_register_unwind): Update.
11001 (create_new_frame): Update.
11002 (get_prev_frame): Update.
11003 (frame_extra_info_zalloc): Update.
11004 (deprecated_get_frame_saved_regs): Update.
11005 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11006 * cris-tdep.c: Update comment.
11007
bde58177
AC
11008 * somsolib.h: Fix function indentation.
11009 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11010 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11011 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11012 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11013 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11014
4ef3f3be
AC
11015 * infrun.c (follow_fork): Use ISO C definition.
11016 * expprint.c (print_subexp): Use xfree instead of free.
11017 * charset.c: Include "gdb_string.h" instead of <string.h>.
11018 (register_iconv_charsets): Use ISO C definition.
11019 (host_charset, target_charset): Ditto.
11020 * Makefile.in (charset.o): Update dependencies.
11021 (mi-cmd-env.o): Update dependencies.
11022
1c615f7a
AC
110232003-01-08 Andrew Cagney <cagney@redhat.com>
11024
11025 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11026 get_frame_base.
11027
c9a1dc08
AC
110282003-01-08 Andrew Cagney <ac131313@redhat.com>
11029
11030 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11031 build directories. Save edited gdb output in Mbuild.log. If a
11032 build fails, remove any final GDB executable.
11033
dbad9d94
AC
110342003-01-08 Andrew Cagney <ac131313@redhat.com>
11035
11036 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11037 replacing hex constants with function names and stripping leading
11038 file name directory prefixes.
11039
8d357cca
AC
110402003-01-08 Andrew Cagney <cagney@redhat.com>
11041
11042 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11043 get_frame_base.
11044
bca02a8a
DC
110452003-01-08 David Carlton <carlton@math.stanford.edu>
11046
11047 * linespec.c (decode_line_1): Move code into decode_variable.
11048 (decode_variable): New function.
11049
7f8ab3a0
AC
110502003-01-08 Andrew Cagney <ac131313@redhat.com>
11051
11052 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11053
7b5849cc
AC
110542003-01-08 Andrew Cagney <cagney@redhat.com>
11055
11056 * cris-tdep.c (cris_frame_init_saved_regs): Use
11057 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11058 saved_regs buffer.
11059 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11060 (sh64_nofp_frame_init_saved_regs): Ditto.
11061 (sh_fp_frame_init_saved_regs): Ditto.
11062 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11063 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11064 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11065 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11066
72a5efb3
DJ
110672003-01-08 Daniel Jacobowitz <drow@mvista.com>
11068
11069 * minsyms.c (lookup_minimal_symbol): Update comment.
11070 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11071 (lookup_minimal_symbol_solib_trampoline): Likewise.
11072
11c02a10
AC
110732003-01-08 Andrew Cagney <cagney@redhat.com>
11074
aab3ea25
AC
11075 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11076 frame_relative_level.
11077
da50a4b7
AC
11078 * alpha-tdep.c: Use get_frame_extra_info.
11079 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11080 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11081 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11082 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11083
11c02a10
AC
11084 * alpha-tdep.c: Use get_next_frame.
11085 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11086 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11087 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11088 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11089 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11090 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11091 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11092
1e2330ba
AC
110932003-01-07 Andrew Cagney <cagney@redhat.com>
11094
11095 * alpha-tdep.c: Use get_frame_base.
11096 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11097 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11098 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11099 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11100 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11101 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11102 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11103 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11104
2d75187b
AC
111052003-01-07 Andrew Cagney <cagney@redhat.com>
11106
11107 * frame.c (deprecated_get_frame_context): New function.
11108 (deprecated_set_frame_context): New function.
11109 * frame.h (deprecated_get_frame_context): Declare.
11110 (deprecated_set_frame_context): Declare.
11111 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11112 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11113
483d36b2
AC
111142003-01-07 Andrew Cagney <cagney@redhat.com>
11115
11116 * frame.c (deprecated_set_frame_next_hack): New function.
11117 (deprecated_set_frame_prev_hack): New function.
11118 * frame.h (deprecated_set_frame_next_hack): Declare.
11119 (deprecated_set_frame_prev_hack): Declare.
11120 * mcore-tdep.c (analyze_dummy_frame): Use
11121 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11122 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11123
14e91ac5
DC
111242003-01-07 David Carlton <carlton@math.stanford.edu>
11125
11126 * linespec.c (decode_line_1): Move code into decode_dollar.
11127 (decode_dollar): New function.
11128
b0c6b05c
AC
111292003-01-07 Andrew Cagney <cagney@redhat.com>
11130
11131 * arm-tdep.c (arm_init_extra_frame_info): Use
11132 deprecated_update_frame_base_hack.
11133 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11134 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11135 (fix_frame_pointer): Ditto.
11136 (mn10300_analyze_prologue): Ditto.
11137
a00a19e9
AC
111382003-01-07 Andrew Cagney <cagney@redhat.com>
11139
11140 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11141 extra_info using frame_extra_info_zalloc.
11142 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11143 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11144 (sh64_init_extra_frame_info): Ditto.
11145 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11146 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11147 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11148 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11149 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11150 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11151 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11152 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11153 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11154 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11155 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11156 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11157
11158 * mn10300-tdep.c (analyze_dummy_frame): Use
11159 deprecated_set_frame_extra_info_hack.
11160 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11161
1fb4c65b
JB
111622003-01-07 J. Brobecker <brobecker@gnat.com>
11163
11164 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11165 class is not scText. These do not define "real" procedures.
11166 (parse_partial_symbols): Likewise.
11167
9fe7d6bf
MS
111682003-01-06 Michael Snyder <msnyder@redhat.com>
11169
11170 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11171
f6c609c4
AC
111722003-01-06 Andrew Cagney <ac131313@redhat.com>
11173
11174 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11175 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11176 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11177 deprecated_frame_xmalloc_with_cleanup.
11178 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11179 deprecated_frame_xmalloc.
11180 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11181 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11182
d995ff4b
AC
111832003-01-06 Andrew Cagney <cagney@redhat.com>
11184
84dc46cb
AC
11185 * x86-64-linux-tdep.c: Include "osabi.h".
11186 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11187
d995ff4b
AC
11188 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11189
66140c26
AC
111902003-01-06 Andrew Cagney <cagney@redhat.com>
11191
11192 * MAINTAINERS (Target Instruction Set Architectures): Update
11193 arm-elf. Can be built with -Werror, has been multiarched.
11194
11195 * value.h (unpack_long): Make buffer parameter constant.
11196 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11197 * scm-lang.h (scm_parse): Ditto.
11198 * defs.h (extract_typed_address, extract_address): Ditto.
11199 (extract_long_unsigned_integer): Ditto.
11200 * inferior.h (unsigned_pointer_to_address): Ditto.
11201 (signed_pointer_to_address): Ditto.
11202 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11203 * gdbarch.h, gdbarch.c: Regenerate.
11204 * findvar.c (extract_long_unsigned_integer): Update.
11205 (extract_address): Update.
11206 (extract_typed_address): Update.
11207 (unsigned_pointer_to_address): Update.
11208 * values.c (unpack_long): Update.
11209 (unpack_double): Update.
11210 (unpack_pointer): Update.
11211 (unpack_field_as_long): Update.
11212 * d10v-tdep.c (d10v_pointer_to_address): Update.
11213 * avr-tdep.c (avr_pointer_to_address): Update.
11214 * scm-lang.c (scm_unpack): Update.
11215 * findvar.c (signed_pointer_to_address): Update.
11216
b089b3da
ML
112172003-01-06 Michal Ludvig <mludvig@suse.cz>
11218
8ffd9b1b 11219 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11220 since it is in i386-tdep.c.
11221
aff87235
JB
112222003-01-06 J. Brobecker <brobecker@gnat.com>
11223
11224 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11225 failure introduced in the previous change.
11226
34f5e845
MC
112272003-01-05 Michael Chastain <mec@shout.net>
11228
11229 * README: Remove references to deleted remote-*.c files:
11230 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11231 remote-nrom.c, remote-os9k.c, remote-udi.c.
11232
28bcfd30
MK
112332003-01-05 Mark Kettenis <kettenis@gnu.org>
11234
11235 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11236 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11237 i386_get_longjmp_target.
11238
15a5b3ee
AC
112392003-01-05 Andrew Cagney <ac131313@redhat.com>
11240
11241 * arm-tdep.c (prologue_cache): Change to a pointer.
11242 (_initialize_arm_tdep): Allocate prologue_cache.
11243 (check_prologue_cache): Update.
11244 (save_prologue_cache): Update.
11245 (arm_gdbarch_init): Update.
11246
c263362b
DJ
112472003-01-04 Daniel Jacobowitz <drow@mvista.com>
11248
11249 * stabsread.c (update_method_name_from_physname): Call complaint()
11250 instead of error.
11251
51603483
DJ
112522003-01-04 Daniel Jacobowitz <drow@mvista.com>
11253
11254 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11255 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11256 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11257
11258 * blockframe.c: Include "gdbcmd.h" and "command.h".
11259 (backtrace_below_main): New variable.
11260 (file_frame_chain_valid, func_frame_chain_valid)
11261 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11262 (generic_func_frame_chain_valid): Remove functions.
11263 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11264 (_initialize_blockframe): New function.
11265 * Makefile.in (blockframe.o): Update dependencies.
11266 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11267 comment. Call frame_chain_valid ().
11268 * frame.h: Remove old prototypes. Add prototype for
11269 frame_chain_valid and update comments to match.
11270 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11271 Remove old comment.
11272 * gdbarch.h: Regenerated.
11273 * gdbarch.c: Regenerated.
11274
11275 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11276 set_gdbarch_frame_chain_valid.
11277 * avr-tdep.c (avr_gdbarch_init): Likewise.
11278 * cris-tdep.c (cris_gdbarch_init): Likewise.
11279 * frv-tdep.c (frv_gdbarch_init): Likewise.
11280 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11281 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11282 (i386_nw_init_abi): Likewise.
11283 (i386_gdbarch_init): Likewise.
11284 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11285 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11286 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11287 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11288 * mips-tdep.c (mips_gdbarch_init): Likewise.
11289 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11290 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11291 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11292 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11293 * s390-tdep.c (s390_gdbarch_init): Likewise.
11294 * sh-tdep.c (sh_gdbarch_init): Likewise.
11295 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11296 * v850-tdep.c (v850_gdbarch_init): Likewise.
11297 * vax-tdep.c (vax_gdbarch_init): Likewise.
11298 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11299
11300 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11301 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11302 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11303 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11304 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11305 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11306 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11307 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11308
b00a8037
DJ
113092002-01-04 Daniel Jacobowitz <drow@mvista.com>
11310
11311 * Makefile.in (acconfig_h): Remove incorrect macro.
11312 (config_h): Define.
11313 (osabi.o): Update dependencies.
11314 * configure.tgt: Set gdb_osabi based on target triplet.
11315 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11316 * configure: Regenerated.
11317 * config.in: Regenerated.
11318 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11319 (GDB_OSABI_DEFAULT): Define if not already defined.
11320 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11321 (set_osabi_string): New variables.
11322 (gdbarch_register_osabi): Add new OS ABI to
11323 gdb_osabi_available_names.
11324 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11325 (set_osabi, show_osabi): New functions.
11326 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11327
4be87837
DJ
113282003-01-04 Daniel Jacobowitz <drow@mvista.com>
11329
11330 * arch-utils.c (gdbarch_info_init): Set osabi to
11331 GDB_OSABI_UNINITIALIZED.
11332 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11333 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11334 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11335 * gdbarch.c: Regenerated.
11336 * gdbarch.h: Regenerated.
11337 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11338 there's no BFD.
11339 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11340 * osabi.h (enum gdb_osabi): Move to defs.h.
11341 (gdbarch_init_osabi): Update prototype.
11342 * defs.h (enum gdb_osabi): Moved here.
11343 * Makefile.in: Update dependencies.
11344
11345 * alpha-tdep.h: Don't include "osabi.h".
11346 (struct gdbarch_tdep): Remove osabi member.
11347 * alpha-tdep.c: Include "osabi.h".
11348 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11349 iterate over arches. Update call to gdbarch_init_osabi.
11350 (alpha_dump_tdep): Don't dump osabi.
11351 * alpha-linux-tdep.c: Include "osabi.h".
11352 * alpha-osf1-tdep.c: Include "osabi.h".
11353 * alphafbsd-tdep.c: Include "osabi.h".
11354 * alphanbsd-tdep.c: Include "osabi.h".
11355
11356 * arm-tdep.h: Don't include "osabi.h".
11357 (struct gdbarch_tdep): Remove osabi member.
11358 * arm-tdep.c: Include "osabi.h".
11359 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11360 iterate over arches. Update call to gdbarch_init_osabi.
11361 (arm_dump_tdep): Don't dump osabi.
11362 * arm-linux-tdep.c: Include "osabi.h".
11363 * armnbsd-tdep.c: Include "osabi.h".
11364
11365 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11366 Update call to gdbarch_init_osabi.
11367
11368 * i386-tdep.h: Don't include "osabi.h".
11369 (struct gdbarch_tdep): Remove osabi member.
11370 * i386-tdep.c: Include "osabi.h".
11371 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11372 iterate over arches. Update call to gdbarch_init_osabi.
11373 (i386_dump_tdep): Don't dump osabi.
11374 * i386-linux-tdep.c: Include "osabi.h".
11375 * i386-sol2-tdep.c: Include "osabi.h".
11376 * i386bsd-tdep.c: Include "osabi.h".
11377 * i386gnu-tdep.c: Include "osabi.h".
11378 * i386ly-tdep.c: Include "osabi.h".
11379 * i386nbsd-tdep.c: Include "osabi.h".
11380 * i386obsd-tdep.c: Include "osabi.h".
11381
11382 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11383 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11384 check osabi when iterating over arches. Update call to
11385 gdbarch_init_osabi.
11386 (mips_dump_tdep): Don't dump osabi.
11387
11388 * ns32k-tdep.h: Don't include "osabi.h".
11389 (struct gdbarch_tdep): Remove.
11390 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11391 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11392 allocate tdep. Update call to gdbarch_init_osabi.
11393 (ns32k_dump_tdep): Remove.
11394 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11395 * ns32knbsd-tdep.c: Include "osabi.h".
11396
11397 * ppc-tdep.h: Don't include "osabi.h".
11398 (struct gdbarch_tdep): Remove osabi member.
11399 * rs6000-tdep.c: Include "osabi.h".
11400 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11401 osabi when iterating over arches. Update call to
11402 gdbarch_init_osabi.
11403 (rs6000_dump_tdep): Don't dump osabi.
11404 * ppc-linux-tdep.c: Include "osabi.h".
11405 * ppcnbsd-tdep.c: Include "osabi.h".
11406
11407 * sh-tdep.h: Don't include "osabi.h".
11408 (struct gdbarch_tdep): Remove osabi member.
11409 * sh-tdep.c: Include "osabi.h".
11410 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11411 iterate over arches. Update call to gdbarch_init_osabi.
11412 (sh_dump_tdep): Don't dump osabi.
11413 * shnbsd-tdep.c: Include "osabi.h".
11414
11415 * sparc-tdep.c: Include "osabi.h".
11416 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11417 iterate over arches. Update call to gdbarch_init_osabi.
11418 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11419 tdep structure.
11420
11421 * vax-tdep.h: Don't include "osabi.h".
11422 (struct gdbarch_tdep): Remove.
11423 * vax-tdep.c: Include "osabi.h".
11424 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11425 iterate over arches. Don't allocate tdep. Update call
11426 to gdbarch_init_osabi.
11427 (vax_dump_tdep): Remove.
11428 (_initialize_vax_tdep): Update call to gdbarch_register.
11429
a881cf8e
DJ
114302003-01-04 Daniel Jacobowitz <drow@mvista.com>
11431
11432 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11433 entirely.
11434 (breakpoint_re_set_one): Don't fetch the value for a disabled
11435 watchpoint.
11436
1e698235
DJ
114372003-01-04 Daniel Jacobowitz <drow@mvista.com>
11438
11439 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11440 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11441 (COERCE_FLOAT_TO_DOUBLE): Remove.
11442 * gdbarch.c: Regenerate.
11443 * gdbarch.h: Regenerate.
11444 * Makefile.in: Remove value_h from gdbarch_h.
11445 * valops.c (coerce_float_to_double): New variable.
11446 (default_coerce_float_to_double): Remove.
11447 (standard_coerce_float_to_double): Remove.
11448 (value_arg_coerce): Use coerce_float_to_double.
11449 (_initialize_valops): Add "set coerce-float-to-double".
11450 * value.h (default_coerce_float_to_double): Remove prototype.
11451 (standard_coerce_float_to_double): Remove prototype.
11452
11453 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11454 prototyped.
11455 * mdebugread.c (parse_symbol): Likewise.
11456 * stabsread.c (define_symbol): Mark all functions as prototyped.
11457
11458 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11459 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11460 set_gdbarch_coerce_float_to_double.
11461 * arm-tdep.c (arm_gdbarch_init): Likewise.
11462 * frv-tdep.c (frv_gdbarch_init): Likewise.
11463 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11464 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11465 * mips-tdep.c (mips_gdbarch_init): Likewise.
11466 (mips_coerce_float_to_double): Remove.
11467 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11468 (rs6000_coerce_float_to_double): Remove.
11469 * s390-tdep.c (s390_gdbarch_init): Likewise.
11470 * sh-tdep.c (sh_gdbarch_init): Likewise.
11471 (sh_coerce_float_to_double): Remove.
11472 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11473 (sparc_coerce_float_to_double): Remove.
11474 * v850-tdep.c (v850_gdbarch_init): Likewise.
11475 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11476 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11477 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11478 (hppa_coerce_float_to_double): Remove prototype.
11479 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11480
f436a26a
DJ
114812003-01-04 Daniel Jacobowitz <drow@mvista.com>
11482
11483 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11484
248f8055
DJ
114852003-01-04 Daniel Jacobowitz <drow@mvista.com>
11486
11487 Suggested by Stewart Brown <sb24@avaya.com>:
11488 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11489 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11490 (c_type_print_varspec_suffix): Likewise.
11491
72cfdc76
MK
114922003-01-04 Mark Kettenis <kettenis@gnu.org>
11493
bfd260bb
MK
11494 * configure.in: Don't set and AC_SUBST SUBDIRS.
11495 * configure: Regenerated.
11496
72cfdc76
MK
11497 * configure.in: Remove code dealing with shared libraries.
11498 * Makefile.in: Remove HLDFLAGS and HLDENV.
11499 * configure: Regenerated.
11500
c8b8a898
AC
115012003-01-04 Andrew Cagney <ac131313@redhat.com>
11502
11503 * frame.c (deprecated_frame_xmalloc): New function.
11504 (deprecated_set_frame_saved_regs_hack): New function.
11505 (deprecated_set_frame_extra_info_hack): New function.
11506 * frame.h (deprecated_frame_xmalloc): Declare.
11507 (deprecated_set_frame_saved_regs_hack): Declare.
11508 (deprecated_set_frame_extra_info_hack): Declare.
11509
14abd0fb
MK
115102003-01-04 Mark Kettenis <kettenis@gnu.org>
11511
8ee53726
MK
11512 * configure.in: Move code that provides the --enable-gdbtk option
11513 right after the code that handles the --enable-tui option, and
11514 polish it somewhat.
11515 * configure: Regenerated.
11516
14abd0fb
MK
11517 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11518 AC_CHECK_FUNCS and remove the old check for pread64.
11519 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11520 * acconfig.h (_GNU_SOURCE): Add.
11521 (HAVE_PREAD64): Remove.
11522 * configure, aclocal.m4, config.in: Regenerated.
11523
b2fb4676
AC
115242003-01-03 Andrew Cagney <ac131313@redhat.com>
11525
11526 * alpha-tdep.c: Use get_frame_saved_regs.
11527 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11528 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11529 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11530 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11531 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11532
8dcde887
MK
115332003-01-03 Mark Kettenis <kettenis@gnu.org>
11534
11535 * configure.in: Remove all use of the SUBDIRS variable; add
11536 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11537 code providing the --enable-multi-ice option, and move it right in
11538 front of the code that checks whether gdbserver is supported.
11539 Polish that too.
11540 * configure: Regenerated.
11541 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11542 @SUBDIRS@.
11543
8ccd593b
AC
115442003-01-03 Andrew Cagney <cagney@redhat.com>
11545
11546 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11547 * avr-tdep.c, cris-tdep.c: Ditto.
11548 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11549 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11550
91151a06
MK
115512003-01-03 Mark Kettenis <kettenis@gnu.org>
11552
11553 * configure.in: Remove --enable-netrom option.
11554 * configure: Regenerated.
11555
8fe84d01
MK
115562003-01-03 Mark Kettenis <kettenis@gnu.org>
11557
11558 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11559 declaration for `struct re_pattern_buffer' instead.
11560 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11561
f0394be6
JB
115622003-01-03 J. Brobecker <brobecker@gnat.com>
11563
11564 * mdebugread.c (parse_symbol): Count until the stEnd matching
11565 the structure name.
11566
27e9bf90
MK
115672003-01-02 Mark Kettenis <kettenis@gnu.org>
11568
93d331ba
MK
11569 * configure.in: Remove --with-cpu option.
11570 subscripts. Remove evil changequotes here.
11571 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11572 * config.in, configure: Regenerated.
8ffd9b1b 11573
27e9bf90
MK
11574 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11575 * configure.in: Cleanup section that sources GDB and BFD configure
11576 subscripts. Remove evil changequotes here.
11577 * config.in, configure: Regenerated.
11578
50abf9e5
AC
115792003-01-02 Andrew Cagney <ac131313@redhat.com>
11580
11581 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11582 frame accessor methods.
11583 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11584 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11585 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11586 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11587 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11588 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11589 * z8k-tdep.c: Ditto.
8ffd9b1b 11590
287c1a40
MK
115912003-01-02 Mark Kettenis <kettenis@gnu.org>
11592
f5dbc56d
MK
11593 * configure.in: Remove UI_OUT configuration code.
11594 * ada-lang.c: Update assuming UI_OUT is always true.
11595 * Makefile.in (UIOUT_CFLAGS): Remove.
11596 * configure: Regenerated.
11597 * TODO: Remove blurb about elimination of -DUI_OUT.
11598
627af7ea
MK
11599 * configure.in: Move code that provides the --enable-gdbcli,
11600 --enable-gdbmi options right before the code that handles the
11601 --enable-tui option. Polish a bit.
11602 * configure: Regenerated.
11603
06825bd1
MK
11604 * configure.in: Rewrite check for GNU regex and the
11605 --without-included regex option, and move it into the "Checks for
11606 library functions" section. This makes us use the system regex
11607 again by default on systems with version 2 of the GNU C library.
11608 This was apparently broken.
11609 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11610 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11611 * config.in, configure: Regenerated.
11612
287c1a40
MK
11613 * configure.in: Move code that provides the --enable-tui option
11614 before the "Checks for libraries" section. Polish the code
11615 somewhat and set need_curses to yes if we build the TUI. Rewrite
11616 code that looks for a library providing termcap functionality to
11617 match more closely what's done in the Readline library, and move
11618 it into to the "Checks for libraries" section.
11619 * configure: Regenerated.
11620 * Makefile.in (TERMCAP): Remove variable.
11621 * config/i386/go32.mh (TERMCAP): Remove variable.
11622
684e56bf
AC
116232003-01-02 Andrew Cagney <ac131313@redhat.com>
11624
11625 * MAINTAINERS: Mention gdb_mbuild.sh.
11626 * gdb_mbuild.sh: Rewrite.
11627
e1ea1d75
MK
116282003-01-02 Mark Kettenis <kettenis@gnu.org>
11629
11630 * configure.in: Fix typo in last change.
11631 * config.in, configure: Regenerated.
11632
1b831c93
AC
116332003-01-02 Andrew Cagney <ac131313@redhat.com>
11634
11635 * valarith.c (value_binop): Delete obsolete code and comments.
11636 * configure.host: Ditto.
11637 * buildsym.h (make_blockvector): Ditto.
11638 * buildsym.c (make_blockvector): Ditto.
11639 * defs.h (enum language): Ditto.
11640 (chill_demangle): Ditto.
11641 * elfread.c (elf_symtab_read): Ditto.
11642 * dwarfread.c (CHILL_PRODUCER): Ditto.
11643 (set_cu_language): Ditto.
11644 (handle_producer): Ditto.
11645 * expprint.c (print_subexp): Ditto.
11646 * gdbtypes.c (chill_varying_type): Ditto.
11647 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11648 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11649 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11650 (chill_varying_type): Ditto.
11651 * language.h (_LANG_chill): Ditto.
11652 * language.c (binop_result_type, integral_type): Ditto.
11653 (character_type, string_type, structured_type): Ditto.
11654 (lang_bool_type, binop_type_check): Ditto.
11655 * stabsread.h (os9k_stabs): Ditto.
11656 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11657 (define_symbol, read_type, read_struct_fields): Ditto.
11658 (read_array_type, read_enum_type, read_huge_number): Ditto.
11659 (read_range_type, start_stabs): Ditto.
11660 * symfile.c (init_filename_language_table): Ditto.
11661 (add_psymbol_with_dem_name_to_list): Ditto.
11662 * symtab.c (symbol_init_language_specific): Ditto.
11663 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11664 * symtab.h (struct general_symbol_info): Ditto.
11665 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11666 * typeprint.c (typedef_print): Ditto.
11667 * utils.c (fprintf_symbol_filtered): Ditto.
11668 * valops.c (value_cast, search_struct_field, value_slice): Delete
11669 obsolete code.
11670 (varying_to_slice): Delete function.
11671 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11672 (varying_to_slice): Delete declaration.
11673 * MAINTAINERS: Update.
11674
8bb2c122
MK
116752003-01-02 Mark Kettenis <kettenis@gnu.org>
11676
97bf5e38
MK
11677 * configure.in: Reorganize "Checks for library functions section"
11678 a bit. Remove check for `btowc' and `isascii' functions.
11679 * configure: Regenerated.
11680
5ee754fc
MK
11681 * acconfig.h (_MSE_INT_H): Remove.
11682 * configure.in: Create "Checks for header files" section, and move
11683 appropriate tests there. Don't check for objlist.h, wchar.h,
11684 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11685 misdetection fix. Also add "Checks for types", "Checks for
11686 compiler characteristics" and "Checks for library functions"
11687 sections.
11688 * config.in, configure: Regenerated.
11689
8bb2c122
MK
11690 * configure.in: Create "Checks for programs" section, and move
11691 appropriate tests there.
11692
9a156167
MK
116932003-01-01 Mark Kettenis <kettenis@gnu.org>
11694
11695 * configure.in: Create "Checks for libraries" section, and move
11696 appropriate tests there. Cleanup check for wctype in libw. Use
11697 AC_SEARCH_LIBS to see whether we need libsocket.
11698 * configure: Regenerated.
11699
a80e2bcb 11700For older changes see ChangeLog-2002
c906108c
SS
11701\f
11702Local Variables:
11703mode: change-log
11704left-margin: 8
11705fill-column: 74
11706version-control: never
11707End:
This page took 1.214469 seconds and 4 git commands to generate.