* MAINTAINERS (frv): New ISA entry.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
53e8aaea
KB
12003-09-10 Kevin Buettner <kevinb@redhat.com>
2
3 * MAINTAINERS (frv): New ISA entry.
4
dcc6aaff
KB
52003-09-10 Kevin Buettner <kevinb@redhat.com>
6
7 * frv-tdep.c (dis-asm.h): Include.
8 * Makefile.in (frv-tdep.o): Update dependencies.
9
932644f0
JJ
102003-09-09 Jeff Johnston <jjohnstn@redhat.com>
11
12 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
13 Fix typo for high range of floating registers.
14
91c24f0a
DC
152003-09-09 David Carlton <carlton@kealia.com>
16
17 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
18 highpc initialization here out of scan_partial_symbols.
19 (scan_partial_symbols): Restructure into a recursive version,
20 calling add_partial_namespace and add_partial_enumeration when
21 appropriate.
22 (add_partial_namespace): New.
23 (add_partial_enumeration, locate_pdi_sibling): Ditto.
24
c9263853
AC
252003-09-09 Andrew Cagney <cagney@redhat.com>
26
e56a0ecc
AC
27 * rs6000-tdep.c (ppc_push_return_address): Delete function.
28 (rs6000_push_dummy_call): Set LR to BP_ADDR.
29 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
30 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
31
794a477a
AC
32 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
33 (rs6000_push_dummy_call): Set the "TOC" register.
34
c9263853
AC
35 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
36 methods "max_register_raw_size", "max_register_virtual_size" or
37 "register_virtual_size".
38
afa7d0b2
ILT
392003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
40
41 * MAINTAINERS: Update my e-mail address.
42
7a41266b
AC
432003-09-09 Andrew Cagney <cagney@redhat.com>
44
45 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
46 (rs6000_push_dummy_call): Store the struct return address.
47 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
48
77b2b6d4
AC
492003-09-09 Andrew Cagney <cagney@redhat.com>
50
51 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
52 "ppc_sysv_abi_push_arguments".
53 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
54 "ppc_sysv_abi_push_arguments".
55 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
56 instead of "push_arguments".
57 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
58
e8a7b686
AC
592003-09-09 Andrew Cagney <cagney@redhat.com>
60
61 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
62 instead of CALL_DUMMY_ADDRESS.
63
f86f5ca3
PH
642003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
65
66 * p-lang.c: Eliminate "register".
67 * c-lang.c: Ditto.
68 * expprint.c: Ditto.
69 * f-lang.c: Ditto.
70 * jv-lang.c: Ditto.
71 * language.c: Ditto.
72 * m2-lang.c: Ditto.
73 * parse.c: Ditto.
74 * scm-lang.c: Ditto.
75 * objc-lang.c: Ditto.
76
83ee270e
NC
772003-09-09 Nick Clifton <nickc@redhat.com>
78
79 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
80
a89aa300
AC
812003-09-04 Andrew Cagney <cagney@redhat.com>
82
83 * avr-tdep.c: Include "dis-asm.h".
84 * cris-tdep.c: Include "dis-asm.h".
85 (cris_delayed_get_disassembler): Use "struct disassemble_info"
86 instead of corresponding typedef.
87 * h8300-tdep.c: Include "dis-asm.h".
88 * ia64-tdep.c: Include "dis-asm.h".
89 * i386-tdep.c: Include "dis-asm.h".
90 (i386_print_insn): Use "struct disassemble_info" instead of
91 corresponding typedef.
92 * m68k-tdep.c: Include "dis-asm.h".
93 * mcore-tdep.c: Include "dis-asm.h".
94 * mips-tdep.c: Include "dis-asm.h".
95 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
96 instead of corresponding typedef.
97 * ns32k-tdep.c: Include "dis-asm.h".
98 * s390-tdep.c: Include "dis-asm.h".
99 * sparc-tdep.c: Include "dis-asm.h".
100 * vax-tdep.c: Include "dis-asm.h".
101 * v850-tdep.c: Include "dis-asm.h".
102 * mn10300-tdep.c: Include "dis-asm.h".
103 * rs6000-tdep.c: Include "dis-asm.h".
104 * xstormy16-tdep.c: Include "dis-asm.h".
105 (_initialize_xstormy16_tdep): Delete "extern" declaration of
106 print_insn_xstormy16.
107 * Makefile.in (v850-tdep.o): Update dependencies.
108 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
109 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
110 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
111 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
112 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
113 (gdbarch_h): Remove $(dis_asm_h).
114 * disasm.c: Include "dis-asm.h".
115 (dis_asm_read_memory): Use "struct disassemble_info" instead of
116 corresponding typedef.
117 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
118 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
119 * gdbarch.sh: Do not include "dis-asm.h".
120 (struct disassemble_info): Declare opaque.
121 (TARGET_PRINT_INSN): Update declaration.
122 * gdbarch.h, gdbarch.c: Re-generate.
123
88a82a65
AC
1242003-09-08 Andrew Cagney <cagney@redhat.com>
125
126 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
127 CALL_DUMMY_ADDRESS, change to a predicate.
128 * gdbarch.h, gdbarch.c: Re-generate.
129 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
130 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
131 * infcall.c (call_function_by_hand): Ditto.
132 * sparc-tdep.c (sparc_push_return_address): Ditto.
133 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
134 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
135 CALL_DUMMY_ADDRESS with entry_point_address.
136 * v850-tdep.c (v850_push_return_address): Ditto.
137 * s390-tdep.c (s390_push_return_address): Ditto.
138 * rs6000-tdep.c (ppc_push_return_address): Ditto.
139 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
140 * mcore-tdep.c (mcore_push_return_address): Ditto.
141 * cris-tdep.c (cris_push_return_address): Ditto.
142 * arm-tdep.c (arm_push_return_address): Ditto.
143
3e2c4033
AC
1442003-09-08 Andrew Cagney <cagney@redhat.com>
145
146 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
147 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
148 and REG_UNMODIFIED to REG_SAME_VALUE.
149 (execute_cfa_program): Update.
150 (dwarf2_frame_cache): Update. Initialize table to
151 REG_UNSPECIFIED, complain if CFI fails to specify a register's
152 location.
153 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
154
39efb398
AC
1552003-09-08 Andrew Cagney <cagney@redhat.com>
156
157 * gnu-nat.c: Remove "inline" function attribute.
158 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
159
f5cb5aca
KB
1602003-09-08 Kevin Buettner <kevinb@redhat.com>
161
162 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
163 target.
164
1cb761c7
KB
1652003-09-08 Kevin Buettner <kevinb@redhat.com>
166
167 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
168 (frame_extra_info): Rename this struct to frv_unwind_cache.
169 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
170 Add fields ``prev_sp'' and ``base''.
171 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
172 (frv_saved_pc_after_call, frv_init_extra_frame_info)
173 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
174 Delete.
175 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
176 Revise all callers. Fill in the unwind cache argument and make
177 other adjustments to account for new frame mechanisms.
178 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
179 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
180 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
181 (frv_frame_unwind, frv_frame_base): New structs.
182 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
183 additional arguments expected by this method and adjust function
184 body accordingly.
185 (frv_gdbarch_init): Remove calls to the following functions:
186 set_gdbarch_deprecated_init_frame_pc(),
187 set_gdbarch_deprecated_saved_pc_after_call(),
188 set_gdbarch_deprecated_frame_chain(),
189 set_gdbarch_deprecated_frame_saved_pc(),
190 set_gdbarch_deprecated_frame_init_saved_regs(),
191 set_gdbarch_deprecated_push_arguments(),
192 set_gdbarch_deprecated_push_return_address(),
193 set_gdbarch_deprecated_pop_frame(),
194 set_gdbarch_deprecated_call_dummy_words(),
195 set_gdbarch_deprecated_sizeof_call_dummy_words(),
196 set_gdbarch_deprecated_init_extra_frame_info(),
197 set_gdbarch_deprecated_dummy_write_sp(), and
198 set_gdbarch_deprecated_pc_in_call_dummy().
199 Add calls to the following functions:
200 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
201 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
202 frame_base_set_default().
203 * Makefile.in (frv-tdep.o): Update dependencies.
204
68f6cf99
MK
2052003-09-09 Mark Kettenis <kettenis@gnu.org>
206
207 * dwarf2-frame.c (read_encoded_value): Add support for
208 DW_EH_PE_aligned encoding.
209
73b65bb0
DJ
2102003-09-08 Daniel Jacobowitz <drow@mvista.com>
211
212 * infrun.c (normal_stop): Don't print a message if the inferior
213 has exited.
214
7c8a5605
JB
2152003-09-08 Jim Blandy <jimb@redhat.com>
216
217 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
218 * dbxread.c: #include "gdb_assert.h".
219 (read_dbx_symtab): If the objfile has no .data section, use the
220 section index for the .bss section instead.
221
7dd88986
DJ
2222003-09-08 Daniel Jacobowitz <drow@mvista.com>
223
224 * frame.c (deprecated_safe_get_selected_frame): New function.
225 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
226 * findvar.c (read_var_value): Call it.
227
55ff77ac
CV
2282003-09-08 Corinna Vinschen <vinschen@redhat.com>
229
230 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
231 (sh64-tdep.o): Add dependencies.
232 * configure.tgt: Add FIXME to sh-*-linux*.
233 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
234 (sh_gdbarch_init): Always set correct sh_show_regs function
235 pointer. Call sh64_gdbarch_init() if machine type is sh5.
236 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
237 * sh64-tdep.c: New file, containing all sh64 related code from
238 sh-tdep.c.
239 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
240 * config/sh/linux.mt (TDEPFILES): Ditto.
241 * config/sh/nbsd.mt (TDEPFILES): Ditto.
242 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
243 * config/sh/wince.mt (TDEPFILES): Ditto.
244
bfb39158
DJ
2452003-09-07 Daniel Jacobowitz <drow@mvista.com>
246
247 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
248 (stop_wait_callback): Handle !lp->signalled also.
249 (lin_lwp_has_pending, flush_callback): New functions.
250 (lin_lwp_wait): Call flush_callback.
251 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
252 (linux_proc_pending_signals): New function.
253 * linux-nat.h (linux_proc_pending_signals): Add prototype.
254
9407de8e
DJ
2552003-09-07 Daniel Jacobowitz <drow@mvista.com>
256
257 From Nick Kelsey <nickk@ubicom.com>:
258 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
259 when the stop PC is at the beginning of a function also.
260
2ef47cd0
DJ
2612003-09-06 Daniel Jacobowitz <drow@mvista.com>
262
263 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
264 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
265
6f4492c8
MK
2662003-09-06 Mark Kettenis <kettenis@gnu.org>
267
268 * sol-thread.c: Include "gdb_string.h".
269
d3420b2f
MK
2702003-09-03 Mark Kettenis <m.kettenis@osp.nl>
271
272 * gcore.c: Reorder include files in alphabetical order. Include
273 "gdb_assert.h". Various coding style fixes.
274 (derive_stack_segment, derive_heap_segment): Replace check for
275 non-null BOTTOM and TOP with gdb_assert.
276 (derive_heap_segment): Replace check for successful creation of
277 ZERO with gdb_assert.
278 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
279
5220ea4c
AC
2802003-09-04 Andrew Cagney <cagney@redhat.com>
281
282 * thread-db.c (verbose_dlsym): New function.
283 (thread_db_load): Use verbose_dlsym
284 (thread_db_new_objfile): Print that libthread_db was loaded, and
285 that thread debugging was enabled.
286
6e8c2c06
AC
2872003-09-04 Andrew Cagney <cagney@redhat.com>
288
289 * configure.tgt: Add "mips64*-*-*" target. Delete
290 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
291 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
292 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
293 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
294 mips*-sony-*, and mips64*-*-elf* targets.
295 * config/mips/embedl.mt: Delete file.
296 * config/mips/embedl64.mt: Delete file.
297 * config/mips/mips.mt: Delete file.
298 * config/mips/mips64.mt: Delete file.
299 * config/mips/tm-embed.h: Delete file.
300 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
301 * config/mips/embed64.mt: Delete out-of-date comment.
302
3a3bc038
AC
3032003-09-04 Andrew Cagney <cagney@redhat.com>
304
305 * hppa-tdep.c (hppa_gdbarch_init): Set
306 "have_nonsteppable_watchpoint".
307 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
308 * mips-tdep.c (mips_dump_tdep): Do not print
309 HAVE_NONSTEPPABLE_WATCHPOINT.
310 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
311 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
312 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
313 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
314
a957e642
CV
3152003-09-04 Corinna Vinschen <vinschen@redhat.com>
316
317 * breakpoint.c (watchpoint_check): Remove accidentally checked in
318 unused code. Add comment.
319
a6fbcf2f
CV
3202003-09-04 Corinna Vinschen <vinschen@redhat.com>
321
322 * breakpoint.c (watchpoint_check): Check for pc being in an
323 epilogue if watchpoint frame couldn't be found.
324
c14a44d5
AC
3252003-09-04 Andrew Cagney <cagney@redhat.com>
326
327 * Makefile.in: Re-generate all dependencies.
328
f6c40618
AC
3292003-09-03 Andrew Cagney <cagney@redhat.com>
330
331 * arch-utils.h (legacy_print_insn): Delete declaration.
332 * arch-utils.c (legacy_print_insn): Delete function.
333 * disasm.c (deprecated_tm_print_insn_info): Delete.
334 (_initialize_disasm): Delete function, contained code initializing
335 deprecated_tm_print_insn_info.
336 * gdbarch.sh (deprecated_tm_print_insn): Delete.
337 (deprecated_tm_print_insn_info): Delete.
338 (TARGET_PRINT_INSN): Do not provide a default.
339 * gdbarch.h, gdbarch.c: Re-generate.
340
242e8be5
AC
3412003-09-03 Andrew Cagney <cagney@redhat.com>
342
343 * disasm.c (fprintf_disasm): New function.
344 (gdb_disassemble_info): Call "init_disassemble_info", instead of
345 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
346 reverts 2003-08-14 change.
347 (_initialize_disasm): Call "init_disassemble_info", instead of
348 INIT_DISASSEMBLE_INFO_NO_ARCH.
349
3ffc3dda
MS
3502003-09-03 Michael Snyder <msnyder@redhat.com>
351
352 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
353
52d16ba8
AC
3542003-09-03 Andrew Cagney <cagney@redhat.com>
355
356 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
357 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
358 * symfile.c (syms_from_objfile): Update.
359 (reread_symbols): `Update
360 * exec.c (exec_file_attach): Update.
361 (exec_file_attach): Update.
362 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
363 2003-08-29 change.
364 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
365
eb5492fa
DJ
3662003-09-03 Daniel Jacobowitz <drow@mvista.com>
367
368 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
369 trad-frame.h.
370 (arm_get_cache): Delete macro.
371 (struct arm_prologue_cache): Update comments. Make saved_regs into
372 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
373 to prev_sp.
374 (thumb_scan_prologue): Update for cache changes. Don't call
375 DEPRECATED_PC_IN_CALL_DUMMY.
376 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
377 argument and use it in desperation search for our prologue. Do not
378 search past the specified PC.
379 (arm_make_prologue_cache): Simplify.
380
381 (arm_prologue_this_id, arm_prologue_prev_register)
382 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
383 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
384 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
385 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
386 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
387
388 (arm_frame_chain_valid, arm_find_callers_reg)
389 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
390 (arm_pop_frame): Delete obsolete methods.
391 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
392
393 (arm_gdbarch_init): Update for new frame methods. Register prologue
394 and sigtramp unwinders. Set the default frame base method.
395
396 * Makefile.in (arm-tdep.o): Update dependencies.
397 * varobj.c (find_frame_addr_in_frame_chain): Call
398 get_frame_base_address.
399 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
400
24de872b
DJ
4012003-09-03 Daniel Jacobowitz <drow@mvista.com>
402
403 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
404 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
405 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
406 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
407 Take NEXT_FRAME and CACHE arguments. Call
408 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
409 Set unwound_pc in CACHE instead of modifying the frame argument.
410 Don't bother checking the frame type when looking for sigtramp
411 frames.
412 (arm_make_prologue_cache, arm_frame_chain)
413 (arm_init_extra_frame_info): New functions.
414
9b8d791a
DJ
4152003-09-03 Daniel Jacobowitz <drow@mvista.com>
416
417 * arm-tdep.c (arm_get_cache): Define.
418 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
419 unwound_sp, unwound_pc, and saved_regs.
420 (thumb_scan_prologue): Take a cache instead of the frame.
421 (arm_scan_prologue): Likewise.
422 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
423 instead of a temporary frame.
424 (arm_init_extra_frame_info): Allocate and use a cache.
425 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
426
7ee3275f
AC
4272003-09-03 Andrew Cagney <cagney@redhat.com>
428
429 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
430 * config/mips/wince.mt (TM_CLIBS): Ditto.
431 * config/sh/wince.mt (TM_CLIBS): Ditto.
432 * config/pa/hppa64.mt (TM_CLIBS): Delete.
433 * config/sparc/sp64.mt (CC): Delete.
434
57b29be7
AC
4352003-09-03 Andrew Cagney <cagney@redhat.com>
436
437 * defs.h: Do not include "arch-utils.h".
438 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
439 GDB_MULTI_ARCH_PURE.
440 * configure.in (GDB_MULTI_ARCH): Do not define.
441 * configure, config.in: Regenerate.
442 * configure.tgt: Do not set variable "gdb_multi_arch".
443 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
444 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
445 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
446 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
447 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
448 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
449 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
450 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
451 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
452 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
453 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
454 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
455 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
456 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
457 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
458 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
459 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
460 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
461
12e035e2
MC
4622003-08-30 Michael Chastain <mec@shout.net>
463
464 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
465 * config/m68k/nm-hp300hpux.h: Delete.
466 * config/m68k/tm-hp300hpux.h: Delete.
467 * config/m68k/xm-hp300hpux.h: Delete.
468 * config/m68k/xm-hp300bsd.h: Delete.
469 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
470 tm-hp300hpux.h, xm-hp300hpux.h.
471 * somsolib.c: Remove comment about hp300 shared libraries.
472
bda34dc2
MK
4732003-08-31 Mark Kettenis <kettenis@gnu.org>
474
5bca7895
MK
475 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
476 Only define PTRACE_GET_THREAD_AREA is not already defined.
477 Various style fixes in code and comments and some additional
478 spelling fixes in comments. Move after functions dealing with
479 debug registers.
480 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
481 Fix coding-style.
482
bda34dc2
MK
483 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
484 frame_unwind_register_unsigned instead of
485 frame_unwind_unsigned_register.
486
c890192f
MK
4872003-08-30 Mark Kettenis <kettenis@gnu.org>
488
489 * configure.in: Search for gethostbyname in libnsl.
490 * configure: Regenerated.
491
60fac5b8
MK
4922003-08-29 Mark Kettenis <kettenis@gnu.org>
493
e294916c
MK
494 * configure.in: Remove redundant AC_MSG_RESULT in check for
495 uintptr_t in stdint.h.
496 * configure: Regenerated.
497
c40d267a
MK
498 * amd64-nat.h (struct regcache): Add opaque declaration.
499
60fac5b8
MK
500 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
501 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
502 Change "register array" to "register cache" in comments.
503 (x86_64_linux_gregset64_reg_offset): New variable.
504 (GETREGS_SUPPLIES): Remove macro.
505 (supply_gregset): Call amd64_supply_native_gregset instead of
506 x86_64_linux_supply_gregset.
507 (fill_gregset): Rename `regno' to `regnum'. Call
508 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
509 (store_regs): Rename `regno' to `regnum'.
510 (store_fpregs): Rename `regno' to `regnum'.
511 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
512 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
513 Reorganize function a bit.
514 (store_inferior_registers): Rename `regno' to `regnum'. Use
515 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
516 Reorganize function a bit.
517 (_initialize_x86_64_linux_nat): New function.
518 * config/i386/x86-64linux.mh.
519
546143b6
AC
5202003-08-29 Andrew Cagney <cagney@redhat.com>
521
522 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
523 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
524 (target_remove_watchpoint): Delete macro.
525 (target_insert_watchpoint): Delete macro.
526 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
527 (remote_mips_stopped_by_watchpoint): Delete declaration.
528 (remote_mips_remove_watchpoint): Delete declaration.
529 (remote_mips_set_watchpoint): Delete declaration.
530 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
531 * remote-mips.c (_initialize_remote_mips): Set
532 "to_insert_watchpoint", "to_stopped_by_watchpoint",
533 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
534 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
535 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
536 (mips_stopped_by_watchpoint): Rename
537 remote_mips_stopped_by_watchpoint.
538 (mips_can_hardware_watchpoint): Rename
539 remote_mips_can_use_hardware_watchpoint, update function
540 signature.
541
7bace51b
MK
5422003-08-29 Mark Kettenis <kettenis@gnu.org>
543
b0f5c6f2
MK
544 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
545 USER_DS. We haven't given them a register number yet.
546
2a6d284d
MK
547 * amd64-nat.h: New file.
548 * amd64-nat.c: New file.
549 * amd64fbsd-nat.c: Include "amd64-nat.h".
550 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
551 (amd64fbsd32_r_reg_offset): New variable.
552 (supply_gregset): Simply call amd64_supply_native_gregset.
553 (fill_gregset): Rename `regno' to `regnum'. Simply call
554 amd64_collect_native_gregset.
555 (fill_fpregset): Rename `regno' to `regnum'.
556 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
557 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
558 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
559 `fpregset_t'. Call amd64_supply_native_gregset instead of
560 supply_gregset. Call x86_64_supply_fxsave instead of
561 supply_fpregset.
562 (store_inferior_registers): Rename `regno' to `regnum'. Replace
563 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
564 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
565 `fpregset_t'. Call amd64_collect_native_gregset instead of
566 fill_gregset. Call x86_64_collect_fxsave instead of
567 fill_fpregset.
568 (_initialize_am64fbsd_nat): Initialize
569 amd64_native_gregset32_reg_offset and
570 amd64_native_gregset64_reg_offset.
571 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
572
a16d75cc
MK
573 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
574 null pointer. Fix typo in comment.
575
7bace51b
MK
576 * regcache.c (supply_register): Reimplement to call
577 regcache_raw_supply.
578 (regcache_collect): Reimplement by calling regcache_raw_collect.
579
9a661b68
MK
5802003-08-28 Mark Kettenis <kettenis@gnu.org>
581
582 * regcache.c (register_buffer): Consitify first argument.
583 (regcache_raw_supply, regcache_raw_collect): New
584 functions.
585
e94cc8fa
DJ
5862003-08-28 Daniel Jacobowitz <drow@mvista.com>
587
588 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
589 by Nathan J. Williams.
590
c64bd0ce
DJ
5912003-08-28 Daniel Jacobowitz <drow@mvista.com>
592
593 * lin-lwp.c (wait_lwp): New function, copied from
594 stop_wait_callback. Clean up.
595 (stop_wait_callback): Use wait_lwp.
596
e5ab0dce
AC
5972003-08-28 Andrew Cagney <cagney@redhat.com>
598
599 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
600 flavour and disassembler options.
601 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
602 (mips_gdbarch_init): Set "print_insn". Delete initialization of
603 deprecated_tm_print_insn_info.
604
a788de9b
AC
6052003-08-27 Andrew Cagney <cagney@redhat.com>
606
607 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
608 Use target_read_memory.
609 (s390_get_frame_info): Update. Do not reference
610 deprecated_tm_print_insn_info.
611 (s390_check_function_end, s390_is_sigreturn): Ditto.
612
36482093
AC
6132003-08-27 Andrew Cagney <cagney@redhat.com>
614
615 * Makefile.in (cris-tdep.o): Update dependencies.
616 * cris-tdep.c: Include "gdb_assert.h".
617 (cris_gdbarch_init): Set print_insn.
618 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
619 (cris_delayed_get_disassembler): Simplify, directly call the
620 disassembler returned by cris_get_disassembler.
621 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
622 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
623 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
624 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
625 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
626 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
627 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
628 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
629 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
630 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
631 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
632 (gdb_print_insn_sparc): Delete function.
633 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
634 deprecated_tm_print_insn_info.
635 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
636 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
637 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
639 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
640 * s390-tdep.c (gdb_print_insn_s390): Delete function.
641 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
642 (s390_gdbarch_init): Set print_insn.
643
0285512f
AC
6442003-08-27 Andrew Cagney <cagney@redhat.com>
645
646 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
647 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
648 * infcall.c (call_function_by_hand): Convert the entry point
649 address into a code address.
650
cdcd5552
AC
6512003-08-27 Andrew Cagney <cagney@redhat.com>
652
653 * dsrec.c: Include "gdb_string.h".
654 * Makefile.in (dsrec.o): Update dependencies.
655
e85cddad
MC
6562003-08-27 Michael Chastain <mec@shout.net>
657
658 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
659
8bbfbb23
AC
6602003-08-27 Andrew Cagney <cagney@redhat.com>
661
662 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
663 (alpha_osf1_init_abi): Do not set call_dummy_address.
664
ba058b66
DC
6652003-08-27 David Carlton <carlton@kealia.com>
666
667 From Randolph Chung <tausq@debian.org>:
668 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
669 compiles with -Wformat-nonliteral -Werror.
670
87f84c9d
JB
6712003-08-26 Jim Blandy <jimb@redhat.com>
672
673 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
674 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
675 bfd_lookup_symbol, since we only want symbols in code sections.
676 (look_for_base): Pass zero as the SECT_FLAGS argument to
677 bfd_lookup_symbol, since we're not concerned about which section
678 the symbol is in.
679
102d615a
JJ
6802003-08-26 Jeff Johnston <jjohnstn@redhat.com>
681
682 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
683 we are frameless or the return address register is already known.
684
cc7ad3ea
AC
6852003-08-26 Andrew Cagney <cagney@redhat.com>
686
687 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
688 in size. Add comments.
689
af8b88dd
JJ
6902003-08-26 Jeff Johnston <jjohnstn@redhat.com>
691
692 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
693 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
694
e0a4f5a1
JM
6952003-08-26 Jason Merrill <jason@redhat.com>
696
697 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
698 case out of #ifdef MIPS block.
699
4ae9ee8e
DJ
7002003-08-25 Daniel Jacobowitz <drow@mvista.com>
701
702 PR java/1322
703 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
704 available before calling SECT_OFF_TEXT.
3c164570 705 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 706
004d836a
JJ
7072003-08-25 Jeff Johnston <jjohnstn@redhat.com>
708
709 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
710 bof, and nat0-nat127 as pseudo-registers.
711 (ia64_frame_cache): New struct used to cache frame info.
712 (ia64_register_reggroup_p): New routine used to override default
713 register grouping so registers without names are still saved and
714 restored.
715 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
716 pseudo values.
717 (ia64_pseudo_register_read): New routine to read pseudo-registers.
718 (ia64_pseudo_register_write): New routine to write pseudo-registers.
719 (ia64_alloc_frame_cache): New routine to create a new
720 ia64_frame_cache.
721 (examine_prologue): Change prototype to add next_frame pointer.
722 Assume frameless until otherwise proven. Verify that the cfm for
723 current frame matches the cfm that should occur for the prologues
724 alloc insn and if equal, mark as not frameless. At end of routine,
725 if not frameless, calculate registers for the previous frame and store
726 in the cache, if a cache is provided.
727 (ia64_skip_prologue): Use new prototype when calling examine_prologue
728 and pass 0 for next_frame.
729 (ia64_store_return_value): Change to use convert_typed_floating()
730 instead of calling ia64_convert_to_raw().
731 (ia64_extract_return_value): Change to use convert_typed_floating()
732 instead of calling ia64_convert_to_virtual().
733 (ia64_frame_cache): New routine to support new frame model.
734 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
735 (ia64_frame_sniffer): Ditto.
736 (ia64_sigtramp_frame_init_saved_regs): Ditto.
737 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
738 (ia64_sigtramp_frame_prev_register): Ditto.
739 (ia64_sigtramp_frame_sniffer): Ditto.
740 (ia64_frame_base_address): Ditto.
741 (ia64_extract_struct_value_address): Change to issue error message.
742 (ia64_frame_align): New routine to align sp.
743 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
744 (ia64_push_arguments): Removed. Logic moved to
745 ia64_push_dummy_call().
746 (ia64_push_return_address): Ditto.
747 (ia64_unwind_dummy_id): New function.
748 (ia64_unwind_pc): Ditto.
749 (ia64_convert_register_p): Ditto.
750 (ia64_register_to_value): Ditto.
751 (ia64_value_to_register): Ditto.
752 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
753 (ia64_register_byte, ia64_register_raw_size): Ditto.
754 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
755 (ia64_saved_pc_after_call): Ditto.
756 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
757 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
758 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
759 (ia64_register_convert_to_raw): Ditto.
760 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
761 (ia64_init_extra_frame_info): Ditto.
762 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
763 (ia64_gdbarch_init): Remove registering of deprecated functions that
764 are no longer used. Add registration of new gdbarch functions.
765 Remove registering deprecated_write_sp. Replace
766 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
767 Delete set_gdbarch_deprecated_register_convertible(),
768 set_gdbarch_deprecated_register_convert_to_virtual(), and
769 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
770 set_gdbarch_deprecated_register_size(),
771 set_gdbarch_deprecated_register_bytes(),
772 set_gdbarch_pcregnum(),
773 set_gdbarch_deprecated_register_byte(),
774 set_gdbarch_deprecated_register_raw_size(),
775 set_gdbarch_deprecated_max_register_raw_size(),
776 set_gdbarch_deprecated_register_virtual_size(),
777 and set_gdbarch_deprecated_max_register_virtual_size() calls.
778 Replace set_gdbarch_deprecated_extract_return_value() with
779 set_gdbarch_extract_return_value(). Remove calls to:
780 set_gdbarch_deprecated_saved_pc_after_call();
781 set_gdbarch_deprecated_frame_chain(),
782 set_gdbarch_deprecated_frame_saved_pc(),
783 set_gdbarch_deprecated_frame_init_saved_regs(),
784 set_gdbarch_deprecated_get_saved_register(),
785 set_gdbarch_deprecated_call_dummy_words(),
786 set_gdbarch_deprecated_sizeof_call_dummy_words(),
787 set_gdbarch_deprecated_init_extra_frame_info(),
788 set_gdbarch_deprecated_frame_args_address(),
789 set_gdbarch_deprecated_frame_locals_address(),
790 and set_gdbarch_deprecated_dummy_write_sp().
791 Add set_gdbarch_convert_register_p(),
792 set_gdbarch_register_to_value(),
793 set_gdbarch_value_to_register(),
794 set_gdbarch_push_dummy_call(),
795 set_gdbarch_frame_align(),
796 set_gdbarch_unwind_dummy_id(),
797 set_gdbarch_unwind_pc(),
798 frame_unwind_append_sniffer(),
799 frame_unwind_append_sniffer(),
800 and frame_base_set_default().
801
aede7613
CD
8022003-08-25 Chris Demetriou <cgd@broadcom.com>
803
804 * configure.tgt: Document need for special "mipsisa64" handling.
805 (mipsisa64*-*-linux64): Handle as target linux64.
806 (mipsisa64*-*-*): Handle as target embed64.
807
43c3a82e
MC
8082003-08-18 Michael Chastain <mec@shout.net>
809
810 * PROBLEMS: Document pr gdb/1322, the Java anonymous
811 objfile bug.
812
6564f77d
MK
8132003-08-24 Mark Kettenis <kettenis@gnu.org>
814
2de139ba
MK
815 * i387-tdep.h: Update copyright date.
816 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
817
6564f77d
MK
818 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
819 CFLAGS games to reflect reality.
820
42cf1509
AC
8212003-08-24 Andrew Cagney <cagney@redhat.com>
822
823 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
824 GDB_MULTI_ARCH is always non-zero.
825 * osabi.c (_initialize_gdb_osabi): Ditto.
826 (gdbarch_init_osabi): Ditto.
827 * sparc-tdep.c: Ditto for #if code.
828
0485f6ad
MK
8292003-08-23 Mark Kettenis <kettenis@gnu.org>
830
831 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
832 Update comments.
833 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
834 comments.
835 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
836 x86_64_supply_fxsave.
837 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
838 x86_64_supply_fxsave.
839 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
840 x86_64_supply_fxsave.
841
c7716133
AJ
8422003-08-23 Andreas Jaeger <aj@suse.de>
843
844 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
845 i387_supply_fxsave.
846
ed504bdf
MK
8472003-08-23 Mark Kettenis <kettenis@gnu.org>
848
849 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
850 i387_supply_register.
851 (go32_fetch_registers): Adjust call to i387_supply_fsave.
852 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
853 i387_supply_fsave.
854 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
855 i387_supply_fxsave.
856 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
857 i387_supply_fsave.
858 * i386bsd-nat.c (supply_fpregset): Adjust call to
859 i387_supply_fsave.
860 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
861 call to i387_supply_fxsave. Call i387_supply_fsave instead of
862 supply_fpregset.
863 (store_inferior_registers): Remove extraneous whitespace. Call
864 i387_fill_fsave instead of fill_fpregset.
865 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
866 (supply_fpregset): Likewise.
867 * i386v4-nat.c (supply_fpregset): Adjust call to
868 i387_supply_fsave.
869 * i386-interix-nat.c (supply_fpregset): Adjust call to
870 i387_supply_fsave.
871 * i386-linux-nat.c (supply_fpregset): Adjust call to
872 i387_supply_fsave.
873 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
874 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
875 i387supply_fsave and i387_supply_fxsave.
876 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
877 Incorporate code from `i387_supply_register.
878 (i387_supply_register): Remove.
879 (i387_supply_fxsave): Add `regnum' argument.
880 Update comments.
881 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
882 prototype.
883 (i387_supply_register): remove prototype.
884 Update comments.
885
4be5d520
MC
8862003-08-22 Michael Chastain <mec@shout.net>
887
888 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
889 Add lines for files in gdb/testsuite/gdb.cp/* that are
890 still not 8.3 unique.
891
7ed85d26
DJ
8922003-08-22 Daniel Jacobowitz <drow@mvista.com>
893
894 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
895 TYPE_VPTR_FIELDNO is valid.
896
eb0d3137
MK
8972003-08-19 Mark Kettenis <kettenis@gnu.org>
898
899 * utils.c (set_width_command): Remove prototypes.
900 (set_screen_size): New prototype.
901 (init_page_info): Simplify by fetching the screen size from
902 Readline. Call set_screen_size.
903 (set_screen_size): New function.
904 (set_width): Add missing whitespace in comment.
905 (set_width_command): Call set_screen_size.
906 (set_height_command): New function.
907 (initialize_utils): Fix formatting. Make "set height" command
908 call set_height_command. Remove redundant code that turns off
909 pagination if output isn't a terminal. Remove redundant call to
910 set_width_command.
911
7e6d0ac8
MK
9122003-08-22 Mark Kettenis <kettenis@gnu.org>
913
3567a8ea
MK
914 * sparc64-tdep.h (sparc64_regnum): Fix comment.
915 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
916 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
917 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
918 `case' keyword.
919 (sparc64_register_info): Give the reister with number
920 SPARC64_STATE_REGNUM a name.
921 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
922 %asi and %ccr.
923 (sparc64_push_dummy_call): Take BIAS into account when checking
924 stcak alignment.
925 (sparc_software_single_step): Remove assertions that check whether
926 NPC and NNPC were zero.
927 (sparc_supply_rwindow): Make public. Merge functionality with
928 sparc64_supply_rwindow.
929 (sparc_fill_rwindow): Make public. Merge functionality with
930 sparc64_fill_rwindow.
931 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
932 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
933 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
934 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
935 sparc_supply_rwindow instead of sparc64_supply_rwindow.
936
7e6d0ac8
MK
937 * reggroups.c: Add whitespace after declarations of local
938 variables in functions.
939
72e5f484
MC
9402003-08-21 Michael Chastain <mec@shout.net>
941
942 * gdbtypes.h: Change array bound type from an int to enum.
943
435ac228
AC
9442003-08-21 Andrew Cagney <cagney@redhat.com>
945
946 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
947 * config/sparc/tm-sparc.h: Ditto.
948 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
949 unconditionally.
950 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
951
0d0e1a63
MK
9522003-07-13 Mark Kettenis <kettenis@gnu.org>
953
954 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
955 (register_objfile_data, set_objfile_data, objfile_data): New
956 prototypes.
957 * objfiles.c (objfile_alloc_data, objfile_free_data): New
958 prototypes.
959 (allocate_objfile): Call objfile_alloc_data.
960 (free_objfile): Call objfile_free_data.
961 (struct objfile_data): New.
962 (struct objfile_data_registration): New.
963 (struct objfile_data_registry): New.
964 (objfile_data_registry): New variable.
965 (register_objfile_data): New function.
966 (objfile_alloc_data, objfile_free_data): New functions.
967 (set_objfile_data, objfile_data): New functions.
968 * dwarf2-frame.c (dwarf2_frame_data): New variable.
969 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
970 (_initialize_dwarf2_frame): New function and prototype.
971
d90cf509
AC
9722003-08-21 Andrew Cagney <cagney@redhat.com>
973
974 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
975 a specific architecture.
976 * arch-utils.h (set_architecture_from_arch_mach): Delete
977 declaration.
978 (target_architecture_hook): Delete declaration.
979 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
980 (default_float_format): Assume GDB_MULTI_ARCH.
981 (default_double_format): Assume GDB_MULTI_ARCH.
982 (set_endian_from_file): Delete function.
983 (arch_ok): Delete function.
984 (set_arch): Delete function.
985 (set_architecture_from_arch_mach): Delete function.
986 (set_architecture_from_file): Delete function.
987 (set_architecture): Assume GDB_MULTI_ARCH.
988 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
989
8b39fe56
MK
9902003-08-21 Mark Kettenis <kettenis@gnu.org>
991
992 Rewrite FreeBSD/sparc64 native configuration.
993 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
994 * sparc64fbsd-nat.c: New file.
995 * sparc64fbsd-tdep.c: New file.
996 * sparc64-tdep.c sparc64-tdep.h: New files.
997 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
998 sparc64fbsd-tdep.o): New dependencies.
999 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1000 and sparc64fbsd-tdep.c.
1001 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1002 * config/sparc/fbsd.mh: Remove copyright notice.
1003 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1004 sparcbsd-nat.o.
1005 * config/sparc/fbsd.mt: Remove copyright notice.
1006 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1007 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1008 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1009 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1010 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1011 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1012 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1013 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1014 "sparc/tm-sp64.h".
1015 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1016 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1017
a7f19c79
MC
10182003-08-21 Michael Chastain <mec@shout.net>
1019
1020 * symtab.h: Add doco on the space critical structures and
1021 some measurements of space usage.
1022
da08ea5b
MS
10232003-08-21 Michael Snyder <msnyder@redhat.com>
1024
1025 * tracepoint.c (trace_dump_command): Trace break address
1026 is subject to DECR_PC_AFTER_BREAK.
1027 (set_traceframe_context): Make "trace_line" an int.
1028 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1029
6df2bf50
MS
10302003-08-20 Michael Snyder <msnyder@redhat.com>
1031
1032 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1033 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1034 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1035 argument passing.
1036 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1037 functions, replace sh_push_dummy_call.
1038 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1039
0955bbf0
MC
10402003-08-20 Michael Chastain <mec@shout.net>
1041
1042 * gdbtypes.h (struct main_type): Rearrange to save space.
1043
260a4188
MS
10442003-08-20 Michael Snyder <msnyder@redhat.com>
1045
1046 * trad-frame.c: Comment typo fix.
1047
8baa6f92
KB
10482003-08-20 Michael Snyder <msnyder@redhat.com>
1049 Kevin Buettner <kevinb@redhat.com>
1050
1051 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1052 (frv_frame_init_saved_regs): Add declaration.
1053 (frame_extra_info): Add new field ``saved_regs''.
1054 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1055 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1056 Update frame related code.
1057 (frv_extract_struct_value_address): Adjust formatting.
1058 * Makefile.in (frv-tdep.o): Update dependencies.
1059 * config/frv/tm-frv.h (target_insert_watchpoint)
1060 (target_remove_watchpoint, target_insert_hw_breakpoint)
1061 (target_remove_hw_breakpoint): Delete these macros.
1062 (remote_insert_watchpoint, remote_remove_watchpoint)
1063 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1064 these declarations.
1065
87193939
MC
10662003-08-20 Michael Chastain <mec@shout.net>
1067
1068 * defs.h (ENUM_BITFIELD): New macro.
1069 * symtab.h (ENUM_BITFIELD): Use it.
1070 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1071
062103ba
SA
10722003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1073
1074 * MAINTAINERS (write after approval): Add myself.
1075
8b148df9
AC
10762003-08-18 Andrew Cagney <cagney@redhat.com>
1077
1078 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1079 * gdbarch.h, gdbarch.c: Re-generate.
1080 * infcall.c (call_function_by_hand): Adjust the SP by
1081 frame_red_zone_size before allocating any stack space.
1082 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1083 * x86-64-tdep.c (x86_64_frame_align): New function.
1084 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1085
1086 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1087 Remove code adjusting SP so that it skips over the Red Zone.
1088
954a4db8
MK
10892003-08-18 Mark Kettenis <kettenis@gnu.org>
1090
1091 * NEWS (New native configurations): Mention FreeBSD/amd64.
1092
1a241548
AC
10932003-08-18 Andrew Cagney <cagney@redhat.com>
1094
1095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1096 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1097 "m68k_frame_p".
1098 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1099
f82b2acd
MK
11002003-08-18 Mark Kettenis <kettenis@gnu.org>
1101
1102 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1103
4056d258
ML
11042003-08-18 Michal Ludvig <mludvig@suse.cz>
1105
1106 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1107 Define.
1108 * i386-linux-nat.c: Include "linux-nat.h".
1109 (child_post_startup_inferior): New function.
1110
99ab4326
MK
11112003-08-18 Mark Kettenis <kettenis@gnu.org>
1112
1113 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1114 at the start of a frameless function. This probably fixes PR
1115 backtrace/1338.
1116
c8d5f0d6
MC
11172003-08-17 Michael Chastain <mec@shout.net>
1118
1119 * symfile.c (find_sym_fns): Remove special case for apollo target.
1120
9016a515
DJ
11212003-08-17 Daniel Jacobowitz <drow@mvista.com>
1122
1123 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1124 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1125 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1126 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1127 (linux_supports_tracevforkdone): New function.
1128 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1129 TRACEVFORKDONE.
1130 (child_follow_fork): Handle vfork.
1131 (linux_handle_extended_wait): Likewise. Also handle exec.
1132 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1133 * NEWS: Mention fork tracing.
1134
c538c11c
DJ
11352003-08-17 Daniel Jacobowitz <drow@mvista.com>
1136
1137 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1138
4de4c07c
DJ
11392003-08-17 Daniel Jacobowitz <drow@mvista.com>
1140
1141 * Makefile.in (i386-linux-nat.o): Update dependencies.
1142 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1143 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1144 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1145 * i386-linux-nat.c: Include "linux-nat.h".
1146 (child_post_startup_inferior): New function.
1147 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1148 * infptrace.c (kill_inferior): Wrap in #ifdef.
1149 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1150 attaching to each LWP.
1151 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1152 (init_lin_lwp_ops): Fill in some more operations.
1153 * linux-nat.h (linux_enable_event_reporting)
1154 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1155 prototypes.
1156 * linux-nat.c (linux_enable_event_reporting): New function.
1157 (child_post_attach, linux_child_post_startup_inferior)
1158 (child_post_startup_inferior, child_follow_fork)
1159 (linux_handle_extended_wait, kill_inferior): New functions.
1160
7996bcec
AC
11612003-08-16 Andrew Cagney <cagney@redhat.com>
1162
1163 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1164 * gdbarch.h, gdbarch.c: Re-generate.
1165
3d48a7a0
MK
11662003-08-16 Mark Kettenis <kettenis@gnu.org>
1167
1168 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1169
7989c619
AC
11702003-08-16 Andrew Cagney <cagney@redhat.com>
1171
1172 * NEWS: Mention that "set prompt-escape-char" was deleted.
1173 * top.c (get_prompt_1): Delete function.
1174 (gdb_prompt_escape):
1175 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1176 prompt-escape-char" command.
1177 (MAX_PROMPT_SIZE): Delete macro.
1178 (get_prompt): Simplify, do not call get_prompt_1.
1179
07978cd8
AC
11802003-08-16 Andrew Cagney <cagney@redhat.com>
1181
1182 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1183 -Werror. -Wformat-nonliteral problems.
1184
3ff7cf9e
JB
11852003-08-15 J. Brobecker <brobecker@gnat.com>
1186
1187 Further multiarching work mostly for hppa64-*-hpux11:
1188 * hppa-tdep.h: New file.
1189 * hppa-tdep.c: #include hppa-tdep.c.
1190 (hppa32_num_regs): Renamed from hppa_num_regs.
1191 (hppa64_num_regs): New constant.
1192 (hppa64_call_dummy_breakpoint_offset): New constant.
1193 (hppa32_call_dummy_length): New constant.
1194 (hppa64_call_dummy_length): New constant.
1195 (hppa32_stack_align): Make name 32bit explicit.
1196 (hppa32_register_virtual_type): Likewise.
1197 (hppa32_extract_return_value): Likewise.
1198 (hppa32_use_struct_convention): Likewise.
1199 (hppa32_store_return_value): Likewise.
1200 (hppa64_register_virtual_type): New function.
1201 (hppa64_extract_return_value): New function.
1202 (hppa64_use_struct_convention): New function.
1203 (hppa64_store_return_value): New function.
1204 (hppa_frame_locals_address): Remove declaration, function does
1205 not exist anymore.
1206 (hppa_register_byte): Add support for PA64 ABI.
1207 (hppa_gdbarch_init): Add support for PA64 ABI.
1208 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1209 Make name 32bit explicit.
1210 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1211 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1212 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1213 (hppa64_hpux_frame_base_before_sigtramp): New function.
1214 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1215 * config/pa/tm-hppa64.h: Remove macros that are no longer
1216 necessary now that the gdbarch vector is properly setup.
1217 Transform some macros into function calls. Some minor cleanup.
1218 * config/pa/tm-hppah.h: Update function calls in macros
1219 following the function renaming in hppa-hpux-tdep.c.
1220 * Makefile.in (hppa_tdep_h): New variable.
1221 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1222
5d05ca6d
MS
12232003-08-14 Michael Snyder <msnyder@redhat.com>
1224
1225 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1226
37ba2569
JB
12272003-08-13 J. Brobecker <brobecker@gnat.com>
1228
1229 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1230 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1231 routine.
1232
aed7f26a
MS
12332003-08-13 Michael Snyder <msnyder@redhat.com>
1234
1235 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1236 (frv_saved_pc_after_call): Use deprecated ftype.
1237 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1238 (frv_remote_translate_xfer_address): Remove.
1239 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1240
752d4ac1
JB
12412003-08-13 J. Brobecker <brobecker@gnat.com>
1242
1243 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1244 initialization after the common gdbarch initialization, not before.
1245
1426ac1d
JB
12462003-08-13 J. Brobecker <brobecker@gnat.com>
1247
1248 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1249 (ADDR_BITS_REMOVE): Remove, redundant.
1250
b6fbdd1d
JB
12512003-08-13 J. Brobecker <brobecker@gnat.com>
1252
1253 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1254 gdbarch method to clear the 2 low bits of text addresses.
1255
44160db3
AC
12562003-08-12 Andrew Cagney <cagney@redhat.com>
1257
1258 * Makefile.in (dsrec.o): Update dependencies.
1259 * dsrec.c: Include "gdb_assert.h".
1260 (make_srec): Use snprintf instead of sprintf, use a literal format
1261 string.
1262
bcf7d3ca
AC
12632003-08-12 Andrew Cagney <cagney@redhat.com>
1264
1265 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1266 FRAME_OBSTACK_ZALLOC.
1267
49ed40de
KB
12682003-08-12 Kevin Buettner <kevinb@redhat.com>
1269
1270 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1271 SSE registers.
1272
b246147c
MK
12732003-08-10 Mark Kettenis <kettenis@gnu.org>
1274
1275 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1276 amd64fbsd_sc_reg_offset): Add extern declarations.
1277 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1278 declarations.
1279
d95fdc0d
BE
12802003-08-11 Ben Elliston <bje@wasabisystems.com>
1281
1282 * MAINTAINERS (write after approval): Update my mail address.
1283
cf6a0e73
AC
12842003-08-10 Andrew Cagney <cagney@redhat.com>
1285
1286 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1287
f837910f
MK
12882003-08-10 Mark Kettenis <kettenis@gnu.org>
1289
e2dbbd2d
MK
1290 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1291 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1292 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1293 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1294 i386bsd_sc_reg_offset): Add extern declarations.
1295 * i386obsd-nat.c: Include "i386-tdep.h"
1296 (_initialize_i386obsd_nat): Remove extern declarations.
1297 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1298 declarations.
1299 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1300 declarations.
1301
f837910f
MK
1302 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1303 instead of frame_read_register.
1304 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1305 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1306 SP_REGNUM.
1307 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1308 instead of frame_unwind_unsigned_register. Use
1309 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1310 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1311 instead of read_register. Use builtin_type_void_data_ptr instead
1312 of builtin_type_void_func_ptr when extracting the address of the
1313 jmp_buf.
1314 (i386_extract_return_value, i386_store_return_value,
1315 i386_pseudo_register_read, i386_pseudo_register_write): Use
1316 register_size instead REGISTER_RAW_SIZE.
1317
edcf254d
AC
13182003-08-10 Andrew Cagney <cagney@redhat.com>
1319
1320 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1321 sprintf. Make "name" constant.
1322
26604a34
MK
13232003-08-10 Mark Kettenis <kettenis@gnu.org>
1324
192285c6
MK
1325 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1326 instead of frame_read_register.
f837910f
MK
1327 (i387_print_float_info): Use get_frame_register and
1328 get_frame_register_unsigned instead of frame_register_read.
192285c6 1329
f0925262
MK
1330 * i386fbsd-nat.c: Include "i386-tdep.h".
1331 (child_resume): Make `eflags' an ULONGEST. Use
1332 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1333 instead of register_read and register_write.
1334
a144416f
MK
1335 * i386bsd-nat.c (fetch_inferior_registers,
1336 store_inferior_registers): Don't use && at the end of a line.
1337 (_initialize_i386bsd_nat): Fix typo.
1338
fec74868
MK
1339 * frame.c (_initialize_frame): Add missing backslash.
1340
87232496
MK
1341 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1342 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1343 and supply_register instead of manipulating the register buffer
1344 directly.
1345
c9b9de0b
MK
1346 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1347 * config/i386/nm-i386sol2.h
1348 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1349
26604a34
MK
1350 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1351 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1352 instructions that GCC likes to mingle into the prologue. Fixes
1353 gdb/1253 and gdb/1255.
1354
25d29d70
AC
13552003-08-09 Andrew Cagney <cagney@redhat.com>
1356
1357 Fix GDB PR cli/926.
1358 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1359 * command.h (add_setshow_uinteger_cmd): Declare.
1360 * frame.c (set_backtrace_cmd): New function.
1361 (show_backtrace_cmd): New function.
1362 * frame.c (_initialize_frame): Replace "set/show
1363 backtrace-below-main" with "set/show backtrace past-main". Add
1364 command "set/show backtrace limit".
1365 (backtrace_past_main): Rename "backtrace_below_main".
1366 (backtrace_limit): New variable.
1367 (get_prev_frame): Update. Check the backtrace_limit.
1368
9ebf4acf
AC
13692003-08-09 Andrew Cagney <cagney@redhat.com>
1370
1371 * defs.h (xstrprintf): Declare.
1372 * utils.c (xstrprintf): New function.
1373 * breakpoint.c (insert_breakpoints): Replace sprintf and
1374 non-literal format strings, with xstrprintf and cleanups.
1375 (delete_breakpoint,breakpoint_re_set): Ditto.
1376 (commands_command, insert_breakpoints): Ditto.
1377 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1378 (break_at_finish_command_1): Ditto.
1379
3771659b
AC
13802003-08-09 Andrew Cagney <cagney@redhat.com>
1381
1382 * MAINTAINERS (language support): List Adam Fedor as Objective C
1383 maintainer.
1384
b4263afa
JB
13852003-08-08 J. Brobecker <brobecker@gnat.com>
1386
1387 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1388 are now multiarched.
1389
d84defb1
JB
13902003-08-08 J. Brobecker <brobecker@gnat.com>
1391
1392 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1393 longer necessary now that hppa64 is partially multiarch'ed.
1394
f786f615
AC
13952003-08-08 Andrew Cagney <cagney@redhat.com>
1396
1397 * interps.c (interp_set): Check for a NULL "old_interp".
1398
c938e9b0
L
13992003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1400
1401 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1402 (install-only): Support DESTDIR.
1403 (uninstall): Likewise.
1404 (install-gdbtk): Likewise.
1405
9a146a11
EZ
14062003-08-08 Elena Zannoni <ezannoni@redhat.com>
1407
1408 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1409 contains something meaningful at all times.
1410
1411Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1412
62599e99 1413 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1414
56296155
BC
1415Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1416
62599e99 1417 * MAINTAINERS (write after approval): Added self.
56296155 1418
9710e734
AC
14192003-08-07 Andrew Cagney <cagney@redhat.com>
1420
1421 * inferior.h (AT_SYMBOL): Define.
1422 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1423 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1424 * mips-tdep.c (mips_call_dummy_address): Delete function.
1425 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1426 set call_dummy_address.
1427
98b3ab73
AC
14282003-08-07 Andrew Cagney <cagney@redhat.com>
1429
1430 * language.c (op_error): Delete function.
1431 (binop_type_check): Delete function.
1432 * language.h (type_op_error, range_op_error): Delete macros.
1433 (op_error): Delete declaration.
1434
2fcf52f0
AC
14352003-08-07 Andrew Cagney <cagney@redhat.com>
1436
1437 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1438
abd4220e 14392003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1440
abd4220e 1441 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1442 (x86_64_push_arguments): Skip the red zone.
abd4220e 1443
9dd5f34f
AC
14442003-08-05 Andrew Cagney <cagney@redhat.com>
1445
1446 * reggroups.c (reggroup_next): Check for the final entry.
1447
e5e78edc
AC
14482003-08-04 Andrew Cagney <cagney@redhat.com>
1449
ab4e3d93
AC
1450 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1451 * cli/cli-script.c (define_command): Call query directly, instead
1452 of passing it a buffer.
1453 * ocd.c (ocd_error): Pass error a constant format string.
1454 * remote-mips.c (mips_error): Use fputs_filtered.
1455
1062ca82
AC
1456 * solib-svr4.c (_initialize_svr4_solib): Update
1457 register_gdbarch_data call.
1458 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1459
fcc1c85c
AC
1460 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1461 (register_gdbarch_data): Delete "free" parameter. Update
1462 comments.
1463 * gdbarch.h, gdbarch.c: Re-generate.
1464 * reggroups.c (_initialize_reggroup): Update.
1465 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1466 * frame-base.c (_initialize_frame_base): Update.
1467 * frame-unwind.c (_initialize_frame_unwind): Update.
1468 * user-regs.c (_initialize_user_regs): Update.
1469 * remote.c (_initialize_remote): Update.
1470 * regcache.c (_initialize_regcache): Update.
1471
116f06ea
AC
1472 * regcache.c (xfree_regcache_descr): Delete function.
1473 (_initialize_regcache): Update call to register_gdbarch_data.
1474 (init_regcache_descr, init_legacy_regcache_descr): Use
1475 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1476
e5e78edc
AC
1477 * remote.c (free_remote_state): Delete function.
1478 (_initialize_remote): Update register_gdbarch_data.
1479 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1480 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1481
6c7d17ba
AC
14822003-08-04 Andrew Cagney <cagney@redhat.com>
1483
1484 * reggroups.c (struct reggroup_el): Define.
1485 (struct reggroups): Delete field "nr_group". Replace array
1486 "group" with a "first" to "last" linked list.
1487 (reggroups_init): Update. Allocate using gdbarch's obstack.
1488 (reggroups_free): Delete function.
1489 (add_group): Update. Add "el" parameter.
1490 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1491 (default_groups): Update.
1492 (reggroup_next): Replace reggroups.
1493 (reggroups_dump): Update.
1494 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1495 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1496 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1497
89b7795b
DJ
14982003-08-04 Daniel Jacobowitz <drow@mvista.com>
1499
1500 * Makefile.in (tui-interp.o): Update dependencies.
1501
306d9ac5
DC
15022003-08-04 David Carlton <carlton@kealia.com>
1503
1504 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1505 to internal_error call.
1506 * source.c (forward_search_command): Add "%s" format argument.
1507 (reverse_search_command): Ditto.
1508 * top.c (quit_confirm): Ditto.
1509 * cli/cli-setshow.c (do_setshow_command): Ditto.
1510 * cp-valprint.c (cp_print_class_method): Replace
1511 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1512 (cp_print_class_member): Ditto.
1513 * event-top.c (command_line_handler): Ditto.
1514 * linux-proc.c (linux_info_proc_cmd): Ditto.
1515 * p-typeprint.c (pascal_type_print_base): Ditto.
1516 * p-valprint.c (pascal_object_print_class_method): Ditto.
1517 (pascal_object_print_class_member): Ditto.
1518 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1519 * remote.c (remote_cisco_section_offsets): Ditto.
1520 * top.c (command_line_input): Ditto.
1521 * utils.c (vwarning,error_stream,quit): Ditto.
1522 * valprint.c (print_floating,print_binary_chars)
1523 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1524
57bfe177
AC
15252003-08-04 Andrew Cagney <cagney@redhat.com>
1526
1527 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1528
e546b999
AC
15292003-08-02 Andrew Cagney <cagney@redhat.com>
1530
1531 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1532 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1533 amd64fbsd-nat.c.
1534
91092ee5
AC
15352003-08-02 Andrew Cagney <cagney@redhat.com>
1536
1537 * Makefile.in: Update all dependencies and definitions.
1538
889f28e2
AF
15392003-08-02 Adam Fedor <fedor@gnu.org>
1540
1541 * linespec.c (is_objc_method_format): New function
1542 (decode_line_1, locate_first_half): Use it.
1543 Fixes PR objc/1298
1544
880bc914
AC
15452003-08-01 Andrew Cagney <cagney@redhat.com>
1546
1547 * NEWS: Mention that m32r is multi-arch.
1548 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1549 * configure.tgt: Recognize m32r-*-*.
1550 * config/m32r/tm-m32r.h: Delete file.
1551 * config/m32r/m32r.mt: New file.
1552 * m32r-rom.c (m32r_upload_command): Use hostent only when
1553 gethostname succeeds, in order to avoid a compilation
1554 warning.
1555 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1556 compiler warning.
1557
19f59343
MS
15582003-08-01 Michael Snyder <msnyder@redhat.com>
1559
1560 * sh-tdep.c (sh_frame_align): New gdbarch method.
1561 (sh_gdbarch_init): Set up frame_align method.
1562
4e7d7511
MS
15632003-07-31 Michael Snyder <msnyder@redhat.com>
1564
1565 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1566 which is already covered by the new frames infrastructure.
1567
63022984
AC
15682003-07-31 Andrew Cagney <cagney@redhat.com>
1569
1570 * user-regs.c (struct user_reg): Add "next" link.
1571 (struct user_regs): Replace "user" with "first" and "last" links.
1572 (append_user_reg): Add pre-allocated "reg" parameter.
1573 (builtin_user_regs): Provide initial value for "last".
1574 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1575 (user_regs_init): Allocate memory from the gdbarch obstack.
1576 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1577 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1578 linked list.
1579 (usernum_to_user_reg): New function.
1580 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1581 (value_of_user_reg): Use usernum_to_user_reg.
1582 (user_regs_free): Delete function.
1583 (_initialize_user_regs): Update register_gdbarch_data call.
1584
7cf6e574
DJ
15852003-07-31 Daniel Jacobowitz <drow@mvista.com>
1586
1587 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1588
c48a845b
MS
15892003-07-30 Michael Snyder <msnyder@redhat.com>
1590
4e7d7511 1591 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1592 * infcall.c (call_function_by_hand): Pass struct_addr to
1593 value_being_returned.
1594 * infcmd.c (print_return_value): Pass zero as struct_addr.
1595 * values.c (value_being_returned): If struct_addr is passed,
1596 use it instead of trying to recover it from the inferior.
1597
f0d8db19
KB
15982003-07-30 Kevin Buettner <kevinb@redhat.com>
1599
1600 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1601 the prologue analyzer won't need to attempt to extract the pc
1602 value from the woefully incomplete dummy frame.
1603 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1604 possible. Disable code which modifies the frame.
1605
e5c113a1
AC
16062003-07-28 Andrew Cagney <cagney@redhat.com>
1607
1608 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1609 to level 2.
1610 (annotate_breakpoints_table, annotate_record): Ditto.
1611 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1612 (annotate_field_name_end, annotate_field_value): Ditto.
1613 (annotate_field_end, annotate_frame_source_begin): Ditto.
1614 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1615 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1616 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1617 (annotate_frame_address_end, annotate_frame_address): Ditto.
1618 (annotate_frame_args, annotate_frame_end): Ditto.
1619 (annotate_frame_where, annotate_arg_begin): Ditto.
1620 (annotate_arg_name_end, annotate_arg_value): Ditto.
1621 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1622 (annotate_function_call, annotate_signal_name): Ditto.
1623 (annotate_signal_string, annotate_signal_name_end): Ditto.
1624 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1625 (annotate_value_begin, annotate_value_history_value): Ditto.
1626 (annotate_value_history_end, annotate_value_end): Ditto.
1627 (annotate_display_begin, annotate_display_number_end): Ditto.
1628 (annotate_display_format, annotate_display_expression): Ditto.
1629 (annotate_display_expression_end, annotate_display_value): Ditto.
1630 (annotate_display_end, annotate_array_section_begin): Ditto.
1631 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1632 (annotate_elt, annotate_array_section_end): Ditto.
1633
bb1db049
AC
16342003-07-28 Andrew Cagney <cagney@redhat.com>
1635
1636 * regcache.c (struct regcache_descr): Update comments on
1637 nr_raw_registers.
1638 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1639 sizeof_raw_register_valid_p.
1640 (init_regcache_descr): Set nr_raw_registers and
1641 sizeof_raw_register_valid_p before calling
1642 init_legacy_regcache_descr.
1643
20e6603c
AC
16442003-07-28 Andrew Cagney <cagney@redhat.com>
1645
1646 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1647 MOD NUM_REGS.
1648
db742940
DJ
16492003-07-28 Daniel Jacobowitz <drow@mvista.com>
1650
1651 * thread.c (info_threads_command): Use get_selected_frame ().
1652 Check that there is at least one non-sentinel frame.
1653
ce7f4371
SC
16542003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1655
1656 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1657 (m68hc11_pop_frame): Remove.
1658 (m68hc11_frame_saved_pc): Remove.
1659 (m68hc11_frame_chain): Remove.
1660 (m68hc11_frame_init_saved_regs): Remove.
1661 (m68hc11_init_extra_frame_info): Remove.
1662 (m68hc11_store_struct_return): Remove.
1663 (m68hc11_saved_pc_after_call): Remove.
1664
1ea653ae
SC
16652003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1666
1667 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1668 frame unwind information.
1669 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1670 and adapted for frame unwinding.
1671 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1672 (m68hc11_unwind_pc): New function.
1673 (m68hc11_frame_unwind_cache): New function to analyze frames.
1674 (m68hc11_frame_this_id): New function to create new frame struct.
1675 (m68hc11_frame_prev_register): New function to unwind a register from
1676 the frame.
1677 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1678 (m68hc11_frame_p): New function for the above.
1679 (m68hc11_frame_base_address): New function to return fp of frame.
1680 (m68hc11_frame_args_address): Update for frame.
1681 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1682 (m68hc11_unwind_sp): New function.
1683 (m68hc11_unwind_dummy_id): New function.
1684 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1685 calls.
1686
c8a7f6ac
SC
16872003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1688
1689 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1690 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1691 when we are beyond the current pc.
1692
3dc990bf
SC
16932003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1694
1695 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1696 from m68hc11_push_arguments.
1697 (m68hc11_push_arguments): Remove.
1698 (m68hc11_push_return_address): Remove.
1699 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1700 handlers; remove deprecated_extra_stack_alignment_needed.
1701
222e5d1d
AC
17022003-07-27 Andrew Cagney <cagney@redhat.com>
1703
1704 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1705 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1706 REAL_PC and not the pointer.
1707 * hppa-hpux-tdep.c: Include frame.h
1708
a7e9a47e
AC
17092003-07-27 Andrew Cagney <cagney@redhat.com>
1710
1711 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1712 GDB_MULTI_ACH_PARTIAL.
1713
7e3dd49e
AC
17142003-07-27 Andrew Cagney <cagney@redhat.com>
1715
1716 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1717 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1718 operator at start and not end of line.
1719 (decode_prologue): Ditto.
1720 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1721 frame_unwind_register_unsigned instead of
1722 frame_unwind_unsigned_register.
1723 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1724 read_register.
1725 (m32r_push_dummy_call): Use register_size instead of
1726 REGISTER_RAW_SIZE.
1727 (m32r_frame_sniffer): Replace m32r_frame_p.
1728 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1729 * m32r-rom.c (report_transfer_performance): Delete extern
1730 declaration.
1731 (m32r_load, m32r_upload_command): Use print_transfer_performance
1732 instead of report_transfer_performance.
1733 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1734 / add_show_from_set.
1735
0880807f
AC
17362003-07-26 Andrew Cagney <cagney@redhat.com>
1737
1738 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1739 store_return_value and extract_struct_value_address.
1740
64ae9269
DJ
17412003-07-26 Daniel Jacobowitz <drow@mvista.com>
1742
1743 PR c++/1267
1744 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1745 NULL, default to the section containing PC.
1746
e286caf2
SC
17472003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1748
1749 * NEWS: Mention "regs" deprecated for m68hc11 too.
1750
1751 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1752 (m68hc11_print_register): New function to print out one register.
1753 (m68hc11_print_registers_info): New function to print registers.
1754 (show_regs): Deprecate and use the above.
1755 (m68hc11_gdbarch_init): Install the print_registers_info.
1756
705b278b
JJ
17572003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1758
1759 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1760 that we have a SIGTRAP before returning non-zero.
1761
63cd4198
EZ
17622003-07-23 Michal Ludvig <mludvig@suse.cz>
1763 Elena Zannoni <ezannoni@redhat.com>
1764
1765 * linespec.c (decode_line_2): Avoid crash if
1766 find_function_start_sal() returns empty record.
1767
6926787d
AS
17682003-07-23 Andreas Schwab <schwab@suse.de>
1769
1770 * ia64-tdep.c (ia64_print_insn): New function.
1771 (ia64_gdbarch_init): Set print_insn to it.
1772 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1773 deprecated_tm_print_insn_info.
1774
708cc1b6
MS
17752003-07-22 Michael Snyder <msnyder@redhat.com>
1776
1777 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1778 handle 8-bit returns (long long).
1779 (h8300h_extract_return_value): Ditto.
1780 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1781
aebd7893
AC
17822003-07-22 Andrew Cagney <cagney@redhat.com>
1783
1784 * gdbarch.c Include "gdb_obstack.h".
1785 (struct gdbarch): Add an "obstack".
1786 (alloc_gdbarch_data): Allocate the gdbarch data using
1787 GDBARCH_OBSTACK_CALLOC.
1788 (free_gdbarch_data): Delete function.
1789 (gdbarch_obstack_zalloc): New function.
1790 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1791 Assert that the architecture is not initialized.
1792 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1793 vector from the obstack.
1794 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1795 architecture obstack.
1796 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1797 (set_gdbarch_data): Assert that the data is not initialized.
1798 (struct gdbarch_data): Delete member "free".
1799 (register_gdbarch_data): Do not initialize "free".
1800 * gdbarch.h, gdbarch.c: Re-generate.
1801
153721e6
AC
18022003-07-22 Andrew Cagney <cagney@redhat.com>
1803
1804 * configure.in (build_warnings): Add -Wformat-nonliteral.
1805 * configure: Re-generate.
1806
c193f044 18072003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1808
1809 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1810
c3228f12
EZ
18112003-07-22 Elena Zannoni <ezannoni@redhat.com>
1812
1813 * findvar.c (read_var_value): Remove case for thread local storage
1814 variables. It is now entirely handled by the dwarf2 location
1815 expression code.
1816 * printcmd.c (address_info): Ditto.
1817 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1818 enumeration value.
1819 (struct symbol): Remove objfile field, which was used by
1820 LOC_THREAD_LOCAL_STATIC only.
1821 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1822 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1823 usage of objfile pointer.
1824 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1825 thread local variables.
1826 Add include of objfiles.h.
1827 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1828 storage variables.
1829 * Makefile.in (dwarf2loc.o): Update dependencies.
1830
aef9bcd2
AC
18312003-07-22 Andrew Cagney <cagney@redhat.com>
1832
1833 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1834 get_frame_base.
1835 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1836 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1837 (struct value): Add opaque declaration.
1838 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1839
d95a8903
AC
18402003-07-21 Andrew Cagney <cagney@redhat.com>
1841
1842 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1843 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1844
4db73d49
SC
18452003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1846
1847 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1848 regcache_cooked_read_unsigned instead of read_register.
1849 (m68hc11_saved_pc_after_call): Likewise.
1850 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1851 instead of write_register.
1852 (m68hc11_register_type): New function.
1853 (m68hc11_register_virtual_type): Remove.
1854 (m68hc11_store_return_value): Convert to use the regcache.
1855 (m68hc11_extract_struct_value_address): Likewise.
1856 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1857 m68hc11_register_type; undeprecate store_return_value and
1858 extract_struct_value_address.
1859
ef2b8fcd
SC
18602003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1861
1862 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1863 and translate to use regcache.
1864 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1865
625b0b97
AC
18662003-07-18 Andrew Cagney <cagney@redhat.com>
1867
1868 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1869 * gdbarch.h, gdbarch.c: Re-generate.
1870 * i386-tdep.c (i386_gdbarch_init): Do not set
1871 DWARF2_BUILD_FRAME_INFO.
1872 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1873 unconditionally.
1874 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1875 DWARF2_BUILD_FRAME_INFO.
1876
22b0d388
AC
18772003-07-18 Andrew Cagney <cagney@redhat.com>
1878
1879 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1880 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1881
1ce5d6dd
AC
18822003-07-18 Andrew Cagney <cagney@redhat.com>
1883
1884 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1885 frame_unwind_address_in_block, instead of frame_pc_unwind.
1886 (dwarf2_frame_cache): Ditto.
1887
e6e5e94c
AC
18882003-07-18 Andrew Cagney <cagney@redhat.com>
1889
1890 * user-regs.h (struct gdbarch): Declare opaque.
1891 * ui-out.h (struct ui_file): Declare opaque.
1892 * dwarf2-frame.h (struct frame_info): Declare opaque.
1893
5483d879
KW
18942003-07-18 Kris Warkentin <kewarken@qnx.com>
1895
1896 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1897 #include "...".
1898 (procfs_meminfo): Change strerror to safe_strerror.
1899 (procfs_can_run): Remove K&R badness.
1900
278a7cf7
MS
19012003-07-17 Michael Snyder <msnyder@redhat.com>
1902
1903 * remote-sim.c: Comment typo fix.
1904
606e3b82
AC
19052003-07-17 Andrew Cagney <cagney@redhat.com>
1906
1907 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1908 configure.
1909 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1910 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1911 GDB_MULTI_ARCH_PARTIAL.
1912
c43af07c
EZ
19132003-07-17 Elena Zannoni <ezannoni@redhat.com>
1914
1915 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1916 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1917 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1918
3b85b0f1
TR
19192003-07-16 Theodore A. Roth <troth@openavr.org>
1920
1921 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1922 found.
1923 (avr_frame_unwind_cache): Don't unwind FP for main.
1924 Update a comment.
1925 Save the computed prev_sp.
1926 (avr_saved_regs_unwinder): Remove function.
1927 (avr_frame_prev_register): Use PC unwind logic from
1928 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1929
336d1bba
AC
19302003-07-16 Andrew Cagney <cagney@redhat.com>
1931
1932 * frame-base.h (frame_base_p_ftype): Delete definition.
1933 (frame_base_append_predicate): Delete declaration.
1934 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1935 (frame_unwind_append_predicate): Delete declaration.
1936 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1937 (append_predicate): Delete parameter "p".
1938 (frame_unwind_append_predicate): Delete function.
1939 (frame_unwind_append_sniffer): Update call to append_predicate.
1940 (frame_unwind_free): Delete function.
1941 (_initialize_frame_unwind): Pass NULL as "free" to
1942 register_gdbarch_data.
1943 (frame_unwind_init): Append the dummy_frame_sniffer.
1944 (frame_unwind_find_by_frame): Simplify.
1945 * frame-base.c (struct frame_base_table): Delete field "p".
1946 (append_predicate): Delete parameter "p".
1947 (frame_base_append_predicate): Delete function.
1948 (frame_base_append_sniffer): Update call to append_predicate.
1949 (frame_base_free): Delete function.
1950 (frame_base_find_by_frame): Simplify.
1951 (_initialize_frame_base): Pass NULL as "free" to
1952 register_gdbarch_data.
1953 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1954 (x86_64_sigtramp_frame_sniffer): Replace
1955 "x86_64_sigtramp_frame_p".
1956 (x86_64_init_abi): Set the frame unwind sniffers.
1957 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1958 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1959 (m68k_gdbarch_init): Set the frame unwind sniffers.
1960 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1961 "i386_sigtramp_frame_p".
1962 (i386_frame_sniffer): Replace "i386_frame_p".
1963 (i386_gdbarch_init): Set the frame unwind sniffers.
1964 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1965 (avr_gdbarch_init): Set the frame unwind sniffers.
1966 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1967 "alpha_sigtramp_frame_p"
1968 (alpha_heuristic_frame_sniffer): Replace
1969 "alpha_heuristic_frame_p".
1970 (alpha_gdbarch_init): Set the frame unwind sniffers.
1971 (alpha_dwarf2_init_abi): Ditto.
1972 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1973 "alpha_debug_frame_p".
1974 (alpha_mdebug_frame_base_sniffer): Replace
1975 "alpha_mdebug_frame_base_p".
1976 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1977 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1978 (d10v_gdbarch_init): Set the frame unwind sniffer.
1979 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1980 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1981 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1982 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1983 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1984 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1985
48db5a3c
CV
19862003-07-16 Michael Snyder <msnyder@redhat.com>
1987
1988 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1989 should go thru sh_dsp_register_sim_regno, else the dsp regs
1990 will not get the right values.
1991
19922003-07-16 Corinna Vinschen <vinschen@redhat.com>
1993
1994 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1995 deprecated_store_floating by call to store_typed_floating.
1996 (sh_sh4_register_convert_to_raw): Substitute call to
1997 deprecated_extract_floating by call to extract_typed_floating.
1998
19992003-07-16 Corinna Vinschen <vinschen@redhat.com>
2000
2001 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2002
20032003-07-16 Corinna Vinschen <vinschen@redhat.com>
2004
2005 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2006 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2007 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2008 as possible.
2009 (do_pseudo_register): Remove.
2010 (sh_push_dummy_code): New function.
2011 (sh64_store_struct_return): Rename from sh_store_struct_return.
2012 Only called for sh64 now.
2013 (sh_extract_struct_value_address): Regcache'ify.
2014 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2015 and accomodate new tasks.
2016 (sh64_push_return_address): Rename from sh_push_return_address.
2017 Only called for sh64 now.
2018 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2019 Regcache'ify.
2020 (sh3e_sh4_extract_return_value): Regcache'ify.
2021 (sh_default_store_return_value): Ditto.
2022 (sh3e_sh4_store_return_value): Ditto.
2023 (sh_default_register_byte): Remove.
2024 (sh_sh4_register_byte): Remove.
2025 (sh_default_register_raw_size): Remove.
2026 (sh_sh4_register_raw_size): Remove.
2027 (sh_register_virtual_size): Remove.
2028 (sh_sh3e_register_virtual_type): Remove.
2029 (sh_sh3e_register_type): New function.
2030 (sh_sh4_register_virtual_type): Remove.
2031 (sh_sh4_register_type): New function.
2032 (sh_default_register_virtual_type): Remove.
2033 (sh_default_register_type): New function.
2034 (do_fv_register_info): Add parameters to accomodate call from
2035 sh_print_registers_info.
2036 (do_dr_register_info): Ditto.
2037 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2038 Add parameters to accomodate call from sh_print_registers_info.
2039 (sh_do_fp_register): Ditto.
2040 (sh64_do_pseudo_register): Call do_dr_register_info,
2041 do_fv_register_info and sh_do_fp_register with default parameters.
2042 (sh_do_register): Add parameters to accomodate call from
2043 sh_print_registers_info.
2044 (sh_print_register): Ditto.
2045 (sh_print_registers_info): Rename from sh_do_registers_info.
2046 Add parameters to be used as gdbarch_print_registers_info
2047 implementation. Accomodate removed do_pseudo_register function
2048 pointer.
2049 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2050 function pointer. Call sh_print_register with default parameters.
2051 (sh64_do_registers_info): Call sh_print_registers_info instead of
2052 sh_do_registers_info.
2053 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2054 detection of deprecated vs. non-deprecated functionality.
2055 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2056 function pointer assignments by direct function calls.
2057
e8a89fe2
AC
20582003-07-15 Andrew Cagney <cagney@redhat.com>
2059
2060 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2061 (frame_register_unwind, create_new_frame): Ditto.
2062 (legacy_get_prev_frame, get_frame_type): Ditto.
2063 (get_frame_base_address): Use frame_base_find_by_frame.
2064 (get_frame_locals_address): Use frame_base_find_by_frame.
2065 (get_frame_args_address): Use frame_base_find_by_frame.
2066 * frame-base.h (frame_base_sniffer_ftype): Declare.
2067 (frame_base_append_sniffer): Declare.
2068 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2069 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2070 (frame_base_append_sniffer): New function.
2071 (frame_base_append_predicate): Add a NULL sniffer.
2072 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2073 (struct frame_base_table): Add "sniffer".
2074 (frame_base_free): Free the "sniffer" table.
2075 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2076 (frame_unwind_append_sniffer): Declare.
2077 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2078 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2079 (struct frame_unwind_table): Add "sniffer", delete "middle".
2080 (append_predicate): Add "sniffer" parameter, append the sniffer.
2081 (frame_unwind_init): Update append_predicate call.
2082 (frame_unwind_append_sniffer): New function.
2083 (frame_unwind_append_predicate): Update append_predicate call.
2084 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2085
0714963c
AC
20862003-07-15 Andrew Cagney <cagney@redhat.com>
2087
2088 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2089 before code inhibiting repeated unwind attempts. Add to
2090 commentary on that test's problems.
2091 * blockframe.c (inside_main_func): Look for "main" in the minimal
2092 symbol table.
2093 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2094 identical.
2095
d9170e22
AC
20962003-07-15 Andrew Cagney <cagney@redhat.com>
2097
2098 * complaints.c (struct explanation): Define.
2099 (struct complaints): Change type of "explanation" to "struct
2100 explanation".
2101 (symfile_explanations): Convert to a "struct explanation" table.
2102 (vcomplaint): Update.
2103
eba29c8c
ML
21042003-07-15 Michal Ludvig <mludvig@suse.cz>
2105
2106 * x86-64-linux-nat.c (regmap): Removed.
2107 (supply_gregset, fill_gregset): Call
2108 x86_64_linux_(fill,supply)_gregset functions.
2109 * x86-64-linux-tdep.c (USER_*): New defines.
2110 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2111 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2112 New functions.
2113 (fetch_core_registers): Ditto.
2114 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2115 * x86-64-linux-tdep.h: New file.
2116 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2117 and core-regset.o.
2118 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2119
68cc0bfb
MK
21202003-07-13 Mark Kettenis <kettenis@gnu.org>
2121
88a115f7
MK
2122 * x86-64-tdep.c (x86_64_store_return_value): Use
2123 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2124
68cc0bfb
MK
2125 * configure.host: Add x86_64-*-freebsd*.
2126 * configure.tgt: Add x86_64-*-freebsd*.
2127 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2128 * amd64fbsd-nat.c: New file.
2129 * amd64fbsd-tdep.c: New file.
2130 * config/i386/nm-fbsd64.h: New file.
2131 * config/i386/fbsd64.mh: New file.
2132 * config/i386/fbsd64.mt: New file.
2133
138e7be5
MK
21342003-07-11 Mark Kettenis <kettenis@gnu.org>
2135
2136 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2137 `sc_regs_offset' and `sc_fpregs_offset'.
2138 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2139 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2140 (alpha_sigtramp_register_address): Rewrite to use new members of
2141 `struct gdbarch_tdep'.
2142 (alpha_gdbarch_init): Initialize new members of struct
2143 gdbarch_tdep'.
2144 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2145 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2146 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2147 (alphafbsd_pc_in_sigtramp): Implement.
2148 (alphafbsd_sigtramp_offset): New function.
2149 (alphafbsd_sigcontext_addr): New function.
2150 (alphafbsd_init_abi): Initialize signal trampoline related members
2151 of `struct gdbarch_tdep'.
2152 (_initialize_alphafbsd_tdep): Add prototype.
2153
95303a68
TR
21542003-07-11 Theodore A. Roth <troth@openavr.org>
2155
ba292e4c
TR
2156 * Makefile.in (install-only): Quote sed expression when generating
2157 transformed_name.
95303a68 2158
6896c0c7
RH
21592003-07-11 Richard Henderson <rth@redhat.com>
2160
2161 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2162 * dwarf2-frame.c: Include complaints.h.
2163 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2164 variable initialization; return NULL on error.
2165 (decode_frame_entry): New.
2166
8edd5d01
AC
21672003-07-11 Andrew Cagney <cagney@redhat.com>
2168
c4a09524
AC
2169 * frame.h (frame_address_in_block): Delete declaration.
2170 * blockframe.c (frame_address_in_block): Delete function.
2171 (get_frame_block): Use get_frame_address_in_block.
2172 (block_innermost_frame): Ditto.
2173 * stack.c (print_frame, backtrace_command_1): Ditto.
2174
8edd5d01
AC
2175 * frame.h (get_frame_address_in_block): Declare.
2176 (frame_unwind_address_in_block): Declare.
2177 * frame.c (frame_unwind_address_in_block): New function.
2178 (get_frame_address_in_block): New function.
2179
f7968451
AC
21802003-07-10 Andrew Cagney <cagney@redhat.com>
2181
2182 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2183 pre-default. Note: re-generate has no effect.
2184
ae99b398
AC
21852003-07-10 Andrew Cagney <cagney@redhat.com>
2186
2187 * gdbarch.sh: When a variable, but not a function, compare against
2188 0. Fix problem in previous patch.
2189 * gdbarch.c: Re-generate.
2190
956ac328
AC
21912003-07-10 Andrew Cagney <cagney@redhat.com>
2192
2193 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2194 functions against NULL, not 0.
2195 * gdbarch.c: Re-generate.
2196
287c3240
FF
21972003-07-10 Fred Fish <fnf@ninemoons.com>
2198
2199 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2200 null string instead of a null pointer.
2201 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2202
32f63c4b
MS
22032003-07-09 Michael Snyder <msnyder@redhat.com>
2204
2205 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2206
402ecd56
MK
22072003-07-09 Mark Kettenis <kettenis@gnu.org>
2208
2209 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2210 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2211 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2212 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2213 * x86-64-tdep.c: ... from here.
2214
c481dac7
AS
22152003-07-09 Andreas Schwab <schwab@suse.de>
2216
2217 * m68k-tdep.h (enum struct_return): Define.
2218 (struct gdbarch_tdep): Add struct_return.
2219 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2220 bytes are padded to the right, not to the left. Pass struct value
2221 address in register %a1, not on stack.
2222 (m68k_use_struct_convention): New function.
2223 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2224 struct_return in tdep to pcc_struct_return.
2225 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2226 reg_struct_return.
2227
64176fa3
JB
22282003-07-09 Joel Brobecker <brobecker@gnat.com>
2229
2230 * somread.c (som_symfile_offsets): Fix compilation error.
2231
96a4ee76
AC
22322003-07-09 Andrew Cagney <cagney@redhat.com>
2233
2234 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2235 Add comments about the checks.
2236
1517c6d1
AC
22372003-07-08 Andrew Cagney <cagney@redhat.com>
2238
2239 * Makefile.in: Make dependency section headers consistent.
2240 (config_h): Move to $BUILD headers section.
2241 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2242 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2243 (ada-exp.tab.c): Move to YACC/LEX section.
2244 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2245 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2246
dc5dd1eb
KW
22472003-07-08 Kris Warkentin <kewarken@qnx.com>
2248
2249 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2250 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2251 of strerror with safe_strerror, use ISO C function definitions,
2252 and replace instances of sprintf with snprintf.
dc5dd1eb 2253
612dde91
AC
22542003-07-07 Andrew Cagney <cagney@redhat.com>
2255
2256 * frame.c (get_prev_frame): Enable check for identical frames.
2257 Update comments. Update error messages.
2258
492c11d3
JB
22592003-07-07 Joel Brobecker <brobecker@gnat.com>
2260
2261 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2262
376a5a49
JB
22632003-07-07 Joel Brobecker <brobecker@gnat.com>
2264
2265 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2266 sort_symtab_syms, no longer necessary.
2267
22b4a9ad
JB
22682003-07-07 Joel Brobecker <brobecker@gnat.com>
2269
2270 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2271
5bbcb741
JB
22722003-07-07 Joel Brobecker <brobecker@gnat.com>
2273
2274 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2275 (mips_register_byte): Likewise.
2276
c139e7d9
DJ
22772003-07-07 Daniel Jacobowitz <drow@mvista.com>
2278
2279 * Makefile.in (sparc_tdep_h): New.
2280 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2281 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2282 * sparc-linux-nat.c: Include "sparc-tdep.h".
2283 * sparc-nat.c: Likewise.
2284 * sparc-tdep.c: Likewise.
2285 * sparc64nbsd-nat.c: Likewise.
2286 * sparcnbsd-nat.c: Likewise.
2287 * sparcnbsd-tdep.c: Likewise.
2288 * sparc-tdep.h: New file.
2289 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2290 and sparc_npc_regnum.
2291
fd8f87c5
DJ
22922003-07-07 Daniel Jacobowitz <drow@mvista.com>
2293
2294 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2295 (mips_linux_cannot_store_register): List supported instead of
2296 unsupported registers.
2297
13adf674
DJ
22982003-07-07 Daniel Jacobowitz <drow@mvista.com>
2299
2300 * disasm.c (dump_insns): Separate instructions from addresses.
2301
8de307e0
AS
23022003-07-07 Andreas Schwab <schwab@suse.de>
2303
2304 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2305 dependencies.
2306 * m68k-tdep.c (NUM_FREGS): Delete.
2307 (SIG_PC_FP_OFFSET): Delete.
2308 (TARGET_M68K): Delete.
2309 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2310 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2311 P_MOVEL_SP, P_MOVEML_SP): Define.
2312 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2313 P_TRAP): Delete.
2314 (m68k_register_raw_size): Delete.
2315 (m68k_register_virtual_size): Delete.
2316 (m68k_register_type): Renamed from m68k_register_virtual_type and
2317 add gdbarch argument.
2318 (m68k_store_struct_return): Delete.
2319 (m68k_deprecated_extract_return_value): Delete.
2320 (m68k_deprecated_extract_struct_value_address): Delete.
2321 (m68k_frame_chain): Delete.
2322 (m68k_frame_saved_pc): Delete.
2323 (m68k_fix_call_dummy): Delete.
2324 (m68k_push_dummy_frame): Delete.
2325 (m68k_pop_frame): Delete.
2326 (m68k_extract_return_value): New function.
2327 (m68k_store_return_value): Rewrite using regcache.
2328 (m68k_extract_struct_value_address): Rewrite using regcache.
2329 (m68k_push_dummy_call): New function.
2330 (struct m68k_frame_cache): Define.
2331 (m68k_alloc_frame_cache): New function.
2332 (m68k_analyze_frame_setup): New function.
2333 (m68k_analyze_register_saves): New function.
2334 (m68k_analyze_prologue): New function.
2335 (m68k_skip_prologue): Rewrite using above functions.
2336 (m68k_unwind_pc): New function.
2337 (m68k_frame_cache): New function.
2338 (m68k_frame_this_id): New function.
2339 (m68k_frame_prev_register): New function.
2340 (m68k_frame_unwind): New variable.
2341 (m68k_frame_p): New function.
2342 (m68k_sigtramp_frame_cache): New function.
2343 (m68k_sigtramp_frame_this_id): New function.
2344 (m68k_sigtramp_frame_prev_register): New function.
2345 (m68k_sigtramp_frame_unwind): New variable.
2346 (m68k_sigtramp_frame_p): New function.
2347 (m68k_frame_base_address): New function.
2348 (m68k_frame_base): New function.
2349 (m68k_unwind_dummy_id): New function.
2350 (fill_gregset): Use regcache_collect.
2351 (fill_fpregset): Likewise.
2352 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2353 defined.
2354 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2355 deprecated_init_frame_pc, deprecated_store_struct_return,
2356 deprecated_extract_return_value, deprecated_store_return_value,
2357 deprecated_frame_chain, deprecated_frame_saved_pc,
2358 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2359 deprecated_register_virtual_size,
2360 deprecated_max_register_raw_size,
2361 deprecated_max_register_virtual_size,
2362 deprecated_register_virtual_type, deprecated_register_size,
2363 deprecated_register_byte, deprecated_register_bytes,
2364 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2365 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2366 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2367 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2368 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2369 deprecated_push_dummy_frame, deprecated_pop_frame,
2370 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2371 only if SYSCALL_TRAP is defined. Set extract_return_value,
2372 store_return_value, extract_struct_value_address, register_type,
2373 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2374 predicates.
2375 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2376 M68K_MAX_REGISTER_SIZE): Define.
2377 (struct m68k_sigtramp_info): Define.
2378 (struct gdbarch_tdep): Add get_sigtramp_info.
2379 * m68klinux-nat.c (fetch_register): Use register_size instead of
2380 REGISTER_RAW_SIZE. Don't put assignment in if.
2381 (store_register): Likewise.
2382 (fetch_inferior_registers): Likewise.
2383 (store_inferior_registers): Likewise.
2384 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2385 (m68k_linux_frame_saved_pc): Delete.
2386 (m68k_linux_sigcontext_reg_offset,
2387 m68k_linux_ucontext_reg_offset): Define.
2388 (m68k_linux_get_sigtramp_info): New function.
2389 (m68k_linux_extract_return_value): Rewrite using regcache.
2390 (m68k_linux_store_return_value): Likewise.
2391 (m68k_linux_extract_struct_value_address): Likewise.
2392 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2393 Don't set deprecated_frame_saved_pc,
2394 deprecated_extract_return_value, deprecated_store_return_value,
2395 deprecated_extract_struct_value_address. Set
2396 extract_return_value, store_return_value,
2397 extract_struct_value_address.
2398
eb8bc282
AC
23992003-07-07 Andrew Cagney <cagney@redhat.com>
2400
2401 * expprint.c: Include "user-regs.h" instead of "frame.h".
2402 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2403 frame_map_regnum_to_name.
2404 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2405 (frame_map_name_to_regnum): Simplify, call
2406 user_reg_map_name_to_regnum.
2407 (frame_map_regnum_to_name): Simplify, call
2408 user_reg_map_regnum_to_name.
2409 (frame_register_unwind): Update.
2410 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2411 (_initialize_frame_reg): Call user_reg_add_builtin.
2412 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2413 (value_of_register): Use value_of_user_reg.
2414 * eval.c (evaluate_subexp_standard): Update.
2415 * parse.c (write_dollar_variable): Update.
2416 * d10v-tdep.c (d10v_print_registers_info): Update.
2417 * infcmd.c (registers_info): Update.
2418 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2419 (builtin_regs_h): Delete macro.
2420 (user_regs_h): Define.
2421 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2422 (builtin-regs.o): Delete target.
2423 (user-regs.o): Specify dependencies.
2424 (expprint.o): Update dependencies.
2425 (findvar.o): Update dependencies.
2426 (frame.o): Update dependencies.
2427 (std-regs.o): Update dependencies.
2428
9f476a01
CF
24292003-07-06 Christopher Faylor <cgf@redhat.com>
2430
2431 * win32-nat.c (solib_symbols_add): Use one variable for all section
2432 address stuff. Pass variable rather than address of variable to
2433 safe_symbol_file_add.
2434
a731b831
AS
24352003-07-06 Andreas Schwab <schwab@suse.de>
2436
2437 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2438
9f83329d
JB
24392003-07-04 Joel Brobecker <brobecker@gnat.com>
2440
2441 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2442
27e28cc5
KW
24432003-07-04 Kris Warkentin <kewarken@qnx.com>
2444
2445 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2446
24472003-07-04 Kris Warkentin <kewarken@qnx.com>
2448
2449 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2450 * config/i386/nto.mh: New file.
2451 * config/i386/nm-nto.h: New file.
2452 * configure.host: Add i[3456]86-*-nto*.
2453
100f2e98
JB
24542003-07-03 Joel Brobecker <brobecker@gnat.com>
2455
2456 * remote-vx.c (vx_add_symbols): Fix compilation error.
2457
e23457df
AC
24582003-07-03 Andrew Cagney <cagney@redhat.com>
2459
2460 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2461 * gdbarch.h, gdbarch.c: Re-generate.
2462 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2463 (legacy_register_name): Declare.
2464 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2465 (REGISTER_NAME): Define.
2466 * sparc-tdep.c (legacy_register_name): New function.
2467 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2468 (REGISTER_NAME): Define.
2469 (hppa64_register_name): Declare.
2470 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2471 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2472 (hppa64_register_name): New function.
2473 (hppa_register_name): New function.
2474 * arch-utils.c (legacy_register_name): Delete.
2475 * arch-utils.h (legacy_register_name): Delete.
2476
38caaeec
DJ
24772003-07-03 Daniel Jacobowitz <drow@mvista.com>
2478
2479 * cli/cli-interp.c (cli_interpreter_resume): Update the
2480 cli_uiout's stream to gdb_stdout.
2481
dadd712e
AC
24822003-07-03 Andrew Cagney <cagney@redhat.com>
2483
2484 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2485 predicate.
2486 * gdbarch.h, gdbarch.c: Re-generate.
2487 * regcache.c (init_regcache_descr): Use legacy code when either
2488 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2489
c7f1390e
DJ
24902003-07-02 Daniel Jacobowitz <drow@mvista.com>
2491
2492 * NEWS: Move "set logging" entry into GDB 6.0 section.
2493
4bc8c588
JB
24942003-07-02 Jim Blandy <jimb@redhat.com>
2495
a9dd42f1
JB
2496 * s390-tdep.c (struct frame_extra_info): new member:
2497 'stack_bought_valid'.
2498 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2499 initialize fextra_info->stack_bought.
2500 (s390_frameless_function_invocation): Don't trust the value of
2501 fextra_info_ptr->stack_bought unless
2502 fextra_info->stack_bought_valid is set.
2503
4bc8c588
JB
2504 New S390 prologue analyzer.
2505 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2506 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2507 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2508 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2509 compute_x_addr, s390_on_stack, s390_store,
2510 s390_get_signal_frame_info): New functions.
2511 (S390_NUM_SPILL_SLOTS): New macro.
2512 (s390_get_frame_info): Rewritten.
2513 (is_arg_reg): Deleted.
2514
2515 Break out the decoding of S/390 instructions into separate
2516 functions, to make it more legible, and easier to check
2517 against the spec.
2518 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2519 is_rx, is_rxe): New functions.
2520 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2521 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2522 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2523 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2524 enums for opcode values. (Is this an improvement?)
2525
fd13a04a
AC
25262003-07-02 Andrew Cagney <cagney@redhat.com>
2527
2528 * i386-tdep.c: Revert change committed as part of trad-frame code
2529 below.
2530
3f8091c1
DJ
25312003-07-02 Daniel Jacobowitz <drow@mvista.com>
2532
2533 * breakpoint.c (insert_catchpoint): Make static.
2534
8dd5115e
AS
25352003-07-02 Andreas Schwab <schwab@suse.de>
2536
2537 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2538 former ia64_push_arguments and ia64_push_return_address, and use
2539 regcache functions instead of read/write_register.
2540 (ia64_gdbarch_init): Set push_dummy_call instead of
2541 deprecated_push_arguments and deprecated_push_return_address.
2542
a2229c23
AJ
25432003-07-01 Andreas Jaeger <aj@suse.de>
2544
2545 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2546 before the call.
2547 Set %rax only to number of SSE registers used.
2548
3b3850e8
AC
25492003-07-01 Andrew Cagney <cagney@redhat.com>
2550
2551 * trad-frame.h: Update comments, a -1 .addr is reserved.
2552 (trad_frame_value_p, trad_frame_addr_p): Declare.
2553 (trad_frame_reg_p): Declare.
2554 (trad_frame_set_value): Rename trad_frame_register_value.
2555 (trad_frame_set_unknown): Declare.
2556 * trad-frame.c (trad_frame_realreg_p): New function.
2557 (trad_frame_addr_p, trad_frame_value_p): New function.
2558 (trad_frame_set_unknown): New function.
2559 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2560 (trad_frame_prev_register): Use trad_frame_realreg_p,
2561 trad_frame_addr_p and trad_frame_value_p.
2562 (trad_frame_set_value): Rename trad_frame_register_value.
2563 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2564 and trad_frame_set_value.
a2229c23 2565
4d819d0e
JB
25662003-06-30 Jim Blandy <jimb@redhat.com>
2567
2568 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2569 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2570 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2571 for 16 registers, and then 32 more bytes.
2572 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2573 New macros.
2574 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2575 Move up in the file, since it's now used by is_simple_arg.
2576 (is_simple_arg): Don't assume registers are four bytes long.
2577 Exclude all double arguments. Extended floats are not simple
2578 args.
2579 (is_power_of_two): New function.
2580 (pass_by_copy_ref): Call is_power_of_two, and check that the
2581 length fits in a register, rather than listing all the acceptable
2582 sizes. Extended floats are not passed by reference.
2583 (s390_push_arguments): Don't assume registers are four bytes long.
2584 Reserve an argument register to point to the buffer for structures
2585 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2586 S390_STACK_FRAME_OVERHEAD.
2587
1ad828f1
AS
25882003-06-30 Andreas Schwab <schwab@suse.de>
2589
2590 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2591 format error message.
2592
39b00981
JB
25932003-06-30 Joel Brobecker <brobecker@gnat.com>
2594
2595 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2596
b2a7f303
DC
25972003-06-30 David Carlton <carlton@kealia.com>
2598
2599 Band-aid for PR c++/1245.
2600 * Makefile.in (cp-support.o): Depend on complaints_h.
2601 * cp-support.c: Include complaints.h. Add declaration for
2602 find_last_component.
2603 (cp_find_first_component): Separate code into
2604 cp_find_first_component_aux.
2605 (cp_find_first_component_aux): Call demangled_name_complaint.
2606 (demangled_name_complaint): New.
2607
a257b5bb
AC
26082003-06-30 Andrew Cagney <cagney@redhat.com>
2609
2610 * remote.c (remote_write_bytes): Explicitly compute and then use
2611 the payload size. Update comments to reflect. Fixes problem of
2612 GDB not sending small packets as found by Fred Fish.
2613
0a2cfde4
AC
26142003-06-30 Andrew Cagney <cagney@redhat.com>
2615
2616 * remote.c (remote_async_wait): Fix -Wformat problem.
2617
3fcb8548
AC
26182003-06-29 Andrew Cagney <cagney@redhat.com>
2619
2620 * remote.c (remote_wait): Call error, and not warning, when the
2621 packet is corrupt.
2622 (remote_async_wait): Ditto.
2623
9f9970a3
DJ
26242003-06-29 Daniel Jacobowitz <drow@mvista.com>
2625
2626 * sparc-tdep.c (sparc_y_regnum): Make external again.
2627
83a8ccca
DJ
26282003-06-29 Daniel Jacobowitz <drow@mvista.com>
2629
2630 * cli/cli-logging.c (pop_output_files): Add void to function
2631 definition.
2632
d2cf594a
AC
26332003-06-29 Andrew Cagney <cagney@redhat.com>
2634
2635 * frame.c (frame_register_unwind): Use unsigned char when dumping
2636 the buffer contents.
2637
0fac0b41
DJ
26382003-06-28 Daniel Jacobowitz <drow@mvista.com>
2639
2640 * cli/cli-logging.c: New file.
2641 * cli-out.c (struct ui_out_data): Add original_stream.
2642 (cli_redirect): New function.
2643 (cli_ui_out_impl): Add cli_redirect.
2644 (cli_out_new): Initialize original_stream.
2645 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2646 (uo_redirect, ui_out_redirect): New.
2647 * ui-out.h (struct ui_out_impl): Add redirect member.
2648 (redirect_ftype): New.
2649 (ui_out_redirect): Add prototype.
2650 * Makefile.in: Add rules for cli-logging.c.
2651 * NEWS: Mention "set logging".
2652
88a07d7c
EZ
26532003-06-27 Elena Zannoni <ezannoni@redhat.com>
2654
2655 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2656
4eb58876
AC
26572003-06-27 Andrew Cagney <cagney@redhat.com>
2658
2659 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2660 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2661 * avr-tdep.c (avr_call_dummy_address): Delete function.
2662 (avr_gdbarch_init): Do not set call_dummy_address.
2663
1549f619
EZ
26642003-06-27 Elena Zannoni <ezannoni@redhat.com>
2665
2666 * symfile.c (syms_from_objfile): Move variables to inner block.
2667 Move the checks for the non-mainline case a bit earlier to avoid
2668 doing some useless computations.
2669
3cb3398d
EZ
26702003-06-27 Elena Zannoni <ezannoni@redhat.com>
2671
2672 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2673
3799ccc6
EZ
26742003-06-26 Elena Zannoni <ezannoni@redhat.com>
2675
2676 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2677 sections.
2678
ce1f6491
MC
26792003-06-26 Michael Chastain <mec@shout.net>
2680
2681 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2682 gdb/testsuite/gdb.c++/pr-1210.exp.
2683
d958dfd0
AC
26842003-06-26 Andrew Cagney <cagney@redhat.com>
2685
2686 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2687 altivec_expression.h and altivec_registers.h.
2688
d31431ed
AC
26892003-06-26 Andrew Cagney <cagney@redhat.com>
2690
2691 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2692 info->mach when MIPS16. Patch suggested by Fred Fish.
2693
714b1282
AC
26942003-06-26 Andrew Cagney <cagney@redhat.com>
2695
2696 * utils.c (internal_vproblem): Print the problem to a reason
2697 buffer and then pass to query. Make the msg variable more local.
2698
42efa47a
AC
26992003-06-26 Andrew Cagney <cagney@redhat.com>
2700
2701 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2702 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2703 * gdbarch.h, gdbarch.c: Re-generate.
2704 * frame-base.c (default_frame_args_address): Update. Use
2705 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2706 not available.
2707 (default_frame_locals_address): Ditto for
2708 DEPRECATED_FRAME_LOCALS_ADDRESS.
2709 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2710 (vax_frame_num_args): Update.
2711 (vax_gdbarch_init): Update.
2712 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2713 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2714 * mcore-tdep.c (mcore_gdbarch_init): Update.
2715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2716 * ia64-tdep.c (ia64_gdbarch_init): Update.
2717 * symtab.h (address_class): Update comments.
2718 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2719 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2720 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2721 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2722 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2723 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2724 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2725 * alpha-mdebug-tdep.c: Update.
2726 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2727
8ffd9b1b
AJ
27282003-06-26 Andreas Jaeger <aj@suse.de>
2729
2730 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2731 of SSE registers so that varargs functions work. Rework handling
2732 of passing arguments on the stack.
2733 (x86_64_store_return_value): Return double and float values in SSE
2734 register.
2735
e8ac10a6
MC
27362003-06-24 Michael Chastain <mec@shout.net>
2737
2738 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2739 the "constructor breakpoints ignored" bug.
2740
986af8e6
DC
27412003-06-25 David Carlton <carlton@kealia.com>
2742
2743 * MAINTAINERS: Update e-mail address.
2744
d64558a5
JB
27452003-06-24 Jim Blandy <jimb@redhat.com>
2746
e538d2d7
JB
2747 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2748
02631ec0
JB
2749 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2750 function.
2751 (ppc_linux_init_abi): Register it as the
2752 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2753
e716d87a
JB
2754 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2755 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2756 method.
2757
d64558a5
JB
2758 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2759 (ppc64_standard_linkage_target): Use it.
2760
449a5da4
AC
27612003-06-23 Andrew Cagney <cagney@redhat.com>
2762
2763 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2764 for 0 "int0" and 4 "int32" sized registers.
2765 * gdbtypes.c (builtin_type_int0): Define.
2766 (build_gdbtypes): Initialize builtin_type_int0.
2767 * gdbtypes.h (builtin_type_int0): Declare.
2768
b2a02dda
SC
27692003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2770
2771 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2772 as characters are unsigned.
2773
fba3138e
DJ
27742003-06-22 Daniel Jacobowitz <drow@mvista.com>
2775
2776 PR gdb/1179
2777 * dwarfread.c (struct_type): Skip static fields without crashing.
2778
f6c8180b
AC
27792003-06-22 Andrew Cagney <cagney@redhat.com>
2780
2781 GDB 6.0 branch created.
f2c06f52
AC
2782 * README: Update.
2783 * PROBLEMS: Update. Empty.
2784 * NEWS: Update.
f6c8180b 2785
ae822768
DJ
27862003-06-22 Daniel Jacobowitz <drow@mvista.com>
2787
2788 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2789 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2790
261de166
AC
27912003-06-22 Andrew Cagney <cagney@redhat.com>
2792
2793 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2794 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2795 Velikov.
2796
30e94205
DJ
27972003-06-22 Daniel Jacobowitz <drow@mvista.com>
2798
2799 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2800 compilers.
2801
9e14d721
DJ
28022003-06-21 Daniel Jacobowitz <drow@mvista.com>
2803
2804 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2805 argument of val_print.
2806 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2807 to the address argument of baseclass_offset or target_read_memory.
2808 Do add it to the argument of cp_print_value_fields.
2809
a4b8ebc8
AC
28102003-06-21 Andrew Cagney <cagney@redhat.com>
2811
2812 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2813 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2814 instead of 0..NUM_REGS.
2815 (mips_register_reggroup_p): New function.
2816 (mips_pseudo_register_write): New function.
2817 (mips_pseudo_register_read): New function.
2818 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2819 based on the register's type.
2820 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2821 cooked.
2822 (mips_get_saved_register): Simplify. Assert that REGNO is a
2823 pseudo / cooked.
2824 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2825 (mips_register_type): Replace mips_register_virtual_type. Map
2826 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2827 when available.
2828 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2829 that the register is cooked / virtual.
2830 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2831 Only get the extra info when needed.
2832 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2833 (mips32_heuristic_proc_desc): Fetch the cooked register.
2834 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2835 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2836 (mips_print_register): Use gdbarch_register_type, instead of
2837 REGISTER_VIRTUAL_TYPE.
2838 (print_gp_register_row): Use gdbarch_register_type, instead of
2839 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2840 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2841 Print the pseudo / cooked registers.
2842 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2843 Print the pseudo / cooked registers.
2844 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2845 REG_NUM is pseudo / cooked.
2846 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2847 (mips_n32n64_xfer_return_value): Ditto.
2848 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2849 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2850 (mips_register_sim_regno): New function.
2851 (mips_gdbarch_init): Set deprecated_register_byte,
2852 register_group_p, pseudo_register_write, pseudo_register_read,
2853 register_sim_regno, and num_pseudo_regs. Set register_type,
2854 instead of register_virtual_type.
2855 * Makefile.in (mips-tdep.o): Update dependencies.
2856 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2857 REGISTER_VIRTUAL_TYPE.
2858 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2859 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2860 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2861 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2862 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2863
325ed089
DJ
28642003-06-21 Daniel Jacobowitz <drow@mvista.com>
2865
2866 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2867 * cli/cli-cmds.c: Include "gdb_vfork.h".
2868 (shell_escape): Use vfork.
2869
f0e7d0e8
AC
28702003-06-21 Andrew Cagney <cagney@redhat.com>
2871
c57bb9fa
AC
2872 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2873 32 bit floating-point register saves.
2874
6e51443a
AC
2875 * frame.h (deprecated_unwind_get_saved_register): Delete.
2876 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2877 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2878 and deprecated_get_next_frame_hack instead of
2879 deprecated_unwind_get_saved_register.
2880
ed183c7c
AC
2881 * mips-tdep.c (mips_dump_tdep): Do not print
2882 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2883
f0e7d0e8
AC
2884 * frame.c (get_frame_register): New function.
2885 (frame_unwind_register_signed): New function.
2886 (get_frame_register_signed): New function.
2887 (frame_unwind_register_unsigned): New function.
2888 (get_frame_register_unsigned): New function.
2889 * frame.h: Add comments on naming schema.
2890 (get_frame_register, frame_unwind_register_signed): Declare.
2891 (get_frame_register_signed, get_frame_register_signed): Declare.
2892 (frame_unwind_register_unsigned): Declare.
2893 (get_frame_register_unsigned): Declare.
2894
2224d941
TR
28952003-06-20 Theodore A. Roth <troth@openavr.org>
2896
2897 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2898
8619218d
TR
28992003-06-20 Theodore A. Roth <troth@openavr.org>
2900
2901 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2902 (avr_read_sp): Ditto.
2903
0b1b50c0
DJ
29042003-06-20 Daniel Jacobowitz <drow@mvista.com>
2905
2906 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2907 * config/arm/nm-linux.h: Likewise.
2908 * config/arm/tm-linux.h: Likewise.
2909 * config/ia64/nm-linux.h: Likewise.
2910 * config/ia64/tm-ia64.h: Likewise.
2911 * config/s390/tm-linux.h: Likewise.
2912 * config/s390/tm-s390.h: Likewise.
2913 * s390-nat.c: Likewise.
2914 * s390-tdep.c: Likewise.
2915
2916 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2917 * config/ia64/linux.mt: Likewise.
2918 * config/m68k/linux.mh: Likewise.
2919 * config/mips/linux.mt: Likewise.
2920 * config/powerpc/linux.mh: Likewise.
2921 * config/sh/linux.mt: Likewise.
2922
c8c18e65
KW
29232003-06-19 Kris Warkentin <kewarken@qnx.com>
2924
2925 * solib.c (solib_open): Change tests for whether to search
2926 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2927 comments.
2928
dcccef2e
TR
29292003-06-19 Theodore A. Roth <troth@openavr.org>
2930
2931 * avr-tdep.c (avr_frame_address): Delete function.
2932 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2933 set_gdbarch_frame_args_address.
2934
5861a190
AC
29352003-06-19 Andrew Cagney <cagney@redhat.com>
2936
2937 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2938 (REGISTER_CONVERT_FROM_TYPE): Delete.
2939 (mips_register_convert_to_type): Delete declaration.
2940 (mips_register_convert_from_type): Delete declaration.
2941 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2942 kernel/.
2943
0274a8ce
MS
29442003-06-19 Michael Snyder <msnyder@redhat.com>
2945
2946 * linux-nat.h: New file.
2947 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2948 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2949 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2950 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2951 (linux_make_note_section): Iterate over lwps instead of threads.
2952 (linux_do_thread_registers): Use lwp instead of merged pid.
2953 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2954 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2955 Add dependency on linux_nat_h.
2956
adf5f719
TR
29572003-06-19 Theodore A. Roth <troth@openavr.org>
2958
2959 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2960
6766a268
DJ
29612003-06-19 Daniel Jacobowitz <drow@mvista.com>
2962
2963 * varobj.c (get_type, get_target_type): Use check_typedef.
2964
1171114a
DJ
29652003-06-19 Daniel Jacobowitz <drow@mvista.com>
2966
2967 * breakpoint.c (insert_catchpoint): Call internal_error.
2968
adcf68a2
TR
29692003-06-19 Theodore A. Roth <troth@openavr.org>
2970
2971 * avr-tdep.c (avr_push_dummy_code): Delete function.
2972 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2973
ea67f13b
DJ
29742003-06-19 Daniel Jacobowitz <drow@mvista.com>
2975
2976 * arch-utils.c (default_prepare_to_proceed): Remove.
2977 (generic_prepare_to_proceed): Remove.
2978 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2979 (generic_prepare_to_proceed): Remove prototype.
2980 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2981 * gdbarch.c: Regenerate.
2982 * gdbarch.h: Regenerate.
2983 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2984 * hppah-nat.c (hppa_switched_threads): Remove.
2985 * infrun.c (prepare_to_proceed): New static function, copied from
2986 generic_prepare_to_proceed. Remove select_it argument.
2987 (proceed): Call prepare_to_proceed.
2988 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2989 variables.
2990 (ptrace_wait): Don't set the removed variables.
2991 (hppa_switched_threads): Remove.
2992 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2993 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2994 (lin_lwp_prepare_to_proceed): Remove prototype.
2995 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
2996 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
2997
4add8633
TR
29982003-06-18 Theodore A. Roth <troth@openavr.org>
2999
3000 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3001 trad-frame.h.
3002 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3003 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3004 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3005 (AVR_PROLOGUE_*): Enumerate prologue types.
3006 (struct frame_extra_info): Remove.
3007 (struct avr_unwind_cache): Define.
3008 (avr_write_sp): Delete function.
3009 (avr_read_fp): Ditto.
3010 (avr_init_extra_frame_info): Ditto.
3011 (avr_pop_frame): Ditto.
3012 (avr_frame_saved_pc): Ditto.
3013 (avr_saved_pc_after_call): Ditto.
3014 (avr_push_return_address): Ditto.
3015 (avr_frame_chain): Ditto.
3016 (avr_store_struct_return): Ditto.
3017 (avr_push_arguments): Ditto.
3018 (avr_scan_prologue): Update comments. Changed to set up the info for
3019 cache unwinding. Now returns end of prologue PC.
3020 (avr_skip_prologue): Better handling of functions lacking a prologue
3021 by using avr_scan_prologue.
3022 (avr_scan_arg_moves): New function.
3023 (avr_saved_regs_unwinder): Ditto.
3024 (avr_frame_unwind_cache): Ditto.
3025 (avr_unwind_pc): Ditto.
3026 (avr_frame_this_id): Ditto.
3027 (avr_frame_prev_register): Ditto.
3028 (avr_frame_p): Ditto.
3029 (avr_frame_base_address ): Ditto.
3030 (avr_unwind_dummy_id): Ditto.
3031 (avr_push_dummy_code): Ditto.
3032 (push_stack_item): Ditto.
3033 (pop_stack_item): Ditto.
3034 (avr_push_dummy_call): Ditto.
3035 (struct stack_item): Define.
3036 (avr_frame_unwind): Declare structure.
3037 (avr_frame_base): Ditto.
3038 (avr_gdbarch_init): Remove calls to
3039 set_gdbarch_deprecated_init_frame_pc,
3040 set_gdbarch_deprecated_target_read_fp,
3041 set_gdbarch_deprecated_dummy_write_sp,
3042 set_gdbarch_deprecated_fp_regnum,
3043 set_gdbarch_deprecated_push_arguments,
3044 set_gdbarch_deprecated_push_return_address,
3045 set_gdbarch_deprecated_pop_frame,
3046 set_gdbarch_deprecated_store_struct_return,
3047 set_gdbarch_deprecated_frame_init_saved_regs,
3048 set_gdbarch_deprecated_init_extra_frame_info,
3049 set_gdbarch_deprecated_frame_chain,
3050 set_gdbarch_deprecated_frame_saved_pc,
3051 set_gdbarch_deprecated_saved_pc_after_call.
3052 Add calls to set_gdbarch_push_dummy_call,
3053 set_gdbarch_push_dummy_code,
3054 frame_unwind_append_predicate,
3055 frame_base_set_default,
3056 set_gdbarch_unwind_dummy_id,
3057 set_gdbarch_unwind_pc.
3058 Wrap a long line.
3059
7be04a68
MS
30602003-06-18 Corinna Vinschen <vinschen@redhat.com>
3061
3062 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3063 registers for H8/300S.
3064 (h8300_print_registers_info): Ditto.
8ffd9b1b 3065 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3066
ae087d01
DJ
30672003-06-18 Daniel Jacobowitz <drow@mvista.com>
3068
3069 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3070 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3071 (lin_lwp_wait): Likewise. Update comments.
3072 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3073 (pull_pid_from_list, linux_record_stopped_pid): New.
3074
07d8f827
SC
30752003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3076
3077 * ada-lang.c (scan_discrim_bound): Name first argument.
3078 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3079 declared by ALL_BLOCK_SYMBOLS.
3080
7cb47b14
SC
30812003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3082
3083 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3084 ("regcache.h"): Include it.
3085 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3086
6ad8ae5c
DJ
30872003-06-17 Daniel Jacobowitz <drow@mvista.com>
3088
3089 * NEWS: Mention gdbserver detach change and "disconnect" command.
3090 * infcmd.c (disconnect_command): New function.
3091 (_initialize_infcmd): Add ``disconnect'' command.
3092 * remote.c (remote_async_detach): Delete.
3093 (remote_detach): Merge remote_async_detach.
3094 (remote_disconnect): New.
3095 (init_remote_ops): Set to_disconnect.
3096 (init_remote_cisco_ops): Likewise.
3097 (init_remote_async_ops): Likewise. Use remote_detach.
3098 * target.c (cleanup_target): Default to_disconnect.
3099 (update_current_target): Inherit to_disconnect.
3100 (target_disconnect, debug_to_disconnect): New functions.
3101 (setup_target_debug): Set to_disconnect.
3102 * target.h (struct target_ops): Add to_disconnect.
3103 (target_disconnect): Add prototype.
3104
687595f9
DJ
31052003-06-17 Daniel Jacobowitz <drow@mvista.com>
3106
3107 * breakpoint.c (insert_catchpoint): New function.
3108 (insert_breakpoints): Use catch_exceptions to call
3109 insert_catchpoint. Disable catchpoints if they fail to insert.
3110
29239a8f
DJ
31112003-06-17 Daniel Jacobowitz <drow@mvista.com>
3112
3113 * symfile.c (reread_symbols): Clear sym_private.
3114
2cdf3c63
AC
31152003-06-17 Andrew Cagney <cagney@redhat.com>
3116
3117 * trad-frame.h (struct frame_info): Add opaque declaration.
3118 * remote-fileio.h (struct cmd_list_element): Add opaque
3119 declaration.
3120 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3121 comments.
3122
cf0e1e0d
DJ
31232003-06-17 Daniel Jacobowitz <drow@mvista.com>
3124
3125 * remote.c (remote_prepare_to_store): Replace call to
3126 deprecated_read_register_bytes with multiple regcache_raw_read
3127 calls.
3128
192cdb19
KW
31292003-06-17 Kris Warkentin <kewarken@qnx.com>
3130
3131 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3132 (nto_find_and_open_solib): Likewise.
3133 (nto_init_solib_absolute_prefix): Likewise.
3134 (_initialize_nto_tdep): Fix indentation.
3135
89929b45
KW
31362003-06-17 Kris Warkentin <kewarken@qnx.com>
3137
3138 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3139
46019f27
KW
31402003-06-17 Kris Warkentin <kewarken@qnx.com>
3141
3142 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3143
1a38736e
JB
31442003-06-17 Jim Blandy <jimb@redhat.com>
3145
3146 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3147
3605c34a
TR
31482003-06-16 Theodore A. Roth <troth@openavr.org>
3149
3150 * avr-tdep.c (avr_extract_return_value): New function.
3151 (avr_gdbarch_init): Set extract_return_value method.
3152
870b3035
AC
31532003-06-16 Andrew Cagney <cagney@redhat.com>
3154
3155 * frame.h (deprecated_get_next_frame_hack): Declare.
3156 * frame.c (legacy_saved_regs_prev_register): Only require
3157 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3158 there are always saved regs.
3159 (deprecated_generic_get_saved_register): Do not require
3160 DEPRECATED_FRAME_INIT_SAVED_REGS.
3161 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3162 use frame ID unwind instead.
3163 (deprecated_get_next_frame_hack): New function.
3164
63d47a7d
CV
31652003-06-16 Corinna Vinschen <vinschen@redhat.com>
3166
3167 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3168 (h8300_push_dummy_call): ...this function. Some minor optimization.
3169 (h8300_push_return_address): Remove.
3170 (h8300_gdbarch_init): Remove calls to
3171 set_gdbarch_deprecated_dummy_write_sp,
3172 set_gdbarch_deprecated_push_arguments and
3173 set_gdbarch_deprecated_push_return_address.
3174 Add call to set_gdbarch_push_dummy_call.
3175
4bb1dc5e
CV
31762003-06-16 Corinna Vinschen <vinschen@redhat.com>
3177
3178 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3179 (E_PSEUDO_EXR_REGNUM): Ditto.
3180 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3181 registers into safe registers.
4bb1dc5e
CV
3182 (h8300_skip_prologue): Check for stm instruction to push registers
3183 used for register variables onto stack.
3184 (gdb_print_insn_h8300): Remove.
3185 (h8300_examine_prologue): Add a comment.
3186 (h8300_register_name): Take pseudo registers into account.
3187 (h8300s_register_name): Ditto.
3188 (h8300sx_register_name): Ditto.
3189 (h8300_print_register): Ditto.
3190 (h8300_print_registers_info): Define "nice" printing order.
3191 (h8300_saved_pc_after_call): Take pseudo registers into account.
3192 (h8300_register_type): Ditto. Return type used for remote connection
3193 when requesting real CCR or EXR register, return actual type when
3194 requesting pseudo CCR or EXR.
3195 (h8300_pseudo_register_read): New function.
3196 (h8300_pseudo_register_write): Ditto.
3197 (h8300_dbg_reg_to_regnum): Ditto.
3198 (h8300s_dbg_reg_to_regnum): Ditto.
3199 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3200 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3201 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3202 set_gdbarch_print_insn architecture dependent.
3203 Call set_gdbarch_pseudo_register_read and
3204 set_gdbarch_pseudo_register_write.
3205 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3206
a59fe496
AC
32072003-06-16 Andrew Cagney <cagney@redhat.com>
3208
3209 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3210 * gdbarch.h, gdbarch.c: Re-generate.
3211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3212 * s390-tdep.c (s390_gdbarch_init): Update.
3213 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3214 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3215 * mips-tdep.c (mips_gdbarch_init): Update.
3216 * mcore-tdep.c (mcore_gdbarch_init): Update.
3217 * cris-tdep.c (cris_gdbarch_init): Update.
3218 * infcall.c (call_function_by_hand): Update.
3219 * ia64-tdep.c (ia64_push_arguments): Update comment.
3220 * frame.c (legacy_get_prev_frame): Do not assume
3221 SAVE_DUMMY_FRAME_TOS_P.
3222 * dummy-frame.c (find_dummy_frame): Update comment.
3223
6f4e5a41
AC
32242003-06-16 Andrew Cagney <cagney@redhat.com>
3225
3226 * regcache.c (do_cooked_read): Do not use register_valid_p.
3227
72fab697
TR
32282003-06-15 Theodore A. Roth <troth@openavr.org>
3229
3230 * avr-tdep.c (avr_register_type): Remove a blank line.
3231 (avr_scan_prologue): Correct some comments.
3232
e3d8b004
TR
32332003-06-15 Theodore A. Roth <troth@openavr.org>
3234
3235 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3236 prologue types.
8ffd9b1b 3237 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3238 option.
3239 Add code to scan -mcall-prologues for mega devices.
3240
866b76ea
TR
32412003-06-15 Theodore A. Roth <troth@openavr.org>
3242
3243 * avr-tdep.c (avr_register_byte): Delete function.
3244 (avr_register_raw_size): Delete function.
3245 (avr_register_virtual_size): Delete function.
3246 (avr_register_virtual_type): Delete function.
3247 (avr_register_type): New function.
3248 (avr_address_to_pointer): Remove unused code.
3249 (avr_read_fp): Need to read FP as two separate bytes due to change to
3250 avr_register_type() usage.
3251 (avr_gdbarch_init): Don't set deprecated_register_size.
3252 Don't set deprecated_register_bytes.
3253 Don't set deprecated_register_byte.
3254 Don't set deprecated_register_raw_size.
3255 Don't set deprecated_max_register_raw_size.
3256 Don't set deprecated_register_virtual_size.
3257 Don't set deprecated_max_register_virtual_size.
3258 Don't set deprecated_register_virtual_type.
3259 Set register_type method.
3260
3993f6b1
DJ
32612003-06-15 Daniel Jacobowitz <drow@mvista.com>
3262
3263 * Makefile.in (linux-nat.o): Add rule.
3264 * linux-nat.c: New file.
3265 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3266 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3267 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3268 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3269 * config/arm/linux.mh (NATDEPFILES): Likewise.
3270 * config/i386/linux.mh (NATDEPFILES): Likewise.
3271 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3272 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3273 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3274 * config/mips/linux.mh (NATDEPFILES): Likewise.
3275 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3276 * config/s390/s390.mh (NATDEPFILES): Likewise.
3277 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3278
786a90bb
MK
32792003-06-15 Mark Kettenis <kettenis@gnu.org>
3280
3281 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3282 replace out-of-date comment.
3283
3bd3f01e
AC
32842003-06-15 Andrew Cagney <cagney@redhat.com>
3285
3286 * rdi-share/host.h (Fail): Change to a varargs function.
3287 * remote-rdi.c (Fail): Update.
8ffd9b1b 3288
de5b9bb9
MK
32892003-06-15 Mark Kettenis <kettenis@gnu.org>
3290
3291 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3292 (i386_convert_register_p, i386_register_to_value,
3293 i386_register_from_value): Handle types longer than 8 bytes.
3294
d532c08f
MK
32952003-06-15 Mark Kettenis <kettenis@gnu.org>
3296
3297 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3298 Move floating-point code to new function in i387-tdep.c.
3299 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3300 New functions containing code moved here from i386-tdep.c.
3301 * i387-tdep.h: Add opaque declaration for `struct type'.
3302 (i387_register_to_value, i387_value_to_register): New prototypes.
3303 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3304 (x86_64_init_abi): Set convert_register_p, register_to_value and
3305 value_to_register here.
8ffd9b1b 3306
42c466d7
AC
33072003-06-14 Andrew Cagney <cagney@redhat.com>
3308
3309 * mips-tdep.c (mips_register_to_value): Make static.
3310 (mips_value_to_register): Make static.
3311 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3312 * ia64-tdep.c (ia64_register_raw_size): Make static.
3313 (ia64_register_virtual_size): Make static.
3314 (ia64_register_byte): Make static.
3315 * i387-tdep.c: Include "i387-tdep.h".
3316 (print_387_control_word): Delete function.
3317 (print_387_status_word): Delete function.
3318 (print_387_status_bits): Delete function.
3319 (print_387_control_bits): Delete function.
3320 * Makefile.in (i387-tdep.o): Update dependencies.
3321 * rdi-share/host.h (Fail): Declare.
3322 * remote-rdi.c (Fail): Update to match declaration.
3323
2a9cda49
AC
33242003-06-14 Andrew Cagney <cagney@redhat.com>
3325
3326 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3327 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3328 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3329 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3330 * README: Delete reference to remote-array.
3331 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3332 (remote-array.o): Delete target.
3333 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3334 * remote-array.c: Delete file.
3335
ff2e87ac
AC
33362003-06-14 Andrew Cagney <cagney@redhat.com>
3337 Mark Kettenis <kettenis@gnu.org>
3338
3339 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3340 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3341 parameter with "frame".
3342 * gdbarch.h, gdbarch.c: Re-generate.
3343 * frame.h (put_frame_register): Declare.
3344 * frame.c (put_frame_register): New function.
3345 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3346 (legacy_register_to_value): Rewrite, use "frame" to get the
3347 register value.
3348 (legacy_value_to_register): Rewrite, use "frame" to find the
3349 register's location before storing.
3350 * arch-utils.h (legacy_convert_register_p): Update.
3351 (legacy_register_to_value, legacy_value_to_register): Update.
3352 * findvar.c (value_from_register): Rewrite, eliminate use of
3353 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3354 "frame" to REGISTER_TO_VALUE.
3355 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3356 lval_reg_frame_relative + lval_register branch of the switch. Do
3357 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3358 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3359 I386_EDI_REGNUM): New defines.
3360 (i386_next_regnum, i386_convert_register_p,
3361 i386_register_to_value, i386_value_to_register): New functions.
3362 (i386_register_convertible, i386_register_convert_to_virtual,
3363 i386_convert_to_raw): Remove functions.
3364 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3365 value_to_register instead of register_convertible,
3366 register_convert_to_virtual and register_convert_to_raw.
3367 * mips-tdep.c (mips_convert_register_p): New function.
3368 (mips_value_to_register): Replace mips_register_convert_from_type.
3369 (mips_register_to_value): Replace mips_register_convert_to_type.
3370 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3371 register_to_value.
3372 * alpha-tdep.c (alpha_convert_register_p): Update.
3373 (alpha_value_to_register): Update, store the register.
3374 (alpha_register_to_value): Update, fetch the register.
3375
98be1e77
TR
33762003-06-14 Theodore A. Roth <troth@openavr.org>
3377
3378 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3379 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3380 Don't set deprecated_call_dummy_words.
3381 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3382 Don't set remote_translate_xfer_address.
3383 (avr_io_reg_read_command): Remove commented out debug printf.
3384 Wrap a long line.
3385
57bc6122
TR
33862003-06-14 Theodore A. Roth <troth@openavr.org>
3387
3388 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3389 causes gdb to seg fault.
3390
eb01fc62
DJ
33912003-06-14 Daniel Jacobowitz <drow@mvista.com>
3392
3393 * sparc-nat.c (fetch_inferior_registers): Correct
3394 a reference to "registers".
3395
3b3e6bee
DJ
33962003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3397
3398 * Makefile.in (exc_request_U_h): Define
3399 (exc_request_S_h): Likewise.
3400 (msg_reply_S_h): Likewise.
3401 (msg_U_h): Likewise.
3402 (notify_S_h): Likewise.
3403 (process_reply_S_h): Likewise.
3404 (gnu-nat.o): Depend on gdb_obstack_h
3405 * gnu-nat.c: Include "gdb_obstack.h".
3406
b8de8283
AC
34072003-06-13 Andrew Cagney <cagney@redhat.com>
3408
3409 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3410 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3411
f3be58bc
AC
34122003-06-13 Andrew Cagney <cagney@redhat.com>
3413
3414 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3415 when deprecated REGISTER macros can be deleted.
3416 * gdbarch.h, gdbarch.c: Re-generate.
3417
4c0122c8
JB
34182003-06-13 Jim Blandy <jimb@redhat.com>
3419
3420 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3421 Linux entry point symbols for _dl_debug_state, too.
3422
3e210248
AC
34232003-06-13 Andrew Cagney <cagney@redhat.com>
3424
3425 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3426 available, do not use the FP register, and always save the TOS.
3427 * dummy-frame.c (dummy_frame_this_id): Do not assert
3428 SAVE_DUMMY_FRAME_TOS.
3429 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3430 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3431 (i386_push_dummy_call): Add 8 to the returned SP.
3432 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3433 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3434 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3435 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3436 (x86_64_push_dummy_call): Return "sp + 16".
3437 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3438 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3439 save_dummy_frame_tos.
3440
0b65af49
JB
34412003-06-13 Jim Blandy <jimb@redhat.com>
3442
3443 * frv-tdep.c (frv_use_struct_convention): Delete static
3444 declaration for function deleted in my change of 2003-06-12.
3445
4ea2465e
TR
34462003-06-13 Theodore A. Roth <troth@openavr.org>
3447
3448 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3449 (avr_pointer_to_address): Shift code addrs left 1 bit.
3450 (avr_convert_from_func_ptr_addr): Delete function since operation is
3451 better handled by avr_address_to_pointer and avr_pointer_to_address.
3452 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3453
1581182a
MK
34542003-06-13 Mark Kettenis <kettenis@gnu.org>
3455
3456 From Kelley Cook <kelleycook@wideopenwest.com>:
3457 * configure.host: Accept i[34567]86 variants.
3458 * configure.tgt: Likewise.
3459 * nlm/configure.in: Likewise.
3460 * nlm/configure: Regenerated.
3461
7aa1783e
RE
34622003-06-13 Richard Earnshaw <rearnsha@arm.com>
3463
3464 * arm-tdep.c (solib-svr4.h): Dont' include it.
3465 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3466 * arm-linux-tdep.c: ... here. Make static.
3467 (arm_linux_init_abi): Register it.
3468 (solib-svr4.h): Include it.
3469 * Makefile.in: Update dependencies.
3470 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3471 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3472
0261a0d0
CV
34732003-06-13 Corinna Vinschen <vinschen@redhat.com>
3474
3475 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3476 indicate registers used for return values.
3477 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3478 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3479 members.
3480 (h8300_init_extra_frame_info): Ditto.
3481 (h8300_frame_locals_address): Removed.
3482 (h8300_frame_args_address): Removed.
3483 (h8300_extract_return_value): Use new regcache structure. Only care
3484 for 16 bit CPUs.
3485 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3486 (h8300_store_return_value): Use new regcache structure. Only care
3487 for 16 bit CPUs.
3488 (h8300h_store_return_value): Same function for 32 bit CPUs.
3489 (h8300_store_struct_return): Removed.
3490 (h8300_extract_struct_value_address): Use new regcache structure.
3491 (h8300h_extract_struct_value_address): Removed.
3492 (h8300_push_dummy_code): New function.
3493 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3494 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3495 set_gdbarch_store_return_value architecture dependent.
3496 Call set_gdbarch_push_dummy_code and
3497 set_gdbarch_extract_struct_value_address.
3498 Remove calls to set_gdbarch_frame_args_address,
3499 set_gdbarch_frame_locals_address,
3500 set_gdbarch_deprecated_store_struct_return,
3501 set_gdbarch_deprecated_extract_return_value,
3502 set_gdbarch_deprecated_extract_struct_value_address,
3503 set_gdbarch_deprecated_call_dummy_words and
3504 set_gdbarch_deprecated_sizeof_call_dummy_words.
3505
055c394a
CV
35062003-06-13 Corinna Vinschen <vinschen@redhat.com>
3507
3508 * h8300-tdep.c (h8300_register_byte): Remove.
3509 (h8300h_register_byte): Remove.
3510 (h8300_register_virtual_type): Remove. Substitute by...
3511 (h8300_register_type): New function.
3512 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3513 (h8300h_extract_struct_value_address): Ditto.
3514 (h8300_gdbarch_init): Drop calls to
3515 set_gdbarch_deprecated_register_byte and
3516 set_gdbarch_deprecated_register_virtual_type.
3517 Add call to set_gdbarch_register_type.
3518
9c04cab7
AC
35192003-06-13 Andrew Cagney <cagney@redhat.com>
3520
3521 * gdbarch.sh: Update comments on registers.
3522 (deprecated_register_byte): Rename register_byte.
3523 (deprecated_register_raw_size): Rename register_raw_size.
3524 (deprecated_register_virtual_size): Rename register_virtual_size.
3525 (deprecated_register_virtual_type): Rename register_virtual_type.
3526 * gdbarch.h, gdbarch.c: Re-generate.
3527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3528 * vax-tdep.c (vax_gdbarch_init): Update.
3529 * v850-tdep.c (v850_gdbarch_init): Update.
3530 * sparc-tdep.c (sparc_gdbarch_init): Update.
3531 * sh-tdep.c (sh_gdbarch_init): Update.
3532 * s390-tdep.c (s390_gdbarch_init): Update.
3533 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3534 * ns32k-tdep.c: Update.
3535 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3536 * mips-tdep.c (mips_gdbarch_init): Update.
3537 * mcore-tdep.c (mcore_gdbarch_init): Update.
3538 * m68k-tdep.c (m68k_gdbarch_init): Update.
3539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3540 * ia64-tdep.c (ia64_gdbarch_init): Update.
3541 * hppa-tdep.c (hppa_gdbarch_init): Update.
3542 * h8300-tdep.c (h8300_gdbarch_init): Update.
3543 * frv-tdep.c (frv_gdbarch_init): Update.
3544 * cris-tdep.c (cris_gdbarch_init): Update.
3545 * avr-tdep.c (avr_gdbarch_init): Update.
3546 * alpha-tdep.c (alpha_gdbarch_init): Update.
3547 * arm-tdep.c (arm_gdbarch_init): Update.
3548
b060cbea
AC
35492003-06-13 Andrew Cagney <cagney@redhat.com>
3550
3551 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3552 mips_o32_use_struct_convention with always_use_struct_convention.
3553
0fc9922a
DC
35542003-06-12 David Carlton <carlton@kealia.com>
3555
3556 * cp-namespace.c (cp_set_block_scope): Comment out
3557 processing_has_namespace_info branch.
3558
1fd35568
JB
35592003-06-12 Jim Blandy <jimb@redhat.com>
3560
f470a70a
JB
3561 Recognize and skip 64-bit PowerPC Linux linkage functions.
3562 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3563 insn_pattern, insns_match_pattern, d_field, ds_field): New
3564 functions, macros, and types for working with PPC instructions.
3565 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3566 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3567 ppc64_skip_trampoline_code): New functions, variables, and macros
3568 for recognizing and skipping linkage functions.
3569 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3570 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3571
49ff75ad
JB
3572 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3573 register offsets for both the 32- and 64-bit interfaces.
3574
bd918c83
JB
3575 Actually finish the job started by my change of 2003-05-29.
3576 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3577 other #definition of this.
3578 (ppc_linux_skip_trampoline_code): Remove declaration.
3579 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3580 static.
3581 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3582 method for GDBARCH.
3583
3584 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3585 'long' on ppc64-*-linux*.
3586
f8c59253
JB
3587 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3588 isn't #defined, assume the register doesn't exist: act as if
3589 tdep->ppc_mq_regnum were -1.
3590
8fbb30b1
JB
3591 * configure.host, configure.tgt: Add entries for
3592 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3593 powerpc/linux.mt.
3594 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3595 New files.
3596
1fd35568
JB
3597 * arch-utils.c (always_use_struct_convention): New function.
3598 * arch-utils.h (always_use_struct_convention): New prototype.
3599 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3600 (alpha_gdbarch_init): Register always_use_struct_convention,
3601 instead of alpha_use_struct_convention.
3602 * cris-tdep.c (cris_use_struct_convention): Delete.
3603 (cris_gdbarch_init): Register always_use_struct_convention,
3604 instead of cris_use_struct_convention.
3605 * frv-tdep.c (frv_use_struct_convention): Delete.
3606 (frv_gdbarch_init): Register always_use_struct_convention,
3607 instead of frv_use_struct_convention.
3608 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3609 (h8300_gdbarch_init): Register always_use_struct_convention,
3610 instead of h8300_use_struct_convention.
e3305dd9 3611 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3612 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3613 instead of mips_o32_use_struct_convention.
3614
e14e6e9c
AC
36152003-06-12 Andrew Cagney <cagney@redhat.com>
3616
3617 * wince.c: Include "mips-tdep.h".
3618 * mips-tdep.h (mips_next_pc): Declare.
3619 * mcore-tdep.c: Make more local functions static.
3620 * Makefile.in (wince.o): Update dependencies.
3621
2335f48e
DC
36222003-06-12 David Carlton <carlton@kealia.com>
3623
3624 * symtab.c (lookup_symbol_aux_minsyms): Replace
3625 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3626 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3627 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3628 SYMBOL_NATURAL_NAME.
3629
f70a7d61
AS
36302003-06-12 Andreas Schwab <schwab@suse.de>
3631
3632 * Makefile.in (tuiDisassem.o): Update dependencies.
3633
b6429628
DC
36342003-06-12 David Carlton <carlton@bactrian.org>
3635
3636 * symtab.h: Delete declaration of make_symbol_overload_list.
3637 Add declaration of lookup_partial_symbol.
3638 * symtab.c (remove_params): Move to cp-support.c.
3639 (overload_list_add_symbol, make_symbol_overload_list)
3640 (sym_return_val_size, sym_return_val_index): Ditto.
3641 (lookup_partial_symbol): Make extern.
3642 * cp-support.h: Add declaration of make_symbol_overload_list.
3643 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3644 symtab.h, and block.h.
3645 (remove_params): Move here from symtab.c.
3646 (overload_list_add_symbol, make_symbol_overload_list)
3647 (sym_return_val_size, sym_return_val_index): Ditto.
3648 * valops.c: Include cp-support.h.
3649 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3650 frame_h, and block_h.
3651 (valops.o): Depend on cp_support_h.
3652
084edea5
CV
36532003-06-12 Corinna Vinschen <vinschen@redhat.com>
3654
3655 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3656 substitute by NUM_REGS throughout.
3657 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3658 (h8300s_register_name): New function for H8S registers.
3659 (h8300sx_register_name): Ditto for H8SX registers.
3660 (h8300_print_register): Revise register printing, avoid depending
3661 on 32 bit long.
0261a0d0 3662 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3663 (h8300h_register_byte): New function for any other architecture.
3664 (h8300_register_raw_size): Remove.
3665 (h8300_register_virtual_type): Revise to return actually useful
3666 type.
3667 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3668 (h8300h_extract_struct_value_address): New function for any other
3669 architecture.
3670 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3671 set_gdbarch_register_name, set_gdbarch_register_byte,
3672 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3673 Remove calls to set_gdbarch_deprecated_register_size,
3674 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3675 set_gdbarch_deprecated_max_register_raw_size,
3676 set_gdbarch_register_virtual_size and
3677 set_gdbarch_deprecated_max_register_virtual_size entirely.
3678 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3679 set_gdbarch_long_double_bit.
3680
06194148
JJ
36812003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3682
8ffd9b1b
AJ
3683 * doublest.c (convert_doublest_to_floatformat): When dealing
3684 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3685 processing a full 32 bits of mantissa.
3686
de4f826b
DC
36872003-06-11 David Carlton <carlton@bactrian.org>
3688
3689 * dictionary.h: New.
3690 * dictionary.c: New.
3691 * block.h: Add opaque declaration for struct dictionary.
3692 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3693 'sym' members.
3694 (BLOCK_DICT): New macro.
3695 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3696 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3697 BLOCK_SHOULD_SORT.
3698 (ALL_BLOCK_SYMBOLS): Update definition.
3699 * Makefile.in (SFILES): Add dictionary.c.
3700 (dictionary_h): New.
3701 (COMMON_OBS): Add dictionary.o.
3702 (dictionary.o): New.
3703 (ada-lang.o): Depend on dictionary_h.
3704 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3705 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3706 (mi-cmd-stack.o): Ditto.
3707 (gdbtk-cmds.o): Update dependencies.
3708 (gdbtk-stack.o): Ditto.
3709 * ada-lang.c: Include dictionary.h.
3710 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3711 (fill_in_ada_prototype, debug_print_block): Ditto.
3712 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3713 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3714 'is_sorted'.
3715 * mdebugread.c: Include dictionary.h.
3716 (struct parse_stack): Delete 'maxsyms' member.
3717 (parse_symbol): Update calls to new_block. Delete calls to
3718 shrink_block. Use dictionary methods.
3719 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3720 Update calls to new_symtab. Don't maintain maxsyms data.
3721 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3722 (add_symbol): Just call dict_add_symbol.
3723 (new_symtab): Delete 'maxsyms' argument.
3724 (new_symtab): Update calls to new_block.
3725 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3726 (shrink_block): Delete function.
3727 (fixup_sigtramp): Update call to new_block. Add symbol via
3728 dict_add_symbol.
3729 * jv-lang.c: Include dictionary.h.
3730 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3731 appropriately. Set class_symtab->free_func. Make sure the
3732 blockvector is big enough to hold two blocks.
3733 (add_class_symtab_symbol): Use dictionary methods.
3734 (free_class_block): New function.
3735 (type_from_class): Replace explicit iteration by
3736 ALL_BLOCK_SYMBOLS.
3737 * symtab.h (struct symtab): Replace 'free_ptr' method by
3738 'free_func'.
3739 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3740 sort_symtab_syms.
3741 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3742 sort_symtab_syms.
3743 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3744 Include dictionary.h.
3745 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3746 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3747 sort_symtab_syms.
3748 * objfiles.c: Include dictionary.h.
3749 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3750 * buildsym.c: Include dictionary.h.
3751 (finish_block): Use dictionary methods.
3752 (end_symtab): Set free_func to NULL, not free_ptr.
3753 * tracepoint.c: Include dictionary.h.
3754 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3755 (scope_info): Ditto.
3756 * stack.c: Include dictionary.h.
3757 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3758 (print_block_frame_labels, print_frame_arg_vars)
3759 (print_frame_args): Ditto.
3760 * symmisc.c (free_symtab_block): Use dictionary methods.
3761 (dump_symtab): Ditto.
3762 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3763 Include dictionary.h.
3764 * symfile.h: Delete declarations of sort_block_syms,
3765 sort_symtab_syms.
3766 * symfile.c (sort_block_syms): Delete.
3767 (sort_symtab_syms): Delete.
3768 * symtab.c: Include dictionary.h.
3769 (lookup_block_symbol): Use dictionary iterators.
3770 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3771 (search_symbols, make_symbol_completion_list): Ditto.
3772 (make_symbol_overload_list): Ditto.
3773 * valops.c (value_of_local): Use dict_empty.
3774 Include dictionary.h.
3775
a31f978c
JB
37762003-06-11 J. Brobecker <brobecker@gnat.com>
3777
3778 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3779
526e70c0
DC
37802003-06-11 David Carlton <carlton@bactrian.org>
3781
3782 * block.h (BLOCK_SHOULD_SORT): Delete.
3783 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3784 blocks.
3785 * ada-lang.c (ada_add_block_symbols): Ditto.
3786 * symfile.c (sort_block_syms): Delete.
3787 (sort_symtab_syms): Ditto.
3788 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3789 declarations.
3790 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3791 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3792 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3793 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3794 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3795 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3796 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3797
33c08150
JJ
37982003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3799
8ffd9b1b 3800 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3801 bits to 128.
3802
781a750d
AC
38032003-06-11 Andrew Cagney <cagney@redhat.com>
3804
3805 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3806 REGISTER_CONVERTIBLE.
3807 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3808 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3809 * gdbarch.h, gdbarch.c: Re-generate.
3810 * arch-utils.h (deprecated_register_convertible_not): Rename
3811 generic_register_convertible_not.
3812 * arch-utils.c (deprecated_register_convertible_not): Rename
3813 generic_register_convertible.
3814 (legacy_convert_register_p, legacy_register_to_value): Update.
3815 * sh-tdep.c (sh64_push_arguments): Update.
3816 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3817 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3818 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3819 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3820 * arch-utils.c (legacy_value_to_register): Update.
3821 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3822 (rs6000_register_convert_to_raw): Make parameter "from" const.
3823 * mips-tdep.c (mips_gdbarch_init): Update.
3824 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3825 * infcmd.c (default_print_registers_info): Update.
3826 * ia64-tdep.c (ia64_gdbarch_init): Update.
3827 (ia64_register_convert_to_raw): Make parameter "from" const.
3828 * i386-tdep.c (i386_gdbarch_init): Update.
3829 (i386_register_convert_to_raw): Update.
3830
cd90e54f
AC
38312003-06-11 Andrew Cagney <cagney@redhat.com>
3832
3833 * remote-fileio.c: Include "remote-fileio.h".
3834 * Makefile.in (remote-fileio.o): Update dependencies.
3835 (remote_fileio_h): Fix typo.
3836
a78f21af
AC
38372003-06-11 Andrew Cagney <cagney@redhat.com>
3838
3839 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3840 (xstormy16_save_dummy_frame_tos): Make static.
3841 (_initialize_xstormy16_tdep): Add declaration.
3842 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3843 * v850-tdep.c: Make local functions static.
3844 (_initialize_v850_tdep): Add declaration.
3845 * sparc-tdep.c: Make local functions static.
3846 (_initialize_sparc_tdep): Add declaration.
3847 * sh-tdep.c: Make local functions static.
3848 (_initialize_sh_tdep): Add declaration.
3849 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3850 * s390-tdep.c: Make local functions static.
3851 (_initialize_s390_tdep): Add declaration.
3852 * dbxread.c (find_stab_function_addr): Make static.
3853 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3854 * ocd.c (_initialize_remote_ocd): Add declaration.
3855 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3856 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3857 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3858 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3859 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3860 * remote-array.c (_initialize_array): Add declaration.
3861 (_initialize_remote_monitors): Add declaration.
3862 * remote-mips.c: Make local functions static.
3863 (_initialize_remote_mips): Add declaration.
3864 * mcore-tdep.c: Make all local functions static.
3865 (_initialize_mcore_tdep): Add declaration.
3866 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3867 * abug-rom.c (_initialize_abug_rom): Add declaration.
3868 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3869 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3870 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3871 * remote-est.c (_initialize_est): Add declaration.
3872 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3873 (m68hc11_call_dummy_address): Make static.
3874 * ia64-tdep.c: Make local functions static.
3875 (_initialize_ia64_tdep): Add declaration.
3876 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3877 * monitor.c (monitor_wait_filter): Make static.
3878 (_initialize_remote_monitors): Add declaration.
3879 * remote-hms.c (_initialize_remote_hms): Add declaration.
3880 * remote-e7000.c (fetch_regs_from_dump): Make static.
3881 (expect_n): Make static.
3882 (_initialize_remote_e7000): Add declaration.
3883 * ser-e7kpc.c: Always include "defs.h".
3884 (_initialize_ser_e7000pc): Add declaration.
3885 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3886 * cris-tdep.c: Make all but one function static.
3887 (_initialize_cris_tdep): Add declaration.
3888 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3889 * solib.c (update_solib_list): Make static.
3890 (_initialize_solib): Add declaration.
3891 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3892 (_initialize_avr_tdep): Add declaration.
3893 * remote-rdi.c (voiddummy): Make static.
3894 (_initialize_remote_rdi): Add declaration.
3895 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3896 * remote-rdp.c (send_rdp): Make static.
3897 (_initialize_remote_rdp): Add declaration.
3898 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3899
cbcdb1f5
CV
39002003-06-11 Corinna Vinschen <vinschen@redhat.com>
3901
3902 * remote-fileio.c: Make ari happy.
3903
a191ea8d
JB
39042003-06-10 J. Brobecker <brobecker@gnat.com>
3905
3906 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3907 fetching the trailing bytes of the buffer we are about to write.
3908
0ef75e11
AC
39092003-06-10 Andrew Cagney <cagney@redhat.com>
3910
3911 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3912 * Makefile.in (remote-fileio.o): Update dependencies.
3913 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3914 include <setjmp.h>, or <sys/types.h> conditional on USG.
3915 (remote_fio_jmp_buf): Delete global variable.
3916
449092f6 39172003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3918 Martin M. Hunt <hunt@redhat.com>
449092f6 3919
559fa028
AC
3920 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3921 (SFILES): Add remote-fileio.c.
3922 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3923 dependencies for building remote.o.
449092f6
CV
3924 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3925 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3926 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3927 static storage class.
3928 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3929 'F' packet.
3930 (_initialize_remote): Call initialize_remote_fileio().
3931 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3932 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3933 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3934 (captured_main): Initialize new ui_files.
3935 * ui-file.c: Add read and fgets input functions.
3936 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3937 (null_file_read): New function.
3938 (ui_file_read): New function.
3939 (set_ui_file_read): New function.
3940 (stdio_file_read): New function.
3941 * ui-file.h: New type ui_file_read_ftype.
3942 (set_ui_file_read): Declare.
3943 (ui_file_read): Declare.
3944
248de703
AC
39452003-06-09 Andrew Cagney <cagney@redhat.com>
3946
3947 * frame.h (deprecated_unwind_get_saved_register): Rename
3948 generic_unwind_get_saved_register, update comments.
3949 * mips-tdep.c (mips_get_saved_register): Update.
3950 * frame.c (deprecated_unwind_get_saved_register): Update.
3951
0ed8aa57
AC
39522003-06-09 Andrew Cagney <cagney@redhat.com>
3953
3954 * vax-tdep.c (vax_frame_locals_address): Delete function.
3955 (vax_gdbarch_init): Do not set frame_locals_address.
3956 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3957 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3958 * s390-tdep.c (s390_frame_args_address): Delete function.
3959 (s390_gdbarch_init): Do not set frame_args_address or
3960 frame_locals_address.
3961 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3962 (ns32k_gdbarch_init): Do not set frame_locals_address.
3963 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3964 (hppa_frame_locals_address): Delete function.
3965 (hppa_gdbarch_init): Do not set frame_args_address, or
3966 frame_locals_address.
3967 * arm-tdep.c (arm_frame_args_address): Delete.
3968 (arm_frame_locals_address): Delete.
3969 (arm_gdbarch_init): Do not set frame_args_address, or
3970 frame_locals_address.
3971
983a287a
AC
39722003-06-09 Andrew Cagney <cagney@redhat.com>
3973
3974 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3975 * gdbarch.h, gdbarch.c: Re-generate.
3976 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3977 * arch-utils.c (frame_num_args_unknown): Delete function.
3978 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3979 (frame_info): Use FRAME_NUM_ARGS_P.
3980 * arm-tdep.c (arm_frame_num_args): Delete function.
3981 (arm_gdbarch_init): Do not set frame_num_args.
3982 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3983 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3984 (hppa_gdbarch_init): Do not set frame_num_args.
3985 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3986 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3987 frame_num_args to default frame_num_args_unknown.
3988 * v850-tdep.c (v850_gdbarch_init): Ditto.
3989 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3990 * sh-tdep.c (sh_gdbarch_init): Ditto.
3991 * s390-tdep.c (s390_gdbarch_init): Ditto.
3992 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3993 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3994 * mips-tdep.c (mips_gdbarch_init): Ditto.
3995 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3996 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3997 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3998 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3999 * i386-tdep.c (i386_gdbarch_init): Ditto.
4000 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4001 * frv-tdep.c (frv_gdbarch_init): Ditto.
4002 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4003 * cris-tdep.c (cris_gdbarch_init): Ditto.
4004 * avr-tdep.c (avr_gdbarch_init): Ditto.
4005 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4006
8d3b0994
AC
40072003-06-09 Andrew Cagney <cagney@redhat.com>
4008
4009 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4010 (print_frame_args): Moved to "stack.c".
4011 * stack.c: Include "gdb_assert.h".
4012 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4013 (print_frame_args): Moved from "printcmd.c".
4014 * frame.h (print_frame_args): Delete declaration.
4015 * Makefile.in (stack.o): Update dependencies.
4016
25e3a86b
AC
40172003-06-08 Andrew Cagney <cagney@redhat.com>
4018
4019 * frame.c (get_prev_frame): Remove reference to
4020 frame_args_address_correct in comments.
4021 * frame-base.c (default_frame_args_address): Delete code
4022 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4023 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4024 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4025 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4026 (vax_frame_args_address_correct): Delete declaration.
4027
a9e5fdc2
AC
40282003-06-08 Andrew Cagney <cagney@redhat.com>
4029
4030 * gdbarch.sh (UNWIND_SP): Add.
4031 * gdbarch.h, gdbarch.c: Re-generate.
4032 * frame.c (frame_sp_unwind): New function.
4033 (get_frame_sp): New function.
4034 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4035 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4036 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4037 value.
4038 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4039 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4040
8983bd83
AC
40412003-06-08 Andrew Cagney <cagney@redhat.com>
4042
7fec2c59
AC
4043 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4044 REMOTE_BREAKPOINT.
4045 * remote.c: Update.
4046 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4047 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4048 * config/m68k/tm-sun3.h: Update.
4049 * config/m68k/tm-m68klynx.h: Update.
4050 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4051
8983bd83
AC
4052 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4053 trad_frame". Update comments.
4054 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4055 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4056 (trad_frame_register_value, trad_frame_prev_register): Update.
4057
b9362cc7
AC
40582003-06-08 Andrew Cagney <cagney@redhat.com>
4059
4060 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4061 from GCC's acinclude.m4.
4062 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4063 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4064 * main.c (error_init): Delete declaration.
4065 * defs.h (error_init): Declare.
4066 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4067 (rs6000_convert_from_func_ptr_addr): Make static.
4068 (_initialize_rs6000_tdep): Add declaration.
4069 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4070 (show_commands, set_verbose, show_history): Delete declaration.
4071 * top.h (set_verbose): Add declaration.
4072 (show_history, set_history, show_commands): Add declaration.
4073 (do_restore_instream_cleanup): Add declaration.
4074 * objc-lang.c (specialcmp): Make static.
4075 (print_object_command): Make static.
4076 (find_objc_msgsend): Make static.
4077 (find_objc_msgcall_submethod_helper): Make static.
4078 (find_objc_msgcall_submethod): Make static.
4079 (_initialize_objc_language): Add declaration.
4080 (find_implementation_from_class): Make static.
4081 (find_implementation): Make static.
4082 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4083 * objc-lang.h (lookup_struct_typedef): Add declaration.
4084 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4085 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4086 (do_restore_user_call_depth): Make static.
4087 (do_restore_instream_cleanup): Delete declaration.
4088 (dont_repeat): Delete declaration.
4089 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4090 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4091 * reggroups.c (_initialize_reggroup): Add declaration.
4092 * cp-support.c (_initialize_cp_support): Add declaration.
4093 * cp-abi.c (_initialize_cp_abi): Add declaration.
4094 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4095 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4096 (_initialize_gnu_v3_abi): Add declaration.
4097 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4098 (_initialize_gnu_v2_abi): Add declaration.
4099 * frame-base.c (_initialize_frame_base): Add declaration.
4100 * doublest.c (floatformat_from_length): Make static.
4101 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4102 * frame.c (create_sentinel_frame): Make static.
4103 (_initialize_frame): Add declaration.
4104 * top.c (do_catch_errors): Make static.
4105 (gdb_rl_operate_and_get_next_completion): Make static.
4106 * typeprint.c: Include "typeprint.h".
4107 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4108 (sentinel_frame_this_id): Make static.
4109 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4110 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4111 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4112 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4113 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4114 * maint.c (maintenance_print_architecture): Make static.
4115 * signals/signals.c (_initialize_signals): Add declaration.
4116 * std-regs.c (_initialize_frame_reg): Add declaration.
4117 * jv-exp.y (push_variable): ISO C definition.
4118 (push_qualified_expression_name): Ditto.
4119 * memattr.c (_initialize_mem): Add declaration.
4120 * remote.c (remote_check_watch_resources): Make static.
4121 (remote_stopped_by_watchpoint): Make static.
4122 (remote_stopped_data_address): Make static.
4123 * d10v-tdep.c (nr_dmap_regs): Make static.
4124 (a0_regnum): Make static.
4125 (d10v_frame_unwind_cache): Make static.
4126 (d10v_frame_p): Make static.
4127 * osabi.c (show_osabi): Make static.
4128 (_initialize_gdb_osabi): Add extern declaration.
4129 * gdbtypes.c (make_qualified_type): Make static.
4130 (safe_parse_type): Make static.
4131 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4132 * macrotab.c (macro_bcache_free): Make static.
4133 * interps.c (interp_set_quiet): Make static.
4134 (interpreter_exec_cmd): Make static.
4135 * stack.h (select_frame_command): New file.
4136 * stack.c: Include "stack.h".
4137 (select_frame_command_wrapper): Delete function.
4138 (select_frame_command): Make global.
4139 * infcall.c: Include "infcall.h".
4140 * linespec.c: Include "linespec.h".
4141 * symfile.c (sections_overlap): Make static.
4142 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4143 * charset.c (_initialize_charset): Add missing prototype.
4144 * regcache.c (init_legacy_regcache_descr): Make static.
4145 (do_regcache_xfree): Make static.
4146 (regcache_xfer_part): Make static.
4147 (_initialize_regcache): Add missing prototype.
4148 * breakpoint.c (parse_breakpoint_sals): Make static.
4149 (breakpoint_sals_to_pc): Make static.
4150 * interps.h (clear_interpreter_hooks): ISO C declaration.
4151 * Makefile.in (stack_h): Define.
4152 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4153 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4154
a0f267c7
AC
41552003-06-08 Andrew Cagney <cagney@redhat.com>
4156
4157 * Makefile.in (d10v-tdep.o): Update dependencies.
4158 (SFILES): Add trad-frame.c.
4159 (trad_frame_h): Define.
4160 (COMMON_OBS): Add trad-frame.o.
4161 (trad-frame.o): Specify dependencies.
4162 * d10v-tdep.c: Include "trad-frame.h".
4163 (saved_regs_unwinder): Delete function.
4164 (d10v_frame_prev_register): Use trad_frame_prev_register.
4165 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4166 trad_frame", delete "regs" and "prev_sp".
4167 (prologue_find_regs): Use trad-frame.
4168 * trad-frame.h, trad-frame.c: New files.
4169
4538b4f4
MK
41702003-06-08 Mark Kettenis <kettenis@gnu.org>
4171
4172 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4173
a0273b2f
AF
41742003-06-07 Adam Fedor <fedor@gnu.org>
4175
4176 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4177 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4178 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4179 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4180 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4181 Use it.
4182
3a6c3343
AC
41832003-06-07 Andrew Cagney <cagney@redhat.com>
4184
4185 * symfile.h: Re-indent, clean up comments.
4186
b46e02f6
AC
41872003-06-07 Andrew Cagney <cagney@redhat.com>
4188
4189 * inferior.h (deprecated_write_sp): Replace
4190 generic_target_write_sp.
4191 * regcache.c (deprecated_write_sp): Replace
4192 generic_target_write_sp.
4193 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4194 * vax-tdep.c (vax_gdbarch_init): Update.
4195 * v850-tdep.c (v850_gdbarch_init): Update.
4196 * sparc-tdep.c (sparc_gdbarch_init): Update.
4197 * sh-tdep.c (sh_gdbarch_init): Update.
4198 * s390-tdep.c (s390_gdbarch_init): Update.
4199 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4200 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4201 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4202 * mcore-tdep.c (mcore_gdbarch_init): Update.
4203 * m68k-tdep.c (m68k_gdbarch_init): Update.
4204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4205 * ia64-tdep.c (ia64_gdbarch_init): Update.
4206 * h8300-tdep.c (h8300_gdbarch_init): Update.
4207 * frv-tdep.c (frv_gdbarch_init): Update.
4208 * cris-tdep.c (cris_gdbarch_init): Update.
4209 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4210
a42e117c
AC
42112003-06-07 Andrew Cagney <cagney@redhat.com>
4212
4213 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4214 Assert that PC_REGNUM is valid.
4215 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4216
bd1ce8ba
AC
42172003-06-07 Andrew Cagney <cagney@redhat.com>
4218
4219 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4220 * gdbarch.h, gdbarch.c: Regenerate.
4221 * mn10300-tdep.c: Include "gdb_assert.h".
4222 (mn10300_read_fp): New function.
4223 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4224 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4225 * ia64-tdep.c: Include "gdb_assert.h".
4226 (ia64_read_fp): New function.
4227 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4228 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4229 * regcache.c (generic_target_read_sp): Delete function.
4230 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4231 * inferior.h (generic_target_read_sp): Delete declaration.
4232 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4233 generic_target_read_sp.
4234 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4235 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4236 * sh-tdep.c (sh_gdbarch_init): Ditto.
4237 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4238 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4239
ec5cbaec
AC
42402003-06-07 Andrew Cagney <cagney@redhat.com>
4241
4242 * gdbarch.sh: Comment each field of startup_gdbarch.
4243 * gdbarch.h, gdbarch.c: Re-generate.
4244
cde9ea48
AC
42452003-06-07 Andrew Cagney <cagney@redhat.com>
4246
4247 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4248 * gdbarch.h, gdbarch.c: Re-generate.
4249 * regcache.c: Update comments on read_pc et.al.
4250 (generic_target_read_pc): Delete function.
4251 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4252 * inferior.h (generic_target_read_pc): Delete declaration.
4253 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4254 generic_target_read_pc.
4255 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4256 * sh-tdep.c (sh_gdbarch_init): Ditto.
4257 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4259
9a90a780
AC
42602003-06-07 Andrew Cagney <cagney@redhat.com>
4261
4262 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4263 "index" with "special_local_sect". Use strcmp instead of STREQ.
4264 Append period to coments.
4265
a39a16c4
MM
42662003-06-06 Mark Mitchell <mark@codesourcery.com>
4267
4268 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4269 (elfstab_offset_sections): Likewise.
4270 * gdb-stabs.h (stab_section_info): Likewise.
4271 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4272 * objfiles.c (objfile_relocate): Likewise.
4273 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4274 * remote.c (get_offsets): Likewise.
4275 (remote_cisco_objfile_relocate): Likewise.
4276 * somread.c (som_symfile_offsets): Likewise.
4277 * symfile.c (alloc_section_addr_info): New function.
4278 (build_section_addr_info_from_section_tab): Use it.
4279 (free_section_addr_info): Adjust.
4280 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4281 (syms_from_objfile): Allocate local_addr dynamically.
4282 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4283 dynamically.
4284 (add_symbol_file_command): Allocate sect_opts dynamically.
4285 (reread_symbols): Avoid use of SECT_OFF_MAX.
4286 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4287 (alloc_section_addr_info): Declare it.
4288 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4289 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4290 dynamically.
4291 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4292
20c6c2f8
AC
42932003-06-06 Andrew Cagney <cagney@redhat.com>
4294
4295 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4296 (d10v_frame_unwind_cache): Do not set "return_pc".
4297
884a26c8
MS
42982003-06-06 Michael Snyder <msnyder@redhat.com>
4299
4300 * h8300-tdep.c: Make tidy (long lines).
4301
088ce440
ML
43022003-06-06 Michal Ludvig <mludvig@suse.cz>
4303
8ffd9b1b 4304 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4305 to regcache_collect().
4306
7d773d96
JB
43072003-06-05 J. Brobecker <brobecker@gnat.com>
4308
4309 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4310 pc_in_sigtramp multiarch method.
4311 (hppa_hpux_som_init_abi): Use it.
4312 (hppa_hpux_elf_init_abi): Likewise.
4313 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4314 macro has been multiarched.
4315 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4316 macro here, as hppa64 isn't multiarched yet.
4317
1df6926e
AC
43182003-06-05 Andrew Cagney <cagney@redhat.com>
4319
4320 * Makefile.in (value_h): Add $(frame_h).
4321 * value.h: Include "frame.h".
4322 (struct value): Replace "frame_addr" with "frame_id".
4323 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4324 * values.c (allocate_value): Use VALUE_FRAME_ID.
4325 (value_copy): Use VALUE_FRAME_ID.
4326 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4327 * valops.c (value_assign): Update. Use frame_find_by_id.
4328
6b53acc6
ML
43292003-06-05 Michal Ludvig <mludvig@suse.cz>
4330
4331 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4332 in each pass.
4333
4d9850d3
JJ
43342003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4335
4336 * thread-db.c (check_event): For create/death event breakpoints,
4337 loop through all messages to ensure that we read the message
4338 corresponding to the breakpoint we are at.
4339
8efca6ba
MS
43402003-06-04 Michael Snyder <msnyder@redhat.com>
4341
4342 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4343
0912c7f2
MK
43442003-06-04 Mark Kettenis <kettenis@gnu.org>
4345
4346 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4347 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4348 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4349 when handling .eh_frame sections.
4350
4e370325
JB
43512003-06-04 J. Brobecker <brobecker@gnat.com>
4352
4353 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4354 prepare_to_proceed procedure instead of the hppa-specific one.
4355 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4356
b757528f 43572003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4358
b757528f
JJ
4359 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4360 * config.in: Regenerated.
4361 * configure.in: Add test for syscall function and check for
4362 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4363 * configure: Regenerated.
4364 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4365 <sys/syscall.h>.
4366 (kill_lwp): New function that uses tkill syscall or
4367 uses kill, depending on whether threading model is nptl or not.
4368 All callers of kill() changed to use kill_lwp().
4369 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4370 see if all threads have already exited in the nptl model.
4371 (stop_and_resume_callback): New callback function used by the
4372 lin_lwp_wait thread exit handling code.
4373 (stop_wait_callback): Check for threads already having exited and
4374 delete such threads fromt the lwp list when discovered.
4375 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4376
b757528f
JJ
4377 Roland McGrath <roland@redhat.com>
4378 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4379 nptl libthread_db.
4380
087779b1
RH
43812003-06-03 Richard Henderson <rth@redhat.com>
4382
b21fd293
RH
4383 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4384 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4385 (alpha_sigtramp_frame_prev_register): Likewise.
4386 (alpha_heuristic_frame_prev_register): Likewise.
4387 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4388
8ffd9b1b 4389 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4390 alpha-specific register id names.
4391 (alpha_mdebug_frame_unwind_cache): Likewise.
4392 (alpha_mdebug_frame_prev_register): Likewise.
4393
baa490c4
RH
43942003-06-03 Richard Henderson <rth@redhat.com>
4395
4396 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4397 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4398 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4399 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4400 unwind routines.
4401 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4402 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4403 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4404
4405 * alpha-linux-tdep.c: Remove unnecessary includes.
4406 * Makefile.in (alpha-linux-tdep.o): Update.
4407
44082003-06-03 Richard Henderson <rth@redhat.com>
4409
4410 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4411 (alphabsd_fill_fpreg): Likewise.
4412
f534e522
JB
44132003-06-03 J. Brobecker <brobecker@gnat.com>
4414
4415 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4416 references to struct frame_info fields by calls to the equivalent
4417 accessors. Necessary now that frame_info is opaque.
4418
4035536b
JB
44192003-06-03 J. Brobecker <brobecker@gnat.com>
4420
4421 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4422 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4423 structure, field no longer exists.
4424
0bd79c5c
JB
44252003-06-03 J. Brobecker <brobecker@gnat.com>
4426
4427 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4428 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4429
37bb6d9f
JB
44302003-06-03 J. Brobecker <brobecker@gnat.com>
4431
4432 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4433 references to struct frame_info fields by calls to the equivalent
4434 accessors. Necessary now that frame_info is opaque.
4435
852ee05c
JB
44362003-06-03 J. Brobecker <brobecker@gnat.com>
4437
4438 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4439 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4440 structure, field no longer exists.
4441
7d58c67d
TR
44422003-06-03 Theodore A. Roth <troth@openavr.org>
4443
8ffd9b1b 4444 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4445 accumulation of the size of all registers instead of blindly using
4446 DEPRECATED_REGISTER_BYTES.
4447
0a48e7e8
MS
44482003-06-03 Michael Snyder <msnyder@redhat.com>
4449
4450 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4451 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4452 for h8300sx.
4453
9798ab0d
JB
44542003-06-03 J. Brobecker <brobecker@gnat.com>
4455
4456 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4457 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4458
00b037e2
AC
44592003-06-03 Andrew Cagney <cagney@redhat.com>
4460
4461 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4462 (sparc_convert_to_raw): Delete function.
4463 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4464 register_convert_to_virtual.
4465
043b2f77
JJ
44662003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4467
4468 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4469 layer if not dealing with a statically-linked threaded program.
4470
f43caff8
KW
44712003-06-03 Kris Warkentin <kewarken@qnx.com>
4472
4473 * solib.c (solib_open): Update comment to reflect actual search order.
4474
ae1e7417
AC
44752003-06-03 Andrew Cagney <cagney@redhat.com>
4476
4477 * frame.c (get_frame_memory_signed): New function.
4478 (get_frame_memory, get_frame_memory_unsigned): New function.
4479 (get_frame_arch): New function.
4480 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4481 (get_frame_memory, get_frame_unsigned_memory): Declare.
4482 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4483 get_frame_memory_unsigned and get_frame_arch.
4484 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4485
cb123844
RG
44862003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4487
4488 * MAINTAINERS (write after approval): Add myself.
4489
1bb792e9
JB
44902003-06-03 Jim Blandy <jimb@redhat.com>
4491
4492 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4493 elements of gregset_t are 64 bits each, but access registers
4494 are still 32 bits, so they're packed two per gregset_t
4495 element. Unpack/pack them properly.
4496
aee8d8ba
DC
44972003-06-02 David Carlton <carlton@bactrian.org>
4498
4499 * linespec.c (find_methods): Break out code into
4500 add_matching_methods and add_constructors.
4501 (add_matching_methods): New.
4502 (add_constructors): Ditto.
4503
bf7488d2
AC
45042003-06-02 Andrew Cagney <cagney@redhat.com>
4505
bf7488d2
AC
4506 * sparc-tdep.c (sparc_print_registers): Delete call to
4507 REGISTER_CONVERTIBLE.
4508 (sparc_gdbarch_init): Do not set register_convertible.
4509 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4510 * frv-tdep.c (frv_gdbarch_init): Ditto.
4511 * cris-tdep.c (cris_gdbarch_init): Ditto.
4512
adedef68
EZ
45132003-06-02 Elena Zannoni <ezannoni@redhat.com>
4514
8ffd9b1b 4515 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4516 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4517 (syms_from_objfile): Ditto.
4518
650fcc91
AS
45192003-06-03 Andreas Schwab <schwab@suse.de>
4520
4521 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4522 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4523
df4a182b
RH
45242003-06-02 Richard Henderson <rth@redhat.com>
4525
4526 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4527 a member of all_reggroup.
4528
c483c494
RH
45292003-06-02 Richard Henderson <rth@redhat.com>
4530
4531 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4532 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4533 (alpha_lds, alpha_sts): New.
4534 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4535 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4536 restructure and fail for type sizes other than 4 or 8.
4537 (alpha_value_to_register): Similarly.
4538 (alpha_extract_return_value): Use alpha_sts.
4539 (alpha_store_return_value): Use alpha_lds.
4540 (alpha_gdbarch_init): Update hooks.
4541
b38b6be2
RH
45422003-06-02 Richard Henderson <rth@redhat.com>
4543
4544 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4545 regnum identifiers.
4546 (alpha_sigtramp_register_address): Likewise.
4547
98a8e1e5
RH
45482003-06-02 Richard Henderson <rth@redhat.com>
4549
4550 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4551 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4552 * alpha-tdep.h: Declare them.
4553
4554 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4555 Remove zerobuf. Don't error on UNIQUE.
4556 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4557 (ALPHA_REGSET_UNIQUE): Provide default.
4558 (supply_gregset): Use alpha_supply_int_regs.
4559 (fill_gregset): Use alpha_fill_int_regs.
4560 (supply_fpregset): Use alpha_supply_fp_regs.
4561 (fill_fpregset): Use alpha_fill_fp_regs.
4562 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4563 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4564 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4565 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4566 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4567 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4568
67dfac52
RH
45692003-06-02 Richard Henderson <rth@redhat.com>
4570
f75d70cc
RH
4571 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4572
67dfac52
RH
4573 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4574 (alpha_store_return_value): Likewise.
4575
0cf566ec
DC
45762003-06-02 David Carlton <carlton@math.stanford.edu>
4577
4578 * block.c (contained_in): Add 'const' to arguments.
4579 (block_function): Ditto.
4580 * block.h: Update declarations for block_function and
4581 contained_in.
4582
cdef89d0
DC
45832003-06-02 David Carlton <carlton@math.stanford.edu>
4584
4585 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4586 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4587 * p-valprint.c (pascal_val_print): Ditto.
4588 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4589
72667056
RH
45902003-06-02 Richard Henderson <rth@redhat.com>
4591
98a8e1e5
RH
4592 * alpha-tdep.c (alpha_push_dummy_call): Use
4593 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4594
8ffd9b1b 4595 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4596 sign-extension of 32-bit values.
4597 (alpha_store_return_value): Similarly.
0ede8eca 4598
98a8e1e5
RH
4599 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4600 (alpha_extract_return_value): Likewise.
4601 (alpha_store_return_value): Likewise.
7b5e1cb3 4602
98a8e1e5
RH
4603 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4604 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4605
98a8e1e5
RH
4606 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4607 (alpha_extract_struct_value_address): Likewise.
4608 (alpha_store_return_value): Likewise.
4609 (alpha_store_struct_return): Remove.
4610 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4611
98a8e1e5
RH
4612 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4613 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4614 macros where appropriate.
4615 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4616 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4617
98a8e1e5
RH
4618 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4619 for SP, GP; void_func_ptr for PC; non-language-specific types
4620 for all others.
4621 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4622
6dd77b81
RH
46232003-06-02 Richard Henderson <rth@redhat.com>
4624
4625 * top.h (lim_at_start): Declare.
4626 * main.c (captured_main): Set it.
4627 * top.c (lim_at_start): Define.
4628 (command_loop): Use it instead of &environ.
4629 * event-top.c (command_handler): Likewise.
4630
f4dbdb54
JT
46312003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4632
4633 * mipsnbsd-tdep.c: Update copyright years.
4634 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4635
8f285956
RH
46362003-06-01 Richard Henderson <rth@redhat.com>
4637
98a8e1e5
RH
4638 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4639 (alpha-linux-tdep.o): Update dependencies.
4640 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4641 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4642
615967cb
RH
46432003-06-01 Richard Henderson <rth@redhat.com>
4644
98a8e1e5
RH
4645 * alpha-tdep.c (alpha_register_reggroup_p): New.
4646 (alpha_gdbarch_init): Register it.
615967cb 4647
b59661bd
AC
46482003-06-02 Andrew Cagney <cagney@redhat.com>
4649
4650 * dwarfread.c: Eliminate "register"
4651 (decode_die_type): Eliminate assignment within "if".
4652 (struct_type, decode_array_element_type): Ditto.
4653 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4654 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4655 (decode_modified_type, completedieinfo): Ditto.
4656 * block.c: Eliminate "register".
4657 (blockvector_for_pc_sect): Eliminate assignment within "if".
4658 * cp-support.h (struct symbol): Opaque declaration.
4659 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4660
5ef165c2
RH
46612003-06-01 Richard Henderson <rth@redhat.com>
4662
98a8e1e5
RH
4663 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4664 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4665
143985b7
AF
46662003-06-01 Adam Fedor <fedor@gnu.org>
4667
4668 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4669 * gdbarch.[ch]: Regenerate.
4670 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4671 (hppa_gdbarch_init): Set it in the gdbarch vector.
4672 * i386-tdep.c (i386_fetch_pointer_argument): New
4673 (i386_gdbarch_init): Set it into gdbarch.
4674 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4675 (rs6000_gdbarch_init): Set it in gdbarch.
4676 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4677 (sparc_gdbarch_init): Set it in gdbarch.
4678
ae0167b9
AC
46792003-06-01 Andrew Cagney <cagney@redhat.com>
4680
7c0b4a20
AC
4681 * defs.h (extract_address): Delete declaration.
4682 * findvar.c (extract_address): Delete function.
4683 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4684 extract_address with the inline equivalent,
4685 extract_unsigned_integer.
4686 (xstormy16_extract_struct_value_address): Ditto.
4687 (xstormy16_pointer_to_address): Ditto.
4688 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4689 * v850-tdep.c (v850_push_arguments): Ditto.
4690 (v850_extract_return_value): Ditto.
4691 (v850_extract_struct_value_address): Ditto.
4692 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4693 (sparcnbsd_get_longjmp_target_64): Ditto.
4694 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4695 (get_longjmp_target): Ditto.
4696 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4697 (sh64_extract_struct_value_address): Ditto.
4698 (sh_push_arguments): Ditto.
4699 (sh64_push_arguments): Ditto.
4700 * remote-vxsparc.c (vx_read_register): Ditto.
4701 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4702 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4703 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4704 * mipsv4-nat.c (get_longjmp_target): Ditto.
4705 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4706 * mips-nat.c (get_longjmp_target): Ditto.
4707 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4708 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4709 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4710 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4711 * irix5-nat.c (get_longjmp_target): Ditto.
4712 * irix4-nat.c (get_longjmp_target): Ditto.
4713 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4714 (ia64_push_arguments): Ditto.
4715 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4716 * h8300-tdep.c (h8300_push_arguments): Ditto.
4717 (h8300_store_return_value): Ditto.
4718 (h8300_extract_struct_value_address): Ditto.
4719 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4720 (frv_push_arguments): Ditto.
4721 * avr-tdep.c (avr_pointer_to_address): Ditto.
4722 (avr_push_arguments): Ditto.
4723 * arm-tdep.c (arm_push_dummy_call): Ditto.
4724 (arm_get_longjmp_target): Ditto.
4725 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4726 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4727 (alpha_get_longjmp_target): Ditto.
4728
ae0167b9
AC
4729 * solib-irix.c (extract_mips_address): Inline extract_address,
4730 replacing it with extract_signed_integer.
4731 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4732 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4733 (first_link_map_member, open_symbol_file_object): Ditto.
4734 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4735 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4736 (LM_NEXT, LM_NAME): Ditto.
4737
44d88583
RH
47382003-06-01 Richard Henderson <rth@redhat.com>
4739
98a8e1e5
RH
4740 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4741 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4742 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4743 (alpha_cannot_store_register): Likewise.
4744 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4745 * alpha-nat.c (supply_gregset): Likewise.
4746 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4747
310e9b6a
AC
47482003-06-01 Andrew Cagney <cagney@redhat.com>
4749
4750 * infcall.c (call_function_by_hand): Update comment on
4751 DEPRECATED_DUMMY_WRITE_SP.
4752
4753 * mips-tdep.c (mips_gdbarch_init): Do not set
4754 deprecated_dummy_write_sp.
4755 (mips_eabi_push_dummy_call): Set the SP register.
4756 (mips_o64_push_dummy_call): Set the SP register.
4757 (mips_o32_push_dummy_call): Set the SP register.
4758 (mips_n32n64_push_dummy_call): Set the SP register.
4759
5ab84872
RH
47602003-06-01 Richard Henderson <rth@redhat.com>
4761
98a8e1e5
RH
4762 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4763 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4764 (supply_gregset): Likewise.
4765 * alpha-tdep.c (alpha_store_return_value): Likewise.
4766 (alpha_get_longjmp_target): Likewise.
4767 (alpha_register_name): Constify array.
4768 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4769 deprecated_register_size, deprecated_register_bytes,
4770 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4771 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4772 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4773
09cc52fd
RH
47742003-06-01 Richard Henderson <rth@redhat.com>
4775
4776 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4777 from arg_reg_buffer to regcache to avoid double conversion.
4778
c7f16359
MK
47792003-06-01 Mark Kettenis <kettenis@gnu.org>
4780
4781 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4782 SP_REGNUM.
4783 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4784 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4785
7131cb6e
RH
47862003-06-01 Richard Henderson <rth@redhat.com>
4787
98a8e1e5
RH
4788 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4789 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4790
f3e0f90b
RH
47912003-06-01 Richard Henderson <rth@redhat.com>
4792
98a8e1e5
RH
4793 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4794 not overlapping PC_REGNUM.
f3e0f90b 4795
c88e30c0
RH
47962003-06-01 Richard Henderson <rth@redhat.com>
4797
98a8e1e5
RH
4798 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4799 alpha_push_arguments. Don't dump argument register data to
4800 the target stack. Fix float and 128-bit long double semantics.
4801 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4802 (alpha_fix_call_dummy): Remove.
4803 (alpha_call_dummy_words): Remove.
4804 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4805
f1a559ae
RH
48062003-06-01 Richard Henderson <rth@redhat.com>
4807
4808 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4809
5e045346
AC
48102003-06-01 Andrew Cagney <cagney@redhat.com>
4811
95404a3e
AC
4812 * mips-tdep.c (is_mips16_addr): New function.
4813 (make_mips16_addr, unmake_mips16_addr): New functions.
4814 (pc_is_mips16, mips_fetch_instruction): Use.
4815 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4816 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4817 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4818 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4819 TARGET_MIPS.
4820 * config/mips/tm-mips.h: Update copyright.
4821 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4822 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4823 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4824 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4825 (TM_PRINT_INSN_MACH): Delete.
4826 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4827
5e045346
AC
4828 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4829 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4830 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4831 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4832 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4833 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4834 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4835 mips*-*-riscos* and mips*-*-sysv* onto mips.
4836 * config/mips/mips64.mt: New file.
4837 * config/mips/mips.mt: New file.
4838 * config/mips/littlemips.mt: Delete file.
4839 * config/mips/decstation.mt: Delete file.
4840 * config/mips/vr4300el.mt: Delete file.
4841 * config/mips/vr5000el.mt: Delete file.
4842 * config/mips/vr5000.mt: Delete file.
4843 * config/mips/vr4100.mt: Delete file.
4844 * config/mips/vr4xxxel.mt: Delete file.
4845 * config/mips/vr4300.mt: Delete file.
4846 * config/mips/vr4xxx.mt: Delete file.
4847 * config/mips/bigmips.mt: Delete file.
4848 * config/mips/bigmips64.mt: Delete file.
4849 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4850 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4851 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4852 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4853 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4854 "tm-bigmips.h".
4855 * config/mips/tm-irix3.h: Ditto.
4856 * config/mips/tm-mipsv4.h: Ditto.
4857 * config/mips/tm-embed.h: Ditto.
4858 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4859 "tm-bigmips64.h".
4860 * config/mips/tm-vr5000el.h: Delete file.
4861 * config/mips/tm-tx39l.h: Delete file.
4862 * config/mips/tm-vr4300el.h: Delete file.
4863 * config/mips/tm-vr4xxxel.h: Delete file.
4864 * config/mips/tm-vr4300.h: Delete file.
4865 * config/mips/tm-vr4100.h: Delete file.
4866 * config/mips/tm-vr4xxx.h: Delete file.
4867 * config/mips/tm-vr5000.h: Delete file.
4868 * config/mips/tm-embedl64.h: Delete file.
4869 * config/mips/tm-embedl.h: Delete file.
4870 * config/mips/tm-embed64.h: Delete file.
4871 * config/mips/tm-bigmips64.h: Delete file.
4872 * config/mips/tm-bigmips.h: Delete file.
4873
2473a4a9
MK
48742003-06-01 Mark Kettenis <kettenis@gnu.org>
4875
97a5b208
MK
4876 Fix gdb/1216.
4877 * shnbsd-nat.c: Include "sh-tdep.h".
4878
2473a4a9
MK
4879 From Richard Henderson <rth@redhat.com>:
4880 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4881
e0f7ec59
AC
48822003-05-31 Andrew Cagney <cagney@redhat.com>
4883
4884 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4885 forward declaration.
4886 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4887 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4888 (mips_find_saved_regs): Use set_reg_offset.
4889 (mips_frame_init_saved_regs): Delete function.
4890 (mips_pop_frame): Call mips_find_saved_regs instead of
4891 DEPRECATED_FRAME_INIT_SAVED_REGS.
4892
68dcc709
AC
48932003-05-31 Andrew Cagney <cagney@redhat.com>
4894
4895 * mips-tdep.c (mips_gdbarch_init): Do not set
4896 deprecated_max_register_raw_size, register_virtual_size, and
4897 deprecated_max_register_virtual_size.
4898
cfc14b3a
MK
48992003-05-31 Mark Kettenis <kettenis@gnu.org>
4900
6405b0a6
MK
4901 * i386-tdep.c: Include "dwarf2-frame.h".
4902 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4903 * Makefile.in (i386-tdep.o): Update dependencies.
4904
cfc14b3a
MK
4905 * dwarf2-frame.c, dwarf2-frame.h: New files.
4906 * Makefile.in (SFILES): Add dwarf2-frame.c.
4907 (dwarf2_frame_h): Define.
4908 (COMMON_OBS): Add dwarf2-frame.o.
4909 (dwarf2-frame.o): Add dependencies.
4910
6a2751d2
AJ
49112003-05-31 Andreas Jaeger <aj@suse.de>
4912
4913 * x86-64-linux-nat.c: Fix comment.
4914
1c3545ae
MK
49152003-05-31 Mark Kettenis <kettenis@gnu.org>
4916
10f93086
MK
4917 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4918 function signature.
4919
1c3545ae
MK
4920 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4921 have a sigcontext_addr handler.
4922 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4923 sigcontext_addr handler.
4924
e11c53d2
AC
49252003-05-31 Andrew Cagney <cagney@redhat.com>
4926
4927 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4928 (print_fp_register_row): Replace do_fp_register_row.
4929 (mips_print_fp_register): Add "file" and "frame" parameters.
4930 (mips_print_register): Add "file" and "frame" parameters.
4931 (mips_print_registers_info): Replace mips_do_registers_info.
4932 (mips_gdbarch_init): Set print_registers_info instead of
4933 deprecated_do_registers_info.
4934 (mips_read_fp_register_single): Add "frame" parameter.
4935 (mips_read_fp_register_double): Add "frame" parameter.
4936
a3386186
MK
49372003-05-31 Mark Kettenis <kettenis@gnu.org>
4938
70913449
MK
4939 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4940 Fixes a bug where GDB would print the wrong register names for
4941 targets without SSE.
4942
2b5e0749
MK
4943 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4944 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4945 registers.
4946
4947 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4948 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4949 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4950 TDEP->sc_sp_offset.
4951
a3386186
MK
4952 From Michal Ludvig <mludvig@suse.cz>:
4953 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4954 and `sc_num_regs'.
4955 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4956 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4957 I386_ST0_REGNUM): Move here from...
4958 * i386-tdep.c: ... here.
4959 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4960 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4961 registers if possible.
4962 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4963 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4964 Remove variables.
4965 (i386bsd_sc_reg_offset): New variable.
4966 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4967 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4968 TDEP->sc_sp_offset.
4969 (i386fbsd_sc_reg_offset): New variable.
4970 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4971 TDEP->sc_num_regs.
4972 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4973 variables.
4974 (i386fbsd4_sc_reg_offset): New variable.
4975 (i3864bsd4_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 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4979 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4980 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4981 Remove variables.
4982 (i386nbsd_sc_reg_offset): New variable.
4983 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4984 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4985 TDEP->sc_sp_offset.
4986 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4987 Remove variables.
4988 (i386obsd_sc_reg_offset): New variable.
4989 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4990 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4991 TDEP->sc_sp_offset.
4992 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4993 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4994 for frame pointer offset in `struct sigcontext'.
4995
25ab4790
AC
49962003-05-31 Andrew Cagney <cagney@redhat.com>
4997
4998 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
4999 architecture methods call_dummy_words, sizeof_call_dummy_words,
5000 push_return_address, store_struct_return, and fix_call_dummy. Set
5001 push_dummy_call instead of deprecated_push_arguments.
5002 (mips_store_struct_return): Delete function.
5003 (mips_fix_call_dummy): Delete function.
5004 (mips_push_return_address): Delete function.
5005 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5006 RA_REGNUM and T9_REGNUM.
5007 (mips_n32n64_push_dummy_call): Ditto for
5008 mips_n32n64_push_arguments.
5009 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5010 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5011
6a65450a
AC
50122003-05-31 Andrew Cagney <cagney@redhat.com>
5013
5014 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5015 "dummy_addr" to "bp_addr".
5016 * infcall.c (call_function_by_hand): Pass "funaddr" to
5017 gdbarch_push_dummy_call.
5018 * gdbarch.h, gdbarch.c: Re-generate.
5019 * i386-tdep.c (i386_push_dummy_call): Update.
5020 * arm-tdep.c (arm_push_dummy_call): Update.
5021 * d10v-tdep.c (d10v_push_dummy_call): Update.
5022
c4f35dd8
MK
50232003-05-31 Mark Kettenis <kettenis@gnu.org>
5024
5025 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5026 variable declarations.
5027 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5028 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5029 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5030 x86_64_init_frame_pc, x86_64_init_frame_pc,
5031 x86_64_function_has_prologue): Remove prototypes.
5032 (X86_64_NUM_GREGS): New define.
5033 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5034 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5035 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5036 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5037 XMM1_REGNUM): Remove defines.
5038 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5039 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5040 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5041 X86_64_XMM1_REGNUM): New defines.
5042 (struct x86_64_register_info): Renamed from `struct
5043 register_info'. Remove `size' member.
5044 (x86_64_register_info_table): Remove variable.
5045 (x86_64_register_info): New variable.
5046 (X86_64_NUM_REGS): New define.
5047 (X86_64_NUM_GREGS): Remove define.
5048 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5049 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5050 Remove variables.
5051 (x86_54_dwarf2_reg_to_regnum): Remove function.
5052 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5053 (x86_64_dwarf_reg_to_regnum): New function.
5054 (x86_64_register_name): Rewrite.
5055 (x86_64_register_raw_size): Remove function.
5056 (x86_64_register_byte_table): Remove variable.
5057 (x86_64_register_byte): Remove function.
5058 (x86_64_register_virtual_type): Remove function.
5059 (x86_64_register_type): New function.
5060 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5061 x86_64_register_convert_to_raw): Remove functions.
5062 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5063 (x86_64_use_struct_convention): Make static. Adjust for renamed
5064 defines.
5065 (x86_64_frame_init_saved_regs): Remove function.
5066 (x86_64_push_arguments): Make static. Change to accept a regcache
5067 as argument.
5068 (x86_64_store_return_value, x86_64_extract_return_value): Make
5069 static. Rewrite based on i386 counterparts.
5070 (x86_64_push_dummy_call): New function.
5071 (X86_64_NUM_SAVED_REGS): New define.
5072 (x86_64_register_number): Remove function.
5073 (x86_64_store_struct_return): Remove function.
5074 (x86_64_frameless_function_invocation,
5075 x86_64_function_has_prologue): Remove functions.
5076 (PROLOG_BUFSIZE): Remove define.
5077 (struct x86_64_frame_cache): New structure.
5078 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5079 x86_64_frame_cache, x86_64_frame_this_id,
5080 x86_64_frame_prev_register, x86_64_frame_p,
5081 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5082 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5083 functions.
5084 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5085 variables.
5086 (x86_64_skip_prologue): Rewrite in terms of
5087 x86_64_analyze_prologue.
5088 (x86_64_frame_base_address): New function.
5089 (x86_64_frame_base): New variable.
5090 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5091 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5092 set deprecated_fp_regnum, deprecated_register_size,
5093 deprecated_register_bytes, register_raw_size, register_byte,
5094 register_virtual_type, register_convertiable,
5095 register_convert_to_virtual, convert_to_raw,
5096 deprecated_get_saved_register, deprecated_target_read_fp,
5097 deprecated_push_arguments, deprecated_push_return_address,
5098 deprecated_pop_frame, deprecated_store_struct_return,
5099 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5100 frameless_function_invocation, deprecated_frame_saved_pc,
5101 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5102 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5103 deprecated_init_frame_pc and virtual_frame_pointer. Call
5104 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5105 and x86_64_frame_p. Call frame_base_set_default to register
5106 x86_64_frame_base.
5107 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5108 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5109 (_initialize_x86_64_tdep): Remove function.
5110 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5111 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5112 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5113 define.
5114 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5115 (x86_64_linux_sigcontext_addr): Rewrite.
5116 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5117 x86_64_linux_frame_saved_pc): Remove functions.
5118 (x86_64_linux_pc_in_sigtramp): Renamed from
5119 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5120 trampoline.
5121 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5122 Remove_functions.
5123 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5124 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5125 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5126 (x86_64_regmap): Rename to regmap.
5127 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5128 x86_64_num_gregs.
5129 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5130 x86_64_regmap.
5131 (x86_64_fxsave_offset): Remove function.
5132 (supply_fpregset): Simply call x86_64_supply_fxsave.
5133 (fill_fpregset): Simply call x86_64_fill_fxsave.
5134 (fetch_inferior_registers, store_inferior_registers): Avoid
5135 asignment in if-statement.
5136 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5137 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5138 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5139 (fetch_core_registers): Remove function.
5140 (linux_elf_core_fns): Remove.
5141 (offsetoff): Don't define.
5142 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5143 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5144 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5145 add core-regset.o.
5146 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5147 protection against multiple includes instead of NM_X86_64_h. Add
5148 various comments. Include "config/nm-linux.h". Don't include
5149 <signal.h>.
5150 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5151 GET_THREAD_SIGNALS): Remove defines.
5152 (x86_64_register_u_addr, kernel_u_size,
5153 lin_thread_get_thread_signals): Remove prototypes.
5154 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5155 [HAVE_LINK_H]: Don't include "solib.h".
5156 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5157 * config/i386/tm-x86-64linux.h: Fix comments.
5158 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5159 x86-64-tdep.o): Update dependencies.
5160
c25083af
AC
51612003-05-30 Andrew Cagney <cagney@redhat.com>
5162
c8f55a7b
AC
5163 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5164 Change parameter type to a "struct regcache *".
5165
c25083af
AC
5166 * gdbarch.sh: Regardless of the multi-arch level, always define
5167 the macro when not already defined.
5168 * gdbarch.h, gdbarch.c: Re-generate.
5169
fbe586ae
RH
51702003-05-30 Richard Henderson <rth@redhat.com>
5171
5172 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5173 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5174 (alpha_mdebug_frame_this_id): Likewise.
5175 (alpha_mdebug_frame_prev_register): Likewise.
5176 (alpha_mdebug_frame_base_address): Likewise.
5177 (alpha_mdebug_frame_locals_address): Likewise.
5178 (alpha_mdebug_frame_args_address): Likewise.
5179 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5180 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5181 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5182 loop increment.
5183 (alpha_heuristic_frame_this_id): Make static.
5184 (alpha_heuristic_frame_prev_register): Likewise.
5185 (alpha_heuristic_frame_base_address): Likewise.
5186 * alpha-tdep.h: Update.
5187
acd5c798
MK
51882003-05-30 Mark Kettenis <kettenis@gnu.org>
5189
5190 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5191 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5192 defenitions.
5193 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5194 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5195 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5196 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5197 I386_ST0_REGNUM): New defines.
5198 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5199 codestream_get): Remove define.
5200 (codestream_next_addr, condestream_addr, condestream_buf,
5201 codestream_off, codestream_cnt): Remove variables.
5202 (codestream_fill, codestream_seek, codestream_read): Remove
5203 functions.
5204 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5205 functionality.
5206 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5207 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5208 i386_frame_saved_pc, i386_saved_pc_after_call,
5209 i386_frame_num_args, i386_frame_init_saved_regs,
5210 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5211 i386_push_arguments): Remove functions.
5212 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5213 functionality. Use i386_analyze_prologue instead of
5214 i386_get_frame_setup.
5215 (I386_NUM_SAVED_REGS): New define.
5216 (struct i386_frame_cache): New structure.
5217 (i386_alloc_frame_cache, i386_analyze_struct_return,
5218 i386_skip_probe, i386_analyze_frame_setup,
5219 i386_analyze_register_saves, i386_analyze_prologue,
5220 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5221 i386_frame_prev_register, i386_sigtramp_frame_cache,
5222 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5223 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5224 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5225 New functions.
5226 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5227 New variables.
5228 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5229 I386_EAX_REGNUM and I386_EDX_REGNUM.
5230 (i386_extract_return_value, i386_store_return_value): Use
5231 I386_ST0_REGNUM where appropriate.
5232 (i386_extract_struct_value_address): Rewrite to use extract_address.
5233 (i386_svr4_pc_in_sigtramp): Add comment.
5234 (i386_svr4_sigcontext_addr): Rewrite.
5235 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5236 TDEP->sc_sp_offset.
5237 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5238 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5239 of new defines. Set push_dummy_call, don't set
5240 deprecated_push_arguments, deprecated_push_return_address,
5241 deprecated_pop_frame. Don't set parm_boundary. Don't set
5242 deprecated_frame_chain, deprecated_frame_saved_pc,
5243 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5244 save_dummy_frame_tos, unwind_pc. Call
5245 frame_unwind_append_predicate and frame_base_set_default. Don't
5246 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5247 Don't set frameless_function_invocation. Don't set
5248 deprecated_register_bytes, deprecated_register_size,
5249 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5250 * i386-linux-tdep.c: Fix formatting in some comments.
5251 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5252 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5253 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5254 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5255 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5256 redundant parentheses.
5257 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5258 (i386_linux_sigcontext_addr): Use it. Rewrite.
5259 (find_minsym_and_objfile): Change name of second argument.
5260 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5261 changed. Use frame_pc_unwind instead of
5262 DEPRECATED_SAVED_PC_AFTER_CALL.
5263 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5264 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5265 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5266 unwinder.
5267 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5268 "dummy-frame.h".
5269 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5270 (_initialize_i386_cygwin_tdep): New prototype.
5271 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5272 deprecated_frame_chain_valid.
5273 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5274 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5275 Rely on the SVR4 defaults.
5276 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5277 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5278
c89b70f1
AC
52792003-05-30 Andrew Cagney <cagney@redhat.com>
5280
5281 * infcall.c (call_function_by_hand): Always call
5282 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5283
85b32d22
RH
52842003-05-30 Richard Henderson <rth@redhat.com>
5285
c89b70f1
AC
5286 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5287 increment.
85b32d22 5288
bfe51b1e
JB
52892003-05-29 Jim Blandy <jimb@redhat.com>
5290
5291 Use gdbarch methods for solib stuff on PowerPC Linux.
5292 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5293 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5294 show through.
5295 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5296 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5297 giving the same effect as the #definitions above.
5298
1abf022c
AF
52992003-05-29 Adam Fedor <fedor@gnu.org>
5300
5301 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5302 (find_implementation_from_class): Replace it with the standard
5303 case i.e. do nothing.
5304
d2427a71
RH
53052003-05-29 Richard Henderson <rth@redhat.com>
5306
5307 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5308 (alpha_linux_sigtramp_offset): Use it. Make static.
5309 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5310 update for new frame model.
5311 * alpha-mdebug-tdep.c: New file.
5312 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5313 (alpha_osf1_init_abi): Install it.
5314 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5315 (linked_proc_desc_table): Remove.
5316 (alpha_frame_past_sigtramp_frame): Remove.
5317 (alpha_dynamic_sigtramp_offset): Remove.
5318 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5319 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5320 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5321 (push_sigtramp_desc): Remove.
5322 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5323 (alpha_cannot_store_register): Likewise.
5324 (alpha_sigcontext_addr): Remove.
5325 (alpha_find_saved_regs): Remove.
5326 (alpha_frame_init_saved_regs): Remove.
5327 (alpha_init_frame_pc_first): Remove.
5328 (read_next_frame_reg): Remove.
5329 (alpha_frame_saved_pc): Remove.
5330 (alpha_saved_pc_after_call): Remove.
5331 (temp_proc_desc, temp_saved_regs): Remove.
5332 (alpha_about_to_return): Remove.
5333 (cached_proc_desc): Remove.
5334 (alpha_frame_chain): Remove.
5335 (alpha_print_extra_frame_info): Remove.
5336 (alpha_init_extra_frame_info): Remove.
5337 (alpha_frame_locals_address): Remove.
5338 (alpha_frame_args_address): Remove.
5339 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5340 (alpha_push_dummy_frame): Remove.
5341 (alpha_pop_frame): Remove.
5342 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5343 (alpha_read_insn): New.
5344 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5345 for different insn encodings.
5346 (alpha_in_lenient_prologue): Remove.
5347 (struct alpha_sigtramp_unwind_cache): New.
5348 (alpha_sigtramp_frame_unwind_cache): New.
5349 (alpha_sigtramp_register_address): New.
5350 (alpha_sigtramp_frame_this_id): New.
5351 (alpha_sigtramp_frame_prev_register): New.
5352 (alpha_sigtramp_frame_unwind): New.
5353 (alpha_sigtramp_frame_p): New.
5354 (struct alpha_heuristic_unwind_cache): New.
5355 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5356 don't count nop insns that occur between functions.
5357 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5358 heuristic_proc_desc, but without the mdebug wrapping.
5359 (alpha_heuristic_frame_this_id): New.
5360 (alpha_heuristic_frame_prev_register): New.
5361 (alpha_heuristic_frame_unwind): New.
5362 (alpha_heuristic_frame_p): New.
5363 (alpha_heuristic_frame_base_address): New.
5364 (alpha_heuristic_frame_base): New.
5365 (alpha_unwind_dummy_id): New.
5366 (alpha_unwind_pc): New.
5367 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5368 frame related deprecated initializations; install replacements.
5369 (alpha_dump_tdep): Remove.
5370 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5371 (alpha_read_insn, alpha_after_prologue,
5372 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5373 alpha_heuristic_frame_prev_register,
5374 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5375 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5376 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5377 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5378
93ec1121
AC
53792003-05-29 Andrew Cagney <cagney@redhat.com>
5380
5381 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5382 dependant on the availability of ASSERT_FUNCTION.
5383 (ASSERT_FUNCTION): Do not define when there is no function name.
5384
98f08d3d
KB
53852003-05-29 Kevin Buettner <kevinb@redhat.com>
5386
5387 From Jimi X <jimix@watson.ibm.com>:
5388 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5389
0897f59b
JB
53902003-05-28 Jim Blandy <jimb@redhat.com>
5391
5392 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5393 argument to ptrace to int; the system headers should give it the
5394 right type, and pointers don't fit in ints on powerpc64-*-*.
5395
14898363
L
53962003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5397
5398 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5399 DW_TAG_catch_block.
5400
a7a48797
EZ
54012003-05-26 Elena Zannoni <ezannoni@redhat.com>
5402
5403 * stabsread.c (dbx_lookup_type): Make static.
5404 (read_type): Ditto.
5405 (add_undefined_type): Ditto.
5406 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5407 not export.
5408
f5479e9c
EZ
54092003-05-26 Elena Zannoni <ezannoni@redhat.com>
5410
5411 * hpread.c (hpread_has_name): Make static.
5412 (hpread_psymtab_to_symtab): Ditto.
5413 (file_exists): Ditto.
5414 (hpread_call_pxdb): Ditto.
5415 (hpread_pxdb_needed): Ditto.
5416 (hpread_quick_traverse): Ditto.
5417 (hpread_get_header): Ditto.
5418 (hpread_get_lntt): Ditto.
5419 (hpread_get_slt): Ditto.
5420 (class_of): Ditto.
5421
eb2e12d7
AS
54222003-05-25 Andreas Schwab <schwab@suse.de>
5423
78bf922a
AS
5424 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5425 stack_align and deprecated_extra_stack_alignment_needed.
5426 (m68k_stack_align): Delete.
5427
eb2e12d7
AS
5428 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5429 (m68k_register_virtual_size): Likewise.
5430 (altos_skip_prologue): Remove obsolete function.
5431 (isi_frame_num_args): Likewise.
5432 (news_frame_num_args): Likewise.
5433 (m68k_fix_call_dummy): Make static.
5434 (m68k_push_dummy_frame): Likewise.
5435 (m68k_pop_frame): Likewise.
5436 (m68k_skip_prologue): Likewise.
5437 (m68k_frame_init_saved_regs): Likewise.
5438 (m68k_saved_pc_after_call): Likewise.
5439 (m68k_get_longjmp_target): Make multi-arch.
5440 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5441 structure. Register m68k_get_longjmp_target if enabled.
5442 * m68k-tdep.h (struct gdbarch_tdep): Define.
5443 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5444
5445 * Makefile.in (config.status): Also depend on configure.tgt
5446 and configure.host.
5447 (m68klinux-tdep.o): Update dependencies.
5448 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5449 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5450 (M68K_LINUX_JB_PC): Define.
5451 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5452 and take additional parameter.
5453 (m68k_linux_sigtramp_saved_pc): Update.
5454 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5455 m68k_linux_pc_in_sigtramp, in_plt_section,
5456 find_solib_trampoline_target.
5457 * config/m68k/tm-linux.h: Don't include any tm headers.
5458 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5459 (JB_ELEMENT_SIZE): Likewise.
5460 (JB_PC): Likewise.
5461 (GET_LONGJMP_TARGET): Likewise.
5462 (IN_SIGTRAMP): Likewise.
5463 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5464
eb2c22dc
MK
54652003-05-25 Mark Kettenis <kettenis@gnu.org>
5466
5467 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5468 (sparc32_push_arguments): Re-implement by calling
5469 sparc32_do_push_arguments.
5470
44b7b84e
MK
54712003-05-25 Mark Kettenis <kettenis@gnu.org>
5472
5473 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5474 SPARC_O1_REGNUM): New defines.
5475 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5476 (sparc32_store_return_value): New function.
5477 (sparc_extract_struct_value_address): Rewrite to operate on a
5478 regcache.
5479 (sparc_gdbarch_init): Don't set
5480 deprecated_extract_struct_value_address. Set
5481 extract_struct_value_address instead. Don't set
5482 deprecated_extract_return_value and deprecated_store_return_value
5483 for 32-bit targets. Set extract_return_value and
5484 store_return_value instead.
5485 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5486 DEPRECTAED_EXTRACT_RETURN_VALUE,
5487 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5488 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5489 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5490 (sparc_store_return_value): Remove prototype.
5491 (sparc32_store_return_value): New prototype.
5492 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5493 Adjust prototypes.
5494
f6ad61e3
MK
54952003-05-24 Mark Kettenis <kettenis@gnu.org>
5496
5497 * sparcnbsd-tdep.c: Include "gdb_string.h".
5498
b276f1bb
AC
54992003-05-23 Andrew Cagney <cagney@redhat.com>
5500
5501 * p-valprint.c (pascal_val_print): Replace extract_address with
5502 the inline equivalent extract_unsigned_integer.
5503 * jv-valprint.c (java_value_print): Ditto.
5504 * ada-valprint.c (ada_val_print_1): Ditto.
5505 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5506
e76c5fcc
TR
55072003-05-23 Theodore A. Roth <troth@openavr.org>
5508
5509 * blockframe.c (frameless_look_for_prologue): Remove unused
5510 after_prologue variable.
5511
2cdd89cb
MK
55122003-05-23 Mark Kettenis <kettenis@gnu.org>
5513
5514 * blockframe.c (get_pc_function_start): Rewrite to avoid
5515 asignments in if-statements.
5516
182d43bc
EZ
55172003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5518
5519 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5520 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5521 files, don't relocate absolute symbols (and do use mst_abs).
5522
e8f3fcdd
AC
55232003-05-23 Andrew Cagney <cagney@redhat.com>
5524
5525 * objc-lang.c: Include "gdb_assert.h".
5526 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5527 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5528 (gdb_check, gdb_check_fatal): Delete functions.
5529 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5530 gdb_assert.
5531 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5532 * Makefile.in (objc-lang.o): Update dependencies.
5533
3c23e6fb
ILT
55342003-05-22 Ian Lance Taylor <ian@airs.com>
5535
5536 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5537 with fprintf_filtered, not fprintf_unfiltered.
5538
af1342ab
AC
55392003-05-22 Andrew Cagney <cagney@redhat.com>
5540
5541 * stack.c (frame_info): Inline extract_address, replacing it with
5542 extract_unsigned_integer.
5543 * findvar.c (unsigned_pointer_to_address): Ditto.
5544 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5545 * dwarf2expr.c (dwarf2_read_address): Ditto.
5546 * frame.c (frame_pc_unwind): Update comment.
5547 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5548
47e242ec
JJ
55492003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5550
5551 * infptrace.c (detach): Call print_sys_errmsg rather than
5552 perror_with_name to issue warning message when errno is non-zero
5553 after calling ptrace detach.
5554
e2ac8128
JB
55552003-05-21 J. Brobecker <brobecker@gnat.com>
5556
5557 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5558 macro definitions from here...
5559 * hppa-tdep.c: ...to there.
5560
92b3541e
KB
55612003-05-20 Kevin Buettner <kevinb@redhat.com>
5562
5563 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5564 register_ptrace_addr(). Fix all callers.
5565
55809acb
AS
55662003-05-21 Andreas Schwab <schwab@suse.de>
5567
5568 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5569 dependencies.
5570 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5571 end.
5572 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5573 (_initialize_m68k_linux_tdep): New function.
5574 (m68k_linux_frame_saved_pc): Make static.
5575 (m68k_linux_extract_return_value): Likewise.
5576 (m68k_linux_store_return_value): Likewise.
5577 (m68k_linux_extract_struct_value_address): Likewise.
5578 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5579 Remove.
5580 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5581 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5582 (DEPRECATED_FRAME_SAVED_PC): Remove.
5583
0fbc10f7
KW
55842003-05-20 Kris Warkentin <kewarken@qnx.com>
5585
5586 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5587 regset numbering rather than our own.
5588
58da2eb2
DC
55892003-05-19 David Carlton <carlton@bactrian.org>
5590
5591 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5592
1fcb5155
DC
55932003-05-19 David Carlton <carlton@bactrian.org>
5594
5595 Partial fix for PR c++/827.
5596 * cp-support.h: Include symtab.h.
5597 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5598 * cp-namespace.c: Update contributors.
5599 (cp_lookup_symbol_nonlocal): New.
5600 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5601 (lookup_symbol_file): Ditto.
5602 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5603 * block.h: Declare block_scope, block_using, block_global_block.
5604 * block.c (block_scope): New.
5605 (block_using, block_global_block): Ditto.
5606 * Makefile.in (cp_support_h): Depend on symtab_h.
5607 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5608
5f9a71c3
DC
56092003-05-19 David Carlton <carlton@bactrian.org>
5610
5611 * language.h (struct language_defn): Add 'la_value_of_this'
5612 and 'la_lookup_symbol_nonlocal' members.
5613 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5614 lookup_symbol_static, lookup_symbol_global,
5615 lookup_symbol_aux_block.
5616 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5617 if we should search fields of this and how to do static/global
5618 lookup.
5619 (lookup_symbol_aux_block): Make extern.
5620 (basic_lookup_symbol_nonlocal): New.
5621 (lookup_symbol_static, lookup_symbol_global): Ditto.
5622 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5623 'la_lookup_symbol_nonlocal' members.
5624 * c-lang.c (c_language_defn, cplus_language_defn)
5625 (asm_language_defn, minimal_language_defn): Ditto.
5626 * jv-lang.c (java_language_defn): Ditto.
5627 * language.c (unknown_language_defn, auto_language_defn)
5628 (local_language_defn): Ditto.
5629 * m2-lang.c (m2_language_defn): Ditto.
5630 * objc-lang.c (objc_language_defn): Ditto.
5631 * scm-lang.c (scm_language_defn): Ditto.
5632 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5633 * p-lang.c (pascal_language_defn): Ditto for both.
5634 * Makefile.in (f-lang.o): Depend on value_h.
5635 (p-lang.o): Ditto.
5636
89a9d1b1
DC
56372003-05-19 David Carlton <carlton@bactrian.org>
5638
5639 * block.h: Declare block_static_block.
5640 * block.c (block_static_block): New.
5641 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5642 lookup_symbol_aux_local, calling block_static_block instead.
5643 (lookup_symbol_aux_local): Delete 'static_block' argument.
5644
eed3f8ab
DC
56452003-05-19 David Carlton <carlton@bactrian.org>
5646
5647 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5648
a09d8bda
ML
56492003-05-19 Michal Ludvig <mludvig@suse.cz>
5650
5651 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5652 register numbers mapping.
5653
69636828
AF
56542003-05-18 Adam Fedor <fedor@gnu.org>
5655
5656 * symtab.c (completion_list_objc_symbol): New function.
5657 (make_symbol_completion_list): Use it to add ObjC symbols
5658 when looking though the list.
5659 (language_search_unquoted_string): New function.
5660 (make_file_symbol_completion_list): Use it.
5661
55baeb84
AS
56622003-05-18 Andreas Schwab <schwab@suse.de>
5663
d0b45d99
AS
5664 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5665 dependencies.
5666 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5667 as m68k_linux_extract_return_value.
5668 (DEPRECATED_STORE_RETURN_VALUE): Define as
5669 m68k_linux_store_return_value.
5670 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5671 m68k_linux_extract_struct_value_address.
5672 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5673 get_next_frame, get_frame_base, get_frame_pc.
5674 (m68k_linux_frame_saved_pc): Use get_frame_base.
5675 (m68k_linux_extract_return_value): New function.
5676 (m68k_linux_store_return_value): New function.
5677 (m68k_linux_extract_struct_value_address): New function.
5678 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5679
55baeb84
AS
5680 * c-exp.y (typebase): Remove duplicate occurence of
5681 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5682 of lookup_signed_typename.
55baeb84 5683
b6b08ebf
MK
56842003-05-18 Mark Kettenis <kettenis@gnu.org>
5685
5686 * dwarf2loc.c (find_location_expression): Change type of second
5687 argument to `size_t *'.
5688 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5689 for size variable.
5690
5ad1c190
DC
56912003-05-18 David Carlton <carlton@bactrian.org>
5692
5693 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5694 'linkage_name'. Add comment.
5695 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5696 'linkage_name'.
5697 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5698 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5699 (lookup_block_symbol): Ditto.
5700
b8b527c5
AC
57012003-05-16 Andrew Cagney <cagney@redhat.com>
5702
5703 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5704 * gdbarch.h, gdbarch.c: Re-generate.
5705 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5706 * TODO (REGISTER_BYTES): Delete reference.
5707 * alpha-tdep.c (alpha_gdbarch_init): Update.
5708 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5709 * x86-64-tdep.c (x86_64_init_abi): Update.
5710 * vax-tdep.c (vax_gdbarch_init): Update.
5711 * v850-tdep.c (v850_gdbarch_init): Update.
5712 * sparc-tdep.c (sparc_gdbarch_init): Update.
5713 * sh-tdep.c (sh_gdbarch_init): Update.
5714 * s390-tdep.c (s390_gdbarch_init): Update.
5715 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5716 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5717 (ns32k_gdbarch_init_32382): Update.
5718 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5719 * mcore-tdep.c (mcore_gdbarch_init): Update.
5720 * m68k-tdep.c (m68k_gdbarch_init): Update.
5721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5722 * ia64-tdep.c (ia64_gdbarch_init): Update.
5723 * i386-tdep.c (i386_gdbarch_init): Update.
5724 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5725 * hppa-tdep.c (hppa_gdbarch_init): Update.
5726 * h8300-tdep.c (h8300_gdbarch_init): Update.
5727 * frv-tdep.c (frv_gdbarch_init): Update.
5728 * cris-tdep.c (cris_gdbarch_init): Update.
5729 * avr-tdep.c (avr_gdbarch_init): Update.
5730 * arm-tdep.c (arm_gdbarch_init): Update.
5731 * sparc-tdep.c (sparc_pop_frame): Update.
5732 * rs6000-tdep.c (rs6000_pop_frame): Update.
5733 * remote.c (init_remote_state): Update.
5734 (remote_prepare_to_store): Update.
5735 * remote-vx.c (vx_prepare_to_store): Update.
5736 * remote-sds.c (sds_fetch_registers): Update.
5737 (sds_prepare_to_store): Update.
5738 * remote-array.c: Update.
5739 * regcache.c (init_legacy_regcache_descr): Update.
5740 (init_regcache_descr): Update.
5741 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5742 (mips_o64_extract_return_value): Update.
5743 * irix5-nat.c (fetch_core_registers): Update.
5744 * irix4-nat.c (fetch_core_registers): Update.
5745 * i386-tdep.h: Update.
5746 * hppa-tdep.c (pa_do_registers_info): Update.
5747 (pa_do_strcat_registers_info): Update.
5748 * cris-tdep.c (cris_register_bytes_ok): Update.
5749 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5750 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5751 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5752 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5753 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5754 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5755 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5756 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5757 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5758 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5759 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5760 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5761 (REGISTER_BYTES_OK): Update.
5762 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5763 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5764
ee2842e2
ILT
57652003-05-16 Ian Lance Taylor <ian@airs.com>
5766
5767 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5768 (vax_print_insn, print_insn_arg): Remove static functions.
5769 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5770 print_insn_vax from opcodes library.
5771 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5772
973177d3
AC
57732003-05-15 Andrew Cagney <cagney@redhat.com>
5774
aaab4dba
AC
5775 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5776 * target.h (memory_breakpoint_from_pc): Delete declaration.
5777 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5778 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5779 * monitor.c (monitor_insert_breakpoint): Use
5780 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5781 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5782 * gdbarch.h, gdbarch.c: Re-generate.
5783 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5784 (sparc_gdbarch_init): Set breakpoint_from_pc to
5785 sparc_breakpoint_from_pc.
5786 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5787 (BREAKPOINT_FROM_PC): Define.
5788 (sparc_breakpoint_from_pc): Declare.
5789 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5790 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5791 (BREAKPOINT_FROM_PC): Define.
5792 (BREAKPOINT): Delete macro.
5793 * target.h: Update comment.
5794 * s390-tdep.c (s390_gdbarch_init): Update comments.
5795 * remote.c: Update comments.
5796 * remote-mips.c: Update comments.
5797 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5798 * mem-break.c: Update comment.
5799 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5800 (ia64_memory_insert_breakpoint): Update.
5801 * config/sparc/tm-sparc.h: Update comment.
5802 * config/pa/tm-hppa64.h: Update comment.
5803 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5804 (rs6000_breakpoint_from_pc): Update.
5805 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5806 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5807 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5808 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5809 (mips_breakpoint_from_pc): Update.
5810 (mips_dump_tdep): Update.
5811
e06963ff
AC
5812 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5813 * minsyms.c (lookup_minimal_symbol): Inline
5814 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5815
973177d3
AC
5816 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5817 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5818 * p-lang.c (pascal_printstr): Ditto.
5819 * objc-lang.c (objc_printstr): Ditto.
5820 * m2-lang.c (m2_printstr): Ditto.
5821 * jv-valprint.c (java_print_value_fields): Ditto.
5822 * f-lang.c (f_printstr): Ditto.
5823 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5824 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5825 for repeat_count_threshold.
5826 * Makefile.in (cp-valprint.o): Update dependencies.
5827
5ea2bd7f 58282003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5829
5ea2bd7f
JJ
5830 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5831 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5832 they start with mov r2,r12. Support skipping over indirect stores
5833 of the input registers. Upon hitting a non-nop branch instruction
5834 or predicated instruction, bail out by setting lim_pc to the current
5835 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5836 beyond our calculated value and we have trust_limit set,
5837 use the lim_pc value.
5838
cc8c88f3
AC
58392003-05-15 Andrew Cagney <cagney@redhat.com>
5840
5841 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5842 generic_find_dummy_frame.
5843 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5844 (deprecated_generic_find_dummy_frame): Update.
5845 (deprecated_read_register_dummy): Update.
5846 * frame.c (deprecated_generic_get_saved_register): Update.
5847
909cd28e
TR
58482003-05-15 Theodore A. Roth <troth@openavr.org>
5849
5850 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5851 (avr_gdbarch_init): Set breakpoint_from_pc method.
5852
b923b08d
AC
58532003-05-15 Andrew Cagney <cagney@redhat.com>
5854
5855 * regcache.c (build_regcache): Set deprecated_register_valid
5856 directly.
5857 (deprecated_grub_regcache_for_register_valid): Delete function.
5858 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5859 declaration.
5860
ae2f03ac 58612003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5862
5863 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5864 * symtab.c (lookup_symbol_aux): Delete calls to
5865 lookup_symbol_aux_minsyms.
5866 (lookup_symbol_aux_minsyms): Comment out function and
5867 prototype. Delete lookup by mangled name.
ae2f03ac 5868
18ec9831
KB
58692003-05-14 Kevin Buettner <kevinb@redhat.com>
5870
5871 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5872 correctly indicate an empty stack and ``stack_allocated'' to the
5873 indicate the number of elements initially allocated.
5874 (dwarf_expr_grow_stack): Simplify method for computing new
5875 stack size. Don't loop infinitely if ``stack_len'' is zero.
5876 (execute_stack_op): Move ``ctx->in_reg'' initialization
5877 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5878 be used in conjuction with DW_OP_piece. Revise error message
5879 accordingly.
5880
de18ac1f
TR
58812003-05-14 Theodore A. Roth <troth@openavr.org>
5882
5883 * MAINTAINERS: Update my email address.
5884 * avr-tdep.c: Ditto.
5885
176620f1
EZ
58862003-05-14 Elena Zannoni <ezannoni@redhat.com>
5887
5888 * symtab.h (enum domain_enum): Rename from namespace_enum.
5889 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5890 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5891 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5892 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5893 TYPES_NAMESPACE, METHODS_NAMESPACE.
5894 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5895 (struct symbol, struct partial_symbol): Rename field
5896 'namespace_enum namespace' to 'domain_enum domain'.
5897 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5898 Delete old define kludge for namespace.
5899
5900 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5901 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5902 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5903 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5904 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5905 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5906 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5907 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5908 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5909 occurrences of the above.
5910
b7f31508
ILT
59112003-05-14 Ian Lance Taylor <ian@airs.com>
5912
5913 * Makefile.in (install-only): Use $(SHELL) when running
5914 mkinstalldirs.
5915
2fdbdd39
ILT
59162003-05-13 Ian Lance Taylor <ian@airs.com>
5917
a208d82c
ILT
5918 * MAINTAINERS (write after approval): Add myself.
5919
2fdbdd39
ILT
5920 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5921 second and third arguments.
5922 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5923 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5924
fbd9dcd3
AC
59252003-05-13 Andrew Cagney <cagney@redhat.com>
5926
5927 * defs.h (store_address): Delete declaration.
5928 findvar.c (store_address): Delete function.
5929 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5930 store_unsigned_integer.
5931 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5932 * v850-tdep.c (v850_push_arguments): Ditto.
5933 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5934 * sh-tdep.c (sh64_get_saved_register): Ditto.
5935 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5936 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5937 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5938 (mips_get_saved_register): Ditto.
5939 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5940 (find_func_descr, ia64_push_arguments): Ditto.
5941 * i386-tdep.c (i386_push_arguments): Ditto.
5942 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5943 * frv-tdep.c (frv_push_arguments): Ditto.
5944 * frame.c (legacy_saved_regs_prev_register): Ditto.
5945 (deprecated_generic_get_saved_register): Ditto.
5946 * findvar.c (unsigned_address_to_pointer): Ditto.
5947 * dwarf2read.c (dwarf2_const_value): Ditto.
5948 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5949 * alpha-tdep.c (alpha_push_arguments): Ditto.
5950
6760f9e6
JB
59512003-05-12 J. Brobecker <brobecker@gnat.com>
5952
5953 * NEWS: Mention that the hppa-hpux port has been partially
5954 multiarched (32bit ABIT only, so far).
5955
30e221b4
AC
59562003-05-11 Andrew Cagney <cagney@redhat.com>
5957
5958 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5959 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5960 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5961 sim/testsuite/sim/arm/misaligned2.ms, and
5962 sim/testsuite/sim/arm/misaligned3.ms.
5963 * disasm.h (struct ui_file): Add opaque struct declaration.
5964 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5965 * frame.h (struct ui_file): Ditto.
5966
dea7f9ba
MK
59672003-05-11 Mark Kettenis <kettenis@gnu.org>
5968
5969 * value.h: Pretty print.
5970
01986c48
MK
59712003-05-10 Mark Kettenis <kettenis@gnu.org>
5972
5973 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5974
123a958e
AC
59752003-05-08 Andrew Cagney <cagney@redhat.com>
5976
5977 * regcache.h (max_register_size): Delete declaration.
5978 * regcache.c (max_register_size): Delete function.
5979 (struct regcache_descr): Delete field "max_register_size".
5980 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5981 registers fit in MAX_REGISTER_SIZE.
5982 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5983 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5984 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5985 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5986 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5987 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5988 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5989 * dve3900-rom.c, hppa-tdep.c: Ditto.
5990
eb294659
DC
59912003-05-08 David Carlton <carlton@math.stanford.edu>
5992
5993 * valops.c (push_word): Fix typo.
5994
d9d9c31f
AC
59952003-05-08 Andrew Cagney <cagney@redhat.com>
5996
5997 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
5998 * gdbarch.h: Re-generate.
5999 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6000 (legacy_max_register_raw_size): Delete declaration.
6001 * regcache.c (legacy_max_register_raw_size): Delete function.
6002 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6003 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6004 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6005 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6006 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6007 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6008 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6009 * findvar.c, dwarf2cfi.c: Ditto.
6010
22540ece
AC
60112003-05-08 Andrew Cagney <cagney@redhat.com>
6012
6013 * mips-tdep.c (read_signed_register): New function, moved to here
6014 from "regcache.c".
6015 (read_signed_register_pid): Ditto.
6016 * regcache.c (read_signed_register_pid): Delete function, moved to
6017 "mips-tdep.c".
6018 (read_signed_register): Ditto.
6019 * regcache.h (read_signed_register): Delete declaration.
6020 (read_signed_register_pid): Delete declaration.
6021
0c92afe8
AC
60222003-05-08 Andrew Cagney <cagney@redhat.com>
6023
6024 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6025 * gdbarch.h: Re-generate.
6026 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6027 (legacy_max_register_virtual_size): Delete declaration.
6028 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6029 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6030 * tracepoint.c (memrange_sortmerge): Ditto.
6031 * sparc-tdep.c (sparc_print_registers): Ditto.
6032 * regcache.c (legacy_max_register_virtual_size): Delete function.
6033
6037b830
JB
60342002-05-08 J. Brobecker <brobecker@gnat.com>
6035
6036 * fork-child.c (escape_bang_in_quoted_argument): New function.
6037 (fork_inferior): Escape '!' characters in quoted arguments
6038 only when needed.
6039
5d62c8b1
JB
60402003-05-08 J. Brobecker <brobecker@gnat.com>
6041
6042 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6043 the language of the CU is not currently supported by GDB.
6044
20a0e81d
JB
60452003-05-08 J. Brobecker <brobecker@gnat.com>
6046
6047 * defs.h (language): Add language_minimal enum value.
6048 * c-lang.c (minimal_language_defn): New language definition.
6049 (_initialize_c_language): Add the new minimal language to the list
6050 of languages known to GDB.
6051
710ee10a
KB
60522003-05-08 Kevin Buettner <kevinb@redhat.com>
6053
6054 * frame.c (get_frame_type): Don't attempt to lazily initialize
6055 frame's unwinder for legacy frames.
6056
1750fa04
AC
60572003-05-07 Andrew Cagney <cagney@redhat.com>
6058
6059 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6060 and "regcache" parameters.
6061 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6062
ddf9f258 60632003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6064
6065 * dwarf2read.c (dwarf_decode_lines): Only use output of
6066 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6067 the current address.
6068
87767c29
AC
60692003-05-07 Andrew Cagney <cagney@redhat.com>
6070
6071 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6072 code.
6073
5e7b2f39
JB
60742003-05-07 Jim Blandy <jimb@redhat.com>
6075
6076 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6077 'maint info symtabs' and 'maint info psymtabs'.
6078 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6079 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6080 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6081 Declarations updated.
6082 * maint.c (maintenance_list_command): Delete.
6083 (_initialize_maint_cmds): Update calls to add_cmd.
6084 * gdbcmd.h (maintenancelistlist): Delete declaration.
6085 * cli/cli-cmds.c (maintenancelistlist): Delete.
6086 (init_cmd_lists): Don't initialize it.
6087 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6088
f6684c31
AC
60892003-05-07 Andrew Cagney <cagney@redhat.com>
6090
6091 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6092 "regcache".
6093 (d10v_print_registers_info): Update.
6094 (d10v_dmap_register, d10v_imap_register): Delete functions.
6095 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6096 and "imap_register".
6097 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6098 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6099 * arch-utils.c (generic_remote_translate_xfer_address): Add
6100 "regcache" and "gdbarch" parameters.
6101 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6102 parameter. Change class to multi-arch.
6103 * gdbarch.h, gdbarch.c: Re-generate.
6104 * remote.c (remote_xfer_memory): Use
6105 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6106
e4846b08
JJ
61072003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6108
6109 * infrun.c (prev_pc): Move declaration ahead of proceed().
6110 (proceed): Refresh prev_pc value before resuming.
6111 (stop_stepping): Remove code to refresh prev_pc.
6112
6b71b8ac
KW
61132003-05-06 Kris Warkentin <kewarken@qnx.com>
6114
6115 * nto-tdep.c: Removed stray comment.
6116
47979a4b
KW
61172003-05-06 Kris Warkentin <kewarken@qnx.com>
6118
6119 * i386-nto-tdep.c: Fix old K&R function definitions.
6120 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6121 Also change add_show_from_set() call to add_setshow_cmd().
6122 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6123
00905d52
AC
61242003-05-05 Andrew Cagney <cagney@redhat.com>
6125
6126 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6127 (fprint_dummy_frames): New function.
6128 (maintenance_print_dummy_frames): New function.
6129 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6130 * frame.c (fprint_frame_id): Make global.
6131 * frame.h (fprint_frame_id): Declare.
6132 * Makefile.in (dummy-frame.o): Update dependencies.
6133
b1e29e33
AC
61342003-05-05 Andrew Cagney <cagney@redhat.com>
6135
6136 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6137 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6138 SIZEOF_CALL_DUMMY_WORDS.
6139 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6140 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6141 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6142 CALL_DUMMY_BREAKPOINT_OFFSET.
6143 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6144 CALL_DUMMY_START_OFFSET.
6145 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6146 * gdbarch.h, gdbarch.c: Re-generate.
6147 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6148 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6149 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6150 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6151 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6152 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6153 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6154 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6155 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6156 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6157 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6158 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6159 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6160 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6161 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6162
61632003-05-05 Kris Warkentin <kewarken@qnx.com>
6164
6165 * configure.tgt: Add i[3456]86-*-nto*.
6166 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6167 * nto-tdep.c: New file. Neutrino target support routines.
6168 * nto-tdep.h: New file. Neutrino target header.
6169 * config/tm-qnxnto.h: New file.
6170 * config/i386/i386nto.mt: New file.
6171 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6172
0ce3d317
AC
61732003-05-04 Andrew Cagney <cagney@redhat.com>
6174
6175 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6176 (load_infrun_state): Ditto.
6177 (struct thread_info): Drop "prev_func_name" field.
6178 * thread.c (load_infrun_state): Update.
6179 (save_infrun_state): Update.
6180 * infrun.c (prev_func_name): Delete variable.
6181 (init_wait_for_inferior): Do not clear prev_func_name.
6182 (stop_stepping, keep_going, context_switch): Do not swap
6183 prev_func_name.
6184 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6185 instead of PC_IN_SIGTRAMP.
6186
46654a5b
AC
61872003-05-04 Andrew Cagney <cagney@redhat.com>
6188
6189 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6190 REGISTER_BYTE with register_offset_hack.
6191 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6192 that REGISTER_BYTE is consistent with the regcache.
6193 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6194 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6195
14b08c1b
MK
61962003-05-04 Mark Kettenis <kettenis@gnu.org>
6197
04c8243f
MK
6198 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6199 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6200
14b08c1b
MK
6201 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6202
c7a11e01
JB
62032003-05-03 J. Brobecker <brobecker@gnat.com>
6204
6205 From Thierry Schneider <tpschneider1@yahoo.com>
6206 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6207 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6208 (mi-cmd-symbol.o): Add rule.
6209
7043d8dc
AC
62102003-05-03 Andrew Cagney <cagney@redhat.com>
6211
6212 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6213 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6214 * gdbarch.h, gdbarch.c: Re-generate.
6215 * d10v-tdep.c (d10v_push_dummy_code): New function.
6216 (d10v_gdbarch_init): Set push_dummy_code.
6217 * infcall.c (legacy_push_dummy_code): New function.
6218 (generic_push_dummy_code): New function.
6219 (push_dummy_code): New function.
6220 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6221 instead of dummy_addr, to push_dummy_call. Move call to
6222 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6223 switch.
6224 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6225
92bf2b80
AC
62262003-05-03 Andrew Cagney <cagney@redhat.com>
6227
6228 * disasm.h (print_insn): Declare.
6229 * disasm.c (init_gdb_disassemble_info): New function.
6230 (gdb_disassembly): Call init_gdb_disassemble_info.
6231 (gdb_print_insn): New function.
6232 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6233 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6234 * mcore-tdep.c: Include "disasm.h"
6235 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6236 * d10v-tdep.c: Include "disasm.h".
6237 (display_trace): Call gdb_print_insn, instead of print_insn.
6238 (print_insn): Delete function.
6239 * printcmd.c: Include "disasm.h".
6240 (print_insn): Delete function.
6241 (print_formatted): Call gdb_print_insn, instead of print_insn.
6242 * Makefile.in (printcmd.o): Update dependencies.
6243 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6244
27d94c49
AC
62452003-05-02 Andrew Cagney <cagney@redhat.com>
6246
82de1e5b
AC
6247 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6248 PC_REGNUM, re-indent.
6249 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6250 PC_REGNUM isn't set.
6251
27d94c49
AC
6252 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6253 * gdbarch.h, gdbarch.c: Re-generate.
6254 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6255 register_virtual_size, pc_regnum, or register_bytes.
6256 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6257 (d10v_register_type): Use D10V_PC_REGNUM.
6258 (d10v_print_registers_info, d10v_read_pc): Ditto.
6259 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6260 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6261
a9c0dc7f
DC
62622003-05-02 David Carlton <carlton@bactrian.org>
6263
6264 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6265 the name with mstrsave.
6266
e33d66ec
EZ
62672003-05-02 Elena Zannoni <ezannoni@redhat.com>
6268
6269 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6270 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6271 (host_charset_name, target_charset_name): New vars for use by
6272 set/show commands.
6273 (host_charset_enum, target_charset_enum): New enums for set/show
6274 commands.
6275 (set_charset_sfunc, set_host_charset_sfunc,
6276 set_target_charset_sfunc): New functions.
6277 (set_host_charset, set_target_charset): Make static.
6278 (list_charsets, set_host_charset_command,
6279 set_target_charset_command): Delete functions.
6280 (show_charset_command): Rewrite as....
6281 (show_charset): Hook this up with the set/show command mechanism.
6282 (_initialize_charset): Change names of charsets to match the
6283 set/show enums. Use host_charset_name and target_charset_name.
6284 Use set/show mechanism for charset, host-charset, target-charset
6285 commands. Do not make 'show host-charset' and 'show
6286 target-charset' be aliases of 'show charset'.
6287
6288 * charset.h (set_host_charset, set_target_charset): Don't export,
6289 they are not used outside the file.
6290
2b6fd0d8
AC
62912003-05-01 Andrew Cagney <cagney@redhat.com>
6292
6293 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6294 (gdb_disassembly): Make "di" non static, always initialize and
6295 cleanup. Always use dis_asm_read_memory.
6296 (gdb_dis_asm_read_memory): Delete function.
6297
6ae2f580
AC
62982003-05-01 Andrew Cagney <cagney@redhat.com>
6299
6300 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6301 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6302
810ecf9f
AC
63032003-04-30 Andrew Cagney <cagney@redhat.com>
6304
6305 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6306 "tm_print_insn_info".
6307 (TARGET_PRINT_INSN_INFO): Delete macro.
6308 (dis_asm_read_memory): Delete function declaration.
6309 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6310 (tm_print_insn_info): Delete variable definition.
6311 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6312 * gdbarch.h, gdbarch.c: Re-generate.
6313 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6314 "deprecated_tm_print_insn_info".
6315 * mcore-tdep.c (mcore_dump_insn): Ditto.
6316 * mips-tdep.c (mips_gdbarch_init): Ditto.
6317 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6318 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6319 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6320 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6321 instead of TARGET_PRINT_INSN_INFO, add comment.
6322 * s390-tdep.c (s390_get_frame_info): Instead of
6323 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6324 (s390_check_function_end, s390_is_sigreturn): Ditto.
6325 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6326 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6327 * disasm.c: Include "gdbcore.h".
6328 (_initialize_disasm): New function, initialize
6329 "deprecated_tm_print_insn_info".
6330 (deprecated_tm_print_insn_info): New variable.
6331 (dis_asm_read_memory): Moved from "corefile.c", made static.
6332 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6333 * Makefile.in (disasm.o): Update dependencies.
6334
07020390
AC
63352003-04-30 Andrew Cagney <cagney@redhat.com>
6336
6337 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6338
a9fa03de
AF
63392003-04-29 Adam Fedor <fedor@gnu.org>
6340
6341 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6342 * infcall.c (find_function_addr): Make non-static.
6343 * infcall.h (find_function_addr): Declare.
6344 * Makefile.in (eval.o): Update dependencies.
6345
1bae87b9
AF
63462003-04-28 Adam Fedor <fedor@gnu.org>
6347
6348 * symtab.c (symbol_find_demangled_name): Check for and demangle
6349 ObjC symbols.
6350 (symbol_init_demangled_name): Init for language_objc as well.
6351
0ba6dca9
AC
63522003-04-28 Andrew Cagney <cagney@redhat.com>
6353
6354 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6355 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6356 * gdbarch.h, gdbarch.c: Re-generate.
6357 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6358 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6359 * inferior.h (deprecated_read_fp): Rename read_fp.
6360 (generic_target_read_fp): Delete declaration.
6361 * regcache.c (generic_target_read_fp): Delete function.
6362 (deprecated_read_fp): Replace read_fp, use
6363 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6364 * d10v-tdep.c (d10v_read_fp): Delete function.
6365 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6366
6367 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6368 deprecated_target_read_fp to generic_target_read_fp.
6369 * sh-tdep.c (sh_gdbarch_init): Ditto.
6370 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6372 * frv-tdep.c (frv_gdbarch_init): Ditto.
6373
6374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6375 deprecated_fp_regnum.
6376 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6377 * vax-tdep.c (vax_gdbarch_init): Ditto.
6378 * v850-tdep.c (v850_gdbarch_init): Ditto.
6379 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6380 * sh-tdep.c (sh_gdbarch_init): Ditto.
6381 * s390-tdep.c (s390_gdbarch_init): Ditto.
6382 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6383 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6384 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6385 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6386 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6387 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6388 * i386-tdep.c (i386_gdbarch_init): Ditto.
6389 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6390 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6391 * frv-tdep.c (frv_gdbarch_init): Ditto.
6392 * cris-tdep.c (cris_gdbarch_init): Ditto.
6393 * avr-tdep.c (avr_gdbarch_init): Ditto.
6394 * arm-tdep.c (arm_gdbarch_init): Ditto.
6395 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6396
6397 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6398 * v850-tdep.c (v850_gdbarch_init): Ditto.
6399 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6400 * sh-tdep.c (sh_gdbarch_init): Ditto.
6401 * s390-tdep.c (s390_gdbarch_init): Ditto.
6402 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6403 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6404 * mips-tdep.c (mips_gdbarch_init): Ditto.
6405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6406 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6407 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6408 * frv-tdep.c (frv_gdbarch_init): Ditto.
6409 * avr-tdep.c (avr_gdbarch_init): Ditto.
6410 * arm-tdep.c (arm_gdbarch_init): Ditto.
6411
6412 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6413 DEPRECATED_FP_REGNUM.
6414 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6415 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6416 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6417 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6418 (sparc32_register_virtual_type): Ditto.
6419 * sh-tdep.c (sh64_frame_chain): Ditto.
6420 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6421 (sh_nofp_frame_init_saved_regs): Ditto.
6422 (sh64_nofp_frame_init_saved_regs): Ditto.
6423 (sh_fp_frame_init_saved_regs): Ditto.
6424 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6425 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6426 * procfs.c (procfs_fetch_registers): Ditto.
6427 (procfs_store_registers): Ditto.
6428 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6429 (store_inferior_registers, fetch_core_registers): Ditto.
6430 (fetch_kcore_registers, clear_regs): Ditto.
6431 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6432 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6433 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6434 * nlm/i386.c (do_status): Ditto.
6435 * mipsv4-nat.c (supply_gregset): Ditto.
6436 * mips-tdep.c: Ditto for comments.
6437 * mips-nat.c (fetch_inferior_registers): Ditto.
6438 (store_inferior_registers, fetch_core_registers): Ditto.
6439 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6440 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6441 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6442 (i386_do_pop_frame, i386_register_type): Ditto.
6443 * hppa-tdep.c (hppa_frame_chain): Ditto.
6444 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6445 (hppa_pop_frame, hppa_read_fp): Ditto.
6446 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6447 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6448 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6449 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6450 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6451 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6452 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6453 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6454 * blockframe.c: Ditto for comments.
6455 * arch-utils.h: Ditto for comments.
6456 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6457 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6458 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6459 * alpha-tdep.h: Ditto for comments.
6460 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6461 (alpha_cannot_store_register): Ditto.
6462 (alpha_push_dummy_frame): Ditto.
6463 * alpha-nat.c (supply_gregset): Ditto.
6464
6465 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6466 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6467 * config/sparc/tm-sparc.h: Update comment.
6468
6469 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6470 deprecated_read_fp instead of TARGET_READ_FP.
6471 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6472 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6473 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6474 deprecated_read_fp instead of read_fp.
6475 * s390-tdep.c (s390_push_arguments): Ditto.
6476 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6477 * frame.h: Ditto in comments.
6478 * frame.c (legacy_get_prev_frame): Ditto.
6479 * dummy-frame.c (dummy_frame_this_id): Ditto.
6480 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6481
d7a27068
AC
64822003-04-28 Andrew Cagney <cagney@redhat.com>
6483
6484 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6485 * gdbarch.h, gdbarch.c: Re-generate.
6486 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6487 * vax-tdep.c (_initialize_vax_tdep): Update.
6488 * v850-tdep.c (_initialize_v850_tdep): Update.
6489 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6490 * s390-tdep.c (_initialize_s390_tdep): Update.
6491 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6492 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6493 * mips-tdep.c (_initialize_mips_tdep): Update.
6494 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6495 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6496 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6497 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6498 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6499 * frv-tdep.c (_initialize_frv_tdep): Update.
6500 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6501 (_initialize_cris_tdep): Update.
6502 * arch-utils.c (legacy_print_insn): Update.
6503 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6504
d2630e69
AF
65052003-04-26 Adam Fedor <fedor@gnu.org>
6506
6507 * linespec.c (decode_objc): New function to decode ObjC calls
6508 (decode_line_1): Check for ObjC calls (using decode_objc)
6509 * Makefile (linespec.o): Update dependencies.
6510
3086aeae
DJ
65112003-04-26 Daniel Jacobowitz <drow@mvista.com>
6512
6513 * breakpoint.h (struct breakpoint_ops): New.
6514 (struct breakpoint): Add ops member.
6515
6516 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6517 (mention): Use new breakpoint ops member.
6518 (set_raw_breakpoint): Initialize ops field to NULL.
6519 (print_exception_catchpoint, print_one_exception_catchpoint)
6520 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6521 (gnu_v3_exception_catchpoint_ops): New.
6522 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6523
1fbec6c3
AF
65242003-04-25 Adam Fedor <fedor@gnu.org>
6525
6526 * Makefile.in (COMMON_OBS): Add objc-lang.o
6527
0ef21242
AC
65282003-04-25 Andrew Cagney <cagney@redhat.com>
6529
6530 * d10v-tdep.c (print_insn): Delete function.
6531 (display_trace): Use TARGET_PRINT_INSN.
6532 (_initialize_d10v_tdep): Do not set tm_print_insn.
6533 (d10v_gdbarch_init): Set print_insn.
6534
f75493ed
AC
65352003-04-25 Andrew Cagney <cagney@redhat.com>
6536
6537 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6538 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6539 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6540 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6541 (nr_dmap_regs, a0_regnum): ... new functions.
6542 (d10v_print_registers_info): Use a0_regnum, use register_size.
6543 (d10v_register_byte): Delete function.
6544 (d10v_register_raw_size): Delete function.
6545 (d10v_register_type): Use a0_regnum.
6546 (d10v_print_registers_info): Use a0_regnum.
6547 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6548 (d10v_gdbarch_init): Do not set register_byte or
6549 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6550 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6551 extract_address.
6552 (trace_command): Use XCALLOC.
6553 (print_insn): Delete reference to tm_print_insn.
6554 (saved_regs_unwinder): Use store_unsigned_integer instead of
6555 store_address.
6556 * frame.h (FRAME_OBSTACK_CALLOC): Define
6557
2202b100
DC
65582003-04-25 David Carlton <carlton@bactrian.org>
6559
6560 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6561
4e45ca2e
AF
65622003-04-24 Adam Fedor <fedor@gnu.org>
6563
6564 * objc-lang.c: Include "valprint.h"
6565 * Makefile.in (objc-lang.o): Update dependencies.
6566
93de3e7f
AF
65672003-04-24 Adam Fedor <fedor@gnu.org>
6568
8ffd9b1b 6569 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6570 architecture dependant compilation and mark as unimplemented
6571 (until they get put in the gdbarch vector).
6572
0f20eeea
DC
65732003-04-23 David Carlton <carlton@bactrian.org>
6574
6575 * cp-support.c (cp_find_first_component): Accept 'operator' in
6576 more locations.
6577
74cfe982
AC
65782003-04-23 Andrew Cagney <cagney@redhat.com>
6579
6580 * infcall.c (call_function_by_hand): Eliminate redundant
6581 indentation. Move "saved_async" and "old_cleanups" to where they
6582 are needed.
8ffd9b1b 6583
52557533
AC
65842003-04-23 Andrew Cagney <cagney@redhat.com>
6585
6586 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6587 and "buffer". Move the "name" code to where it is needed.
6588
158775de
AC
65892003-04-23 Andrew Cagney <cagney@redhat.com>
6590
6591 * infcall.c (call_function_by_hand): Move variables "start_sp",
6592 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6593 code to ON_STACK switch branch.
8ffd9b1b 6594
ebc7896c
AC
65952003-04-23 Andrew Cagney <cagney@redhat.com>
6596
6597 * infcall.c (call_function_by_hand): Make declaration of "i",
6598 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6599 lint.
6600
d727590f
AC
66012003-04-23 Andrew Cagney <cagney@redhat.com>
6602
6603 * infcall.c (call_function_by_hand): Delete variable
6604 "n_method_args". Localize "param_type"'s declaration to the loop
6605 that it is used. Reinstate code assigning to said variable -
6606 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6607 Rationalize code using "param_type".
6608
d585e13a
AC
66092003-04-22 Andrew Cagney <cagney@redhat.com>
6610
6611 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6612 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6613 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6614 to DEPRECATED_PUSH_RETURN_ADDRESS.
6615
051caad9
KB
66162003-04-22 Kevin Buettner <kevinb@redhat.com>
6617
6618 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6619 on the DWARF2 register number prior to fetching a register.
6620
77296879
JB
66212003-04-22 J. Brobecker <brobecker@gnat.com>
6622
6623 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6624 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6625 this macro was always set to 0.
77296879
JB
6626 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6627 considering the fact that this macro was always set to 0.
6628 * hppa-tdep.h (hppa_store_return_value): Likewise.
6629 (hppa_extract_return_value): Likewise.
6630
4252f1df
JB
66312003-04-22 J. Brobecker <brobecker@gnat.com>
6632
6633 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6634 the hppa-pro target only.
6635
14604c6b
JB
66362003-04-21 J. Brobecker <brobecker@gnat.com>
6637
6638 Ongoing multi-arch conversion effort for HP/UX:
6639 * config/pa/tm-hppa.h: Move all macro that are no longer
6640 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6641 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6642
77eb01d1
JB
66432003-04-21 J. Brobecker <brobecker@gnat.com>
6644
6645 * config/pa/tm-hppa.h: Obsolete a section that was only used
6646 for hppa-pro.
6647
61995b3b
JB
66482003-04-21 J. Brobecker <brobecker@gnat.com>
6649
6650 Ongoing multi-arch conversion for HP/UX.
6651 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6652 if already defined (allows hppa64 to stay non-multiarched for now).
6653 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6654
4aa79dcc
AC
66552003-04-21 Andrew Cagney <cagney@redhat.com>
6656
6657 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6658
0f751ff2
AC
66592003-04-21 Andrew Cagney <cagney@redhat.com>
6660
6661 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6662 "i386_num_mmx_regs".
6663
04714b91
AC
66642003-04-21 Andrew Cagney <cagney@redhat.com>
6665
6666 * infcall.c: New file.
6667 * infcall.h: New file.
6668 * valarith.c: Include "infcall.h".
6669 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6670 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6671 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6672 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6673 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6674 (SFILES): Add "infcall.c"
6675 (COMMON_OBS): Add "infcall.o".
6676 (infcall.o): Specify dependencies.
6677 * value.h (call_function_by_hand): Delete declaration.
6678 * inferior.h (run_stack_dummy): Delete declaration.
6679 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6680 (run_stack_dummy): Move to "infcall.c", merged into
6681 call_function_by_hand.
6682 * valops.c (call_function_by_hand): Moved to "infcall.c".
6683 (find_function_addr, value_arg_coerce): Ditto.
6684 (unwindonsignal_p, coerce_float_to_double): Ditto.
6685 (_initialize_valops): Move "set/show coerce-float-to-double", and
6686 "set/show unwindonsignal" commands to "infcall.c".
6687 * v850-tdep.c, target.h: Update comments.
6688 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6689 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6690 (sh64_init_extra_frame_info): Update comments.
6691 * mn10300-tdep.c: Update comments.
6692 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6693 * config/sparc/tm-sparc.h: Update comments.
6694 * breakpoint.h: Update comments.
6695 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6696 * arm-tdep.c: Update comment.
6697
f9d3c2a8
MK
66982003-04-19 Mark Kettenis <kettenis@gnu.org>
6699
c40e1eab
MK
6700 * i386-tdep.c (i386_num_register_names): New variable.
6701 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6702 (MM0_REGNUM): Remove redundant parentheses in define.
6703 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6704 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6705 i386_mxcsr_regnum_p): Remove redundant parentheses.
6706 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6707
94ea66b3
MK
6708 * i386-tdep.c (i386_extract_return_value,
6709 i386_store_return_value): Correct check for availability of
6710 floating-point registers.
6711
54299a1d
MK
6712 * i386-tdep.c (i386_frame_num_args): Remove function.
6713 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6714
c86c27af
MK
6715 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6716 mmx_regnum_to_fp_regnum. Adjust all callers.
6717
f9d3c2a8
MK
6718 * i386-tdep.c (i386_get_longjmp_target): Use
6719 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6720 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6721 extract_address.
6722
94ba74a9
MK
67232003-04-19 Mark Kettenis <kettenis@gnu.org>
6724
6725 * core-regset.c: Update comments to reflect reality. Re-order
6726 includes.
6727 (fetch_core_registers): Use switch instead of if. Remove
6728 redundant prototype.
6729
4074e13c
JB
67302003-04-18 Jim Blandy <jimb@redhat.com>
6731
6732 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6733 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6734
e3ab4aba
RH
67352003-04-17 Richard Henderson <rth@redhat.com>
6736
6737 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6738
627bf7c1
EZ
67392003-04-17 Michael Snyder <msnyder@redhat.com>
6740 Karen Bennet <bennet@redhat.com>
6741
6742 Committed by Elena Zannoni <ezannoni@redhat.com>
6743 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6744
514621a9
EZ
67452003-04-17 Elena Zannoni <ezannoni@redhat.com>
6746
6747 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6748 value if the return type is void.
514621a9 6749
b4acd559
JJ
67502003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6751
6752 * thread-db.c: Reindented.
8ffd9b1b 6753
530b167e 67542003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6755
6756 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6757 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6758 as types.
6759
0a48e7e8
MS
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
8ffd9b1b 6783
ab9fe00e
KB
67842003-04-16 Kevin Buettner <kevinb@redhat.com>
6785
610a3745 6786 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6787 the size of ``long double'' to 16, instead of 8.
6788
e64a344c
MK
67892003-04-16 Mark Kettenis <kettenis@gnu.org>
6790
6791 * i386-linux-nat.c: Add some whitespace to make things more
6792 readable.
6793 (fetch_register, store_register, fetch_inferior_registers,
6794 store_inferior_registers): Get rid of assignment in if-statement.
6795 (store_register): Fix typo in error message.
6796
25d41031
AC
67972003-04-16 Andrew Cagney <cagney@redhat.com>
6798
6799 * utils.c (xmmalloc): Always allocate something, matches
6800 libiberty/xmalloc's semantics.
6801 (xmrealloc, xmcalloc): Ditto.
6802
c50901fd
AC
68032003-04-16 Andrew Cagney <cagney@redhat.com>
6804
6805 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6806 update comments.
6807 (get_frame_type): Initialize unwind and type when needed.
6808 (get_frame_id, frame_register_unwind): Ditto.
6809
f81824a9
AC
68102003-04-16 Andrew Cagney <cagney@redhat.com>
6811
6812 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6813 obsolete.
6814 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6815 * sparcl-stub.c: Obsolete file.
6816 * config/sparc/tm-sparclet.h: Obsolete file.
6817 * sparclet-stub.c: Obsolete file.
6818 * sparclet-rom.c: Obsolete file.
6819 * sparcl-tdep.c: Obsolete file.
6820 * config/sparc/tm-sparclite.h: Obsolete file.
6821 * config/sparc/sparclite.mt: Obsolete file.
6822 * config/sparc/sparclet.mt: Obsolete file.
6823 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6824 sparc86x-*-* obsolete.
6825
9219021c
DC
68262003-04-15 David Carlton <carlton@math.stanford.edu>
6827
6828 * Makefile.in (SFILES): Add cp-namespace.c.
6829 (COMMON_OBS): Add cp-namespace.o.
6830 (block.o): Depend on gdb_obstack_h and cp_support_h.
6831 (buildsym.o): Depend on cp_support_h.
6832 (cp-namespace.o): New.
6833 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6834 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6835 (dwarf2read.o): Depend on cp_support_h.
6836 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6837 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6838 processing_current_namespace.
6839 (read_namespace): Update processing_current_namespace; check for
6840 anonymous namespaces.
6841 (dwarf2_name): New function.
6842 (dwarf2_extension): Ditto.
6843 * cp-support.h: Update copyright, contributors.
6844 Add inclusion guards.
6845 Add opaque declaration for structs obstack, block, symbol.
6846 (struct using_direct): New struct.
6847 Add declarations for cp_find_first_component,
6848 cp_entire_prefix_len, processing_has_namespace_info,
6849 processing_current_namespace, cp_is_anonymous,
6850 cp_add_using_directive, cp_initialize_namespace,
6851 cp_finalize_namespace, cp_set_block_scope,
6852 cp_scan_for_anonymous_namespaces.
6853 * cp-namespace.c: New file.
6854 * cp-support.c: Update copyright.
6855 Include ctype.h, gdb_assert.h, gdbcmd.h.
6856 New variable maint_cplus_cmd_list.
6857 (cp_find_first_component): New function.
6858 (cp_entire_prefix_len, maint_cplus_command)
6859 (first_component_command, _initialize_cp_support): Ditto.
6860 * buildsym.c: Include cp-support.h.
6861 New variable using_list.
6862 (add_symbol_to_list): Check for anonymous namespaces.
6863 (finish_block): Set block's scope.
6864 (start_symtab): Initialize C++ namespace support.
6865 (end_symtab): Finalize C++ namespace support.
6866 * block.h: Add opaque declarations for structs
6867 block_namespace_info, using_direct, and obstack.
6868 Add declarations for block_set_scope and block_set_using.
6869 (struct block): Add 'language_specific' member.
6870 (BLOCK_NAMESPACE): New macro.
6871 * block.c: Include gdb_obstack.h and cp-support.h.
6872 (struct block_namespace_info): New struct.
6873 (block_set_scope): New function.
6874 (block_set_using, block_initialize_namespace): Ditto.
6875
d5a921c9
KB
68762003-04-14 Kevin Buettner <kevinb@redhat.com>
6877
6878 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6879 (locate_base): Return early if there aren't any link map offsets.
6880 (svr4_solib_create_inferior_hook): Warn if shared library support
6881 is unavailable.
6882
d2a52b27
DC
68832003-04-14 David Carlton <carlton@math.stanford.edu>
6884
6885 * symtab.c (symbol_set_names): Add prefix when storing Java names
6886 in hash table. Fix for PR java/1039.
6887
980cae7a
DC
68882003-04-14 David Carlton <carlton@math.stanford.edu>
6889
6890 * symtab.c (symbol_set_names): Rename 'name' arg to
6891 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6892 * symtab.h: Change 'name' argument in declaration of
6893 symbol_set_names to 'linkage_name'.
6894 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6895
e227b13c
AC
68962003-04-14 Andrew Cagney <cagney@redhat.com>
6897
6898 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6899 return the fully sign-extended register value.
6900 (get_frame_pointer): Ditto.
6901 (mips_pop_frame): Initialize "proc_desc" after checking for a
6902 dummy frame.
6903
36712a20
AC
69042003-04-14 Andrew Cagney <cagney@redhat.com>
6905
6906 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6907 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6908 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6909 (mips_push_register): Delete function.
6910 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6911 PUSH_FP_REGNUM.
6912
44ea7b70
JB
69132003-04-14 Jim Blandy <jimb@redhat.com>
6914
6915 * symmisc.c: #include "gdb_regex.h".
6916 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6917 functions.
6918 * maint.c (maintenance_list_command): New function.
6919 (_initialize_maint_cmds): Register the above as commands.
6920 * symtab.h (maintenance_list_symtabs,
6921 maintenance_list_psymtabs): New declarations.
6922 * cli/cli-cmds.c (maintenancelistlist): New variable.
6923 (init_cmd_lists): Initialize it.
6924 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6925 * gdbcmd.h (maintenancelistlist): New declaration.
6926 * Makefile.in (symmisc.o): Update dependencies.
6927
2d0c7962
EZ
69282003-04-14 Elena Zannoni <ezannoni@redhat.com>
6929
6930 * s390-nat.c: Include asm/types.h for addr_t.
6931
1947a811
CV
69322003-04-14 Corinna Vinschen <vinschen@redhat.com>
6933
6934 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6935 actually incoming type.
6936
adb616d7
AC
69372003-04-13 Andrew Cagney <cagney@redhat.com>
6938
6939 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6940 get_next_frame and get_frame_saved_regs.
6941
9b5e151c
AC
69422003-04-13 Andrew Cagney <cagney@redhat.com>
6943
6944 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6945 of gdbarch_num_regs.
6946
ef6e7e13
AC
69472003-04-13 Andrew Cagney <cagney@redhat.com>
6948
6949 * frame.h: Mention what replaced what in "struct frame_info".
6950 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6951 deprecated_update_frame_base_hack and
6952 deprecated_update_frame_pc_hack.
6953 * hppa-tdep.c: Ditto.
6954
61fbb938
DJ
69552003-04-13 Daniel Jacobowitz <drow@mvista.com>
6956
6957 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6958 to read_reg and update its comment. Remove regnum member.
6959 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6960 Don't call read_reg when setting in_reg. Call read_reg to get
6961 the frame base if it's in a register. Return the register number
6962 on the stack instead of in the context. Remove extra arguments
6963 to read_reg.
6964 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6965 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6966 the register number on the expression stack.
6967 (needs_frame_read_reg): Remove extra arguments.
6968
0d53c4c4
DJ
69692003-04-13 Daniel Jacobowitz <drow@mvista.com>
6970
6971 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6972 made non-static.
6973 (execute_stack_op): All callers updated.
6974 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6975 * dwarf2loc.c (find_location_expression): New function.
6976 (dwarf_expr_frame_base): Call it.
6977 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6978 (dwarf2_tracepoint_var_ref): New function, broken out from
6979 locexpr_tracepoint_var_ref.
6980 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6981 Make static.
6982 (loclist_read_variable, loclist_read_needs_frame): New functions.
6983 (loclist_describe_location, loclist_tracepoint_var_ref): New
6984 functions.
6985 (dwarf2_loclist_funcs): New struct location_funcs.
6986 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6987 (struct dwarf2_locexpr_baton): Add comments.
6988 (dwarf2_loclist_funcs): New extern.
6989 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6990 base_address and base_known.
6991 (dwarf_loc_buffer): New variable.
6992 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6993 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6994 (dwarf2_has_info): Initialize dwarf_loc_offset.
6995 (dwarf2_build_psymtabs): Read in .debug_loc.
6996 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
6997 DWARF_LOC_SIZE.
6998 (psymtab_to_symtab_1): Likewise. Move base address calculation
6999 here, from...
7000 (dwarf2_get_pc_bounds): ... here. Use the base address from
7001 cu_header.
7002 (dwarf2_symbol_mark_computed): Handle location lists.
7003
6aca59a3
DJ
70042003-04-13 Daniel Jacobowitz <drow@mvista.com>
7005
7006 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7007 if the linkage name demangled successfully.
7008
aca1fcd0
MK
70092003-04-13 Mark Kettenis <kettenis@gnu.org>
7010
97095916
MK
7011 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7012 disassmbly_flavour): Removed.
7013
aca1fcd0
MK
7014 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7015
562a961f
MK
70162003-04-13 Mark Kettenis <kettenis@gnu.org>
7017
7018 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7019
bd013d54
AC
70202003-04-12 Andrew Cagney <cagney@redhat.com>
7021
7022 * frame.h (struct frame_info): Move definition from here ...
7023 * frame.c (struct frame_info): ... to here.
7024
167ef8b1
AC
70252003-04-12 Andrew Cagney <cagney@redhat.com>
7026
7027 * gdbthread.h (save_infrun_state): Delete parameter
7028 "prev_func_start".
7029 (struct thread_info): Delete field "prev_func_start".
7030 (load_infrun_state): Ditto.
7031 * thread.c (load_infrun_state, save_infrun_state): Update.
7032 * infrun.c (prev_func_start): Delete variable.
7033 (context_switch, init_wait_for_inferior): Update.
7034 (stop_stepping, keep_going): Update.
7035
da3331ec
AC
70362003-04-12 Andrew Cagney <cagney@redhat.com>
7037
7038 * gdbarch.sh: Add missing opaque declarations.
7039 * gdbarch.h: Regnerate.
7040 * symtab.h: Add missing opaque declarations.
7041 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7042 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7043 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7044 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7045 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7046 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7047 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7048 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7049 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7050 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7051 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7052 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7053 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7054
18adea3f
AC
70552003-04-11 Andrew Cagney <cagney@redhat.com>
7056
7057 * frame.c (get_frame_id): Return this frame's "id".
7058 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7059 function start.
7060 (legacy_saved_regs_this_id): Replace function body with
7061 internal-error.
7062 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7063 FRAME_OBSTACK_ZALLOC.
7064 (create_new_frame): Mark the frame ID as valid.
7065
2252e863
AO
70662003-04-11 Alexandre Oliva <aoliva@redhat.com>
7067
7068 * Makefile.in (libbfd_h): Added missing setting.
7069 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7070 according to the selected ABI.
7071
a8245ab8
JJ
70722003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7073
7074 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7075
6913c89a
AC
70762003-04-11 Andrew Cagney <cagney@redhat.com>
7077
7078 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7079 SAVED_PC_AFTER_CALL.
7080 * gdbarch.h, gdbarch.c: Regenerate.
7081 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7082 * x86-64-tdep.c (x86_64_init_abi): Update.
7083 * vax-tdep.c (vax_gdbarch_init): Update.
7084 * v850-tdep.c (v850_gdbarch_init): Update.
7085 * sparc-tdep.c (sparc_gdbarch_init): Update.
7086 * sh-tdep.c (sh_gdbarch_init): Update.
7087 * s390-tdep.c (s390_gdbarch_init): Update.
7088 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7089 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7090 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7091 * mips-tdep.c (mips_gdbarch_init): Update.
7092 * mcore-tdep.c (mcore_gdbarch_init): Update.
7093 * m68k-tdep.c (m68k_gdbarch_init): Update.
7094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7095 * ia64-tdep.c (ia64_gdbarch_init): Update.
7096 (ia64_saved_pc_after_call): Update declaration.
7097 * i386ly-tdep.c (i386lynx_init_abi): Update.
7098 * i386-tdep.c (i386_gdbarch_init): Update.
7099 * hppa-tdep.c (hppa_gdbarch_init): Update.
7100 * h8300-tdep.c (h8300_gdbarch_init): Update.
7101 * frv-tdep.c (frv_gdbarch_init): Update.
7102 * cris-tdep.c (cris_gdbarch_init): Update.
7103 * avr-tdep.c (avr_gdbarch_init): Update.
7104 * arm-tdep.c (arm_gdbarch_init): Update.
7105 * alpha-tdep.c (alpha_gdbarch_init): Update.
7106 * ns32knbsd-nat.c (frame_num_args): Update.
7107 * ns32k-tdep.c (umax_frame_num_args): Update.
7108 * mips-tdep.c (mips_init_frame_pc_first): Update.
7109 * infrun.c (step_over_function): Update.
7110 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7111 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7112 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7113 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7114 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7115 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7116 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7117 * arch-utils.c (init_frame_pc_default): Update.
7118 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7119 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7120 declaration.
8ffd9b1b 7121
38edeab8
AC
71222003-04-11 Andrew Cagney <cagney@redhat.com>
7123
7124 * i387-tdep.c: Update copyright.
7125 (i387_to_double): Delete function.
7126 (double_to_i387): Delete function.
7127
81f8a206
AC
71282003-04-10 Andrew Cagney <cagney@redhat.com>
7129
7130 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7131 frame's function's address. Simplify.
7132 (d10v_frame_unwind_cache): Check that the frame's function is
7133 non-zero.
7134
6e691f7a
JB
71352003-04-10 Jim Blandy <jimb@redhat.com>
7136
7137 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7138 call to set_gdbarch_deprecated_push_arguments.
7139
7f78e237
AC
71402003-04-10 Andrew Cagney <cagney@redhat.com>
7141
7142 * frame.c (fprint_frame_id): New function.
7143 (fprint_frame_type, fprint_frame): New function.
7144 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7145 (create_sentinel_frame, get_frame_id): Ditto.
7146 (frame_id_p, frame_id_eq): Ditto.
7147 (frame_id_inner, create_new_frame): Ditto.
7148 (legacy_get_prev_frame, get_prev_frame): Ditto.
7149 (deprecated_update_frame_pc_hack): Ditto.
7150 (frame_register_unwind): Ditto.
7151 (deprecated_update_frame_base_hack): Ditto.
7152
f870b49b
CV
71532003-04-10 Corinna Vinschen <vinschen@redhat.com>
7154
7155 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7156 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7157 frame_chain function.
7158 * Makefile.in: Add dependencies due to above change.
7159
7c86889b
CV
71602003-04-10 Corinna Vinschen <vinschen@redhat.com>
7161
7162 * blockframe.c (legacy_frame_chain_valid): Move call to
7163 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7164 inside_entry_file.
7165
d0a55772
AC
71662003-04-09 Andrew Cagney <cagney@redhat.com>
7167
7168 * frame.h (struct frame_id): Replace "pc" and "base" with
7169 "stack_addr" and "code_addr". Update comments.
7170 (frame_id_build): Update parameter names and comment.
7171 (struct frame_info): Replace "id_p" and "id" with "this_id".
7172 * dummy-frame.c (dummy_frame_this_id): Update.
7173 * breakpoint.c (print_one_breakpoint): Update.
7174 * frame.c (get_frame_id): Update.
7175 (get_frame_base, frame_id_build): Update.
7176 (create_sentinel_frame, legacy_get_prev_frame): Update.
7177 (deprecated_update_frame_base_hack): Update.
7178 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7179 (frame_id_inner): Ditto.
7180
ac16bf07
AC
71812003-04-09 Andrew Cagney <cagney@redhat.com>
7182
7183 * defs.h (gdb_print_host_address): Make "addr" parameter a
7184 pointer constant.
7185 * utils.c (gdb_print_host_address): Update.
7186
366cfc9e
KB
71872003-04-09 Kevin Buettner <kevinb@redhat.com>
7188
7189 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7190 register number for R0 is 0.
7191
cd983b5c
JB
71922003-04-09 J. Brobecker <brobecker@gnat.com>
7193
7194 * frame.h (struct gdbarch): Add opaque structure definition
7195 to avoid a compilation warning on LynxOS 4.0.
7196
d1340264
AC
71972003-04-09 Andrew Cagney <cagney@redhat.com>
7198
7199 * frame.h (struct frame_info): Delete field "pc". Replace
7200 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7201 structure.
7202 * frame.c (frame_pc_unwind): Update.
7203 (create_sentinel_frame): Do not set "pc".
7204 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7205 (get_frame_pc): Call frame_pc_unwind.
7206 (deprecated_update_frame_pc_hack): Update.
7207 (create_new_frame): Use "pc" not "->pc".
7208
90a6fffb
AC
72092003-04-09 Andrew Cagney <cagney@redhat.com>
7210
7211 * frame.c (get_frame_id): Eliminate code updating "frame".
7212 (legacy_get_prev_frame): Ditto.
7213 (get_frame_base): Return id.base directly.
7214 (deprecated_update_frame_base_hack): Update "id.base".
7215 * frame.h (struct frame_info): Delete field "frame".
7216
2fbce691
AC
72172003-04-09 Andrew Cagney <cagney@redhat.com>
7218
7219 * NEWS: Mention that the "Sequent family" is obsolete.
7220 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7221 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7222 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7223 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7224 * config/i386/tm-ptx4.h: Obsolete file.
7225 * config/i386/tm-ptx.h: Obsolete file.
7226 * symm-tdep.c: Obsolete file.
7227 * config/i386/symmetry.mt: Obsolete file.
7228 * config/i386/tm-symmetry.h: Obsolete file.
7229 * symm-nat.c: Obsolete file.
7230 * config/i386/nm-symmetry.h: Obsolete file.
7231 * config/i386/xm-symmetry.h: Obsolete file.
7232 * config/i386/symmetry.mh: Obsolete file.
7233 * config/i386/nm-ptx4.h: Obsolete file.
7234 * config/i386/ptx4.mh: Obsolete file.
7235 * config/i386/ptx.mt: Obsolete file.
7236 * config/i386/ptx.mh: Obsolete file.
7237 * config/i386/xm-ptx4.h: Obsolete file.
7238 * config/i386/xm-ptx.h: Obsolete file.
7239
78c43945
AC
72402003-04-09 Andrew Cagney <cagney@redhat.com>
7241
7242 Obsolete mips*-*-mach3*.
7243 * NEWS: Mention that mips*-*-mach3* is obsolete.
7244 * m3-nat.c: Obsolete file.
7245 * config/nm-m3.h: Obsolete file.
7246 * config/mips/tm-mipsm3.h: Obsolete file.
7247 * config/mips/mipsm3.mt: Obsolete file.
7248 * config/mips/mipsm3.mh: Obsolete file.
7249 * config/mips/xm-mipsm3.h: Obsolete file.
7250 * mipsm3-nat.c: Obsolete file.
7251 * configure.host: Obsolete mips-dec-mach3*.
7252 * configure.tgt: Obsolete mips*-*-mach3*.
7253
f1908289
AC
72542003-04-09 Andrew Cagney <cagney@redhat.com>
7255
7256 * doublest.h: Update copyright.
7257 (deprecated_store_floating, deprecated_extract_floating): Rename
7258 store_floating and extract_floating. Update comments.
7259 * doublest.c: Update copyright.
7260 (extract_floating_by_length): Replace extract_floating.
7261 (store_floating_by_length): Replace store_floating.
7262 (deprecated_extract_floating): New function.
7263 (deprecated_store_floating): New function.
7264 (extract_typed_floating): Call extract_floating_by_length.
7265 (store_typed_floating): Call store_floating_by_length.
7266 * x86-64-tdep.c (x86_64_store_return_value): Update.
7267 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7268 (sh64_extract_return_value): Update.
7269 (sh_sh4_register_convert_to_virtual): Update.
7270 (sh_sh64_register_convert_to_virtual): Update.
7271 (sh_sh4_register_convert_to_raw): Update.
7272 (sh_sh64_register_convert_to_raw): Update.
7273 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7274 (rs6000_register_convert_to_raw): Update.
7275 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7276 (ia64_register_convert_to_raw): Update.
7277 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7278 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7279 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7280 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7281 (alpha_register_convert_to_raw): Update.
7282
4443bd83
AC
72832003-04-08 Andrew Cagney <cagney@redhat.com>
7284
7285 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7286 * gdbarch.h, gdbarch.c: Re-generate.
7287 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7288 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7289 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7290 conditionally, use frame_pc_unwind as an alternative. Add
7291 comments.
7292 * arch-utils.c (init_frame_pc_default): Only call
7293 SAVED_PC_AFTER_CALL when available.
7294
c0236d92
EZ
72952003-04-08 Elena Zannoni <ezannoni@redhat.com>
7296
fbe586ae 7297 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7298 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7299 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7300 (start_remote): Ditto.
7301 (handle_inferior_event): Ditto.
7302 (save_inferior_status): Ditto.
7303 (restore_inferior_status): Ditto.
7304 * infcmd.c (attach_command): Ditto.
7305 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7306 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7307 * alpha-tdep.c (heuristic_proc_start): Ditto.
7308 * mips-tdep.c (heuristic_proc_start): Ditto.
7309 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7310 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7311 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7312 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7313 * remote-vx.c (vx_create_inferior): Ditto.
7314
73152003-04-08 Elena Zannoni <ezannoni@redhat.com>
7316
7317 * infrun.c (stop_soon_quietly): Make it an enum, to better
7318 override the default behavior of handle_inferior_event.
7319 (clear_proceed_status): Update uses of stop_soon_quietly to
7320 reflect that it is now an enum.
7321 (start_remote): Ditto.
7322 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7323 is set to handle the new GNU/Linux kernel behavior for
7324 attach/sigstop. Update uses of stop_soon_quietly.
7325 * inferior.h (enum stop_kind): New enum.
7326 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7327 Reset normal handle_inferior_event behavior, afterwards.
7328 * fork-child.c (startup_inferior): Update.
7329 * alpha-tdep.c (heuristic_proc_start): Update.
7330 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7331 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7332 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7333 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7334 * remote-vx.c (vx_create_inferior): Update.
7335 * mips-tdep.c (heuristic_proc_start): Update.
7336
1211bce3
EZ
73372003-04-07 Elena Zannoni <ezannoni@redhat.com>
7338
7339 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7340 be freed more than once, causing wild memory corruptions.
1211bce3 7341 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7342 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7343 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7344 with the "core" target.
1211bce3 7345
f0ef6b29
KB
73462003-04-07 Kevin Buettner <kevinb@redhat.com>
7347
7348 * mips-tdep.c (mips_print_fp_register): New function, created from
7349 do_fp_register_row(). Registers are now (also) printed as hex.
7350 Only one register is printed per row.
7351 (mips_print_register, do_fp_register_row): Print floating point
7352 registers with mips_print_fp_register().
7353
8cf71652
AC
73542003-04-06 Andrew Cagney <cagney@redhat.com>
7355
5e488a7b
AC
7356 * valprint.h (inspect_it): Add extern declaration.
7357 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7358 (selectors_info, classes_info): Ditto.
7359 (find_objc_msgcall): Fix indentation.
7360 (objc_printstr): Delete extern declarations.
7361
8cf71652
AC
7362 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7363
e6ba3bc9
AC
73642003-04-06 Andrew Cagney <cagney@redhat.com>
7365
7366 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7367 Update comment.
7368 * frame.c (legacy_saved_regs_this_id): Update.
7369 (legacy_get_prev_frame): Update.
7370 * xstormy16-tdep.c: Update comment.
7371 * sparc-tdep.c (sparc_frame_chain): Update comment.
7372 * blockframe.c (legacy_frame_chain_valid): Update.
7373
55e1d7e7
AC
73742003-04-06 Andrew Cagney <cagney@redhat.com>
7375
996179ee
AC
7376 * valprint.c (val_print_type_code_int): Delete #ifdef
7377 PRINT_TYPELESS_INTEGER code.
7378
55e1d7e7
AC
7379 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7380 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7381 multi-arch definition.
7382 * gdbarch.h: Re-generate.
7383
43bd9a9e
AC
73842003-04-05 Andrew Cagney <cagney@redhat.com>
7385
7386 Eliminate FRAME_FIND_SAVED_REGS.
7387 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7388 Change FSR parameter to a pointer.
7389 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7390 Assume FSR parameter is a pointer.
7391 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7392 Make fsr a pointer.
7393 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7394 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7395 saved_regs a pointer.
7396 (hppa_frame_saved_pc): Ditto.
7397 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7398 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7399 pointer.
7400 (restore_pc_queue): Make fsr a pointer.
7401 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7402 (hppa_frame_chain): Make saved_regs a pointer, call
7403 hppa_frame_init_saved_regs.
7404 * sparc-tdep.c: Include "gdb_assert.h".
7405 (sparc_frame_find_saved_regs): Replace internal_error with
7406 gdb_assert.
7407 * remote-vxsparc.c (vx_read_register): Delete reference to
7408 FRAME_FIND_SAVED_REGS.
7409 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7410 * gdbarch.h: Regenerate.
7411 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7412 (deprecated_get_frame_saved_regs): Delete declaration.
7413 (struct frame_saved_regs): Delete definition.
7414 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7415 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7416 (hppa_frame_find_saved_regs): Delete declaration.
7417 (FRAME_FIND_SAVED_REGS): Delete macro.
7418 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7419 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7420 FRAME_FIND_SAVED_REGS in comment.
7421
be41e9f4
AC
74222003-04-05 Andrew Cagney <cagney@redhat.com>
7423
7424 * frame.c (frame_func_unwind, get_frame_func): New functions.
7425 * frame.h (get_frame_func, frame_func_unwind): Declare.
7426 (struct frame_info): Add field "prev_func" for caching the
7427 previous frame's function address.
7428 * arm-tdep.c (arm_frameless_function_invocation): Combine
7429 get_pc_function_start and get_frame_pc into get_frame_func.
7430 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7431 (sh64_nofp_frame_init_saved_regs): Ditto.
7432 * s390-tdep.c (s390_function_start): Ditto.
7433 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7434 (rs6000_frameless_function_invocation): Ditto.
7435 (rs6000_frame_saved_pc): Ditto.
7436 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7437 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7438 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7439 (i386_frame_init_saved_regs): Ditto.
7440 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7441 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7442 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7443 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7444 * blockframe.c (frameless_look_for_prologue): Ditto.
7445
a01dd7cc
AC
74462003-04-05 Andrew Cagney <cagney@redhat.com>
7447
7448 * frame.c (legacy_get_prev_frame): Link prev to next at the
7449 function start. Update comments.
7450
5e5592e6
AC
74512003-04-05 Andrew Cagney <cagney@redhat.com>
7452
7453 * frame.c (get_frame_id): Update comment.
7454 (legacy_get_prev_frame): Update comment.
7455 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7456 * gdbarch.h: Regenerate.
7457 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7458 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7459
6fba5002
AC
74602003-04-05 Andrew Cagney <cagney@redhat.com>
7461
7462 * stack.c (print_frame_info): Use get_frame_pc.
7463
7df05f2b
AC
74642003-04-04 Andrew Cagney <cagney@redhat.com>
7465
7466 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7467 the frame's type from the unwinder.
7468 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7469 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7470 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7471 (get_frame_base_address): Use get_frame_type.
7472 (get_frame_locals_address, get_frame_args_address): Ditto.
7473 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7474 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7475 (struct frame_info): Add comment explaining why the frame contains
7476 a "type" field.
7477 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7478 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7479 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7480 NORMAL_FRAME.
7481 * frame-unwind.h: Include "frame.h".
7482 (struct frame_unwind): Add "type" field.
7483 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7484
11889732
AC
74852003-04-04 Andrew Cagney <cagney@redhat.com>
7486
7487 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7488 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7489 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7490 get_frame_base.
7491 (d10v_unwind_dummy_id): Use frame_id_build.
7492 * frame.c (find_frame_sal): Use get_frame_pc.
7493 (create_new_frame): Use deprecated_update_frame_pc_hack and
7494 deprecated_update_frame_base_hack.
7495 (create_sentinel_frame): Add comment about ->pc going away.
7496 (get_prev_frame): Add comment about ->pc going away.
7497 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7498 frame_id_build, deprecated_update_frame_pc_hack and
7499 deprecated_update_frame_base_hack.
7500 (select_frame): Use get_frame_pc.
7501 (legacy_saved_regs_this_id): Use frame_id_build.
7502
50c46a0d
EZ
75032003-04-04 Elena Zannoni <ezannoni@redhat.com>
7504
fbe586ae
RH
7505 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7506 signed integer case.
7507 (classify_argument): Handle enumerations and references.
50c46a0d 7508
50bbdbd9
AC
75092003-04-04 Andrew Cagney <cagney@redhat.com>
7510
7511 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7512 ID to NULL.
7513
36018d2e
AF
75142003-04-01 Adam Fedor <fedor@gnu.org>
7515
7516 * gdb/objc-lang.c (selectors_info): Replace calls to
7517 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7518 SYMBOL_NATURAL_NAME.
7519 (classes_info, find_methods): Likewise.
7520
35cec841
KB
75212003-04-03 Kevin Buettner <kevinb@redhat.com>
7522
7523 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7524 ``mach'' to the value determined by bfd_default_set_arch_mach().
7525
43136899
BR
75262003-04-02 Bob Rossi <bob_rossi@cox.net>
7527
7528 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7529 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7530 (mi-cmd-file.o): Update dependencies.
7531
040b99fd
KB
75322003-04-01 Kevin Buettner <kevinb@redhat.com>
7533
7534 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7535 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7536
9a3d7dfd
AF
75372003-04-01 Adam Fedor <fedor@gnu.org>
7538
7539 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7540 * language.h (struct language_defn): Add la_demangle.
7541 (language_demangle): Declare.
7542 * language.c (language_demangle): New function.
7543 (unk_lang_demangle): Likewise.
7544 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7545 Add ukn_lang_demangle.
9a3d7dfd 7546 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7547 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7548 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7549 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7550 * jv-lang.c (java_demangle): New function
7551 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7552 * objc-lang.c (objc_demangle): Add options argument
7553 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7554 * maint.c (maintenance_demangle): Replace switch with
7555 call to language_demangle.
7556 * utils.c (fprintf_symbol_filtered): Likewise.
7557
5e074003
AC
75582003-04-01 Andrew Cagney <cagney@redhat.com>
7559
7560 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7561 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7562 PRINT_TYPELESS_INTEGER.
7563 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7564 PUSH_RETURN_ADDRESS.
7565
270cb5d6
AC
75662003-04-01 Andrew Cagney <cagney@redhat.com>
7567
7568 * Makefile.in (d10v-tdep.o): Update dependencies.
7569 * d10v-tdep.c: Include "frame-base.h".
7570 (d10v_frame_unwind): Make constant.
7571 (d10v_frame_base_address): New function.
7572 (d10v_frame_base): New variable.
7573 (d10v_gdbarch_init): Set frame_base default.
7574 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7575 comment for base.
7576 (d10v_frame_unwind_cache): Set and use "prev_sp".
7577 (d10v_frame_this_id): Use the previous frame's inner most stack
7578 address and this frame's func address for the frame ID. Use
7579 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7580
6bfb3e36
AC
75812003-04-01 Andrew Cagney <cagney@redhat.com>
7582
7583 * frame.h (get_frame_locals_address, get_frame_args_address):
7584 Refer to the base address, instead of the address of the first
7585 local or parameter.
8ffd9b1b 7586
da62e633
AC
75872003-04-01 Andrew Cagney <cagney@redhat.com>
7588
7589 Add frame debug info addresses:
7590 * frame-base.c: New file.
7591 * frame-base.h: New file.
7592 * frame.h (struct frame_base): Add opaque declaration.
7593 (get_frame_base): Update comment.
7594 (get_frame_base_address): Declare.
7595 (get_frame_locals_address): Declare.
7596 (get_frame_args_address): Declare.
7597 (struct frame_info): Add "base" and "base_cache". Update
7598 comments on the unwinder.
7599 * frame.c: Include "frame-base.h".
7600 (get_frame_locals_address): New function.
7601 (get_frame_base_address): New function.
7602 (get_frame_args_address): New function.
7603 * findvar.c (read_var_value): Use get_frame_locals_address and
7604 get_frame_args_address.
7605 * stack.c (frame_info): Use get_frame_locals_address and
7606 get_frame_args_address.
7607 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7608 moved to "frame-base.c".
7609 * printcmd.c (print_frame_nameless_args): Ditto.
7610 * symtab.h (address_class): Update comments.
7611 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7612 get_frame_base_address.
7613 * dwarf2expr.c (execute_stack_op): Ditto.
7614 * Makefile.in (frame_base_h): Define.
7615 (frame.o): Update dependencies.
7616 (frame-base.o): Add dependencies.
7617 (SFILES): Add frame-base.c.
7618 (COMMON_OBS): Add frame-base.o.
7619
3d30e9c2
AC
76202003-04-01 Andrew Cagney <cagney@redhat.com>
7621
7622 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7623 CALL_DUMMY_LENGTH): Ditto.
7624 * gdbarch.c: Re-generate.
7625 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7626 (CALL_DUMMY_LENGTH): Delete macro.
7627 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7628 * arm-tdep.c (arm_gdbarch_init): Ditto.
7629 * avr-tdep.c (avr_gdbarch_init): Ditto.
7630 * cris-tdep.c (cris_gdbarch_init): Ditto.
7631 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7632 * frv-tdep.c (frv_gdbarch_init): Ditto.
7633 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7634 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7635 * i386-tdep.c (i386_gdbarch_init): Ditto.
7636 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7637 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7638 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7639 * mips-tdep.c (mips_gdbarch_init): Ditto.
7640 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7641 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7642 * s390-tdep.c (s390_gdbarch_init): Ditto.
7643 * sh-tdep.c (sh_gdbarch_init): Ditto.
7644 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7645 * v850-tdep.c (v850_gdbarch_init): Ditto.
7646 * vax-tdep.c (vax_gdbarch_init): Ditto.
7647 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7648
ce0c7262
CV
76492003-04-01 Corinna Vinschen <vinschen@redhat.com>
7650
7651 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7652
73dd234f
AC
76532003-04-01 Andrew Cagney <cagney@redhat.com>
7654
7655 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7656 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7657 * gdbarch.h, gdbarch.c: Re-generate.
7658 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7659 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7660 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7661 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7662 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7663 * infcmd.c (run_stack_dummy): Simplify assuming
7664 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7665 * infrun.c (handle_inferior_event): Ditto.
7666 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7667 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7668 * arm-tdep.c (arm_gdbarch_init): Ditto.
7669 * avr-tdep.c (avr_gdbarch_init): Ditto.
7670 * cris-tdep.c (cris_gdbarch_init): Ditto.
7671 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7672 * frv-tdep.c (frv_gdbarch_init): Ditto.
7673 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7674 * i386-tdep.c (i386_gdbarch_init): Ditto.
7675 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7677 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7678 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7679 * mips-tdep.c (mips_gdbarch_init): Ditto.
7680 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7681 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7682 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7683 * s390-tdep.c (s390_gdbarch_init): Ditto.
7684 * sh-tdep.c (sh_gdbarch_init): Ditto.
7685 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7686 * v850-tdep.c (v850_gdbarch_init): Ditto.
7687 * vax-tdep.c (vax_gdbarch_init): Ditto.
7688 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7689
97606a13
DJ
76902003-04-01 Daniel Jacobowitz <drow@mvista.com>
7691
7692 * symfile.c (symfile_relocate_debug_section): Update call to
7693 bfd_simple_get_relocated_section_contents.
7694
e8ab51f7
AC
76952003-03-31 Andrew Cagney <cagney@redhat.com>
7696
7697 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7698 * gdbarch.h, gdbarch.c: Regenerate.
7699 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7700 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7701 available.
7702 * frame.h (generic_fix_call_dummy): Delete declaration.
7703 * dummy-frame.h: Update comment.
7704 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7705 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7706 fix_call_dummy.
7707 * sh-tdep.c (sh_gdbarch_init): Ditto.
7708 * s390-tdep.c (s390_gdbarch_init): Ditto.
7709 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7710 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7712 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7713 * i386-tdep.c (i386_gdbarch_init): Ditto.
7714 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7715 * frv-tdep.c (frv_gdbarch_init): Ditto.
7716 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7717 * cris-tdep.c (cris_gdbarch_init): Ditto.
7718 * avr-tdep.c (avr_gdbarch_init): Ditto.
7719 * arm-tdep.c (arm_gdbarch_init): Ditto.
7720
018d1b48
JB
77212003-03-31 J. Brobecker <brobecker@gnat.com>
7722
7723 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7724 (INIT_FRAME_AP): Likewise.
7725 (EXTRA_FRAME_INFO): Likewise.
7726
e9a2674e
AC
77272003-03-31 Andrew Cagney <cagney@redhat.com>
7728
7729 * gdbarch.sh: Include "symfile.h".
7730 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7731 * gdbarch.h, gdbarch.c: Re-generate.
7732 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7733 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7734 call_dummy_address, the default is at entry_point_address.
7735 * v850-tdep.c (v850_gdbarch_init): Ditto.
7736 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7737 * sh-tdep.c (sh_gdbarch_init): Ditto.
7738 * s390-tdep.c (s390_gdbarch_init): Ditto.
7739 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7740 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7741 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7742 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7743 * i386-tdep.c (i386_gdbarch_init): Ditto.
7744 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7745 * frv-tdep.c (frv_gdbarch_init): Ditto.
7746 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7747 * cris-tdep.c (cris_gdbarch_init): Ditto.
7748 * arm-tdep.c (arm_gdbarch_init): Ditto.
7749
e8a8712a
AC
77502003-03-31 Andrew Cagney <cagney@redhat.com>
7751
7752 * gdbarch.sh (CALL_DUMMY_P): Delete.
7753 * gdbarch.h, gdbarch.c: Re-generate.
7754 * inferior.h (CALL_DUMMY_P): Delete macro.
7755 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7756 * vax-tdep.c (vax_gdbarch_init): Update.
7757 * v850-tdep.c (v850_gdbarch_init): Update.
7758 * sparc-tdep.c (sparc_gdbarch_init): Update.
7759 * sh-tdep.c (sh_gdbarch_init): Update.
7760 * s390-tdep.c (s390_gdbarch_init): Update.
7761 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7762 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7763 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7764 * mips-tdep.c (mips_gdbarch_init): Update.
7765 * mcore-tdep.c (mcore_gdbarch_init): Update.
7766 * m68k-tdep.c (m68k_gdbarch_init): Update.
7767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7768 * ia64-tdep.c (ia64_gdbarch_init): Update.
7769 * i386-tdep.c (i386_gdbarch_init): Update.
7770 * h8300-tdep.c (h8300_gdbarch_init): Update.
7771 * frv-tdep.c (frv_gdbarch_init): Update.
7772 * d10v-tdep.c (d10v_gdbarch_init): Update.
7773 * cris-tdep.c (cris_gdbarch_init): Update.
7774 * breakpoint.c (deprecated_frame_in_dummy): Update.
7775 * avr-tdep.c (avr_gdbarch_init): Update.
7776 * alpha-tdep.c (alpha_gdbarch_init): Update.
7777 * arm-tdep.c (arm_gdbarch_init): Update.
7778 * dummy-frame.c (dummy_frame_this_id): Update comments.
7779 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7780 * frame.c (legacy_get_prev_frame): Ditto.
7781 * valops.c (call_function_by_hand): Delete function.
7782 (hand_function_call): Rename to call_function_by_hand
7783
ed234cf8
AC
77842003-03-30 Andrew Cagney <cagney@redhat.com>
7785
7786 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7787 * value.h (struct value): Update comment.
ed234cf8 7788
06c77151
AC
77892003-03-30 Andrew Cagney <cagney@redhat.com>
7790
6c2b5168
AC
7791 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7792 D10V_FP_REGNUM.
7793 (d10v_gdbarch_init): Do not set fp_regnum.
7794
06c77151
AC
7795 * frame.c (get_frame_base): Force ID initialization.
7796 (get_prev_frame): Move computation of the frame ID from here ...
7797 (get_frame_id): ... to here.
7798 (legacy_get_prev_frame): Mark the frame ID as valid.
7799 * frame.h (struct frame_info): Add field "id_p".
7800
97a1a11c
MK
78012003-03-30 Mark Kettenis <kettenis@gnu.org>
7802
7803 * i386-tdep.c (i386_store_struct_return): Removed.
7804 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7805
6c0e89ed
AC
78062003-03-30 Andrew Cagney <cagney@redhat.com>
7807
7808 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7809 * gdbarch.h, gdbarch.c: Regenerate.
7810 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7811 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7812 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7813 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7814 * i386-tdep.c (i386_gdbarch_init): Ditto.
7815 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7816 * cris-tdep.c (cris_gdbarch_init): Ditto.
7817 * vax-tdep.c (vax_gdbarch_init): Ditto.
7818 * s390-tdep.c (s390_gdbarch_init): Ditto.
7819 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7820 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7821 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7822 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7823 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7824 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7825 * sparc-tdep.c (sparc_gdbarch_init): Update.
7826 * sh-tdep.c (sh_gdbarch_init): Update.
7827 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7828 * mips-tdep.c (mips_gdbarch_init): Update.
7829 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7830 * ia64-tdep.c (ia64_gdbarch_init): Update.
7831 * frv-tdep.c (frv_gdbarch_init): Update.
7832 * avr-tdep.c (avr_gdbarch_init): Update.
7833 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7834 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7835 instead of when push_dummy_call is not available.
8ffd9b1b 7836
f7dd6af2
AC
78372003-03-30 Andrew Cagney <cagney@redhat.com>
7838
7839 * infttrace.c: Include "gdbthread.h".
7840 (parent_attach_all): Fix function signature.
7841 (call_ptrace): Update call.
7842 * Makefile.in (infttrace.o): Update dependencies.
7843
28f617b3
AC
78442003-03-30 Andrew Cagney <cagney@redhat.com>
7845
7846 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7847 PUSH_RETURN_ADDRESS.
7848 * gdbarch.h, gdbarch.c: Regenerate.
7849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7850 * x86-64-tdep.c (x86_64_init_abi): Update.
7851 * v850-tdep.c (v850_gdbarch_init): Update.
7852 * sparc-tdep.c (sparc_gdbarch_init): Update.
7853 * sh-tdep.c (sh_gdbarch_init): Update.
7854 * s390-tdep.c (s390_gdbarch_init): Update.
7855 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7856 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7857 * mips-tdep.c (mips_gdbarch_init): Update.
7858 * mcore-tdep.c (mcore_gdbarch_init): Update.
7859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7860 * ia64-tdep.c (ia64_gdbarch_init): Update.
7861 * i386-tdep.c (i386_gdbarch_init): Update.
7862 * h8300-tdep.c (h8300_gdbarch_init): Update.
7863 * frv-tdep.c (frv_gdbarch_init): Update.
7864 * cris-tdep.c (cris_gdbarch_init): Update.
7865 * avr-tdep.c (avr_gdbarch_init): Update.
7866 * arm-tdep.c (arm_gdbarch_init): Update.
7867 * valops.c (hand_function_call): Update.
7868
4d628cd7
AC
78692003-03-29 Andrew Cagney <cagney@redhat.com>
7870
7871 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7872 sizeof_call_dummy_words.
7873 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7874 define.
7875 * gdbarch.h: Regenerate.
8ffd9b1b 7876
65e82032
AC
78772003-03-29 Andrew Cagney <cagney@redhat.com>
7878
7879 * infttrace.h: New file.
7880 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7881 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7882 (hpread_read_doc_function_type): Detect an initialized type1.
7883 (hpread_quick_traverse): Initialize mod_name_string.
7884 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7885 (som_solib_get_solib_by_pc): Declare.
7886 (so_lib_thread_start_addr): Declare.
7887 (no_shared_libraries): Declare.
7888 * somread.c (init_import_symbols): Make static. Add forward
7889 declaration.
7890 * config/pa/nm-hppah.h: Include "infttrace.h" for
7891 parent_attach_all.
7892 (hppa_insert_hw_watchpoint): Declare.
7893 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7894 * hppah-nat.c: Include "gdb_string.h".
7895 (parent_attach_all): Delete extern declaration, moved to
7896 "infttrace.h".
7897 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7898 int.
7899 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7900 * Makefile.in (infttrace_h): Define.
7901 (hpread.o): Update dependencies.
7902 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7903 * hppa-hpux-tdep.c: Include "gdb_string.h".
7904 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7905 * infrun.c (handle_inferior_event): Always initialize
7906 stepped_after_stopped_by_watchpoint. Add default and remove
7907 fallthrough in switch statement.
7908 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7909 parameter to int.
7910 (hppa_remove_hw_watchpoint): Ditto.
7911
2c3bbe77
AC
79122003-03-29 Andrew Cagney <cagney@redhat.com>
7913
7914 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7915 offset.
7916
2dd604e7
RE
79172003-03-29 Richard Earnshaw <rearnsha@arm.com>
7918
7919 * arm-tdep.c (arm_push_arguments): Delete.
7920 (struct stack_item): New type.
7921 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7922 (arm_store_struct_return): Delte.
7923 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7924 arm_push_arguments or arm_store_struct_return.
7925
e8933a55
AC
79262003-03-28 Andrew Cagney <cagney@redhat.com>
7927
7928 * Makefile.in (d10v-tdep.o): Update dependencies.
7929 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7930 * d10v-tdep.c: Include "remote.h".
7931 (target_resume_hook): Delete extern declaration.
7932 (target_wait_loop_hook): Ditto.
7933 (tdisassemble_command): Eliminate assignment in "if" conditional.
7934 (d10v_ts2_register_sim_regno): Eliminate call to
7935 legacy_register_sim_regno.
7936 (d10v_ts3_register_sim_regno): Ditto.
7937
6949171e
JJ
79382003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7939
7940 * thread.c: Reindented.
7941 * lin-lwp.c: Ditto.
7942 * linux-proc.c: Ditto.
7943
98c7071f
BR
79442003-03-28 Bob Rossi <bob_rossi@cox.net>
7945
fbe586ae 7946 * MAINTAINERS (write after approval): Add myself.
98c7071f 7947
5edc9ca6
TR
79482003-03-27 Theodore A. Roth <troth@openavr.org>
7949
7950 * objc-exp.y: Add missing semi-colons.
7951
378bfd1b
AC
79522003-03-27 Andrew Cagney <cagney@redhat.com>
7953
7954 * regcache.c (write_sp): Delete function and references.
7955 * inferior.h (write_sp): Delete declaration.
7956 * valops.c (hand_function_call): Replace write_sp with
7957 TARGET_WRITE_SP.
7958 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7959 (sparc_pop_frame): Ditto.
8ffd9b1b 7960
56056df7
AC
79612003-03-27 Andrew Cagney <cagney@redhat.com>
7962
7963 * NEWS: Mention removal of support for hppa*-*-bsd* and
7964 hppa*-*-osf* natives, and hppa*-*-pro* target.
7965 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7966 * config/pa/xm-pa.h: Obsolete file.
7967 * config/pa/xm-hppab.h: Obsolete file.
7968 * config/pa/nm-hppab.h: Obsolete file.
7969 * config/pa/tm-hppab.h: Obsolete file.
7970 * config/pa/tm-hppao.h: Obsolete file.
7971 * config/pa/nm-hppao.h: Obsolete file.
7972 * config/pa/tm-pro.h: Obsolete file.
7973 * config/pa/hppaosf.mt: Obsolete file.
7974 * config/pa/hppaosf.mh: Obsolete file.
7975 * config/pa/hppapro.mt: Obsolete file.
7976 * config/pa/hppabsd.mt: Obsolete file.
7977 * config/pa/hppabsd.mh: Obsolete file.
7978 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7979 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7980 hppa*-*-osf*.
7981
5873a88d
AC
79822003-03-27 Andrew Cagney <cagney@redhat.com>
7983
7984 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7985 push_arguments. Don't set push_return_address or write_sp.
7986 (d10v_push_dummy_call): Replace d10v_push_arguments.
7987 (d10v_push_return_address, d10v_write_sp): Delete function,
7988 handled by push_dummy_call.
7989
b81774d8
AC
79902003-03-26 Andrew Cagney <cagney@redhat.com>
7991
7992 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7993 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7994 regcache and dummy_addr parameters.
7995 * gdbarch.h, gdbarch.c: Re-generate.
7996 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
7997 available; assume it will handle stack alignment and return
7998 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
7999 legacy_push_arguments.
8000 (legacy_push_arguments): Rename default_push_arguments.
8001 * value.h (legacy_push_arguments): Rename default_push_arguments.
8002 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8003 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8004 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8005 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8006 * config/i386/tm-symmetry.h: Update.
8007 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8008 * x86-64-tdep.c (x86_64_init_abi): Update.
8009 * v850-tdep.c (v850_gdbarch_init): Update.
8010 * sparc-tdep.c (sparc_gdbarch_init): Update.
8011 * sh-tdep.c (sh_gdbarch_init): Update.
8012 * s390-tdep.c (s390_gdbarch_init): Update.
8013 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8014 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8015 * mips-tdep.c (mips_gdbarch_init): Update.
8016 * mcore-tdep.c (mcore_gdbarch_init): Update.
8017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8018 * ia64-tdep.c (ia64_gdbarch_init): Update.
8019 * i386-tdep.c (i386_gdbarch_init): Update.
8020 * hppa-tdep.c (hppa_gdbarch_init): Update.
8021 * h8300-tdep.c (h8300_gdbarch_init): Update.
8022 * frv-tdep.c (frv_gdbarch_init): Update.
8023 * d10v-tdep.c (d10v_gdbarch_init): Update.
8024 * cris-tdep.c (cris_gdbarch_init): Update.
8025 * avr-tdep.c (avr_gdbarch_init): Update.
8026 * arm-tdep.c (arm_gdbarch_init): Update.
8027 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8028 * alpha-tdep.c (alpha_gdbarch_init): Update.
8029
f541410f
DJ
80302003-03-26 Daniel Jacobowitz <drow@mvista.com>
8031
8032 * signals/signals.c (do_target_signal_to_host): Correct realtime
8033 signal range test.
8034
69f567ae
DJ
80352003-03-26 Daniel Jacobowitz <drow@mvista.com>
8036
8037 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8038 (struct sal_chain, map_catch_names): Remove.
8039 (catch_exception_command_1): Don't call
8040 handle_gnu_4_16_catch_command.
8041
d5d14a5a
DJ
80422003-03-26 Daniel Jacobowitz <drow@mvista.com>
8043
8044 From Mark Dettinger <dettinge@de.ibm.com>:
8045 * dwarf2cfi.c (read_2u): Increment pointer by two.
8046
bdd73e22
DJ
80472003-03-26 Daniel Jacobowitz <drow@mvista.com>
8048
8049 * signals/signals.c: Fix typos in last change.
8050
960cb555
DJ
80512003-03-26 Daniel Jacobowitz <drow@mvista.com>
8052
8053 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8054 not already defined. Use __SIGRTMIN if available.
8055 (target_signal_from_host): Remove SIGRTMIN block.
8056 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8057 the signal is within the realtime range.
8058
f636b87d
AF
80592003-03-25 Adam Fedor <fedor@gnu.org>
8060
8061 * Makefile.in (infrun.o): Add $(language_h)
8062 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8063 for language specific trampolines.
8064 * language.h (struct language_defn): Add skip_trampoline.
8065 (skip_language_trampoline): Declare.
8066 * language.c (unk_lang_trampoline, skip_language_trampoline):
8067 New functions.
8068 (unknown_language_defn, auto_language_defn, local_language_defn):
8069 Add ukn_lang_trampoline.
8070 * ada-lang.c (ada_language_defn): Add NULL for language
8071 specific skip_trampoline.
8072 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8073 scm-lang.c: Likewise.
8074 * objc-lang.c (objc_skip_trampoline): New function.
8075 (objc_language_defn): Add objc_skip_trampoline.
8076
28f617b3 80772003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8078
8079 * frame.c (get_prev_frame): Delay validating a frame's ID -
8080 non-NULL, didn't go backwards - until an attempt to unwind it to
8081 the previous frame.
8082
f933a9c5
AC
80832003-03-25 Andrew Cagney <cagney@redhat.com>
8084
8085 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8086 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8087 * gdbarch.h, gdbarch.c: Re-generate.
8088 * config/sparc/tm-sparc.h
8089 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8090 * sparc-tdep.c (sparc_gdbarch_init): Set
8091 deprecated_extra_stack_alignment_needed.
8092 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8093 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8094 extra_stack_alignment_needed.
8095 * v850-tdep.c (v850_gdbarch_init): Ditto.
8096 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8097 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8098 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8099 * cris-tdep.c (cris_gdbarch_init): Ditto.
8100 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8102
4183d812
AC
81032003-03-25 Andrew Cagney <cagney@redhat.com>
8104
8105 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8106 STORE_STRUCT_RETURN.
8107 * gdbarch.h, gdbarch.c: Regenerate.
8108 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8109 (d10v_push_arguments): Set the struct return register.
8110 (d10v_gdbarch_init): Update.
8111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8112 * x86-64-tdep.c (x86_64_init_abi): Update.
8113 * vax-tdep.c (vax_gdbarch_init): Update.
8114 * v850-tdep.c (v850_gdbarch_init): Update.
8115 * sparc-tdep.c (sparc_gdbarch_init): Update.
8116 * sh-tdep.c (sh_gdbarch_init): Update.
8117 * s390-tdep.c (s390_gdbarch_init): Update.
8118 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8119 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8120 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8121 * mips-tdep.c (mips_gdbarch_init): Update.
8122 * mcore-tdep.c (mcore_gdbarch_init): Update.
8123 * m68k-tdep.c (m68k_gdbarch_init): Update.
8124 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8125 * ia64-tdep.c (ia64_gdbarch_init): Update.
8126 * i386-tdep.c (i386_gdbarch_init): Update.
8127 * hppa-tdep.c (hppa_gdbarch_init): Update.
8128 * h8300-tdep.c (h8300_gdbarch_init): Update.
8129 * frv-tdep.c (frv_gdbarch_init): Update.
8130 * cris-tdep.c (cris_gdbarch_init): Update.
8131 * avr-tdep.c (avr_gdbarch_init): Update.
8132 * arm-tdep.c (arm_gdbarch_init): Update.
8133 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8134
1bf6d5cc
AC
81352003-03-25 Andrew Cagney <cagney@redhat.com>
8136
8137 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8138 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8139 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8140 * gdbarch.h, gdbarch.c: Regenerate.
8141 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8142 call_dummy_stack_adjust_p.
8143 * vax-tdep.c (vax_gdbarch_init): Ditto.
8144 * v850-tdep.c (v850_gdbarch_init): Ditto.
8145 * sh-tdep.c (sh_gdbarch_init): Ditto.
8146 * s390-tdep.c (s390_gdbarch_init): Ditto.
8147 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8148 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8149 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8150 * mips-tdep.c (mips_gdbarch_init): Ditto.
8151 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8152 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8154 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8155 * i386-tdep.c (i386_gdbarch_init): Ditto.
8156 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8157 * frv-tdep.c (frv_gdbarch_init): Ditto.
8158 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8159 * cris-tdep.c (cris_gdbarch_init): Ditto.
8160 * avr-tdep.c (avr_gdbarch_init): Ditto.
8161 * arm-tdep.c (arm_gdbarch_init): Ditto.
8162 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8163 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8164 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8165 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8166 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8167 call_dummy_stack_adjust_p.
8168 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8169 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8170 * sparc-tdep.c (sparc32_push_arguments): Update.
8171 * valops.c (hand_function_call): Update.
8172
71c08af0
CV
81732003-03-25 Corinna Vinschen <vinschen@redhat.com>
8174
8175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8176 set_gdbarch_char_signed.
8177
30757f90
RE
81782003-03-25 Richard Earnshaw <rearnsha@arm.com>
8179
8180 PR cli/548
8181 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8182
03d48a7d
RE
81832003-03-25 Richard Earnshaw <rearnsha@arm.com>
8184
8185 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8186 (_initialize_arm_tdep): Don't set tm_print_insn.
8187
2cf6873c
AF
81882003-03-24 Adam Fedor <fedor@gnu.org>
8189
8190 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8191 * objc-lang.h: Add multiple inclusion protection.
8192 (start_msglist, add_msglist, end_msglist): Additional declarations.
8193
17c0759e
RE
81942003-03-24 Richard Earnshaw <rearnsha@arm.com>
8195
8196 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8197 value was renamed to ARM_FLOAT_SOFT_FPA.
8198
618ce49f
AC
81992003-03-23 Andrew Cagney <cagney@redhat.com>
8200
8201 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8202 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8203 * gdbarch.h, gdbarch.c: Regenerate.
8204 * valops.c (hand_function_call): Update.
8205 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8206 * frame.c (legacy_saved_regs_this_id): Update.
8207 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8208 * dummy-frame.h: Update.
8209 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8210 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8211 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8212 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8213 * config/m68k/tm-sun3.h: Update.
8214 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8216 * x86-64-tdep.c (x86_64_init_abi): Update.
8217 * vax-tdep.c (vax_gdbarch_init): Update.
8218 * v850-tdep.c (v850_gdbarch_init): Update.
8219 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8220 * sh-tdep.c (sh_gdbarch_init): Update.
8221 * s390-tdep.c (s390_gdbarch_init): Update.
8222 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8223 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8224 (frame_get_saved_regs): Update.
8225 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8226 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8227 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8228 * mips-tdep.c (mips_gdbarch_init): Update.
8229 * mcore-tdep.c (mcore_gdbarch_init): Update.
8230 * m68k-tdep.c (m68k_gdbarch_init): Update.
8231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8232 * ia64-tdep.c (ia64_gdbarch_init): Update.
8233 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8234 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8235 (i386_interix_back_one_frame): Update.
8236 * hppa-tdep.c (hppa_gdbarch_init): Update.
8237 (hppa_init_extra_frame_info): Update.
8238 * h8300-tdep.c (h8300_gdbarch_init): Update.
8239 * frv-tdep.c (frv_gdbarch_init): Update.
8240 * cris-tdep.c (cris_gdbarch_init): Update.
8241 * avr-tdep.c (avr_gdbarch_init): Update.
8242 * arm-tdep.c (arm_gdbarch_init): Update.
8243 * alpha-tdep.c (alpha_gdbarch_init): Update.
8244
fd50bc42
RE
82452003-03-22 Richard Earnshaw <rearnsha@arm.com>
8246
8247 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8248 (arm_get_fp_model): Declare.
8249 * arm-tdep.c (fp_model_strings): New string array.
8250 (arm_fp_model, current_fp_model): New variables.
8251 (arm_get_fp_model): New function.
8252 (arm_set_fp): New function.
8253 (set_fp_model_sfunc): New function.
8254 (show_fp_model): New function.
8255 (_initialize_arm_tdep): Add new command to set/show the FPU.
8256 (arm_extract_return_value): Use arm_get_fp_model.
8257 (arm_store_return_value): Likewise.
8258 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8259 to initialize the floating-point data types.
8260 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8261 model is FPA.
8262
26304000
RE
82632003-03-22 Richard Earnshaw <rearnsha@arm.com>
8264
8265 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8266 the current setting of each value.
8267 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8268 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8269 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8270 commands and add new version as subcommands of "set/show arm".
8271
afd7eef0
RE
82722003-03-22 Richard Earnshaw <rearnsha@arm.com>
8273
8274 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8275 (set_arm_command, show_arm_command): New functions.
8276 (_initialize_arm_tdep): Add them.
8277 (num_disassembly_options): Renamed from num_flavor_options.
8278 (valid_disassembly_styles): Renamed from valid_flavors.
8279 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8280 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8281 set_disassembly_flavor_sfunc.
8282 (set_disassembly_style): Renamed from set_disassembly_flavor.
8283 (arm_othernames): Updated.
8284 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8285 command. Add "set/show arm disassembly" commands. Deprecate
8286 "othernames" command.
8287
299a7944
RE
82882003-03-22 Richard Earnshaw <rearnsha@arm.com>
8289
8290 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8291 (arm-tdep.o): Depend on elf_arm_h.
8292
c1dac9e6
RE
82932003-03-22 Richard Earnshaw <rearnsha@arm.com>
8294
8295 * Makefile.in (coff_internal_h): Define.
8296 (arm-tdep.o): Update dependencies.
8297
2702d96c
RE
82982003-03-22 Richard Earnshaw <rearnsha@arm.com>
8299
8300 * arm-tdep.c (prologue_cache): Delete.
8301 (check_prologue_cache, save_prologue_cache): Delete.
8302 (arm_scan_prologue): Don't check or update the prologue_cache.
8303 (arm_gdb_arch_init): Don't initialize it.
8304 (_initialize_arm_tdep): Likewise.
8305
27d5d74b
SC
83062003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8307
8308 * MAINTAINERS (tui): Maintainer of tui code.
8309
1762d96d
CV
83102003-03-21 Corinna Vinschen <vinschen@redhat.com>
8311
8312 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8313 (i386-cygwin-tdep.o): Add dependencies.
8314 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8315 * i386-cygwin-tdep.c: New file.
8316 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8317 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8318
4c2e2391
AC
83192003-03-20 Andrew Cagney <cagney@redhat.com>
8320
f20d38b7
AC
8321 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8322 (handle_inferior_event): Remove code calling
8323 DYNAMIC_TRAMPOLINE_NEXTPC.
8324
0022b738
AC
8325 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8326 already has a full path.
8327
864dbc90
AC
8328 * main.c (gdb_main): Return 1.
8329 (captured_main): Call error to report an invalid interpreter.
8330
4c2e2391
AC
8331 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8332 * alpha-osf1-tdep.c: Include "gdb_string.h".
8333
5ef7553b
JB
83342003-03-19 J. Brobecker <brobecker@gnat.com>
8335
8336 Continuing work to convert the hppa targets to multiarch partial.
8337
8338 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8339 method, now that hppa_push_dummy_frame has a conformant prototype.
8340 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8341 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8342 for the switch to multiarch partial.
8343
7bde8967
KB
83442003-03-19 Kevin Buettner <kevinb@redhat.com>
8345
8346 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8347 when iss is issNull.
8348
b006a9e9
KB
83492003-03-18 Kevin Buettner <kevinb@redhat.com>
8350
8351 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8352 NUM_REGS bounds check.
8353
5e2e9765
KB
83542003-03-18 Kevin Buettner <kevinb@redhat.com>
8355
8356 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8357 * mips-tdep.c (gdb_assert.h): Include.
8358 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8359 (mips_register_name): Handle integer registers explicitly. Add
8360 bounds checking.
8361 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8362 (mips_lsi33k_reg_names): Don't list integer registers; they're
8363 handled by mips_register_name() now.
8364 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8365 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8366 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8367 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8368 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8369
a2867626
AC
83702003-03-18 Andrew Cagney <cagney@redhat.com>
8371
8372 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8373 a void pointer.
8374 * gdbtypes.h (print_scalar_formatted): Update declaration.
8375 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8376
06600e06
JB
83772003-03-18 J. Brobecker <brobecker@gnat.com>
8378
8379 * infrun.c (observer.h): Add #include.
8380 (normal_stop): Add call to observer_notify_normal_stop.
8381 * Makefile.in (infrun.o): Add dependency on observer.h.
8382
7daf4f5b
JB
83832003-03-18 J. Brobecker <brobecker@gnat.com>
8384
8385 Continuing work to convert the hppa targets to multiarch partial.
8386 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8387 parameter. Reformat comment.
8388 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8389 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8390 to match new profile.
8391
3371ccc0
JB
83922003-03-18 J. Brobecker <brobecker@gnat.com>
8393
8394 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8395 appear to be working in any case.
8396
4fbe891e
JB
83972003-03-18 J. Brobecker <brobecker@gnat.com>
8398
8399 * observer.c (observer_test_first_observer): New static variable.
8400 (observer_test_second_observer): Likewise.
8401 (observer_test_third_observer): Likewise.
8402 (observer_test_first_notification_function): New static function.
8403 (observer_test_second_notification_function): Likewise.
8404 (observer_test_third_notification_function): Likewise.
8405
a7ff40e7
JB
84062003-03-17 J. Brobecker <brobecker@gnat.com>
8407
8408 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8409 * somsolib.c (gdb_assert.h): Likewise.
8410 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8411 (somsolib.o): Likewise.
8412
26ca4152
AC
84132003-03-17 Andrew Cagney <cagney@redhat.com>
8414
8415 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8416 BFD. Simplify setting of di.endian.
8417
0a613259
AC
84182003-03-17 Andrew Cagney <cagney@redhat.com>
8419
8420 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8421 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8422
8423 From Elena Zannoni <ezannoni@redhat.com>
8424 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8425 vector and floating-point parameters.
8426 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8427 convention.
8428 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8429
1132738f
FN
84302003-03-17 Fernando Nasser <fnasser@redhat.com>
8431
8432 * MAINTAINERS: Remove my name from several maintainership roles.
8433
6dc42492
AC
84342003-03-17 Andrew Cagney <cagney@redhat.com>
8435
8436 Fix frame off-by-one bug.
8437 * frame-unwind.h (frame_this_id_ftype): Replace
8438 frame_unwind_id_ftype.
8439 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8440 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8441 with "prev_register".
8442 * frame-unwind.c (frame_unwind_find_by_pc): Return
8443 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8444 comment.
8445 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8446 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8447 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8448 (dummy_frame_unwind): Update.
8449 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8450 sentinel_frame_register_unwind.
8451 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8452 (sentinel_frame_unwinder): Update.
8453 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8454 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8455 * frame.c (create_sentinel_frame): Update. Initialize
8456 "prologue_cache" instead of "unwind_cache".
8457 (frame_register_unwind): Call this frame's prev_register with the
8458 next frame and this frame's prologue cache.
8459 (get_prev_frame): Simplify. Always call prev frame's this_id with
8460 this frame and prev frame's prologue cache. Document that this
8461 call is shifted one to the left when compared to the
8462 frame_register_unwind call.
8463 (legacy_saved_regs_prev_register): Replace
8464 frame_saved_regs_register_unwind.
8465 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8466 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8467 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8468 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8469 (d10v_frame_unwind): Update.
8470 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8471 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8472 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8473 "saved_regs" with "this_saved_regs".
8474
efd710d6
AC
84752003-03-16 Andrew Cagney <cagney@redhat.com>
8476
8477 * frame.c (frame_pop): Don't call target_store_registers. Fix
8478 problem reported by Mark Kettenis.
8479
4e259f09
MK
84802003-03-16 Mark Kettenis <kettenis@gnu.org>
8481
8482 * i386-tdep.c (i386_register_type): Renamed from
8483 i386_register_virtual_type. Adjust function signature.
8484 (i386_gdbarch_init): Set register_type instead of
8485 deprecated_max_register_raw_size,
8486 deprecated_max_register_virtual_size and register_virtual_type.
8487
055bb976
AC
84882003-03-14 Andrew Cagney <cagney@redhat.com>
8489
8490 * frame.c (get_prev_frame): When a legacy frame, always call
8491 legacy_get_prev_frame. Simplify unwind code using assumption that
8492 the unwinder is new.
8493 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8494 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8495 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8496
ac2adee5
AC
84972003-03-14 Andrew Cagney <cagney@redhat.com>
8498
8499 * frame.c (get_saved_register): Delete function.
8500 * frame.h (get_saved_register): Delete declaration.
8501 * xstormy16-tdep.c: Update comment.
8502 * regcache.h: Update comments.
8503 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8504 get_saved_register and extract_address, use
8505 frame_read_unsigned_register.
8506 (sparc_frame_saved_pc): Ditto.
8507 (sparc_get_saved_register): Instead of get_saved_register, use
8508 frame_register.
8509 (sparc_pop_frame): Ditto.
8510 * findvar.c: Update comments.
8511 (value_of_register): Call frame_register instead of
8512 get_saved_register.
8513 (value_from_register): Ditto.
8514 * config/sparc/tm-sparc.h: Update comment.
8515 * breakpoint.c: Update comment.
8516
129c1cd6
AC
85172003-03-14 Andrew Cagney <cagney@redhat.com>
8518
8519 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8520 GET_SAVED_REGISTER.
8521 * gdbarch.h, gdbarch.c: Re-generate.
8522 * frame.h: Update comments.
8523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8524 * x86-64-tdep.c (x86_64_init_abi): Update.
8525 * sparc-tdep.c (sparc_gdbarch_init): Update.
8526 * sh-tdep.c (sh_gdbarch_init): Update.
8527 * mips-tdep.c (mips_gdbarch_init): Update.
8528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8529 * cris-tdep.c (cris_gdbarch_init): Update.
8530 * ia64-tdep.c (ia64_gdbarch_init): Update.
8531 * frame.c (frame_register): Update.
8532 (get_saved_register): Update.
8533 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8534
749b82f6
AC
85352003-03-13 Andrew Cagney <cagney@redhat.com>
8536
8537 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8538 * gdbarch.h, gdbarch.c: Regenerate.
8539 * valops.c (hand_function_call): Update comment.
8540 * stack.c (return_command): Update comment.
8541 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8542 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8544 * x86-64-tdep.c (x86_64_init_abi): Update.
8545 * vax-tdep.c (vax_gdbarch_init): Update.
8546 * v850-tdep.c (v850_gdbarch_init): Update.
8547 * sparc-tdep.c (sparc_gdbarch_init): Update.
8548 * sh-tdep.c (sh_gdbarch_init): Update.
8549 * s390-tdep.c (s390_gdbarch_init): Update.
8550 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8551 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8552 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8553 * mips-tdep.c (mips_gdbarch_init): Update.
8554 * mcore-tdep.c (mcore_gdbarch_init): Update.
8555 * m68k-tdep.c (m68k_gdbarch_init): Update.
8556 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8557 * ia64-tdep.c (ia64_gdbarch_init): Update.
8558 * i386-tdep.c (i386_gdbarch_init): Update.
8559 * hppa-tdep.c (hppa_gdbarch_init): Update.
8560 * h8300-tdep.c (h8300_gdbarch_init): Update.
8561 * frv-tdep.c (frv_gdbarch_init): Update.
8562 * cris-tdep.c (cris_gdbarch_init): Update.
8563 * avr-tdep.c (avr_gdbarch_init): Update.
8564 * arm-tdep.c (arm_gdbarch_init): Update.
8565 * alpha-tdep.c (alpha_gdbarch_init): Update.
8566
1594fa56
AC
85672003-03-13 Andrew Cagney <cagney@redhat.com>
8568
8569 * frame.c (legacy_frame_p): New function.
8570 (get_prev_frame): Use legacy_frame_p.
8571 * frame.h (legacy_frame_p): Declare.
8572
7717fda3
V
85732003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8574
fbe586ae 8575 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8576 listing corrected.
8577
0c67cbe9
V
85782003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8579
fbe586ae 8580 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8581
03febf99
AC
85822003-03-12 Andrew Cagney <cagney@redhat.com>
8583
8584 * frame.c (get_prev_frame): Rename the frame parameter to
8585 "this_frame".
8586 (get_next_frame, legacy_get_prev_frame): Ditto.
8587
0a1e1ca1
AC
85882003-03-12 Andrew Cagney <cagney@redhat.com>
8589
8590 * frame.c (get_current_frame): Check target_has_registers before
8591 checking target_has_stack.
8592 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8593 instead of deprecated_selected_frame.
8594 * findvar.c (value_of_register): Pass "frame", not
8595 deprecated_selected_frame, to value_of_builtin_reg.
8596
a66a9c23
AC
85972003-03-12 Andrew Cagney <cagney@redhat.com>
8598
8599 * regcache.c (regcache_cooked_write_signed): New function.
8600 (regcache_cooked_write_unsigned): New function.
8601 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8602 (regcache_cooked_read_signed): Fix regnum in range assertion.
8603 * regcache.h (regcache_cooked_write_signed): Declare.
8604 (regcache_cooked_write_unsigned): Declare.
8605
8bedc050
AC
86062003-03-12 Andrew Cagney <cagney@redhat.com>
8607
8608 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8609 * gdbarch.h, gdbarch.c: Re-generate.
8610 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8611 * x86-64-tdep.h: Update.
8612 * x86-64-tdep.c (x86_64_init_abi): Update.
8613 * v850-tdep.c (v850_gdbarch_init): Update.
8614 * sparc-tdep.c (sparc_gdbarch_init): Update.
8615 * sh-tdep.c (sh_gdbarch_init): Update.
8616 * s390-tdep.c (s390_gdbarch_init): Update.
8617 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8618 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8619 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8620 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8621 * mips-tdep.c (mips_gdbarch_init): Update.
8622 * mcore-tdep.c (mcore_gdbarch_init): Update.
8623 * m68k-tdep.c (m68k_gdbarch_init): Update.
8624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8625 * ia64-tdep.c (ia64_gdbarch_init): Update.
8626 * i386-tdep.c (i386_gdbarch_init): Update.
8627 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8628 * hppa-tdep.c (hppa_gdbarch_init): Update.
8629 * h8300-tdep.c (h8300_gdbarch_init): Update.
8630 * frv-tdep.c (frv_gdbarch_init): Update.
8631 * cris-tdep.c (cris_gdbarch_init): Update.
8632 * avr-tdep.c (avr_gdbarch_init): Update.
8633 * arm-tdep.c (arm_gdbarch_init): Update.
8634 * alpha-tdep.c (alpha_gdbarch_init): Update.
8635 * sh-tdep.c (sh_init_extra_frame_info): Update.
8636 (sh64_init_extra_frame_info): Update.
8637 * ns32knbsd-nat.c (frame_num_args): Update.
8638 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8639 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8640 (xstormy16_frame_chain_valid): Update.
8641 * vax-tdep.c (vax_saved_pc_after_call): Update.
8642 * v850-tdep.c (v850_frame_chain): Update.
8643 (v850_pop_frame): Update.
8644 (v850_init_extra_frame_info): Update.
8645 * sparc-tdep.c (setup_arbitrary_frame): Update.
8646 * ns32k-tdep.c (umax_frame_num_args): Update.
8647 * s390-tdep.c (s390_pop_frame_regular): Update.
8648 * mn10300-tdep.c (mn10300_frame_chain): Update.
8649 (mn10300_pop_frame_regular): Update.
8650 (mn10300_init_extra_frame_info): Update.
8651 * mips-tdep.c (mips_init_frame_pc_first): Update.
8652 (mips_frame_chain): Update.
8653 (mips_pop_frame): Update.
8654 * mcore-tdep.c (mcore_frame_chain): Update.
8655 (mcore_pop_frame): Update.
8656 (mcore_init_extra_frame_info): Update.
8657 * arch-utils.c (init_frame_pc_default): Update.
8658 * m68k-tdep.c (isi_frame_num_args): Update.
8659 (delta68_frame_num_args): Update.
8660 (news_frame_num_args): Update.
8661 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8662 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8663 (alpha_frame_chain): Update.
8664 (alpha_pop_frame): Update.
8665 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8666 (hppa_init_extra_frame_info): Update.
8667 (hppa_frame_chain): Update.
8668 (hppa_frame_chain_valid): Update.
8669 * cris-tdep.c (cris_init_extra_frame_info): Update.
8670 * avr-tdep.c (avr_init_extra_frame_info): Update.
8671 * arm-tdep.c (arm_frame_chain_valid): Update.
8672 (arm_init_extra_frame_info): Update.
8673 (arm_pop_frame): Update.
8674 * frame.c (frame_pc_unwind): Update.
8675 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8676 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8677 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8678 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8679 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8680 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8681
7a25a7c1
AC
86822003-03-12 Andrew Cagney <cagney@redhat.com>
8683
8684 Eliminate the need for POP_FRAME.
8685 * frame.c (do_frame_unwind_register): New function.
8686 (frame_pop): When no POP_FRAME, pop the frame using register
8687 unwind and a scratch regcache.
8688 (frame_saved_regs_pop): Delete function.
8689 (trad_frame_unwinder): Update.
8690 * d10v-tdep.c (d10v_frame_pop): Delete function.
8691 (d10v_frame_unwind): Update.
8692 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8693 (sentinel_frame_unwinder): Update.
8694 * dummy-frame.c (dummy_frame_pop): Delete function.
8695 (dummy_frame_unwind): Update.
8696 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8697 (struct frame_unwind): Update.
8698
2f38ef89
KB
86992003-03-11 Kevin Buettner <kevinb@redhat.com>
8700
8701 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8702 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8703 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8704 Do range checks on register number obtained from debugging info.
8705 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8706 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8707 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8708 mapping function.
8709 (do_fp_register_row): Fix typo which caused double type to be
8710 used when attempting to unpack a float.
8711
552f4abf
JB
87122003-03-11 J. Brobecker <brobecker@gnat.com>
8713
8714 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8715
e0d2ae16
AC
87162003-03-11 Andrew Cagney <cagney@redhat.com>
8717
8718 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8719 frame. Problem found by Corinna Vinschen.
8720
ddbfdd06
PM
87212003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8722
8723 * doublest.c (floatformat_from_length): Accept also
8724 the real size of 'long double' type.
8725
088b2ddc 87262003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8727
088b2ddc 8728 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8729 * breakpoint.c (bpstat_copy): Copy the command lines as well
8730 as the old value, to match what is freed in bpstat_clear.
8731
f56f77c1
DC
87322003-03-10 David Carlton <carlton@math.stanford.edu>
8733
8734 * minsyms.c (add_minsym_to_hash_table): Replace
8735 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8736 (compare_minimal_symbols, compact_minimal_symbols)
8737 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8738 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8739 of DEPRECATED_SYMBOL_MATCHES_NAME.
8740 (lookup_minimal_symbol_solib_trampoline): Ditto.
8741
5602984a
AC
87422003-03-10 Andrew Cagney <cagney@redhat.com>
8743
8744 * regcache.h (regcache_cooked_read_ftype): Define.
8745 (regcache_save, regcache_restore): Add a cooked_read parameter.
8746 * regcache.c (regcache_save, regcache_restore): Update.
8747 (do_cooked_read): New function.
8748 (regcache_cpy): Pass do_cooked_read to regcache_save and
8749 regcache_restore.
8750
8bedc050
AC
87512003-03-10 Andrew Cagney <cagney@redhat.com>
8752
8753 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8754 * gdbarch.h, gdbarch.c: Re-generate.
8755 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8756 * x86-64-tdep.h: Update.
8757 * x86-64-tdep.c (x86_64_init_abi): Update.
8758 * v850-tdep.c (v850_gdbarch_init): Update.
8759 * sparc-tdep.c (sparc_gdbarch_init): Update.
8760 * sh-tdep.c (sh_gdbarch_init): Update.
8761 * s390-tdep.c (s390_gdbarch_init): Update.
8762 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8763 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8764 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8765 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8766 * mips-tdep.c (mips_gdbarch_init): Update.
8767 * mcore-tdep.c (mcore_gdbarch_init): Update.
8768 * m68k-tdep.c (m68k_gdbarch_init): Update.
8769 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8770 * ia64-tdep.c (ia64_gdbarch_init): Update.
8771 * i386-tdep.c (i386_gdbarch_init): Update.
8772 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8773 * hppa-tdep.c (hppa_gdbarch_init): Update.
8774 * h8300-tdep.c (h8300_gdbarch_init): Update.
8775 * frv-tdep.c (frv_gdbarch_init): Update.
8776 * cris-tdep.c (cris_gdbarch_init): Update.
8777 * avr-tdep.c (avr_gdbarch_init): Update.
8778 * arm-tdep.c (arm_gdbarch_init): Update.
8779 * alpha-tdep.c (alpha_gdbarch_init): Update.
8780 * sh-tdep.c (sh_init_extra_frame_info): Update.
8781 (sh64_init_extra_frame_info): Update.
8782 * ns32knbsd-nat.c (frame_num_args): Update.
8783 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8784 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8785 (xstormy16_frame_chain_valid): Update.
8786 * vax-tdep.c (vax_saved_pc_after_call): Update.
8787 * v850-tdep.c (v850_frame_chain): Update.
8788 (v850_pop_frame): Update.
8789 (v850_init_extra_frame_info): Update.
8790 * sparc-tdep.c (setup_arbitrary_frame): Update.
8791 * ns32k-tdep.c (umax_frame_num_args): Update.
8792 * s390-tdep.c (s390_pop_frame_regular): Update.
8793 * mn10300-tdep.c (mn10300_frame_chain): Update.
8794 (mn10300_pop_frame_regular): Update.
8795 (mn10300_init_extra_frame_info): Update.
8796 * mips-tdep.c (mips_init_frame_pc_first): Update.
8797 (mips_frame_chain): Update.
8798 (mips_pop_frame): Update.
8799 * mcore-tdep.c (mcore_frame_chain): Update.
8800 (mcore_pop_frame): Update.
8801 (mcore_init_extra_frame_info): Update.
8802 * arch-utils.c (init_frame_pc_default): Update.
8803 * m68k-tdep.c (isi_frame_num_args): Update.
8804 (delta68_frame_num_args): Update.
8805 (news_frame_num_args): Update.
8806 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8807 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8808 (alpha_frame_chain): Update.
8809 (alpha_pop_frame): Update.
8810 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8811 (hppa_init_extra_frame_info): Update.
8812 (hppa_frame_chain): Update.
8813 (hppa_frame_chain_valid): Update.
8814 * cris-tdep.c (cris_init_extra_frame_info): Update.
8815 * avr-tdep.c (avr_init_extra_frame_info): Update.
8816 * arm-tdep.c (arm_frame_chain_valid): Update.
8817 (arm_init_extra_frame_info): Update.
8818 (arm_pop_frame): Update.
8819 * frame.c (frame_pc_unwind): Update.
8820 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8821 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8822 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8823 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8824 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8825 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8826
12cc2063
AC
88272003-03-10 Andrew Cagney <cagney@redhat.com>
8828
8829 * gdbarch.sh (gdbarch_unwind_pc): New method.
8830 * gdbarch.h, gdbarch.c: Regenerate.
8831 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8832 but use read_pc and FRAME_SAVED_PC as fall backs.
8833 (frame_saved_regs_pc_unwind): Delete function.
8834 (trad_frame_unwinder): Update.
8835 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8836 (struct frame_unwind): Update.
8837 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8838 (dummy_frame_unwind): Update.
8839 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8840 (sentinel_frame_unwinder): Update.
8841 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8842 (d10v_frame_unwind): Update.
8843 (d10v_unwind_pc): New function.
8844 (d10v_gdbarch_init): Set unwind_pc.
8845
ef840a37
AC
88462003-03-10 Andrew Cagney <cagney@redhat.com>
8847
a2ce2e56
AC
8848 * gdbarch.h: Re-generate.
8849
ef840a37
AC
8850 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8851 PC.
8852 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8853 the PC register.
8854
08f3424b
MK
88552003-03-08 Mark Kettenis <kettenis@gnu.org>
8856
8857 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8858
1248ede2
AC
88592003-03-08 Andrew Cagney <cagney@redhat.com>
8860
8861 * cli-out.c: Update copyright.
8862 (cli_out_data): Define typedef. Use instead of ui_out_data.
8863
f49bacc8
AC
88642003-03-08 Andrew Cagney <cagney@redhat.com>
8865
8866 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8867 the result.
8868
9b05f993
AC
88692003-03-07 Andrew Cagney <cagney@redhat.com>
8870
8871 * gdbarch.sh: Don't generate two macro definitions when an
8872 undefined macro taking no arguments.
8873 * gdbarch.h: Regenerate.
8ffd9b1b 8874
166f4c7b
ML
88752002-03-07 Michal Ludvig <mludvig@suse.cz>
8876
8877 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8878 (x86_64_unwind_dummy_id): New functions.
8879 (x86_64_init_abi): Register these two new functions.
8880
6d686a84
ML
88812003-03-07 Michal Ludvig <mludvig@suse.cz>
8882
8883 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8884 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8885 separate function.
8886 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8887
6314f104
AC
88882003-03-05 Andrew Cagney <cagney@redhat.com>
8889
8890 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8891 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8892 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8893 to use unwind_dummy_id when a dummy frame.
8894 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8895 predicate.
8896 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8897
ceea5145
AC
88982003-03-05 Andrew Cagney <cagney@redhat.com>
8899
8900 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8901 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8902 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8903 values.
8904
0d843116
AC
89052003-03-05 Andrew Cagney <cagney@redhat.com>
8906
8907 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8908 (struct d10v_unwind_cache): Delete field "frameless". Replace
8909 "next_addr" with "sp_offset". Add "r11_offset".
8910 (d10v_frame_unwind_cache): Update.
8911 (prologue_find_regs): Update. When "mv r11, sp", save the
8912 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8913 RN was saved in r11_offset.
8914
b2579786
AC
89152003-03-05 Andrew Cagney <cagney@redhat.com>
8916
8917 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8918 cached PC value in the next frame.
8919
218e5956
AC
89202003-03-05 Andrew Cagney <cagney@redhat.com>
8921
8922 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8923 "id_unwind_cache" with "id".
8924 (frame_id_unwind): Delete declaration.
8925 * frame.c (frame_id_unwind): Delete function.
8926 (get_prev_frame): Call the frame id unwind method directly. Store
8927 the returned next frame's ID value in NEXT_FRAME. Note that there
8928 is a problem with the wrong unwind ID being called with the wrong
8929 unwind cache.
8930
ed363b1b
DJ
89312003-03-05 Daniel Jacobowitz <drow@mvista.com>
8932
8933 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8934
fe1f4a5e
DJ
89352003-03-05 James Ingham <jingham@apple.com>
8936 Daniel Jacobowitz <drow@mvista.com>
8937
8938 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8939 (auto_cp_abi): New variable.
8940 (current_cp_abi, num_cp_abis): Make static.
8941 (CP_ABI_MAX): Define.
8942 (cp_abis): Turn into an array.
8943 (value_virtual_fn_field): Fix formatting.
8944 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8945 takes a pointer.
8946 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8947 (list_cp_abis, _initialize_cp_abi): New functions.
8948 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8949 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8950 switch_to_cp_abi. Update prototype for register_cp_abi.
8951 * Makefile.in (cp-abi.o): Update dependencies.
8952 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8953 instead of switch_to_cp_abi.
8954 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8955 register_cp_abi.
8956 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8957 register_cp_abi.
8958 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8959
e4adbba9
DJ
89602003-03-05 Daniel Jacobowitz <drow@mvista.com>
8961
8962 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8963 * dwarf2loc.c: Include "regcache.h".
8964 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8965 register_size.
8966 * Makefile.in (dwarf2loc.o): Update dependencies.
8967
91ccbfc1
TR
89682003-03-04 Theodore A. Roth <troth@openavr.org>
8969
8970 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8971 number of io registers reported by remote target is not a multiple of
8972 step.
8973
3d4e8fd2
DC
89742003-03-04 David Carlton <carlton@math.stanford.edu>
8975
8976 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8977 (lookup_symbol_aux_psymtabs): Update call to
8978 lookup_partial_symbol.
8979 (lookup_transparent_type, find_main_psymtab)
8980 (make_symbol_overload_list): Ditto.
8981
ed42d87b
KH
89822003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8983
8984 * MAINTAINERS (Write after approval): Update my email address.
8985
a0ed5532
AC
89862003-03-03 Andrew Cagney <cagney@redhat.com>
8987
8988 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8989 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8990 predicate. Replace MAX_REGISTER_RAW_SIZE.
8991 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8992 MAX_REGISTER_VIRTUAL_SIZE.
8993 * regcache.c (legacy_max_register_raw_size): New function.
8994 (legacy_max_register_virtual_size): New function.
8995 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
8996 (MAX_REGISTER_RAW_SIZE): Define.
8997 (legacy_max_register_raw_size): Declare.
8998 (legacy_max_register_virtual_size): Declare.
8999 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9000 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9001 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9002 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9003 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9004 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9005 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9006 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9007 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9008 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9009 * vax-tdep.c (vax_gdbarch_init): Update.
9010 * v850-tdep.c (v850_gdbarch_init): Update.
9011 * sparc-tdep.c (sparc_gdbarch_init): Update.
9012 * sh-tdep.c (sh_gdbarch_init): Update.
9013 * s390-tdep.c (s390_gdbarch_init): Update.
9014 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9015 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9016 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9017 * mips-tdep.c (mips_gdbarch_init): Update.
9018 * mcore-tdep.c (mcore_gdbarch_init): Update.
9019 * m68k-tdep.c (m68k_gdbarch_init): Update.
9020 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9021 * ia64-tdep.c (ia64_gdbarch_init): Update.
9022 * i386-tdep.c (i386_gdbarch_init): Update.
9023 * hppa-tdep.c (hppa_gdbarch_init): Update.
9024 * h8300-tdep.c (h8300_gdbarch_init): Update.
9025 * frv-tdep.c (frv_gdbarch_init): Update.
9026 * cris-tdep.c (cris_gdbarch_init): Update.
9027 * avr-tdep.c (avr_gdbarch_init): Update.
9028 * arm-tdep.c (arm_gdbarch_init): Update.
9029 * alpha-tdep.c (alpha_gdbarch_init): Update.
9030 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9031 max_register_raw_size or max_register_virtual_size.
9032
8e437497
DC
90332003-03-03 David Carlton <carlton@math.stanford.edu>
9034
9035 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9036 SYMBOL_MATCHES_NAME, add comment.
9037 (SYMBOL_MATCHES_NATURAL_NAME): New.
9038 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9039 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9040 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9041 * symtab.c (lookup_partial_symbol): Use
9042 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9043 unhelpful comment.
9044 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9045 SYMBOL_MATCHES_NAME.
9046 Fix for PR c++/33.
9047
25120b0d
DC
90482003-03-03 David Carlton <carlton@math.stanford.edu>
9049
9050 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9051 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9052 by regexp matching against SYMBOL_NATURAL_NAME.
9053
78a11fb4
DC
90542003-03-03 David Carlton <carlton@math.stanford.edu>
9055
9056 * linespec.c (find_method): Extract code into collect_methods.
9057 (collect_methods): New.
9058
645dd519
MK
90592003-03-02 Mark Kettenis <kettenis@gnu.org>
9060
b4700d91
MK
9061 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9062 get_frame_base.
9063
645dd519
MK
9064 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9065 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9066
0aa7e1aa
SC
90672003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9068
8ffd9b1b 9069 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9070 and not regnum when summing the size of all registers up to regnum.
9071
f30ee0bc
AC
90722003-03-01 Andrew Cagney <cagney@redhat.com>
9073
9074 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9075 FRAME_INIT_SAVED_REGS.
9076 * gdbarch.h, gdbarch.c: Regenerate.
9077 * stack.c (frame_info): Update.
9078 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9079 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9080 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9081 * ns32k-tdep.c (ns32k_pop_frame): Update.
9082 * mips-tdep.c (mips_pop_frame): Update.
9083 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9084 * ia64-tdep.c (ia64_frame_chain): Update.
9085 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9086 (ia64_frameless_function_invocation): Update.
9087 (ia64_init_extra_frame_info): Update.
9088 (ia64_pop_frame_regular): Update.
9089 * frame.h (struct frame_info): Update comment.
9090 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9091 * frame.c (frame_saved_regs_register_unwind): Update.
9092 (frame_saved_regs_register_unwind): Update.
9093 (deprecated_generic_get_saved_register): Update.
9094 * cris-tdep.c: Update comment.
9095 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9096 Rename macro.
9097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9098 * x86-64-tdep.c (x86_64_init_abi): Update.
9099 * vax-tdep.c (vax_gdbarch_init): Update.
9100 * v850-tdep.c (v850_gdbarch_init): Update.
9101 * sparc-tdep.c (sparc_gdbarch_init): Update.
9102 * sh-tdep.c (sh_gdbarch_init): Update.
9103 * s390-tdep.c (s390_gdbarch_init): Update.
9104 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9105 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9106 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9107 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9108 * mips-tdep.c (mips_gdbarch_init): Update.
9109 * mcore-tdep.c (mcore_gdbarch_init): Update.
9110 * m68k-tdep.c (m68k_gdbarch_init): Update.
9111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9112 * ia64-tdep.c (ia64_gdbarch_init): Update.
9113 * i386-tdep.c (i386_gdbarch_init): Update.
9114 * frv-tdep.c (frv_gdbarch_init): Update.
9115 * avr-tdep.c (avr_gdbarch_init): Update.
9116 * arm-tdep.c (arm_gdbarch_init): Update.
9117 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9118
42fa7c0f
AC
91192003-03-01 Andrew Cagney <cagney@redhat.com>
9120
9121 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9122 option enum and switch. When no windows, set the interpreter to
9123 INTERP_CONSOLE.
8ffd9b1b 9124
49c7e338
AC
91252003-03-01 Andrew Cagney <cagney@redhat.com>
9126
9127 * main.c (captured_main): Replace magic option characters with an
9128 enum.
9129
e9582e71
AC
91302003-03-01 Andrew Cagney <cagney@redhat.com>
9131
9132 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9133 INIT_EXTRA_FRAME_INFO.
9134 * gdbarch.h, gdbarch.c: Regenerate.
9135 * arm-tdep.c: Update comments.
9136 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9137 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9138 * frame.h, avr-tdep.c: Ditto.
9139 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9140 (create_new_frame, legacy_get_prev_frame): Ditto.
9141 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9142 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9144 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9145 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9146 * v850-tdep.c (v850_gdbarch_init): Ditto.
9147 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9148 * sh-tdep.c (sh_gdbarch_init): Ditto.
9149 * s390-tdep.c (s390_gdbarch_init): Ditto.
9150 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9151 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9152 * mips-tdep.c (mips_gdbarch_init): Ditto.
9153 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9154 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9155 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9156 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9157 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9158 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9159 * frv-tdep.c (frv_gdbarch_init): Ditto.
9160 * cris-tdep.c (cris_gdbarch_init): Ditto.
9161 * avr-tdep.c (avr_gdbarch_init): Ditto.
9162 * arm-tdep.c (arm_gdbarch_init): Ditto.
9163 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9164 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9165
35cac7cf
AC
91662003-03-01 Andrew Cagney <cagney@redhat.com>
9167
9168 * gdbarch.sh (register_type): New function with predicate.
9169 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9170 * gdbarch.h, gdbarch.c: Re-generate.
9171 * arch-utils.c (generic_register_byte): Use generic_register_size.
9172 (generic_register_size): When available, use
9173 gdbarch_register_type.
9174 * regcache.c (init_regcache_descr): When available, initialize the
9175 register type array using gdbarch_register_type. If the
9176 architecture supplies gdbarch_register_type, do not use the legacy
9177 regcache layout.
9178 * d10v-tdep.c (d10v_register_type): Replace
9179 d10v_register_virtual_type.
9180 (d10v_gdbarch_init): Set register_type instead of
9181 register_virtual_type.
9182
7b83296f
AC
91832003-03-01 Andrew Cagney <cagney@redhat.com>
9184
9185 * Makefile.in (ax-gdb.o): Update dependencies.
9186 * ax-gdb.c: Include "regcache.h".
9187 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9188 * findvar.c (value_of_register): Ditto.
9189 * infcmd.c (default_print_registers_info): Ditto.
9190
eadc1c87
MK
91912003-03-01 Mark Kettenis <kettenis@gnu.org>
9192
9193 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9194 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9195
14143612
MK
91962003-03-01 Mark Kettenis <kettenis@gnu.org>
9197
9198 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9199 of STREQ.
9200
a55cc764
DJ
92012003-02-28 Daniel Jacobowitz <drow@mvista.com>
9202
9203 * Makefile.in (dwarf2loc.o): Update dependencies.
9204 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9205 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9206 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9207 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9208 (locexpr_tracepoint_var_ref): New function.
9209 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9210
08a617da
AC
92112003-02-28 Andrew Cagney <cagney@redhat.com>
9212
9213 * regcache.c (register_size): New function.
9214 * regcache.h (register_size): Declare
9215 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9216 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9217
4224873a
DC
92182003-02-28 David Carlton <carlton@math.stanford.edu>
9219
9220 * linespec.c (decode_compound): Extract code into find_method.
9221 (find_method): New.
9222
ccdc5d7f
JB
92232003-02-28 J. Brobecker <brobecker@gnat.com>
9224
9225 * Makefile.in: Add rules to build and link in observer.o.
9226
974e8ced
JB
92272003-02-27 J. Brobecker <brobecker@gnat.com>
9228
9229 * observer.c: Minor comments edits.
9230
7a28f973
JB
92312003-02-27 J. Brobecker <brobecker@gnat.com>
9232
9233 * observer.h, observer.c: New file.
9234
27cddce2
AC
92352003-02-27 Andrew Cagney <cagney@redhat.com>
9236
9237 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9238
b94a41a1
SC
92392003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9240
9241 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9242 (M6812_OP_STS_EXT): Likewise.
9243 (m6811_prologue): Use the above to recognize prologue.
9244 (m6812_prologue): Likewise.
9245
c8be8951
DC
92462003-02-27 David Carlton <carlton@math.stanford.edu>
9247
9248 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9249 SYMBOL_PRINT_NAME.
9250 (compare_psymbols): Ditto.
9251 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9252
d05bb1fc
MS
92532003-02-27 Michael Snyder <msnyder@redhat.com>
9254
4e845cd3
MS
9255 * f-lang.c (build_fortran_types): New function.
9256 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9257 * doublest.c (extract_floating): Fix warning text.
9258
f3824013
AC
92592003-02-27 Andrew Cagney <cagney@redhat.com>
9260
9261 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9262 predicate. Replaces PUSH_DUMMY_FRAME.
9263 * gdbarch.h, gdbarch.c: Regnerate.
9264 * valops.c (hand_function_call): Update. Call
9265 generic_push_dummy_frame directly.
9266 * vax-tdep.c (vax_gdbarch_init): Update.
9267 * sparc-tdep.c (sparc_gdbarch_init): Update.
9268 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9269 * m68k-tdep.c (m68k_gdbarch_init): Update.
9270 * hppa-tdep.c (hppa_gdbarch_init): Update.
9271 * alpha-tdep.c (alpha_gdbarch_init): Update.
9272 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9273 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9274 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9276 push_dummy_frame to generic_push_dummy_frame.
9277 * v850-tdep.c (v850_gdbarch_init): Ditto.
9278 * sh-tdep.c (sh_gdbarch_init): Ditto.
9279 * s390-tdep.c (s390_gdbarch_init): Ditto.
9280 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9281 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9282 * mips-tdep.c (mips_gdbarch_init): Ditto.
9283 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9284 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9285 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9286 * i386-tdep.c (i386_gdbarch_init): Ditto.
9287 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9288 * frv-tdep.c (frv_gdbarch_init): Ditto.
9289 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9290 * cris-tdep.c (cris_gdbarch_init): Ditto.
9291 * avr-tdep.c (avr_gdbarch_init): Ditto.
9292 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9293
ad188201
KB
92942003-02-26 Kevin Buettner <kevinb@redhat.com>
9295
9296 * mips-tdep.c (show_mips_abi): New function.
9297 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9298 command ``show mips abi''.
9299
6b37567a 93002003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9301
6b37567a 9302 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9303 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9304 more sline entries have been seen for the function.
9305
d3e0a5bf
MC
93062003-02-26 Michael Chastain <mec@shout.net>
9307
9308 * configure: Regenerate with autoconf 000227.
9309
18972eea
MC
93102003-02-26 Michael Chastain <mec@shout.net>
9311
9312 Close PR build/660.
9313 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9314 for old libc5/glibc.
9315 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9316
0bbde931
KW
93172003-02-26 Kris Warkentin <kewarken@qnx.com>
9318
9319 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9320 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9321
27ca5dad
MC
93222003-02-26 Michael Chastain <mec@shout.net>
9323
9324 * configure.in: New variable HAVE_UINTPTR_T.
9325 * configure, config.in: Regenerated.
9326
6f88d630
DJ
93272003-02-26 Daniel Jacobowitz <drow@mvista.com>
9328
9329 Fix PR build/1097.
9330 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9331
b14185ce
AC
93322003-02-25 Andrew Cagney <cagney@redhat.com>
9333
9334 * frame.c (get_prev_frame): Add comment on check for
9335 inside_entry_func. Only check for inside_entry_file when not a
9336 dummy and not a sentinel. Check that the new frame is not inner
9337 to the old frame.
9338
ac2bd0a9
AC
93392003-02-25 Andrew Cagney <cagney@redhat.com>
9340
9341 * frame.c (frame_debug): New variable.
9342 (_initialize_frame): Add "set/show debug frame" command.
9343 (get_prev_frame): When frame_debug, print reason why unwind
9344 failed.
9345
b18a0fd2
MC
93462003-02-25 Michael Chastain <mec@shout.net>
9347
9348 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9349 to avoid uintptr_t definition problems.
9350
22abf04a
DC
93512003-02-25 David Carlton <carlton@math.stanford.edu>
9352
9353 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9354 (SYMBOL_LINKAGE_NAME): Ditto.
9355 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9356 SYMBOL_LINKAGE_NAME.
9357 (struct general_symbol_info): Expand comment.
9358 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9359 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9360 (SYMBOL_MATCHES_REGEXP): Ditto.
9361 * symtab.c (symbol_natural_name): New function.
9362 * objfiles.h: Replace all uses of SYMBOL_NAME by
9363 DEPRECATED_SYMBOL_NAME.
9364 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9365 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9366 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9367 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9368 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9369 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9370 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9371 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9372 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9373 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9374 * ada-exp.y: Ditto.
9375 * ada-exp.y: Update copyright.
9376 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9377 * cp-valprint.c: Ditto.
9378
1a5848f6
JJ
93792003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9380
9381 * infptrace.c (detach): Do not flag error if ptrace detach fails
9382 and errno is set to ESRCH.
9383
7343d46a
AC
93842003-02-24 Andrew Cagney <cagney@redhat.com>
9385
9386 * infptrace.c (udot_info): Change type of udot_off to long. Use
9387 paddr when printing udot_off's value.
9388
49fa1dc2
DC
93892003-02-24 David Carlton <carlton@math.stanford.edu>
9390
9391 * symtab.c (make_symbol_overload_list): Only read in partial
9392 symtabs containing a matching partial symbol.
9393
0fe19209
DC
93942003-02-24 David Carlton <carlton@math.stanford.edu>
9395
9396 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9397 do the comparison, not strcmp.
9398 * symfile.c (compare_psymbols): Ditto.
9399 * defs.h: Declare strcmp_iw_ordered.
9400 * utils.c (strcmp_iw_ordered): New function.
9401
8e3ee7b5
JB
94022003-02-24 Jim Blandy <jimb@redhat.com>
9403
9404 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9405 support, shared libs): Remove my name from here, to better reflect
9406 reality.
9407
7df1a324
KW
94082003-02-24 Kris Warkentin <kewarken@qnx.com>
9409
9410 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9411 (target_ops): Add to_have_continuable_watchpoint.
9412 * target.c (update_current_target): Add INHERIT line for
9413 to_have_continuable_watchpoint.
9414 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9415 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9416 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9417 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9418
d1c76907
EZ
94192003-02-24 Elena Zannoni <ezannoni@redhat.com>
9420
9421 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9422 maintainership.
9423
2610b0bf
KW
94242003-02-24 Kris Warkentin <kewarken@qnx.com>
9425
f46169db
KW
9426 * solib.c (solib_open): Call target defined search function after
9427 failing with solib-search-path.
9428 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9429 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9430
9a3c34fe
KW
94312003-02-24 Kris Warkentin <kewarken@qnx.com>
9432
f46169db 9433 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9434
2417dd25
SC
94352003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9436
9437 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9438
b631436b
SC
94392003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9440
9441 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9442 (m68hc11_add_reggroups): New function.
9443 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9444 (m68hc11_gdbarch_init): Install the reggroups.
9445 (_initialize_m68hc11_tdep): Initialize them.
9446
0aa8c1e4
JW
94472003-02-21 James E Wilson <wilson@tuliptree.org>
9448
9449 * MAINTAINERS: Update my email address.
9450
50ceaba5
DC
94512003-02-21 David Carlton <carlton@math.stanford.edu>
9452
9453 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9454
4c2df51b
DJ
94552003-02-21 Daniel Jacobowitz <drow@mvista.com>
9456
9457 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9458 * symtab.h: Add opaque declarations of struct axs_value and
9459 struct agent_expr.
9460 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9461 (struct location_funcs): New type.
9462 (struct symbol): Add "loc" to aux_value.
9463 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9464 * dwarf2read.c: Include "dwarf2expr.h".
9465 (dwarf2_symbol_mark_computed): New function.
9466 (read_func_scope): Use it.
9467 (var_decode_location): New function.
9468 (new_symbol): Use it.
9469 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9470
9471 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9472 (dwarf2expr_h, dwarf2loc_h): New variables.
9473 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9474 (dwarf2expr.o, dwarf2loc.o): New rules.
9475 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9476 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9477 LOC_COMPUTED_ARG.
9478 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9479 * m2-exp.y (yylex): Likewise.
9480 * printcmd.c (address_info, print_frame_args): Likewise.
9481 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9482 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9483 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9484 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9485 * symtab.c (lookup_block_symbol): Likewise.
9486
5784d15e
AF
94872003-02-20 Adam Fedor <fedor@gnu.org>
9488
9489 * symtab.h: Remove objc_specific struct
9490 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9491 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9492 Have language_objc use cplus_specific struct.
9493
d4cad8db
TT
94942003-02-20 Tom Tromey <tromey@redhat.com>
9495
9496 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9497 TYPE_NAME, when printing a String value. PR java/1075.
9498
2f9a90b4
AF
94992003-02-20 Adam Fedor <fedor@gnu.org>
9500
d38074a8 9501 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9502 * objc-lang.c (find_methods): Make static.
2f9a90b4 9503
6f17862b
CF
95042003-02-20 Christopher Faylor <cgf@redhat.com>
9505
9506 * win32-nat.c (get_image_name): Check return value from
9507 ReadProcessMemory.
9508 (child_xfer_memory): Ditto.
9509
715d1656
AO
95102003-02-20 Alexandre Oliva <aoliva@redhat.com>
9511
9512 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9513 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9514 '${exec_prefix}' (in addition to the expansion thereof) as
9515 relocatable.
9516 * configure: Rebuilt.
9517
b1262a02
DC
95182003-02-20 David Carlton <carlton@math.stanford.edu>
9519
9520 * symtab.c (search_symbols): Revert the search_symbols part of my
9521 2002-12-23 patch. Add comment.
9522
7134143f
DJ
95232002-02-20 Daniel Jacobowitz <drow@mvista.com>
9524
9525 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9526 * dbxread.c (elfstab_build_psymtabs): Don't call
9527 install_minimal_symbols.
9528 (stabsect_build_psymtabs): Likewise.
9529 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9530 earlier.
9531 * somread.c (som_symfile_read): Call install_minimal_symbols
9532 and do_cleanups earlier.
9533 * nlmread.c (nlm_symfile_read): Likewise.
9534 * mdebugread.c (elfmdebug_build_psymtabs): Call
9535 install_minimal_symbols and make appropriate cleanups.
9536
cf466558
KB
95372003-02-20 Kevin Buettner <kevinb@redhat.com>
9538
9539 * solib.c (reload_shared_libraries): New function.
9540 (_initialize_solib): Add callbacks for ``set solib-search-path''
9541 and ``set solib-absolute-prefix''.
9542
de5ad195
DC
95432003-02-20 David Carlton <carlton@math.stanford.edu>
9544
9545 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9546 expand comment.
9547 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9548 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9549 * ada-typeprint.c (ada_typedef_print): Ditto.
9550 * ax-gdb.c (gen_var_ref): Ditto.
9551 * breakpoint.c (print_one_breakpoint): Ditto.
9552 * buildsym.c (finish_block): Ditto.
9553 * c-valprint.c (c_val_print): Ditto.
9554 * expprint.c (print_subexp): Ditto.
9555 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9556 * infcmd.c (jump_command): Ditto.
9557 * linespec.c (decode_line_2, decode_compound): Ditto.
9558 * maint.c (maintenance_translate_address): Ditto.
9559 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9560 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9561 Ditto.
8ffd9b1b
AJ
9562 * p-valprint.c (pascal_val_print): Ditto.
9563 * stabsread.c (define_symbol): Ditto.
de5ad195 9564 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9565 (print_frame_arg_vars, return_command): Ditto.
9566 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9567 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9568 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9569 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9570 (rbreak_command): Ditto.
9571 * tracepoint.c (tracepoints_info): Ditto.
9572 * typeprint.c (typedef_print): Ditto.
9573 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9574 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9575 * ada-typeprint.c: Update Copyright.
9576 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9577 * tracepoint.c, cli/cli-cmds.c: Ditto.
9578
f796e4be
KB
95792003-02-20 Kevin Buettner <kevinb@redhat.com>
9580
9581 * frame.c (generic_unwind_get_saved_register): Make non-static.
9582 * frame.h (generic_unwind_get_saved_register): Declare.
9583 * mips-tdep.c (read_next_frame_reg): Fetch register from
9584 current regcache when frame is NULL.
9585 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9586 that must be NULL.
9587 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9588 instead of frame_register_unwind().
9589
836cc9f4
AC
95902003-02-20 Andrew Cagney <ac131313@redhat.com>
9591
9592 * remote-sim.c (gdbsim_insert_breakpoint)
9593 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9594 code.
9595
501eef12
AC
95962003-02-20 Andrew Cagney <ac131313@redhat.com>
9597
9598 * remote.c (_initialize_remote): Add commands "set/show remote
9599 hardware-watchpoint-limit" and "set/show remote
9600 hardware-breakpoint-limit".
9601 (remote_hw_watchpoint_limit): Initialize to -1.
9602 (remote_hw_breakpoint_limit): Ditto.
9603 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9604
1b6bc7e0
CF
96052003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9606
9607 * coff-pe-read.c: New file - support reading of minimal symbols from a
9608 portable executable using the export table.
9609 * coff-pe-read.h: New file.
9610 * coffread.c: Include coff-pe-read.h.
9611 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9612 debugging symbols found.
9613 * Makefile.in (SFILES): Add coff-pe-read.o.
9614 (coff_pe_read_h): Define.
9615 (COMMON_OBS): Add coff-pe-read.o.
9616 (coffread.o): Add coff_pe_read_h dependency.
9617 (coff-pe-read.o): New target.
9618
fe898f56
DC
96192003-02-19 David Carlton <carlton@math.stanford.edu>
9620
9621 * Makefile.in (SFILES): Add block.c.
9622 (block_h): New.
9623 (COMMON_OBS): Add block.o.
9624 (block.o): New.
9625 (x86-64-tdep.o): Add $(block_h).
9626 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9627 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9628 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9629 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9630 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9631 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9632 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9633 * value.h: Add opaque declaration for struct block.
9634 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9635 * ada-lang.h: Ditto.
9636 * x86-64-tdep.c: #include "block.h"
9637 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9638 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9639 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9640 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9641 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9642 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9643 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9644 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9645 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9646 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9647 * symtab.c (block_function): Ditto.
9648 (contained_in): Ditto.
9649 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9650 block.h. Add opaque declaration for struct block.
9651 * symtab.h: Move block_function and contained_in declarations to
9652 block.h. Add opaque declarations for struct block, struct
9653 blockvector.
9654 (struct block): Move to block.h.
9655 (struct blockvector): Ditto.
9656 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9657 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9658 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9659 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9660 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9661 Ditto.
9662 * block.c: New file.
9663 * block.h: New file.
9664
173345b5
TR
96652003-02-19 Theodore A. Roth <troth@openavr.org>
9666
9667 * avr-tdep.c (avr_extract_return_value): Remove function.
9668 (avr_store_return_value): Remove function.
9669 (avr_extract_struct_value_address): Remove function.
9670 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9671
338ef23d
AC
96722003-02-19 Andrew Cagney <ac131313@redhat.com>
9673
9674 * rs6000-tdep.c: Include "gdb_assert.h".
9675 (registers_e500): Add "acc" and "spefscr".
9676 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9677 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9678 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9679 really is "r0".
9680 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9681
5412f5f3
KS
96822003-02-18 Keith Seitz <keiths@redhat.com>
9683
9684 * Makefile.in: Add gdbtk-interps.c.
9685
881324eb
KB
96862003-02-18 Kevin Buettner <kevinb@redhat.com>
9687
9688 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9689 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9690
6a2f5abf
AC
96912003-02-18 Andrew Cagney <cagney@redhat.com>
9692
9693 * symtab.h (struct objfile): Add opaque declaration.
9694
54c7009d
EZ
96952003-02-18 Elena Zannoni <ezannoni@redhat.com>
9696
9697 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9698 * dbxread.c (process_one_symbol): Use last_function_start rather
9699 than function_start_offset to find the real beginning of the
9700 current function. The latter is just the text section offset on
9701 some systems, the former is always the real function start.
54c7009d 9702
7ee6d7eb
AC
97032003-02-17 Andrew Cagney <cagney@redhat.com>
9704
9705 * configure.in: Revert ${target} != ${host}.
9706
2846da9b
AC
97072003-02-17 Andrew Cagney <ac131313@redhat.com>
9708
9709 * configure.in (Makefile): Use the test ${target} != ${host},
9710 instead of the absence of the "nm.h" file, to determine of the
9711 configuration non-native.
9712 * configure: Regenerate.
8ffd9b1b 9713
3b27aeea
EZ
97142003-02-14 Elena Zannoni <ezannoni@redhat.com>
9715
fbe586ae 9716 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9717
9718 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9719 conditionalize tui_active test.
9720 (lookup_cmd_1): Ditto.
9721
b0b1c2c0
MK
97222003-02-14 Mark Kettenis <kettenis@gnu.org>
9723
9724 * configure.in: Add check for _etext.
9725 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9726 available.
9727 * config.in, configure: regenerated.
9728
8f05cde5
DJ
97292003-02-14 Daniel Jacobowitz <drow@mvista.com>
9730
9731 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9732
021e7609
AC
97332003-02-14 Andrew Cagney <ac131313@redhat.com>
9734
9735 * main.c (tui_version): Delete variable.
9736 (captured_main): When --tui, set interpreter_p to "tui" instead of
9737 enabling tui_version.
9738 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9739 tui_version.
9740 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9741 * cli/cli-cmds.c (disassemble_command): Ditto.
9742 * defs.h (tui_version): Delete declaration.
9743 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9744 (tui-interp.o): Add rules.
9745 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9746
e325dcec
CF
97472003-02-14 Christopher Faylor <cgf@redhat.com>
9748
36ffb041 9749 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9750 just-loaded dll.
9751
c4f90d87
JM
97522003-02-12 Jason Molenda (jmolenda@apple.com)
9753
fbe586ae
RH
9754 * symmisc.c (print_objfile_statistics): Include information about
9755 the number of psymtabs and symtabs in each object file.
c4f90d87 9756
e46e5ccd
KS
97572003-02-13 Keith R Seitz <keiths@redhat.com>
9758
9759 * main.h (struct captured_main_args): Add interpreter_p.
9760 * main.c (captured_main): Initialize interpreter_p from context.
9761 * gdb.c (main): Set interpreter_p argument.
9762 * Makefile.in (gdb.o): Add dependency for interps.h.
9763
fe97fe9c
AC
97642003-02-12 Andrew Cagney <ac131313@redhat.com>
9765
9766 * event-top.c (cli_command_loop): Delete declaration.
9767 (_initialize_event_loop): Delete function setting event_loop_hook.
9768 * event-top.h (cli_command_loop): Declare. Update copyright.
9769 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9770 * interps.c (current_interp_command_loop): When event_loop_p, call
9771 cli_command_loop.
9772
1cdac4ef
AC
97732003-02-12 Andrew Cagney <ac131313@redhat.com>
9774
9775 * interps.h (interp_command_loop_ftype): Change return type to
9776 void.
9777
48037ead
ML
97782003-02-12 Michal Ludvig <mludvig@suse.cz>
9779
9780 * x86-64-tdep.c (x86_64_extract_return_value)
9781 (x86_64_store_return_value): Use regcache instead of regbuf.
9782 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9783 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9784
033afc63
AC
97852003-02-11 Andrew Cagney <ac131313@redhat.com>
9786
9787 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9788 * aclocal.m4: Regenerate.
9789 * configure: Regenerate.
9790
9791 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9792 TCL_LD_SEARCH_FLAGS.
9793
40d02bca
ML
97942003-02-10 Michal Ludvig <mludvig@suse.cz>
9795
9796 * dwarf2cfi.c: Reindented.
9797
11308a41
AC
97982003-02-09 Andrew Cagney <ac131313@redhat.com>
9799
9800 * interps.c (clear_interpreter_hooks): Convert function definition
9801 to ISO C.
9802
e1c1c0f6
DC
98032003-02-07 David Carlton <carlton@math.stanford.edu>
9804
9805 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9806
ab5d3da6
KB
98072003-02-07 Kevin Buettner <kevinb@redhat.com>
9808
9809 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9810 (struct type): ...to here.
9811 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9812 field.
9813 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9814 (replace_type): Set length on all type variants for a given type.
9815
b8a92b82
AC
98162003-02-07 Andrew Cagney <ac131313@redhat.com>
9817
9818 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9819 <sys/stat.h>.
9820 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9821
5cb316ef
AC
98222003-02-06 Andrew Cagney <ac131313@redhat.com>
9823
2555fe1a
AC
9824 * Makefile.in (symm-nat.o): Update dependencies.
9825 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9826 (lynx-nat.o, ia64-linux-nat.): Ditto.
9827 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9828 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9829 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9830
44270758
AC
9831 * Makefile.in (inflow_h): Define.
9832 (procfs.o, inflow.o, procfs.o): Update dependencies.
9833 * inftarg.c (child_stop): Delete extern declaration of
9834 inferior_process_group. Include "inflow.h".
9835 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9836 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9837 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9838 (our_process_group, inferior_process_group): Extern declarations.
9839
df8f7274
AC
9840 * procfs.c: Include "gdb_assert.h".
9841
5cb316ef
AC
9842 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9843 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9844 * jv-typeprint.c (java_type_print_base): Ditto.
9845 * typeprint.c (typedef_print): Eliminate STREQ.
9846 * cli/cli-script.c (define_command, define_command): Ditto.
9847 * main.c (captured_main): Ditto.
9848 * values.c (lookup_internalvar): Ditto.
9849 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9850 within `if' conditional.
9851 * linespec.c (decode_line_2): Ditto.
9852 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9853 (bfd_openw_with_cleanup): Ditto.
9854
2a28ccea
MK
98552003-02-07 Mark Kettenis <kettenis@gnu.org>
9856
9857 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9858 legacy_extract_return_value and store_return_value to
9859 legacy_return_value.
9860
786b8124
CF
98612003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9862
9863 * win32-nat.c (get_relocated_section_addrs): New function. Find
9864 section load addresses for symbol handling in relocated DLLs.
9865 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9866
b871e4ec
FF
98672003-02-05 Fred Fish <fnf@intrinsity.com>
9868
9869 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9870 '=' and '!='.
9871 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9872 with '&' and '=='.
9873 (angel_RDI_info): Ditto.
9874 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9875 with '&' and '!='.
9876 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9877
4389a95a 98782003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9879 Keith Seitz <keiths@redhat.com>
9880 Elena Zannoni <ezannoni@redhat.com>
9881 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9882
9883 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9884 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9885 (SUBDIR_MI_OBS): Add "mi-interp.o".
9886 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9887 (SFILES): Add "interps.c".
9888 (COMMON_OBS): Add "interps.o".
9889 (interps_h, mi_main_h): Define.
9890 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9891 (mi-main.o, main.o, event-top.o): Update dependencies.
9892 * cli/cli-interp.c: New file.
9893 * interps.h, interps.c: New files.
9894 * top.c: (gdb_init): Don't install the default interpreter, handed
9895 by captured_main.
9896 * main.c: Include "interps.h".
9897 (interpreter_p): Note that it should malloc'ed.
9898 (captured_command_loop): Call current_interp_command_loop.
9899 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9900 xfree and xstrdup when updating interpreter_p. Install the
9901 default interpreter. Add hack to stop mi1's copyright notice
9902 being encoded.
9903 * event-top.h (gdb_setup_readline): Declare.
9904 (gdb_disable_readline): Declare.
9905 * event-top.c: Include "interps.h".
9906 (display_gdb_prompt): Call current_interp_display_prompt_p.
9907 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9908 gdb_stdlog, and gdb_stdtarg.
9909 (_initialize_event_loop): Don't call gdb_setup_readline.
9910 * cli-out.c (cli_out_set_stream): New function.
9911 * cli-out.h (cli_out_set_stream): Declare.
9912
ff3b5810
MK
99132003-02-06 Mark Kettenis <kettenis@gnu.org>
9914
9915 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9916 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9917 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9918 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9919 config/i386/i386v42mp.mt: Removed.
9920
5b729aa5
MK
99212003-02-05 Mark Kettenis <kettenis@gnu.org>
9922
9923 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9924 GDB_OSABI_SOLARIS.
9925
8cc15142
MC
99262003-02-05 Michael Chastain <mec@shout.net>
9927
9928 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9929 2.12.1 and earlier versions.
9930
5aa5d4b9
AC
99312003-02-05 Andrew Cagney <ac131313@redhat.com>
9932
9933 Remove orphaned hosts, targets and files.
9934 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9935 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9936 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9937 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9938 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9939 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9940 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9941 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9942 * config/sparc/tm-sp64sim.h: Delete.
9943 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9944 hosts.
9945 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9946 mips*-dec-mach3* targets.
9947
b68767c1
MC
99482003-02-04 Michael Chastain <mec@shout.net>
9949
9950 * NEWS: Fix typo: sepcifying -> specifying.
9951
5ae7ca1d
MC
99522003-02-04 Michael Chastain <mec@shout.net>
9953
9954 * dwarfread.c: Add documentation on the state of dwarf-1,
9955 looking towards obsoletion.
9956
d08a4280
MC
99572003-02-03 Michael Chastain <mec@shout.net>
9958
9959 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9960 gdb/testsuite/gdb.c++/pr-1023.exp.
9961
e9be73e4
AC
99622003-02-04 Andrew Cagney <ac131313@redhat.com>
9963
9964 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9965 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9966
9967 * utils.c (init_page_info): Delete reference to MPW in comments.
9968 * main.c (captured_main): Delete #ifdef MPW.
9969
05d57f6f
AC
99702003-02-04 Andrew Cagney <ac131313@redhat.com>
9971
8ffd9b1b 9972 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9973 * monitor.c (monitor_expect): Obsolete reference to m32r.
9974 * configure.tgt: Mark m32r-*-elf* as obsolete.
9975 * MAINTAINERS: Mark m32k as obsolete.
9976 * m32r-rom.c: Obsolete file.
9977 * config/m32r/m32r.mt: Obsolete file.
9978 * config/m32r/tm-m32r.h: Obsolete file.
9979 * m32r-stub.c: Obsolete file.
9980 * m32r-tdep.c: Obsolete file.
9981
8b0e5691
AC
99822003-02-04 Andrew Cagney <ac131313@redhat.com>
9983
9984 * NEWS: Mention that the z8k-zilog-none is obsolete.
9985 * MAINTAINERS: Mark z8k as obsolete.
9986 * configure.tgt: Obsolete the z8k-*-coff* target.
9987 * config/z8k/z8k.mt: Obsolete file.
9988 * config/z8k/tm-z8k.h: Obsolete file.
9989 * z8k-tdep.c: Obsolete file.
9990
67f16606
AC
99912003-02-04 Andrew Cagney <ac131313@redhat.com>
9992
9993 * NEWS: Mention that the mn10200-elf is obsolete.
9994 * configure.tgt: Obsolete mn10200-*-* target.
9995 * breakpoint.c (update_breakpoints_after_exec): Update comment to
9996 mention that the mn10200 is obsolete.
9997 * breakpoint.h: Ditto.
9998 * MAINTAINERS: Mark the mn10200-elf as obsolete.
9999 * config/mn10200/mn10200.mt: Obsolete file.
10000 * config/mn10200/tm-mn10200.h: Obsolete file.
10001 * mn10200-tdep.c: Obsolete file.
10002
fd2299bd
AC
100032003-02-04 Andrew Cagney <ac131313@redhat.com>
10004
10005 * MAINTAINERS: Mark h8500 as obsolete.
10006 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10007 * findvar.c (value_from_register): Ditto.
10008 * h8500-tdep.c: Mark file as obsolete.
10009 * config/h8500/h8500.mt: Ditto.
10010 * config/h8500/tm-h8500.h: Ditto.
10011 * NEWS: Mention that h8500 is obsolete.
10012
eb9a305d
DC
100132003-02-04 David Carlton <carlton@math.stanford.edu>
10014
10015 * objfiles.c (allocate_objfile): Always set name. Add comment at
10016 start of function.
10017 * jv-lang.c (get_dynamics_objfile): Add comment.
10018
406fc7fb
DC
100192003-02-04 David Carlton <carlton@math.stanford.edu>
10020
10021 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10022 * printcmd.c (build_address_symbolic): Replace uses of
10023 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10024 SYMBOL_NAME, and asm_demangle.
10025 Update copyright.
10026
93d91629
DC
100272003-02-04 David Carlton <carlton@math.stanford.edu>
10028
10029 * linespec.c (decode_compound): Extract code into
10030 lookup_prefix_sym.
10031 (lookup_prefix_sym): New function.
10032
1c5cb38e
DC
100332003-02-04 David Carlton <carlton@math.stanford.edu>
10034
10035 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10036 FLOAT_COERCION_BADNESS.
10037 * gdbtypes.c (rank_one_type): Replace all uses of
10038 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10039
0cf824c9
JB
100402003-02-04 Jim Blandy <jimb@redhat.com>
10041
10042 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10043 section, let dwarf_macinfo_section point to it, not
10044 dwarf_loc_section.
10045
a2d356b0
DJ
100462003-02-04 Daniel Jacobowitz <drow@mvista.com>
10047
10048 Pointed out by Anton Blanchard <anton@samba.org>.
10049 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10050 (ppc_linux_at_sigtramp_return_path): Use it.
10051
2de7ced7
DJ
100522003-02-04 Daniel Jacobowitz <drow@mvista.com>
10053
10054 * defs.h (streq): Add prototype.
10055 * utils.c (streq): New function.
10056
10057 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10058 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10059 * mdebugread.c (new_symbol): Likewise.
10060 * stabsread.c (define_symbol): Likewise.
10061 * coffread.c (process_coff_symbol): Likewise.
10062 * dwarfread.c (new_symbol): Likewise.
10063
10064 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10065 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10066 here.
10067 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10068 SYMBOL_INIT_DEMANGLED_NAME.
10069 * objfiles.c: Include "hashtab.h".
10070 (allocate_objfile): Call htab_set_functions_ex for the
10071 demangled_names_hash.
10072 (free_objfile): Call htab_delete for the demangled_names_hash.
10073 * objfiles.h (struct htab): Add declaration.
10074 (struct objfile): Add demangled_names_hash.
10075 * symfile.c: Include "hashtab.h".
10076 (reread_symbols): Call htab_delete for the demangled_names_hash.
10077 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10078 SYMBOL_NAME in the bcache.
10079 * symtab.c: Include "hashtab.h". Update comments.
10080 (create_demangled_names_hash, symbol_set_names): New functions.
10081 (symbol_find_demangled_name): New function, broken out from
10082 symbol_init_demangled_names.
10083 (symbol_init_demangled_names): Use it.
10084 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10085 (SYMBOL_SET_NAMES): New macro.
10086 (symbol_set_names): Add prototype.
10087
15831452
JB
100882003-02-03 Jim Blandy <jimb@redhat.com>
10089
10090 Use a single, consistent representation for an empty minimal
10091 symbol table in an objfile.
10092 * objfiles.c (terminate_minimal_symbol_table): New function.
10093 (allocate_objfile): Call it.
10094 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10095 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10096 non-NULL.
15831452
JB
10097 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10098 objfile has minimal symbols, compare minimal_symbol_count to zero,
10099 instead of comparing msymbols with NULL.
10100 * objfiles.c (have_minimal_symbols): Same.
10101 * solib-sunos.c (solib_add_common_symbols): Call
10102 terminate_minimal_symbol_table.
10103 * symfile.c (reread_symbols): Same.
8ffd9b1b 10104
ffc65945
KB
101052003-02-03 Kevin Buettner <kevinb@redhat.com>
10106
10107 * s390-tdep.c (s390_address_class_type_flags)
10108 (s390_address_class_type_flags_to_name)
10109 (s390_address_class_name_to_type_flags): New functions.
10110 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10111 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10112
f211c6d4
MS
101132003-02-03 Michael Snyder <msnyder@redhat.com>
10114
10115 * arm-tdep.c: Fix spell-o in comment.
10116
659b0389
ML
101172003-02-03 Michal Ludvig <mludvig@suse.cz>
10118
10119 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10120 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10121 error messages to contain BFD filename.
659b0389 10122
3b31d625
EZ
101232003-02-02 Elena Zannoni <ezannoni@redhat.com>
10124
997b089a 10125 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10126 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10127 (do_mixed_source_and_assembly): Use
10128 make_cleanup_ui_out_tuple_begin_end and
10129 make_cleanup_ui_out_tuple_begin_end.
10130 (do_mixed_source_and_assembly): Ditto.
10131 * thread.c (do_captured_list_thread_ids): Ditto.
10132 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10133 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10134 ui_out_tuple_end): Delete prototypes.
10135 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10136 ui_out_list_end, ui_out_tuple_end): Delete.
10137
10138 From Kevin Buettner <kevinb@redhat.com>:
10139 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10140 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10141 (do_cleanup_table_end): New functions.
10142 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10143 Use cleanups to invoke_ui_out_tuple_end().
10144 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10145 * cli/cli-setshow.c (cmd_show_list): Use
10146 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10147
5b181d62
AC
101482003-02-02 Andrew Cagney <ac131313@redhat.com>
10149
10150 * frame.c (frame_unwind_register): New function.
10151 (frame_unwind_unsigned_register): Use.
10152 (frame_unwind_signed_register): Use.
10153 (frame_read_register): New function.
10154 * frame.h (frame_unwind_register): Declare.
10155 (frame_read_register): Declare.
10156
10157 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10158 and frame_unwind_register instead of read_memory, write_register
10159 and deprecated_write_register_bytes.
10160
5f601589
AC
101612003-02-02 Andrew Cagney <ac131313@redhat.com>
10162
10163 * frame.h: Note that namelen can be negative.
10164 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10165 NAME's length.
10166
10167 * NEWS: Mention that the d10v's `regs' command is deprecated.
10168 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10169 (d10v_print_registers_info): New function.
10170 (show_regs): Call d10v_print_registers_info.
10171 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10172
6a3fe0a4
MK
101732003-02-02 Mark Kettenis <kettenis@gnu.org>
10174
10175 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10176 lost in the previous patch.
10177
075559bc
AC
101782003-02-01 Andrew Cagney <ac131313@redhat.com>
10179
10180 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10181 * stack.c (print_frame_info_base): Output complete FRAME tuple
10182 for synthesized frames.
075559bc 10183
6789195b
AC
101842003-02-02 Andrew Cagney <ac131313@redhat.com>
10185
10186 * mips-nat.c (zerobuf): Delete.
10187 (fetch_inferior_registers): Alloc local zerobuf.
10188 (fetch_core_registers): Alloc local zerobuf.
10189 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10190 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10191 * thread-db.c (thread_db_store_registers): Ditto.
10192 * sh-tdep.c (sh_do_register): Ditto.
10193 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10194 * remote-sim.c (gdbsim_store_register): Ditto.
10195 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10196 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10197 * monitor.c (monitor_supply_register): Ditto.
10198 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10199 * mips-nat.c (fetch_inferior_registers): Ditto.
10200 * m68klinux-nat.c (fetch_register): Ditto.
10201 * lynx-nat.c (fetch_inferior_registers): Ditto.
10202 (fetch_inferior_registers): Ditto.
10203 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10204 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10205 (hpux_thread_store_registers): Ditto.
10206 * hppah-nat.c (fetch_register): Ditto.
10207 * hppab-nat.c (fetch_register): Ditto.
10208 * hppa-tdep.c (pa_register_look_aside): Ditto.
10209 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10210 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10211
e669114a
AC
102122003-02-01 Andrew Cagney <ac131313@redhat.com>
10213
10214 * gdbarch.sh: Explictly specify all method levels. When a
10215 variable with an empty level, provide a non-multi-arch default.
10216 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10217 * gdbarch.h: Re-generate.
10218 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10219 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10220
9a043c1d
AC
102212003-02-01 Andrew Cagney <ac131313@redhat.com>
10222
10223 * defs.h (host_pointer_to_address): Delete declaration.
10224 (address_to_host_pointer): Delete declaration.
10225 * utils.c (host_pointer_to_address): Delete function.
10226 (address_to_host_pointer): Delete function.
10227 * procfs.c (procfs_address_to_host_pointer): New function.
10228 * procfs.c (proc_set_watchpoint): Use.
10229 (procfs_can_use_hw_breakpoint): Update comments.
10230 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10231 (som_solib_add): Use.
10232 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10233 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10234
7ca9f392
AC
102352003-02-01 Andrew Cagney <ac131313@redhat.com>
10236
94bbfd30
AC
10237 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10238 strlen d_name.
10239
7ca9f392
AC
10240 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10241 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10242 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10243 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10244 (define_symbol): Update.
10245 * symfile.c (generic_load): Remove references to nindy.
10246 * symtab.c: Remove references to nindy.
10247
31a85ea2
AC
102482003-02-01 Andrew Cagney <ac131313@redhat.com>
10249
10250 * infcmd.c (print_float_info): Delete code conditional on
10251 FLOAT_INFO.
10252 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10253 * config/m68k/nm-apollo68b.h: Ditto.
10254 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10255 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10256 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10257
f6e85fc8
MK
102582003-02-01 Mark Kettenis <kettenis@gnu.org>
10259
6015b6a0
MK
10260 * config/i386/tm-i386os9k.h: Removed.
10261
f7a30bdf
MK
10262 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10263 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10264 they're identical to i[3456]86-*-sysv* now.
10265 * config/i386/i386v32.mh: Removed.
10266 * config/i386/xm-i386v32.h: Removed.
10267 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10268
28d52111
MK
10269 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10270
4d3f6bce
MK
10271 * config/i386/i386dgux.mh: Removed.
10272 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10273
f6e85fc8
MK
10274 * configure.in: Fix typo.
10275 * configure: Regenerated.
10276
53955967
DC
102772003-01-31 David Carlton <carlton@math.stanford.edu>
10278
10279 * dwarf2read.c (dwarf2_locate_sections): Set
10280 dwarf_ranges_section.
10281
b1364885
AC
102822003-01-31 Andrew Cagney <ac131313@redhat.com>
10283
8dbb1c65
AC
10284 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10285 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10286
8731e58e
AC
10287 * utils.c: Re-indent.
10288
b1364885
AC
10289 * config/djgpp/fnchange.lst: Delete nindy files.
10290 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10291 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10292 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10293 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10294 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10295 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10296 * Makefile.in (init.c): Remove nindy references.
10297 (saber_gdb): Delete rule.
10298 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10299 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10300 and a68v-nat.c.
10301 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10302 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10303 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10304 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10305 nindy-share/stop.h.
10306 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10307 * saber.suppress: Delete file.
10308
086df311
DJ
103092003-01-31 Daniel Jacobowitz <drow@mvista.com>
10310
10311 * dbxread.c (stabs_data): New static variable.
10312 (fill_symbuf): Support an in-memory buffer for stabs data.
10313 (stabs_seek): New function.
10314 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10315 (read_ofile_symtab): Use stabs_seek.
10316 (elfstab_build_psymtabs): Take an asection* instead of
10317 an offset and size. Relocate the stabs data if necessary.
10318 Save the section* for dbx_psymtab_to_symtab.
10319 * dwarf2read.c: Add section variables for each debug section.
10320 (dwarf2_locate_sections): Fill them in.
10321 (dwarf2_read_section): Take an asection* argument.
10322 Relocate the section contents if necessary.
10323 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10324 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10325 it to dwarf2_read_section.
10326 (dwarf2_build_frame_info): Update callers.
10327 * elfread.c (elf_symfile_read): Update call to
10328 elfstab_build_psymtabs.
10329 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10330 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10331 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10332 * symfile.c (symfile_dummy_outputs): New function.
10333 (symfile_relocate_debug_section): New function.
10334 * symfile.h (symfile_relocate_debug_section): Add prototype.
10335
87d1b352
RH
103362003-01-31 Richard Henderson <rth@redhat.com>
10337
10338 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10339 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10340 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10341 * alpha-tdep.c (alpha_register_name): Add "unique".
10342 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10343 (ALPHA_UNIQUE_REGNUM): New.
10344 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10345
c48861fb
AC
103462003-01-31 Andrew Cagney <ac131313@redhat.com>
10347
10348 * README: Remove reference to Ericsson 1800 monitor.
10349 * Makefile.in (remote-es.o): Delete rule.
10350 (ALLDEPFILES): Delete remote-es.c.
10351 * remote-es.c: Delete file.
10352 * config/m68k/es1800.mt: Delete file.
10353 * config/djgpp/fnchange.lst: Update.
10354 * configure.tgt: Delete m68*-ericsson-* target.
10355
d764a824
AF
103562003-01-31 Adam Fedor <fedor@gnu.org>
10357
10358 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10359 Remove duplicate/shadowing variable of same name.
10360
fe36c4f4
JB
103612003-01-30 Jim Blandy <jimb@redhat.com>
10362
10363 * symfile.c (find_separate_debug_file): Assert that the objfile's
10364 directory name we compute ends with a slash, and then assume that
10365 that's so everywhere we use it.
10366
cb741690
DJ
103672003-01-30 Daniel Jacobowitz <drow@mvista.com>
10368
10369 * valops.c (value_assign): Flush frame cache after stores to memory
10370 also.
10371
96ee5227
AC
103722003-01-30 Andrew Cagney <ac131313@redhat.com>
10373
10374 * Makefile.in (mon960-rom.o): Delete rule.
10375 * mon960-rom.c: Delete file.
10376
7f6104a9
AC
103772003-01-30 Andrew Cagney <ac131313@redhat.com>
10378
10379 * d10v-tdep.c: Include "frame-unwind.h".
10380 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10381 list.
10382 (next_addr, uses_frame): Delete.
10383 (struct d10v_unwind_cache): Define.
10384 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10385 Use info instead of next_addr and uses_frame globals.
10386 (d10v_frame_init_saved_regs): Delete function.
10387 (d10v_init_extra_frame_info): Delete function.
10388 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10389 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10390 init_frame_pc or frame_saved_pc.
10391 (d10v_pop_frame): Delete function.
10392 (do_d10v_pop_frame): Delete function.
10393 (d10v_frame_chain): Delete function.
10394 (d10v_frame_chain_valid): Delete function.
10395 (d10v_frame_pc_unwind): New function.
10396 (d10v_frame_id_unwind): New function.
10397 (saved_regs_unwinder): New function.
10398 (d10v_frame_register_unwind): New function.
10399 (d10v_frame_pop): New function.
10400 (d10v_frame_unwind): New variable.
10401 (d10v_frame_p): New function.
10402 (d10v_frame_saved_pc): Delete function.
10403 * Makefile.in (d10v-tdep.o): Update dependencies.
10404
cad2e848
JB
104052003-01-30 J. Brobecker <brobecker@gnat.com>
10406
10407 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10408 causing some regressions due to a change in the default value
10409 for this macro.
10410
af34e669
DJ
104112003-01-29 Richard Henderson <rth@redhat.com>
10412 Elena Zannoni <ezannoni@redhat.com>
10413 Daniel Jacobowitz <drow@mvista.com>
10414
10415 Fix PR gdb/961.
8ffd9b1b 10416 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10417 variables.
10418 (RANGES_SECTION): New.
10419 (dwarf_ranges_buffer): New variable.
10420 (struct comp_unit_head): Add member "die".
10421 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10422 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10423 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10424 (dwarf2_locate_sections): Likewise.
10425 (dwarf2_build_psymtabs): Read .debug_ranges.
10426 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10427 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10428 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10429 Look for DW_AT_ranges and return the bounding box.
10430
baa93fa6
CF
104312003-01-29 Brian Ford <ford@vss.fsi.com>
10432
10433 * win32-nat.c (cygwin_pid): Removed as unused.
10434 (child_attach): Try fall back to Cygwin pid.
10435
c63f977f
JB
104362003-01-29 Jim Blandy <jimb@redhat.com>
10437
10438 * objfiles.h (struct objfile): Doc fix.
10439
d62d1979
AC
104402003-01-29 Andrew Cagney <ac131313@redhat.com>
10441
10442 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10443 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10444 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10445 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10446 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10447 (FRAME_SAVED_PC): Change to a function with predicate.
10448 * gdbarch.h, gdbarch.c: Re-generate.
10449
1ae18a04
AC
104502003-01-28 Andrew Cagney <ac131313@redhat.com>
10451
52287340
AC
10452 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10453
1ae18a04
AC
10454 * complaints.c (complain): Delete function.
10455 * complaints.h (struct deprecated_complaint): Delete definition.
10456 (complain): Delete declaration.
10457
f2c16bd6
KB
104582003-01-28 Kevin Buettner <kevinb@redhat.com>
10459
10460 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10461 dummy frames.
10462
a94dd1fd
AC
104632003-01-27 Andrew Cagney <ac131313@redhat.com>
10464
10465 * sentinel-frame.h, sentinel-frame.c: New files.
10466 * Makefile.in (frame.o): Update dependencies.
10467 (SFILES): Add sentinel-frame.c.
10468 (sentinel_frame_h): Define.
10469 (COMMON_OBS): Add sentinel-frame.o.
10470 (sentinel-frame.o): Specify dependencies.
10471 * frame.c: Include "sentinel-frame.h".
10472 (frame_register_unwind): Rewrite assuming that there is always a a
10473 ->next frame.
10474 (frame_register, generic_unwind_get_saved_register): Ditto.
10475 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10476 (create_sentinel_frame, unwind_to_current_frame): New functions.
10477 (get_current_frame): Rewrite using create_sentinel_frame and
10478 unwind_to_current_frame. When possible, always create a frame.
10479 (create_new_frame): Set next to the sentinel frame.
10480 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10481 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10482 ID cache when necessary.
10483 (frame_saved_regs_id_unwind): Use frame_relative_level.
10484 (deprecated_generic_get_saved_register): Use frame_relative_level,
10485 get_frame_saved_regs, get_frame_pc, get_frame_base and
10486 get_next_frame.
10487 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10488 frame_register.
10489
5378adc4
DJ
104902003-01-27 Daniel Jacobowitz <drow@mvista.com>
10491
10492 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10493
51ee2ddc
DJ
104942003-01-27 Daniel Jacobowitz <drow@mvista.com>
10495
10496 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10497 (maintenance_set_profile_cmd): Use error () instead of warning ().
10498
d9feb4e7
DJ
104992003-01-27 Daniel Jacobowitz <drow@mvista.com>
10500
10501 * configure.in: Check that -pg works if using --enable-profiling.
10502 Check for monstartup and _mcleanup regardless of --enable-profiling.
10503 * maint.c: Check for monstartup and _mcleanup before using them.
10504 * config.in: Regenerated.
10505 * configure: Regenerated.
10506
2d188dd3
NC
105072003-01-24 Nick Clifton <nickc@redhat.com>
10508
10509 * Add sh2e support:
10510
10511 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10512
10513 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10514 (sh2e_show_regs): New.
10515 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10516 * config/sh/tm-sh.h: Added sh2e to comments.
10517
cb3c37b2
JB
105182003-01-23 Jim Blandy <jimb@redhat.com>
10519
10520 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10521 symbols found)" message here; we haven't checked for a separate
10522 debug info file yet, so we don't know yet.
10523 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10524 we've looked everywhere. Also, there's no need to print a special
10525 message when we're loading the separate debug info file: the one
10526 symbol_file_add prints is fine.
10527
5b5d99cf
JB
105282003-01-23 Alexander Larsson <alexl@redhat.com>
10529 Jim Blandy <jimb@redhat.com>
10530
10531 Add support for executables whose debug info has been separated
10532 out into a separate file, leaving only a link behind.
10533 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10534 and separate_debug_objfile_backlink.
10535 (put_objfile_before): New declaration.
10536 * symfile.c: #include "filenames.h".
10537 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10538 debug info in a separate file, read that, too. Save the addrs
10539 argument, so we can use it again to read the separated debug info;
10540 syms_from_objfile modifies the table we pass it.
10541 (reread_symbols): After re-reading an objfile, call
10542 reread_separate_symbols to refresh its separate debug info
10543 objfile, if it has one.
10544 (reread_separate_symbols, find_separate_debug_file,
10545 get_debug_link_info, separate_debug_file_exists): New functions.
10546 (debug_file_directory): New global var.
10547 (_initialize_symfile): Initialize debug_file_directory, and
10548 provide the new `set debug-file-directory' command to let the user
10549 change it.
10550 * objfiles.c (free_objfile): If this objfile has its debug info in
10551 a separate objfile, free that one too. If this is itself a
10552 separate debug info objfile, clear our parent's backlink.
10553 (put_objfile_before): New function.
10554 * utils.c (gnu_debuglink_crc32): New function.
10555 * defs.h (gnu_debuglink_crc32): New declaration.
10556 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10557 * configure.in: Handle --with-separate-debug-dir config option.
10558 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10559 * acconfig.h (DEBUGDIR): New macro.
10560 * configure, aclocal.m4, config.in: Regenerated.
10561
7e8580c1
JB
105622003-01-22 Jim Blandy <jimb@redhat.com>
10563
7904e09f
JB
10564 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10565 like the old symbol_file_add, but taking new arguments: you can
10566 now pass in either a `struct section_addr_info' list to say where
10567 each section is loaded, or a `struct section_offsets' table. Pass
10568 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10569 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10570 with the appropriate quiescent values for the new arguments.
10571
7e8580c1
JB
10572 * symfile.c: #include "gdb_assert.h".
10573 (syms_from_objfile): Add the ability to pass in a section offset
10574 table directly, as an alternative to the section_addr_info table.
10575 Document arguments better.
10576 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10577 * symfile.h (syms_from_objfile): Update declaration.
10578 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10579 syms_from_objfile.
10580 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10581
d28f9cdf
DJ
105822003-01-22 Daniel Jacobowitz <drow@mvista.com>
10583
10584 Original patch by Tom Tromey <tromey@cygnus.com> and
10585 Jason Molenda <jmolenda@apple.com>.
10586 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10587 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10588 * NEWS: Mention profiling.
10589 * configure.in (--enable-gdbtk): Fix typo.
10590 (--enable-profiling): New. Set PROFILE_CFLAGS.
10591 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10592 Fill in function.
10593 (profiling_state): New variable.
10594 (mcleanup_wrapper): New function.
10595 (_initialize_maint): Remove NOTYET, fix call to
10596 add_setshow_boolean_cmd for "maint set profile".
10597 * configure: Regenerated.
10598
df21e465
MH
105992003-01-21 Martin M. Hunt <hunt@redhat.com>
10600
10601 * Makefile.in (install-gdbtk): Install PNG images too.
10602
73c1f219
AC
106032003-01-21 Andrew Cagney <ac131313@redhat.com>
10604
10605 * exec.c (text_start): Delete global variable.
10606 (exec_file_attach): Make text_start local to the function.
10607 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10608 * valops.c (hand_function_call): Delete code that handles
10609 BEFORE_TEXT_END and AFTER_TEXT_END.
10610 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10611 of CALL_DUMMY_LOCATION.
10612 * gdbarch.c: Regenerate.
10613 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10614 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10615 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10616 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10617 (text_end): Delete extern declaration.
10618
eb4f72c5
AC
106192003-01-21 Andrew Cagney <ac131313@redhat.com>
10620
10621 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10622 * blockframe.c (backtrace_below_main): Move to "frame.c".
10623 (frame_chain_valid): Delete check for backtrace_below_main.
10624 (_initialize_blockframe): Delete initialization, move ``set
10625 backtrace-below-main'' command to "frame.c".
10626 (do_flush_frames_sfunc): Delete function.
10627 * frame.c: Include "command.h" and "gdbcmd.h".
10628 (frame_type_from_pc): New function.
10629 (create_new_frame): Use frame_type_from_pc.
10630 (legacy_get_prev_frame): New function.
10631 (get_prev_frame): Rewrite. When an old style frame, call
10632 legacy_get_prev_frame. Otherwize, unwind the PC first.
10633 (_initialize_frame): Add ``set backtrace-below-main'' command.
10634 * Makefile.in (frame.o): Update dependencies.
10635
778ce8cc
AC
106362003-01-19 Andrew Cagney <ac131313@redhat.com>
10637
10638 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10639 DEPRECATED_REGISTERS_INFO.
10640
01c193c8
AC
106412003-01-19 Andrew Cagney <ac131313@redhat.com>
10642
10643 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10644 Maintainers'. Update `Various Maintainers'.
10645
dedc2a2b
AC
106462003-01-19 Andrew Cagney <ac131313@redhat.com>
10647
10648 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10649 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10650 Suppress actual parameters when `-'.
10651 * gdbarch.h, gdbarch.c: Regenerate.
10652
b7261c70
AC
106532003-01-19 Andrew Cagney <ac131313@redhat.com>
10654
10655 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10656 code handling dummy frames.
10657
dbe9fe58
AC
106582003-01-19 Andrew Cagney <ac131313@redhat.com>
10659
10660 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10661 (struct frame_unwind): Add field pop.
10662 * frame.h (frame_pop): Declare.
10663 * frame.c (frame_saved_regs_pop): New function.
10664 (trad_frame_unwinder): Add frame_saved_regs_pop.
10665 (frame_pop): New function.
10666 * dummy-frame.c (dummy_frame_pop): New function.
10667 (discard_innermost_dummy): New function.
10668 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10669 (dummy_frame_unwind): Add dummy_frame_pop.
10670 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10671 * valops.c (hand_function_call): Ditto.
10672 * stack.c (return_command): Ditto.
10673
570b8f7c
AC
106742003-01-18 Andrew Cagney <ac131313@redhat.com>
10675
10676 * cris-tdep.c: Fix function declaration indentation.
10677 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10678 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10679 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10680 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10681 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10682 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10683
106842003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10685
10686 * README (Unpacking and Installation -- quick overview):
10687 Warn against ".../gdb-5.3/gdb/configure".
10688
494cca16
AC
106892003-01-18 Andrew Cagney <ac131313@redhat.com>
10690
10691 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10692 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10693 (struct frame_unwind): Declare opaque.
10694 (dummy_frame_p): Declare function.
10695 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10696 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10697 * dummy-frame.c: Include "frame-unwind.h".
10698 (dummy_frame_p): New function.
10699 (dummy_frame_unwind): New variable.
10700 * frame.c: Include "frame-unwind.h".
10701 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10702 to use the new unwind field.
10703 (set_unwind_by_pc): Delete function.
10704 (create_new_frame, get_prev_frame): Set unwind field using
10705 frame_unwind_find_by_pc.
10706 (trad_frame_unwind, trad_frame_unwinder): New variables.
10707 * frame.h (trad_frame_unwind): Declare variable.
10708 (frame_id_unwind_ftype): Delete declaration.
10709 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10710 (struct frame_unwind): Declare opaque.
10711 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10712 register_unwind with a single unwind pointer.
10713 * frame-unwind.h, frame-unwind.c: New files.
10714 * Makefile.in (SFILES): Add frame-unwind.c.
10715 (frame_unwind_h): Define.
10716 (COMMON_OBS): Add frame-unwind.o.
10717 (frame-unwind.o): Specify dependencies.
10718 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10719
4efb68b1
AC
107202003-01-18 Andrew Cagney <ac131313@redhat.com>
10721
10722 * ada-valprint.c: Eliminate PTR.
10723 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10724 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10725 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10726 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10727 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10728 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10729 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10730
a84d24ee
AC
107312003-01-17 Andrew Cagney <ac131313@redhat.com>
10732
762f08a3
AC
10733 * main.c (captured_main): Don't use PTR.
10734 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10735 * gdbtypes.c (lookup_primitive_typename): Ditto.
10736 (lookup_struct_elt_type): Ditto.
10737 * f-valprint.c (info_common_command): Ditto.
10738 (list_all_visible_commons): Ditto.
10739 * jv-typeprint.c (java_type_print_base): Ditto.
10740
a84d24ee
AC
10741 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10742 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10743 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10744 i386-interix-nat.c and i386-interix-tdep.c. Rename
10745 m68klinux-nat.c and m68klinux-tdep.c. Rename
10746 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10747 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10748 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10749 * main.c (captured_main): Use xfree, not free.
10750
c170fb60
AC
107512003-01-16 Andrew Cagney <ac131313@redhat.com>
10752
10753 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10754 ID back using a parameter.
10755 * frame.c (frame_id_unwind): Update call.
10756 (frame_saved_regs_id_unwind): Update.
10757 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10758 * dummy-frame.h (struct frame_id): Add opaque declaration.
10759 (dummy_frame_id_unwind): Update declaration.
10760
867f3898
AC
107612003-01-15 Andrew Cagney <ac131313@redhat.com>
10762
10763 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10764
40622be8 107652003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10766
40622be8 10767 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10768
ae66c1fc
EZ
107692003-01-14 Elena Zannoni <ezannoni@redhat.com>
10770
997b089a 10771 Fix PR gdb/898
ae66c1fc
EZ
10772 * breakpoint.c (until_break_command): Add new argument. Use it to
10773 decide whether to stop only at the current frame or not.
10774 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10775 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10776 call.
10777 (advance_command): New function.
10778 (_initialize_infcmd): Update help string for 'until' command.
10779 Add new 'advance' command.
10780
a04257e6
DC
107812003-01-14 David Carlton <carlton@math.stanford.edu>
10782
10783 * linespec.c (decode_line_1): Normalize comments.
10784 (set_flags): Ditto.
10785 (locate_first_half): Ditto.
10786 (decode_compound): Ditto.
10787 (symtab_from_filename): Ditto.
10788 (decode_all_digits): Ditto.
10789 (decode_dollar): Ditto.
10790 (find_methods): Ditto.
10791 (find_toplevel_char): Ditto.
10792
1bac305b
AC
107932003-01-13 Andrew Cagney <ac131313@redhat.com>
10794
10795 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10796 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10797 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10798 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10799 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10800 * language.c, language.h, m32r-tdep.c: Update copyright.
10801 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10802 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10803 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10804 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10805 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10806 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10807
25caa7a8
EZ
108082003-01-13 Elena Zannoni <ezannoni@redhat.com>
10809
10810 * stabsread.h (process_later, resolve_cfront_continuation):
10811 Obsolete.
10812 Update copyright years.
10813 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10814 Update copyright year.
10815 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10816 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10817 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10818 Update copyright year.
10819 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10820 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10821 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10822 (parse_partial_symbols): Obsolete cfront support.
10823 * stabsread.c
10824 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10825 macros.
10826 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10827 read_cfront_baseclasses, read_cfront_member_functions,
10828 resolve_cfront_continuation,read_cfront_static_fields,
10829 copy_cfront_struct_fields): Obsolete functions.
10830 (define_symbol, read_one_struct_field): Obsolete cfront support.
10831 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10832 Update Copyright year.
10833
7789c6f5
EZ
108342003-01-13 Elena Zannoni <ezannoni@redhat.com>
10835
10836 * stack.c (print_frame_info, print_stack_frame_base_stub,
10837 print_stack_frame_base, show_and_print_stack_frame_stub,
10838 show_and_print_stack_frame, print_only_stack_frame_stub,
10839 print_only_stack_frame): Delete functions.
10840 (print_stack_frame_stub): Call print_frame_info instead of
10841 print_frame_info_base.
10842 (print_frame_info_base): Rename to print_frame_info.
10843 (backtrace_command_1): Call print_frame_info, instead of
10844 print_frame_info_base.
10845 (current_frame_command): Call print_stack_frame, instead of
10846 print_only_stack_frame.
10847 (frame_command): Call print_stack_frame, instead of
10848 show_and_print_stack_frame.
10849 (up_command): Ditto.
10850 (down_command): Ditto.
10851 * frame.h (print_only_stack_frame): Delete prototype.
10852 * infrun.c (normal_stop): Call print_stack_frame, instead of
10853 show_and_print_stack_frame.
10854 * thread.c (info_threads_command): Call print_stack_frame, instead
10855 of print_only_stack_frame.
10856
3f5a3016
AC
108572003-01-13 Andrew Cagney <ac131313@redhat.com>
10858
d99ba314
AC
10859 * README (Graphical interface to GDB): Update URL. Point at
10860 gdb/links/.
10861
3f5a3016
AC
10862 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10863 version match.
10864
083ae935
DJ
108652003-01-13 Daniel Jacobowitz <drow@mvista.com>
10866
10867 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10868 lines.
10869
5365276c
DJ
108702003-01-13 Daniel Jacobowitz <drow@mvista.com>
10871
10872 * thread-db.c (attach_thread): Prototype.
10873 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10874 thread information (ti), and valid flags (th_valid, ti_valid).
10875 (attach_thread): Move target_pid_to_str call to after the thread
10876 is added to GDB's list. Initialize the cache.
10877 (thread_get_info_callback, thread_db_map_id2thr)
10878 (thread_db_get_info): New functions.
10879 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10880 (thread_db_store_registers, thread_db_thread_alive)
10881 (thread_db_get_thread_local_address): Use them.
10882 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10883 of calling error() for threads in unknown state.
10884
10885 (clear_lwpid_callback): New function.
10886 (thread_db_resume): Use it to clear the cache.
10887
9fc30b6b
DJ
108882003-01-13 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10891 (resume_callback): Remove dead code.
10892
8f871025
AC
108932003-01-13 Andrew Cagney <ac131313@redhat.com>
10894
10895 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10896 predicate.
10897 * gdbarch.h, gdbarch.c: Regenerate.
10898 * stack.c (frame_info): Only initialize the saved registers when
10899 FRAME_INIT_SAVED_REGS_P.
10900 * frame.c (frame_saved_regs_register_unwind): Assert
10901 FRAME_INIT_SAVED_REGS_P.
10902 (deprecated_generic_get_saved_register): Ditto.
10903
3f565f1e
DJ
109042003-01-13 Daniel Jacobowitz <drow@mvista.com>
10905
10906 * source.c (openp): Squelch warning about "filename".
10907
072b1022
DJ
109082003-01-13 Daniel Jacobowitz <drow@mvista.com>
10909
10910 * source.c (openp): If the file does not exist don't necessarily
10911 search the path.
10912
973ccf8b
DJ
109132003-01-13 Daniel Jacobowitz <drow@mvista.com>
10914
10915 Fix PR gdb/872.
10916 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10917 (integer_types_same_name_p): New function.
10918 (rank_one_type): Use it.
10919 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10920
030292b7
DJ
109212003-01-13 Daniel Jacobowitz <drow@mvista.com>
10922
10923 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10924 variables.
10925 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10926 * configure.in: Add --with-sysroot.
10927 * configure: Regenerated.
10928 * main.c (gdb_sysroot): New variable.
10929 (captured_main): Initialize gdb_sysroot.
10930 * defs.h (gdb_sysroot): New extern declaration.
10931 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10932
afb5d334
MC
109332003-01-12 Michael Chastain <mec@shout.net>
10934
10935 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10936
751ceeb4
MC
109372003-01-12 Michael Chastain <mec@shout.net>
10938
10939 * top.c (print_gdb_version): Bump copyright year to 2003.
10940
94cd26f8
DC
109412003-01-12 David Carlton <carlton@bactrian.org>
10942
10943 * linespec.c (symtab_from_filename): Rename variable 's' to
10944 'file_symtab'.
10945
1ce79225
AC
109462003-01-12 Andrew Cagney <ac131313@redhat.com>
10947
10948 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10949 dummy frame.
10950 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10951
fa1fd571
AC
109522003-01-12 Andrew Cagney <ac131313@redhat.com>
10953
10954 * d10v-tdep.c: Include "gdb_assert.h".
10955 (d10v_store_return_value): Rewrite to match current interface.
10956 (d10v_extract_struct_value_address): Ditto.
10957 (d10v_extract_return_value): Ditto.
10958 (d10v_gdbarch_init): Set store_restore_value,
10959 extract_struct_value_address and extract_return_value.
10960
68b8d23e
JB
109612003-01-12 J. Brobecker <brobecker@gnat.com>
10962
10963 * hpread.c (set_namestring): New procedure replacing the
10964 SET_NAMESTRING macro.
10965 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10966 by calls to set_namestring.
10967
109682003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10969
10970 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10971 a compilation warning.
10972 (hpread_process_one_debug_symbol): Likewise.
10973
88d262ca
DC
109742003-01-10 David Carlton <carlton@math.stanford.edu>
10975
10976 * linespec.c (decode_line_1): Rename variable 's' to
10977 'file_symtab'.
10978 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10979 (decode_dollar): Ditto.
10980 (decode_variable): Ditto.
10981 (symbol_found): Ditto.
10982
86669319
MC
109832003-01-09 Michael Chastain <mec@shout.net>
10984
10985 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10986
616a9dc4
CV
109872003-01-07 Corinna Vinschen <vinschen@redhat.com>
10988
10989 * win32-nat.c (set_process_privilege): New function.
10990 (child_attach): Call set_process_privilege() to enable the
10991 SE_DEBUG_NAME user privilege if available in process token.
10992
3269bcfa
JB
109932003-01-10 J. Brobecker <brobecker@gnat.com>
10994
10995 * hpread.c (hpread_process_one_debug_symbol): Fix a small
10996 compilation error in the previous revision.
10997
2b0ee454
DC
109982003-01-09 David Carlton <carlton@math.stanford.edu>
10999
11000 * linespec.c: Update copyright.
11001
b3ba1b44
DJ
110022003-01-09 Daniel Jacobowitz <drow@mvista.com>
11003
11004 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11005 than inferior_ptid.
11006 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11007
4ef3f3be
AC
110082003-01-09 Andrew Cagney <ac131313@redhat.com>
11009
479ab5a0
AC
11010 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11011 Update comments.
11012 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11013 (frame_saved_regs_zalloc): Update.
11014 (frame_saved_regs_register_unwind): Update.
11015 (create_new_frame): Update.
11016 (get_prev_frame): Update.
11017 (frame_extra_info_zalloc): Update.
11018 (deprecated_get_frame_saved_regs): Update.
11019 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11020 * cris-tdep.c: Update comment.
11021
bde58177
AC
11022 * somsolib.h: Fix function indentation.
11023 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11024 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11025 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11026 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11027 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11028
4ef3f3be
AC
11029 * infrun.c (follow_fork): Use ISO C definition.
11030 * expprint.c (print_subexp): Use xfree instead of free.
11031 * charset.c: Include "gdb_string.h" instead of <string.h>.
11032 (register_iconv_charsets): Use ISO C definition.
11033 (host_charset, target_charset): Ditto.
11034 * Makefile.in (charset.o): Update dependencies.
11035 (mi-cmd-env.o): Update dependencies.
11036
1c615f7a
AC
110372003-01-08 Andrew Cagney <cagney@redhat.com>
11038
11039 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11040 get_frame_base.
11041
c9a1dc08
AC
110422003-01-08 Andrew Cagney <ac131313@redhat.com>
11043
11044 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11045 build directories. Save edited gdb output in Mbuild.log. If a
11046 build fails, remove any final GDB executable.
11047
dbad9d94
AC
110482003-01-08 Andrew Cagney <ac131313@redhat.com>
11049
11050 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11051 replacing hex constants with function names and stripping leading
11052 file name directory prefixes.
11053
8d357cca
AC
110542003-01-08 Andrew Cagney <cagney@redhat.com>
11055
11056 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11057 get_frame_base.
11058
bca02a8a
DC
110592003-01-08 David Carlton <carlton@math.stanford.edu>
11060
11061 * linespec.c (decode_line_1): Move code into decode_variable.
11062 (decode_variable): New function.
11063
7f8ab3a0
AC
110642003-01-08 Andrew Cagney <ac131313@redhat.com>
11065
11066 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11067
7b5849cc
AC
110682003-01-08 Andrew Cagney <cagney@redhat.com>
11069
11070 * cris-tdep.c (cris_frame_init_saved_regs): Use
11071 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11072 saved_regs buffer.
11073 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11074 (sh64_nofp_frame_init_saved_regs): Ditto.
11075 (sh_fp_frame_init_saved_regs): Ditto.
11076 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11077 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11078 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11079 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11080
72a5efb3
DJ
110812003-01-08 Daniel Jacobowitz <drow@mvista.com>
11082
11083 * minsyms.c (lookup_minimal_symbol): Update comment.
11084 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11085 (lookup_minimal_symbol_solib_trampoline): Likewise.
11086
11c02a10
AC
110872003-01-08 Andrew Cagney <cagney@redhat.com>
11088
aab3ea25
AC
11089 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11090 frame_relative_level.
11091
da50a4b7
AC
11092 * alpha-tdep.c: Use get_frame_extra_info.
11093 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11094 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11095 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11096 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11097
11c02a10
AC
11098 * alpha-tdep.c: Use get_next_frame.
11099 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11100 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11101 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11102 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11103 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11104 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11105 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11106
1e2330ba
AC
111072003-01-07 Andrew Cagney <cagney@redhat.com>
11108
11109 * alpha-tdep.c: Use get_frame_base.
11110 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11111 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11112 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11113 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11114 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11115 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11116 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11117 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11118
2d75187b
AC
111192003-01-07 Andrew Cagney <cagney@redhat.com>
11120
11121 * frame.c (deprecated_get_frame_context): New function.
11122 (deprecated_set_frame_context): New function.
11123 * frame.h (deprecated_get_frame_context): Declare.
11124 (deprecated_set_frame_context): Declare.
11125 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11126 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11127
483d36b2
AC
111282003-01-07 Andrew Cagney <cagney@redhat.com>
11129
11130 * frame.c (deprecated_set_frame_next_hack): New function.
11131 (deprecated_set_frame_prev_hack): New function.
11132 * frame.h (deprecated_set_frame_next_hack): Declare.
11133 (deprecated_set_frame_prev_hack): Declare.
11134 * mcore-tdep.c (analyze_dummy_frame): Use
11135 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11136 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11137
14e91ac5
DC
111382003-01-07 David Carlton <carlton@math.stanford.edu>
11139
11140 * linespec.c (decode_line_1): Move code into decode_dollar.
11141 (decode_dollar): New function.
11142
b0c6b05c
AC
111432003-01-07 Andrew Cagney <cagney@redhat.com>
11144
11145 * arm-tdep.c (arm_init_extra_frame_info): Use
11146 deprecated_update_frame_base_hack.
11147 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11148 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11149 (fix_frame_pointer): Ditto.
11150 (mn10300_analyze_prologue): Ditto.
11151
a00a19e9
AC
111522003-01-07 Andrew Cagney <cagney@redhat.com>
11153
11154 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11155 extra_info using frame_extra_info_zalloc.
11156 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11157 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11158 (sh64_init_extra_frame_info): Ditto.
11159 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11160 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11161 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11162 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11163 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11164 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11165 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11166 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11167 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11168 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11169 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11170 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11171
11172 * mn10300-tdep.c (analyze_dummy_frame): Use
11173 deprecated_set_frame_extra_info_hack.
11174 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11175
1fb4c65b
JB
111762003-01-07 J. Brobecker <brobecker@gnat.com>
11177
11178 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11179 class is not scText. These do not define "real" procedures.
11180 (parse_partial_symbols): Likewise.
11181
9fe7d6bf
MS
111822003-01-06 Michael Snyder <msnyder@redhat.com>
11183
11184 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11185
f6c609c4
AC
111862003-01-06 Andrew Cagney <ac131313@redhat.com>
11187
11188 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11189 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11190 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11191 deprecated_frame_xmalloc_with_cleanup.
11192 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11193 deprecated_frame_xmalloc.
11194 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11195 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11196
d995ff4b
AC
111972003-01-06 Andrew Cagney <cagney@redhat.com>
11198
84dc46cb
AC
11199 * x86-64-linux-tdep.c: Include "osabi.h".
11200 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11201
d995ff4b
AC
11202 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11203
66140c26
AC
112042003-01-06 Andrew Cagney <cagney@redhat.com>
11205
11206 * MAINTAINERS (Target Instruction Set Architectures): Update
11207 arm-elf. Can be built with -Werror, has been multiarched.
11208
11209 * value.h (unpack_long): Make buffer parameter constant.
11210 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11211 * scm-lang.h (scm_parse): Ditto.
11212 * defs.h (extract_typed_address, extract_address): Ditto.
11213 (extract_long_unsigned_integer): Ditto.
11214 * inferior.h (unsigned_pointer_to_address): Ditto.
11215 (signed_pointer_to_address): Ditto.
11216 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11217 * gdbarch.h, gdbarch.c: Regenerate.
11218 * findvar.c (extract_long_unsigned_integer): Update.
11219 (extract_address): Update.
11220 (extract_typed_address): Update.
11221 (unsigned_pointer_to_address): Update.
11222 * values.c (unpack_long): Update.
11223 (unpack_double): Update.
11224 (unpack_pointer): Update.
11225 (unpack_field_as_long): Update.
11226 * d10v-tdep.c (d10v_pointer_to_address): Update.
11227 * avr-tdep.c (avr_pointer_to_address): Update.
11228 * scm-lang.c (scm_unpack): Update.
11229 * findvar.c (signed_pointer_to_address): Update.
11230
b089b3da
ML
112312003-01-06 Michal Ludvig <mludvig@suse.cz>
11232
8ffd9b1b 11233 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11234 since it is in i386-tdep.c.
11235
aff87235
JB
112362003-01-06 J. Brobecker <brobecker@gnat.com>
11237
11238 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11239 failure introduced in the previous change.
11240
34f5e845
MC
112412003-01-05 Michael Chastain <mec@shout.net>
11242
11243 * README: Remove references to deleted remote-*.c files:
11244 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11245 remote-nrom.c, remote-os9k.c, remote-udi.c.
11246
28bcfd30
MK
112472003-01-05 Mark Kettenis <kettenis@gnu.org>
11248
11249 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11250 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11251 i386_get_longjmp_target.
11252
15a5b3ee
AC
112532003-01-05 Andrew Cagney <ac131313@redhat.com>
11254
11255 * arm-tdep.c (prologue_cache): Change to a pointer.
11256 (_initialize_arm_tdep): Allocate prologue_cache.
11257 (check_prologue_cache): Update.
11258 (save_prologue_cache): Update.
11259 (arm_gdbarch_init): Update.
11260
c263362b
DJ
112612003-01-04 Daniel Jacobowitz <drow@mvista.com>
11262
11263 * stabsread.c (update_method_name_from_physname): Call complaint()
11264 instead of error.
11265
51603483
DJ
112662003-01-04 Daniel Jacobowitz <drow@mvista.com>
11267
11268 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11269 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11270 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11271
11272 * blockframe.c: Include "gdbcmd.h" and "command.h".
11273 (backtrace_below_main): New variable.
11274 (file_frame_chain_valid, func_frame_chain_valid)
11275 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11276 (generic_func_frame_chain_valid): Remove functions.
11277 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11278 (_initialize_blockframe): New function.
11279 * Makefile.in (blockframe.o): Update dependencies.
11280 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11281 comment. Call frame_chain_valid ().
11282 * frame.h: Remove old prototypes. Add prototype for
11283 frame_chain_valid and update comments to match.
11284 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11285 Remove old comment.
11286 * gdbarch.h: Regenerated.
11287 * gdbarch.c: Regenerated.
11288
11289 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11290 set_gdbarch_frame_chain_valid.
11291 * avr-tdep.c (avr_gdbarch_init): Likewise.
11292 * cris-tdep.c (cris_gdbarch_init): Likewise.
11293 * frv-tdep.c (frv_gdbarch_init): Likewise.
11294 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11295 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11296 (i386_nw_init_abi): Likewise.
11297 (i386_gdbarch_init): Likewise.
11298 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11300 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11301 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11302 * mips-tdep.c (mips_gdbarch_init): Likewise.
11303 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11304 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11305 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11306 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11307 * s390-tdep.c (s390_gdbarch_init): Likewise.
11308 * sh-tdep.c (sh_gdbarch_init): Likewise.
11309 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11310 * v850-tdep.c (v850_gdbarch_init): Likewise.
11311 * vax-tdep.c (vax_gdbarch_init): Likewise.
11312 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11313
11314 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11315 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11316 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11317 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11318 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11319 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11320 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11321 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11322
b00a8037
DJ
113232002-01-04 Daniel Jacobowitz <drow@mvista.com>
11324
11325 * Makefile.in (acconfig_h): Remove incorrect macro.
11326 (config_h): Define.
11327 (osabi.o): Update dependencies.
11328 * configure.tgt: Set gdb_osabi based on target triplet.
11329 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11330 * configure: Regenerated.
11331 * config.in: Regenerated.
11332 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11333 (GDB_OSABI_DEFAULT): Define if not already defined.
11334 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11335 (set_osabi_string): New variables.
11336 (gdbarch_register_osabi): Add new OS ABI to
11337 gdb_osabi_available_names.
11338 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11339 (set_osabi, show_osabi): New functions.
11340 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11341
4be87837
DJ
113422003-01-04 Daniel Jacobowitz <drow@mvista.com>
11343
11344 * arch-utils.c (gdbarch_info_init): Set osabi to
11345 GDB_OSABI_UNINITIALIZED.
11346 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11347 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11348 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11349 * gdbarch.c: Regenerated.
11350 * gdbarch.h: Regenerated.
11351 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11352 there's no BFD.
11353 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11354 * osabi.h (enum gdb_osabi): Move to defs.h.
11355 (gdbarch_init_osabi): Update prototype.
11356 * defs.h (enum gdb_osabi): Moved here.
11357 * Makefile.in: Update dependencies.
11358
11359 * alpha-tdep.h: Don't include "osabi.h".
11360 (struct gdbarch_tdep): Remove osabi member.
11361 * alpha-tdep.c: Include "osabi.h".
11362 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11363 iterate over arches. Update call to gdbarch_init_osabi.
11364 (alpha_dump_tdep): Don't dump osabi.
11365 * alpha-linux-tdep.c: Include "osabi.h".
11366 * alpha-osf1-tdep.c: Include "osabi.h".
11367 * alphafbsd-tdep.c: Include "osabi.h".
11368 * alphanbsd-tdep.c: Include "osabi.h".
11369
11370 * arm-tdep.h: Don't include "osabi.h".
11371 (struct gdbarch_tdep): Remove osabi member.
11372 * arm-tdep.c: Include "osabi.h".
11373 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11374 iterate over arches. Update call to gdbarch_init_osabi.
11375 (arm_dump_tdep): Don't dump osabi.
11376 * arm-linux-tdep.c: Include "osabi.h".
11377 * armnbsd-tdep.c: Include "osabi.h".
11378
11379 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11380 Update call to gdbarch_init_osabi.
11381
11382 * i386-tdep.h: Don't include "osabi.h".
11383 (struct gdbarch_tdep): Remove osabi member.
11384 * i386-tdep.c: Include "osabi.h".
11385 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11386 iterate over arches. Update call to gdbarch_init_osabi.
11387 (i386_dump_tdep): Don't dump osabi.
11388 * i386-linux-tdep.c: Include "osabi.h".
11389 * i386-sol2-tdep.c: Include "osabi.h".
11390 * i386bsd-tdep.c: Include "osabi.h".
11391 * i386gnu-tdep.c: Include "osabi.h".
11392 * i386ly-tdep.c: Include "osabi.h".
11393 * i386nbsd-tdep.c: Include "osabi.h".
11394 * i386obsd-tdep.c: Include "osabi.h".
11395
11396 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11397 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11398 check osabi when iterating over arches. Update call to
11399 gdbarch_init_osabi.
11400 (mips_dump_tdep): Don't dump osabi.
11401
11402 * ns32k-tdep.h: Don't include "osabi.h".
11403 (struct gdbarch_tdep): Remove.
11404 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11405 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11406 allocate tdep. Update call to gdbarch_init_osabi.
11407 (ns32k_dump_tdep): Remove.
11408 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11409 * ns32knbsd-tdep.c: Include "osabi.h".
11410
11411 * ppc-tdep.h: Don't include "osabi.h".
11412 (struct gdbarch_tdep): Remove osabi member.
11413 * rs6000-tdep.c: Include "osabi.h".
11414 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11415 osabi when iterating over arches. Update call to
11416 gdbarch_init_osabi.
11417 (rs6000_dump_tdep): Don't dump osabi.
11418 * ppc-linux-tdep.c: Include "osabi.h".
11419 * ppcnbsd-tdep.c: Include "osabi.h".
11420
11421 * sh-tdep.h: Don't include "osabi.h".
11422 (struct gdbarch_tdep): Remove osabi member.
11423 * sh-tdep.c: Include "osabi.h".
11424 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11425 iterate over arches. Update call to gdbarch_init_osabi.
11426 (sh_dump_tdep): Don't dump osabi.
11427 * shnbsd-tdep.c: Include "osabi.h".
11428
11429 * sparc-tdep.c: Include "osabi.h".
11430 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11431 iterate over arches. Update call to gdbarch_init_osabi.
11432 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11433 tdep structure.
11434
11435 * vax-tdep.h: Don't include "osabi.h".
11436 (struct gdbarch_tdep): Remove.
11437 * vax-tdep.c: Include "osabi.h".
11438 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11439 iterate over arches. Don't allocate tdep. Update call
11440 to gdbarch_init_osabi.
11441 (vax_dump_tdep): Remove.
11442 (_initialize_vax_tdep): Update call to gdbarch_register.
11443
a881cf8e
DJ
114442003-01-04 Daniel Jacobowitz <drow@mvista.com>
11445
11446 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11447 entirely.
11448 (breakpoint_re_set_one): Don't fetch the value for a disabled
11449 watchpoint.
11450
1e698235
DJ
114512003-01-04 Daniel Jacobowitz <drow@mvista.com>
11452
11453 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11454 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11455 (COERCE_FLOAT_TO_DOUBLE): Remove.
11456 * gdbarch.c: Regenerate.
11457 * gdbarch.h: Regenerate.
11458 * Makefile.in: Remove value_h from gdbarch_h.
11459 * valops.c (coerce_float_to_double): New variable.
11460 (default_coerce_float_to_double): Remove.
11461 (standard_coerce_float_to_double): Remove.
11462 (value_arg_coerce): Use coerce_float_to_double.
11463 (_initialize_valops): Add "set coerce-float-to-double".
11464 * value.h (default_coerce_float_to_double): Remove prototype.
11465 (standard_coerce_float_to_double): Remove prototype.
11466
11467 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11468 prototyped.
11469 * mdebugread.c (parse_symbol): Likewise.
11470 * stabsread.c (define_symbol): Mark all functions as prototyped.
11471
11472 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11473 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11474 set_gdbarch_coerce_float_to_double.
11475 * arm-tdep.c (arm_gdbarch_init): Likewise.
11476 * frv-tdep.c (frv_gdbarch_init): Likewise.
11477 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11478 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11479 * mips-tdep.c (mips_gdbarch_init): Likewise.
11480 (mips_coerce_float_to_double): Remove.
11481 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11482 (rs6000_coerce_float_to_double): Remove.
11483 * s390-tdep.c (s390_gdbarch_init): Likewise.
11484 * sh-tdep.c (sh_gdbarch_init): Likewise.
11485 (sh_coerce_float_to_double): Remove.
11486 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11487 (sparc_coerce_float_to_double): Remove.
11488 * v850-tdep.c (v850_gdbarch_init): Likewise.
11489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11490 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11491 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11492 (hppa_coerce_float_to_double): Remove prototype.
11493 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11494
f436a26a
DJ
114952003-01-04 Daniel Jacobowitz <drow@mvista.com>
11496
11497 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11498
248f8055
DJ
114992003-01-04 Daniel Jacobowitz <drow@mvista.com>
11500
11501 Suggested by Stewart Brown <sb24@avaya.com>:
11502 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11503 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11504 (c_type_print_varspec_suffix): Likewise.
11505
72cfdc76
MK
115062003-01-04 Mark Kettenis <kettenis@gnu.org>
11507
bfd260bb
MK
11508 * configure.in: Don't set and AC_SUBST SUBDIRS.
11509 * configure: Regenerated.
11510
72cfdc76
MK
11511 * configure.in: Remove code dealing with shared libraries.
11512 * Makefile.in: Remove HLDFLAGS and HLDENV.
11513 * configure: Regenerated.
11514
c8b8a898
AC
115152003-01-04 Andrew Cagney <ac131313@redhat.com>
11516
11517 * frame.c (deprecated_frame_xmalloc): New function.
11518 (deprecated_set_frame_saved_regs_hack): New function.
11519 (deprecated_set_frame_extra_info_hack): New function.
11520 * frame.h (deprecated_frame_xmalloc): Declare.
11521 (deprecated_set_frame_saved_regs_hack): Declare.
11522 (deprecated_set_frame_extra_info_hack): Declare.
11523
14abd0fb
MK
115242003-01-04 Mark Kettenis <kettenis@gnu.org>
11525
8ee53726
MK
11526 * configure.in: Move code that provides the --enable-gdbtk option
11527 right after the code that handles the --enable-tui option, and
11528 polish it somewhat.
11529 * configure: Regenerated.
11530
14abd0fb
MK
11531 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11532 AC_CHECK_FUNCS and remove the old check for pread64.
11533 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11534 * acconfig.h (_GNU_SOURCE): Add.
11535 (HAVE_PREAD64): Remove.
11536 * configure, aclocal.m4, config.in: Regenerated.
11537
b2fb4676
AC
115382003-01-03 Andrew Cagney <ac131313@redhat.com>
11539
11540 * alpha-tdep.c: Use get_frame_saved_regs.
11541 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11542 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11543 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11544 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11545 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11546
8dcde887
MK
115472003-01-03 Mark Kettenis <kettenis@gnu.org>
11548
11549 * configure.in: Remove all use of the SUBDIRS variable; add
11550 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11551 code providing the --enable-multi-ice option, and move it right in
11552 front of the code that checks whether gdbserver is supported.
11553 Polish that too.
11554 * configure: Regenerated.
11555 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11556 @SUBDIRS@.
11557
8ccd593b
AC
115582003-01-03 Andrew Cagney <cagney@redhat.com>
11559
11560 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11561 * avr-tdep.c, cris-tdep.c: Ditto.
11562 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11563 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11564
91151a06
MK
115652003-01-03 Mark Kettenis <kettenis@gnu.org>
11566
11567 * configure.in: Remove --enable-netrom option.
11568 * configure: Regenerated.
11569
8fe84d01
MK
115702003-01-03 Mark Kettenis <kettenis@gnu.org>
11571
11572 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11573 declaration for `struct re_pattern_buffer' instead.
11574 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11575
f0394be6
JB
115762003-01-03 J. Brobecker <brobecker@gnat.com>
11577
11578 * mdebugread.c (parse_symbol): Count until the stEnd matching
11579 the structure name.
11580
27e9bf90
MK
115812003-01-02 Mark Kettenis <kettenis@gnu.org>
11582
93d331ba
MK
11583 * configure.in: Remove --with-cpu option.
11584 subscripts. Remove evil changequotes here.
11585 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11586 * config.in, configure: Regenerated.
8ffd9b1b 11587
27e9bf90
MK
11588 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11589 * configure.in: Cleanup section that sources GDB and BFD configure
11590 subscripts. Remove evil changequotes here.
11591 * config.in, configure: Regenerated.
11592
50abf9e5
AC
115932003-01-02 Andrew Cagney <ac131313@redhat.com>
11594
11595 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11596 frame accessor methods.
11597 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11598 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11599 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11600 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11601 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11602 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11603 * z8k-tdep.c: Ditto.
8ffd9b1b 11604
287c1a40
MK
116052003-01-02 Mark Kettenis <kettenis@gnu.org>
11606
f5dbc56d
MK
11607 * configure.in: Remove UI_OUT configuration code.
11608 * ada-lang.c: Update assuming UI_OUT is always true.
11609 * Makefile.in (UIOUT_CFLAGS): Remove.
11610 * configure: Regenerated.
11611 * TODO: Remove blurb about elimination of -DUI_OUT.
11612
627af7ea
MK
11613 * configure.in: Move code that provides the --enable-gdbcli,
11614 --enable-gdbmi options right before the code that handles the
11615 --enable-tui option. Polish a bit.
11616 * configure: Regenerated.
11617
06825bd1
MK
11618 * configure.in: Rewrite check for GNU regex and the
11619 --without-included regex option, and move it into the "Checks for
11620 library functions" section. This makes us use the system regex
11621 again by default on systems with version 2 of the GNU C library.
11622 This was apparently broken.
11623 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11624 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11625 * config.in, configure: Regenerated.
11626
287c1a40
MK
11627 * configure.in: Move code that provides the --enable-tui option
11628 before the "Checks for libraries" section. Polish the code
11629 somewhat and set need_curses to yes if we build the TUI. Rewrite
11630 code that looks for a library providing termcap functionality to
11631 match more closely what's done in the Readline library, and move
11632 it into to the "Checks for libraries" section.
11633 * configure: Regenerated.
11634 * Makefile.in (TERMCAP): Remove variable.
11635 * config/i386/go32.mh (TERMCAP): Remove variable.
11636
684e56bf
AC
116372003-01-02 Andrew Cagney <ac131313@redhat.com>
11638
11639 * MAINTAINERS: Mention gdb_mbuild.sh.
11640 * gdb_mbuild.sh: Rewrite.
11641
e1ea1d75
MK
116422003-01-02 Mark Kettenis <kettenis@gnu.org>
11643
11644 * configure.in: Fix typo in last change.
11645 * config.in, configure: Regenerated.
11646
1b831c93
AC
116472003-01-02 Andrew Cagney <ac131313@redhat.com>
11648
11649 * valarith.c (value_binop): Delete obsolete code and comments.
11650 * configure.host: Ditto.
11651 * buildsym.h (make_blockvector): Ditto.
11652 * buildsym.c (make_blockvector): Ditto.
11653 * defs.h (enum language): Ditto.
11654 (chill_demangle): Ditto.
11655 * elfread.c (elf_symtab_read): Ditto.
11656 * dwarfread.c (CHILL_PRODUCER): Ditto.
11657 (set_cu_language): Ditto.
11658 (handle_producer): Ditto.
11659 * expprint.c (print_subexp): Ditto.
11660 * gdbtypes.c (chill_varying_type): Ditto.
11661 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11662 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11663 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11664 (chill_varying_type): Ditto.
11665 * language.h (_LANG_chill): Ditto.
11666 * language.c (binop_result_type, integral_type): Ditto.
11667 (character_type, string_type, structured_type): Ditto.
11668 (lang_bool_type, binop_type_check): Ditto.
11669 * stabsread.h (os9k_stabs): Ditto.
11670 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11671 (define_symbol, read_type, read_struct_fields): Ditto.
11672 (read_array_type, read_enum_type, read_huge_number): Ditto.
11673 (read_range_type, start_stabs): Ditto.
11674 * symfile.c (init_filename_language_table): Ditto.
11675 (add_psymbol_with_dem_name_to_list): Ditto.
11676 * symtab.c (symbol_init_language_specific): Ditto.
11677 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11678 * symtab.h (struct general_symbol_info): Ditto.
11679 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11680 * typeprint.c (typedef_print): Ditto.
11681 * utils.c (fprintf_symbol_filtered): Ditto.
11682 * valops.c (value_cast, search_struct_field, value_slice): Delete
11683 obsolete code.
11684 (varying_to_slice): Delete function.
11685 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11686 (varying_to_slice): Delete declaration.
11687 * MAINTAINERS: Update.
11688
8bb2c122
MK
116892003-01-02 Mark Kettenis <kettenis@gnu.org>
11690
97bf5e38
MK
11691 * configure.in: Reorganize "Checks for library functions section"
11692 a bit. Remove check for `btowc' and `isascii' functions.
11693 * configure: Regenerated.
11694
5ee754fc
MK
11695 * acconfig.h (_MSE_INT_H): Remove.
11696 * configure.in: Create "Checks for header files" section, and move
11697 appropriate tests there. Don't check for objlist.h, wchar.h,
11698 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11699 misdetection fix. Also add "Checks for types", "Checks for
11700 compiler characteristics" and "Checks for library functions"
11701 sections.
11702 * config.in, configure: Regenerated.
11703
8bb2c122
MK
11704 * configure.in: Create "Checks for programs" section, and move
11705 appropriate tests there.
11706
9a156167
MK
117072003-01-01 Mark Kettenis <kettenis@gnu.org>
11708
11709 * configure.in: Create "Checks for libraries" section, and move
11710 appropriate tests there. Cleanup check for wctype in libw. Use
11711 AC_SEARCH_LIBS to see whether we need libsocket.
11712 * configure: Regenerated.
11713
a80e2bcb 11714For older changes see ChangeLog-2002
c906108c
SS
11715\f
11716Local Variables:
11717mode: change-log
11718left-margin: 8
11719fill-column: 74
11720version-control: never
11721End:
This page took 0.937926 seconds and 4 git commands to generate.