daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
66f667f5
JW
12003-09-10 James E Wilson <wilson@specifixinc.com>
2
3 * MAINTAINERS: Change my e-mail address.
4
53e8aaea
KB
52003-09-10 Kevin Buettner <kevinb@redhat.com>
6
7 * MAINTAINERS (frv): New ISA entry.
8
dcc6aaff
KB
92003-09-10 Kevin Buettner <kevinb@redhat.com>
10
11 * frv-tdep.c (dis-asm.h): Include.
12 * Makefile.in (frv-tdep.o): Update dependencies.
13
932644f0
JJ
142003-09-09 Jeff Johnston <jjohnstn@redhat.com>
15
16 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
17 Fix typo for high range of floating registers.
18
91c24f0a
DC
192003-09-09 David Carlton <carlton@kealia.com>
20
21 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
22 highpc initialization here out of scan_partial_symbols.
23 (scan_partial_symbols): Restructure into a recursive version,
24 calling add_partial_namespace and add_partial_enumeration when
25 appropriate.
26 (add_partial_namespace): New.
27 (add_partial_enumeration, locate_pdi_sibling): Ditto.
28
c9263853
AC
292003-09-09 Andrew Cagney <cagney@redhat.com>
30
e56a0ecc
AC
31 * rs6000-tdep.c (ppc_push_return_address): Delete function.
32 (rs6000_push_dummy_call): Set LR to BP_ADDR.
33 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
34 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
35
794a477a
AC
36 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
37 (rs6000_push_dummy_call): Set the "TOC" register.
38
c9263853
AC
39 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
40 methods "max_register_raw_size", "max_register_virtual_size" or
41 "register_virtual_size".
42
afa7d0b2
ILT
432003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
44
45 * MAINTAINERS: Update my e-mail address.
46
7a41266b
AC
472003-09-09 Andrew Cagney <cagney@redhat.com>
48
49 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
50 (rs6000_push_dummy_call): Store the struct return address.
51 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
52
77b2b6d4
AC
532003-09-09 Andrew Cagney <cagney@redhat.com>
54
55 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
56 "ppc_sysv_abi_push_arguments".
57 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
58 "ppc_sysv_abi_push_arguments".
59 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
60 instead of "push_arguments".
61 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
62
e8a7b686
AC
632003-09-09 Andrew Cagney <cagney@redhat.com>
64
65 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
66 instead of CALL_DUMMY_ADDRESS.
67
f86f5ca3
PH
682003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
69
70 * p-lang.c: Eliminate "register".
71 * c-lang.c: Ditto.
72 * expprint.c: Ditto.
73 * f-lang.c: Ditto.
74 * jv-lang.c: Ditto.
75 * language.c: Ditto.
76 * m2-lang.c: Ditto.
77 * parse.c: Ditto.
78 * scm-lang.c: Ditto.
79 * objc-lang.c: Ditto.
80
83ee270e
NC
812003-09-09 Nick Clifton <nickc@redhat.com>
82
83 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
84
a89aa300
AC
852003-09-04 Andrew Cagney <cagney@redhat.com>
86
87 * avr-tdep.c: Include "dis-asm.h".
88 * cris-tdep.c: Include "dis-asm.h".
89 (cris_delayed_get_disassembler): Use "struct disassemble_info"
90 instead of corresponding typedef.
91 * h8300-tdep.c: Include "dis-asm.h".
92 * ia64-tdep.c: Include "dis-asm.h".
93 * i386-tdep.c: Include "dis-asm.h".
94 (i386_print_insn): Use "struct disassemble_info" instead of
95 corresponding typedef.
96 * m68k-tdep.c: Include "dis-asm.h".
97 * mcore-tdep.c: Include "dis-asm.h".
98 * mips-tdep.c: Include "dis-asm.h".
99 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
100 instead of corresponding typedef.
101 * ns32k-tdep.c: Include "dis-asm.h".
102 * s390-tdep.c: Include "dis-asm.h".
103 * sparc-tdep.c: Include "dis-asm.h".
104 * vax-tdep.c: Include "dis-asm.h".
105 * v850-tdep.c: Include "dis-asm.h".
106 * mn10300-tdep.c: Include "dis-asm.h".
107 * rs6000-tdep.c: Include "dis-asm.h".
108 * xstormy16-tdep.c: Include "dis-asm.h".
109 (_initialize_xstormy16_tdep): Delete "extern" declaration of
110 print_insn_xstormy16.
111 * Makefile.in (v850-tdep.o): Update dependencies.
112 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
113 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
114 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
115 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
116 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
117 (gdbarch_h): Remove $(dis_asm_h).
118 * disasm.c: Include "dis-asm.h".
119 (dis_asm_read_memory): Use "struct disassemble_info" instead of
120 corresponding typedef.
121 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
122 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
123 * gdbarch.sh: Do not include "dis-asm.h".
124 (struct disassemble_info): Declare opaque.
125 (TARGET_PRINT_INSN): Update declaration.
126 * gdbarch.h, gdbarch.c: Re-generate.
127
88a82a65
AC
1282003-09-08 Andrew Cagney <cagney@redhat.com>
129
130 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
131 CALL_DUMMY_ADDRESS, change to a predicate.
132 * gdbarch.h, gdbarch.c: Re-generate.
133 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
134 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
135 * infcall.c (call_function_by_hand): Ditto.
136 * sparc-tdep.c (sparc_push_return_address): Ditto.
137 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
138 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
139 CALL_DUMMY_ADDRESS with entry_point_address.
140 * v850-tdep.c (v850_push_return_address): Ditto.
141 * s390-tdep.c (s390_push_return_address): Ditto.
142 * rs6000-tdep.c (ppc_push_return_address): Ditto.
143 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
144 * mcore-tdep.c (mcore_push_return_address): Ditto.
145 * cris-tdep.c (cris_push_return_address): Ditto.
146 * arm-tdep.c (arm_push_return_address): Ditto.
147
3e2c4033
AC
1482003-09-08 Andrew Cagney <cagney@redhat.com>
149
150 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
151 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
152 and REG_UNMODIFIED to REG_SAME_VALUE.
153 (execute_cfa_program): Update.
154 (dwarf2_frame_cache): Update. Initialize table to
155 REG_UNSPECIFIED, complain if CFI fails to specify a register's
156 location.
157 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
158
39efb398
AC
1592003-09-08 Andrew Cagney <cagney@redhat.com>
160
161 * gnu-nat.c: Remove "inline" function attribute.
162 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
163
f5cb5aca
KB
1642003-09-08 Kevin Buettner <kevinb@redhat.com>
165
166 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
167 target.
168
1cb761c7
KB
1692003-09-08 Kevin Buettner <kevinb@redhat.com>
170
171 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
172 (frame_extra_info): Rename this struct to frv_unwind_cache.
173 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
174 Add fields ``prev_sp'' and ``base''.
175 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
176 (frv_saved_pc_after_call, frv_init_extra_frame_info)
177 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
178 Delete.
179 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
180 Revise all callers. Fill in the unwind cache argument and make
181 other adjustments to account for new frame mechanisms.
182 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
183 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
184 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
185 (frv_frame_unwind, frv_frame_base): New structs.
186 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
187 additional arguments expected by this method and adjust function
188 body accordingly.
189 (frv_gdbarch_init): Remove calls to the following functions:
190 set_gdbarch_deprecated_init_frame_pc(),
191 set_gdbarch_deprecated_saved_pc_after_call(),
192 set_gdbarch_deprecated_frame_chain(),
193 set_gdbarch_deprecated_frame_saved_pc(),
194 set_gdbarch_deprecated_frame_init_saved_regs(),
195 set_gdbarch_deprecated_push_arguments(),
196 set_gdbarch_deprecated_push_return_address(),
197 set_gdbarch_deprecated_pop_frame(),
198 set_gdbarch_deprecated_call_dummy_words(),
199 set_gdbarch_deprecated_sizeof_call_dummy_words(),
200 set_gdbarch_deprecated_init_extra_frame_info(),
201 set_gdbarch_deprecated_dummy_write_sp(), and
202 set_gdbarch_deprecated_pc_in_call_dummy().
203 Add calls to the following functions:
204 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
205 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
206 frame_base_set_default().
207 * Makefile.in (frv-tdep.o): Update dependencies.
208
68f6cf99
MK
2092003-09-09 Mark Kettenis <kettenis@gnu.org>
210
211 * dwarf2-frame.c (read_encoded_value): Add support for
212 DW_EH_PE_aligned encoding.
213
73b65bb0
DJ
2142003-09-08 Daniel Jacobowitz <drow@mvista.com>
215
216 * infrun.c (normal_stop): Don't print a message if the inferior
217 has exited.
218
7c8a5605
JB
2192003-09-08 Jim Blandy <jimb@redhat.com>
220
221 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
222 * dbxread.c: #include "gdb_assert.h".
223 (read_dbx_symtab): If the objfile has no .data section, use the
224 section index for the .bss section instead.
225
7dd88986
DJ
2262003-09-08 Daniel Jacobowitz <drow@mvista.com>
227
228 * frame.c (deprecated_safe_get_selected_frame): New function.
229 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
230 * findvar.c (read_var_value): Call it.
231
55ff77ac
CV
2322003-09-08 Corinna Vinschen <vinschen@redhat.com>
233
234 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
235 (sh64-tdep.o): Add dependencies.
236 * configure.tgt: Add FIXME to sh-*-linux*.
237 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
238 (sh_gdbarch_init): Always set correct sh_show_regs function
239 pointer. Call sh64_gdbarch_init() if machine type is sh5.
240 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
241 * sh64-tdep.c: New file, containing all sh64 related code from
242 sh-tdep.c.
243 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
244 * config/sh/linux.mt (TDEPFILES): Ditto.
245 * config/sh/nbsd.mt (TDEPFILES): Ditto.
246 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
247 * config/sh/wince.mt (TDEPFILES): Ditto.
248
bfb39158
DJ
2492003-09-07 Daniel Jacobowitz <drow@mvista.com>
250
251 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
252 (stop_wait_callback): Handle !lp->signalled also.
253 (lin_lwp_has_pending, flush_callback): New functions.
254 (lin_lwp_wait): Call flush_callback.
255 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
256 (linux_proc_pending_signals): New function.
257 * linux-nat.h (linux_proc_pending_signals): Add prototype.
258
9407de8e
DJ
2592003-09-07 Daniel Jacobowitz <drow@mvista.com>
260
261 From Nick Kelsey <nickk@ubicom.com>:
262 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
263 when the stop PC is at the beginning of a function also.
264
2ef47cd0
DJ
2652003-09-06 Daniel Jacobowitz <drow@mvista.com>
266
267 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
268 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
269
6f4492c8
MK
2702003-09-06 Mark Kettenis <kettenis@gnu.org>
271
272 * sol-thread.c: Include "gdb_string.h".
273
d3420b2f
MK
2742003-09-03 Mark Kettenis <m.kettenis@osp.nl>
275
276 * gcore.c: Reorder include files in alphabetical order. Include
277 "gdb_assert.h". Various coding style fixes.
278 (derive_stack_segment, derive_heap_segment): Replace check for
279 non-null BOTTOM and TOP with gdb_assert.
280 (derive_heap_segment): Replace check for successful creation of
281 ZERO with gdb_assert.
282 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
283
5220ea4c
AC
2842003-09-04 Andrew Cagney <cagney@redhat.com>
285
286 * thread-db.c (verbose_dlsym): New function.
287 (thread_db_load): Use verbose_dlsym
288 (thread_db_new_objfile): Print that libthread_db was loaded, and
289 that thread debugging was enabled.
290
6e8c2c06
AC
2912003-09-04 Andrew Cagney <cagney@redhat.com>
292
293 * configure.tgt: Add "mips64*-*-*" target. Delete
294 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
295 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
296 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
297 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
298 mips*-sony-*, and mips64*-*-elf* targets.
299 * config/mips/embedl.mt: Delete file.
300 * config/mips/embedl64.mt: Delete file.
301 * config/mips/mips.mt: Delete file.
302 * config/mips/mips64.mt: Delete file.
303 * config/mips/tm-embed.h: Delete file.
304 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
305 * config/mips/embed64.mt: Delete out-of-date comment.
306
3a3bc038
AC
3072003-09-04 Andrew Cagney <cagney@redhat.com>
308
309 * hppa-tdep.c (hppa_gdbarch_init): Set
310 "have_nonsteppable_watchpoint".
311 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
312 * mips-tdep.c (mips_dump_tdep): Do not print
313 HAVE_NONSTEPPABLE_WATCHPOINT.
314 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
315 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
316 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
317 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
318
a957e642
CV
3192003-09-04 Corinna Vinschen <vinschen@redhat.com>
320
321 * breakpoint.c (watchpoint_check): Remove accidentally checked in
322 unused code. Add comment.
323
a6fbcf2f
CV
3242003-09-04 Corinna Vinschen <vinschen@redhat.com>
325
326 * breakpoint.c (watchpoint_check): Check for pc being in an
327 epilogue if watchpoint frame couldn't be found.
328
c14a44d5
AC
3292003-09-04 Andrew Cagney <cagney@redhat.com>
330
331 * Makefile.in: Re-generate all dependencies.
332
f6c40618
AC
3332003-09-03 Andrew Cagney <cagney@redhat.com>
334
335 * arch-utils.h (legacy_print_insn): Delete declaration.
336 * arch-utils.c (legacy_print_insn): Delete function.
337 * disasm.c (deprecated_tm_print_insn_info): Delete.
338 (_initialize_disasm): Delete function, contained code initializing
339 deprecated_tm_print_insn_info.
340 * gdbarch.sh (deprecated_tm_print_insn): Delete.
341 (deprecated_tm_print_insn_info): Delete.
342 (TARGET_PRINT_INSN): Do not provide a default.
343 * gdbarch.h, gdbarch.c: Re-generate.
344
242e8be5
AC
3452003-09-03 Andrew Cagney <cagney@redhat.com>
346
347 * disasm.c (fprintf_disasm): New function.
348 (gdb_disassemble_info): Call "init_disassemble_info", instead of
349 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
350 reverts 2003-08-14 change.
351 (_initialize_disasm): Call "init_disassemble_info", instead of
352 INIT_DISASSEMBLE_INFO_NO_ARCH.
353
3ffc3dda
MS
3542003-09-03 Michael Snyder <msnyder@redhat.com>
355
356 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
357
52d16ba8
AC
3582003-09-03 Andrew Cagney <cagney@redhat.com>
359
360 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
361 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
362 * symfile.c (syms_from_objfile): Update.
363 (reread_symbols): `Update
364 * exec.c (exec_file_attach): Update.
365 (exec_file_attach): Update.
366 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
367 2003-08-29 change.
368 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
369
eb5492fa
DJ
3702003-09-03 Daniel Jacobowitz <drow@mvista.com>
371
372 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
373 trad-frame.h.
374 (arm_get_cache): Delete macro.
375 (struct arm_prologue_cache): Update comments. Make saved_regs into
376 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
377 to prev_sp.
378 (thumb_scan_prologue): Update for cache changes. Don't call
379 DEPRECATED_PC_IN_CALL_DUMMY.
380 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
381 argument and use it in desperation search for our prologue. Do not
382 search past the specified PC.
383 (arm_make_prologue_cache): Simplify.
384
385 (arm_prologue_this_id, arm_prologue_prev_register)
386 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
387 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
388 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
389 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
390 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
391
392 (arm_frame_chain_valid, arm_find_callers_reg)
393 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
394 (arm_pop_frame): Delete obsolete methods.
395 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
396
397 (arm_gdbarch_init): Update for new frame methods. Register prologue
398 and sigtramp unwinders. Set the default frame base method.
399
400 * Makefile.in (arm-tdep.o): Update dependencies.
401 * varobj.c (find_frame_addr_in_frame_chain): Call
402 get_frame_base_address.
403 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
404
24de872b
DJ
4052003-09-03 Daniel Jacobowitz <drow@mvista.com>
406
407 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
408 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
409 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
410 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
411 Take NEXT_FRAME and CACHE arguments. Call
412 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
413 Set unwound_pc in CACHE instead of modifying the frame argument.
414 Don't bother checking the frame type when looking for sigtramp
415 frames.
416 (arm_make_prologue_cache, arm_frame_chain)
417 (arm_init_extra_frame_info): New functions.
418
9b8d791a
DJ
4192003-09-03 Daniel Jacobowitz <drow@mvista.com>
420
421 * arm-tdep.c (arm_get_cache): Define.
422 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
423 unwound_sp, unwound_pc, and saved_regs.
424 (thumb_scan_prologue): Take a cache instead of the frame.
425 (arm_scan_prologue): Likewise.
426 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
427 instead of a temporary frame.
428 (arm_init_extra_frame_info): Allocate and use a cache.
429 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
430
7ee3275f
AC
4312003-09-03 Andrew Cagney <cagney@redhat.com>
432
433 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
434 * config/mips/wince.mt (TM_CLIBS): Ditto.
435 * config/sh/wince.mt (TM_CLIBS): Ditto.
436 * config/pa/hppa64.mt (TM_CLIBS): Delete.
437 * config/sparc/sp64.mt (CC): Delete.
438
57b29be7
AC
4392003-09-03 Andrew Cagney <cagney@redhat.com>
440
441 * defs.h: Do not include "arch-utils.h".
442 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
443 GDB_MULTI_ARCH_PURE.
444 * configure.in (GDB_MULTI_ARCH): Do not define.
445 * configure, config.in: Regenerate.
446 * configure.tgt: Do not set variable "gdb_multi_arch".
447 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
448 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
449 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
450 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
451 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
452 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
453 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
454 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
455 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
456 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
457 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
458 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
459 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
460 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
461 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
462 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
463 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
464 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
465
12e035e2
MC
4662003-08-30 Michael Chastain <mec@shout.net>
467
468 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
469 * config/m68k/nm-hp300hpux.h: Delete.
470 * config/m68k/tm-hp300hpux.h: Delete.
471 * config/m68k/xm-hp300hpux.h: Delete.
472 * config/m68k/xm-hp300bsd.h: Delete.
473 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
474 tm-hp300hpux.h, xm-hp300hpux.h.
475 * somsolib.c: Remove comment about hp300 shared libraries.
476
bda34dc2
MK
4772003-08-31 Mark Kettenis <kettenis@gnu.org>
478
5bca7895
MK
479 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
480 Only define PTRACE_GET_THREAD_AREA is not already defined.
481 Various style fixes in code and comments and some additional
482 spelling fixes in comments. Move after functions dealing with
483 debug registers.
484 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
485 Fix coding-style.
486
bda34dc2
MK
487 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
488 frame_unwind_register_unsigned instead of
489 frame_unwind_unsigned_register.
490
c890192f
MK
4912003-08-30 Mark Kettenis <kettenis@gnu.org>
492
493 * configure.in: Search for gethostbyname in libnsl.
494 * configure: Regenerated.
495
60fac5b8
MK
4962003-08-29 Mark Kettenis <kettenis@gnu.org>
497
e294916c
MK
498 * configure.in: Remove redundant AC_MSG_RESULT in check for
499 uintptr_t in stdint.h.
500 * configure: Regenerated.
501
c40d267a
MK
502 * amd64-nat.h (struct regcache): Add opaque declaration.
503
60fac5b8
MK
504 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
505 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
506 Change "register array" to "register cache" in comments.
507 (x86_64_linux_gregset64_reg_offset): New variable.
508 (GETREGS_SUPPLIES): Remove macro.
509 (supply_gregset): Call amd64_supply_native_gregset instead of
510 x86_64_linux_supply_gregset.
511 (fill_gregset): Rename `regno' to `regnum'. Call
512 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
513 (store_regs): Rename `regno' to `regnum'.
514 (store_fpregs): Rename `regno' to `regnum'.
515 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
516 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
517 Reorganize function a bit.
518 (store_inferior_registers): Rename `regno' to `regnum'. Use
519 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
520 Reorganize function a bit.
521 (_initialize_x86_64_linux_nat): New function.
522 * config/i386/x86-64linux.mh.
523
546143b6
AC
5242003-08-29 Andrew Cagney <cagney@redhat.com>
525
526 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
527 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
528 (target_remove_watchpoint): Delete macro.
529 (target_insert_watchpoint): Delete macro.
530 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
531 (remote_mips_stopped_by_watchpoint): Delete declaration.
532 (remote_mips_remove_watchpoint): Delete declaration.
533 (remote_mips_set_watchpoint): Delete declaration.
534 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
535 * remote-mips.c (_initialize_remote_mips): Set
536 "to_insert_watchpoint", "to_stopped_by_watchpoint",
537 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
538 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
539 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
540 (mips_stopped_by_watchpoint): Rename
541 remote_mips_stopped_by_watchpoint.
542 (mips_can_hardware_watchpoint): Rename
543 remote_mips_can_use_hardware_watchpoint, update function
544 signature.
545
7bace51b
MK
5462003-08-29 Mark Kettenis <kettenis@gnu.org>
547
b0f5c6f2
MK
548 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
549 USER_DS. We haven't given them a register number yet.
550
2a6d284d
MK
551 * amd64-nat.h: New file.
552 * amd64-nat.c: New file.
553 * amd64fbsd-nat.c: Include "amd64-nat.h".
554 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
555 (amd64fbsd32_r_reg_offset): New variable.
556 (supply_gregset): Simply call amd64_supply_native_gregset.
557 (fill_gregset): Rename `regno' to `regnum'. Simply call
558 amd64_collect_native_gregset.
559 (fill_fpregset): Rename `regno' to `regnum'.
560 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
561 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
562 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
563 `fpregset_t'. Call amd64_supply_native_gregset instead of
564 supply_gregset. Call x86_64_supply_fxsave instead of
565 supply_fpregset.
566 (store_inferior_registers): Rename `regno' to `regnum'. Replace
567 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
568 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
569 `fpregset_t'. Call amd64_collect_native_gregset instead of
570 fill_gregset. Call x86_64_collect_fxsave instead of
571 fill_fpregset.
572 (_initialize_am64fbsd_nat): Initialize
573 amd64_native_gregset32_reg_offset and
574 amd64_native_gregset64_reg_offset.
575 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
576
a16d75cc
MK
577 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
578 null pointer. Fix typo in comment.
579
7bace51b
MK
580 * regcache.c (supply_register): Reimplement to call
581 regcache_raw_supply.
582 (regcache_collect): Reimplement by calling regcache_raw_collect.
583
9a661b68
MK
5842003-08-28 Mark Kettenis <kettenis@gnu.org>
585
586 * regcache.c (register_buffer): Consitify first argument.
587 (regcache_raw_supply, regcache_raw_collect): New
588 functions.
589
e94cc8fa
DJ
5902003-08-28 Daniel Jacobowitz <drow@mvista.com>
591
592 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
593 by Nathan J. Williams.
594
c64bd0ce
DJ
5952003-08-28 Daniel Jacobowitz <drow@mvista.com>
596
597 * lin-lwp.c (wait_lwp): New function, copied from
598 stop_wait_callback. Clean up.
599 (stop_wait_callback): Use wait_lwp.
600
e5ab0dce
AC
6012003-08-28 Andrew Cagney <cagney@redhat.com>
602
603 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
604 flavour and disassembler options.
605 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
606 (mips_gdbarch_init): Set "print_insn". Delete initialization of
607 deprecated_tm_print_insn_info.
608
a788de9b
AC
6092003-08-27 Andrew Cagney <cagney@redhat.com>
610
611 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
612 Use target_read_memory.
613 (s390_get_frame_info): Update. Do not reference
614 deprecated_tm_print_insn_info.
615 (s390_check_function_end, s390_is_sigreturn): Ditto.
616
36482093
AC
6172003-08-27 Andrew Cagney <cagney@redhat.com>
618
619 * Makefile.in (cris-tdep.o): Update dependencies.
620 * cris-tdep.c: Include "gdb_assert.h".
621 (cris_gdbarch_init): Set print_insn.
622 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
623 (cris_delayed_get_disassembler): Simplify, directly call the
624 disassembler returned by cris_get_disassembler.
625 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
626 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
627 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
628 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
629 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
630 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
631 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
632 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
633 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
634 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
635 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
636 (gdb_print_insn_sparc): Delete function.
637 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
638 deprecated_tm_print_insn_info.
639 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
640 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
641 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
643 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
644 * s390-tdep.c (gdb_print_insn_s390): Delete function.
645 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
646 (s390_gdbarch_init): Set print_insn.
647
0285512f
AC
6482003-08-27 Andrew Cagney <cagney@redhat.com>
649
650 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
651 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
652 * infcall.c (call_function_by_hand): Convert the entry point
653 address into a code address.
654
cdcd5552
AC
6552003-08-27 Andrew Cagney <cagney@redhat.com>
656
657 * dsrec.c: Include "gdb_string.h".
658 * Makefile.in (dsrec.o): Update dependencies.
659
e85cddad
MC
6602003-08-27 Michael Chastain <mec@shout.net>
661
662 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
663
8bbfbb23
AC
6642003-08-27 Andrew Cagney <cagney@redhat.com>
665
666 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
667 (alpha_osf1_init_abi): Do not set call_dummy_address.
668
ba058b66
DC
6692003-08-27 David Carlton <carlton@kealia.com>
670
671 From Randolph Chung <tausq@debian.org>:
672 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
673 compiles with -Wformat-nonliteral -Werror.
674
87f84c9d
JB
6752003-08-26 Jim Blandy <jimb@redhat.com>
676
677 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
678 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
679 bfd_lookup_symbol, since we only want symbols in code sections.
680 (look_for_base): Pass zero as the SECT_FLAGS argument to
681 bfd_lookup_symbol, since we're not concerned about which section
682 the symbol is in.
683
102d615a
JJ
6842003-08-26 Jeff Johnston <jjohnstn@redhat.com>
685
686 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
687 we are frameless or the return address register is already known.
688
cc7ad3ea
AC
6892003-08-26 Andrew Cagney <cagney@redhat.com>
690
691 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
692 in size. Add comments.
693
af8b88dd
JJ
6942003-08-26 Jeff Johnston <jjohnstn@redhat.com>
695
696 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
697 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
698
e0a4f5a1
JM
6992003-08-26 Jason Merrill <jason@redhat.com>
700
701 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
702 case out of #ifdef MIPS block.
703
4ae9ee8e
DJ
7042003-08-25 Daniel Jacobowitz <drow@mvista.com>
705
706 PR java/1322
707 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
708 available before calling SECT_OFF_TEXT.
3c164570 709 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 710
004d836a
JJ
7112003-08-25 Jeff Johnston <jjohnstn@redhat.com>
712
713 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
714 bof, and nat0-nat127 as pseudo-registers.
715 (ia64_frame_cache): New struct used to cache frame info.
716 (ia64_register_reggroup_p): New routine used to override default
717 register grouping so registers without names are still saved and
718 restored.
719 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
720 pseudo values.
721 (ia64_pseudo_register_read): New routine to read pseudo-registers.
722 (ia64_pseudo_register_write): New routine to write pseudo-registers.
723 (ia64_alloc_frame_cache): New routine to create a new
724 ia64_frame_cache.
725 (examine_prologue): Change prototype to add next_frame pointer.
726 Assume frameless until otherwise proven. Verify that the cfm for
727 current frame matches the cfm that should occur for the prologues
728 alloc insn and if equal, mark as not frameless. At end of routine,
729 if not frameless, calculate registers for the previous frame and store
730 in the cache, if a cache is provided.
731 (ia64_skip_prologue): Use new prototype when calling examine_prologue
732 and pass 0 for next_frame.
733 (ia64_store_return_value): Change to use convert_typed_floating()
734 instead of calling ia64_convert_to_raw().
735 (ia64_extract_return_value): Change to use convert_typed_floating()
736 instead of calling ia64_convert_to_virtual().
737 (ia64_frame_cache): New routine to support new frame model.
738 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
739 (ia64_frame_sniffer): Ditto.
740 (ia64_sigtramp_frame_init_saved_regs): Ditto.
741 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
742 (ia64_sigtramp_frame_prev_register): Ditto.
743 (ia64_sigtramp_frame_sniffer): Ditto.
744 (ia64_frame_base_address): Ditto.
745 (ia64_extract_struct_value_address): Change to issue error message.
746 (ia64_frame_align): New routine to align sp.
747 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
748 (ia64_push_arguments): Removed. Logic moved to
749 ia64_push_dummy_call().
750 (ia64_push_return_address): Ditto.
751 (ia64_unwind_dummy_id): New function.
752 (ia64_unwind_pc): Ditto.
753 (ia64_convert_register_p): Ditto.
754 (ia64_register_to_value): Ditto.
755 (ia64_value_to_register): Ditto.
756 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
757 (ia64_register_byte, ia64_register_raw_size): Ditto.
758 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
759 (ia64_saved_pc_after_call): Ditto.
760 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
761 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
762 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
763 (ia64_register_convert_to_raw): Ditto.
764 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
765 (ia64_init_extra_frame_info): Ditto.
766 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
767 (ia64_gdbarch_init): Remove registering of deprecated functions that
768 are no longer used. Add registration of new gdbarch functions.
769 Remove registering deprecated_write_sp. Replace
770 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
771 Delete set_gdbarch_deprecated_register_convertible(),
772 set_gdbarch_deprecated_register_convert_to_virtual(), and
773 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
774 set_gdbarch_deprecated_register_size(),
775 set_gdbarch_deprecated_register_bytes(),
776 set_gdbarch_pcregnum(),
777 set_gdbarch_deprecated_register_byte(),
778 set_gdbarch_deprecated_register_raw_size(),
779 set_gdbarch_deprecated_max_register_raw_size(),
780 set_gdbarch_deprecated_register_virtual_size(),
781 and set_gdbarch_deprecated_max_register_virtual_size() calls.
782 Replace set_gdbarch_deprecated_extract_return_value() with
783 set_gdbarch_extract_return_value(). Remove calls to:
784 set_gdbarch_deprecated_saved_pc_after_call();
785 set_gdbarch_deprecated_frame_chain(),
786 set_gdbarch_deprecated_frame_saved_pc(),
787 set_gdbarch_deprecated_frame_init_saved_regs(),
788 set_gdbarch_deprecated_get_saved_register(),
789 set_gdbarch_deprecated_call_dummy_words(),
790 set_gdbarch_deprecated_sizeof_call_dummy_words(),
791 set_gdbarch_deprecated_init_extra_frame_info(),
792 set_gdbarch_deprecated_frame_args_address(),
793 set_gdbarch_deprecated_frame_locals_address(),
794 and set_gdbarch_deprecated_dummy_write_sp().
795 Add set_gdbarch_convert_register_p(),
796 set_gdbarch_register_to_value(),
797 set_gdbarch_value_to_register(),
798 set_gdbarch_push_dummy_call(),
799 set_gdbarch_frame_align(),
800 set_gdbarch_unwind_dummy_id(),
801 set_gdbarch_unwind_pc(),
802 frame_unwind_append_sniffer(),
803 frame_unwind_append_sniffer(),
804 and frame_base_set_default().
805
aede7613
CD
8062003-08-25 Chris Demetriou <cgd@broadcom.com>
807
808 * configure.tgt: Document need for special "mipsisa64" handling.
809 (mipsisa64*-*-linux64): Handle as target linux64.
810 (mipsisa64*-*-*): Handle as target embed64.
811
43c3a82e
MC
8122003-08-18 Michael Chastain <mec@shout.net>
813
814 * PROBLEMS: Document pr gdb/1322, the Java anonymous
815 objfile bug.
816
6564f77d
MK
8172003-08-24 Mark Kettenis <kettenis@gnu.org>
818
2de139ba
MK
819 * i387-tdep.h: Update copyright date.
820 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
821
6564f77d
MK
822 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
823 CFLAGS games to reflect reality.
824
42cf1509
AC
8252003-08-24 Andrew Cagney <cagney@redhat.com>
826
827 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
828 GDB_MULTI_ARCH is always non-zero.
829 * osabi.c (_initialize_gdb_osabi): Ditto.
830 (gdbarch_init_osabi): Ditto.
831 * sparc-tdep.c: Ditto for #if code.
832
0485f6ad
MK
8332003-08-23 Mark Kettenis <kettenis@gnu.org>
834
835 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
836 Update comments.
837 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
838 comments.
839 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
840 x86_64_supply_fxsave.
841 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
842 x86_64_supply_fxsave.
843 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
844 x86_64_supply_fxsave.
845
c7716133
AJ
8462003-08-23 Andreas Jaeger <aj@suse.de>
847
848 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
849 i387_supply_fxsave.
850
ed504bdf
MK
8512003-08-23 Mark Kettenis <kettenis@gnu.org>
852
853 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
854 i387_supply_register.
855 (go32_fetch_registers): Adjust call to i387_supply_fsave.
856 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
857 i387_supply_fsave.
858 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
859 i387_supply_fxsave.
860 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
861 i387_supply_fsave.
862 * i386bsd-nat.c (supply_fpregset): Adjust call to
863 i387_supply_fsave.
864 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
865 call to i387_supply_fxsave. Call i387_supply_fsave instead of
866 supply_fpregset.
867 (store_inferior_registers): Remove extraneous whitespace. Call
868 i387_fill_fsave instead of fill_fpregset.
869 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
870 (supply_fpregset): Likewise.
871 * i386v4-nat.c (supply_fpregset): Adjust call to
872 i387_supply_fsave.
873 * i386-interix-nat.c (supply_fpregset): Adjust call to
874 i387_supply_fsave.
875 * i386-linux-nat.c (supply_fpregset): Adjust call to
876 i387_supply_fsave.
877 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
878 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
879 i387supply_fsave and i387_supply_fxsave.
880 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
881 Incorporate code from `i387_supply_register.
882 (i387_supply_register): Remove.
883 (i387_supply_fxsave): Add `regnum' argument.
884 Update comments.
885 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
886 prototype.
887 (i387_supply_register): remove prototype.
888 Update comments.
889
4be5d520
MC
8902003-08-22 Michael Chastain <mec@shout.net>
891
892 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
893 Add lines for files in gdb/testsuite/gdb.cp/* that are
894 still not 8.3 unique.
895
7ed85d26
DJ
8962003-08-22 Daniel Jacobowitz <drow@mvista.com>
897
898 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
899 TYPE_VPTR_FIELDNO is valid.
900
eb0d3137
MK
9012003-08-19 Mark Kettenis <kettenis@gnu.org>
902
903 * utils.c (set_width_command): Remove prototypes.
904 (set_screen_size): New prototype.
905 (init_page_info): Simplify by fetching the screen size from
906 Readline. Call set_screen_size.
907 (set_screen_size): New function.
908 (set_width): Add missing whitespace in comment.
909 (set_width_command): Call set_screen_size.
910 (set_height_command): New function.
911 (initialize_utils): Fix formatting. Make "set height" command
912 call set_height_command. Remove redundant code that turns off
913 pagination if output isn't a terminal. Remove redundant call to
914 set_width_command.
915
7e6d0ac8
MK
9162003-08-22 Mark Kettenis <kettenis@gnu.org>
917
3567a8ea
MK
918 * sparc64-tdep.h (sparc64_regnum): Fix comment.
919 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
920 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
921 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
922 `case' keyword.
923 (sparc64_register_info): Give the reister with number
924 SPARC64_STATE_REGNUM a name.
925 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
926 %asi and %ccr.
927 (sparc64_push_dummy_call): Take BIAS into account when checking
928 stcak alignment.
929 (sparc_software_single_step): Remove assertions that check whether
930 NPC and NNPC were zero.
931 (sparc_supply_rwindow): Make public. Merge functionality with
932 sparc64_supply_rwindow.
933 (sparc_fill_rwindow): Make public. Merge functionality with
934 sparc64_fill_rwindow.
935 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
936 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
937 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
938 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
939 sparc_supply_rwindow instead of sparc64_supply_rwindow.
940
7e6d0ac8
MK
941 * reggroups.c: Add whitespace after declarations of local
942 variables in functions.
943
72e5f484
MC
9442003-08-21 Michael Chastain <mec@shout.net>
945
946 * gdbtypes.h: Change array bound type from an int to enum.
947
435ac228
AC
9482003-08-21 Andrew Cagney <cagney@redhat.com>
949
950 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
951 * config/sparc/tm-sparc.h: Ditto.
952 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
953 unconditionally.
954 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
955
0d0e1a63
MK
9562003-07-13 Mark Kettenis <kettenis@gnu.org>
957
958 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
959 (register_objfile_data, set_objfile_data, objfile_data): New
960 prototypes.
961 * objfiles.c (objfile_alloc_data, objfile_free_data): New
962 prototypes.
963 (allocate_objfile): Call objfile_alloc_data.
964 (free_objfile): Call objfile_free_data.
965 (struct objfile_data): New.
966 (struct objfile_data_registration): New.
967 (struct objfile_data_registry): New.
968 (objfile_data_registry): New variable.
969 (register_objfile_data): New function.
970 (objfile_alloc_data, objfile_free_data): New functions.
971 (set_objfile_data, objfile_data): New functions.
972 * dwarf2-frame.c (dwarf2_frame_data): New variable.
973 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
974 (_initialize_dwarf2_frame): New function and prototype.
975
d90cf509
AC
9762003-08-21 Andrew Cagney <cagney@redhat.com>
977
978 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
979 a specific architecture.
980 * arch-utils.h (set_architecture_from_arch_mach): Delete
981 declaration.
982 (target_architecture_hook): Delete declaration.
983 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
984 (default_float_format): Assume GDB_MULTI_ARCH.
985 (default_double_format): Assume GDB_MULTI_ARCH.
986 (set_endian_from_file): Delete function.
987 (arch_ok): Delete function.
988 (set_arch): Delete function.
989 (set_architecture_from_arch_mach): Delete function.
990 (set_architecture_from_file): Delete function.
991 (set_architecture): Assume GDB_MULTI_ARCH.
992 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
993
8b39fe56
MK
9942003-08-21 Mark Kettenis <kettenis@gnu.org>
995
996 Rewrite FreeBSD/sparc64 native configuration.
997 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
998 * sparc64fbsd-nat.c: New file.
999 * sparc64fbsd-tdep.c: New file.
1000 * sparc64-tdep.c sparc64-tdep.h: New files.
1001 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1002 sparc64fbsd-tdep.o): New dependencies.
1003 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1004 and sparc64fbsd-tdep.c.
1005 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1006 * config/sparc/fbsd.mh: Remove copyright notice.
1007 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1008 sparcbsd-nat.o.
1009 * config/sparc/fbsd.mt: Remove copyright notice.
1010 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1011 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1012 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1013 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1014 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1015 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1016 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1017 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1018 "sparc/tm-sp64.h".
1019 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1020 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1021
a7f19c79
MC
10222003-08-21 Michael Chastain <mec@shout.net>
1023
1024 * symtab.h: Add doco on the space critical structures and
1025 some measurements of space usage.
1026
da08ea5b
MS
10272003-08-21 Michael Snyder <msnyder@redhat.com>
1028
1029 * tracepoint.c (trace_dump_command): Trace break address
1030 is subject to DECR_PC_AFTER_BREAK.
1031 (set_traceframe_context): Make "trace_line" an int.
1032 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1033
6df2bf50
MS
10342003-08-20 Michael Snyder <msnyder@redhat.com>
1035
1036 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1037 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1038 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1039 argument passing.
1040 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1041 functions, replace sh_push_dummy_call.
1042 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1043
0955bbf0
MC
10442003-08-20 Michael Chastain <mec@shout.net>
1045
1046 * gdbtypes.h (struct main_type): Rearrange to save space.
1047
260a4188
MS
10482003-08-20 Michael Snyder <msnyder@redhat.com>
1049
1050 * trad-frame.c: Comment typo fix.
1051
8baa6f92
KB
10522003-08-20 Michael Snyder <msnyder@redhat.com>
1053 Kevin Buettner <kevinb@redhat.com>
1054
1055 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1056 (frv_frame_init_saved_regs): Add declaration.
1057 (frame_extra_info): Add new field ``saved_regs''.
1058 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1059 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1060 Update frame related code.
1061 (frv_extract_struct_value_address): Adjust formatting.
1062 * Makefile.in (frv-tdep.o): Update dependencies.
1063 * config/frv/tm-frv.h (target_insert_watchpoint)
1064 (target_remove_watchpoint, target_insert_hw_breakpoint)
1065 (target_remove_hw_breakpoint): Delete these macros.
1066 (remote_insert_watchpoint, remote_remove_watchpoint)
1067 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1068 these declarations.
1069
87193939
MC
10702003-08-20 Michael Chastain <mec@shout.net>
1071
1072 * defs.h (ENUM_BITFIELD): New macro.
1073 * symtab.h (ENUM_BITFIELD): Use it.
1074 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1075
062103ba
SA
10762003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1077
1078 * MAINTAINERS (write after approval): Add myself.
1079
8b148df9
AC
10802003-08-18 Andrew Cagney <cagney@redhat.com>
1081
1082 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1083 * gdbarch.h, gdbarch.c: Re-generate.
1084 * infcall.c (call_function_by_hand): Adjust the SP by
1085 frame_red_zone_size before allocating any stack space.
1086 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1087 * x86-64-tdep.c (x86_64_frame_align): New function.
1088 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1089
1090 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1091 Remove code adjusting SP so that it skips over the Red Zone.
1092
954a4db8
MK
10932003-08-18 Mark Kettenis <kettenis@gnu.org>
1094
1095 * NEWS (New native configurations): Mention FreeBSD/amd64.
1096
1a241548
AC
10972003-08-18 Andrew Cagney <cagney@redhat.com>
1098
1099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1100 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1101 "m68k_frame_p".
1102 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1103
f82b2acd
MK
11042003-08-18 Mark Kettenis <kettenis@gnu.org>
1105
1106 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1107
4056d258
ML
11082003-08-18 Michal Ludvig <mludvig@suse.cz>
1109
1110 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1111 Define.
1112 * i386-linux-nat.c: Include "linux-nat.h".
1113 (child_post_startup_inferior): New function.
1114
99ab4326
MK
11152003-08-18 Mark Kettenis <kettenis@gnu.org>
1116
1117 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1118 at the start of a frameless function. This probably fixes PR
1119 backtrace/1338.
1120
c8d5f0d6
MC
11212003-08-17 Michael Chastain <mec@shout.net>
1122
1123 * symfile.c (find_sym_fns): Remove special case for apollo target.
1124
9016a515
DJ
11252003-08-17 Daniel Jacobowitz <drow@mvista.com>
1126
1127 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1128 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1129 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1130 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1131 (linux_supports_tracevforkdone): New function.
1132 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1133 TRACEVFORKDONE.
1134 (child_follow_fork): Handle vfork.
1135 (linux_handle_extended_wait): Likewise. Also handle exec.
1136 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1137 * NEWS: Mention fork tracing.
1138
c538c11c
DJ
11392003-08-17 Daniel Jacobowitz <drow@mvista.com>
1140
1141 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1142
4de4c07c
DJ
11432003-08-17 Daniel Jacobowitz <drow@mvista.com>
1144
1145 * Makefile.in (i386-linux-nat.o): Update dependencies.
1146 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1147 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1148 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1149 * i386-linux-nat.c: Include "linux-nat.h".
1150 (child_post_startup_inferior): New function.
1151 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1152 * infptrace.c (kill_inferior): Wrap in #ifdef.
1153 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1154 attaching to each LWP.
1155 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1156 (init_lin_lwp_ops): Fill in some more operations.
1157 * linux-nat.h (linux_enable_event_reporting)
1158 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1159 prototypes.
1160 * linux-nat.c (linux_enable_event_reporting): New function.
1161 (child_post_attach, linux_child_post_startup_inferior)
1162 (child_post_startup_inferior, child_follow_fork)
1163 (linux_handle_extended_wait, kill_inferior): New functions.
1164
7996bcec
AC
11652003-08-16 Andrew Cagney <cagney@redhat.com>
1166
1167 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1168 * gdbarch.h, gdbarch.c: Re-generate.
1169
3d48a7a0
MK
11702003-08-16 Mark Kettenis <kettenis@gnu.org>
1171
1172 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1173
7989c619
AC
11742003-08-16 Andrew Cagney <cagney@redhat.com>
1175
1176 * NEWS: Mention that "set prompt-escape-char" was deleted.
1177 * top.c (get_prompt_1): Delete function.
1178 (gdb_prompt_escape):
1179 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1180 prompt-escape-char" command.
1181 (MAX_PROMPT_SIZE): Delete macro.
1182 (get_prompt): Simplify, do not call get_prompt_1.
1183
07978cd8
AC
11842003-08-16 Andrew Cagney <cagney@redhat.com>
1185
1186 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1187 -Werror. -Wformat-nonliteral problems.
1188
3ff7cf9e
JB
11892003-08-15 J. Brobecker <brobecker@gnat.com>
1190
1191 Further multiarching work mostly for hppa64-*-hpux11:
1192 * hppa-tdep.h: New file.
1193 * hppa-tdep.c: #include hppa-tdep.c.
1194 (hppa32_num_regs): Renamed from hppa_num_regs.
1195 (hppa64_num_regs): New constant.
1196 (hppa64_call_dummy_breakpoint_offset): New constant.
1197 (hppa32_call_dummy_length): New constant.
1198 (hppa64_call_dummy_length): New constant.
1199 (hppa32_stack_align): Make name 32bit explicit.
1200 (hppa32_register_virtual_type): Likewise.
1201 (hppa32_extract_return_value): Likewise.
1202 (hppa32_use_struct_convention): Likewise.
1203 (hppa32_store_return_value): Likewise.
1204 (hppa64_register_virtual_type): New function.
1205 (hppa64_extract_return_value): New function.
1206 (hppa64_use_struct_convention): New function.
1207 (hppa64_store_return_value): New function.
1208 (hppa_frame_locals_address): Remove declaration, function does
1209 not exist anymore.
1210 (hppa_register_byte): Add support for PA64 ABI.
1211 (hppa_gdbarch_init): Add support for PA64 ABI.
1212 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1213 Make name 32bit explicit.
1214 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1215 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1216 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1217 (hppa64_hpux_frame_base_before_sigtramp): New function.
1218 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1219 * config/pa/tm-hppa64.h: Remove macros that are no longer
1220 necessary now that the gdbarch vector is properly setup.
1221 Transform some macros into function calls. Some minor cleanup.
1222 * config/pa/tm-hppah.h: Update function calls in macros
1223 following the function renaming in hppa-hpux-tdep.c.
1224 * Makefile.in (hppa_tdep_h): New variable.
1225 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1226
5d05ca6d
MS
12272003-08-14 Michael Snyder <msnyder@redhat.com>
1228
1229 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1230
37ba2569
JB
12312003-08-13 J. Brobecker <brobecker@gnat.com>
1232
1233 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1234 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1235 routine.
1236
aed7f26a
MS
12372003-08-13 Michael Snyder <msnyder@redhat.com>
1238
1239 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1240 (frv_saved_pc_after_call): Use deprecated ftype.
1241 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1242 (frv_remote_translate_xfer_address): Remove.
1243 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1244
752d4ac1
JB
12452003-08-13 J. Brobecker <brobecker@gnat.com>
1246
1247 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1248 initialization after the common gdbarch initialization, not before.
1249
1426ac1d
JB
12502003-08-13 J. Brobecker <brobecker@gnat.com>
1251
1252 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1253 (ADDR_BITS_REMOVE): Remove, redundant.
1254
b6fbdd1d
JB
12552003-08-13 J. Brobecker <brobecker@gnat.com>
1256
1257 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1258 gdbarch method to clear the 2 low bits of text addresses.
1259
44160db3
AC
12602003-08-12 Andrew Cagney <cagney@redhat.com>
1261
1262 * Makefile.in (dsrec.o): Update dependencies.
1263 * dsrec.c: Include "gdb_assert.h".
1264 (make_srec): Use snprintf instead of sprintf, use a literal format
1265 string.
1266
bcf7d3ca
AC
12672003-08-12 Andrew Cagney <cagney@redhat.com>
1268
1269 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1270 FRAME_OBSTACK_ZALLOC.
1271
49ed40de
KB
12722003-08-12 Kevin Buettner <kevinb@redhat.com>
1273
1274 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1275 SSE registers.
1276
b246147c
MK
12772003-08-10 Mark Kettenis <kettenis@gnu.org>
1278
1279 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1280 amd64fbsd_sc_reg_offset): Add extern declarations.
1281 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1282 declarations.
1283
d95fdc0d
BE
12842003-08-11 Ben Elliston <bje@wasabisystems.com>
1285
1286 * MAINTAINERS (write after approval): Update my mail address.
1287
cf6a0e73
AC
12882003-08-10 Andrew Cagney <cagney@redhat.com>
1289
1290 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1291
f837910f
MK
12922003-08-10 Mark Kettenis <kettenis@gnu.org>
1293
e2dbbd2d
MK
1294 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1295 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1296 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1297 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1298 i386bsd_sc_reg_offset): Add extern declarations.
1299 * i386obsd-nat.c: Include "i386-tdep.h"
1300 (_initialize_i386obsd_nat): Remove extern declarations.
1301 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1302 declarations.
1303 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1304 declarations.
1305
f837910f
MK
1306 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1307 instead of frame_read_register.
1308 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1309 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1310 SP_REGNUM.
1311 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1312 instead of frame_unwind_unsigned_register. Use
1313 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1314 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1315 instead of read_register. Use builtin_type_void_data_ptr instead
1316 of builtin_type_void_func_ptr when extracting the address of the
1317 jmp_buf.
1318 (i386_extract_return_value, i386_store_return_value,
1319 i386_pseudo_register_read, i386_pseudo_register_write): Use
1320 register_size instead REGISTER_RAW_SIZE.
1321
edcf254d
AC
13222003-08-10 Andrew Cagney <cagney@redhat.com>
1323
1324 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1325 sprintf. Make "name" constant.
1326
26604a34
MK
13272003-08-10 Mark Kettenis <kettenis@gnu.org>
1328
192285c6
MK
1329 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1330 instead of frame_read_register.
f837910f
MK
1331 (i387_print_float_info): Use get_frame_register and
1332 get_frame_register_unsigned instead of frame_register_read.
192285c6 1333
f0925262
MK
1334 * i386fbsd-nat.c: Include "i386-tdep.h".
1335 (child_resume): Make `eflags' an ULONGEST. Use
1336 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1337 instead of register_read and register_write.
1338
a144416f
MK
1339 * i386bsd-nat.c (fetch_inferior_registers,
1340 store_inferior_registers): Don't use && at the end of a line.
1341 (_initialize_i386bsd_nat): Fix typo.
1342
fec74868
MK
1343 * frame.c (_initialize_frame): Add missing backslash.
1344
87232496
MK
1345 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1346 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1347 and supply_register instead of manipulating the register buffer
1348 directly.
1349
c9b9de0b
MK
1350 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1351 * config/i386/nm-i386sol2.h
1352 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1353
26604a34
MK
1354 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1355 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1356 instructions that GCC likes to mingle into the prologue. Fixes
1357 gdb/1253 and gdb/1255.
1358
25d29d70
AC
13592003-08-09 Andrew Cagney <cagney@redhat.com>
1360
1361 Fix GDB PR cli/926.
1362 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1363 * command.h (add_setshow_uinteger_cmd): Declare.
1364 * frame.c (set_backtrace_cmd): New function.
1365 (show_backtrace_cmd): New function.
1366 * frame.c (_initialize_frame): Replace "set/show
1367 backtrace-below-main" with "set/show backtrace past-main". Add
1368 command "set/show backtrace limit".
1369 (backtrace_past_main): Rename "backtrace_below_main".
1370 (backtrace_limit): New variable.
1371 (get_prev_frame): Update. Check the backtrace_limit.
1372
9ebf4acf
AC
13732003-08-09 Andrew Cagney <cagney@redhat.com>
1374
1375 * defs.h (xstrprintf): Declare.
1376 * utils.c (xstrprintf): New function.
1377 * breakpoint.c (insert_breakpoints): Replace sprintf and
1378 non-literal format strings, with xstrprintf and cleanups.
1379 (delete_breakpoint,breakpoint_re_set): Ditto.
1380 (commands_command, insert_breakpoints): Ditto.
1381 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1382 (break_at_finish_command_1): Ditto.
1383
3771659b
AC
13842003-08-09 Andrew Cagney <cagney@redhat.com>
1385
1386 * MAINTAINERS (language support): List Adam Fedor as Objective C
1387 maintainer.
1388
b4263afa
JB
13892003-08-08 J. Brobecker <brobecker@gnat.com>
1390
1391 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1392 are now multiarched.
1393
d84defb1
JB
13942003-08-08 J. Brobecker <brobecker@gnat.com>
1395
1396 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1397 longer necessary now that hppa64 is partially multiarch'ed.
1398
f786f615
AC
13992003-08-08 Andrew Cagney <cagney@redhat.com>
1400
1401 * interps.c (interp_set): Check for a NULL "old_interp".
1402
c938e9b0
L
14032003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1404
1405 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1406 (install-only): Support DESTDIR.
1407 (uninstall): Likewise.
1408 (install-gdbtk): Likewise.
1409
9a146a11
EZ
14102003-08-08 Elena Zannoni <ezannoni@redhat.com>
1411
1412 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1413 contains something meaningful at all times.
1414
1415Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 1416
62599e99 1417 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 1418
56296155
BC
1419Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1420
62599e99 1421 * MAINTAINERS (write after approval): Added self.
56296155 1422
9710e734
AC
14232003-08-07 Andrew Cagney <cagney@redhat.com>
1424
1425 * inferior.h (AT_SYMBOL): Define.
1426 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1427 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1428 * mips-tdep.c (mips_call_dummy_address): Delete function.
1429 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1430 set call_dummy_address.
1431
98b3ab73
AC
14322003-08-07 Andrew Cagney <cagney@redhat.com>
1433
1434 * language.c (op_error): Delete function.
1435 (binop_type_check): Delete function.
1436 * language.h (type_op_error, range_op_error): Delete macros.
1437 (op_error): Delete declaration.
1438
2fcf52f0
AC
14392003-08-07 Andrew Cagney <cagney@redhat.com>
1440
1441 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1442
abd4220e 14432003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 1444
abd4220e 1445 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 1446 (x86_64_push_arguments): Skip the red zone.
abd4220e 1447
9dd5f34f
AC
14482003-08-05 Andrew Cagney <cagney@redhat.com>
1449
1450 * reggroups.c (reggroup_next): Check for the final entry.
1451
e5e78edc
AC
14522003-08-04 Andrew Cagney <cagney@redhat.com>
1453
ab4e3d93
AC
1454 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1455 * cli/cli-script.c (define_command): Call query directly, instead
1456 of passing it a buffer.
1457 * ocd.c (ocd_error): Pass error a constant format string.
1458 * remote-mips.c (mips_error): Use fputs_filtered.
1459
1062ca82
AC
1460 * solib-svr4.c (_initialize_svr4_solib): Update
1461 register_gdbarch_data call.
1462 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1463
fcc1c85c
AC
1464 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1465 (register_gdbarch_data): Delete "free" parameter. Update
1466 comments.
1467 * gdbarch.h, gdbarch.c: Re-generate.
1468 * reggroups.c (_initialize_reggroup): Update.
1469 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1470 * frame-base.c (_initialize_frame_base): Update.
1471 * frame-unwind.c (_initialize_frame_unwind): Update.
1472 * user-regs.c (_initialize_user_regs): Update.
1473 * remote.c (_initialize_remote): Update.
1474 * regcache.c (_initialize_regcache): Update.
1475
116f06ea
AC
1476 * regcache.c (xfree_regcache_descr): Delete function.
1477 (_initialize_regcache): Update call to register_gdbarch_data.
1478 (init_regcache_descr, init_legacy_regcache_descr): Use
1479 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1480
e5e78edc
AC
1481 * remote.c (free_remote_state): Delete function.
1482 (_initialize_remote): Update register_gdbarch_data.
1483 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1484 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1485
6c7d17ba
AC
14862003-08-04 Andrew Cagney <cagney@redhat.com>
1487
1488 * reggroups.c (struct reggroup_el): Define.
1489 (struct reggroups): Delete field "nr_group". Replace array
1490 "group" with a "first" to "last" linked list.
1491 (reggroups_init): Update. Allocate using gdbarch's obstack.
1492 (reggroups_free): Delete function.
1493 (add_group): Update. Add "el" parameter.
1494 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1495 (default_groups): Update.
1496 (reggroup_next): Replace reggroups.
1497 (reggroups_dump): Update.
1498 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1499 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1500 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1501
89b7795b
DJ
15022003-08-04 Daniel Jacobowitz <drow@mvista.com>
1503
1504 * Makefile.in (tui-interp.o): Update dependencies.
1505
306d9ac5
DC
15062003-08-04 David Carlton <carlton@kealia.com>
1507
1508 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1509 to internal_error call.
1510 * source.c (forward_search_command): Add "%s" format argument.
1511 (reverse_search_command): Ditto.
1512 * top.c (quit_confirm): Ditto.
1513 * cli/cli-setshow.c (do_setshow_command): Ditto.
1514 * cp-valprint.c (cp_print_class_method): Replace
1515 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1516 (cp_print_class_member): Ditto.
1517 * event-top.c (command_line_handler): Ditto.
1518 * linux-proc.c (linux_info_proc_cmd): Ditto.
1519 * p-typeprint.c (pascal_type_print_base): Ditto.
1520 * p-valprint.c (pascal_object_print_class_method): Ditto.
1521 (pascal_object_print_class_member): Ditto.
1522 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1523 * remote.c (remote_cisco_section_offsets): Ditto.
1524 * top.c (command_line_input): Ditto.
1525 * utils.c (vwarning,error_stream,quit): Ditto.
1526 * valprint.c (print_floating,print_binary_chars)
1527 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1528
57bfe177
AC
15292003-08-04 Andrew Cagney <cagney@redhat.com>
1530
1531 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1532
e546b999
AC
15332003-08-02 Andrew Cagney <cagney@redhat.com>
1534
1535 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1536 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1537 amd64fbsd-nat.c.
1538
91092ee5
AC
15392003-08-02 Andrew Cagney <cagney@redhat.com>
1540
1541 * Makefile.in: Update all dependencies and definitions.
1542
889f28e2
AF
15432003-08-02 Adam Fedor <fedor@gnu.org>
1544
1545 * linespec.c (is_objc_method_format): New function
1546 (decode_line_1, locate_first_half): Use it.
1547 Fixes PR objc/1298
1548
880bc914
AC
15492003-08-01 Andrew Cagney <cagney@redhat.com>
1550
1551 * NEWS: Mention that m32r is multi-arch.
1552 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1553 * configure.tgt: Recognize m32r-*-*.
1554 * config/m32r/tm-m32r.h: Delete file.
1555 * config/m32r/m32r.mt: New file.
1556 * m32r-rom.c (m32r_upload_command): Use hostent only when
1557 gethostname succeeds, in order to avoid a compilation
1558 warning.
1559 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1560 compiler warning.
1561
19f59343
MS
15622003-08-01 Michael Snyder <msnyder@redhat.com>
1563
1564 * sh-tdep.c (sh_frame_align): New gdbarch method.
1565 (sh_gdbarch_init): Set up frame_align method.
1566
4e7d7511
MS
15672003-07-31 Michael Snyder <msnyder@redhat.com>
1568
1569 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1570 which is already covered by the new frames infrastructure.
1571
63022984
AC
15722003-07-31 Andrew Cagney <cagney@redhat.com>
1573
1574 * user-regs.c (struct user_reg): Add "next" link.
1575 (struct user_regs): Replace "user" with "first" and "last" links.
1576 (append_user_reg): Add pre-allocated "reg" parameter.
1577 (builtin_user_regs): Provide initial value for "last".
1578 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1579 (user_regs_init): Allocate memory from the gdbarch obstack.
1580 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1581 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1582 linked list.
1583 (usernum_to_user_reg): New function.
1584 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1585 (value_of_user_reg): Use usernum_to_user_reg.
1586 (user_regs_free): Delete function.
1587 (_initialize_user_regs): Update register_gdbarch_data call.
1588
7cf6e574
DJ
15892003-07-31 Daniel Jacobowitz <drow@mvista.com>
1590
1591 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1592
c48a845b
MS
15932003-07-30 Michael Snyder <msnyder@redhat.com>
1594
4e7d7511 1595 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
1596 * infcall.c (call_function_by_hand): Pass struct_addr to
1597 value_being_returned.
1598 * infcmd.c (print_return_value): Pass zero as struct_addr.
1599 * values.c (value_being_returned): If struct_addr is passed,
1600 use it instead of trying to recover it from the inferior.
1601
f0d8db19
KB
16022003-07-30 Kevin Buettner <kevinb@redhat.com>
1603
1604 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1605 the prologue analyzer won't need to attempt to extract the pc
1606 value from the woefully incomplete dummy frame.
1607 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1608 possible. Disable code which modifies the frame.
1609
e5c113a1
AC
16102003-07-28 Andrew Cagney <cagney@redhat.com>
1611
1612 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1613 to level 2.
1614 (annotate_breakpoints_table, annotate_record): Ditto.
1615 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1616 (annotate_field_name_end, annotate_field_value): Ditto.
1617 (annotate_field_end, annotate_frame_source_begin): Ditto.
1618 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1619 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1620 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1621 (annotate_frame_address_end, annotate_frame_address): Ditto.
1622 (annotate_frame_args, annotate_frame_end): Ditto.
1623 (annotate_frame_where, annotate_arg_begin): Ditto.
1624 (annotate_arg_name_end, annotate_arg_value): Ditto.
1625 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1626 (annotate_function_call, annotate_signal_name): Ditto.
1627 (annotate_signal_string, annotate_signal_name_end): Ditto.
1628 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1629 (annotate_value_begin, annotate_value_history_value): Ditto.
1630 (annotate_value_history_end, annotate_value_end): Ditto.
1631 (annotate_display_begin, annotate_display_number_end): Ditto.
1632 (annotate_display_format, annotate_display_expression): Ditto.
1633 (annotate_display_expression_end, annotate_display_value): Ditto.
1634 (annotate_display_end, annotate_array_section_begin): Ditto.
1635 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1636 (annotate_elt, annotate_array_section_end): Ditto.
1637
bb1db049
AC
16382003-07-28 Andrew Cagney <cagney@redhat.com>
1639
1640 * regcache.c (struct regcache_descr): Update comments on
1641 nr_raw_registers.
1642 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1643 sizeof_raw_register_valid_p.
1644 (init_regcache_descr): Set nr_raw_registers and
1645 sizeof_raw_register_valid_p before calling
1646 init_legacy_regcache_descr.
1647
20e6603c
AC
16482003-07-28 Andrew Cagney <cagney@redhat.com>
1649
1650 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1651 MOD NUM_REGS.
1652
db742940
DJ
16532003-07-28 Daniel Jacobowitz <drow@mvista.com>
1654
1655 * thread.c (info_threads_command): Use get_selected_frame ().
1656 Check that there is at least one non-sentinel frame.
1657
ce7f4371
SC
16582003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1659
1660 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1661 (m68hc11_pop_frame): Remove.
1662 (m68hc11_frame_saved_pc): Remove.
1663 (m68hc11_frame_chain): Remove.
1664 (m68hc11_frame_init_saved_regs): Remove.
1665 (m68hc11_init_extra_frame_info): Remove.
1666 (m68hc11_store_struct_return): Remove.
1667 (m68hc11_saved_pc_after_call): Remove.
1668
1ea653ae
SC
16692003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1670
1671 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1672 frame unwind information.
1673 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1674 and adapted for frame unwinding.
1675 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1676 (m68hc11_unwind_pc): New function.
1677 (m68hc11_frame_unwind_cache): New function to analyze frames.
1678 (m68hc11_frame_this_id): New function to create new frame struct.
1679 (m68hc11_frame_prev_register): New function to unwind a register from
1680 the frame.
1681 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1682 (m68hc11_frame_p): New function for the above.
1683 (m68hc11_frame_base_address): New function to return fp of frame.
1684 (m68hc11_frame_args_address): Update for frame.
1685 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1686 (m68hc11_unwind_sp): New function.
1687 (m68hc11_unwind_dummy_id): New function.
1688 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1689 calls.
1690
c8a7f6ac
SC
16912003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1692
1693 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1694 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1695 when we are beyond the current pc.
1696
3dc990bf
SC
16972003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1698
1699 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
1700 from m68hc11_push_arguments.
1701 (m68hc11_push_arguments): Remove.
1702 (m68hc11_push_return_address): Remove.
1703 (m68hc11_gdbarch_init): Install the above; remove above deprecated
1704 handlers; remove deprecated_extra_stack_alignment_needed.
1705
222e5d1d
AC
17062003-07-27 Andrew Cagney <cagney@redhat.com>
1707
1708 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
1709 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
1710 REAL_PC and not the pointer.
1711 * hppa-hpux-tdep.c: Include frame.h
1712
a7e9a47e
AC
17132003-07-27 Andrew Cagney <cagney@redhat.com>
1714
1715 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
1716 GDB_MULTI_ACH_PARTIAL.
1717
7e3dd49e
AC
17182003-07-27 Andrew Cagney <cagney@redhat.com>
1719
1720 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
1721 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
1722 operator at start and not end of line.
1723 (decode_prologue): Ditto.
1724 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
1725 frame_unwind_register_unsigned instead of
1726 frame_unwind_unsigned_register.
1727 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
1728 read_register.
1729 (m32r_push_dummy_call): Use register_size instead of
1730 REGISTER_RAW_SIZE.
1731 (m32r_frame_sniffer): Replace m32r_frame_p.
1732 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
1733 * m32r-rom.c (report_transfer_performance): Delete extern
1734 declaration.
1735 (m32r_load, m32r_upload_command): Use print_transfer_performance
1736 instead of report_transfer_performance.
1737 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
1738 / add_show_from_set.
1739
0880807f
AC
17402003-07-26 Andrew Cagney <cagney@redhat.com>
1741
1742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
1743 store_return_value and extract_struct_value_address.
1744
64ae9269
DJ
17452003-07-26 Daniel Jacobowitz <drow@mvista.com>
1746
1747 PR c++/1267
1748 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
1749 NULL, default to the section containing PC.
1750
e286caf2
SC
17512003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1752
1753 * NEWS: Mention "regs" deprecated for m68hc11 too.
1754
1755 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
1756 (m68hc11_print_register): New function to print out one register.
1757 (m68hc11_print_registers_info): New function to print registers.
1758 (show_regs): Deprecate and use the above.
1759 (m68hc11_gdbarch_init): Install the print_registers_info.
1760
705b278b
JJ
17612003-07-24 Jeff Johnston <jjohnstn@redhat.com>
1762
1763 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
1764 that we have a SIGTRAP before returning non-zero.
1765
63cd4198
EZ
17662003-07-23 Michal Ludvig <mludvig@suse.cz>
1767 Elena Zannoni <ezannoni@redhat.com>
1768
1769 * linespec.c (decode_line_2): Avoid crash if
1770 find_function_start_sal() returns empty record.
1771
6926787d
AS
17722003-07-23 Andreas Schwab <schwab@suse.de>
1773
1774 * ia64-tdep.c (ia64_print_insn): New function.
1775 (ia64_gdbarch_init): Set print_insn to it.
1776 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
1777 deprecated_tm_print_insn_info.
1778
708cc1b6
MS
17792003-07-22 Michael Snyder <msnyder@redhat.com>
1780
1781 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
1782 handle 8-bit returns (long long).
1783 (h8300h_extract_return_value): Ditto.
1784 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
1785
aebd7893
AC
17862003-07-22 Andrew Cagney <cagney@redhat.com>
1787
1788 * gdbarch.c Include "gdb_obstack.h".
1789 (struct gdbarch): Add an "obstack".
1790 (alloc_gdbarch_data): Allocate the gdbarch data using
1791 GDBARCH_OBSTACK_CALLOC.
1792 (free_gdbarch_data): Delete function.
1793 (gdbarch_obstack_zalloc): New function.
1794 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
1795 Assert that the architecture is not initialized.
1796 (gdbarch_alloc): Allocate an obstack, allocate the architecture
1797 vector from the obstack.
1798 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
1799 architecture obstack.
1800 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
1801 (set_gdbarch_data): Assert that the data is not initialized.
1802 (struct gdbarch_data): Delete member "free".
1803 (register_gdbarch_data): Do not initialize "free".
1804 * gdbarch.h, gdbarch.c: Re-generate.
1805
153721e6
AC
18062003-07-22 Andrew Cagney <cagney@redhat.com>
1807
1808 * configure.in (build_warnings): Add -Wformat-nonliteral.
1809 * configure: Re-generate.
1810
c193f044 18112003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
1812
1813 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 1814
c3228f12
EZ
18152003-07-22 Elena Zannoni <ezannoni@redhat.com>
1816
1817 * findvar.c (read_var_value): Remove case for thread local storage
1818 variables. It is now entirely handled by the dwarf2 location
1819 expression code.
1820 * printcmd.c (address_info): Ditto.
1821 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
1822 enumeration value.
1823 (struct symbol): Remove objfile field, which was used by
1824 LOC_THREAD_LOCAL_STATIC only.
1825 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
1826 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
1827 usage of objfile pointer.
1828 * dwarf2loc.c (locexpr_describe_location): Add case to handle
1829 thread local variables.
1830 Add include of objfiles.h.
1831 * dwarf2expr.c (execute_stack_op): Add comments about thread local
1832 storage variables.
1833 * Makefile.in (dwarf2loc.o): Update dependencies.
1834
aef9bcd2
AC
18352003-07-22 Andrew Cagney <cagney@redhat.com>
1836
1837 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
1838 get_frame_base.
1839 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
1840 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
1841 (struct value): Add opaque declaration.
1842 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
1843
d95a8903
AC
18442003-07-21 Andrew Cagney <cagney@redhat.com>
1845
1846 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1847 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
1848
4db73d49
SC
18492003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1850
1851 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
1852 regcache_cooked_read_unsigned instead of read_register.
1853 (m68hc11_saved_pc_after_call): Likewise.
1854 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
1855 instead of write_register.
1856 (m68hc11_register_type): New function.
1857 (m68hc11_register_virtual_type): Remove.
1858 (m68hc11_store_return_value): Convert to use the regcache.
1859 (m68hc11_extract_struct_value_address): Likewise.
1860 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
1861 m68hc11_register_type; undeprecate store_return_value and
1862 extract_struct_value_address.
1863
ef2b8fcd
SC
18642003-07-20 Stephane Carrez <stcarrez@nerim.fr>
1865
1866 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
1867 and translate to use regcache.
1868 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
1869
625b0b97
AC
18702003-07-18 Andrew Cagney <cagney@redhat.com>
1871
1872 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
1873 * gdbarch.h, gdbarch.c: Re-generate.
1874 * i386-tdep.c (i386_gdbarch_init): Do not set
1875 DWARF2_BUILD_FRAME_INFO.
1876 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
1877 unconditionally.
1878 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
1879 DWARF2_BUILD_FRAME_INFO.
1880
22b0d388
AC
18812003-07-18 Andrew Cagney <cagney@redhat.com>
1882
1883 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
1884 * disasm.c (gdb_disassemble_info): Initilize di.arch.
1885
1ce5d6dd
AC
18862003-07-18 Andrew Cagney <cagney@redhat.com>
1887
1888 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
1889 frame_unwind_address_in_block, instead of frame_pc_unwind.
1890 (dwarf2_frame_cache): Ditto.
1891
e6e5e94c
AC
18922003-07-18 Andrew Cagney <cagney@redhat.com>
1893
1894 * user-regs.h (struct gdbarch): Declare opaque.
1895 * ui-out.h (struct ui_file): Declare opaque.
1896 * dwarf2-frame.h (struct frame_info): Declare opaque.
1897
5483d879
KW
18982003-07-18 Kris Warkentin <kewarken@qnx.com>
1899
1900 * nto-procfs.c: Clean ARI hits. Change #include <..> to
1901 #include "...".
1902 (procfs_meminfo): Change strerror to safe_strerror.
1903 (procfs_can_run): Remove K&R badness.
1904
278a7cf7
MS
19052003-07-17 Michael Snyder <msnyder@redhat.com>
1906
1907 * remote-sim.c: Comment typo fix.
1908
606e3b82
AC
19092003-07-17 Andrew Cagney <cagney@redhat.com>
1910
1911 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
1912 configure.
1913 * sparc-tdep.c (sparc_intreg_size): Make non-static.
1914 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
1915 GDB_MULTI_ARCH_PARTIAL.
1916
c43af07c
EZ
19172003-07-17 Elena Zannoni <ezannoni@redhat.com>
1918
1919 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
1920 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
1921 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
1922
3b85b0f1
TR
19232003-07-16 Theodore A. Roth <troth@openavr.org>
1924
1925 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
1926 found.
1927 (avr_frame_unwind_cache): Don't unwind FP for main.
1928 Update a comment.
1929 Save the computed prev_sp.
1930 (avr_saved_regs_unwinder): Remove function.
1931 (avr_frame_prev_register): Use PC unwind logic from
1932 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
1933
336d1bba
AC
19342003-07-16 Andrew Cagney <cagney@redhat.com>
1935
1936 * frame-base.h (frame_base_p_ftype): Delete definition.
1937 (frame_base_append_predicate): Delete declaration.
1938 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
1939 (frame_unwind_append_predicate): Delete declaration.
1940 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
1941 (append_predicate): Delete parameter "p".
1942 (frame_unwind_append_predicate): Delete function.
1943 (frame_unwind_append_sniffer): Update call to append_predicate.
1944 (frame_unwind_free): Delete function.
1945 (_initialize_frame_unwind): Pass NULL as "free" to
1946 register_gdbarch_data.
1947 (frame_unwind_init): Append the dummy_frame_sniffer.
1948 (frame_unwind_find_by_frame): Simplify.
1949 * frame-base.c (struct frame_base_table): Delete field "p".
1950 (append_predicate): Delete parameter "p".
1951 (frame_base_append_predicate): Delete function.
1952 (frame_base_append_sniffer): Update call to append_predicate.
1953 (frame_base_free): Delete function.
1954 (frame_base_find_by_frame): Simplify.
1955 (_initialize_frame_base): Pass NULL as "free" to
1956 register_gdbarch_data.
1957 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
1958 (x86_64_sigtramp_frame_sniffer): Replace
1959 "x86_64_sigtramp_frame_p".
1960 (x86_64_init_abi): Set the frame unwind sniffers.
1961 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
1962 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
1963 (m68k_gdbarch_init): Set the frame unwind sniffers.
1964 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
1965 "i386_sigtramp_frame_p".
1966 (i386_frame_sniffer): Replace "i386_frame_p".
1967 (i386_gdbarch_init): Set the frame unwind sniffers.
1968 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
1969 (avr_gdbarch_init): Set the frame unwind sniffers.
1970 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
1971 "alpha_sigtramp_frame_p"
1972 (alpha_heuristic_frame_sniffer): Replace
1973 "alpha_heuristic_frame_p".
1974 (alpha_gdbarch_init): Set the frame unwind sniffers.
1975 (alpha_dwarf2_init_abi): Ditto.
1976 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
1977 "alpha_debug_frame_p".
1978 (alpha_mdebug_frame_base_sniffer): Replace
1979 "alpha_mdebug_frame_base_p".
1980 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
1981 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
1982 (d10v_gdbarch_init): Set the frame unwind sniffer.
1983 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1984 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1985 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
1986 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
1987 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
1988 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
1989
48db5a3c
CV
19902003-07-16 Michael Snyder <msnyder@redhat.com>
1991
1992 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
1993 should go thru sh_dsp_register_sim_regno, else the dsp regs
1994 will not get the right values.
1995
19962003-07-16 Corinna Vinschen <vinschen@redhat.com>
1997
1998 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
1999 deprecated_store_floating by call to store_typed_floating.
2000 (sh_sh4_register_convert_to_raw): Substitute call to
2001 deprecated_extract_floating by call to extract_typed_floating.
2002
20032003-07-16 Corinna Vinschen <vinschen@redhat.com>
2004
2005 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2006
20072003-07-16 Corinna Vinschen <vinschen@redhat.com>
2008
2009 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2010 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2011 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2012 as possible.
2013 (do_pseudo_register): Remove.
2014 (sh_push_dummy_code): New function.
2015 (sh64_store_struct_return): Rename from sh_store_struct_return.
2016 Only called for sh64 now.
2017 (sh_extract_struct_value_address): Regcache'ify.
2018 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2019 and accomodate new tasks.
2020 (sh64_push_return_address): Rename from sh_push_return_address.
2021 Only called for sh64 now.
2022 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2023 Regcache'ify.
2024 (sh3e_sh4_extract_return_value): Regcache'ify.
2025 (sh_default_store_return_value): Ditto.
2026 (sh3e_sh4_store_return_value): Ditto.
2027 (sh_default_register_byte): Remove.
2028 (sh_sh4_register_byte): Remove.
2029 (sh_default_register_raw_size): Remove.
2030 (sh_sh4_register_raw_size): Remove.
2031 (sh_register_virtual_size): Remove.
2032 (sh_sh3e_register_virtual_type): Remove.
2033 (sh_sh3e_register_type): New function.
2034 (sh_sh4_register_virtual_type): Remove.
2035 (sh_sh4_register_type): New function.
2036 (sh_default_register_virtual_type): Remove.
2037 (sh_default_register_type): New function.
2038 (do_fv_register_info): Add parameters to accomodate call from
2039 sh_print_registers_info.
2040 (do_dr_register_info): Ditto.
2041 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2042 Add parameters to accomodate call from sh_print_registers_info.
2043 (sh_do_fp_register): Ditto.
2044 (sh64_do_pseudo_register): Call do_dr_register_info,
2045 do_fv_register_info and sh_do_fp_register with default parameters.
2046 (sh_do_register): Add parameters to accomodate call from
2047 sh_print_registers_info.
2048 (sh_print_register): Ditto.
2049 (sh_print_registers_info): Rename from sh_do_registers_info.
2050 Add parameters to be used as gdbarch_print_registers_info
2051 implementation. Accomodate removed do_pseudo_register function
2052 pointer.
2053 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2054 function pointer. Call sh_print_register with default parameters.
2055 (sh64_do_registers_info): Call sh_print_registers_info instead of
2056 sh_do_registers_info.
2057 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2058 detection of deprecated vs. non-deprecated functionality.
2059 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2060 function pointer assignments by direct function calls.
2061
e8a89fe2
AC
20622003-07-15 Andrew Cagney <cagney@redhat.com>
2063
2064 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2065 (frame_register_unwind, create_new_frame): Ditto.
2066 (legacy_get_prev_frame, get_frame_type): Ditto.
2067 (get_frame_base_address): Use frame_base_find_by_frame.
2068 (get_frame_locals_address): Use frame_base_find_by_frame.
2069 (get_frame_args_address): Use frame_base_find_by_frame.
2070 * frame-base.h (frame_base_sniffer_ftype): Declare.
2071 (frame_base_append_sniffer): Declare.
2072 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2073 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2074 (frame_base_append_sniffer): New function.
2075 (frame_base_append_predicate): Add a NULL sniffer.
2076 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2077 (struct frame_base_table): Add "sniffer".
2078 (frame_base_free): Free the "sniffer" table.
2079 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2080 (frame_unwind_append_sniffer): Declare.
2081 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2082 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2083 (struct frame_unwind_table): Add "sniffer", delete "middle".
2084 (append_predicate): Add "sniffer" parameter, append the sniffer.
2085 (frame_unwind_init): Update append_predicate call.
2086 (frame_unwind_append_sniffer): New function.
2087 (frame_unwind_append_predicate): Update append_predicate call.
2088 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2089
0714963c
AC
20902003-07-15 Andrew Cagney <cagney@redhat.com>
2091
2092 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2093 before code inhibiting repeated unwind attempts. Add to
2094 commentary on that test's problems.
2095 * blockframe.c (inside_main_func): Look for "main" in the minimal
2096 symbol table.
2097 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2098 identical.
2099
d9170e22
AC
21002003-07-15 Andrew Cagney <cagney@redhat.com>
2101
2102 * complaints.c (struct explanation): Define.
2103 (struct complaints): Change type of "explanation" to "struct
2104 explanation".
2105 (symfile_explanations): Convert to a "struct explanation" table.
2106 (vcomplaint): Update.
2107
eba29c8c
ML
21082003-07-15 Michal Ludvig <mludvig@suse.cz>
2109
2110 * x86-64-linux-nat.c (regmap): Removed.
2111 (supply_gregset, fill_gregset): Call
2112 x86_64_linux_(fill,supply)_gregset functions.
2113 * x86-64-linux-tdep.c (USER_*): New defines.
2114 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2115 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2116 New functions.
2117 (fetch_core_registers): Ditto.
2118 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2119 * x86-64-linux-tdep.h: New file.
2120 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2121 and core-regset.o.
2122 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2123
68cc0bfb
MK
21242003-07-13 Mark Kettenis <kettenis@gnu.org>
2125
88a115f7
MK
2126 * x86-64-tdep.c (x86_64_store_return_value): Use
2127 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 2128
68cc0bfb
MK
2129 * configure.host: Add x86_64-*-freebsd*.
2130 * configure.tgt: Add x86_64-*-freebsd*.
2131 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2132 * amd64fbsd-nat.c: New file.
2133 * amd64fbsd-tdep.c: New file.
2134 * config/i386/nm-fbsd64.h: New file.
2135 * config/i386/fbsd64.mh: New file.
2136 * config/i386/fbsd64.mt: New file.
2137
138e7be5
MK
21382003-07-11 Mark Kettenis <kettenis@gnu.org>
2139
2140 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2141 `sc_regs_offset' and `sc_fpregs_offset'.
2142 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2143 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2144 (alpha_sigtramp_register_address): Rewrite to use new members of
2145 `struct gdbarch_tdep'.
2146 (alpha_gdbarch_init): Initialize new members of struct
2147 gdbarch_tdep'.
2148 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2149 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2150 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2151 (alphafbsd_pc_in_sigtramp): Implement.
2152 (alphafbsd_sigtramp_offset): New function.
2153 (alphafbsd_sigcontext_addr): New function.
2154 (alphafbsd_init_abi): Initialize signal trampoline related members
2155 of `struct gdbarch_tdep'.
2156 (_initialize_alphafbsd_tdep): Add prototype.
2157
95303a68
TR
21582003-07-11 Theodore A. Roth <troth@openavr.org>
2159
ba292e4c
TR
2160 * Makefile.in (install-only): Quote sed expression when generating
2161 transformed_name.
95303a68 2162
6896c0c7
RH
21632003-07-11 Richard Henderson <rth@redhat.com>
2164
2165 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2166 * dwarf2-frame.c: Include complaints.h.
2167 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2168 variable initialization; return NULL on error.
2169 (decode_frame_entry): New.
2170
8edd5d01
AC
21712003-07-11 Andrew Cagney <cagney@redhat.com>
2172
c4a09524
AC
2173 * frame.h (frame_address_in_block): Delete declaration.
2174 * blockframe.c (frame_address_in_block): Delete function.
2175 (get_frame_block): Use get_frame_address_in_block.
2176 (block_innermost_frame): Ditto.
2177 * stack.c (print_frame, backtrace_command_1): Ditto.
2178
8edd5d01
AC
2179 * frame.h (get_frame_address_in_block): Declare.
2180 (frame_unwind_address_in_block): Declare.
2181 * frame.c (frame_unwind_address_in_block): New function.
2182 (get_frame_address_in_block): New function.
2183
f7968451
AC
21842003-07-10 Andrew Cagney <cagney@redhat.com>
2185
2186 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2187 pre-default. Note: re-generate has no effect.
2188
ae99b398
AC
21892003-07-10 Andrew Cagney <cagney@redhat.com>
2190
2191 * gdbarch.sh: When a variable, but not a function, compare against
2192 0. Fix problem in previous patch.
2193 * gdbarch.c: Re-generate.
2194
956ac328
AC
21952003-07-10 Andrew Cagney <cagney@redhat.com>
2196
2197 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2198 functions against NULL, not 0.
2199 * gdbarch.c: Re-generate.
2200
287c3240
FF
22012003-07-10 Fred Fish <fnf@ninemoons.com>
2202
2203 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2204 null string instead of a null pointer.
2205 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2206
32f63c4b
MS
22072003-07-09 Michael Snyder <msnyder@redhat.com>
2208
2209 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2210
402ecd56
MK
22112003-07-09 Mark Kettenis <kettenis@gnu.org>
2212
2213 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2214 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2215 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2216 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2217 * x86-64-tdep.c: ... from here.
2218
c481dac7
AS
22192003-07-09 Andreas Schwab <schwab@suse.de>
2220
2221 * m68k-tdep.h (enum struct_return): Define.
2222 (struct gdbarch_tdep): Add struct_return.
2223 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2224 bytes are padded to the right, not to the left. Pass struct value
2225 address in register %a1, not on stack.
2226 (m68k_use_struct_convention): New function.
2227 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2228 struct_return in tdep to pcc_struct_return.
2229 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2230 reg_struct_return.
2231
64176fa3
JB
22322003-07-09 Joel Brobecker <brobecker@gnat.com>
2233
2234 * somread.c (som_symfile_offsets): Fix compilation error.
2235
96a4ee76
AC
22362003-07-09 Andrew Cagney <cagney@redhat.com>
2237
2238 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2239 Add comments about the checks.
2240
1517c6d1
AC
22412003-07-08 Andrew Cagney <cagney@redhat.com>
2242
2243 * Makefile.in: Make dependency section headers consistent.
2244 (config_h): Move to $BUILD headers section.
2245 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2246 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2247 (ada-exp.tab.c): Move to YACC/LEX section.
2248 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2249 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2250
dc5dd1eb
KW
22512003-07-08 Kris Warkentin <kewarken@qnx.com>
2252
2253 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
2254 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2255 of strerror with safe_strerror, use ISO C function definitions,
2256 and replace instances of sprintf with snprintf.
dc5dd1eb 2257
612dde91
AC
22582003-07-07 Andrew Cagney <cagney@redhat.com>
2259
2260 * frame.c (get_prev_frame): Enable check for identical frames.
2261 Update comments. Update error messages.
2262
492c11d3
JB
22632003-07-07 Joel Brobecker <brobecker@gnat.com>
2264
2265 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2266
376a5a49
JB
22672003-07-07 Joel Brobecker <brobecker@gnat.com>
2268
2269 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2270 sort_symtab_syms, no longer necessary.
2271
22b4a9ad
JB
22722003-07-07 Joel Brobecker <brobecker@gnat.com>
2273
2274 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2275
5bbcb741
JB
22762003-07-07 Joel Brobecker <brobecker@gnat.com>
2277
2278 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2279 (mips_register_byte): Likewise.
2280
c139e7d9
DJ
22812003-07-07 Daniel Jacobowitz <drow@mvista.com>
2282
2283 * Makefile.in (sparc_tdep_h): New.
2284 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2285 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2286 * sparc-linux-nat.c: Include "sparc-tdep.h".
2287 * sparc-nat.c: Likewise.
2288 * sparc-tdep.c: Likewise.
2289 * sparc64nbsd-nat.c: Likewise.
2290 * sparcnbsd-nat.c: Likewise.
2291 * sparcnbsd-tdep.c: Likewise.
2292 * sparc-tdep.h: New file.
2293 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2294 and sparc_npc_regnum.
2295
fd8f87c5
DJ
22962003-07-07 Daniel Jacobowitz <drow@mvista.com>
2297
2298 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2299 (mips_linux_cannot_store_register): List supported instead of
2300 unsupported registers.
2301
13adf674
DJ
23022003-07-07 Daniel Jacobowitz <drow@mvista.com>
2303
2304 * disasm.c (dump_insns): Separate instructions from addresses.
2305
8de307e0
AS
23062003-07-07 Andreas Schwab <schwab@suse.de>
2307
2308 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2309 dependencies.
2310 * m68k-tdep.c (NUM_FREGS): Delete.
2311 (SIG_PC_FP_OFFSET): Delete.
2312 (TARGET_M68K): Delete.
2313 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2314 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2315 P_MOVEL_SP, P_MOVEML_SP): Define.
2316 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2317 P_TRAP): Delete.
2318 (m68k_register_raw_size): Delete.
2319 (m68k_register_virtual_size): Delete.
2320 (m68k_register_type): Renamed from m68k_register_virtual_type and
2321 add gdbarch argument.
2322 (m68k_store_struct_return): Delete.
2323 (m68k_deprecated_extract_return_value): Delete.
2324 (m68k_deprecated_extract_struct_value_address): Delete.
2325 (m68k_frame_chain): Delete.
2326 (m68k_frame_saved_pc): Delete.
2327 (m68k_fix_call_dummy): Delete.
2328 (m68k_push_dummy_frame): Delete.
2329 (m68k_pop_frame): Delete.
2330 (m68k_extract_return_value): New function.
2331 (m68k_store_return_value): Rewrite using regcache.
2332 (m68k_extract_struct_value_address): Rewrite using regcache.
2333 (m68k_push_dummy_call): New function.
2334 (struct m68k_frame_cache): Define.
2335 (m68k_alloc_frame_cache): New function.
2336 (m68k_analyze_frame_setup): New function.
2337 (m68k_analyze_register_saves): New function.
2338 (m68k_analyze_prologue): New function.
2339 (m68k_skip_prologue): Rewrite using above functions.
2340 (m68k_unwind_pc): New function.
2341 (m68k_frame_cache): New function.
2342 (m68k_frame_this_id): New function.
2343 (m68k_frame_prev_register): New function.
2344 (m68k_frame_unwind): New variable.
2345 (m68k_frame_p): New function.
2346 (m68k_sigtramp_frame_cache): New function.
2347 (m68k_sigtramp_frame_this_id): New function.
2348 (m68k_sigtramp_frame_prev_register): New function.
2349 (m68k_sigtramp_frame_unwind): New variable.
2350 (m68k_sigtramp_frame_p): New function.
2351 (m68k_frame_base_address): New function.
2352 (m68k_frame_base): New function.
2353 (m68k_unwind_dummy_id): New function.
2354 (fill_gregset): Use regcache_collect.
2355 (fill_fpregset): Likewise.
2356 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2357 defined.
2358 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2359 deprecated_init_frame_pc, deprecated_store_struct_return,
2360 deprecated_extract_return_value, deprecated_store_return_value,
2361 deprecated_frame_chain, deprecated_frame_saved_pc,
2362 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2363 deprecated_register_virtual_size,
2364 deprecated_max_register_raw_size,
2365 deprecated_max_register_virtual_size,
2366 deprecated_register_virtual_type, deprecated_register_size,
2367 deprecated_register_byte, deprecated_register_bytes,
2368 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2369 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2370 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2371 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2372 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2373 deprecated_push_dummy_frame, deprecated_pop_frame,
2374 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2375 only if SYSCALL_TRAP is defined. Set extract_return_value,
2376 store_return_value, extract_struct_value_address, register_type,
2377 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2378 predicates.
2379 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2380 M68K_MAX_REGISTER_SIZE): Define.
2381 (struct m68k_sigtramp_info): Define.
2382 (struct gdbarch_tdep): Add get_sigtramp_info.
2383 * m68klinux-nat.c (fetch_register): Use register_size instead of
2384 REGISTER_RAW_SIZE. Don't put assignment in if.
2385 (store_register): Likewise.
2386 (fetch_inferior_registers): Likewise.
2387 (store_inferior_registers): Likewise.
2388 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2389 (m68k_linux_frame_saved_pc): Delete.
2390 (m68k_linux_sigcontext_reg_offset,
2391 m68k_linux_ucontext_reg_offset): Define.
2392 (m68k_linux_get_sigtramp_info): New function.
2393 (m68k_linux_extract_return_value): Rewrite using regcache.
2394 (m68k_linux_store_return_value): Likewise.
2395 (m68k_linux_extract_struct_value_address): Likewise.
2396 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2397 Don't set deprecated_frame_saved_pc,
2398 deprecated_extract_return_value, deprecated_store_return_value,
2399 deprecated_extract_struct_value_address. Set
2400 extract_return_value, store_return_value,
2401 extract_struct_value_address.
2402
eb8bc282
AC
24032003-07-07 Andrew Cagney <cagney@redhat.com>
2404
2405 * expprint.c: Include "user-regs.h" instead of "frame.h".
2406 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2407 frame_map_regnum_to_name.
2408 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2409 (frame_map_name_to_regnum): Simplify, call
2410 user_reg_map_name_to_regnum.
2411 (frame_map_regnum_to_name): Simplify, call
2412 user_reg_map_regnum_to_name.
2413 (frame_register_unwind): Update.
2414 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2415 (_initialize_frame_reg): Call user_reg_add_builtin.
2416 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2417 (value_of_register): Use value_of_user_reg.
2418 * eval.c (evaluate_subexp_standard): Update.
2419 * parse.c (write_dollar_variable): Update.
2420 * d10v-tdep.c (d10v_print_registers_info): Update.
2421 * infcmd.c (registers_info): Update.
2422 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2423 (builtin_regs_h): Delete macro.
2424 (user_regs_h): Define.
2425 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2426 (builtin-regs.o): Delete target.
2427 (user-regs.o): Specify dependencies.
2428 (expprint.o): Update dependencies.
2429 (findvar.o): Update dependencies.
2430 (frame.o): Update dependencies.
2431 (std-regs.o): Update dependencies.
2432
9f476a01
CF
24332003-07-06 Christopher Faylor <cgf@redhat.com>
2434
2435 * win32-nat.c (solib_symbols_add): Use one variable for all section
2436 address stuff. Pass variable rather than address of variable to
2437 safe_symbol_file_add.
2438
a731b831
AS
24392003-07-06 Andreas Schwab <schwab@suse.de>
2440
2441 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2442
9f83329d
JB
24432003-07-04 Joel Brobecker <brobecker@gnat.com>
2444
2445 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2446
27e28cc5
KW
24472003-07-04 Kris Warkentin <kewarken@qnx.com>
2448
2449 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2450
24512003-07-04 Kris Warkentin <kewarken@qnx.com>
2452
2453 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2454 * config/i386/nto.mh: New file.
2455 * config/i386/nm-nto.h: New file.
2456 * configure.host: Add i[3456]86-*-nto*.
2457
100f2e98
JB
24582003-07-03 Joel Brobecker <brobecker@gnat.com>
2459
2460 * remote-vx.c (vx_add_symbols): Fix compilation error.
2461
e23457df
AC
24622003-07-03 Andrew Cagney <cagney@redhat.com>
2463
2464 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2465 * gdbarch.h, gdbarch.c: Re-generate.
2466 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2467 (legacy_register_name): Declare.
2468 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2469 (REGISTER_NAME): Define.
2470 * sparc-tdep.c (legacy_register_name): New function.
2471 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2472 (REGISTER_NAME): Define.
2473 (hppa64_register_name): Declare.
2474 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2475 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2476 (hppa64_register_name): New function.
2477 (hppa_register_name): New function.
2478 * arch-utils.c (legacy_register_name): Delete.
2479 * arch-utils.h (legacy_register_name): Delete.
2480
38caaeec
DJ
24812003-07-03 Daniel Jacobowitz <drow@mvista.com>
2482
2483 * cli/cli-interp.c (cli_interpreter_resume): Update the
2484 cli_uiout's stream to gdb_stdout.
2485
dadd712e
AC
24862003-07-03 Andrew Cagney <cagney@redhat.com>
2487
2488 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2489 predicate.
2490 * gdbarch.h, gdbarch.c: Re-generate.
2491 * regcache.c (init_regcache_descr): Use legacy code when either
2492 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2493
c7f1390e
DJ
24942003-07-02 Daniel Jacobowitz <drow@mvista.com>
2495
2496 * NEWS: Move "set logging" entry into GDB 6.0 section.
2497
4bc8c588
JB
24982003-07-02 Jim Blandy <jimb@redhat.com>
2499
a9dd42f1
JB
2500 * s390-tdep.c (struct frame_extra_info): new member:
2501 'stack_bought_valid'.
2502 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2503 initialize fextra_info->stack_bought.
2504 (s390_frameless_function_invocation): Don't trust the value of
2505 fextra_info_ptr->stack_bought unless
2506 fextra_info->stack_bought_valid is set.
2507
4bc8c588
JB
2508 New S390 prologue analyzer.
2509 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2510 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2511 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2512 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2513 compute_x_addr, s390_on_stack, s390_store,
2514 s390_get_signal_frame_info): New functions.
2515 (S390_NUM_SPILL_SLOTS): New macro.
2516 (s390_get_frame_info): Rewritten.
2517 (is_arg_reg): Deleted.
2518
2519 Break out the decoding of S/390 instructions into separate
2520 functions, to make it more legible, and easier to check
2521 against the spec.
2522 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2523 is_rx, is_rxe): New functions.
2524 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2525 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2526 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2527 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2528 enums for opcode values. (Is this an improvement?)
2529
fd13a04a
AC
25302003-07-02 Andrew Cagney <cagney@redhat.com>
2531
2532 * i386-tdep.c: Revert change committed as part of trad-frame code
2533 below.
2534
3f8091c1
DJ
25352003-07-02 Daniel Jacobowitz <drow@mvista.com>
2536
2537 * breakpoint.c (insert_catchpoint): Make static.
2538
8dd5115e
AS
25392003-07-02 Andreas Schwab <schwab@suse.de>
2540
2541 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2542 former ia64_push_arguments and ia64_push_return_address, and use
2543 regcache functions instead of read/write_register.
2544 (ia64_gdbarch_init): Set push_dummy_call instead of
2545 deprecated_push_arguments and deprecated_push_return_address.
2546
a2229c23
AJ
25472003-07-01 Andreas Jaeger <aj@suse.de>
2548
2549 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2550 before the call.
2551 Set %rax only to number of SSE registers used.
2552
3b3850e8
AC
25532003-07-01 Andrew Cagney <cagney@redhat.com>
2554
2555 * trad-frame.h: Update comments, a -1 .addr is reserved.
2556 (trad_frame_value_p, trad_frame_addr_p): Declare.
2557 (trad_frame_reg_p): Declare.
2558 (trad_frame_set_value): Rename trad_frame_register_value.
2559 (trad_frame_set_unknown): Declare.
2560 * trad-frame.c (trad_frame_realreg_p): New function.
2561 (trad_frame_addr_p, trad_frame_value_p): New function.
2562 (trad_frame_set_unknown): New function.
2563 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2564 (trad_frame_prev_register): Use trad_frame_realreg_p,
2565 trad_frame_addr_p and trad_frame_value_p.
2566 (trad_frame_set_value): Rename trad_frame_register_value.
2567 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2568 and trad_frame_set_value.
a2229c23 2569
4d819d0e
JB
25702003-06-30 Jim Blandy <jimb@redhat.com>
2571
2572 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2573 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2574 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2575 for 16 registers, and then 32 more bytes.
2576 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2577 New macros.
2578 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2579 Move up in the file, since it's now used by is_simple_arg.
2580 (is_simple_arg): Don't assume registers are four bytes long.
2581 Exclude all double arguments. Extended floats are not simple
2582 args.
2583 (is_power_of_two): New function.
2584 (pass_by_copy_ref): Call is_power_of_two, and check that the
2585 length fits in a register, rather than listing all the acceptable
2586 sizes. Extended floats are not passed by reference.
2587 (s390_push_arguments): Don't assume registers are four bytes long.
2588 Reserve an argument register to point to the buffer for structures
2589 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2590 S390_STACK_FRAME_OVERHEAD.
2591
1ad828f1
AS
25922003-06-30 Andreas Schwab <schwab@suse.de>
2593
2594 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2595 format error message.
2596
39b00981
JB
25972003-06-30 Joel Brobecker <brobecker@gnat.com>
2598
2599 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2600
b2a7f303
DC
26012003-06-30 David Carlton <carlton@kealia.com>
2602
2603 Band-aid for PR c++/1245.
2604 * Makefile.in (cp-support.o): Depend on complaints_h.
2605 * cp-support.c: Include complaints.h. Add declaration for
2606 find_last_component.
2607 (cp_find_first_component): Separate code into
2608 cp_find_first_component_aux.
2609 (cp_find_first_component_aux): Call demangled_name_complaint.
2610 (demangled_name_complaint): New.
2611
a257b5bb
AC
26122003-06-30 Andrew Cagney <cagney@redhat.com>
2613
2614 * remote.c (remote_write_bytes): Explicitly compute and then use
2615 the payload size. Update comments to reflect. Fixes problem of
2616 GDB not sending small packets as found by Fred Fish.
2617
0a2cfde4
AC
26182003-06-30 Andrew Cagney <cagney@redhat.com>
2619
2620 * remote.c (remote_async_wait): Fix -Wformat problem.
2621
3fcb8548
AC
26222003-06-29 Andrew Cagney <cagney@redhat.com>
2623
2624 * remote.c (remote_wait): Call error, and not warning, when the
2625 packet is corrupt.
2626 (remote_async_wait): Ditto.
2627
9f9970a3
DJ
26282003-06-29 Daniel Jacobowitz <drow@mvista.com>
2629
2630 * sparc-tdep.c (sparc_y_regnum): Make external again.
2631
83a8ccca
DJ
26322003-06-29 Daniel Jacobowitz <drow@mvista.com>
2633
2634 * cli/cli-logging.c (pop_output_files): Add void to function
2635 definition.
2636
d2cf594a
AC
26372003-06-29 Andrew Cagney <cagney@redhat.com>
2638
2639 * frame.c (frame_register_unwind): Use unsigned char when dumping
2640 the buffer contents.
2641
0fac0b41
DJ
26422003-06-28 Daniel Jacobowitz <drow@mvista.com>
2643
2644 * cli/cli-logging.c: New file.
2645 * cli-out.c (struct ui_out_data): Add original_stream.
2646 (cli_redirect): New function.
2647 (cli_ui_out_impl): Add cli_redirect.
2648 (cli_out_new): Initialize original_stream.
2649 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2650 (uo_redirect, ui_out_redirect): New.
2651 * ui-out.h (struct ui_out_impl): Add redirect member.
2652 (redirect_ftype): New.
2653 (ui_out_redirect): Add prototype.
2654 * Makefile.in: Add rules for cli-logging.c.
2655 * NEWS: Mention "set logging".
2656
88a07d7c
EZ
26572003-06-27 Elena Zannoni <ezannoni@redhat.com>
2658
2659 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2660
4eb58876
AC
26612003-06-27 Andrew Cagney <cagney@redhat.com>
2662
2663 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2664 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2665 * avr-tdep.c (avr_call_dummy_address): Delete function.
2666 (avr_gdbarch_init): Do not set call_dummy_address.
2667
1549f619
EZ
26682003-06-27 Elena Zannoni <ezannoni@redhat.com>
2669
2670 * symfile.c (syms_from_objfile): Move variables to inner block.
2671 Move the checks for the non-mainline case a bit earlier to avoid
2672 doing some useless computations.
2673
3cb3398d
EZ
26742003-06-27 Elena Zannoni <ezannoni@redhat.com>
2675
2676 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2677
3799ccc6
EZ
26782003-06-26 Elena Zannoni <ezannoni@redhat.com>
2679
2680 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2681 sections.
2682
ce1f6491
MC
26832003-06-26 Michael Chastain <mec@shout.net>
2684
2685 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2686 gdb/testsuite/gdb.c++/pr-1210.exp.
2687
d958dfd0
AC
26882003-06-26 Andrew Cagney <cagney@redhat.com>
2689
2690 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2691 altivec_expression.h and altivec_registers.h.
2692
d31431ed
AC
26932003-06-26 Andrew Cagney <cagney@redhat.com>
2694
2695 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
2696 info->mach when MIPS16. Patch suggested by Fred Fish.
2697
714b1282
AC
26982003-06-26 Andrew Cagney <cagney@redhat.com>
2699
2700 * utils.c (internal_vproblem): Print the problem to a reason
2701 buffer and then pass to query. Make the msg variable more local.
2702
42efa47a
AC
27032003-06-26 Andrew Cagney <cagney@redhat.com>
2704
2705 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
2706 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
2707 * gdbarch.h, gdbarch.c: Re-generate.
2708 * frame-base.c (default_frame_args_address): Update. Use
2709 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
2710 not available.
2711 (default_frame_locals_address): Ditto for
2712 DEPRECATED_FRAME_LOCALS_ADDRESS.
2713 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
2714 (vax_frame_num_args): Update.
2715 (vax_gdbarch_init): Update.
2716 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2717 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2718 * mcore-tdep.c (mcore_gdbarch_init): Update.
2719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2720 * ia64-tdep.c (ia64_gdbarch_init): Update.
2721 * symtab.h (address_class): Update comments.
2722 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
2723 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2724 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2725 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2726 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2727 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
2728 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
2729 * alpha-mdebug-tdep.c: Update.
2730 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
2731
8ffd9b1b
AJ
27322003-06-26 Andreas Jaeger <aj@suse.de>
2733
2734 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
2735 of SSE registers so that varargs functions work. Rework handling
2736 of passing arguments on the stack.
2737 (x86_64_store_return_value): Return double and float values in SSE
2738 register.
2739
e8ac10a6
MC
27402003-06-24 Michael Chastain <mec@shout.net>
2741
2742 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
2743 the "constructor breakpoints ignored" bug.
2744
986af8e6
DC
27452003-06-25 David Carlton <carlton@kealia.com>
2746
2747 * MAINTAINERS: Update e-mail address.
2748
d64558a5
JB
27492003-06-24 Jim Blandy <jimb@redhat.com>
2750
e538d2d7
JB
2751 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
2752
02631ec0
JB
2753 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
2754 function.
2755 (ppc_linux_init_abi): Register it as the
2756 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
2757
e716d87a
JB
2758 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
2759 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
2760 method.
2761
d64558a5
JB
2762 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
2763 (ppc64_standard_linkage_target): Use it.
2764
449a5da4
AC
27652003-06-23 Andrew Cagney <cagney@redhat.com>
2766
2767 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
2768 for 0 "int0" and 4 "int32" sized registers.
2769 * gdbtypes.c (builtin_type_int0): Define.
2770 (build_gdbtypes): Initialize builtin_type_int0.
2771 * gdbtypes.h (builtin_type_int0): Declare.
2772
b2a02dda
SC
27732003-06-23 Stephane Carrez <stcarrez@nerim.fr>
2774
2775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
2776 as characters are unsigned.
2777
fba3138e
DJ
27782003-06-22 Daniel Jacobowitz <drow@mvista.com>
2779
2780 PR gdb/1179
2781 * dwarfread.c (struct_type): Skip static fields without crashing.
2782
f6c8180b
AC
27832003-06-22 Andrew Cagney <cagney@redhat.com>
2784
2785 GDB 6.0 branch created.
f2c06f52
AC
2786 * README: Update.
2787 * PROBLEMS: Update. Empty.
2788 * NEWS: Update.
f6c8180b 2789
ae822768
DJ
27902003-06-22 Daniel Jacobowitz <drow@mvista.com>
2791
2792 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
2793 Suggested by Nick Hibma <n_hibma@webweaving.org>.
2794
261de166
AC
27952003-06-22 Andrew Cagney <cagney@redhat.com>
2796
2797 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
2798 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
2799 Velikov.
2800
30e94205
DJ
28012003-06-22 Daniel Jacobowitz <drow@mvista.com>
2802
2803 * cli/cli-cmds.c (shell_escape): Silence warnings from old
2804 compilers.
2805
9e14d721
DJ
28062003-06-21 Daniel Jacobowitz <drow@mvista.com>
2807
2808 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
2809 argument of val_print.
2810 * cp-valprint.c (cp_print_value): Don't add the offset parameter
2811 to the address argument of baseclass_offset or target_read_memory.
2812 Do add it to the argument of cp_print_value_fields.
2813
a4b8ebc8
AC
28142003-06-21 Andrew Cagney <cagney@redhat.com>
2815
2816 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
2817 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
2818 instead of 0..NUM_REGS.
2819 (mips_register_reggroup_p): New function.
2820 (mips_pseudo_register_write): New function.
2821 (mips_pseudo_register_read): New function.
2822 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
2823 based on the register's type.
2824 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
2825 cooked.
2826 (mips_get_saved_register): Simplify. Assert that REGNO is a
2827 pseudo / cooked.
2828 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
2829 (mips_register_type): Replace mips_register_virtual_type. Map
2830 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
2831 when available.
2832 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
2833 that the register is cooked / virtual.
2834 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
2835 Only get the extra info when needed.
2836 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
2837 (mips32_heuristic_proc_desc): Fetch the cooked register.
2838 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
2839 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
2840 (mips_print_register): Use gdbarch_register_type, instead of
2841 REGISTER_VIRTUAL_TYPE.
2842 (print_gp_register_row): Use gdbarch_register_type, instead of
2843 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
2844 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2845 Print the pseudo / cooked registers.
2846 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
2847 Print the pseudo / cooked registers.
2848 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
2849 REG_NUM is pseudo / cooked.
2850 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
2851 (mips_n32n64_xfer_return_value): Ditto.
2852 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
2853 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
2854 (mips_register_sim_regno): New function.
2855 (mips_gdbarch_init): Set deprecated_register_byte,
2856 register_group_p, pseudo_register_write, pseudo_register_read,
2857 register_sim_regno, and num_pseudo_regs. Set register_type,
2858 instead of register_virtual_type.
2859 * Makefile.in (mips-tdep.o): Update dependencies.
2860 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
2861 REGISTER_VIRTUAL_TYPE.
2862 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
2863 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
2864 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
2865 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
2866 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
2867
325ed089
DJ
28682003-06-21 Daniel Jacobowitz <drow@mvista.com>
2869
2870 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
2871 * cli/cli-cmds.c: Include "gdb_vfork.h".
2872 (shell_escape): Use vfork.
2873
f0e7d0e8
AC
28742003-06-21 Andrew Cagney <cagney@redhat.com>
2875
c57bb9fa
AC
2876 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
2877 32 bit floating-point register saves.
2878
6e51443a
AC
2879 * frame.h (deprecated_unwind_get_saved_register): Delete.
2880 * frame.c (deprecated_unwind_get_saved_register): Delete function.
2881 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
2882 and deprecated_get_next_frame_hack instead of
2883 deprecated_unwind_get_saved_register.
2884
ed183c7c
AC
2885 * mips-tdep.c (mips_dump_tdep): Do not print
2886 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
2887
f0e7d0e8
AC
2888 * frame.c (get_frame_register): New function.
2889 (frame_unwind_register_signed): New function.
2890 (get_frame_register_signed): New function.
2891 (frame_unwind_register_unsigned): New function.
2892 (get_frame_register_unsigned): New function.
2893 * frame.h: Add comments on naming schema.
2894 (get_frame_register, frame_unwind_register_signed): Declare.
2895 (get_frame_register_signed, get_frame_register_signed): Declare.
2896 (frame_unwind_register_unsigned): Declare.
2897 (get_frame_register_unsigned): Declare.
2898
2224d941
TR
28992003-06-20 Theodore A. Roth <troth@openavr.org>
2900
2901 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
2902
8619218d
TR
29032003-06-20 Theodore A. Roth <troth@openavr.org>
2904
2905 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
2906 (avr_read_sp): Ditto.
2907
0b1b50c0
DJ
29082003-06-20 Daniel Jacobowitz <drow@mvista.com>
2909
2910 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
2911 * config/arm/nm-linux.h: Likewise.
2912 * config/arm/tm-linux.h: Likewise.
2913 * config/ia64/nm-linux.h: Likewise.
2914 * config/ia64/tm-ia64.h: Likewise.
2915 * config/s390/tm-linux.h: Likewise.
2916 * config/s390/tm-s390.h: Likewise.
2917 * s390-nat.c: Likewise.
2918 * s390-tdep.c: Likewise.
2919
2920 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
2921 * config/ia64/linux.mt: Likewise.
2922 * config/m68k/linux.mh: Likewise.
2923 * config/mips/linux.mt: Likewise.
2924 * config/powerpc/linux.mh: Likewise.
2925 * config/sh/linux.mt: Likewise.
2926
c8c18e65
KW
29272003-06-19 Kris Warkentin <kewarken@qnx.com>
2928
2929 * solib.c (solib_open): Change tests for whether to search
2930 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
2931 comments.
2932
dcccef2e
TR
29332003-06-19 Theodore A. Roth <troth@openavr.org>
2934
2935 * avr-tdep.c (avr_frame_address): Delete function.
2936 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
2937 set_gdbarch_frame_args_address.
2938
5861a190
AC
29392003-06-19 Andrew Cagney <cagney@redhat.com>
2940
2941 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
2942 (REGISTER_CONVERT_FROM_TYPE): Delete.
2943 (mips_register_convert_to_type): Delete declaration.
2944 (mips_register_convert_from_type): Delete declaration.
2945 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
2946 kernel/.
2947
0274a8ce
MS
29482003-06-19 Michael Snyder <msnyder@redhat.com>
2949
2950 * linux-nat.h: New file.
2951 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 2952 * lin-lwp.c: Include linux-nat.h.
0274a8ce 2953 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 2954 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
2955 (linux_make_note_section): Iterate over lwps instead of threads.
2956 (linux_do_thread_registers): Use lwp instead of merged pid.
2957 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 2958 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
2959 Add dependency on linux_nat_h.
2960
adf5f719
TR
29612003-06-19 Theodore A. Roth <troth@openavr.org>
2962
2963 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
2964
6766a268
DJ
29652003-06-19 Daniel Jacobowitz <drow@mvista.com>
2966
2967 * varobj.c (get_type, get_target_type): Use check_typedef.
2968
1171114a
DJ
29692003-06-19 Daniel Jacobowitz <drow@mvista.com>
2970
2971 * breakpoint.c (insert_catchpoint): Call internal_error.
2972
adcf68a2
TR
29732003-06-19 Theodore A. Roth <troth@openavr.org>
2974
2975 * avr-tdep.c (avr_push_dummy_code): Delete function.
2976 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
2977
ea67f13b
DJ
29782003-06-19 Daniel Jacobowitz <drow@mvista.com>
2979
2980 * arch-utils.c (default_prepare_to_proceed): Remove.
2981 (generic_prepare_to_proceed): Remove.
2982 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
2983 (generic_prepare_to_proceed): Remove prototype.
2984 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
2985 * gdbarch.c: Regenerate.
2986 * gdbarch.h: Regenerate.
2987 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
2988 * hppah-nat.c (hppa_switched_threads): Remove.
2989 * infrun.c (prepare_to_proceed): New static function, copied from
2990 generic_prepare_to_proceed. Remove select_it argument.
2991 (proceed): Call prepare_to_proceed.
2992 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
2993 variables.
2994 (ptrace_wait): Don't set the removed variables.
2995 (hppa_switched_threads): Remove.
2996 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
2997 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
2998 (lin_lwp_prepare_to_proceed): Remove prototype.
2999 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3000 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3001
4add8633
TR
30022003-06-18 Theodore A. Roth <troth@openavr.org>
3003
3004 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3005 trad-frame.h.
3006 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3007 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3008 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3009 (AVR_PROLOGUE_*): Enumerate prologue types.
3010 (struct frame_extra_info): Remove.
3011 (struct avr_unwind_cache): Define.
3012 (avr_write_sp): Delete function.
3013 (avr_read_fp): Ditto.
3014 (avr_init_extra_frame_info): Ditto.
3015 (avr_pop_frame): Ditto.
3016 (avr_frame_saved_pc): Ditto.
3017 (avr_saved_pc_after_call): Ditto.
3018 (avr_push_return_address): Ditto.
3019 (avr_frame_chain): Ditto.
3020 (avr_store_struct_return): Ditto.
3021 (avr_push_arguments): Ditto.
3022 (avr_scan_prologue): Update comments. Changed to set up the info for
3023 cache unwinding. Now returns end of prologue PC.
3024 (avr_skip_prologue): Better handling of functions lacking a prologue
3025 by using avr_scan_prologue.
3026 (avr_scan_arg_moves): New function.
3027 (avr_saved_regs_unwinder): Ditto.
3028 (avr_frame_unwind_cache): Ditto.
3029 (avr_unwind_pc): Ditto.
3030 (avr_frame_this_id): Ditto.
3031 (avr_frame_prev_register): Ditto.
3032 (avr_frame_p): Ditto.
3033 (avr_frame_base_address ): Ditto.
3034 (avr_unwind_dummy_id): Ditto.
3035 (avr_push_dummy_code): Ditto.
3036 (push_stack_item): Ditto.
3037 (pop_stack_item): Ditto.
3038 (avr_push_dummy_call): Ditto.
3039 (struct stack_item): Define.
3040 (avr_frame_unwind): Declare structure.
3041 (avr_frame_base): Ditto.
3042 (avr_gdbarch_init): Remove calls to
3043 set_gdbarch_deprecated_init_frame_pc,
3044 set_gdbarch_deprecated_target_read_fp,
3045 set_gdbarch_deprecated_dummy_write_sp,
3046 set_gdbarch_deprecated_fp_regnum,
3047 set_gdbarch_deprecated_push_arguments,
3048 set_gdbarch_deprecated_push_return_address,
3049 set_gdbarch_deprecated_pop_frame,
3050 set_gdbarch_deprecated_store_struct_return,
3051 set_gdbarch_deprecated_frame_init_saved_regs,
3052 set_gdbarch_deprecated_init_extra_frame_info,
3053 set_gdbarch_deprecated_frame_chain,
3054 set_gdbarch_deprecated_frame_saved_pc,
3055 set_gdbarch_deprecated_saved_pc_after_call.
3056 Add calls to set_gdbarch_push_dummy_call,
3057 set_gdbarch_push_dummy_code,
3058 frame_unwind_append_predicate,
3059 frame_base_set_default,
3060 set_gdbarch_unwind_dummy_id,
3061 set_gdbarch_unwind_pc.
3062 Wrap a long line.
3063
7be04a68
MS
30642003-06-18 Corinna Vinschen <vinschen@redhat.com>
3065
3066 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3067 registers for H8/300S.
3068 (h8300_print_registers_info): Ditto.
8ffd9b1b 3069 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 3070
ae087d01
DJ
30712003-06-18 Daniel Jacobowitz <drow@mvista.com>
3072
3073 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3074 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3075 (lin_lwp_wait): Likewise. Update comments.
3076 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3077 (pull_pid_from_list, linux_record_stopped_pid): New.
3078
07d8f827
SC
30792003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3080
3081 * ada-lang.c (scan_discrim_bound): Name first argument.
3082 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3083 declared by ALL_BLOCK_SYMBOLS.
3084
7cb47b14
SC
30852003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3086
3087 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3088 ("regcache.h"): Include it.
3089 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3090
6ad8ae5c
DJ
30912003-06-17 Daniel Jacobowitz <drow@mvista.com>
3092
3093 * NEWS: Mention gdbserver detach change and "disconnect" command.
3094 * infcmd.c (disconnect_command): New function.
3095 (_initialize_infcmd): Add ``disconnect'' command.
3096 * remote.c (remote_async_detach): Delete.
3097 (remote_detach): Merge remote_async_detach.
3098 (remote_disconnect): New.
3099 (init_remote_ops): Set to_disconnect.
3100 (init_remote_cisco_ops): Likewise.
3101 (init_remote_async_ops): Likewise. Use remote_detach.
3102 * target.c (cleanup_target): Default to_disconnect.
3103 (update_current_target): Inherit to_disconnect.
3104 (target_disconnect, debug_to_disconnect): New functions.
3105 (setup_target_debug): Set to_disconnect.
3106 * target.h (struct target_ops): Add to_disconnect.
3107 (target_disconnect): Add prototype.
3108
687595f9
DJ
31092003-06-17 Daniel Jacobowitz <drow@mvista.com>
3110
3111 * breakpoint.c (insert_catchpoint): New function.
3112 (insert_breakpoints): Use catch_exceptions to call
3113 insert_catchpoint. Disable catchpoints if they fail to insert.
3114
29239a8f
DJ
31152003-06-17 Daniel Jacobowitz <drow@mvista.com>
3116
3117 * symfile.c (reread_symbols): Clear sym_private.
3118
2cdf3c63
AC
31192003-06-17 Andrew Cagney <cagney@redhat.com>
3120
3121 * trad-frame.h (struct frame_info): Add opaque declaration.
3122 * remote-fileio.h (struct cmd_list_element): Add opaque
3123 declaration.
3124 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3125 comments.
3126
cf0e1e0d
DJ
31272003-06-17 Daniel Jacobowitz <drow@mvista.com>
3128
3129 * remote.c (remote_prepare_to_store): Replace call to
3130 deprecated_read_register_bytes with multiple regcache_raw_read
3131 calls.
3132
192cdb19
KW
31332003-06-17 Kris Warkentin <kewarken@qnx.com>
3134
3135 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3136 (nto_find_and_open_solib): Likewise.
3137 (nto_init_solib_absolute_prefix): Likewise.
3138 (_initialize_nto_tdep): Fix indentation.
3139
89929b45
KW
31402003-06-17 Kris Warkentin <kewarken@qnx.com>
3141
3142 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3143
46019f27
KW
31442003-06-17 Kris Warkentin <kewarken@qnx.com>
3145
3146 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3147
1a38736e
JB
31482003-06-17 Jim Blandy <jimb@redhat.com>
3149
3150 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3151
3605c34a
TR
31522003-06-16 Theodore A. Roth <troth@openavr.org>
3153
3154 * avr-tdep.c (avr_extract_return_value): New function.
3155 (avr_gdbarch_init): Set extract_return_value method.
3156
870b3035
AC
31572003-06-16 Andrew Cagney <cagney@redhat.com>
3158
3159 * frame.h (deprecated_get_next_frame_hack): Declare.
3160 * frame.c (legacy_saved_regs_prev_register): Only require
3161 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3162 there are always saved regs.
3163 (deprecated_generic_get_saved_register): Do not require
3164 DEPRECATED_FRAME_INIT_SAVED_REGS.
3165 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3166 use frame ID unwind instead.
3167 (deprecated_get_next_frame_hack): New function.
3168
63d47a7d
CV
31692003-06-16 Corinna Vinschen <vinschen@redhat.com>
3170
3171 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3172 (h8300_push_dummy_call): ...this function. Some minor optimization.
3173 (h8300_push_return_address): Remove.
3174 (h8300_gdbarch_init): Remove calls to
3175 set_gdbarch_deprecated_dummy_write_sp,
3176 set_gdbarch_deprecated_push_arguments and
3177 set_gdbarch_deprecated_push_return_address.
3178 Add call to set_gdbarch_push_dummy_call.
3179
4bb1dc5e
CV
31802003-06-16 Corinna Vinschen <vinschen@redhat.com>
3181
3182 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3183 (E_PSEUDO_EXR_REGNUM): Ditto.
3184 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 3185 registers into safe registers.
4bb1dc5e
CV
3186 (h8300_skip_prologue): Check for stm instruction to push registers
3187 used for register variables onto stack.
3188 (gdb_print_insn_h8300): Remove.
3189 (h8300_examine_prologue): Add a comment.
3190 (h8300_register_name): Take pseudo registers into account.
3191 (h8300s_register_name): Ditto.
3192 (h8300sx_register_name): Ditto.
3193 (h8300_print_register): Ditto.
3194 (h8300_print_registers_info): Define "nice" printing order.
3195 (h8300_saved_pc_after_call): Take pseudo registers into account.
3196 (h8300_register_type): Ditto. Return type used for remote connection
3197 when requesting real CCR or EXR register, return actual type when
3198 requesting pseudo CCR or EXR.
3199 (h8300_pseudo_register_read): New function.
3200 (h8300_pseudo_register_write): Ditto.
3201 (h8300_dbg_reg_to_regnum): Ditto.
3202 (h8300s_dbg_reg_to_regnum): Ditto.
3203 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3204 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3205 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3206 set_gdbarch_print_insn architecture dependent.
3207 Call set_gdbarch_pseudo_register_read and
3208 set_gdbarch_pseudo_register_write.
3209 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3210
a59fe496
AC
32112003-06-16 Andrew Cagney <cagney@redhat.com>
3212
3213 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3214 * gdbarch.h, gdbarch.c: Re-generate.
3215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3216 * s390-tdep.c (s390_gdbarch_init): Update.
3217 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3218 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3219 * mips-tdep.c (mips_gdbarch_init): Update.
3220 * mcore-tdep.c (mcore_gdbarch_init): Update.
3221 * cris-tdep.c (cris_gdbarch_init): Update.
3222 * infcall.c (call_function_by_hand): Update.
3223 * ia64-tdep.c (ia64_push_arguments): Update comment.
3224 * frame.c (legacy_get_prev_frame): Do not assume
3225 SAVE_DUMMY_FRAME_TOS_P.
3226 * dummy-frame.c (find_dummy_frame): Update comment.
3227
6f4e5a41
AC
32282003-06-16 Andrew Cagney <cagney@redhat.com>
3229
3230 * regcache.c (do_cooked_read): Do not use register_valid_p.
3231
72fab697
TR
32322003-06-15 Theodore A. Roth <troth@openavr.org>
3233
3234 * avr-tdep.c (avr_register_type): Remove a blank line.
3235 (avr_scan_prologue): Correct some comments.
3236
e3d8b004
TR
32372003-06-15 Theodore A. Roth <troth@openavr.org>
3238
3239 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3240 prologue types.
8ffd9b1b 3241 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
3242 option.
3243 Add code to scan -mcall-prologues for mega devices.
3244
866b76ea
TR
32452003-06-15 Theodore A. Roth <troth@openavr.org>
3246
3247 * avr-tdep.c (avr_register_byte): Delete function.
3248 (avr_register_raw_size): Delete function.
3249 (avr_register_virtual_size): Delete function.
3250 (avr_register_virtual_type): Delete function.
3251 (avr_register_type): New function.
3252 (avr_address_to_pointer): Remove unused code.
3253 (avr_read_fp): Need to read FP as two separate bytes due to change to
3254 avr_register_type() usage.
3255 (avr_gdbarch_init): Don't set deprecated_register_size.
3256 Don't set deprecated_register_bytes.
3257 Don't set deprecated_register_byte.
3258 Don't set deprecated_register_raw_size.
3259 Don't set deprecated_max_register_raw_size.
3260 Don't set deprecated_register_virtual_size.
3261 Don't set deprecated_max_register_virtual_size.
3262 Don't set deprecated_register_virtual_type.
3263 Set register_type method.
3264
3993f6b1
DJ
32652003-06-15 Daniel Jacobowitz <drow@mvista.com>
3266
3267 * Makefile.in (linux-nat.o): Add rule.
3268 * linux-nat.c: New file.
3269 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3270 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3271 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3272 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3273 * config/arm/linux.mh (NATDEPFILES): Likewise.
3274 * config/i386/linux.mh (NATDEPFILES): Likewise.
3275 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3276 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3277 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3278 * config/mips/linux.mh (NATDEPFILES): Likewise.
3279 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3280 * config/s390/s390.mh (NATDEPFILES): Likewise.
3281 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3282
786a90bb
MK
32832003-06-15 Mark Kettenis <kettenis@gnu.org>
3284
3285 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3286 replace out-of-date comment.
3287
3bd3f01e
AC
32882003-06-15 Andrew Cagney <cagney@redhat.com>
3289
3290 * rdi-share/host.h (Fail): Change to a varargs function.
3291 * remote-rdi.c (Fail): Update.
8ffd9b1b 3292
de5b9bb9
MK
32932003-06-15 Mark Kettenis <kettenis@gnu.org>
3294
3295 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3296 (i386_convert_register_p, i386_register_to_value,
3297 i386_register_from_value): Handle types longer than 8 bytes.
3298
d532c08f
MK
32992003-06-15 Mark Kettenis <kettenis@gnu.org>
3300
3301 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3302 Move floating-point code to new function in i387-tdep.c.
3303 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3304 New functions containing code moved here from i386-tdep.c.
3305 * i387-tdep.h: Add opaque declaration for `struct type'.
3306 (i387_register_to_value, i387_value_to_register): New prototypes.
3307 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3308 (x86_64_init_abi): Set convert_register_p, register_to_value and
3309 value_to_register here.
8ffd9b1b 3310
42c466d7
AC
33112003-06-14 Andrew Cagney <cagney@redhat.com>
3312
3313 * mips-tdep.c (mips_register_to_value): Make static.
3314 (mips_value_to_register): Make static.
3315 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3316 * ia64-tdep.c (ia64_register_raw_size): Make static.
3317 (ia64_register_virtual_size): Make static.
3318 (ia64_register_byte): Make static.
3319 * i387-tdep.c: Include "i387-tdep.h".
3320 (print_387_control_word): Delete function.
3321 (print_387_status_word): Delete function.
3322 (print_387_status_bits): Delete function.
3323 (print_387_control_bits): Delete function.
3324 * Makefile.in (i387-tdep.o): Update dependencies.
3325 * rdi-share/host.h (Fail): Declare.
3326 * remote-rdi.c (Fail): Update to match declaration.
3327
2a9cda49
AC
33282003-06-14 Andrew Cagney <cagney@redhat.com>
3329
3330 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3331 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3332 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3333 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3334 * README: Delete reference to remote-array.
3335 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3336 (remote-array.o): Delete target.
3337 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3338 * remote-array.c: Delete file.
3339
ff2e87ac
AC
33402003-06-14 Andrew Cagney <cagney@redhat.com>
3341 Mark Kettenis <kettenis@gnu.org>
3342
3343 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3344 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3345 parameter with "frame".
3346 * gdbarch.h, gdbarch.c: Re-generate.
3347 * frame.h (put_frame_register): Declare.
3348 * frame.c (put_frame_register): New function.
3349 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3350 (legacy_register_to_value): Rewrite, use "frame" to get the
3351 register value.
3352 (legacy_value_to_register): Rewrite, use "frame" to find the
3353 register's location before storing.
3354 * arch-utils.h (legacy_convert_register_p): Update.
3355 (legacy_register_to_value, legacy_value_to_register): Update.
3356 * findvar.c (value_from_register): Rewrite, eliminate use of
3357 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3358 "frame" to REGISTER_TO_VALUE.
3359 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3360 lval_reg_frame_relative + lval_register branch of the switch. Do
3361 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3362 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3363 I386_EDI_REGNUM): New defines.
3364 (i386_next_regnum, i386_convert_register_p,
3365 i386_register_to_value, i386_value_to_register): New functions.
3366 (i386_register_convertible, i386_register_convert_to_virtual,
3367 i386_convert_to_raw): Remove functions.
3368 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3369 value_to_register instead of register_convertible,
3370 register_convert_to_virtual and register_convert_to_raw.
3371 * mips-tdep.c (mips_convert_register_p): New function.
3372 (mips_value_to_register): Replace mips_register_convert_from_type.
3373 (mips_register_to_value): Replace mips_register_convert_to_type.
3374 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3375 register_to_value.
3376 * alpha-tdep.c (alpha_convert_register_p): Update.
3377 (alpha_value_to_register): Update, store the register.
3378 (alpha_register_to_value): Update, fetch the register.
3379
98be1e77
TR
33802003-06-14 Theodore A. Roth <troth@openavr.org>
3381
3382 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3383 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3384 Don't set deprecated_call_dummy_words.
3385 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3386 Don't set remote_translate_xfer_address.
3387 (avr_io_reg_read_command): Remove commented out debug printf.
3388 Wrap a long line.
3389
57bc6122
TR
33902003-06-14 Theodore A. Roth <troth@openavr.org>
3391
3392 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3393 causes gdb to seg fault.
3394
eb01fc62
DJ
33952003-06-14 Daniel Jacobowitz <drow@mvista.com>
3396
3397 * sparc-nat.c (fetch_inferior_registers): Correct
3398 a reference to "registers".
3399
3b3e6bee
DJ
34002003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3401
3402 * Makefile.in (exc_request_U_h): Define
3403 (exc_request_S_h): Likewise.
3404 (msg_reply_S_h): Likewise.
3405 (msg_U_h): Likewise.
3406 (notify_S_h): Likewise.
3407 (process_reply_S_h): Likewise.
3408 (gnu-nat.o): Depend on gdb_obstack_h
3409 * gnu-nat.c: Include "gdb_obstack.h".
3410
b8de8283
AC
34112003-06-13 Andrew Cagney <cagney@redhat.com>
3412
3413 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3414 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 3415
f3be58bc
AC
34162003-06-13 Andrew Cagney <cagney@redhat.com>
3417
3418 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3419 when deprecated REGISTER macros can be deleted.
3420 * gdbarch.h, gdbarch.c: Re-generate.
3421
4c0122c8
JB
34222003-06-13 Jim Blandy <jimb@redhat.com>
3423
3424 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3425 Linux entry point symbols for _dl_debug_state, too.
3426
3e210248
AC
34272003-06-13 Andrew Cagney <cagney@redhat.com>
3428
3429 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3430 available, do not use the FP register, and always save the TOS.
3431 * dummy-frame.c (dummy_frame_this_id): Do not assert
3432 SAVE_DUMMY_FRAME_TOS.
3433 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3434 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3435 (i386_push_dummy_call): Add 8 to the returned SP.
3436 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3437 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3438 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3439 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3440 (x86_64_push_dummy_call): Return "sp + 16".
3441 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3442 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3443 save_dummy_frame_tos.
3444
0b65af49
JB
34452003-06-13 Jim Blandy <jimb@redhat.com>
3446
3447 * frv-tdep.c (frv_use_struct_convention): Delete static
3448 declaration for function deleted in my change of 2003-06-12.
3449
4ea2465e
TR
34502003-06-13 Theodore A. Roth <troth@openavr.org>
3451
3452 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3453 (avr_pointer_to_address): Shift code addrs left 1 bit.
3454 (avr_convert_from_func_ptr_addr): Delete function since operation is
3455 better handled by avr_address_to_pointer and avr_pointer_to_address.
3456 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3457
1581182a
MK
34582003-06-13 Mark Kettenis <kettenis@gnu.org>
3459
3460 From Kelley Cook <kelleycook@wideopenwest.com>:
3461 * configure.host: Accept i[34567]86 variants.
3462 * configure.tgt: Likewise.
3463 * nlm/configure.in: Likewise.
3464 * nlm/configure: Regenerated.
3465
7aa1783e
RE
34662003-06-13 Richard Earnshaw <rearnsha@arm.com>
3467
3468 * arm-tdep.c (solib-svr4.h): Dont' include it.
3469 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3470 * arm-linux-tdep.c: ... here. Make static.
3471 (arm_linux_init_abi): Register it.
3472 (solib-svr4.h): Include it.
3473 * Makefile.in: Update dependencies.
3474 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3475 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3476
0261a0d0
CV
34772003-06-13 Corinna Vinschen <vinschen@redhat.com>
3478
3479 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3480 indicate registers used for return values.
3481 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3482 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3483 members.
3484 (h8300_init_extra_frame_info): Ditto.
3485 (h8300_frame_locals_address): Removed.
3486 (h8300_frame_args_address): Removed.
3487 (h8300_extract_return_value): Use new regcache structure. Only care
3488 for 16 bit CPUs.
3489 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3490 (h8300_store_return_value): Use new regcache structure. Only care
3491 for 16 bit CPUs.
3492 (h8300h_store_return_value): Same function for 32 bit CPUs.
3493 (h8300_store_struct_return): Removed.
3494 (h8300_extract_struct_value_address): Use new regcache structure.
3495 (h8300h_extract_struct_value_address): Removed.
3496 (h8300_push_dummy_code): New function.
3497 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3498 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3499 set_gdbarch_store_return_value architecture dependent.
3500 Call set_gdbarch_push_dummy_code and
3501 set_gdbarch_extract_struct_value_address.
3502 Remove calls to set_gdbarch_frame_args_address,
3503 set_gdbarch_frame_locals_address,
3504 set_gdbarch_deprecated_store_struct_return,
3505 set_gdbarch_deprecated_extract_return_value,
3506 set_gdbarch_deprecated_extract_struct_value_address,
3507 set_gdbarch_deprecated_call_dummy_words and
3508 set_gdbarch_deprecated_sizeof_call_dummy_words.
3509
055c394a
CV
35102003-06-13 Corinna Vinschen <vinschen@redhat.com>
3511
3512 * h8300-tdep.c (h8300_register_byte): Remove.
3513 (h8300h_register_byte): Remove.
3514 (h8300_register_virtual_type): Remove. Substitute by...
3515 (h8300_register_type): New function.
3516 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3517 (h8300h_extract_struct_value_address): Ditto.
3518 (h8300_gdbarch_init): Drop calls to
3519 set_gdbarch_deprecated_register_byte and
3520 set_gdbarch_deprecated_register_virtual_type.
3521 Add call to set_gdbarch_register_type.
3522
9c04cab7
AC
35232003-06-13 Andrew Cagney <cagney@redhat.com>
3524
3525 * gdbarch.sh: Update comments on registers.
3526 (deprecated_register_byte): Rename register_byte.
3527 (deprecated_register_raw_size): Rename register_raw_size.
3528 (deprecated_register_virtual_size): Rename register_virtual_size.
3529 (deprecated_register_virtual_type): Rename register_virtual_type.
3530 * gdbarch.h, gdbarch.c: Re-generate.
3531 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3532 * vax-tdep.c (vax_gdbarch_init): Update.
3533 * v850-tdep.c (v850_gdbarch_init): Update.
3534 * sparc-tdep.c (sparc_gdbarch_init): Update.
3535 * sh-tdep.c (sh_gdbarch_init): Update.
3536 * s390-tdep.c (s390_gdbarch_init): Update.
3537 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3538 * ns32k-tdep.c: Update.
3539 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3540 * mips-tdep.c (mips_gdbarch_init): Update.
3541 * mcore-tdep.c (mcore_gdbarch_init): Update.
3542 * m68k-tdep.c (m68k_gdbarch_init): Update.
3543 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3544 * ia64-tdep.c (ia64_gdbarch_init): Update.
3545 * hppa-tdep.c (hppa_gdbarch_init): Update.
3546 * h8300-tdep.c (h8300_gdbarch_init): Update.
3547 * frv-tdep.c (frv_gdbarch_init): Update.
3548 * cris-tdep.c (cris_gdbarch_init): Update.
3549 * avr-tdep.c (avr_gdbarch_init): Update.
3550 * alpha-tdep.c (alpha_gdbarch_init): Update.
3551 * arm-tdep.c (arm_gdbarch_init): Update.
3552
b060cbea
AC
35532003-06-13 Andrew Cagney <cagney@redhat.com>
3554
3555 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3556 mips_o32_use_struct_convention with always_use_struct_convention.
3557
0fc9922a
DC
35582003-06-12 David Carlton <carlton@kealia.com>
3559
3560 * cp-namespace.c (cp_set_block_scope): Comment out
3561 processing_has_namespace_info branch.
3562
1fd35568
JB
35632003-06-12 Jim Blandy <jimb@redhat.com>
3564
f470a70a
JB
3565 Recognize and skip 64-bit PowerPC Linux linkage functions.
3566 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3567 insn_pattern, insns_match_pattern, d_field, ds_field): New
3568 functions, macros, and types for working with PPC instructions.
3569 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3570 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3571 ppc64_skip_trampoline_code): New functions, variables, and macros
3572 for recognizing and skipping linkage functions.
3573 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3574 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3575
49ff75ad
JB
3576 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3577 register offsets for both the 32- and 64-bit interfaces.
3578
bd918c83
JB
3579 Actually finish the job started by my change of 2003-05-29.
3580 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3581 other #definition of this.
3582 (ppc_linux_skip_trampoline_code): Remove declaration.
3583 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3584 static.
3585 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3586 method for GDBARCH.
3587
3588 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3589 'long' on ppc64-*-linux*.
3590
f8c59253
JB
3591 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3592 isn't #defined, assume the register doesn't exist: act as if
3593 tdep->ppc_mq_regnum were -1.
3594
8fbb30b1
JB
3595 * configure.host, configure.tgt: Add entries for
3596 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3597 powerpc/linux.mt.
3598 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3599 New files.
3600
1fd35568
JB
3601 * arch-utils.c (always_use_struct_convention): New function.
3602 * arch-utils.h (always_use_struct_convention): New prototype.
3603 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3604 (alpha_gdbarch_init): Register always_use_struct_convention,
3605 instead of alpha_use_struct_convention.
3606 * cris-tdep.c (cris_use_struct_convention): Delete.
3607 (cris_gdbarch_init): Register always_use_struct_convention,
3608 instead of cris_use_struct_convention.
3609 * frv-tdep.c (frv_use_struct_convention): Delete.
3610 (frv_gdbarch_init): Register always_use_struct_convention,
3611 instead of frv_use_struct_convention.
3612 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3613 (h8300_gdbarch_init): Register always_use_struct_convention,
3614 instead of h8300_use_struct_convention.
e3305dd9 3615 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
3616 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3617 instead of mips_o32_use_struct_convention.
3618
e14e6e9c
AC
36192003-06-12 Andrew Cagney <cagney@redhat.com>
3620
3621 * wince.c: Include "mips-tdep.h".
3622 * mips-tdep.h (mips_next_pc): Declare.
3623 * mcore-tdep.c: Make more local functions static.
3624 * Makefile.in (wince.o): Update dependencies.
3625
2335f48e
DC
36262003-06-12 David Carlton <carlton@kealia.com>
3627
3628 * symtab.c (lookup_symbol_aux_minsyms): Replace
3629 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3630 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3631 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3632 SYMBOL_NATURAL_NAME.
3633
f70a7d61
AS
36342003-06-12 Andreas Schwab <schwab@suse.de>
3635
3636 * Makefile.in (tuiDisassem.o): Update dependencies.
3637
b6429628
DC
36382003-06-12 David Carlton <carlton@bactrian.org>
3639
3640 * symtab.h: Delete declaration of make_symbol_overload_list.
3641 Add declaration of lookup_partial_symbol.
3642 * symtab.c (remove_params): Move to cp-support.c.
3643 (overload_list_add_symbol, make_symbol_overload_list)
3644 (sym_return_val_size, sym_return_val_index): Ditto.
3645 (lookup_partial_symbol): Make extern.
3646 * cp-support.h: Add declaration of make_symbol_overload_list.
3647 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3648 symtab.h, and block.h.
3649 (remove_params): Move here from symtab.c.
3650 (overload_list_add_symbol, make_symbol_overload_list)
3651 (sym_return_val_size, sym_return_val_index): Ditto.
3652 * valops.c: Include cp-support.h.
3653 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3654 frame_h, and block_h.
3655 (valops.o): Depend on cp_support_h.
3656
084edea5
CV
36572003-06-12 Corinna Vinschen <vinschen@redhat.com>
3658
3659 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3660 substitute by NUM_REGS throughout.
3661 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3662 (h8300s_register_name): New function for H8S registers.
3663 (h8300sx_register_name): Ditto for H8SX registers.
3664 (h8300_print_register): Revise register printing, avoid depending
3665 on 32 bit long.
0261a0d0 3666 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
3667 (h8300h_register_byte): New function for any other architecture.
3668 (h8300_register_raw_size): Remove.
3669 (h8300_register_virtual_type): Revise to return actually useful
3670 type.
3671 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3672 (h8300h_extract_struct_value_address): New function for any other
3673 architecture.
3674 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3675 set_gdbarch_register_name, set_gdbarch_register_byte,
3676 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3677 Remove calls to set_gdbarch_deprecated_register_size,
3678 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3679 set_gdbarch_deprecated_max_register_raw_size,
3680 set_gdbarch_register_virtual_size and
3681 set_gdbarch_deprecated_max_register_virtual_size entirely.
3682 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3683 set_gdbarch_long_double_bit.
3684
06194148
JJ
36852003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3686
8ffd9b1b
AJ
3687 * doublest.c (convert_doublest_to_floatformat): When dealing
3688 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
3689 processing a full 32 bits of mantissa.
3690
de4f826b
DC
36912003-06-11 David Carlton <carlton@bactrian.org>
3692
3693 * dictionary.h: New.
3694 * dictionary.c: New.
3695 * block.h: Add opaque declaration for struct dictionary.
3696 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
3697 'sym' members.
3698 (BLOCK_DICT): New macro.
3699 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
3700 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
3701 BLOCK_SHOULD_SORT.
3702 (ALL_BLOCK_SYMBOLS): Update definition.
3703 * Makefile.in (SFILES): Add dictionary.c.
3704 (dictionary_h): New.
3705 (COMMON_OBS): Add dictionary.o.
3706 (dictionary.o): New.
3707 (ada-lang.o): Depend on dictionary_h.
3708 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
3709 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
3710 (mi-cmd-stack.o): Ditto.
3711 (gdbtk-cmds.o): Update dependencies.
3712 (gdbtk-stack.o): Ditto.
3713 * ada-lang.c: Include dictionary.h.
3714 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
3715 (fill_in_ada_prototype, debug_print_block): Ditto.
3716 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
3717 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
3718 'is_sorted'.
3719 * mdebugread.c: Include dictionary.h.
3720 (struct parse_stack): Delete 'maxsyms' member.
3721 (parse_symbol): Update calls to new_block. Delete calls to
3722 shrink_block. Use dictionary methods.
3723 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
3724 Update calls to new_symtab. Don't maintain maxsyms data.
3725 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
3726 (add_symbol): Just call dict_add_symbol.
3727 (new_symtab): Delete 'maxsyms' argument.
3728 (new_symtab): Update calls to new_block.
3729 (new_block): Delete 'maxsyms' argument; add 'function' argument.
3730 (shrink_block): Delete function.
3731 (fixup_sigtramp): Update call to new_block. Add symbol via
3732 dict_add_symbol.
3733 * jv-lang.c: Include dictionary.h.
3734 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
3735 appropriately. Set class_symtab->free_func. Make sure the
3736 blockvector is big enough to hold two blocks.
3737 (add_class_symtab_symbol): Use dictionary methods.
3738 (free_class_block): New function.
3739 (type_from_class): Replace explicit iteration by
3740 ALL_BLOCK_SYMBOLS.
3741 * symtab.h (struct symtab): Replace 'free_ptr' method by
3742 'free_func'.
3743 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
3744 sort_symtab_syms.
3745 * dwarfread.c (psymtab_to_symtab_1): Delete call to
3746 sort_symtab_syms.
3747 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
3748 Include dictionary.h.
3749 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
3750 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
3751 sort_symtab_syms.
3752 * objfiles.c: Include dictionary.h.
3753 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
3754 * buildsym.c: Include dictionary.h.
3755 (finish_block): Use dictionary methods.
3756 (end_symtab): Set free_func to NULL, not free_ptr.
3757 * tracepoint.c: Include dictionary.h.
3758 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
3759 (scope_info): Ditto.
3760 * stack.c: Include dictionary.h.
3761 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
3762 (print_block_frame_labels, print_frame_arg_vars)
3763 (print_frame_args): Ditto.
3764 * symmisc.c (free_symtab_block): Use dictionary methods.
3765 (dump_symtab): Ditto.
3766 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
3767 Include dictionary.h.
3768 * symfile.h: Delete declarations of sort_block_syms,
3769 sort_symtab_syms.
3770 * symfile.c (sort_block_syms): Delete.
3771 (sort_symtab_syms): Delete.
3772 * symtab.c: Include dictionary.h.
3773 (lookup_block_symbol): Use dictionary iterators.
3774 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
3775 (search_symbols, make_symbol_completion_list): Ditto.
3776 (make_symbol_overload_list): Ditto.
3777 * valops.c (value_of_local): Use dict_empty.
3778 Include dictionary.h.
3779
a31f978c
JB
37802003-06-11 J. Brobecker <brobecker@gnat.com>
3781
3782 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
3783
526e70c0
DC
37842003-06-11 David Carlton <carlton@bactrian.org>
3785
3786 * block.h (BLOCK_SHOULD_SORT): Delete.
3787 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
3788 blocks.
3789 * ada-lang.c (ada_add_block_symbols): Ditto.
3790 * symfile.c (sort_block_syms): Delete.
3791 (sort_symtab_syms): Ditto.
3792 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
3793 declarations.
3794 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
3795 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
3796 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
3797 * dwarfread.c (psymtab_to_symtab_1): Ditto.
3798 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
3799 * mdebugread.c (psymtab_to_symtab_1): Ditto.
3800 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
3801
33c08150
JJ
38022003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3803
8ffd9b1b 3804 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
3805 bits to 128.
3806
781a750d
AC
38072003-06-11 Andrew Cagney <cagney@redhat.com>
3808
3809 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
3810 REGISTER_CONVERTIBLE.
3811 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
3812 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
3813 * gdbarch.h, gdbarch.c: Re-generate.
3814 * arch-utils.h (deprecated_register_convertible_not): Rename
3815 generic_register_convertible_not.
3816 * arch-utils.c (deprecated_register_convertible_not): Rename
3817 generic_register_convertible.
3818 (legacy_convert_register_p, legacy_register_to_value): Update.
3819 * sh-tdep.c (sh64_push_arguments): Update.
3820 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
3821 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
3822 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
3823 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
3824 * arch-utils.c (legacy_value_to_register): Update.
3825 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3826 (rs6000_register_convert_to_raw): Make parameter "from" const.
3827 * mips-tdep.c (mips_gdbarch_init): Update.
3828 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
3829 * infcmd.c (default_print_registers_info): Update.
3830 * ia64-tdep.c (ia64_gdbarch_init): Update.
3831 (ia64_register_convert_to_raw): Make parameter "from" const.
3832 * i386-tdep.c (i386_gdbarch_init): Update.
3833 (i386_register_convert_to_raw): Update.
3834
cd90e54f
AC
38352003-06-11 Andrew Cagney <cagney@redhat.com>
3836
3837 * remote-fileio.c: Include "remote-fileio.h".
3838 * Makefile.in (remote-fileio.o): Update dependencies.
3839 (remote_fileio_h): Fix typo.
3840
a78f21af
AC
38412003-06-11 Andrew Cagney <cagney@redhat.com>
3842
3843 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
3844 (xstormy16_save_dummy_frame_tos): Make static.
3845 (_initialize_xstormy16_tdep): Add declaration.
3846 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3847 * v850-tdep.c: Make local functions static.
3848 (_initialize_v850_tdep): Add declaration.
3849 * sparc-tdep.c: Make local functions static.
3850 (_initialize_sparc_tdep): Add declaration.
3851 * sh-tdep.c: Make local functions static.
3852 (_initialize_sh_tdep): Add declaration.
3853 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
3854 * s390-tdep.c: Make local functions static.
3855 (_initialize_s390_tdep): Add declaration.
3856 * dbxread.c (find_stab_function_addr): Make static.
3857 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
3858 * ocd.c (_initialize_remote_ocd): Add declaration.
3859 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
3860 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
3861 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
3862 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
3863 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3864 * remote-array.c (_initialize_array): Add declaration.
3865 (_initialize_remote_monitors): Add declaration.
3866 * remote-mips.c: Make local functions static.
3867 (_initialize_remote_mips): Add declaration.
3868 * mcore-tdep.c: Make all local functions static.
3869 (_initialize_mcore_tdep): Add declaration.
3870 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
3871 * abug-rom.c (_initialize_abug_rom): Add declaration.
3872 * rom68k-rom.c (_initialize_rom68k): Add declaration.
3873 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
3874 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3875 * remote-est.c (_initialize_est): Add declaration.
3876 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3877 (m68hc11_call_dummy_address): Make static.
3878 * ia64-tdep.c: Make local functions static.
3879 (_initialize_ia64_tdep): Add declaration.
3880 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
3881 * monitor.c (monitor_wait_filter): Make static.
3882 (_initialize_remote_monitors): Add declaration.
3883 * remote-hms.c (_initialize_remote_hms): Add declaration.
3884 * remote-e7000.c (fetch_regs_from_dump): Make static.
3885 (expect_n): Make static.
3886 (_initialize_remote_e7000): Add declaration.
3887 * ser-e7kpc.c: Always include "defs.h".
3888 (_initialize_ser_e7000pc): Add declaration.
3889 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3890 * cris-tdep.c: Make all but one function static.
3891 (_initialize_cris_tdep): Add declaration.
3892 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3893 * solib.c (update_solib_list): Make static.
3894 (_initialize_solib): Add declaration.
3895 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
3896 (_initialize_avr_tdep): Add declaration.
3897 * remote-rdi.c (voiddummy): Make static.
3898 (_initialize_remote_rdi): Add declaration.
3899 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3900 * remote-rdp.c (send_rdp): Make static.
3901 (_initialize_remote_rdp): Add declaration.
3902 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3903
cbcdb1f5
CV
39042003-06-11 Corinna Vinschen <vinschen@redhat.com>
3905
3906 * remote-fileio.c: Make ari happy.
3907
a191ea8d
JB
39082003-06-10 J. Brobecker <brobecker@gnat.com>
3909
3910 * rs6000-nat.c (child_xfer_memory): Compute the right address when
3911 fetching the trailing bytes of the buffer we are about to write.
3912
0ef75e11
AC
39132003-06-10 Andrew Cagney <cagney@redhat.com>
3914
3915 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
3916 * Makefile.in (remote-fileio.o): Update dependencies.
3917 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
3918 include <setjmp.h>, or <sys/types.h> conditional on USG.
3919 (remote_fio_jmp_buf): Delete global variable.
3920
449092f6 39212003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 3922 Martin M. Hunt <hunt@redhat.com>
449092f6 3923
559fa028
AC
3924 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
3925 (SFILES): Add remote-fileio.c.
3926 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
3927 dependencies for building remote.o.
449092f6
CV
3928 * remote-fileio.c: New file implementing the remote File-I/O protocol.
3929 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 3930 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
3931 static storage class.
3932 (remote_wait, remote_async_wait): Call remote_fileio_request() on
3933 'F' packet.
3934 (_initialize_remote): Call initialize_remote_fileio().
3935 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
3936 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3937 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
3938 (captured_main): Initialize new ui_files.
3939 * ui-file.c: Add read and fgets input functions.
3940 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
3941 (null_file_read): New function.
3942 (ui_file_read): New function.
3943 (set_ui_file_read): New function.
3944 (stdio_file_read): New function.
3945 * ui-file.h: New type ui_file_read_ftype.
3946 (set_ui_file_read): Declare.
3947 (ui_file_read): Declare.
3948
248de703
AC
39492003-06-09 Andrew Cagney <cagney@redhat.com>
3950
3951 * frame.h (deprecated_unwind_get_saved_register): Rename
3952 generic_unwind_get_saved_register, update comments.
3953 * mips-tdep.c (mips_get_saved_register): Update.
3954 * frame.c (deprecated_unwind_get_saved_register): Update.
3955
0ed8aa57
AC
39562003-06-09 Andrew Cagney <cagney@redhat.com>
3957
3958 * vax-tdep.c (vax_frame_locals_address): Delete function.
3959 (vax_gdbarch_init): Do not set frame_locals_address.
3960 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
3961 (m68hc11_gdbarch_init): Do not set frame_locals_address.
3962 * s390-tdep.c (s390_frame_args_address): Delete function.
3963 (s390_gdbarch_init): Do not set frame_args_address or
3964 frame_locals_address.
3965 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
3966 (ns32k_gdbarch_init): Do not set frame_locals_address.
3967 * hppa-tdep.c (hppa_frame_args_address): Delete function.
3968 (hppa_frame_locals_address): Delete function.
3969 (hppa_gdbarch_init): Do not set frame_args_address, or
3970 frame_locals_address.
3971 * arm-tdep.c (arm_frame_args_address): Delete.
3972 (arm_frame_locals_address): Delete.
3973 (arm_gdbarch_init): Do not set frame_args_address, or
3974 frame_locals_address.
3975
983a287a
AC
39762003-06-09 Andrew Cagney <cagney@redhat.com>
3977
3978 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
3979 * gdbarch.h, gdbarch.c: Re-generate.
3980 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
3981 * arch-utils.c (frame_num_args_unknown): Delete function.
3982 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
3983 (frame_info): Use FRAME_NUM_ARGS_P.
3984 * arm-tdep.c (arm_frame_num_args): Delete function.
3985 (arm_gdbarch_init): Do not set frame_num_args.
3986 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
3987 * hppa-tdep.c (hppa_frame_num_args): Delete function.
3988 (hppa_gdbarch_init): Do not set frame_num_args.
3989 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
3990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3991 frame_num_args to default frame_num_args_unknown.
3992 * v850-tdep.c (v850_gdbarch_init): Ditto.
3993 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3994 * sh-tdep.c (sh_gdbarch_init): Ditto.
3995 * s390-tdep.c (s390_gdbarch_init): Ditto.
3996 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3997 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3998 * mips-tdep.c (mips_gdbarch_init): Ditto.
3999 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4000 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4001 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4002 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4003 * i386-tdep.c (i386_gdbarch_init): Ditto.
4004 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4005 * frv-tdep.c (frv_gdbarch_init): Ditto.
4006 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4007 * cris-tdep.c (cris_gdbarch_init): Ditto.
4008 * avr-tdep.c (avr_gdbarch_init): Ditto.
4009 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4010
8d3b0994
AC
40112003-06-09 Andrew Cagney <cagney@redhat.com>
4012
4013 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4014 (print_frame_args): Moved to "stack.c".
4015 * stack.c: Include "gdb_assert.h".
4016 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4017 (print_frame_args): Moved from "printcmd.c".
4018 * frame.h (print_frame_args): Delete declaration.
4019 * Makefile.in (stack.o): Update dependencies.
4020
25e3a86b
AC
40212003-06-08 Andrew Cagney <cagney@redhat.com>
4022
4023 * frame.c (get_prev_frame): Remove reference to
4024 frame_args_address_correct in comments.
4025 * frame-base.c (default_frame_args_address): Delete code
4026 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4027 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4028 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4029 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4030 (vax_frame_args_address_correct): Delete declaration.
4031
a9e5fdc2
AC
40322003-06-08 Andrew Cagney <cagney@redhat.com>
4033
4034 * gdbarch.sh (UNWIND_SP): Add.
4035 * gdbarch.h, gdbarch.c: Re-generate.
4036 * frame.c (frame_sp_unwind): New function.
4037 (get_frame_sp): New function.
4038 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4039 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4040 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4041 value.
4042 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4043 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4044
8983bd83
AC
40452003-06-08 Andrew Cagney <cagney@redhat.com>
4046
7fec2c59
AC
4047 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4048 REMOTE_BREAKPOINT.
4049 * remote.c: Update.
4050 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4051 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4052 * config/m68k/tm-sun3.h: Update.
4053 * config/m68k/tm-m68klynx.h: Update.
4054 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4055
8983bd83
AC
4056 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4057 trad_frame". Update comments.
4058 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4059 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4060 (trad_frame_register_value, trad_frame_prev_register): Update.
4061
b9362cc7
AC
40622003-06-08 Andrew Cagney <cagney@redhat.com>
4063
4064 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4065 from GCC's acinclude.m4.
4066 * configure.in: Check for getopt's delcaration.
8ffd9b1b 4067 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
4068 * main.c (error_init): Delete declaration.
4069 * defs.h (error_init): Declare.
4070 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4071 (rs6000_convert_from_func_ptr_addr): Make static.
4072 (_initialize_rs6000_tdep): Add declaration.
4073 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4074 (show_commands, set_verbose, show_history): Delete declaration.
4075 * top.h (set_verbose): Add declaration.
4076 (show_history, set_history, show_commands): Add declaration.
4077 (do_restore_instream_cleanup): Add declaration.
4078 * objc-lang.c (specialcmp): Make static.
4079 (print_object_command): Make static.
4080 (find_objc_msgsend): Make static.
4081 (find_objc_msgcall_submethod_helper): Make static.
4082 (find_objc_msgcall_submethod): Make static.
4083 (_initialize_objc_language): Add declaration.
4084 (find_implementation_from_class): Make static.
4085 (find_implementation): Make static.
4086 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4087 * objc-lang.h (lookup_struct_typedef): Add declaration.
4088 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4089 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4090 (do_restore_user_call_depth): Make static.
4091 (do_restore_instream_cleanup): Delete declaration.
4092 (dont_repeat): Delete declaration.
4093 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4094 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4095 * reggroups.c (_initialize_reggroup): Add declaration.
4096 * cp-support.c (_initialize_cp_support): Add declaration.
4097 * cp-abi.c (_initialize_cp_abi): Add declaration.
4098 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4099 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4100 (_initialize_gnu_v3_abi): Add declaration.
4101 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4102 (_initialize_gnu_v2_abi): Add declaration.
4103 * frame-base.c (_initialize_frame_base): Add declaration.
4104 * doublest.c (floatformat_from_length): Make static.
4105 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4106 * frame.c (create_sentinel_frame): Make static.
4107 (_initialize_frame): Add declaration.
4108 * top.c (do_catch_errors): Make static.
4109 (gdb_rl_operate_and_get_next_completion): Make static.
4110 * typeprint.c: Include "typeprint.h".
4111 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4112 (sentinel_frame_this_id): Make static.
4113 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4114 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4115 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4116 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4117 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4118 * maint.c (maintenance_print_architecture): Make static.
4119 * signals/signals.c (_initialize_signals): Add declaration.
4120 * std-regs.c (_initialize_frame_reg): Add declaration.
4121 * jv-exp.y (push_variable): ISO C definition.
4122 (push_qualified_expression_name): Ditto.
4123 * memattr.c (_initialize_mem): Add declaration.
4124 * remote.c (remote_check_watch_resources): Make static.
4125 (remote_stopped_by_watchpoint): Make static.
4126 (remote_stopped_data_address): Make static.
4127 * d10v-tdep.c (nr_dmap_regs): Make static.
4128 (a0_regnum): Make static.
4129 (d10v_frame_unwind_cache): Make static.
4130 (d10v_frame_p): Make static.
4131 * osabi.c (show_osabi): Make static.
4132 (_initialize_gdb_osabi): Add extern declaration.
4133 * gdbtypes.c (make_qualified_type): Make static.
4134 (safe_parse_type): Make static.
4135 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4136 * macrotab.c (macro_bcache_free): Make static.
4137 * interps.c (interp_set_quiet): Make static.
4138 (interpreter_exec_cmd): Make static.
4139 * stack.h (select_frame_command): New file.
4140 * stack.c: Include "stack.h".
4141 (select_frame_command_wrapper): Delete function.
4142 (select_frame_command): Make global.
4143 * infcall.c: Include "infcall.h".
4144 * linespec.c: Include "linespec.h".
4145 * symfile.c (sections_overlap): Make static.
4146 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4147 * charset.c (_initialize_charset): Add missing prototype.
4148 * regcache.c (init_legacy_regcache_descr): Make static.
4149 (do_regcache_xfree): Make static.
4150 (regcache_xfer_part): Make static.
4151 (_initialize_regcache): Add missing prototype.
4152 * breakpoint.c (parse_breakpoint_sals): Make static.
4153 (breakpoint_sals_to_pc): Make static.
4154 * interps.h (clear_interpreter_hooks): ISO C declaration.
4155 * Makefile.in (stack_h): Define.
4156 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4157 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4158
a0f267c7
AC
41592003-06-08 Andrew Cagney <cagney@redhat.com>
4160
4161 * Makefile.in (d10v-tdep.o): Update dependencies.
4162 (SFILES): Add trad-frame.c.
4163 (trad_frame_h): Define.
4164 (COMMON_OBS): Add trad-frame.o.
4165 (trad-frame.o): Specify dependencies.
4166 * d10v-tdep.c: Include "trad-frame.h".
4167 (saved_regs_unwinder): Delete function.
4168 (d10v_frame_prev_register): Use trad_frame_prev_register.
4169 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4170 trad_frame", delete "regs" and "prev_sp".
4171 (prologue_find_regs): Use trad-frame.
4172 * trad-frame.h, trad-frame.c: New files.
4173
4538b4f4
MK
41742003-06-08 Mark Kettenis <kettenis@gnu.org>
4175
4176 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4177
a0273b2f
AF
41782003-06-07 Adam Fedor <fedor@gnu.org>
4179
4180 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4181 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4182 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4183 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 4184 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
4185 Use it.
4186
3a6c3343
AC
41872003-06-07 Andrew Cagney <cagney@redhat.com>
4188
4189 * symfile.h: Re-indent, clean up comments.
4190
b46e02f6
AC
41912003-06-07 Andrew Cagney <cagney@redhat.com>
4192
4193 * inferior.h (deprecated_write_sp): Replace
4194 generic_target_write_sp.
4195 * regcache.c (deprecated_write_sp): Replace
4196 generic_target_write_sp.
4197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4198 * vax-tdep.c (vax_gdbarch_init): Update.
4199 * v850-tdep.c (v850_gdbarch_init): Update.
4200 * sparc-tdep.c (sparc_gdbarch_init): Update.
4201 * sh-tdep.c (sh_gdbarch_init): Update.
4202 * s390-tdep.c (s390_gdbarch_init): Update.
4203 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4204 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4205 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4206 * mcore-tdep.c (mcore_gdbarch_init): Update.
4207 * m68k-tdep.c (m68k_gdbarch_init): Update.
4208 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4209 * ia64-tdep.c (ia64_gdbarch_init): Update.
4210 * h8300-tdep.c (h8300_gdbarch_init): Update.
4211 * frv-tdep.c (frv_gdbarch_init): Update.
4212 * cris-tdep.c (cris_gdbarch_init): Update.
4213 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4214
a42e117c
AC
42152003-06-07 Andrew Cagney <cagney@redhat.com>
4216
4217 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4218 Assert that PC_REGNUM is valid.
4219 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4220
bd1ce8ba
AC
42212003-06-07 Andrew Cagney <cagney@redhat.com>
4222
4223 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4224 * gdbarch.h, gdbarch.c: Regenerate.
4225 * mn10300-tdep.c: Include "gdb_assert.h".
4226 (mn10300_read_fp): New function.
4227 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4228 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4229 * ia64-tdep.c: Include "gdb_assert.h".
4230 (ia64_read_fp): New function.
4231 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4232 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4233 * regcache.c (generic_target_read_sp): Delete function.
4234 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4235 * inferior.h (generic_target_read_sp): Delete declaration.
4236 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4237 generic_target_read_sp.
4238 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4239 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4240 * sh-tdep.c (sh_gdbarch_init): Ditto.
4241 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4242 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4243
ec5cbaec
AC
42442003-06-07 Andrew Cagney <cagney@redhat.com>
4245
4246 * gdbarch.sh: Comment each field of startup_gdbarch.
4247 * gdbarch.h, gdbarch.c: Re-generate.
4248
cde9ea48
AC
42492003-06-07 Andrew Cagney <cagney@redhat.com>
4250
4251 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4252 * gdbarch.h, gdbarch.c: Re-generate.
4253 * regcache.c: Update comments on read_pc et.al.
4254 (generic_target_read_pc): Delete function.
4255 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4256 * inferior.h (generic_target_read_pc): Delete declaration.
4257 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4258 generic_target_read_pc.
4259 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4260 * sh-tdep.c (sh_gdbarch_init): Ditto.
4261 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 4263
9a90a780
AC
42642003-06-07 Andrew Cagney <cagney@redhat.com>
4265
4266 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4267 "index" with "special_local_sect". Use strcmp instead of STREQ.
4268 Append period to coments.
4269
a39a16c4
MM
42702003-06-06 Mark Mitchell <mark@codesourcery.com>
4271
4272 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4273 (elfstab_offset_sections): Likewise.
4274 * gdb-stabs.h (stab_section_info): Likewise.
4275 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4276 * objfiles.c (objfile_relocate): Likewise.
4277 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4278 * remote.c (get_offsets): Likewise.
4279 (remote_cisco_objfile_relocate): Likewise.
4280 * somread.c (som_symfile_offsets): Likewise.
4281 * symfile.c (alloc_section_addr_info): New function.
4282 (build_section_addr_info_from_section_tab): Use it.
4283 (free_section_addr_info): Adjust.
4284 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4285 (syms_from_objfile): Allocate local_addr dynamically.
4286 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4287 dynamically.
4288 (add_symbol_file_command): Allocate sect_opts dynamically.
4289 (reread_symbols): Avoid use of SECT_OFF_MAX.
4290 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4291 (alloc_section_addr_info): Declare it.
4292 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4293 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4294 dynamically.
4295 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 4296
20c6c2f8
AC
42972003-06-06 Andrew Cagney <cagney@redhat.com>
4298
4299 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4300 (d10v_frame_unwind_cache): Do not set "return_pc".
4301
884a26c8
MS
43022003-06-06 Michael Snyder <msnyder@redhat.com>
4303
4304 * h8300-tdep.c: Make tidy (long lines).
4305
088ce440
ML
43062003-06-06 Michal Ludvig <mludvig@suse.cz>
4307
8ffd9b1b 4308 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
4309 to regcache_collect().
4310
7d773d96
JB
43112003-06-05 J. Brobecker <brobecker@gnat.com>
4312
4313 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4314 pc_in_sigtramp multiarch method.
4315 (hppa_hpux_som_init_abi): Use it.
4316 (hppa_hpux_elf_init_abi): Likewise.
4317 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4318 macro has been multiarched.
4319 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4320 macro here, as hppa64 isn't multiarched yet.
4321
1df6926e
AC
43222003-06-05 Andrew Cagney <cagney@redhat.com>
4323
4324 * Makefile.in (value_h): Add $(frame_h).
4325 * value.h: Include "frame.h".
4326 (struct value): Replace "frame_addr" with "frame_id".
4327 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4328 * values.c (allocate_value): Use VALUE_FRAME_ID.
4329 (value_copy): Use VALUE_FRAME_ID.
4330 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4331 * valops.c (value_assign): Update. Use frame_find_by_id.
4332
6b53acc6
ML
43332003-06-05 Michal Ludvig <mludvig@suse.cz>
4334
4335 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4336 in each pass.
4337
4d9850d3
JJ
43382003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4339
4340 * thread-db.c (check_event): For create/death event breakpoints,
4341 loop through all messages to ensure that we read the message
4342 corresponding to the breakpoint we are at.
4343
8efca6ba
MS
43442003-06-04 Michael Snyder <msnyder@redhat.com>
4345
4346 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4347
0912c7f2
MK
43482003-06-04 Mark Kettenis <kettenis@gnu.org>
4349
4350 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4351 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4352 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4353 when handling .eh_frame sections.
4354
4e370325
JB
43552003-06-04 J. Brobecker <brobecker@gnat.com>
4356
4357 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4358 prepare_to_proceed procedure instead of the hppa-specific one.
4359 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4360
b757528f 43612003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4362
b757528f
JJ
4363 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4364 * config.in: Regenerated.
4365 * configure.in: Add test for syscall function and check for
4366 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4367 * configure: Regenerated.
4368 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4369 <sys/syscall.h>.
4370 (kill_lwp): New function that uses tkill syscall or
4371 uses kill, depending on whether threading model is nptl or not.
4372 All callers of kill() changed to use kill_lwp().
4373 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4374 see if all threads have already exited in the nptl model.
4375 (stop_and_resume_callback): New callback function used by the
4376 lin_lwp_wait thread exit handling code.
4377 (stop_wait_callback): Check for threads already having exited and
4378 delete such threads fromt the lwp list when discovered.
4379 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 4380
b757528f
JJ
4381 Roland McGrath <roland@redhat.com>
4382 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4383 nptl libthread_db.
4384
087779b1
RH
43852003-06-03 Richard Henderson <rth@redhat.com>
4386
b21fd293
RH
4387 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4388 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4389 (alpha_sigtramp_frame_prev_register): Likewise.
4390 (alpha_heuristic_frame_prev_register): Likewise.
4391 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4392
8ffd9b1b 4393 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
4394 alpha-specific register id names.
4395 (alpha_mdebug_frame_unwind_cache): Likewise.
4396 (alpha_mdebug_frame_prev_register): Likewise.
4397
baa490c4
RH
43982003-06-03 Richard Henderson <rth@redhat.com>
4399
4400 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4401 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4402 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4403 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4404 unwind routines.
4405 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4406 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4407 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4408
4409 * alpha-linux-tdep.c: Remove unnecessary includes.
4410 * Makefile.in (alpha-linux-tdep.o): Update.
4411
44122003-06-03 Richard Henderson <rth@redhat.com>
4413
4414 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4415 (alphabsd_fill_fpreg): Likewise.
4416
f534e522
JB
44172003-06-03 J. Brobecker <brobecker@gnat.com>
4418
4419 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4420 references to struct frame_info fields by calls to the equivalent
4421 accessors. Necessary now that frame_info is opaque.
4422
4035536b
JB
44232003-06-03 J. Brobecker <brobecker@gnat.com>
4424
4425 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4426 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4427 structure, field no longer exists.
4428
0bd79c5c
JB
44292003-06-03 J. Brobecker <brobecker@gnat.com>
4430
4431 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4432 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4433
37bb6d9f
JB
44342003-06-03 J. Brobecker <brobecker@gnat.com>
4435
4436 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4437 references to struct frame_info fields by calls to the equivalent
4438 accessors. Necessary now that frame_info is opaque.
4439
852ee05c
JB
44402003-06-03 J. Brobecker <brobecker@gnat.com>
4441
4442 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4443 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4444 structure, field no longer exists.
4445
7d58c67d
TR
44462003-06-03 Theodore A. Roth <troth@openavr.org>
4447
8ffd9b1b 4448 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
4449 accumulation of the size of all registers instead of blindly using
4450 DEPRECATED_REGISTER_BYTES.
4451
0a48e7e8
MS
44522003-06-03 Michael Snyder <msnyder@redhat.com>
4453
4454 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4455 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4456 for h8300sx.
4457
9798ab0d
JB
44582003-06-03 J. Brobecker <brobecker@gnat.com>
4459
4460 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4461 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4462
00b037e2
AC
44632003-06-03 Andrew Cagney <cagney@redhat.com>
4464
4465 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4466 (sparc_convert_to_raw): Delete function.
4467 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4468 register_convert_to_virtual.
4469
043b2f77
JJ
44702003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4471
4472 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4473 layer if not dealing with a statically-linked threaded program.
4474
f43caff8
KW
44752003-06-03 Kris Warkentin <kewarken@qnx.com>
4476
4477 * solib.c (solib_open): Update comment to reflect actual search order.
4478
ae1e7417
AC
44792003-06-03 Andrew Cagney <cagney@redhat.com>
4480
4481 * frame.c (get_frame_memory_signed): New function.
4482 (get_frame_memory, get_frame_memory_unsigned): New function.
4483 (get_frame_arch): New function.
4484 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4485 (get_frame_memory, get_frame_unsigned_memory): Declare.
4486 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4487 get_frame_memory_unsigned and get_frame_arch.
4488 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4489
cb123844
RG
44902003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4491
4492 * MAINTAINERS (write after approval): Add myself.
4493
1bb792e9
JB
44942003-06-03 Jim Blandy <jimb@redhat.com>
4495
4496 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4497 elements of gregset_t are 64 bits each, but access registers
4498 are still 32 bits, so they're packed two per gregset_t
4499 element. Unpack/pack them properly.
4500
aee8d8ba
DC
45012003-06-02 David Carlton <carlton@bactrian.org>
4502
4503 * linespec.c (find_methods): Break out code into
4504 add_matching_methods and add_constructors.
4505 (add_matching_methods): New.
4506 (add_constructors): Ditto.
4507
bf7488d2
AC
45082003-06-02 Andrew Cagney <cagney@redhat.com>
4509
bf7488d2
AC
4510 * sparc-tdep.c (sparc_print_registers): Delete call to
4511 REGISTER_CONVERTIBLE.
4512 (sparc_gdbarch_init): Do not set register_convertible.
4513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4514 * frv-tdep.c (frv_gdbarch_init): Ditto.
4515 * cris-tdep.c (cris_gdbarch_init): Ditto.
4516
adedef68
EZ
45172003-06-02 Elena Zannoni <ezannoni@redhat.com>
4518
8ffd9b1b 4519 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
4520 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4521 (syms_from_objfile): Ditto.
4522
650fcc91
AS
45232003-06-03 Andreas Schwab <schwab@suse.de>
4524
4525 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4526 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4527
df4a182b
RH
45282003-06-02 Richard Henderson <rth@redhat.com>
4529
4530 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4531 a member of all_reggroup.
4532
c483c494
RH
45332003-06-02 Richard Henderson <rth@redhat.com>
4534
4535 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4536 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4537 (alpha_lds, alpha_sts): New.
4538 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 4539 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
4540 restructure and fail for type sizes other than 4 or 8.
4541 (alpha_value_to_register): Similarly.
4542 (alpha_extract_return_value): Use alpha_sts.
4543 (alpha_store_return_value): Use alpha_lds.
4544 (alpha_gdbarch_init): Update hooks.
4545
b38b6be2
RH
45462003-06-02 Richard Henderson <rth@redhat.com>
4547
4548 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4549 regnum identifiers.
4550 (alpha_sigtramp_register_address): Likewise.
4551
98a8e1e5
RH
45522003-06-02 Richard Henderson <rth@redhat.com>
4553
4554 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4555 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4556 * alpha-tdep.h: Declare them.
4557
4558 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4559 Remove zerobuf. Don't error on UNIQUE.
4560 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4561 (ALPHA_REGSET_UNIQUE): Provide default.
4562 (supply_gregset): Use alpha_supply_int_regs.
4563 (fill_gregset): Use alpha_fill_int_regs.
4564 (supply_fpregset): Use alpha_supply_fp_regs.
4565 (fill_fpregset): Use alpha_fill_fp_regs.
4566 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4567 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4568 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4569 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4570 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4571 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4572
67dfac52
RH
45732003-06-02 Richard Henderson <rth@redhat.com>
4574
f75d70cc
RH
4575 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4576
67dfac52
RH
4577 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4578 (alpha_store_return_value): Likewise.
4579
0cf566ec
DC
45802003-06-02 David Carlton <carlton@math.stanford.edu>
4581
4582 * block.c (contained_in): Add 'const' to arguments.
4583 (block_function): Ditto.
4584 * block.h: Update declarations for block_function and
4585 contained_in.
4586
cdef89d0
DC
45872003-06-02 David Carlton <carlton@math.stanford.edu>
4588
4589 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4590 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4591 * p-valprint.c (pascal_val_print): Ditto.
4592 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4593
72667056
RH
45942003-06-02 Richard Henderson <rth@redhat.com>
4595
98a8e1e5
RH
4596 * alpha-tdep.c (alpha_push_dummy_call): Use
4597 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 4598
8ffd9b1b 4599 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
4600 sign-extension of 32-bit values.
4601 (alpha_store_return_value): Similarly.
0ede8eca 4602
98a8e1e5
RH
4603 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4604 (alpha_extract_return_value): Likewise.
4605 (alpha_store_return_value): Likewise.
7b5e1cb3 4606
98a8e1e5
RH
4607 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4608 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 4609
98a8e1e5
RH
4610 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4611 (alpha_extract_struct_value_address): Likewise.
4612 (alpha_store_return_value): Likewise.
4613 (alpha_store_struct_return): Remove.
4614 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 4615
98a8e1e5
RH
4616 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4617 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4618 macros where appropriate.
4619 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4620 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 4621
98a8e1e5
RH
4622 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4623 for SP, GP; void_func_ptr for PC; non-language-specific types
4624 for all others.
4625 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 4626
6dd77b81
RH
46272003-06-02 Richard Henderson <rth@redhat.com>
4628
4629 * top.h (lim_at_start): Declare.
4630 * main.c (captured_main): Set it.
4631 * top.c (lim_at_start): Define.
4632 (command_loop): Use it instead of &environ.
4633 * event-top.c (command_handler): Likewise.
4634
f4dbdb54
JT
46352003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4636
4637 * mipsnbsd-tdep.c: Update copyright years.
4638 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4639
8f285956
RH
46402003-06-01 Richard Henderson <rth@redhat.com>
4641
98a8e1e5
RH
4642 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4643 (alpha-linux-tdep.o): Update dependencies.
4644 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4645 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 4646
615967cb
RH
46472003-06-01 Richard Henderson <rth@redhat.com>
4648
98a8e1e5
RH
4649 * alpha-tdep.c (alpha_register_reggroup_p): New.
4650 (alpha_gdbarch_init): Register it.
615967cb 4651
b59661bd
AC
46522003-06-02 Andrew Cagney <cagney@redhat.com>
4653
4654 * dwarfread.c: Eliminate "register"
4655 (decode_die_type): Eliminate assignment within "if".
4656 (struct_type, decode_array_element_type): Ditto.
4657 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4658 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4659 (decode_modified_type, completedieinfo): Ditto.
4660 * block.c: Eliminate "register".
4661 (blockvector_for_pc_sect): Eliminate assignment within "if".
4662 * cp-support.h (struct symbol): Opaque declaration.
4663 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4664
5ef165c2
RH
46652003-06-01 Richard Henderson <rth@redhat.com>
4666
98a8e1e5
RH
4667 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4668 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 4669
143985b7
AF
46702003-06-01 Adam Fedor <fedor@gnu.org>
4671
4672 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4673 * gdbarch.[ch]: Regenerate.
4674 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4675 (hppa_gdbarch_init): Set it in the gdbarch vector.
4676 * i386-tdep.c (i386_fetch_pointer_argument): New
4677 (i386_gdbarch_init): Set it into gdbarch.
4678 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4679 (rs6000_gdbarch_init): Set it in gdbarch.
4680 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4681 (sparc_gdbarch_init): Set it in gdbarch.
4682
ae0167b9
AC
46832003-06-01 Andrew Cagney <cagney@redhat.com>
4684
7c0b4a20
AC
4685 * defs.h (extract_address): Delete declaration.
4686 * findvar.c (extract_address): Delete function.
4687 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4688 extract_address with the inline equivalent,
4689 extract_unsigned_integer.
4690 (xstormy16_extract_struct_value_address): Ditto.
4691 (xstormy16_pointer_to_address): Ditto.
4692 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4693 * v850-tdep.c (v850_push_arguments): Ditto.
4694 (v850_extract_return_value): Ditto.
4695 (v850_extract_struct_value_address): Ditto.
4696 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
4697 (sparcnbsd_get_longjmp_target_64): Ditto.
4698 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
4699 (get_longjmp_target): Ditto.
4700 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
4701 (sh64_extract_struct_value_address): Ditto.
4702 (sh_push_arguments): Ditto.
4703 (sh64_push_arguments): Ditto.
4704 * remote-vxsparc.c (vx_read_register): Ditto.
4705 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
4706 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
4707 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
4708 * mipsv4-nat.c (get_longjmp_target): Ditto.
4709 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
4710 * mips-nat.c (get_longjmp_target): Ditto.
4711 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
4712 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
4713 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
4714 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
4715 * irix5-nat.c (get_longjmp_target): Ditto.
4716 * irix4-nat.c (get_longjmp_target): Ditto.
4717 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
4718 (ia64_push_arguments): Ditto.
4719 * hpux-thread.c (hpux_thread_store_registers): Ditto.
4720 * h8300-tdep.c (h8300_push_arguments): Ditto.
4721 (h8300_store_return_value): Ditto.
4722 (h8300_extract_struct_value_address): Ditto.
4723 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
4724 (frv_push_arguments): Ditto.
4725 * avr-tdep.c (avr_pointer_to_address): Ditto.
4726 (avr_push_arguments): Ditto.
4727 * arm-tdep.c (arm_push_dummy_call): Ditto.
4728 (arm_get_longjmp_target): Ditto.
4729 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4730 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
4731 (alpha_get_longjmp_target): Ditto.
4732
ae0167b9
AC
4733 * solib-irix.c (extract_mips_address): Inline extract_address,
4734 replacing it with extract_signed_integer.
4735 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4736 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
4737 (first_link_map_member, open_symbol_file_object): Ditto.
4738 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
4739 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
4740 (LM_NEXT, LM_NAME): Ditto.
4741
44d88583
RH
47422003-06-01 Richard Henderson <rth@redhat.com>
4743
98a8e1e5
RH
4744 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
4745 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
4746 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
4747 (alpha_cannot_store_register): Likewise.
4748 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
4749 * alpha-nat.c (supply_gregset): Likewise.
4750 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 4751
310e9b6a
AC
47522003-06-01 Andrew Cagney <cagney@redhat.com>
4753
4754 * infcall.c (call_function_by_hand): Update comment on
4755 DEPRECATED_DUMMY_WRITE_SP.
4756
4757 * mips-tdep.c (mips_gdbarch_init): Do not set
4758 deprecated_dummy_write_sp.
4759 (mips_eabi_push_dummy_call): Set the SP register.
4760 (mips_o64_push_dummy_call): Set the SP register.
4761 (mips_o32_push_dummy_call): Set the SP register.
4762 (mips_n32n64_push_dummy_call): Set the SP register.
4763
5ab84872
RH
47642003-06-01 Richard Henderson <rth@redhat.com>
4765
98a8e1e5
RH
4766 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
4767 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
4768 (supply_gregset): Likewise.
4769 * alpha-tdep.c (alpha_store_return_value): Likewise.
4770 (alpha_get_longjmp_target): Likewise.
4771 (alpha_register_name): Constify array.
4772 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
4773 deprecated_register_size, deprecated_register_bytes,
4774 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
4775 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
4776 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 4777
09cc52fd
RH
47782003-06-01 Richard Henderson <rth@redhat.com>
4779
4780 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
4781 from arg_reg_buffer to regcache to avoid double conversion.
4782
c7f16359
MK
47832003-06-01 Mark Kettenis <kettenis@gnu.org>
4784
4785 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
4786 SP_REGNUM.
4787 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
4788 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
4789
7131cb6e
RH
47902003-06-01 Richard Henderson <rth@redhat.com>
4791
98a8e1e5
RH
4792 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
4793 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 4794
f3e0f90b
RH
47952003-06-01 Richard Henderson <rth@redhat.com>
4796
98a8e1e5
RH
4797 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
4798 not overlapping PC_REGNUM.
f3e0f90b 4799
c88e30c0
RH
48002003-06-01 Richard Henderson <rth@redhat.com>
4801
98a8e1e5
RH
4802 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
4803 alpha_push_arguments. Don't dump argument register data to
4804 the target stack. Fix float and 128-bit long double semantics.
4805 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
4806 (alpha_fix_call_dummy): Remove.
4807 (alpha_call_dummy_words): Remove.
4808 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 4809
f1a559ae
RH
48102003-06-01 Richard Henderson <rth@redhat.com>
4811
4812 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
4813
5e045346
AC
48142003-06-01 Andrew Cagney <cagney@redhat.com>
4815
95404a3e
AC
4816 * mips-tdep.c (is_mips16_addr): New function.
4817 (make_mips16_addr, unmake_mips16_addr): New functions.
4818 (pc_is_mips16, mips_fetch_instruction): Use.
4819 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
4820 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
4821 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
4822 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
4823 TARGET_MIPS.
4824 * config/mips/tm-mips.h: Update copyright.
4825 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
4826 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
4827 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
4828 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
4829 (TM_PRINT_INSN_MACH): Delete.
4830 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
4831
5e045346
AC
4832 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
4833 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
4834 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
4835 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
4836 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
4837 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
4838 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
4839 mips*-*-riscos* and mips*-*-sysv* onto mips.
4840 * config/mips/mips64.mt: New file.
4841 * config/mips/mips.mt: New file.
4842 * config/mips/littlemips.mt: Delete file.
4843 * config/mips/decstation.mt: Delete file.
4844 * config/mips/vr4300el.mt: Delete file.
4845 * config/mips/vr5000el.mt: Delete file.
4846 * config/mips/vr5000.mt: Delete file.
4847 * config/mips/vr4100.mt: Delete file.
4848 * config/mips/vr4xxxel.mt: Delete file.
4849 * config/mips/vr4300.mt: Delete file.
4850 * config/mips/vr4xxx.mt: Delete file.
4851 * config/mips/bigmips.mt: Delete file.
4852 * config/mips/bigmips64.mt: Delete file.
4853 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
4854 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
4855 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
4856 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
4857 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
4858 "tm-bigmips.h".
4859 * config/mips/tm-irix3.h: Ditto.
4860 * config/mips/tm-mipsv4.h: Ditto.
4861 * config/mips/tm-embed.h: Ditto.
4862 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
4863 "tm-bigmips64.h".
4864 * config/mips/tm-vr5000el.h: Delete file.
4865 * config/mips/tm-tx39l.h: Delete file.
4866 * config/mips/tm-vr4300el.h: Delete file.
4867 * config/mips/tm-vr4xxxel.h: Delete file.
4868 * config/mips/tm-vr4300.h: Delete file.
4869 * config/mips/tm-vr4100.h: Delete file.
4870 * config/mips/tm-vr4xxx.h: Delete file.
4871 * config/mips/tm-vr5000.h: Delete file.
4872 * config/mips/tm-embedl64.h: Delete file.
4873 * config/mips/tm-embedl.h: Delete file.
4874 * config/mips/tm-embed64.h: Delete file.
4875 * config/mips/tm-bigmips64.h: Delete file.
4876 * config/mips/tm-bigmips.h: Delete file.
4877
2473a4a9
MK
48782003-06-01 Mark Kettenis <kettenis@gnu.org>
4879
97a5b208
MK
4880 Fix gdb/1216.
4881 * shnbsd-nat.c: Include "sh-tdep.h".
4882
2473a4a9
MK
4883 From Richard Henderson <rth@redhat.com>:
4884 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
4885
e0f7ec59
AC
48862003-05-31 Andrew Cagney <cagney@redhat.com>
4887
4888 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
4889 forward declaration.
4890 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4891 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
4892 (mips_find_saved_regs): Use set_reg_offset.
4893 (mips_frame_init_saved_regs): Delete function.
4894 (mips_pop_frame): Call mips_find_saved_regs instead of
4895 DEPRECATED_FRAME_INIT_SAVED_REGS.
4896
68dcc709
AC
48972003-05-31 Andrew Cagney <cagney@redhat.com>
4898
4899 * mips-tdep.c (mips_gdbarch_init): Do not set
4900 deprecated_max_register_raw_size, register_virtual_size, and
4901 deprecated_max_register_virtual_size.
4902
cfc14b3a
MK
49032003-05-31 Mark Kettenis <kettenis@gnu.org>
4904
6405b0a6
MK
4905 * i386-tdep.c: Include "dwarf2-frame.h".
4906 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
4907 * Makefile.in (i386-tdep.o): Update dependencies.
4908
cfc14b3a
MK
4909 * dwarf2-frame.c, dwarf2-frame.h: New files.
4910 * Makefile.in (SFILES): Add dwarf2-frame.c.
4911 (dwarf2_frame_h): Define.
4912 (COMMON_OBS): Add dwarf2-frame.o.
4913 (dwarf2-frame.o): Add dependencies.
4914
6a2751d2
AJ
49152003-05-31 Andreas Jaeger <aj@suse.de>
4916
4917 * x86-64-linux-nat.c: Fix comment.
4918
1c3545ae
MK
49192003-05-31 Mark Kettenis <kettenis@gnu.org>
4920
10f93086
MK
4921 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
4922 function signature.
4923
1c3545ae
MK
4924 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
4925 have a sigcontext_addr handler.
4926 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
4927 sigcontext_addr handler.
4928
e11c53d2
AC
49292003-05-31 Andrew Cagney <cagney@redhat.com>
4930
4931 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
4932 (print_fp_register_row): Replace do_fp_register_row.
4933 (mips_print_fp_register): Add "file" and "frame" parameters.
4934 (mips_print_register): Add "file" and "frame" parameters.
4935 (mips_print_registers_info): Replace mips_do_registers_info.
4936 (mips_gdbarch_init): Set print_registers_info instead of
4937 deprecated_do_registers_info.
4938 (mips_read_fp_register_single): Add "frame" parameter.
4939 (mips_read_fp_register_double): Add "frame" parameter.
4940
a3386186
MK
49412003-05-31 Mark Kettenis <kettenis@gnu.org>
4942
70913449
MK
4943 * i386-tdep.c (i386_register_name): Check for MMX registers first.
4944 Fixes a bug where GDB would print the wrong register names for
4945 targets without SSE.
4946
2b5e0749
MK
4947 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
4948 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4949 registers.
4950
4951 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
4952 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
4953 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4954 TDEP->sc_sp_offset.
4955
a3386186
MK
4956 From Michal Ludvig <mludvig@suse.cz>:
4957 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
4958 and `sc_num_regs'.
4959 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
4960 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
4961 I386_ST0_REGNUM): Move here from...
4962 * i386-tdep.c: ... here.
4963 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
4964 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
4965 registers if possible.
4966 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
4967 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
4968 Remove variables.
4969 (i386bsd_sc_reg_offset): New variable.
4970 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
4971 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4972 TDEP->sc_sp_offset.
4973 (i386fbsd_sc_reg_offset): New variable.
4974 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
4975 TDEP->sc_num_regs.
4976 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
4977 variables.
4978 (i386fbsd4_sc_reg_offset): New variable.
4979 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
4980 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4981 TDEP->sc_sp_offset.
4982 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
4983 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
4984 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
4985 Remove variables.
4986 (i386nbsd_sc_reg_offset): New variable.
4987 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
4988 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4989 TDEP->sc_sp_offset.
4990 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
4991 Remove variables.
4992 (i386obsd_sc_reg_offset): New variable.
4993 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
4994 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
4995 TDEP->sc_sp_offset.
4996 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
4997 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
4998 for frame pointer offset in `struct sigcontext'.
4999
25ab4790
AC
50002003-05-31 Andrew Cagney <cagney@redhat.com>
5001
5002 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5003 architecture methods call_dummy_words, sizeof_call_dummy_words,
5004 push_return_address, store_struct_return, and fix_call_dummy. Set
5005 push_dummy_call instead of deprecated_push_arguments.
5006 (mips_store_struct_return): Delete function.
5007 (mips_fix_call_dummy): Delete function.
5008 (mips_push_return_address): Delete function.
5009 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5010 RA_REGNUM and T9_REGNUM.
5011 (mips_n32n64_push_dummy_call): Ditto for
5012 mips_n32n64_push_arguments.
5013 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5014 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5015
6a65450a
AC
50162003-05-31 Andrew Cagney <cagney@redhat.com>
5017
5018 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5019 "dummy_addr" to "bp_addr".
5020 * infcall.c (call_function_by_hand): Pass "funaddr" to
5021 gdbarch_push_dummy_call.
5022 * gdbarch.h, gdbarch.c: Re-generate.
5023 * i386-tdep.c (i386_push_dummy_call): Update.
5024 * arm-tdep.c (arm_push_dummy_call): Update.
5025 * d10v-tdep.c (d10v_push_dummy_call): Update.
5026
c4f35dd8
MK
50272003-05-31 Mark Kettenis <kettenis@gnu.org>
5028
5029 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5030 variable declarations.
5031 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5032 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5033 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5034 x86_64_init_frame_pc, x86_64_init_frame_pc,
5035 x86_64_function_has_prologue): Remove prototypes.
5036 (X86_64_NUM_GREGS): New define.
5037 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5038 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5039 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5040 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5041 XMM1_REGNUM): Remove defines.
5042 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5043 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5044 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5045 X86_64_XMM1_REGNUM): New defines.
5046 (struct x86_64_register_info): Renamed from `struct
5047 register_info'. Remove `size' member.
5048 (x86_64_register_info_table): Remove variable.
5049 (x86_64_register_info): New variable.
5050 (X86_64_NUM_REGS): New define.
5051 (X86_64_NUM_GREGS): Remove define.
5052 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5053 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5054 Remove variables.
5055 (x86_54_dwarf2_reg_to_regnum): Remove function.
5056 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5057 (x86_64_dwarf_reg_to_regnum): New function.
5058 (x86_64_register_name): Rewrite.
5059 (x86_64_register_raw_size): Remove function.
5060 (x86_64_register_byte_table): Remove variable.
5061 (x86_64_register_byte): Remove function.
5062 (x86_64_register_virtual_type): Remove function.
5063 (x86_64_register_type): New function.
5064 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5065 x86_64_register_convert_to_raw): Remove functions.
5066 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5067 (x86_64_use_struct_convention): Make static. Adjust for renamed
5068 defines.
5069 (x86_64_frame_init_saved_regs): Remove function.
5070 (x86_64_push_arguments): Make static. Change to accept a regcache
5071 as argument.
5072 (x86_64_store_return_value, x86_64_extract_return_value): Make
5073 static. Rewrite based on i386 counterparts.
5074 (x86_64_push_dummy_call): New function.
5075 (X86_64_NUM_SAVED_REGS): New define.
5076 (x86_64_register_number): Remove function.
5077 (x86_64_store_struct_return): Remove function.
5078 (x86_64_frameless_function_invocation,
5079 x86_64_function_has_prologue): Remove functions.
5080 (PROLOG_BUFSIZE): Remove define.
5081 (struct x86_64_frame_cache): New structure.
5082 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5083 x86_64_frame_cache, x86_64_frame_this_id,
5084 x86_64_frame_prev_register, x86_64_frame_p,
5085 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5086 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5087 functions.
5088 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5089 variables.
5090 (x86_64_skip_prologue): Rewrite in terms of
5091 x86_64_analyze_prologue.
5092 (x86_64_frame_base_address): New function.
5093 (x86_64_frame_base): New variable.
5094 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5095 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5096 set deprecated_fp_regnum, deprecated_register_size,
5097 deprecated_register_bytes, register_raw_size, register_byte,
5098 register_virtual_type, register_convertiable,
5099 register_convert_to_virtual, convert_to_raw,
5100 deprecated_get_saved_register, deprecated_target_read_fp,
5101 deprecated_push_arguments, deprecated_push_return_address,
5102 deprecated_pop_frame, deprecated_store_struct_return,
5103 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5104 frameless_function_invocation, deprecated_frame_saved_pc,
5105 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5106 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5107 deprecated_init_frame_pc and virtual_frame_pointer. Call
5108 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5109 and x86_64_frame_p. Call frame_base_set_default to register
5110 x86_64_frame_base.
5111 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5112 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5113 (_initialize_x86_64_tdep): Remove function.
5114 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5115 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5116 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5117 define.
5118 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5119 (x86_64_linux_sigcontext_addr): Rewrite.
5120 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5121 x86_64_linux_frame_saved_pc): Remove functions.
5122 (x86_64_linux_pc_in_sigtramp): Renamed from
5123 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5124 trampoline.
5125 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5126 Remove_functions.
5127 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5128 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5129 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5130 (x86_64_regmap): Rename to regmap.
5131 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5132 x86_64_num_gregs.
5133 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5134 x86_64_regmap.
5135 (x86_64_fxsave_offset): Remove function.
5136 (supply_fpregset): Simply call x86_64_supply_fxsave.
5137 (fill_fpregset): Simply call x86_64_fill_fxsave.
5138 (fetch_inferior_registers, store_inferior_registers): Avoid
5139 asignment in if-statement.
5140 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5141 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5142 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5143 (fetch_core_registers): Remove function.
5144 (linux_elf_core_fns): Remove.
5145 (offsetoff): Don't define.
5146 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5147 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5148 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5149 add core-regset.o.
5150 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5151 protection against multiple includes instead of NM_X86_64_h. Add
5152 various comments. Include "config/nm-linux.h". Don't include
5153 <signal.h>.
5154 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5155 GET_THREAD_SIGNALS): Remove defines.
5156 (x86_64_register_u_addr, kernel_u_size,
5157 lin_thread_get_thread_signals): Remove prototypes.
5158 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5159 [HAVE_LINK_H]: Don't include "solib.h".
5160 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5161 * config/i386/tm-x86-64linux.h: Fix comments.
5162 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5163 x86-64-tdep.o): Update dependencies.
5164
c25083af
AC
51652003-05-30 Andrew Cagney <cagney@redhat.com>
5166
c8f55a7b
AC
5167 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5168 Change parameter type to a "struct regcache *".
5169
c25083af
AC
5170 * gdbarch.sh: Regardless of the multi-arch level, always define
5171 the macro when not already defined.
5172 * gdbarch.h, gdbarch.c: Re-generate.
5173
fbe586ae
RH
51742003-05-30 Richard Henderson <rth@redhat.com>
5175
5176 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5177 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5178 (alpha_mdebug_frame_this_id): Likewise.
5179 (alpha_mdebug_frame_prev_register): Likewise.
5180 (alpha_mdebug_frame_base_address): Likewise.
5181 (alpha_mdebug_frame_locals_address): Likewise.
5182 (alpha_mdebug_frame_args_address): Likewise.
5183 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5184 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5185 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5186 loop increment.
5187 (alpha_heuristic_frame_this_id): Make static.
5188 (alpha_heuristic_frame_prev_register): Likewise.
5189 (alpha_heuristic_frame_base_address): Likewise.
5190 * alpha-tdep.h: Update.
5191
acd5c798
MK
51922003-05-30 Mark Kettenis <kettenis@gnu.org>
5193
5194 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5195 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5196 defenitions.
5197 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5198 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5199 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5200 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5201 I386_ST0_REGNUM): New defines.
5202 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5203 codestream_get): Remove define.
5204 (codestream_next_addr, condestream_addr, condestream_buf,
5205 codestream_off, codestream_cnt): Remove variables.
5206 (codestream_fill, codestream_seek, codestream_read): Remove
5207 functions.
5208 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5209 functionality.
5210 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5211 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5212 i386_frame_saved_pc, i386_saved_pc_after_call,
5213 i386_frame_num_args, i386_frame_init_saved_regs,
5214 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5215 i386_push_arguments): Remove functions.
5216 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5217 functionality. Use i386_analyze_prologue instead of
5218 i386_get_frame_setup.
5219 (I386_NUM_SAVED_REGS): New define.
5220 (struct i386_frame_cache): New structure.
5221 (i386_alloc_frame_cache, i386_analyze_struct_return,
5222 i386_skip_probe, i386_analyze_frame_setup,
5223 i386_analyze_register_saves, i386_analyze_prologue,
5224 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5225 i386_frame_prev_register, i386_sigtramp_frame_cache,
5226 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5227 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5228 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5229 New functions.
5230 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5231 New variables.
5232 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5233 I386_EAX_REGNUM and I386_EDX_REGNUM.
5234 (i386_extract_return_value, i386_store_return_value): Use
5235 I386_ST0_REGNUM where appropriate.
5236 (i386_extract_struct_value_address): Rewrite to use extract_address.
5237 (i386_svr4_pc_in_sigtramp): Add comment.
5238 (i386_svr4_sigcontext_addr): Rewrite.
5239 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5240 TDEP->sc_sp_offset.
5241 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5242 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5243 of new defines. Set push_dummy_call, don't set
5244 deprecated_push_arguments, deprecated_push_return_address,
5245 deprecated_pop_frame. Don't set parm_boundary. Don't set
5246 deprecated_frame_chain, deprecated_frame_saved_pc,
5247 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5248 save_dummy_frame_tos, unwind_pc. Call
5249 frame_unwind_append_predicate and frame_base_set_default. Don't
5250 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5251 Don't set frameless_function_invocation. Don't set
5252 deprecated_register_bytes, deprecated_register_size,
5253 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5254 * i386-linux-tdep.c: Fix formatting in some comments.
5255 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5256 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5257 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5258 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5259 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5260 redundant parentheses.
5261 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5262 (i386_linux_sigcontext_addr): Use it. Rewrite.
5263 (find_minsym_and_objfile): Change name of second argument.
5264 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5265 changed. Use frame_pc_unwind instead of
5266 DEPRECATED_SAVED_PC_AFTER_CALL.
5267 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5268 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5269 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5270 unwinder.
5271 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5272 "dummy-frame.h".
5273 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5274 (_initialize_i386_cygwin_tdep): New prototype.
5275 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5276 deprecated_frame_chain_valid.
5277 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5278 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5279 Rely on the SVR4 defaults.
5280 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5281 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5282
c89b70f1
AC
52832003-05-30 Andrew Cagney <cagney@redhat.com>
5284
5285 * infcall.c (call_function_by_hand): Always call
5286 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5287
85b32d22
RH
52882003-05-30 Richard Henderson <rth@redhat.com>
5289
c89b70f1
AC
5290 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5291 increment.
85b32d22 5292
bfe51b1e
JB
52932003-05-29 Jim Blandy <jimb@redhat.com>
5294
5295 Use gdbarch methods for solib stuff on PowerPC Linux.
5296 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5297 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5298 show through.
5299 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5300 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5301 giving the same effect as the #definitions above.
5302
1abf022c
AF
53032003-05-29 Adam Fedor <fedor@gnu.org>
5304
5305 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5306 (find_implementation_from_class): Replace it with the standard
5307 case i.e. do nothing.
5308
d2427a71
RH
53092003-05-29 Richard Henderson <rth@redhat.com>
5310
5311 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5312 (alpha_linux_sigtramp_offset): Use it. Make static.
5313 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5314 update for new frame model.
5315 * alpha-mdebug-tdep.c: New file.
5316 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5317 (alpha_osf1_init_abi): Install it.
5318 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5319 (linked_proc_desc_table): Remove.
5320 (alpha_frame_past_sigtramp_frame): Remove.
5321 (alpha_dynamic_sigtramp_offset): Remove.
5322 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5323 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5324 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5325 (push_sigtramp_desc): Remove.
5326 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5327 (alpha_cannot_store_register): Likewise.
5328 (alpha_sigcontext_addr): Remove.
5329 (alpha_find_saved_regs): Remove.
5330 (alpha_frame_init_saved_regs): Remove.
5331 (alpha_init_frame_pc_first): Remove.
5332 (read_next_frame_reg): Remove.
5333 (alpha_frame_saved_pc): Remove.
5334 (alpha_saved_pc_after_call): Remove.
5335 (temp_proc_desc, temp_saved_regs): Remove.
5336 (alpha_about_to_return): Remove.
5337 (cached_proc_desc): Remove.
5338 (alpha_frame_chain): Remove.
5339 (alpha_print_extra_frame_info): Remove.
5340 (alpha_init_extra_frame_info): Remove.
5341 (alpha_frame_locals_address): Remove.
5342 (alpha_frame_args_address): Remove.
5343 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5344 (alpha_push_dummy_frame): Remove.
5345 (alpha_pop_frame): Remove.
5346 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5347 (alpha_read_insn): New.
5348 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5349 for different insn encodings.
5350 (alpha_in_lenient_prologue): Remove.
5351 (struct alpha_sigtramp_unwind_cache): New.
5352 (alpha_sigtramp_frame_unwind_cache): New.
5353 (alpha_sigtramp_register_address): New.
5354 (alpha_sigtramp_frame_this_id): New.
5355 (alpha_sigtramp_frame_prev_register): New.
5356 (alpha_sigtramp_frame_unwind): New.
5357 (alpha_sigtramp_frame_p): New.
5358 (struct alpha_heuristic_unwind_cache): New.
5359 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5360 don't count nop insns that occur between functions.
5361 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5362 heuristic_proc_desc, but without the mdebug wrapping.
5363 (alpha_heuristic_frame_this_id): New.
5364 (alpha_heuristic_frame_prev_register): New.
5365 (alpha_heuristic_frame_unwind): New.
5366 (alpha_heuristic_frame_p): New.
5367 (alpha_heuristic_frame_base_address): New.
5368 (alpha_heuristic_frame_base): New.
5369 (alpha_unwind_dummy_id): New.
5370 (alpha_unwind_pc): New.
5371 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5372 frame related deprecated initializations; install replacements.
5373 (alpha_dump_tdep): Remove.
5374 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5375 (alpha_read_insn, alpha_after_prologue,
5376 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5377 alpha_heuristic_frame_prev_register,
5378 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5379 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5380 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5381 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5382
93ec1121
AC
53832003-05-29 Andrew Cagney <cagney@redhat.com>
5384
5385 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5386 dependant on the availability of ASSERT_FUNCTION.
5387 (ASSERT_FUNCTION): Do not define when there is no function name.
5388
98f08d3d
KB
53892003-05-29 Kevin Buettner <kevinb@redhat.com>
5390
5391 From Jimi X <jimix@watson.ibm.com>:
5392 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5393
0897f59b
JB
53942003-05-28 Jim Blandy <jimb@redhat.com>
5395
5396 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5397 argument to ptrace to int; the system headers should give it the
5398 right type, and pointers don't fit in ints on powerpc64-*-*.
5399
14898363
L
54002003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5401
5402 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5403 DW_TAG_catch_block.
5404
a7a48797
EZ
54052003-05-26 Elena Zannoni <ezannoni@redhat.com>
5406
5407 * stabsread.c (dbx_lookup_type): Make static.
5408 (read_type): Ditto.
5409 (add_undefined_type): Ditto.
5410 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5411 not export.
5412
f5479e9c
EZ
54132003-05-26 Elena Zannoni <ezannoni@redhat.com>
5414
5415 * hpread.c (hpread_has_name): Make static.
5416 (hpread_psymtab_to_symtab): Ditto.
5417 (file_exists): Ditto.
5418 (hpread_call_pxdb): Ditto.
5419 (hpread_pxdb_needed): Ditto.
5420 (hpread_quick_traverse): Ditto.
5421 (hpread_get_header): Ditto.
5422 (hpread_get_lntt): Ditto.
5423 (hpread_get_slt): Ditto.
5424 (class_of): Ditto.
5425
eb2e12d7
AS
54262003-05-25 Andreas Schwab <schwab@suse.de>
5427
78bf922a
AS
5428 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5429 stack_align and deprecated_extra_stack_alignment_needed.
5430 (m68k_stack_align): Delete.
5431
eb2e12d7
AS
5432 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5433 (m68k_register_virtual_size): Likewise.
5434 (altos_skip_prologue): Remove obsolete function.
5435 (isi_frame_num_args): Likewise.
5436 (news_frame_num_args): Likewise.
5437 (m68k_fix_call_dummy): Make static.
5438 (m68k_push_dummy_frame): Likewise.
5439 (m68k_pop_frame): Likewise.
5440 (m68k_skip_prologue): Likewise.
5441 (m68k_frame_init_saved_regs): Likewise.
5442 (m68k_saved_pc_after_call): Likewise.
5443 (m68k_get_longjmp_target): Make multi-arch.
5444 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5445 structure. Register m68k_get_longjmp_target if enabled.
5446 * m68k-tdep.h (struct gdbarch_tdep): Define.
5447 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5448
5449 * Makefile.in (config.status): Also depend on configure.tgt
5450 and configure.host.
5451 (m68klinux-tdep.o): Update dependencies.
5452 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5453 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5454 (M68K_LINUX_JB_PC): Define.
5455 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5456 and take additional parameter.
5457 (m68k_linux_sigtramp_saved_pc): Update.
5458 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5459 m68k_linux_pc_in_sigtramp, in_plt_section,
5460 find_solib_trampoline_target.
5461 * config/m68k/tm-linux.h: Don't include any tm headers.
5462 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5463 (JB_ELEMENT_SIZE): Likewise.
5464 (JB_PC): Likewise.
5465 (GET_LONGJMP_TARGET): Likewise.
5466 (IN_SIGTRAMP): Likewise.
5467 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5468
eb2c22dc
MK
54692003-05-25 Mark Kettenis <kettenis@gnu.org>
5470
5471 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5472 (sparc32_push_arguments): Re-implement by calling
5473 sparc32_do_push_arguments.
5474
44b7b84e
MK
54752003-05-25 Mark Kettenis <kettenis@gnu.org>
5476
5477 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5478 SPARC_O1_REGNUM): New defines.
5479 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5480 (sparc32_store_return_value): New function.
5481 (sparc_extract_struct_value_address): Rewrite to operate on a
5482 regcache.
5483 (sparc_gdbarch_init): Don't set
5484 deprecated_extract_struct_value_address. Set
5485 extract_struct_value_address instead. Don't set
5486 deprecated_extract_return_value and deprecated_store_return_value
5487 for 32-bit targets. Set extract_return_value and
5488 store_return_value instead.
5489 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5490 DEPRECTAED_EXTRACT_RETURN_VALUE,
5491 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5492 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5493 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5494 (sparc_store_return_value): Remove prototype.
5495 (sparc32_store_return_value): New prototype.
5496 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5497 Adjust prototypes.
5498
f6ad61e3
MK
54992003-05-24 Mark Kettenis <kettenis@gnu.org>
5500
5501 * sparcnbsd-tdep.c: Include "gdb_string.h".
5502
b276f1bb
AC
55032003-05-23 Andrew Cagney <cagney@redhat.com>
5504
5505 * p-valprint.c (pascal_val_print): Replace extract_address with
5506 the inline equivalent extract_unsigned_integer.
5507 * jv-valprint.c (java_value_print): Ditto.
5508 * ada-valprint.c (ada_val_print_1): Ditto.
5509 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5510
e76c5fcc
TR
55112003-05-23 Theodore A. Roth <troth@openavr.org>
5512
5513 * blockframe.c (frameless_look_for_prologue): Remove unused
5514 after_prologue variable.
5515
2cdd89cb
MK
55162003-05-23 Mark Kettenis <kettenis@gnu.org>
5517
5518 * blockframe.c (get_pc_function_start): Rewrite to avoid
5519 asignments in if-statements.
5520
182d43bc
EZ
55212003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5522
5523 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 5524 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
5525 files, don't relocate absolute symbols (and do use mst_abs).
5526
e8f3fcdd
AC
55272003-05-23 Andrew Cagney <cagney@redhat.com>
5528
5529 * objc-lang.c: Include "gdb_assert.h".
5530 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5531 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5532 (gdb_check, gdb_check_fatal): Delete functions.
5533 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5534 gdb_assert.
5535 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5536 * Makefile.in (objc-lang.o): Update dependencies.
5537
3c23e6fb
ILT
55382003-05-22 Ian Lance Taylor <ian@airs.com>
5539
5540 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5541 with fprintf_filtered, not fprintf_unfiltered.
5542
af1342ab
AC
55432003-05-22 Andrew Cagney <cagney@redhat.com>
5544
5545 * stack.c (frame_info): Inline extract_address, replacing it with
5546 extract_unsigned_integer.
5547 * findvar.c (unsigned_pointer_to_address): Ditto.
5548 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5549 * dwarf2expr.c (dwarf2_read_address): Ditto.
5550 * frame.c (frame_pc_unwind): Update comment.
5551 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5552
47e242ec
JJ
55532003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5554
5555 * infptrace.c (detach): Call print_sys_errmsg rather than
5556 perror_with_name to issue warning message when errno is non-zero
5557 after calling ptrace detach.
5558
e2ac8128
JB
55592003-05-21 J. Brobecker <brobecker@gnat.com>
5560
5561 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5562 macro definitions from here...
5563 * hppa-tdep.c: ...to there.
5564
92b3541e
KB
55652003-05-20 Kevin Buettner <kevinb@redhat.com>
5566
5567 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5568 register_ptrace_addr(). Fix all callers.
5569
55809acb
AS
55702003-05-21 Andreas Schwab <schwab@suse.de>
5571
5572 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5573 dependencies.
5574 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5575 end.
5576 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5577 (_initialize_m68k_linux_tdep): New function.
5578 (m68k_linux_frame_saved_pc): Make static.
5579 (m68k_linux_extract_return_value): Likewise.
5580 (m68k_linux_store_return_value): Likewise.
5581 (m68k_linux_extract_struct_value_address): Likewise.
5582 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5583 Remove.
5584 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5585 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5586 (DEPRECATED_FRAME_SAVED_PC): Remove.
5587
0fbc10f7
KW
55882003-05-20 Kris Warkentin <kewarken@qnx.com>
5589
5590 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5591 regset numbering rather than our own.
5592
58da2eb2
DC
55932003-05-19 David Carlton <carlton@bactrian.org>
5594
5595 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5596
1fcb5155
DC
55972003-05-19 David Carlton <carlton@bactrian.org>
5598
5599 Partial fix for PR c++/827.
5600 * cp-support.h: Include symtab.h.
5601 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5602 * cp-namespace.c: Update contributors.
5603 (cp_lookup_symbol_nonlocal): New.
5604 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5605 (lookup_symbol_file): Ditto.
5606 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5607 * block.h: Declare block_scope, block_using, block_global_block.
5608 * block.c (block_scope): New.
5609 (block_using, block_global_block): Ditto.
5610 * Makefile.in (cp_support_h): Depend on symtab_h.
5611 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5612
5f9a71c3
DC
56132003-05-19 David Carlton <carlton@bactrian.org>
5614
5615 * language.h (struct language_defn): Add 'la_value_of_this'
5616 and 'la_lookup_symbol_nonlocal' members.
5617 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5618 lookup_symbol_static, lookup_symbol_global,
5619 lookup_symbol_aux_block.
5620 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5621 if we should search fields of this and how to do static/global
5622 lookup.
5623 (lookup_symbol_aux_block): Make extern.
5624 (basic_lookup_symbol_nonlocal): New.
5625 (lookup_symbol_static, lookup_symbol_global): Ditto.
5626 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5627 'la_lookup_symbol_nonlocal' members.
5628 * c-lang.c (c_language_defn, cplus_language_defn)
5629 (asm_language_defn, minimal_language_defn): Ditto.
5630 * jv-lang.c (java_language_defn): Ditto.
5631 * language.c (unknown_language_defn, auto_language_defn)
5632 (local_language_defn): Ditto.
5633 * m2-lang.c (m2_language_defn): Ditto.
5634 * objc-lang.c (objc_language_defn): Ditto.
5635 * scm-lang.c (scm_language_defn): Ditto.
5636 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5637 * p-lang.c (pascal_language_defn): Ditto for both.
5638 * Makefile.in (f-lang.o): Depend on value_h.
5639 (p-lang.o): Ditto.
5640
89a9d1b1
DC
56412003-05-19 David Carlton <carlton@bactrian.org>
5642
5643 * block.h: Declare block_static_block.
5644 * block.c (block_static_block): New.
5645 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5646 lookup_symbol_aux_local, calling block_static_block instead.
5647 (lookup_symbol_aux_local): Delete 'static_block' argument.
5648
eed3f8ab
DC
56492003-05-19 David Carlton <carlton@bactrian.org>
5650
5651 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5652
a09d8bda
ML
56532003-05-19 Michal Ludvig <mludvig@suse.cz>
5654
5655 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5656 register numbers mapping.
5657
69636828
AF
56582003-05-18 Adam Fedor <fedor@gnu.org>
5659
5660 * symtab.c (completion_list_objc_symbol): New function.
5661 (make_symbol_completion_list): Use it to add ObjC symbols
5662 when looking though the list.
5663 (language_search_unquoted_string): New function.
5664 (make_file_symbol_completion_list): Use it.
5665
55baeb84
AS
56662003-05-18 Andreas Schwab <schwab@suse.de>
5667
d0b45d99
AS
5668 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5669 dependencies.
5670 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5671 as m68k_linux_extract_return_value.
5672 (DEPRECATED_STORE_RETURN_VALUE): Define as
5673 m68k_linux_store_return_value.
5674 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5675 m68k_linux_extract_struct_value_address.
5676 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5677 get_next_frame, get_frame_base, get_frame_pc.
5678 (m68k_linux_frame_saved_pc): Use get_frame_base.
5679 (m68k_linux_extract_return_value): New function.
5680 (m68k_linux_store_return_value): New function.
5681 (m68k_linux_extract_struct_value_address): New function.
5682 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5683
55baeb84
AS
5684 * c-exp.y (typebase): Remove duplicate occurence of
5685 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 5686 of lookup_signed_typename.
55baeb84 5687
b6b08ebf
MK
56882003-05-18 Mark Kettenis <kettenis@gnu.org>
5689
5690 * dwarf2loc.c (find_location_expression): Change type of second
5691 argument to `size_t *'.
5692 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5693 for size variable.
5694
5ad1c190
DC
56952003-05-18 David Carlton <carlton@bactrian.org>
5696
5697 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
5698 'linkage_name'. Add comment.
5699 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
5700 'linkage_name'.
5701 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
5702 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
5703 (lookup_block_symbol): Ditto.
5704
b8b527c5
AC
57052003-05-16 Andrew Cagney <cagney@redhat.com>
5706
5707 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
5708 * gdbarch.h, gdbarch.c: Re-generate.
5709 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
5710 * TODO (REGISTER_BYTES): Delete reference.
5711 * alpha-tdep.c (alpha_gdbarch_init): Update.
5712 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5713 * x86-64-tdep.c (x86_64_init_abi): Update.
5714 * vax-tdep.c (vax_gdbarch_init): Update.
5715 * v850-tdep.c (v850_gdbarch_init): Update.
5716 * sparc-tdep.c (sparc_gdbarch_init): Update.
5717 * sh-tdep.c (sh_gdbarch_init): Update.
5718 * s390-tdep.c (s390_gdbarch_init): Update.
5719 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5720 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
5721 (ns32k_gdbarch_init_32382): Update.
5722 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5723 * mcore-tdep.c (mcore_gdbarch_init): Update.
5724 * m68k-tdep.c (m68k_gdbarch_init): Update.
5725 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5726 * ia64-tdep.c (ia64_gdbarch_init): Update.
5727 * i386-tdep.c (i386_gdbarch_init): Update.
5728 * i386-linux-tdep.c (i386_linux_init_abi): Update.
5729 * hppa-tdep.c (hppa_gdbarch_init): Update.
5730 * h8300-tdep.c (h8300_gdbarch_init): Update.
5731 * frv-tdep.c (frv_gdbarch_init): Update.
5732 * cris-tdep.c (cris_gdbarch_init): Update.
5733 * avr-tdep.c (avr_gdbarch_init): Update.
5734 * arm-tdep.c (arm_gdbarch_init): Update.
5735 * sparc-tdep.c (sparc_pop_frame): Update.
5736 * rs6000-tdep.c (rs6000_pop_frame): Update.
5737 * remote.c (init_remote_state): Update.
5738 (remote_prepare_to_store): Update.
5739 * remote-vx.c (vx_prepare_to_store): Update.
5740 * remote-sds.c (sds_fetch_registers): Update.
5741 (sds_prepare_to_store): Update.
5742 * remote-array.c: Update.
5743 * regcache.c (init_legacy_regcache_descr): Update.
5744 (init_regcache_descr): Update.
5745 * mips-tdep.c (mips_eabi_extract_return_value): Update.
5746 (mips_o64_extract_return_value): Update.
5747 * irix5-nat.c (fetch_core_registers): Update.
5748 * irix4-nat.c (fetch_core_registers): Update.
5749 * i386-tdep.h: Update.
5750 * hppa-tdep.c (pa_do_registers_info): Update.
5751 (pa_do_strcat_registers_info): Update.
5752 * cris-tdep.c (cris_register_bytes_ok): Update.
5753 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
5754 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
5755 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
5756 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
5757 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
5758 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
5759 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
5760 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
5761 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
5762 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
5763 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
5764 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
5765 (REGISTER_BYTES_OK): Update.
5766 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
5767 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
5768
ee2842e2
ILT
57692003-05-16 Ian Lance Taylor <ian@airs.com>
5770
5771 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
5772 (vax_print_insn, print_insn_arg): Remove static functions.
5773 (vax_gdbarch_init): Call set_gdbarch_print_insn with
5774 print_insn_vax from opcodes library.
5775 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
5776
973177d3
AC
57772003-05-15 Andrew Cagney <cagney@redhat.com>
5778
aaab4dba
AC
5779 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
5780 * target.h (memory_breakpoint_from_pc): Delete declaration.
5781 * mem-break.c (memory_breakpoint_from_pc): Delete function.
5782 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
5783 * monitor.c (monitor_insert_breakpoint): Use
5784 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
5785 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
5786 * gdbarch.h, gdbarch.c: Re-generate.
5787 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
5788 (sparc_gdbarch_init): Set breakpoint_from_pc to
5789 sparc_breakpoint_from_pc.
5790 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
5791 (BREAKPOINT_FROM_PC): Define.
5792 (sparc_breakpoint_from_pc): Declare.
5793 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
5794 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
5795 (BREAKPOINT_FROM_PC): Define.
5796 (BREAKPOINT): Delete macro.
5797 * target.h: Update comment.
5798 * s390-tdep.c (s390_gdbarch_init): Update comments.
5799 * remote.c: Update comments.
5800 * remote-mips.c: Update comments.
5801 * proc-api.c (write_with_trace): Do not check for a breakpoint.
5802 * mem-break.c: Update comment.
5803 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
5804 (ia64_memory_insert_breakpoint): Update.
5805 * config/sparc/tm-sparc.h: Update comment.
5806 * config/pa/tm-hppa64.h: Update comment.
5807 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5808 (rs6000_breakpoint_from_pc): Update.
5809 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
5810 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
5811 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
5812 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
5813 (mips_breakpoint_from_pc): Update.
5814 (mips_dump_tdep): Update.
5815
e06963ff
AC
5816 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
5817 * minsyms.c (lookup_minimal_symbol): Inline
5818 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
5819
973177d3
AC
5820 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
5821 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5822 * p-lang.c (pascal_printstr): Ditto.
5823 * objc-lang.c (objc_printstr): Ditto.
5824 * m2-lang.c (m2_printstr): Ditto.
5825 * jv-valprint.c (java_print_value_fields): Ditto.
5826 * f-lang.c (f_printstr): Ditto.
5827 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
5828 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
5829 for repeat_count_threshold.
5830 * Makefile.in (cp-valprint.o): Update dependencies.
5831
5ea2bd7f 58322003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5833
5ea2bd7f
JJ
5834 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
5835 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
5836 they start with mov r2,r12. Support skipping over indirect stores
5837 of the input registers. Upon hitting a non-nop branch instruction
5838 or predicated instruction, bail out by setting lim_pc to the current
5839 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
5840 beyond our calculated value and we have trust_limit set,
5841 use the lim_pc value.
5842
cc8c88f3
AC
58432003-05-15 Andrew Cagney <cagney@redhat.com>
5844
5845 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
5846 generic_find_dummy_frame.
5847 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
5848 (deprecated_generic_find_dummy_frame): Update.
5849 (deprecated_read_register_dummy): Update.
5850 * frame.c (deprecated_generic_get_saved_register): Update.
5851
909cd28e
TR
58522003-05-15 Theodore A. Roth <troth@openavr.org>
5853
5854 * avr-tdep.c (avr_breakpoint_from_pc): New function.
5855 (avr_gdbarch_init): Set breakpoint_from_pc method.
5856
b923b08d
AC
58572003-05-15 Andrew Cagney <cagney@redhat.com>
5858
5859 * regcache.c (build_regcache): Set deprecated_register_valid
5860 directly.
5861 (deprecated_grub_regcache_for_register_valid): Delete function.
5862 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
5863 declaration.
5864
ae2f03ac 58652003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
5866
5867 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
5868 * symtab.c (lookup_symbol_aux): Delete calls to
5869 lookup_symbol_aux_minsyms.
5870 (lookup_symbol_aux_minsyms): Comment out function and
5871 prototype. Delete lookup by mangled name.
ae2f03ac 5872
18ec9831
KB
58732003-05-14 Kevin Buettner <kevinb@redhat.com>
5874
5875 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
5876 correctly indicate an empty stack and ``stack_allocated'' to the
5877 indicate the number of elements initially allocated.
5878 (dwarf_expr_grow_stack): Simplify method for computing new
5879 stack size. Don't loop infinitely if ``stack_len'' is zero.
5880 (execute_stack_op): Move ``ctx->in_reg'' initialization
5881 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
5882 be used in conjuction with DW_OP_piece. Revise error message
5883 accordingly.
5884
de18ac1f
TR
58852003-05-14 Theodore A. Roth <troth@openavr.org>
5886
5887 * MAINTAINERS: Update my email address.
5888 * avr-tdep.c: Ditto.
5889
176620f1
EZ
58902003-05-14 Elena Zannoni <ezannoni@redhat.com>
5891
5892 * symtab.h (enum domain_enum): Rename from namespace_enum.
5893 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
5894 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
5895 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
5896 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
5897 TYPES_NAMESPACE, METHODS_NAMESPACE.
5898 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
5899 (struct symbol, struct partial_symbol): Rename field
5900 'namespace_enum namespace' to 'domain_enum domain'.
5901 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
5902 Delete old define kludge for namespace.
5903
5904 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
5905 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
5906 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
5907 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
5908 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
5909 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
5910 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
5911 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
5912 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
5913 occurrences of the above.
5914
b7f31508
ILT
59152003-05-14 Ian Lance Taylor <ian@airs.com>
5916
5917 * Makefile.in (install-only): Use $(SHELL) when running
5918 mkinstalldirs.
5919
2fdbdd39
ILT
59202003-05-13 Ian Lance Taylor <ian@airs.com>
5921
a208d82c
ILT
5922 * MAINTAINERS (write after approval): Add myself.
5923
2fdbdd39
ILT
5924 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
5925 second and third arguments.
5926 * ser-tcp.c (_initialize_ser_tcp): Likewise.
5927 * ser-unix.c (_initialize_ser_hardwire): Likewise.
5928
fbd9dcd3
AC
59292003-05-13 Andrew Cagney <cagney@redhat.com>
5930
5931 * defs.h (store_address): Delete declaration.
5932 findvar.c (store_address): Delete function.
5933 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
5934 store_unsigned_integer.
5935 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
5936 * v850-tdep.c (v850_push_arguments): Ditto.
5937 * sparc-tdep.c (sparc_get_saved_register): Ditto.
5938 * sh-tdep.c (sh64_get_saved_register): Ditto.
5939 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
5940 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
5941 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
5942 (mips_get_saved_register): Ditto.
5943 * ia64-tdep.c (ia64_get_saved_register): Ditto.
5944 (find_func_descr, ia64_push_arguments): Ditto.
5945 * i386-tdep.c (i386_push_arguments): Ditto.
5946 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5947 * frv-tdep.c (frv_push_arguments): Ditto.
5948 * frame.c (legacy_saved_regs_prev_register): Ditto.
5949 (deprecated_generic_get_saved_register): Ditto.
5950 * findvar.c (unsigned_address_to_pointer): Ditto.
5951 * dwarf2read.c (dwarf2_const_value): Ditto.
5952 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5953 * alpha-tdep.c (alpha_push_arguments): Ditto.
5954
6760f9e6
JB
59552003-05-12 J. Brobecker <brobecker@gnat.com>
5956
5957 * NEWS: Mention that the hppa-hpux port has been partially
5958 multiarched (32bit ABIT only, so far).
5959
30e221b4
AC
59602003-05-11 Andrew Cagney <cagney@redhat.com>
5961
5962 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
5963 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
5964 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
5965 sim/testsuite/sim/arm/misaligned2.ms, and
5966 sim/testsuite/sim/arm/misaligned3.ms.
5967 * disasm.h (struct ui_file): Add opaque struct declaration.
5968 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
5969 * frame.h (struct ui_file): Ditto.
5970
dea7f9ba
MK
59712003-05-11 Mark Kettenis <kettenis@gnu.org>
5972
5973 * value.h: Pretty print.
5974
01986c48
MK
59752003-05-10 Mark Kettenis <kettenis@gnu.org>
5976
5977 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
5978
123a958e
AC
59792003-05-08 Andrew Cagney <cagney@redhat.com>
5980
5981 * regcache.h (max_register_size): Delete declaration.
5982 * regcache.c (max_register_size): Delete function.
5983 (struct regcache_descr): Delete field "max_register_size".
5984 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
5985 registers fit in MAX_REGISTER_SIZE.
5986 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
5987 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
5988 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
5989 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
5990 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
5991 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
5992 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
5993 * dve3900-rom.c, hppa-tdep.c: Ditto.
5994
eb294659
DC
59952003-05-08 David Carlton <carlton@math.stanford.edu>
5996
5997 * valops.c (push_word): Fix typo.
5998
d9d9c31f
AC
59992003-05-08 Andrew Cagney <cagney@redhat.com>
6000
6001 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6002 * gdbarch.h: Re-generate.
6003 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6004 (legacy_max_register_raw_size): Delete declaration.
6005 * regcache.c (legacy_max_register_raw_size): Delete function.
6006 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6007 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6008 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6009 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6010 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6011 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6012 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6013 * findvar.c, dwarf2cfi.c: Ditto.
6014
22540ece
AC
60152003-05-08 Andrew Cagney <cagney@redhat.com>
6016
6017 * mips-tdep.c (read_signed_register): New function, moved to here
6018 from "regcache.c".
6019 (read_signed_register_pid): Ditto.
6020 * regcache.c (read_signed_register_pid): Delete function, moved to
6021 "mips-tdep.c".
6022 (read_signed_register): Ditto.
6023 * regcache.h (read_signed_register): Delete declaration.
6024 (read_signed_register_pid): Delete declaration.
6025
0c92afe8
AC
60262003-05-08 Andrew Cagney <cagney@redhat.com>
6027
6028 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6029 * gdbarch.h: Re-generate.
6030 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6031 (legacy_max_register_virtual_size): Delete declaration.
6032 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6033 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6034 * tracepoint.c (memrange_sortmerge): Ditto.
6035 * sparc-tdep.c (sparc_print_registers): Ditto.
6036 * regcache.c (legacy_max_register_virtual_size): Delete function.
6037
6037b830
JB
60382002-05-08 J. Brobecker <brobecker@gnat.com>
6039
6040 * fork-child.c (escape_bang_in_quoted_argument): New function.
6041 (fork_inferior): Escape '!' characters in quoted arguments
6042 only when needed.
6043
5d62c8b1
JB
60442003-05-08 J. Brobecker <brobecker@gnat.com>
6045
6046 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6047 the language of the CU is not currently supported by GDB.
6048
20a0e81d
JB
60492003-05-08 J. Brobecker <brobecker@gnat.com>
6050
6051 * defs.h (language): Add language_minimal enum value.
6052 * c-lang.c (minimal_language_defn): New language definition.
6053 (_initialize_c_language): Add the new minimal language to the list
6054 of languages known to GDB.
6055
710ee10a
KB
60562003-05-08 Kevin Buettner <kevinb@redhat.com>
6057
6058 * frame.c (get_frame_type): Don't attempt to lazily initialize
6059 frame's unwinder for legacy frames.
6060
1750fa04
AC
60612003-05-07 Andrew Cagney <cagney@redhat.com>
6062
6063 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6064 and "regcache" parameters.
6065 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6066
ddf9f258 60672003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6068
6069 * dwarf2read.c (dwarf_decode_lines): Only use output of
6070 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
6071 the current address.
6072
87767c29
AC
60732003-05-07 Andrew Cagney <cagney@redhat.com>
6074
6075 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6076 code.
6077
5e7b2f39
JB
60782003-05-07 Jim Blandy <jimb@redhat.com>
6079
6080 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6081 'maint info symtabs' and 'maint info psymtabs'.
6082 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6083 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6084 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6085 Declarations updated.
6086 * maint.c (maintenance_list_command): Delete.
6087 (_initialize_maint_cmds): Update calls to add_cmd.
6088 * gdbcmd.h (maintenancelistlist): Delete declaration.
6089 * cli/cli-cmds.c (maintenancelistlist): Delete.
6090 (init_cmd_lists): Don't initialize it.
6091 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6092
f6684c31
AC
60932003-05-07 Andrew Cagney <cagney@redhat.com>
6094
6095 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6096 "regcache".
6097 (d10v_print_registers_info): Update.
6098 (d10v_dmap_register, d10v_imap_register): Delete functions.
6099 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6100 and "imap_register".
6101 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6102 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6103 * arch-utils.c (generic_remote_translate_xfer_address): Add
6104 "regcache" and "gdbarch" parameters.
6105 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6106 parameter. Change class to multi-arch.
6107 * gdbarch.h, gdbarch.c: Re-generate.
6108 * remote.c (remote_xfer_memory): Use
6109 gdbarch_remote_translate_xfer_address.
8ffd9b1b 6110
e4846b08
JJ
61112003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6112
6113 * infrun.c (prev_pc): Move declaration ahead of proceed().
6114 (proceed): Refresh prev_pc value before resuming.
6115 (stop_stepping): Remove code to refresh prev_pc.
6116
6b71b8ac
KW
61172003-05-06 Kris Warkentin <kewarken@qnx.com>
6118
6119 * nto-tdep.c: Removed stray comment.
6120
47979a4b
KW
61212003-05-06 Kris Warkentin <kewarken@qnx.com>
6122
6123 * i386-nto-tdep.c: Fix old K&R function definitions.
6124 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6125 Also change add_show_from_set() call to add_setshow_cmd().
6126 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6127
00905d52
AC
61282003-05-05 Andrew Cagney <cagney@redhat.com>
6129
6130 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6131 (fprint_dummy_frames): New function.
6132 (maintenance_print_dummy_frames): New function.
6133 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6134 * frame.c (fprint_frame_id): Make global.
6135 * frame.h (fprint_frame_id): Declare.
6136 * Makefile.in (dummy-frame.o): Update dependencies.
6137
b1e29e33
AC
61382003-05-05 Andrew Cagney <cagney@redhat.com>
6139
6140 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6141 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6142 SIZEOF_CALL_DUMMY_WORDS.
6143 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6144 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6145 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6146 CALL_DUMMY_BREAKPOINT_OFFSET.
6147 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6148 CALL_DUMMY_START_OFFSET.
6149 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6150 * gdbarch.h, gdbarch.c: Re-generate.
6151 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6152 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6153 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6154 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6155 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6156 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6157 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6158 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6159 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6160 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6161 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6162 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6163 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6164 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6165 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
6166
61672003-05-05 Kris Warkentin <kewarken@qnx.com>
6168
6169 * configure.tgt: Add i[3456]86-*-nto*.
6170 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6171 * nto-tdep.c: New file. Neutrino target support routines.
6172 * nto-tdep.h: New file. Neutrino target header.
6173 * config/tm-qnxnto.h: New file.
6174 * config/i386/i386nto.mt: New file.
6175 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 6176
0ce3d317
AC
61772003-05-04 Andrew Cagney <cagney@redhat.com>
6178
6179 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6180 (load_infrun_state): Ditto.
6181 (struct thread_info): Drop "prev_func_name" field.
6182 * thread.c (load_infrun_state): Update.
6183 (save_infrun_state): Update.
6184 * infrun.c (prev_func_name): Delete variable.
6185 (init_wait_for_inferior): Do not clear prev_func_name.
6186 (stop_stepping, keep_going, context_switch): Do not swap
6187 prev_func_name.
6188 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6189 instead of PC_IN_SIGTRAMP.
6190
46654a5b
AC
61912003-05-04 Andrew Cagney <cagney@redhat.com>
6192
6193 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6194 REGISTER_BYTE with register_offset_hack.
6195 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6196 that REGISTER_BYTE is consistent with the regcache.
6197 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6198 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 6199
14b08c1b
MK
62002003-05-04 Mark Kettenis <kettenis@gnu.org>
6201
04c8243f
MK
6202 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6203 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6204
14b08c1b
MK
6205 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6206
c7a11e01
JB
62072003-05-03 J. Brobecker <brobecker@gnat.com>
6208
6209 From Thierry Schneider <tpschneider1@yahoo.com>
6210 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6211 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6212 (mi-cmd-symbol.o): Add rule.
6213
7043d8dc
AC
62142003-05-03 Andrew Cagney <cagney@redhat.com>
6215
6216 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6217 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6218 * gdbarch.h, gdbarch.c: Re-generate.
6219 * d10v-tdep.c (d10v_push_dummy_code): New function.
6220 (d10v_gdbarch_init): Set push_dummy_code.
6221 * infcall.c (legacy_push_dummy_code): New function.
6222 (generic_push_dummy_code): New function.
6223 (push_dummy_code): New function.
6224 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6225 instead of dummy_addr, to push_dummy_call. Move call to
6226 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6227 switch.
6228 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6229
92bf2b80
AC
62302003-05-03 Andrew Cagney <cagney@redhat.com>
6231
6232 * disasm.h (print_insn): Declare.
6233 * disasm.c (init_gdb_disassemble_info): New function.
6234 (gdb_disassembly): Call init_gdb_disassemble_info.
6235 (gdb_print_insn): New function.
6236 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6237 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6238 * mcore-tdep.c: Include "disasm.h"
6239 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6240 * d10v-tdep.c: Include "disasm.h".
6241 (display_trace): Call gdb_print_insn, instead of print_insn.
6242 (print_insn): Delete function.
6243 * printcmd.c: Include "disasm.h".
6244 (print_insn): Delete function.
6245 (print_formatted): Call gdb_print_insn, instead of print_insn.
6246 * Makefile.in (printcmd.o): Update dependencies.
6247 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 6248
27d94c49
AC
62492003-05-02 Andrew Cagney <cagney@redhat.com>
6250
82de1e5b
AC
6251 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6252 PC_REGNUM, re-indent.
6253 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6254 PC_REGNUM isn't set.
6255
27d94c49
AC
6256 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6257 * gdbarch.h, gdbarch.c: Re-generate.
6258 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6259 register_virtual_size, pc_regnum, or register_bytes.
6260 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6261 (d10v_register_type): Use D10V_PC_REGNUM.
6262 (d10v_print_registers_info, d10v_read_pc): Ditto.
6263 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6264 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6265
a9c0dc7f
DC
62662003-05-02 David Carlton <carlton@bactrian.org>
6267
6268 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6269 the name with mstrsave.
6270
e33d66ec
EZ
62712003-05-02 Elena Zannoni <ezannoni@redhat.com>
6272
6273 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6274 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6275 (host_charset_name, target_charset_name): New vars for use by
6276 set/show commands.
6277 (host_charset_enum, target_charset_enum): New enums for set/show
6278 commands.
6279 (set_charset_sfunc, set_host_charset_sfunc,
6280 set_target_charset_sfunc): New functions.
6281 (set_host_charset, set_target_charset): Make static.
6282 (list_charsets, set_host_charset_command,
6283 set_target_charset_command): Delete functions.
6284 (show_charset_command): Rewrite as....
6285 (show_charset): Hook this up with the set/show command mechanism.
6286 (_initialize_charset): Change names of charsets to match the
6287 set/show enums. Use host_charset_name and target_charset_name.
6288 Use set/show mechanism for charset, host-charset, target-charset
6289 commands. Do not make 'show host-charset' and 'show
6290 target-charset' be aliases of 'show charset'.
6291
6292 * charset.h (set_host_charset, set_target_charset): Don't export,
6293 they are not used outside the file.
6294
2b6fd0d8
AC
62952003-05-01 Andrew Cagney <cagney@redhat.com>
6296
6297 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6298 (gdb_disassembly): Make "di" non static, always initialize and
6299 cleanup. Always use dis_asm_read_memory.
6300 (gdb_dis_asm_read_memory): Delete function.
6301
6ae2f580
AC
63022003-05-01 Andrew Cagney <cagney@redhat.com>
6303
6304 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6305 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6306
810ecf9f
AC
63072003-04-30 Andrew Cagney <cagney@redhat.com>
6308
6309 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6310 "tm_print_insn_info".
6311 (TARGET_PRINT_INSN_INFO): Delete macro.
6312 (dis_asm_read_memory): Delete function declaration.
6313 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6314 (tm_print_insn_info): Delete variable definition.
6315 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6316 * gdbarch.h, gdbarch.c: Re-generate.
6317 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6318 "deprecated_tm_print_insn_info".
6319 * mcore-tdep.c (mcore_dump_insn): Ditto.
6320 * mips-tdep.c (mips_gdbarch_init): Ditto.
6321 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6322 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6323 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6324 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6325 instead of TARGET_PRINT_INSN_INFO, add comment.
6326 * s390-tdep.c (s390_get_frame_info): Instead of
6327 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6328 (s390_check_function_end, s390_is_sigreturn): Ditto.
6329 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6330 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6331 * disasm.c: Include "gdbcore.h".
6332 (_initialize_disasm): New function, initialize
6333 "deprecated_tm_print_insn_info".
6334 (deprecated_tm_print_insn_info): New variable.
6335 (dis_asm_read_memory): Moved from "corefile.c", made static.
6336 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6337 * Makefile.in (disasm.o): Update dependencies.
6338
07020390
AC
63392003-04-30 Andrew Cagney <cagney@redhat.com>
6340
6341 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6342
a9fa03de
AF
63432003-04-29 Adam Fedor <fedor@gnu.org>
6344
6345 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6346 * infcall.c (find_function_addr): Make non-static.
6347 * infcall.h (find_function_addr): Declare.
6348 * Makefile.in (eval.o): Update dependencies.
6349
1bae87b9
AF
63502003-04-28 Adam Fedor <fedor@gnu.org>
6351
6352 * symtab.c (symbol_find_demangled_name): Check for and demangle
6353 ObjC symbols.
6354 (symbol_init_demangled_name): Init for language_objc as well.
6355
0ba6dca9
AC
63562003-04-28 Andrew Cagney <cagney@redhat.com>
6357
6358 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6359 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6360 * gdbarch.h, gdbarch.c: Re-generate.
6361 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6362 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6363 * inferior.h (deprecated_read_fp): Rename read_fp.
6364 (generic_target_read_fp): Delete declaration.
6365 * regcache.c (generic_target_read_fp): Delete function.
6366 (deprecated_read_fp): Replace read_fp, use
6367 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6368 * d10v-tdep.c (d10v_read_fp): Delete function.
6369 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6370
6371 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6372 deprecated_target_read_fp to generic_target_read_fp.
6373 * sh-tdep.c (sh_gdbarch_init): Ditto.
6374 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6376 * frv-tdep.c (frv_gdbarch_init): Ditto.
6377
6378 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6379 deprecated_fp_regnum.
6380 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6381 * vax-tdep.c (vax_gdbarch_init): Ditto.
6382 * v850-tdep.c (v850_gdbarch_init): Ditto.
6383 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6384 * sh-tdep.c (sh_gdbarch_init): Ditto.
6385 * s390-tdep.c (s390_gdbarch_init): Ditto.
6386 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6387 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6388 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6389 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6391 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6392 * i386-tdep.c (i386_gdbarch_init): Ditto.
6393 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6394 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6395 * frv-tdep.c (frv_gdbarch_init): Ditto.
6396 * cris-tdep.c (cris_gdbarch_init): Ditto.
6397 * avr-tdep.c (avr_gdbarch_init): Ditto.
6398 * arm-tdep.c (arm_gdbarch_init): Ditto.
6399 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6400
6401 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6402 * v850-tdep.c (v850_gdbarch_init): Ditto.
6403 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6404 * sh-tdep.c (sh_gdbarch_init): Ditto.
6405 * s390-tdep.c (s390_gdbarch_init): Ditto.
6406 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6407 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6408 * mips-tdep.c (mips_gdbarch_init): Ditto.
6409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6410 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6411 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6412 * frv-tdep.c (frv_gdbarch_init): Ditto.
6413 * avr-tdep.c (avr_gdbarch_init): Ditto.
6414 * arm-tdep.c (arm_gdbarch_init): Ditto.
6415
6416 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6417 DEPRECATED_FP_REGNUM.
6418 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6419 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6420 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6421 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6422 (sparc32_register_virtual_type): Ditto.
6423 * sh-tdep.c (sh64_frame_chain): Ditto.
6424 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6425 (sh_nofp_frame_init_saved_regs): Ditto.
6426 (sh64_nofp_frame_init_saved_regs): Ditto.
6427 (sh_fp_frame_init_saved_regs): Ditto.
6428 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6429 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6430 * procfs.c (procfs_fetch_registers): Ditto.
6431 (procfs_store_registers): Ditto.
6432 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6433 (store_inferior_registers, fetch_core_registers): Ditto.
6434 (fetch_kcore_registers, clear_regs): Ditto.
6435 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6436 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6437 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6438 * nlm/i386.c (do_status): Ditto.
6439 * mipsv4-nat.c (supply_gregset): Ditto.
6440 * mips-tdep.c: Ditto for comments.
6441 * mips-nat.c (fetch_inferior_registers): Ditto.
6442 (store_inferior_registers, fetch_core_registers): Ditto.
6443 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6444 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6445 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6446 (i386_do_pop_frame, i386_register_type): Ditto.
6447 * hppa-tdep.c (hppa_frame_chain): Ditto.
6448 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6449 (hppa_pop_frame, hppa_read_fp): Ditto.
6450 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6451 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6452 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6453 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6454 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6455 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6456 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6457 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6458 * blockframe.c: Ditto for comments.
6459 * arch-utils.h: Ditto for comments.
6460 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6461 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6462 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6463 * alpha-tdep.h: Ditto for comments.
6464 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6465 (alpha_cannot_store_register): Ditto.
6466 (alpha_push_dummy_frame): Ditto.
6467 * alpha-nat.c (supply_gregset): Ditto.
6468
6469 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6470 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6471 * config/sparc/tm-sparc.h: Update comment.
6472
6473 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6474 deprecated_read_fp instead of TARGET_READ_FP.
6475 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6476 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6477 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6478 deprecated_read_fp instead of read_fp.
6479 * s390-tdep.c (s390_push_arguments): Ditto.
6480 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6481 * frame.h: Ditto in comments.
6482 * frame.c (legacy_get_prev_frame): Ditto.
6483 * dummy-frame.c (dummy_frame_this_id): Ditto.
6484 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6485
d7a27068
AC
64862003-04-28 Andrew Cagney <cagney@redhat.com>
6487
6488 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6489 * gdbarch.h, gdbarch.c: Re-generate.
6490 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6491 * vax-tdep.c (_initialize_vax_tdep): Update.
6492 * v850-tdep.c (_initialize_v850_tdep): Update.
6493 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6494 * s390-tdep.c (_initialize_s390_tdep): Update.
6495 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6496 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6497 * mips-tdep.c (_initialize_mips_tdep): Update.
6498 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6499 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6500 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6501 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6502 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6503 * frv-tdep.c (_initialize_frv_tdep): Update.
6504 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6505 (_initialize_cris_tdep): Update.
6506 * arch-utils.c (legacy_print_insn): Update.
6507 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6508
d2630e69
AF
65092003-04-26 Adam Fedor <fedor@gnu.org>
6510
6511 * linespec.c (decode_objc): New function to decode ObjC calls
6512 (decode_line_1): Check for ObjC calls (using decode_objc)
6513 * Makefile (linespec.o): Update dependencies.
6514
3086aeae
DJ
65152003-04-26 Daniel Jacobowitz <drow@mvista.com>
6516
6517 * breakpoint.h (struct breakpoint_ops): New.
6518 (struct breakpoint): Add ops member.
6519
6520 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6521 (mention): Use new breakpoint ops member.
6522 (set_raw_breakpoint): Initialize ops field to NULL.
6523 (print_exception_catchpoint, print_one_exception_catchpoint)
6524 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6525 (gnu_v3_exception_catchpoint_ops): New.
6526 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6527
1fbec6c3
AF
65282003-04-25 Adam Fedor <fedor@gnu.org>
6529
6530 * Makefile.in (COMMON_OBS): Add objc-lang.o
6531
0ef21242
AC
65322003-04-25 Andrew Cagney <cagney@redhat.com>
6533
6534 * d10v-tdep.c (print_insn): Delete function.
6535 (display_trace): Use TARGET_PRINT_INSN.
6536 (_initialize_d10v_tdep): Do not set tm_print_insn.
6537 (d10v_gdbarch_init): Set print_insn.
6538
f75493ed
AC
65392003-04-25 Andrew Cagney <cagney@redhat.com>
6540
6541 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6542 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6543 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6544 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6545 (nr_dmap_regs, a0_regnum): ... new functions.
6546 (d10v_print_registers_info): Use a0_regnum, use register_size.
6547 (d10v_register_byte): Delete function.
6548 (d10v_register_raw_size): Delete function.
6549 (d10v_register_type): Use a0_regnum.
6550 (d10v_print_registers_info): Use a0_regnum.
6551 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6552 (d10v_gdbarch_init): Do not set register_byte or
6553 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6554 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6555 extract_address.
6556 (trace_command): Use XCALLOC.
6557 (print_insn): Delete reference to tm_print_insn.
6558 (saved_regs_unwinder): Use store_unsigned_integer instead of
6559 store_address.
6560 * frame.h (FRAME_OBSTACK_CALLOC): Define
6561
2202b100
DC
65622003-04-25 David Carlton <carlton@bactrian.org>
6563
6564 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6565
4e45ca2e
AF
65662003-04-24 Adam Fedor <fedor@gnu.org>
6567
6568 * objc-lang.c: Include "valprint.h"
6569 * Makefile.in (objc-lang.o): Update dependencies.
6570
93de3e7f
AF
65712003-04-24 Adam Fedor <fedor@gnu.org>
6572
8ffd9b1b 6573 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
6574 architecture dependant compilation and mark as unimplemented
6575 (until they get put in the gdbarch vector).
6576
0f20eeea
DC
65772003-04-23 David Carlton <carlton@bactrian.org>
6578
6579 * cp-support.c (cp_find_first_component): Accept 'operator' in
6580 more locations.
6581
74cfe982
AC
65822003-04-23 Andrew Cagney <cagney@redhat.com>
6583
6584 * infcall.c (call_function_by_hand): Eliminate redundant
6585 indentation. Move "saved_async" and "old_cleanups" to where they
6586 are needed.
8ffd9b1b 6587
52557533
AC
65882003-04-23 Andrew Cagney <cagney@redhat.com>
6589
6590 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6591 and "buffer". Move the "name" code to where it is needed.
6592
158775de
AC
65932003-04-23 Andrew Cagney <cagney@redhat.com>
6594
6595 * infcall.c (call_function_by_hand): Move variables "start_sp",
6596 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6597 code to ON_STACK switch branch.
8ffd9b1b 6598
ebc7896c
AC
65992003-04-23 Andrew Cagney <cagney@redhat.com>
6600
6601 * infcall.c (call_function_by_hand): Make declaration of "i",
6602 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6603 lint.
6604
d727590f
AC
66052003-04-23 Andrew Cagney <cagney@redhat.com>
6606
6607 * infcall.c (call_function_by_hand): Delete variable
6608 "n_method_args". Localize "param_type"'s declaration to the loop
6609 that it is used. Reinstate code assigning to said variable -
6610 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6611 Rationalize code using "param_type".
6612
d585e13a
AC
66132003-04-22 Andrew Cagney <cagney@redhat.com>
6614
6615 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6616 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6617 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6618 to DEPRECATED_PUSH_RETURN_ADDRESS.
6619
051caad9
KB
66202003-04-22 Kevin Buettner <kevinb@redhat.com>
6621
6622 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6623 on the DWARF2 register number prior to fetching a register.
6624
77296879
JB
66252003-04-22 J. Brobecker <brobecker@gnat.com>
6626
6627 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6628 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 6629 this macro was always set to 0.
77296879
JB
6630 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6631 considering the fact that this macro was always set to 0.
6632 * hppa-tdep.h (hppa_store_return_value): Likewise.
6633 (hppa_extract_return_value): Likewise.
6634
4252f1df
JB
66352003-04-22 J. Brobecker <brobecker@gnat.com>
6636
6637 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6638 the hppa-pro target only.
6639
14604c6b
JB
66402003-04-21 J. Brobecker <brobecker@gnat.com>
6641
6642 Ongoing multi-arch conversion effort for HP/UX:
6643 * config/pa/tm-hppa.h: Move all macro that are no longer
6644 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6645 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6646
77eb01d1
JB
66472003-04-21 J. Brobecker <brobecker@gnat.com>
6648
6649 * config/pa/tm-hppa.h: Obsolete a section that was only used
6650 for hppa-pro.
6651
61995b3b
JB
66522003-04-21 J. Brobecker <brobecker@gnat.com>
6653
6654 Ongoing multi-arch conversion for HP/UX.
6655 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6656 if already defined (allows hppa64 to stay non-multiarched for now).
6657 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6658
4aa79dcc
AC
66592003-04-21 Andrew Cagney <cagney@redhat.com>
6660
6661 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6662
0f751ff2
AC
66632003-04-21 Andrew Cagney <cagney@redhat.com>
6664
6665 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6666 "i386_num_mmx_regs".
6667
04714b91
AC
66682003-04-21 Andrew Cagney <cagney@redhat.com>
6669
6670 * infcall.c: New file.
6671 * infcall.h: New file.
6672 * valarith.c: Include "infcall.h".
6673 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6674 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6675 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6676 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6677 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6678 (SFILES): Add "infcall.c"
6679 (COMMON_OBS): Add "infcall.o".
6680 (infcall.o): Specify dependencies.
6681 * value.h (call_function_by_hand): Delete declaration.
6682 * inferior.h (run_stack_dummy): Delete declaration.
6683 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6684 (run_stack_dummy): Move to "infcall.c", merged into
6685 call_function_by_hand.
6686 * valops.c (call_function_by_hand): Moved to "infcall.c".
6687 (find_function_addr, value_arg_coerce): Ditto.
6688 (unwindonsignal_p, coerce_float_to_double): Ditto.
6689 (_initialize_valops): Move "set/show coerce-float-to-double", and
6690 "set/show unwindonsignal" commands to "infcall.c".
6691 * v850-tdep.c, target.h: Update comments.
6692 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6693 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6694 (sh64_init_extra_frame_info): Update comments.
6695 * mn10300-tdep.c: Update comments.
6696 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
6697 * config/sparc/tm-sparc.h: Update comments.
6698 * breakpoint.h: Update comments.
6699 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
6700 * arm-tdep.c: Update comment.
6701
f9d3c2a8
MK
67022003-04-19 Mark Kettenis <kettenis@gnu.org>
6703
c40e1eab
MK
6704 * i386-tdep.c (i386_num_register_names): New variable.
6705 (i386_num_mmx_regs): Renamed from mmx_num_regs.
6706 (MM0_REGNUM): Remove redundant parentheses in define.
6707 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
6708 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
6709 i386_mxcsr_regnum_p): Remove redundant parentheses.
6710 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 6711
94ea66b3
MK
6712 * i386-tdep.c (i386_extract_return_value,
6713 i386_store_return_value): Correct check for availability of
6714 floating-point registers.
6715
54299a1d
MK
6716 * i386-tdep.c (i386_frame_num_args): Remove function.
6717 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
6718
c86c27af
MK
6719 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
6720 mmx_regnum_to_fp_regnum. Adjust all callers.
6721
f9d3c2a8
MK
6722 * i386-tdep.c (i386_get_longjmp_target): Use
6723 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
6724 and TARGET_CHAR_BIT. Use extract_typed_address instead of
6725 extract_address.
6726
94ba74a9
MK
67272003-04-19 Mark Kettenis <kettenis@gnu.org>
6728
6729 * core-regset.c: Update comments to reflect reality. Re-order
6730 includes.
6731 (fetch_core_registers): Use switch instead of if. Remove
6732 redundant prototype.
6733
4074e13c
JB
67342003-04-18 Jim Blandy <jimb@redhat.com>
6735
6736 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 6737 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 6738
e3ab4aba
RH
67392003-04-17 Richard Henderson <rth@redhat.com>
6740
6741 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
6742
627bf7c1
EZ
67432003-04-17 Michael Snyder <msnyder@redhat.com>
6744 Karen Bennet <bennet@redhat.com>
6745
6746 Committed by Elena Zannoni <ezannoni@redhat.com>
6747 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 6748
514621a9
EZ
67492003-04-17 Elena Zannoni <ezannoni@redhat.com>
6750
6751 * values.c (value_being_returned): Don't fetch the return
fbe586ae 6752 value if the return type is void.
514621a9 6753
b4acd559
JJ
67542003-04-17 Jeff Johnston <jjohnstn@redhat.com>
6755
6756 * thread-db.c: Reindented.
8ffd9b1b 6757
530b167e 67582003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
6759
6760 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
6761 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
6762 as types.
6763
0a48e7e8
MS
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
8ffd9b1b 6787
ab9fe00e
KB
67882003-04-16 Kevin Buettner <kevinb@redhat.com>
6789
610a3745 6790 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
6791 the size of ``long double'' to 16, instead of 8.
6792
e64a344c
MK
67932003-04-16 Mark Kettenis <kettenis@gnu.org>
6794
6795 * i386-linux-nat.c: Add some whitespace to make things more
6796 readable.
6797 (fetch_register, store_register, fetch_inferior_registers,
6798 store_inferior_registers): Get rid of assignment in if-statement.
6799 (store_register): Fix typo in error message.
6800
25d41031
AC
68012003-04-16 Andrew Cagney <cagney@redhat.com>
6802
6803 * utils.c (xmmalloc): Always allocate something, matches
6804 libiberty/xmalloc's semantics.
6805 (xmrealloc, xmcalloc): Ditto.
6806
c50901fd
AC
68072003-04-16 Andrew Cagney <cagney@redhat.com>
6808
6809 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
6810 update comments.
6811 (get_frame_type): Initialize unwind and type when needed.
6812 (get_frame_id, frame_register_unwind): Ditto.
6813
f81824a9
AC
68142003-04-16 Andrew Cagney <cagney@redhat.com>
6815
6816 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
6817 obsolete.
6818 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
6819 * sparcl-stub.c: Obsolete file.
6820 * config/sparc/tm-sparclet.h: Obsolete file.
6821 * sparclet-stub.c: Obsolete file.
6822 * sparclet-rom.c: Obsolete file.
6823 * sparcl-tdep.c: Obsolete file.
6824 * config/sparc/tm-sparclite.h: Obsolete file.
6825 * config/sparc/sparclite.mt: Obsolete file.
6826 * config/sparc/sparclet.mt: Obsolete file.
6827 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
6828 sparc86x-*-* obsolete.
6829
9219021c
DC
68302003-04-15 David Carlton <carlton@math.stanford.edu>
6831
6832 * Makefile.in (SFILES): Add cp-namespace.c.
6833 (COMMON_OBS): Add cp-namespace.o.
6834 (block.o): Depend on gdb_obstack_h and cp_support_h.
6835 (buildsym.o): Depend on cp_support_h.
6836 (cp-namespace.o): New.
6837 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
6838 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
6839 (dwarf2read.o): Depend on cp_support_h.
6840 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
6841 * dwarf2read.c (process_die): Set processing_has_namespace_info,
6842 processing_current_namespace.
6843 (read_namespace): Update processing_current_namespace; check for
6844 anonymous namespaces.
6845 (dwarf2_name): New function.
6846 (dwarf2_extension): Ditto.
6847 * cp-support.h: Update copyright, contributors.
6848 Add inclusion guards.
6849 Add opaque declaration for structs obstack, block, symbol.
6850 (struct using_direct): New struct.
6851 Add declarations for cp_find_first_component,
6852 cp_entire_prefix_len, processing_has_namespace_info,
6853 processing_current_namespace, cp_is_anonymous,
6854 cp_add_using_directive, cp_initialize_namespace,
6855 cp_finalize_namespace, cp_set_block_scope,
6856 cp_scan_for_anonymous_namespaces.
6857 * cp-namespace.c: New file.
6858 * cp-support.c: Update copyright.
6859 Include ctype.h, gdb_assert.h, gdbcmd.h.
6860 New variable maint_cplus_cmd_list.
6861 (cp_find_first_component): New function.
6862 (cp_entire_prefix_len, maint_cplus_command)
6863 (first_component_command, _initialize_cp_support): Ditto.
6864 * buildsym.c: Include cp-support.h.
6865 New variable using_list.
6866 (add_symbol_to_list): Check for anonymous namespaces.
6867 (finish_block): Set block's scope.
6868 (start_symtab): Initialize C++ namespace support.
6869 (end_symtab): Finalize C++ namespace support.
6870 * block.h: Add opaque declarations for structs
6871 block_namespace_info, using_direct, and obstack.
6872 Add declarations for block_set_scope and block_set_using.
6873 (struct block): Add 'language_specific' member.
6874 (BLOCK_NAMESPACE): New macro.
6875 * block.c: Include gdb_obstack.h and cp-support.h.
6876 (struct block_namespace_info): New struct.
6877 (block_set_scope): New function.
6878 (block_set_using, block_initialize_namespace): Ditto.
6879
d5a921c9
KB
68802003-04-14 Kevin Buettner <kevinb@redhat.com>
6881
6882 * solib-svr4.c (svr4_have_link_map_offsets): New function.
6883 (locate_base): Return early if there aren't any link map offsets.
6884 (svr4_solib_create_inferior_hook): Warn if shared library support
6885 is unavailable.
6886
d2a52b27
DC
68872003-04-14 David Carlton <carlton@math.stanford.edu>
6888
6889 * symtab.c (symbol_set_names): Add prefix when storing Java names
6890 in hash table. Fix for PR java/1039.
6891
980cae7a
DC
68922003-04-14 David Carlton <carlton@math.stanford.edu>
6893
6894 * symtab.c (symbol_set_names): Rename 'name' arg to
6895 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
6896 * symtab.h: Change 'name' argument in declaration of
6897 symbol_set_names to 'linkage_name'.
6898 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
6899
e227b13c
AC
69002003-04-14 Andrew Cagney <cagney@redhat.com>
6901
6902 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
6903 return the fully sign-extended register value.
6904 (get_frame_pointer): Ditto.
6905 (mips_pop_frame): Initialize "proc_desc" after checking for a
6906 dummy frame.
6907
36712a20
AC
69082003-04-14 Andrew Cagney <cagney@redhat.com>
6909
6910 * mips-tdep.c (mips_push_dummy_frame): Delete function.
6911 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
6912 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
6913 (mips_push_register): Delete function.
6914 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
6915 PUSH_FP_REGNUM.
6916
44ea7b70
JB
69172003-04-14 Jim Blandy <jimb@redhat.com>
6918
6919 * symmisc.c: #include "gdb_regex.h".
6920 (maintenance_list_symtabs, maintenance_list_psymtabs): New
6921 functions.
6922 * maint.c (maintenance_list_command): New function.
6923 (_initialize_maint_cmds): Register the above as commands.
6924 * symtab.h (maintenance_list_symtabs,
6925 maintenance_list_psymtabs): New declarations.
6926 * cli/cli-cmds.c (maintenancelistlist): New variable.
6927 (init_cmd_lists): Initialize it.
6928 * cli/cli-cmds.h (maintenancelistlist): New declaration.
6929 * gdbcmd.h (maintenancelistlist): New declaration.
6930 * Makefile.in (symmisc.o): Update dependencies.
6931
2d0c7962
EZ
69322003-04-14 Elena Zannoni <ezannoni@redhat.com>
6933
6934 * s390-nat.c: Include asm/types.h for addr_t.
6935
1947a811
CV
69362003-04-14 Corinna Vinschen <vinschen@redhat.com>
6937
6938 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
6939 actually incoming type.
6940
adb616d7
AC
69412003-04-13 Andrew Cagney <cagney@redhat.com>
6942
6943 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
6944 get_next_frame and get_frame_saved_regs.
6945
9b5e151c
AC
69462003-04-13 Andrew Cagney <cagney@redhat.com>
6947
6948 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
6949 of gdbarch_num_regs.
6950
ef6e7e13
AC
69512003-04-13 Andrew Cagney <cagney@redhat.com>
6952
6953 * frame.h: Mention what replaced what in "struct frame_info".
6954 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
6955 deprecated_update_frame_base_hack and
6956 deprecated_update_frame_pc_hack.
6957 * hppa-tdep.c: Ditto.
6958
61fbb938
DJ
69592003-04-13 Daniel Jacobowitz <drow@mvista.com>
6960
6961 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
6962 to read_reg and update its comment. Remove regnum member.
6963 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
6964 Don't call read_reg when setting in_reg. Call read_reg to get
6965 the frame base if it's in a register. Return the register number
6966 on the stack instead of in the context. Remove extra arguments
6967 to read_reg.
6968 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
6969 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
6970 the register number on the expression stack.
6971 (needs_frame_read_reg): Remove extra arguments.
6972
0d53c4c4
DJ
69732003-04-13 Daniel Jacobowitz <drow@mvista.com>
6974
6975 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
6976 made non-static.
6977 (execute_stack_op): All callers updated.
6978 * dwarf2expr.h: Add prototype for dwarf2_read_address.
6979 * dwarf2loc.c (find_location_expression): New function.
6980 (dwarf_expr_frame_base): Call it.
6981 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
6982 (dwarf2_tracepoint_var_ref): New function, broken out from
6983 locexpr_tracepoint_var_ref.
6984 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
6985 Make static.
6986 (loclist_read_variable, loclist_read_needs_frame): New functions.
6987 (loclist_describe_location, loclist_tracepoint_var_ref): New
6988 functions.
6989 (dwarf2_loclist_funcs): New struct location_funcs.
6990 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
6991 (struct dwarf2_locexpr_baton): Add comments.
6992 (dwarf2_loclist_funcs): New extern.
6993 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
6994 base_address and base_known.
6995 (dwarf_loc_buffer): New variable.
6996 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
6997 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
6998 (dwarf2_has_info): Initialize dwarf_loc_offset.
6999 (dwarf2_build_psymtabs): Read in .debug_loc.
7000 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7001 DWARF_LOC_SIZE.
7002 (psymtab_to_symtab_1): Likewise. Move base address calculation
7003 here, from...
7004 (dwarf2_get_pc_bounds): ... here. Use the base address from
7005 cu_header.
7006 (dwarf2_symbol_mark_computed): Handle location lists.
7007
6aca59a3
DJ
70082003-04-13 Daniel Jacobowitz <drow@mvista.com>
7009
7010 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7011 if the linkage name demangled successfully.
7012
aca1fcd0
MK
70132003-04-13 Mark Kettenis <kettenis@gnu.org>
7014
97095916
MK
7015 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7016 disassmbly_flavour): Removed.
7017
aca1fcd0
MK
7018 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7019
562a961f
MK
70202003-04-13 Mark Kettenis <kettenis@gnu.org>
7021
7022 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7023
bd013d54
AC
70242003-04-12 Andrew Cagney <cagney@redhat.com>
7025
7026 * frame.h (struct frame_info): Move definition from here ...
7027 * frame.c (struct frame_info): ... to here.
7028
167ef8b1
AC
70292003-04-12 Andrew Cagney <cagney@redhat.com>
7030
7031 * gdbthread.h (save_infrun_state): Delete parameter
7032 "prev_func_start".
7033 (struct thread_info): Delete field "prev_func_start".
7034 (load_infrun_state): Ditto.
7035 * thread.c (load_infrun_state, save_infrun_state): Update.
7036 * infrun.c (prev_func_start): Delete variable.
7037 (context_switch, init_wait_for_inferior): Update.
7038 (stop_stepping, keep_going): Update.
7039
da3331ec
AC
70402003-04-12 Andrew Cagney <cagney@redhat.com>
7041
7042 * gdbarch.sh: Add missing opaque declarations.
7043 * gdbarch.h: Regnerate.
7044 * symtab.h: Add missing opaque declarations.
7045 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7046 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7047 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7048 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7049 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7050 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7051 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7052 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7053 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7054 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7055 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7056 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7057 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7058
18adea3f
AC
70592003-04-11 Andrew Cagney <cagney@redhat.com>
7060
7061 * frame.c (get_frame_id): Return this frame's "id".
7062 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7063 function start.
7064 (legacy_saved_regs_this_id): Replace function body with
7065 internal-error.
7066 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7067 FRAME_OBSTACK_ZALLOC.
7068 (create_new_frame): Mark the frame ID as valid.
7069
2252e863
AO
70702003-04-11 Alexandre Oliva <aoliva@redhat.com>
7071
7072 * Makefile.in (libbfd_h): Added missing setting.
7073 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7074 according to the selected ABI.
7075
a8245ab8
JJ
70762003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7077
7078 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7079
6913c89a
AC
70802003-04-11 Andrew Cagney <cagney@redhat.com>
7081
7082 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7083 SAVED_PC_AFTER_CALL.
7084 * gdbarch.h, gdbarch.c: Regenerate.
7085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7086 * x86-64-tdep.c (x86_64_init_abi): Update.
7087 * vax-tdep.c (vax_gdbarch_init): Update.
7088 * v850-tdep.c (v850_gdbarch_init): Update.
7089 * sparc-tdep.c (sparc_gdbarch_init): Update.
7090 * sh-tdep.c (sh_gdbarch_init): Update.
7091 * s390-tdep.c (s390_gdbarch_init): Update.
7092 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7093 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7094 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7095 * mips-tdep.c (mips_gdbarch_init): Update.
7096 * mcore-tdep.c (mcore_gdbarch_init): Update.
7097 * m68k-tdep.c (m68k_gdbarch_init): Update.
7098 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7099 * ia64-tdep.c (ia64_gdbarch_init): Update.
7100 (ia64_saved_pc_after_call): Update declaration.
7101 * i386ly-tdep.c (i386lynx_init_abi): Update.
7102 * i386-tdep.c (i386_gdbarch_init): Update.
7103 * hppa-tdep.c (hppa_gdbarch_init): Update.
7104 * h8300-tdep.c (h8300_gdbarch_init): Update.
7105 * frv-tdep.c (frv_gdbarch_init): Update.
7106 * cris-tdep.c (cris_gdbarch_init): Update.
7107 * avr-tdep.c (avr_gdbarch_init): Update.
7108 * arm-tdep.c (arm_gdbarch_init): Update.
7109 * alpha-tdep.c (alpha_gdbarch_init): Update.
7110 * ns32knbsd-nat.c (frame_num_args): Update.
7111 * ns32k-tdep.c (umax_frame_num_args): Update.
7112 * mips-tdep.c (mips_init_frame_pc_first): Update.
7113 * infrun.c (step_over_function): Update.
7114 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7115 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7116 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7117 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7118 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7119 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7120 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7121 * arch-utils.c (init_frame_pc_default): Update.
7122 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7123 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7124 declaration.
8ffd9b1b 7125
38edeab8
AC
71262003-04-11 Andrew Cagney <cagney@redhat.com>
7127
7128 * i387-tdep.c: Update copyright.
7129 (i387_to_double): Delete function.
7130 (double_to_i387): Delete function.
7131
81f8a206
AC
71322003-04-10 Andrew Cagney <cagney@redhat.com>
7133
7134 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7135 frame's function's address. Simplify.
7136 (d10v_frame_unwind_cache): Check that the frame's function is
7137 non-zero.
7138
6e691f7a
JB
71392003-04-10 Jim Blandy <jimb@redhat.com>
7140
7141 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7142 call to set_gdbarch_deprecated_push_arguments.
7143
7f78e237
AC
71442003-04-10 Andrew Cagney <cagney@redhat.com>
7145
7146 * frame.c (fprint_frame_id): New function.
7147 (fprint_frame_type, fprint_frame): New function.
7148 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7149 (create_sentinel_frame, get_frame_id): Ditto.
7150 (frame_id_p, frame_id_eq): Ditto.
7151 (frame_id_inner, create_new_frame): Ditto.
7152 (legacy_get_prev_frame, get_prev_frame): Ditto.
7153 (deprecated_update_frame_pc_hack): Ditto.
7154 (frame_register_unwind): Ditto.
7155 (deprecated_update_frame_base_hack): Ditto.
7156
f870b49b
CV
71572003-04-10 Corinna Vinschen <vinschen@redhat.com>
7158
7159 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7160 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7161 frame_chain function.
7162 * Makefile.in: Add dependencies due to above change.
7163
7c86889b
CV
71642003-04-10 Corinna Vinschen <vinschen@redhat.com>
7165
7166 * blockframe.c (legacy_frame_chain_valid): Move call to
7167 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7168 inside_entry_file.
7169
d0a55772
AC
71702003-04-09 Andrew Cagney <cagney@redhat.com>
7171
7172 * frame.h (struct frame_id): Replace "pc" and "base" with
7173 "stack_addr" and "code_addr". Update comments.
7174 (frame_id_build): Update parameter names and comment.
7175 (struct frame_info): Replace "id_p" and "id" with "this_id".
7176 * dummy-frame.c (dummy_frame_this_id): Update.
7177 * breakpoint.c (print_one_breakpoint): Update.
7178 * frame.c (get_frame_id): Update.
7179 (get_frame_base, frame_id_build): Update.
7180 (create_sentinel_frame, legacy_get_prev_frame): Update.
7181 (deprecated_update_frame_base_hack): Update.
7182 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7183 (frame_id_inner): Ditto.
7184
ac16bf07
AC
71852003-04-09 Andrew Cagney <cagney@redhat.com>
7186
7187 * defs.h (gdb_print_host_address): Make "addr" parameter a
7188 pointer constant.
7189 * utils.c (gdb_print_host_address): Update.
7190
366cfc9e
KB
71912003-04-09 Kevin Buettner <kevinb@redhat.com>
7192
7193 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7194 register number for R0 is 0.
7195
cd983b5c
JB
71962003-04-09 J. Brobecker <brobecker@gnat.com>
7197
7198 * frame.h (struct gdbarch): Add opaque structure definition
7199 to avoid a compilation warning on LynxOS 4.0.
7200
d1340264
AC
72012003-04-09 Andrew Cagney <cagney@redhat.com>
7202
7203 * frame.h (struct frame_info): Delete field "pc". Replace
7204 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7205 structure.
7206 * frame.c (frame_pc_unwind): Update.
7207 (create_sentinel_frame): Do not set "pc".
7208 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7209 (get_frame_pc): Call frame_pc_unwind.
7210 (deprecated_update_frame_pc_hack): Update.
7211 (create_new_frame): Use "pc" not "->pc".
7212
90a6fffb
AC
72132003-04-09 Andrew Cagney <cagney@redhat.com>
7214
7215 * frame.c (get_frame_id): Eliminate code updating "frame".
7216 (legacy_get_prev_frame): Ditto.
7217 (get_frame_base): Return id.base directly.
7218 (deprecated_update_frame_base_hack): Update "id.base".
7219 * frame.h (struct frame_info): Delete field "frame".
7220
2fbce691
AC
72212003-04-09 Andrew Cagney <cagney@redhat.com>
7222
7223 * NEWS: Mention that the "Sequent family" is obsolete.
7224 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7225 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7226 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7227 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7228 * config/i386/tm-ptx4.h: Obsolete file.
7229 * config/i386/tm-ptx.h: Obsolete file.
7230 * symm-tdep.c: Obsolete file.
7231 * config/i386/symmetry.mt: Obsolete file.
7232 * config/i386/tm-symmetry.h: Obsolete file.
7233 * symm-nat.c: Obsolete file.
7234 * config/i386/nm-symmetry.h: Obsolete file.
7235 * config/i386/xm-symmetry.h: Obsolete file.
7236 * config/i386/symmetry.mh: Obsolete file.
7237 * config/i386/nm-ptx4.h: Obsolete file.
7238 * config/i386/ptx4.mh: Obsolete file.
7239 * config/i386/ptx.mt: Obsolete file.
7240 * config/i386/ptx.mh: Obsolete file.
7241 * config/i386/xm-ptx4.h: Obsolete file.
7242 * config/i386/xm-ptx.h: Obsolete file.
7243
78c43945
AC
72442003-04-09 Andrew Cagney <cagney@redhat.com>
7245
7246 Obsolete mips*-*-mach3*.
7247 * NEWS: Mention that mips*-*-mach3* is obsolete.
7248 * m3-nat.c: Obsolete file.
7249 * config/nm-m3.h: Obsolete file.
7250 * config/mips/tm-mipsm3.h: Obsolete file.
7251 * config/mips/mipsm3.mt: Obsolete file.
7252 * config/mips/mipsm3.mh: Obsolete file.
7253 * config/mips/xm-mipsm3.h: Obsolete file.
7254 * mipsm3-nat.c: Obsolete file.
7255 * configure.host: Obsolete mips-dec-mach3*.
7256 * configure.tgt: Obsolete mips*-*-mach3*.
7257
f1908289
AC
72582003-04-09 Andrew Cagney <cagney@redhat.com>
7259
7260 * doublest.h: Update copyright.
7261 (deprecated_store_floating, deprecated_extract_floating): Rename
7262 store_floating and extract_floating. Update comments.
7263 * doublest.c: Update copyright.
7264 (extract_floating_by_length): Replace extract_floating.
7265 (store_floating_by_length): Replace store_floating.
7266 (deprecated_extract_floating): New function.
7267 (deprecated_store_floating): New function.
7268 (extract_typed_floating): Call extract_floating_by_length.
7269 (store_typed_floating): Call store_floating_by_length.
7270 * x86-64-tdep.c (x86_64_store_return_value): Update.
7271 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7272 (sh64_extract_return_value): Update.
7273 (sh_sh4_register_convert_to_virtual): Update.
7274 (sh_sh64_register_convert_to_virtual): Update.
7275 (sh_sh4_register_convert_to_raw): Update.
7276 (sh_sh64_register_convert_to_raw): Update.
7277 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7278 (rs6000_register_convert_to_raw): Update.
7279 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7280 (ia64_register_convert_to_raw): Update.
7281 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7282 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7283 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7284 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7285 (alpha_register_convert_to_raw): Update.
7286
4443bd83
AC
72872003-04-08 Andrew Cagney <cagney@redhat.com>
7288
7289 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7290 * gdbarch.h, gdbarch.c: Re-generate.
7291 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7292 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7293 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7294 conditionally, use frame_pc_unwind as an alternative. Add
7295 comments.
7296 * arch-utils.c (init_frame_pc_default): Only call
7297 SAVED_PC_AFTER_CALL when available.
7298
c0236d92
EZ
72992003-04-08 Elena Zannoni <ezannoni@redhat.com>
7300
fbe586ae 7301 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7302 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7303 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7304 (start_remote): Ditto.
7305 (handle_inferior_event): Ditto.
7306 (save_inferior_status): Ditto.
7307 (restore_inferior_status): Ditto.
7308 * infcmd.c (attach_command): Ditto.
7309 * fork-child.c (startup_inferior): Ditto.
fbe586ae 7310 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
7311 * alpha-tdep.c (heuristic_proc_start): Ditto.
7312 * mips-tdep.c (heuristic_proc_start): Ditto.
7313 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7314 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7315 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7316 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7317 * remote-vx.c (vx_create_inferior): Ditto.
7318
73192003-04-08 Elena Zannoni <ezannoni@redhat.com>
7320
7321 * infrun.c (stop_soon_quietly): Make it an enum, to better
7322 override the default behavior of handle_inferior_event.
7323 (clear_proceed_status): Update uses of stop_soon_quietly to
7324 reflect that it is now an enum.
7325 (start_remote): Ditto.
7326 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7327 is set to handle the new GNU/Linux kernel behavior for
7328 attach/sigstop. Update uses of stop_soon_quietly.
7329 * inferior.h (enum stop_kind): New enum.
7330 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7331 Reset normal handle_inferior_event behavior, afterwards.
7332 * fork-child.c (startup_inferior): Update.
7333 * alpha-tdep.c (heuristic_proc_start): Update.
7334 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7335 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7336 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7337 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7338 * remote-vx.c (vx_create_inferior): Update.
7339 * mips-tdep.c (heuristic_proc_start): Update.
7340
1211bce3
EZ
73412003-04-07 Elena Zannoni <ezannoni@redhat.com>
7342
7343 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 7344 be freed more than once, causing wild memory corruptions.
1211bce3 7345 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 7346 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 7347 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 7348 with the "core" target.
1211bce3 7349
f0ef6b29
KB
73502003-04-07 Kevin Buettner <kevinb@redhat.com>
7351
7352 * mips-tdep.c (mips_print_fp_register): New function, created from
7353 do_fp_register_row(). Registers are now (also) printed as hex.
7354 Only one register is printed per row.
7355 (mips_print_register, do_fp_register_row): Print floating point
7356 registers with mips_print_fp_register().
7357
8cf71652
AC
73582003-04-06 Andrew Cagney <cagney@redhat.com>
7359
5e488a7b
AC
7360 * valprint.h (inspect_it): Add extern declaration.
7361 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7362 (selectors_info, classes_info): Ditto.
7363 (find_objc_msgcall): Fix indentation.
7364 (objc_printstr): Delete extern declarations.
7365
8cf71652
AC
7366 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7367
e6ba3bc9
AC
73682003-04-06 Andrew Cagney <cagney@redhat.com>
7369
7370 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7371 Update comment.
7372 * frame.c (legacy_saved_regs_this_id): Update.
7373 (legacy_get_prev_frame): Update.
7374 * xstormy16-tdep.c: Update comment.
7375 * sparc-tdep.c (sparc_frame_chain): Update comment.
7376 * blockframe.c (legacy_frame_chain_valid): Update.
7377
55e1d7e7
AC
73782003-04-06 Andrew Cagney <cagney@redhat.com>
7379
996179ee
AC
7380 * valprint.c (val_print_type_code_int): Delete #ifdef
7381 PRINT_TYPELESS_INTEGER code.
7382
55e1d7e7
AC
7383 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7384 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7385 multi-arch definition.
7386 * gdbarch.h: Re-generate.
7387
43bd9a9e
AC
73882003-04-05 Andrew Cagney <cagney@redhat.com>
7389
7390 Eliminate FRAME_FIND_SAVED_REGS.
7391 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7392 Change FSR parameter to a pointer.
7393 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7394 Assume FSR parameter is a pointer.
7395 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7396 Make fsr a pointer.
7397 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7398 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7399 saved_regs a pointer.
7400 (hppa_frame_saved_pc): Ditto.
7401 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7402 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7403 pointer.
7404 (restore_pc_queue): Make fsr a pointer.
7405 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7406 (hppa_frame_chain): Make saved_regs a pointer, call
7407 hppa_frame_init_saved_regs.
7408 * sparc-tdep.c: Include "gdb_assert.h".
7409 (sparc_frame_find_saved_regs): Replace internal_error with
7410 gdb_assert.
7411 * remote-vxsparc.c (vx_read_register): Delete reference to
7412 FRAME_FIND_SAVED_REGS.
7413 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7414 * gdbarch.h: Regenerate.
7415 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7416 (deprecated_get_frame_saved_regs): Delete declaration.
7417 (struct frame_saved_regs): Delete definition.
7418 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7419 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7420 (hppa_frame_find_saved_regs): Delete declaration.
7421 (FRAME_FIND_SAVED_REGS): Delete macro.
7422 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7423 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7424 FRAME_FIND_SAVED_REGS in comment.
7425
be41e9f4
AC
74262003-04-05 Andrew Cagney <cagney@redhat.com>
7427
7428 * frame.c (frame_func_unwind, get_frame_func): New functions.
7429 * frame.h (get_frame_func, frame_func_unwind): Declare.
7430 (struct frame_info): Add field "prev_func" for caching the
7431 previous frame's function address.
7432 * arm-tdep.c (arm_frameless_function_invocation): Combine
7433 get_pc_function_start and get_frame_pc into get_frame_func.
7434 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7435 (sh64_nofp_frame_init_saved_regs): Ditto.
7436 * s390-tdep.c (s390_function_start): Ditto.
7437 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7438 (rs6000_frameless_function_invocation): Ditto.
7439 (rs6000_frame_saved_pc): Ditto.
7440 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7441 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7442 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7443 (i386_frame_init_saved_regs): Ditto.
7444 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7445 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7446 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7447 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7448 * blockframe.c (frameless_look_for_prologue): Ditto.
7449
a01dd7cc
AC
74502003-04-05 Andrew Cagney <cagney@redhat.com>
7451
7452 * frame.c (legacy_get_prev_frame): Link prev to next at the
7453 function start. Update comments.
7454
5e5592e6
AC
74552003-04-05 Andrew Cagney <cagney@redhat.com>
7456
7457 * frame.c (get_frame_id): Update comment.
7458 (legacy_get_prev_frame): Update comment.
7459 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7460 * gdbarch.h: Regenerate.
7461 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7462 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7463
6fba5002
AC
74642003-04-05 Andrew Cagney <cagney@redhat.com>
7465
7466 * stack.c (print_frame_info): Use get_frame_pc.
7467
7df05f2b
AC
74682003-04-04 Andrew Cagney <cagney@redhat.com>
7469
7470 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7471 the frame's type from the unwinder.
7472 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7473 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7474 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7475 (get_frame_base_address): Use get_frame_type.
7476 (get_frame_locals_address, get_frame_args_address): Ditto.
7477 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7478 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7479 (struct frame_info): Add comment explaining why the frame contains
7480 a "type" field.
7481 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7482 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7483 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7484 NORMAL_FRAME.
7485 * frame-unwind.h: Include "frame.h".
7486 (struct frame_unwind): Add "type" field.
7487 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 7488
11889732
AC
74892003-04-04 Andrew Cagney <cagney@redhat.com>
7490
7491 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7492 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7493 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7494 get_frame_base.
7495 (d10v_unwind_dummy_id): Use frame_id_build.
7496 * frame.c (find_frame_sal): Use get_frame_pc.
7497 (create_new_frame): Use deprecated_update_frame_pc_hack and
7498 deprecated_update_frame_base_hack.
7499 (create_sentinel_frame): Add comment about ->pc going away.
7500 (get_prev_frame): Add comment about ->pc going away.
7501 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7502 frame_id_build, deprecated_update_frame_pc_hack and
7503 deprecated_update_frame_base_hack.
7504 (select_frame): Use get_frame_pc.
7505 (legacy_saved_regs_this_id): Use frame_id_build.
7506
50c46a0d
EZ
75072003-04-04 Elena Zannoni <ezannoni@redhat.com>
7508
fbe586ae
RH
7509 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7510 signed integer case.
7511 (classify_argument): Handle enumerations and references.
50c46a0d 7512
50bbdbd9
AC
75132003-04-04 Andrew Cagney <cagney@redhat.com>
7514
7515 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7516 ID to NULL.
7517
36018d2e
AF
75182003-04-01 Adam Fedor <fedor@gnu.org>
7519
7520 * gdb/objc-lang.c (selectors_info): Replace calls to
7521 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7522 SYMBOL_NATURAL_NAME.
7523 (classes_info, find_methods): Likewise.
7524
35cec841
KB
75252003-04-03 Kevin Buettner <kevinb@redhat.com>
7526
7527 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7528 ``mach'' to the value determined by bfd_default_set_arch_mach().
7529
43136899
BR
75302003-04-02 Bob Rossi <bob_rossi@cox.net>
7531
7532 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7533 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7534 (mi-cmd-file.o): Update dependencies.
7535
040b99fd
KB
75362003-04-01 Kevin Buettner <kevinb@redhat.com>
7537
7538 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7539 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7540
9a3d7dfd
AF
75412003-04-01 Adam Fedor <fedor@gnu.org>
7542
7543 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7544 * language.h (struct language_defn): Add la_demangle.
7545 (language_demangle): Declare.
7546 * language.c (language_demangle): New function.
7547 (unk_lang_demangle): Likewise.
7548 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 7549 Add ukn_lang_demangle.
9a3d7dfd 7550 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 7551 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
7552 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7553 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7554 * jv-lang.c (java_demangle): New function
7555 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
7556 * objc-lang.c (objc_demangle): Add options argument
7557 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
7558 * maint.c (maintenance_demangle): Replace switch with
7559 call to language_demangle.
7560 * utils.c (fprintf_symbol_filtered): Likewise.
7561
5e074003
AC
75622003-04-01 Andrew Cagney <cagney@redhat.com>
7563
7564 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7565 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7566 PRINT_TYPELESS_INTEGER.
7567 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7568 PUSH_RETURN_ADDRESS.
7569
270cb5d6
AC
75702003-04-01 Andrew Cagney <cagney@redhat.com>
7571
7572 * Makefile.in (d10v-tdep.o): Update dependencies.
7573 * d10v-tdep.c: Include "frame-base.h".
7574 (d10v_frame_unwind): Make constant.
7575 (d10v_frame_base_address): New function.
7576 (d10v_frame_base): New variable.
7577 (d10v_gdbarch_init): Set frame_base default.
7578 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7579 comment for base.
7580 (d10v_frame_unwind_cache): Set and use "prev_sp".
7581 (d10v_frame_this_id): Use the previous frame's inner most stack
7582 address and this frame's func address for the frame ID. Use
7583 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 7584
6bfb3e36
AC
75852003-04-01 Andrew Cagney <cagney@redhat.com>
7586
7587 * frame.h (get_frame_locals_address, get_frame_args_address):
7588 Refer to the base address, instead of the address of the first
7589 local or parameter.
8ffd9b1b 7590
da62e633
AC
75912003-04-01 Andrew Cagney <cagney@redhat.com>
7592
7593 Add frame debug info addresses:
7594 * frame-base.c: New file.
7595 * frame-base.h: New file.
7596 * frame.h (struct frame_base): Add opaque declaration.
7597 (get_frame_base): Update comment.
7598 (get_frame_base_address): Declare.
7599 (get_frame_locals_address): Declare.
7600 (get_frame_args_address): Declare.
7601 (struct frame_info): Add "base" and "base_cache". Update
7602 comments on the unwinder.
7603 * frame.c: Include "frame-base.h".
7604 (get_frame_locals_address): New function.
7605 (get_frame_base_address): New function.
7606 (get_frame_args_address): New function.
7607 * findvar.c (read_var_value): Use get_frame_locals_address and
7608 get_frame_args_address.
7609 * stack.c (frame_info): Use get_frame_locals_address and
7610 get_frame_args_address.
7611 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7612 moved to "frame-base.c".
7613 * printcmd.c (print_frame_nameless_args): Ditto.
7614 * symtab.h (address_class): Update comments.
7615 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7616 get_frame_base_address.
7617 * dwarf2expr.c (execute_stack_op): Ditto.
7618 * Makefile.in (frame_base_h): Define.
7619 (frame.o): Update dependencies.
7620 (frame-base.o): Add dependencies.
7621 (SFILES): Add frame-base.c.
7622 (COMMON_OBS): Add frame-base.o.
7623
3d30e9c2
AC
76242003-04-01 Andrew Cagney <cagney@redhat.com>
7625
7626 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7627 CALL_DUMMY_LENGTH): Ditto.
7628 * gdbarch.c: Re-generate.
7629 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7630 (CALL_DUMMY_LENGTH): Delete macro.
7631 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7632 * arm-tdep.c (arm_gdbarch_init): Ditto.
7633 * avr-tdep.c (avr_gdbarch_init): Ditto.
7634 * cris-tdep.c (cris_gdbarch_init): Ditto.
7635 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7636 * frv-tdep.c (frv_gdbarch_init): Ditto.
7637 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7638 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7639 * i386-tdep.c (i386_gdbarch_init): Ditto.
7640 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7642 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7643 * mips-tdep.c (mips_gdbarch_init): Ditto.
7644 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7645 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7646 * s390-tdep.c (s390_gdbarch_init): Ditto.
7647 * sh-tdep.c (sh_gdbarch_init): Ditto.
7648 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7649 * v850-tdep.c (v850_gdbarch_init): Ditto.
7650 * vax-tdep.c (vax_gdbarch_init): Ditto.
7651 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7652
ce0c7262
CV
76532003-04-01 Corinna Vinschen <vinschen@redhat.com>
7654
7655 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7656
73dd234f
AC
76572003-04-01 Andrew Cagney <cagney@redhat.com>
7658
7659 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7660 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7661 * gdbarch.h, gdbarch.c: Re-generate.
7662 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7663 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7664 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7665 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7666 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7667 * infcmd.c (run_stack_dummy): Simplify assuming
7668 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7669 * infrun.c (handle_inferior_event): Ditto.
7670 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7671 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7672 * arm-tdep.c (arm_gdbarch_init): Ditto.
7673 * avr-tdep.c (avr_gdbarch_init): Ditto.
7674 * cris-tdep.c (cris_gdbarch_init): Ditto.
7675 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7676 * frv-tdep.c (frv_gdbarch_init): Ditto.
7677 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7678 * i386-tdep.c (i386_gdbarch_init): Ditto.
7679 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7680 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7681 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7682 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7683 * mips-tdep.c (mips_gdbarch_init): Ditto.
7684 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7685 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7686 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7687 * s390-tdep.c (s390_gdbarch_init): Ditto.
7688 * sh-tdep.c (sh_gdbarch_init): Ditto.
7689 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7690 * v850-tdep.c (v850_gdbarch_init): Ditto.
7691 * vax-tdep.c (vax_gdbarch_init): Ditto.
7692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7693
97606a13
DJ
76942003-04-01 Daniel Jacobowitz <drow@mvista.com>
7695
7696 * symfile.c (symfile_relocate_debug_section): Update call to
7697 bfd_simple_get_relocated_section_contents.
7698
e8ab51f7
AC
76992003-03-31 Andrew Cagney <cagney@redhat.com>
7700
7701 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
7702 * gdbarch.h, gdbarch.c: Regenerate.
7703 * inferior.h (FIX_CALL_DUMMY): Delete macro.
7704 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
7705 available.
7706 * frame.h (generic_fix_call_dummy): Delete declaration.
7707 * dummy-frame.h: Update comment.
7708 * dummy-frame.c (generic_fix_call_dummy): Delete function.
7709 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7710 fix_call_dummy.
7711 * sh-tdep.c (sh_gdbarch_init): Ditto.
7712 * s390-tdep.c (s390_gdbarch_init): Ditto.
7713 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7714 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7716 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7717 * i386-tdep.c (i386_gdbarch_init): Ditto.
7718 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7719 * frv-tdep.c (frv_gdbarch_init): Ditto.
7720 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7721 * cris-tdep.c (cris_gdbarch_init): Ditto.
7722 * avr-tdep.c (avr_gdbarch_init): Ditto.
7723 * arm-tdep.c (arm_gdbarch_init): Ditto.
7724
018d1b48
JB
77252003-03-31 J. Brobecker <brobecker@gnat.com>
7726
7727 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
7728 (INIT_FRAME_AP): Likewise.
7729 (EXTRA_FRAME_INFO): Likewise.
7730
e9a2674e
AC
77312003-03-31 Andrew Cagney <cagney@redhat.com>
7732
7733 * gdbarch.sh: Include "symfile.h".
7734 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
7735 * gdbarch.h, gdbarch.c: Re-generate.
7736 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
7737 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7738 call_dummy_address, the default is at entry_point_address.
7739 * v850-tdep.c (v850_gdbarch_init): Ditto.
7740 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7741 * sh-tdep.c (sh_gdbarch_init): Ditto.
7742 * s390-tdep.c (s390_gdbarch_init): Ditto.
7743 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7744 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7745 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7746 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7747 * i386-tdep.c (i386_gdbarch_init): Ditto.
7748 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7749 * frv-tdep.c (frv_gdbarch_init): Ditto.
7750 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7751 * cris-tdep.c (cris_gdbarch_init): Ditto.
7752 * arm-tdep.c (arm_gdbarch_init): Ditto.
7753
e8a8712a
AC
77542003-03-31 Andrew Cagney <cagney@redhat.com>
7755
7756 * gdbarch.sh (CALL_DUMMY_P): Delete.
7757 * gdbarch.h, gdbarch.c: Re-generate.
7758 * inferior.h (CALL_DUMMY_P): Delete macro.
7759 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7760 * vax-tdep.c (vax_gdbarch_init): Update.
7761 * v850-tdep.c (v850_gdbarch_init): Update.
7762 * sparc-tdep.c (sparc_gdbarch_init): Update.
7763 * sh-tdep.c (sh_gdbarch_init): Update.
7764 * s390-tdep.c (s390_gdbarch_init): Update.
7765 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7766 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7767 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7768 * mips-tdep.c (mips_gdbarch_init): Update.
7769 * mcore-tdep.c (mcore_gdbarch_init): Update.
7770 * m68k-tdep.c (m68k_gdbarch_init): Update.
7771 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7772 * ia64-tdep.c (ia64_gdbarch_init): Update.
7773 * i386-tdep.c (i386_gdbarch_init): Update.
7774 * h8300-tdep.c (h8300_gdbarch_init): Update.
7775 * frv-tdep.c (frv_gdbarch_init): Update.
7776 * d10v-tdep.c (d10v_gdbarch_init): Update.
7777 * cris-tdep.c (cris_gdbarch_init): Update.
7778 * breakpoint.c (deprecated_frame_in_dummy): Update.
7779 * avr-tdep.c (avr_gdbarch_init): Update.
7780 * alpha-tdep.c (alpha_gdbarch_init): Update.
7781 * arm-tdep.c (arm_gdbarch_init): Update.
7782 * dummy-frame.c (dummy_frame_this_id): Update comments.
7783 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
7784 * frame.c (legacy_get_prev_frame): Ditto.
7785 * valops.c (call_function_by_hand): Delete function.
7786 (hand_function_call): Rename to call_function_by_hand
7787
ed234cf8
AC
77882003-03-30 Andrew Cagney <cagney@redhat.com>
7789
7790 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 7791 * value.h (struct value): Update comment.
ed234cf8 7792
06c77151
AC
77932003-03-30 Andrew Cagney <cagney@redhat.com>
7794
6c2b5168
AC
7795 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
7796 D10V_FP_REGNUM.
7797 (d10v_gdbarch_init): Do not set fp_regnum.
7798
06c77151
AC
7799 * frame.c (get_frame_base): Force ID initialization.
7800 (get_prev_frame): Move computation of the frame ID from here ...
7801 (get_frame_id): ... to here.
7802 (legacy_get_prev_frame): Mark the frame ID as valid.
7803 * frame.h (struct frame_info): Add field "id_p".
7804
97a1a11c
MK
78052003-03-30 Mark Kettenis <kettenis@gnu.org>
7806
7807 * i386-tdep.c (i386_store_struct_return): Removed.
7808 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
7809
6c0e89ed
AC
78102003-03-30 Andrew Cagney <cagney@redhat.com>
7811
7812 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
7813 * gdbarch.h, gdbarch.c: Regenerate.
7814 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
7815 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7816 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7817 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7818 * i386-tdep.c (i386_gdbarch_init): Ditto.
7819 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7820 * cris-tdep.c (cris_gdbarch_init): Ditto.
7821 * vax-tdep.c (vax_gdbarch_init): Ditto.
7822 * s390-tdep.c (s390_gdbarch_init): Ditto.
7823 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7825 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7826 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
7827 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7828 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
7829 * sparc-tdep.c (sparc_gdbarch_init): Update.
7830 * sh-tdep.c (sh_gdbarch_init): Update.
7831 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7832 * mips-tdep.c (mips_gdbarch_init): Update.
7833 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7834 * ia64-tdep.c (ia64_gdbarch_init): Update.
7835 * frv-tdep.c (frv_gdbarch_init): Update.
7836 * avr-tdep.c (avr_gdbarch_init): Update.
7837 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
7838 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
7839 instead of when push_dummy_call is not available.
8ffd9b1b 7840
f7dd6af2
AC
78412003-03-30 Andrew Cagney <cagney@redhat.com>
7842
7843 * infttrace.c: Include "gdbthread.h".
7844 (parent_attach_all): Fix function signature.
7845 (call_ptrace): Update call.
7846 * Makefile.in (infttrace.o): Update dependencies.
7847
28f617b3
AC
78482003-03-30 Andrew Cagney <cagney@redhat.com>
7849
7850 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
7851 PUSH_RETURN_ADDRESS.
7852 * gdbarch.h, gdbarch.c: Regenerate.
7853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7854 * x86-64-tdep.c (x86_64_init_abi): Update.
7855 * v850-tdep.c (v850_gdbarch_init): Update.
7856 * sparc-tdep.c (sparc_gdbarch_init): Update.
7857 * sh-tdep.c (sh_gdbarch_init): Update.
7858 * s390-tdep.c (s390_gdbarch_init): Update.
7859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7860 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7861 * mips-tdep.c (mips_gdbarch_init): Update.
7862 * mcore-tdep.c (mcore_gdbarch_init): Update.
7863 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7864 * ia64-tdep.c (ia64_gdbarch_init): Update.
7865 * i386-tdep.c (i386_gdbarch_init): Update.
7866 * h8300-tdep.c (h8300_gdbarch_init): Update.
7867 * frv-tdep.c (frv_gdbarch_init): Update.
7868 * cris-tdep.c (cris_gdbarch_init): Update.
7869 * avr-tdep.c (avr_gdbarch_init): Update.
7870 * arm-tdep.c (arm_gdbarch_init): Update.
7871 * valops.c (hand_function_call): Update.
7872
4d628cd7
AC
78732003-03-29 Andrew Cagney <cagney@redhat.com>
7874
7875 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
7876 sizeof_call_dummy_words.
7877 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
7878 define.
7879 * gdbarch.h: Regenerate.
8ffd9b1b 7880
65e82032
AC
78812003-03-29 Andrew Cagney <cagney@redhat.com>
7882
7883 * infttrace.h: New file.
7884 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
7885 (hpread_get_textlow): Detect an uninitialized dn_bufp.
7886 (hpread_read_doc_function_type): Detect an initialized type1.
7887 (hpread_quick_traverse): Initialize mod_name_string.
7888 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
7889 (som_solib_get_solib_by_pc): Declare.
7890 (so_lib_thread_start_addr): Declare.
7891 (no_shared_libraries): Declare.
7892 * somread.c (init_import_symbols): Make static. Add forward
7893 declaration.
7894 * config/pa/nm-hppah.h: Include "infttrace.h" for
7895 parent_attach_all.
7896 (hppa_insert_hw_watchpoint): Declare.
7897 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
7898 * hppah-nat.c: Include "gdb_string.h".
7899 (parent_attach_all): Delete extern declaration, moved to
7900 "infttrace.h".
7901 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
7902 int.
7903 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
7904 * Makefile.in (infttrace_h): Define.
7905 (hpread.o): Update dependencies.
7906 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
7907 * hppa-hpux-tdep.c: Include "gdb_string.h".
7908 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
7909 * infrun.c (handle_inferior_event): Always initialize
7910 stepped_after_stopped_by_watchpoint. Add default and remove
7911 fallthrough in switch statement.
7912 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
7913 parameter to int.
7914 (hppa_remove_hw_watchpoint): Ditto.
7915
2c3bbe77
AC
79162003-03-29 Andrew Cagney <cagney@redhat.com>
7917
7918 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
7919 offset.
7920
2dd604e7
RE
79212003-03-29 Richard Earnshaw <rearnsha@arm.com>
7922
7923 * arm-tdep.c (arm_push_arguments): Delete.
7924 (struct stack_item): New type.
7925 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
7926 (arm_store_struct_return): Delte.
7927 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
7928 arm_push_arguments or arm_store_struct_return.
7929
e8933a55
AC
79302003-03-28 Andrew Cagney <cagney@redhat.com>
7931
7932 * Makefile.in (d10v-tdep.o): Update dependencies.
7933 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
7934 * d10v-tdep.c: Include "remote.h".
7935 (target_resume_hook): Delete extern declaration.
7936 (target_wait_loop_hook): Ditto.
7937 (tdisassemble_command): Eliminate assignment in "if" conditional.
7938 (d10v_ts2_register_sim_regno): Eliminate call to
7939 legacy_register_sim_regno.
7940 (d10v_ts3_register_sim_regno): Ditto.
7941
6949171e
JJ
79422003-03-28 Jeff Johnston <jjohnstn@redhat.com>
7943
7944 * thread.c: Reindented.
7945 * lin-lwp.c: Ditto.
7946 * linux-proc.c: Ditto.
7947
98c7071f
BR
79482003-03-28 Bob Rossi <bob_rossi@cox.net>
7949
fbe586ae 7950 * MAINTAINERS (write after approval): Add myself.
98c7071f 7951
5edc9ca6
TR
79522003-03-27 Theodore A. Roth <troth@openavr.org>
7953
7954 * objc-exp.y: Add missing semi-colons.
7955
378bfd1b
AC
79562003-03-27 Andrew Cagney <cagney@redhat.com>
7957
7958 * regcache.c (write_sp): Delete function and references.
7959 * inferior.h (write_sp): Delete declaration.
7960 * valops.c (hand_function_call): Replace write_sp with
7961 TARGET_WRITE_SP.
7962 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
7963 (sparc_pop_frame): Ditto.
8ffd9b1b 7964
56056df7
AC
79652003-03-27 Andrew Cagney <cagney@redhat.com>
7966
7967 * NEWS: Mention removal of support for hppa*-*-bsd* and
7968 hppa*-*-osf* natives, and hppa*-*-pro* target.
7969 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
7970 * config/pa/xm-pa.h: Obsolete file.
7971 * config/pa/xm-hppab.h: Obsolete file.
7972 * config/pa/nm-hppab.h: Obsolete file.
7973 * config/pa/tm-hppab.h: Obsolete file.
7974 * config/pa/tm-hppao.h: Obsolete file.
7975 * config/pa/nm-hppao.h: Obsolete file.
7976 * config/pa/tm-pro.h: Obsolete file.
7977 * config/pa/hppaosf.mt: Obsolete file.
7978 * config/pa/hppaosf.mh: Obsolete file.
7979 * config/pa/hppapro.mt: Obsolete file.
7980 * config/pa/hppabsd.mt: Obsolete file.
7981 * config/pa/hppabsd.mh: Obsolete file.
7982 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
7983 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
7984 hppa*-*-osf*.
7985
5873a88d
AC
79862003-03-27 Andrew Cagney <cagney@redhat.com>
7987
7988 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
7989 push_arguments. Don't set push_return_address or write_sp.
7990 (d10v_push_dummy_call): Replace d10v_push_arguments.
7991 (d10v_push_return_address, d10v_write_sp): Delete function,
7992 handled by push_dummy_call.
7993
b81774d8
AC
79942003-03-26 Andrew Cagney <cagney@redhat.com>
7995
7996 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
7997 (push_dummy_call): New pure multi-arch replacement with gdbarch,
7998 regcache and dummy_addr parameters.
7999 * gdbarch.h, gdbarch.c: Re-generate.
8000 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8001 available; assume it will handle stack alignment and return
8002 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8003 legacy_push_arguments.
8004 (legacy_push_arguments): Rename default_push_arguments.
8005 * value.h (legacy_push_arguments): Rename default_push_arguments.
8006 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8007 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8008 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8009 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8010 * config/i386/tm-symmetry.h: Update.
8011 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8012 * x86-64-tdep.c (x86_64_init_abi): Update.
8013 * v850-tdep.c (v850_gdbarch_init): Update.
8014 * sparc-tdep.c (sparc_gdbarch_init): Update.
8015 * sh-tdep.c (sh_gdbarch_init): Update.
8016 * s390-tdep.c (s390_gdbarch_init): Update.
8017 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8018 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8019 * mips-tdep.c (mips_gdbarch_init): Update.
8020 * mcore-tdep.c (mcore_gdbarch_init): Update.
8021 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8022 * ia64-tdep.c (ia64_gdbarch_init): Update.
8023 * i386-tdep.c (i386_gdbarch_init): Update.
8024 * hppa-tdep.c (hppa_gdbarch_init): Update.
8025 * h8300-tdep.c (h8300_gdbarch_init): Update.
8026 * frv-tdep.c (frv_gdbarch_init): Update.
8027 * d10v-tdep.c (d10v_gdbarch_init): Update.
8028 * cris-tdep.c (cris_gdbarch_init): Update.
8029 * avr-tdep.c (avr_gdbarch_init): Update.
8030 * arm-tdep.c (arm_gdbarch_init): Update.
8031 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8032 * alpha-tdep.c (alpha_gdbarch_init): Update.
8033
f541410f
DJ
80342003-03-26 Daniel Jacobowitz <drow@mvista.com>
8035
8036 * signals/signals.c (do_target_signal_to_host): Correct realtime
8037 signal range test.
8038
69f567ae
DJ
80392003-03-26 Daniel Jacobowitz <drow@mvista.com>
8040
8041 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8042 (struct sal_chain, map_catch_names): Remove.
8043 (catch_exception_command_1): Don't call
8044 handle_gnu_4_16_catch_command.
8045
d5d14a5a
DJ
80462003-03-26 Daniel Jacobowitz <drow@mvista.com>
8047
8048 From Mark Dettinger <dettinge@de.ibm.com>:
8049 * dwarf2cfi.c (read_2u): Increment pointer by two.
8050
bdd73e22
DJ
80512003-03-26 Daniel Jacobowitz <drow@mvista.com>
8052
8053 * signals/signals.c: Fix typos in last change.
8054
960cb555
DJ
80552003-03-26 Daniel Jacobowitz <drow@mvista.com>
8056
8057 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8058 not already defined. Use __SIGRTMIN if available.
8059 (target_signal_from_host): Remove SIGRTMIN block.
8060 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8061 the signal is within the realtime range.
8062
f636b87d
AF
80632003-03-25 Adam Fedor <fedor@gnu.org>
8064
8065 * Makefile.in (infrun.o): Add $(language_h)
8066 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8067 for language specific trampolines.
8068 * language.h (struct language_defn): Add skip_trampoline.
8069 (skip_language_trampoline): Declare.
8070 * language.c (unk_lang_trampoline, skip_language_trampoline):
8071 New functions.
8072 (unknown_language_defn, auto_language_defn, local_language_defn):
8073 Add ukn_lang_trampoline.
8074 * ada-lang.c (ada_language_defn): Add NULL for language
8075 specific skip_trampoline.
8076 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8077 scm-lang.c: Likewise.
8078 * objc-lang.c (objc_skip_trampoline): New function.
8079 (objc_language_defn): Add objc_skip_trampoline.
8080
28f617b3 80812003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
8082
8083 * frame.c (get_prev_frame): Delay validating a frame's ID -
8084 non-NULL, didn't go backwards - until an attempt to unwind it to
8085 the previous frame.
8086
f933a9c5
AC
80872003-03-25 Andrew Cagney <cagney@redhat.com>
8088
8089 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8090 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8091 * gdbarch.h, gdbarch.c: Re-generate.
8092 * config/sparc/tm-sparc.h
8093 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8094 * sparc-tdep.c (sparc_gdbarch_init): Set
8095 deprecated_extra_stack_alignment_needed.
8096 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8097 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8098 extra_stack_alignment_needed.
8099 * v850-tdep.c (v850_gdbarch_init): Ditto.
8100 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8101 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8102 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8103 * cris-tdep.c (cris_gdbarch_init): Ditto.
8104 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 8106
4183d812
AC
81072003-03-25 Andrew Cagney <cagney@redhat.com>
8108
8109 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8110 STORE_STRUCT_RETURN.
8111 * gdbarch.h, gdbarch.c: Regenerate.
8112 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8113 (d10v_push_arguments): Set the struct return register.
8114 (d10v_gdbarch_init): Update.
8115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8116 * x86-64-tdep.c (x86_64_init_abi): Update.
8117 * vax-tdep.c (vax_gdbarch_init): Update.
8118 * v850-tdep.c (v850_gdbarch_init): Update.
8119 * sparc-tdep.c (sparc_gdbarch_init): Update.
8120 * sh-tdep.c (sh_gdbarch_init): Update.
8121 * s390-tdep.c (s390_gdbarch_init): Update.
8122 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8123 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8124 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8125 * mips-tdep.c (mips_gdbarch_init): Update.
8126 * mcore-tdep.c (mcore_gdbarch_init): Update.
8127 * m68k-tdep.c (m68k_gdbarch_init): Update.
8128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8129 * ia64-tdep.c (ia64_gdbarch_init): Update.
8130 * i386-tdep.c (i386_gdbarch_init): Update.
8131 * hppa-tdep.c (hppa_gdbarch_init): Update.
8132 * h8300-tdep.c (h8300_gdbarch_init): Update.
8133 * frv-tdep.c (frv_gdbarch_init): Update.
8134 * cris-tdep.c (cris_gdbarch_init): Update.
8135 * avr-tdep.c (avr_gdbarch_init): Update.
8136 * arm-tdep.c (arm_gdbarch_init): Update.
8137 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 8138
1bf6d5cc
AC
81392003-03-25 Andrew Cagney <cagney@redhat.com>
8140
8141 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8142 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8143 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8144 * gdbarch.h, gdbarch.c: Regenerate.
8145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8146 call_dummy_stack_adjust_p.
8147 * vax-tdep.c (vax_gdbarch_init): Ditto.
8148 * v850-tdep.c (v850_gdbarch_init): Ditto.
8149 * sh-tdep.c (sh_gdbarch_init): Ditto.
8150 * s390-tdep.c (s390_gdbarch_init): Ditto.
8151 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8152 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8153 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8154 * mips-tdep.c (mips_gdbarch_init): Ditto.
8155 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8156 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8158 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8159 * i386-tdep.c (i386_gdbarch_init): Ditto.
8160 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8161 * frv-tdep.c (frv_gdbarch_init): Ditto.
8162 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8163 * cris-tdep.c (cris_gdbarch_init): Ditto.
8164 * avr-tdep.c (avr_gdbarch_init): Ditto.
8165 * arm-tdep.c (arm_gdbarch_init): Ditto.
8166 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8167 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8168 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8169 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8170 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8171 call_dummy_stack_adjust_p.
8172 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8173 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8174 * sparc-tdep.c (sparc32_push_arguments): Update.
8175 * valops.c (hand_function_call): Update.
8176
71c08af0
CV
81772003-03-25 Corinna Vinschen <vinschen@redhat.com>
8178
8179 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8180 set_gdbarch_char_signed.
8181
30757f90
RE
81822003-03-25 Richard Earnshaw <rearnsha@arm.com>
8183
8184 PR cli/548
8185 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8186
03d48a7d
RE
81872003-03-25 Richard Earnshaw <rearnsha@arm.com>
8188
8189 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8190 (_initialize_arm_tdep): Don't set tm_print_insn.
8191
2cf6873c
AF
81922003-03-24 Adam Fedor <fedor@gnu.org>
8193
8194 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8195 * objc-lang.h: Add multiple inclusion protection.
8196 (start_msglist, add_msglist, end_msglist): Additional declarations.
8197
17c0759e
RE
81982003-03-24 Richard Earnshaw <rearnsha@arm.com>
8199
8200 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8201 value was renamed to ARM_FLOAT_SOFT_FPA.
8202
618ce49f
AC
82032003-03-23 Andrew Cagney <cagney@redhat.com>
8204
8205 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8206 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8207 * gdbarch.h, gdbarch.c: Regenerate.
8208 * valops.c (hand_function_call): Update.
8209 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8210 * frame.c (legacy_saved_regs_this_id): Update.
8211 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8212 * dummy-frame.h: Update.
8213 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8214 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8215 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8216 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8217 * config/m68k/tm-sun3.h: Update.
8218 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8219 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8220 * x86-64-tdep.c (x86_64_init_abi): Update.
8221 * vax-tdep.c (vax_gdbarch_init): Update.
8222 * v850-tdep.c (v850_gdbarch_init): Update.
8223 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8224 * sh-tdep.c (sh_gdbarch_init): Update.
8225 * s390-tdep.c (s390_gdbarch_init): Update.
8226 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8227 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8228 (frame_get_saved_regs): Update.
8229 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8230 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8231 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8232 * mips-tdep.c (mips_gdbarch_init): Update.
8233 * mcore-tdep.c (mcore_gdbarch_init): Update.
8234 * m68k-tdep.c (m68k_gdbarch_init): Update.
8235 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8236 * ia64-tdep.c (ia64_gdbarch_init): Update.
8237 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8238 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8239 (i386_interix_back_one_frame): Update.
8240 * hppa-tdep.c (hppa_gdbarch_init): Update.
8241 (hppa_init_extra_frame_info): Update.
8242 * h8300-tdep.c (h8300_gdbarch_init): Update.
8243 * frv-tdep.c (frv_gdbarch_init): Update.
8244 * cris-tdep.c (cris_gdbarch_init): Update.
8245 * avr-tdep.c (avr_gdbarch_init): Update.
8246 * arm-tdep.c (arm_gdbarch_init): Update.
8247 * alpha-tdep.c (alpha_gdbarch_init): Update.
8248
fd50bc42
RE
82492003-03-22 Richard Earnshaw <rearnsha@arm.com>
8250
8251 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8252 (arm_get_fp_model): Declare.
8253 * arm-tdep.c (fp_model_strings): New string array.
8254 (arm_fp_model, current_fp_model): New variables.
8255 (arm_get_fp_model): New function.
8256 (arm_set_fp): New function.
8257 (set_fp_model_sfunc): New function.
8258 (show_fp_model): New function.
8259 (_initialize_arm_tdep): Add new command to set/show the FPU.
8260 (arm_extract_return_value): Use arm_get_fp_model.
8261 (arm_store_return_value): Likewise.
8262 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8263 to initialize the floating-point data types.
8264 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8265 model is FPA.
8266
26304000
RE
82672003-03-22 Richard Earnshaw <rearnsha@arm.com>
8268
8269 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8270 the current setting of each value.
8271 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 8272 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
8273 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8274 commands and add new version as subcommands of "set/show arm".
8275
afd7eef0
RE
82762003-03-22 Richard Earnshaw <rearnsha@arm.com>
8277
8278 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8279 (set_arm_command, show_arm_command): New functions.
8280 (_initialize_arm_tdep): Add them.
8281 (num_disassembly_options): Renamed from num_flavor_options.
8282 (valid_disassembly_styles): Renamed from valid_flavors.
8283 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 8284 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
8285 set_disassembly_flavor_sfunc.
8286 (set_disassembly_style): Renamed from set_disassembly_flavor.
8287 (arm_othernames): Updated.
8288 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8289 command. Add "set/show arm disassembly" commands. Deprecate
8290 "othernames" command.
8291
299a7944
RE
82922003-03-22 Richard Earnshaw <rearnsha@arm.com>
8293
8294 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8295 (arm-tdep.o): Depend on elf_arm_h.
8296
c1dac9e6
RE
82972003-03-22 Richard Earnshaw <rearnsha@arm.com>
8298
8299 * Makefile.in (coff_internal_h): Define.
8300 (arm-tdep.o): Update dependencies.
8301
2702d96c
RE
83022003-03-22 Richard Earnshaw <rearnsha@arm.com>
8303
8304 * arm-tdep.c (prologue_cache): Delete.
8305 (check_prologue_cache, save_prologue_cache): Delete.
8306 (arm_scan_prologue): Don't check or update the prologue_cache.
8307 (arm_gdb_arch_init): Don't initialize it.
8308 (_initialize_arm_tdep): Likewise.
8309
27d5d74b
SC
83102003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8311
8312 * MAINTAINERS (tui): Maintainer of tui code.
8313
1762d96d
CV
83142003-03-21 Corinna Vinschen <vinschen@redhat.com>
8315
8316 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8317 (i386-cygwin-tdep.o): Add dependencies.
8318 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8319 * i386-cygwin-tdep.c: New file.
8320 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8321 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8322
4c2e2391
AC
83232003-03-20 Andrew Cagney <cagney@redhat.com>
8324
f20d38b7
AC
8325 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8326 (handle_inferior_event): Remove code calling
8327 DYNAMIC_TRAMPOLINE_NEXTPC.
8328
0022b738
AC
8329 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8330 already has a full path.
8331
864dbc90
AC
8332 * main.c (gdb_main): Return 1.
8333 (captured_main): Call error to report an invalid interpreter.
8334
4c2e2391
AC
8335 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8336 * alpha-osf1-tdep.c: Include "gdb_string.h".
8337
5ef7553b
JB
83382003-03-19 J. Brobecker <brobecker@gnat.com>
8339
8340 Continuing work to convert the hppa targets to multiarch partial.
8341
8342 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8343 method, now that hppa_push_dummy_frame has a conformant prototype.
8344 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8345 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8346 for the switch to multiarch partial.
8347
7bde8967
KB
83482003-03-19 Kevin Buettner <kevinb@redhat.com>
8349
8350 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8351 when iss is issNull.
8352
b006a9e9
KB
83532003-03-18 Kevin Buettner <kevinb@redhat.com>
8354
8355 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8356 NUM_REGS bounds check.
8357
5e2e9765
KB
83582003-03-18 Kevin Buettner <kevinb@redhat.com>
8359
8360 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8361 * mips-tdep.c (gdb_assert.h): Include.
8362 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8363 (mips_register_name): Handle integer registers explicitly. Add
8364 bounds checking.
8365 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8366 (mips_lsi33k_reg_names): Don't list integer registers; they're
8367 handled by mips_register_name() now.
8368 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8369 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8370 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8371 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8372 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8373
a2867626
AC
83742003-03-18 Andrew Cagney <cagney@redhat.com>
8375
8376 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8377 a void pointer.
8378 * gdbtypes.h (print_scalar_formatted): Update declaration.
8379 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8380
06600e06
JB
83812003-03-18 J. Brobecker <brobecker@gnat.com>
8382
8383 * infrun.c (observer.h): Add #include.
8384 (normal_stop): Add call to observer_notify_normal_stop.
8385 * Makefile.in (infrun.o): Add dependency on observer.h.
8386
7daf4f5b
JB
83872003-03-18 J. Brobecker <brobecker@gnat.com>
8388
8389 Continuing work to convert the hppa targets to multiarch partial.
8390 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8391 parameter. Reformat comment.
8392 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8393 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8394 to match new profile.
8395
3371ccc0
JB
83962003-03-18 J. Brobecker <brobecker@gnat.com>
8397
8398 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8399 appear to be working in any case.
8400
4fbe891e
JB
84012003-03-18 J. Brobecker <brobecker@gnat.com>
8402
8403 * observer.c (observer_test_first_observer): New static variable.
8404 (observer_test_second_observer): Likewise.
8405 (observer_test_third_observer): Likewise.
8406 (observer_test_first_notification_function): New static function.
8407 (observer_test_second_notification_function): Likewise.
8408 (observer_test_third_notification_function): Likewise.
8409
a7ff40e7
JB
84102003-03-17 J. Brobecker <brobecker@gnat.com>
8411
8412 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8413 * somsolib.c (gdb_assert.h): Likewise.
8414 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8415 (somsolib.o): Likewise.
8416
26ca4152
AC
84172003-03-17 Andrew Cagney <cagney@redhat.com>
8418
8419 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8420 BFD. Simplify setting of di.endian.
8421
0a613259
AC
84222003-03-17 Andrew Cagney <cagney@redhat.com>
8423
8424 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8425 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8426
8427 From Elena Zannoni <ezannoni@redhat.com>
8428 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8429 vector and floating-point parameters.
8430 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8431 convention.
8432 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8433
1132738f
FN
84342003-03-17 Fernando Nasser <fnasser@redhat.com>
8435
8436 * MAINTAINERS: Remove my name from several maintainership roles.
8437
6dc42492
AC
84382003-03-17 Andrew Cagney <cagney@redhat.com>
8439
8440 Fix frame off-by-one bug.
8441 * frame-unwind.h (frame_this_id_ftype): Replace
8442 frame_unwind_id_ftype.
8443 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8444 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8445 with "prev_register".
8446 * frame-unwind.c (frame_unwind_find_by_pc): Return
8447 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8448 comment.
8449 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8450 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8451 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8452 (dummy_frame_unwind): Update.
8453 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8454 sentinel_frame_register_unwind.
8455 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8456 (sentinel_frame_unwinder): Update.
8457 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8458 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8459 * frame.c (create_sentinel_frame): Update. Initialize
8460 "prologue_cache" instead of "unwind_cache".
8461 (frame_register_unwind): Call this frame's prev_register with the
8462 next frame and this frame's prologue cache.
8463 (get_prev_frame): Simplify. Always call prev frame's this_id with
8464 this frame and prev frame's prologue cache. Document that this
8465 call is shifted one to the left when compared to the
8466 frame_register_unwind call.
8467 (legacy_saved_regs_prev_register): Replace
8468 frame_saved_regs_register_unwind.
8469 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8470 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8471 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8472 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8473 (d10v_frame_unwind): Update.
8474 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8475 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8476 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8477 "saved_regs" with "this_saved_regs".
8478
efd710d6
AC
84792003-03-16 Andrew Cagney <cagney@redhat.com>
8480
8481 * frame.c (frame_pop): Don't call target_store_registers. Fix
8482 problem reported by Mark Kettenis.
8483
4e259f09
MK
84842003-03-16 Mark Kettenis <kettenis@gnu.org>
8485
8486 * i386-tdep.c (i386_register_type): Renamed from
8487 i386_register_virtual_type. Adjust function signature.
8488 (i386_gdbarch_init): Set register_type instead of
8489 deprecated_max_register_raw_size,
8490 deprecated_max_register_virtual_size and register_virtual_type.
8491
055bb976
AC
84922003-03-14 Andrew Cagney <cagney@redhat.com>
8493
8494 * frame.c (get_prev_frame): When a legacy frame, always call
8495 legacy_get_prev_frame. Simplify unwind code using assumption that
8496 the unwinder is new.
8497 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8498 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8499 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8500
ac2adee5
AC
85012003-03-14 Andrew Cagney <cagney@redhat.com>
8502
8503 * frame.c (get_saved_register): Delete function.
8504 * frame.h (get_saved_register): Delete declaration.
8505 * xstormy16-tdep.c: Update comment.
8506 * regcache.h: Update comments.
8507 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8508 get_saved_register and extract_address, use
8509 frame_read_unsigned_register.
8510 (sparc_frame_saved_pc): Ditto.
8511 (sparc_get_saved_register): Instead of get_saved_register, use
8512 frame_register.
8513 (sparc_pop_frame): Ditto.
8514 * findvar.c: Update comments.
8515 (value_of_register): Call frame_register instead of
8516 get_saved_register.
8517 (value_from_register): Ditto.
8518 * config/sparc/tm-sparc.h: Update comment.
8519 * breakpoint.c: Update comment.
8520
129c1cd6
AC
85212003-03-14 Andrew Cagney <cagney@redhat.com>
8522
8523 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8524 GET_SAVED_REGISTER.
8525 * gdbarch.h, gdbarch.c: Re-generate.
8526 * frame.h: Update comments.
8527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8528 * x86-64-tdep.c (x86_64_init_abi): Update.
8529 * sparc-tdep.c (sparc_gdbarch_init): Update.
8530 * sh-tdep.c (sh_gdbarch_init): Update.
8531 * mips-tdep.c (mips_gdbarch_init): Update.
8532 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8533 * cris-tdep.c (cris_gdbarch_init): Update.
8534 * ia64-tdep.c (ia64_gdbarch_init): Update.
8535 * frame.c (frame_register): Update.
8536 (get_saved_register): Update.
8537 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 8538
749b82f6
AC
85392003-03-13 Andrew Cagney <cagney@redhat.com>
8540
8541 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8542 * gdbarch.h, gdbarch.c: Regenerate.
8543 * valops.c (hand_function_call): Update comment.
8544 * stack.c (return_command): Update comment.
8545 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8546 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8547 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8548 * x86-64-tdep.c (x86_64_init_abi): Update.
8549 * vax-tdep.c (vax_gdbarch_init): Update.
8550 * v850-tdep.c (v850_gdbarch_init): Update.
8551 * sparc-tdep.c (sparc_gdbarch_init): Update.
8552 * sh-tdep.c (sh_gdbarch_init): Update.
8553 * s390-tdep.c (s390_gdbarch_init): Update.
8554 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8555 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8556 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8557 * mips-tdep.c (mips_gdbarch_init): Update.
8558 * mcore-tdep.c (mcore_gdbarch_init): Update.
8559 * m68k-tdep.c (m68k_gdbarch_init): Update.
8560 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8561 * ia64-tdep.c (ia64_gdbarch_init): Update.
8562 * i386-tdep.c (i386_gdbarch_init): Update.
8563 * hppa-tdep.c (hppa_gdbarch_init): Update.
8564 * h8300-tdep.c (h8300_gdbarch_init): Update.
8565 * frv-tdep.c (frv_gdbarch_init): Update.
8566 * cris-tdep.c (cris_gdbarch_init): Update.
8567 * avr-tdep.c (avr_gdbarch_init): Update.
8568 * arm-tdep.c (arm_gdbarch_init): Update.
8569 * alpha-tdep.c (alpha_gdbarch_init): Update.
8570
1594fa56
AC
85712003-03-13 Andrew Cagney <cagney@redhat.com>
8572
8573 * frame.c (legacy_frame_p): New function.
8574 (get_prev_frame): Use legacy_frame_p.
8575 * frame.h (legacy_frame_p): Declare.
8576
7717fda3
V
85772003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8578
fbe586ae 8579 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
8580 listing corrected.
8581
0c67cbe9
V
85822003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8583
fbe586ae 8584 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 8585
03febf99
AC
85862003-03-12 Andrew Cagney <cagney@redhat.com>
8587
8588 * frame.c (get_prev_frame): Rename the frame parameter to
8589 "this_frame".
8590 (get_next_frame, legacy_get_prev_frame): Ditto.
8591
0a1e1ca1
AC
85922003-03-12 Andrew Cagney <cagney@redhat.com>
8593
8594 * frame.c (get_current_frame): Check target_has_registers before
8595 checking target_has_stack.
8596 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8597 instead of deprecated_selected_frame.
8598 * findvar.c (value_of_register): Pass "frame", not
8599 deprecated_selected_frame, to value_of_builtin_reg.
8600
a66a9c23
AC
86012003-03-12 Andrew Cagney <cagney@redhat.com>
8602
8603 * regcache.c (regcache_cooked_write_signed): New function.
8604 (regcache_cooked_write_unsigned): New function.
8605 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8606 (regcache_cooked_read_signed): Fix regnum in range assertion.
8607 * regcache.h (regcache_cooked_write_signed): Declare.
8608 (regcache_cooked_write_unsigned): Declare.
8609
8bedc050
AC
86102003-03-12 Andrew Cagney <cagney@redhat.com>
8611
8612 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8613 * gdbarch.h, gdbarch.c: Re-generate.
8614 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8615 * x86-64-tdep.h: Update.
8616 * x86-64-tdep.c (x86_64_init_abi): Update.
8617 * v850-tdep.c (v850_gdbarch_init): Update.
8618 * sparc-tdep.c (sparc_gdbarch_init): Update.
8619 * sh-tdep.c (sh_gdbarch_init): Update.
8620 * s390-tdep.c (s390_gdbarch_init): Update.
8621 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8622 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8623 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8624 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8625 * mips-tdep.c (mips_gdbarch_init): Update.
8626 * mcore-tdep.c (mcore_gdbarch_init): Update.
8627 * m68k-tdep.c (m68k_gdbarch_init): Update.
8628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8629 * ia64-tdep.c (ia64_gdbarch_init): Update.
8630 * i386-tdep.c (i386_gdbarch_init): Update.
8631 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8632 * hppa-tdep.c (hppa_gdbarch_init): Update.
8633 * h8300-tdep.c (h8300_gdbarch_init): Update.
8634 * frv-tdep.c (frv_gdbarch_init): Update.
8635 * cris-tdep.c (cris_gdbarch_init): Update.
8636 * avr-tdep.c (avr_gdbarch_init): Update.
8637 * arm-tdep.c (arm_gdbarch_init): Update.
8638 * alpha-tdep.c (alpha_gdbarch_init): Update.
8639 * sh-tdep.c (sh_init_extra_frame_info): Update.
8640 (sh64_init_extra_frame_info): Update.
8641 * ns32knbsd-nat.c (frame_num_args): Update.
8642 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8643 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8644 (xstormy16_frame_chain_valid): Update.
8645 * vax-tdep.c (vax_saved_pc_after_call): Update.
8646 * v850-tdep.c (v850_frame_chain): Update.
8647 (v850_pop_frame): Update.
8648 (v850_init_extra_frame_info): Update.
8649 * sparc-tdep.c (setup_arbitrary_frame): Update.
8650 * ns32k-tdep.c (umax_frame_num_args): Update.
8651 * s390-tdep.c (s390_pop_frame_regular): Update.
8652 * mn10300-tdep.c (mn10300_frame_chain): Update.
8653 (mn10300_pop_frame_regular): Update.
8654 (mn10300_init_extra_frame_info): Update.
8655 * mips-tdep.c (mips_init_frame_pc_first): Update.
8656 (mips_frame_chain): Update.
8657 (mips_pop_frame): Update.
8658 * mcore-tdep.c (mcore_frame_chain): Update.
8659 (mcore_pop_frame): Update.
8660 (mcore_init_extra_frame_info): Update.
8661 * arch-utils.c (init_frame_pc_default): Update.
8662 * m68k-tdep.c (isi_frame_num_args): Update.
8663 (delta68_frame_num_args): Update.
8664 (news_frame_num_args): Update.
8665 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8666 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8667 (alpha_frame_chain): Update.
8668 (alpha_pop_frame): Update.
8669 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8670 (hppa_init_extra_frame_info): Update.
8671 (hppa_frame_chain): Update.
8672 (hppa_frame_chain_valid): Update.
8673 * cris-tdep.c (cris_init_extra_frame_info): Update.
8674 * avr-tdep.c (avr_init_extra_frame_info): Update.
8675 * arm-tdep.c (arm_frame_chain_valid): Update.
8676 (arm_init_extra_frame_info): Update.
8677 (arm_pop_frame): Update.
8678 * frame.c (frame_pc_unwind): Update.
8679 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8680 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8681 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8682 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8683 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8684 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8685
7a25a7c1
AC
86862003-03-12 Andrew Cagney <cagney@redhat.com>
8687
8688 Eliminate the need for POP_FRAME.
8689 * frame.c (do_frame_unwind_register): New function.
8690 (frame_pop): When no POP_FRAME, pop the frame using register
8691 unwind and a scratch regcache.
8692 (frame_saved_regs_pop): Delete function.
8693 (trad_frame_unwinder): Update.
8694 * d10v-tdep.c (d10v_frame_pop): Delete function.
8695 (d10v_frame_unwind): Update.
8696 * sentinel-frame.c (sentinel_frame_pop): Delete function.
8697 (sentinel_frame_unwinder): Update.
8698 * dummy-frame.c (dummy_frame_pop): Delete function.
8699 (dummy_frame_unwind): Update.
8700 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
8701 (struct frame_unwind): Update.
8702
2f38ef89
KB
87032003-03-11 Kevin Buettner <kevinb@redhat.com>
8704
8705 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
8706 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
8707 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
8708 Do range checks on register number obtained from debugging info.
8709 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
8710 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
8711 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
8712 mapping function.
8713 (do_fp_register_row): Fix typo which caused double type to be
8714 used when attempting to unpack a float.
8715
552f4abf
JB
87162003-03-11 J. Brobecker <brobecker@gnat.com>
8717
8718 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
8719
e0d2ae16
AC
87202003-03-11 Andrew Cagney <cagney@redhat.com>
8721
8722 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
8723 frame. Problem found by Corinna Vinschen.
8724
ddbfdd06
PM
87252003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
8726
8727 * doublest.c (floatformat_from_length): Accept also
8728 the real size of 'long double' type.
8729
088b2ddc 87302003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 8731
088b2ddc 8732 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
8733 * breakpoint.c (bpstat_copy): Copy the command lines as well
8734 as the old value, to match what is freed in bpstat_clear.
8735
f56f77c1
DC
87362003-03-10 David Carlton <carlton@math.stanford.edu>
8737
8738 * minsyms.c (add_minsym_to_hash_table): Replace
8739 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
8740 (compare_minimal_symbols, compact_minimal_symbols)
8741 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
8742 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
8743 of DEPRECATED_SYMBOL_MATCHES_NAME.
8744 (lookup_minimal_symbol_solib_trampoline): Ditto.
8745
5602984a
AC
87462003-03-10 Andrew Cagney <cagney@redhat.com>
8747
8748 * regcache.h (regcache_cooked_read_ftype): Define.
8749 (regcache_save, regcache_restore): Add a cooked_read parameter.
8750 * regcache.c (regcache_save, regcache_restore): Update.
8751 (do_cooked_read): New function.
8752 (regcache_cpy): Pass do_cooked_read to regcache_save and
8753 regcache_restore.
8754
8bedc050
AC
87552003-03-10 Andrew Cagney <cagney@redhat.com>
8756
8757 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8758 * gdbarch.h, gdbarch.c: Re-generate.
8759 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8760 * x86-64-tdep.h: Update.
8761 * x86-64-tdep.c (x86_64_init_abi): Update.
8762 * v850-tdep.c (v850_gdbarch_init): Update.
8763 * sparc-tdep.c (sparc_gdbarch_init): Update.
8764 * sh-tdep.c (sh_gdbarch_init): Update.
8765 * s390-tdep.c (s390_gdbarch_init): Update.
8766 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8767 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8768 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8769 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8770 * mips-tdep.c (mips_gdbarch_init): Update.
8771 * mcore-tdep.c (mcore_gdbarch_init): Update.
8772 * m68k-tdep.c (m68k_gdbarch_init): Update.
8773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8774 * ia64-tdep.c (ia64_gdbarch_init): Update.
8775 * i386-tdep.c (i386_gdbarch_init): Update.
8776 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8777 * hppa-tdep.c (hppa_gdbarch_init): Update.
8778 * h8300-tdep.c (h8300_gdbarch_init): Update.
8779 * frv-tdep.c (frv_gdbarch_init): Update.
8780 * cris-tdep.c (cris_gdbarch_init): Update.
8781 * avr-tdep.c (avr_gdbarch_init): Update.
8782 * arm-tdep.c (arm_gdbarch_init): Update.
8783 * alpha-tdep.c (alpha_gdbarch_init): Update.
8784 * sh-tdep.c (sh_init_extra_frame_info): Update.
8785 (sh64_init_extra_frame_info): Update.
8786 * ns32knbsd-nat.c (frame_num_args): Update.
8787 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8788 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8789 (xstormy16_frame_chain_valid): Update.
8790 * vax-tdep.c (vax_saved_pc_after_call): Update.
8791 * v850-tdep.c (v850_frame_chain): Update.
8792 (v850_pop_frame): Update.
8793 (v850_init_extra_frame_info): Update.
8794 * sparc-tdep.c (setup_arbitrary_frame): Update.
8795 * ns32k-tdep.c (umax_frame_num_args): Update.
8796 * s390-tdep.c (s390_pop_frame_regular): Update.
8797 * mn10300-tdep.c (mn10300_frame_chain): Update.
8798 (mn10300_pop_frame_regular): Update.
8799 (mn10300_init_extra_frame_info): Update.
8800 * mips-tdep.c (mips_init_frame_pc_first): Update.
8801 (mips_frame_chain): Update.
8802 (mips_pop_frame): Update.
8803 * mcore-tdep.c (mcore_frame_chain): Update.
8804 (mcore_pop_frame): Update.
8805 (mcore_init_extra_frame_info): Update.
8806 * arch-utils.c (init_frame_pc_default): Update.
8807 * m68k-tdep.c (isi_frame_num_args): Update.
8808 (delta68_frame_num_args): Update.
8809 (news_frame_num_args): Update.
8810 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8811 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8812 (alpha_frame_chain): Update.
8813 (alpha_pop_frame): Update.
8814 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8815 (hppa_init_extra_frame_info): Update.
8816 (hppa_frame_chain): Update.
8817 (hppa_frame_chain_valid): Update.
8818 * cris-tdep.c (cris_init_extra_frame_info): Update.
8819 * avr-tdep.c (avr_init_extra_frame_info): Update.
8820 * arm-tdep.c (arm_frame_chain_valid): Update.
8821 (arm_init_extra_frame_info): Update.
8822 (arm_pop_frame): Update.
8823 * frame.c (frame_pc_unwind): Update.
8824 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8825 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8826 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8827 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8828 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8829 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 8830
12cc2063
AC
88312003-03-10 Andrew Cagney <cagney@redhat.com>
8832
8833 * gdbarch.sh (gdbarch_unwind_pc): New method.
8834 * gdbarch.h, gdbarch.c: Regenerate.
8835 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
8836 but use read_pc and FRAME_SAVED_PC as fall backs.
8837 (frame_saved_regs_pc_unwind): Delete function.
8838 (trad_frame_unwinder): Update.
8839 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
8840 (struct frame_unwind): Update.
8841 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
8842 (dummy_frame_unwind): Update.
8843 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
8844 (sentinel_frame_unwinder): Update.
8845 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
8846 (d10v_frame_unwind): Update.
8847 (d10v_unwind_pc): New function.
8848 (d10v_gdbarch_init): Set unwind_pc.
8849
ef840a37
AC
88502003-03-10 Andrew Cagney <cagney@redhat.com>
8851
a2ce2e56
AC
8852 * gdbarch.h: Re-generate.
8853
ef840a37
AC
8854 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
8855 PC.
8856 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
8857 the PC register.
8858
08f3424b
MK
88592003-03-08 Mark Kettenis <kettenis@gnu.org>
8860
8861 * gdbarch.sh (save_dummy_frame_tos): Add comment.
8862
1248ede2
AC
88632003-03-08 Andrew Cagney <cagney@redhat.com>
8864
8865 * cli-out.c: Update copyright.
8866 (cli_out_data): Define typedef. Use instead of ui_out_data.
8867
f49bacc8
AC
88682003-03-08 Andrew Cagney <cagney@redhat.com>
8869
8870 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
8871 the result.
8872
9b05f993
AC
88732003-03-07 Andrew Cagney <cagney@redhat.com>
8874
8875 * gdbarch.sh: Don't generate two macro definitions when an
8876 undefined macro taking no arguments.
8877 * gdbarch.h: Regenerate.
8ffd9b1b 8878
166f4c7b
ML
88792002-03-07 Michal Ludvig <mludvig@suse.cz>
8880
8881 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
8882 (x86_64_unwind_dummy_id): New functions.
8883 (x86_64_init_abi): Register these two new functions.
8884
6d686a84
ML
88852003-03-07 Michal Ludvig <mludvig@suse.cz>
8886
8887 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 8888 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
8889 separate function.
8890 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
8891
6314f104
AC
88922003-03-05 Andrew Cagney <cagney@redhat.com>
8893
8894 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
8895 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
8896 * frame.c (get_prev_frame): Restructure the frame ID unwind code
8897 to use unwind_dummy_id when a dummy frame.
8898 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
8899 predicate.
8900 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 8901
ceea5145
AC
89022003-03-05 Andrew Cagney <cagney@redhat.com>
8903
8904 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
8905 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
8906 Do not use d10v_read_sp or d10v_read_fp when obtaining register
8907 values.
8908
0d843116
AC
89092003-03-05 Andrew Cagney <cagney@redhat.com>
8910
8911 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
8912 (struct d10v_unwind_cache): Delete field "frameless". Replace
8913 "next_addr" with "sp_offset". Add "r11_offset".
8914 (d10v_frame_unwind_cache): Update.
8915 (prologue_find_regs): Update. When "mv r11, sp", save the
8916 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
8917 RN was saved in r11_offset.
8918
b2579786
AC
89192003-03-05 Andrew Cagney <cagney@redhat.com>
8920
8921 * frame.c (deprecated_update_frame_pc_hack): Also update the the
8922 cached PC value in the next frame.
8923
218e5956
AC
89242003-03-05 Andrew Cagney <cagney@redhat.com>
8925
8926 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
8927 "id_unwind_cache" with "id".
8928 (frame_id_unwind): Delete declaration.
8929 * frame.c (frame_id_unwind): Delete function.
8930 (get_prev_frame): Call the frame id unwind method directly. Store
8931 the returned next frame's ID value in NEXT_FRAME. Note that there
8932 is a problem with the wrong unwind ID being called with the wrong
8933 unwind cache.
8934
ed363b1b
DJ
89352003-03-05 Daniel Jacobowitz <drow@mvista.com>
8936
8937 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
8938
fe1f4a5e
DJ
89392003-03-05 James Ingham <jingham@apple.com>
8940 Daniel Jacobowitz <drow@mvista.com>
8941
8942 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
8943 (auto_cp_abi): New variable.
8944 (current_cp_abi, num_cp_abis): Make static.
8945 (CP_ABI_MAX): Define.
8946 (cp_abis): Turn into an array.
8947 (value_virtual_fn_field): Fix formatting.
8948 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
8949 takes a pointer.
8950 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
8951 (list_cp_abis, _initialize_cp_abi): New functions.
8952 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
8953 declarations for cp_abis, num_cp_abis, current_cp_abi, and
8954 switch_to_cp_abi. Update prototype for register_cp_abi.
8955 * Makefile.in (cp-abi.o): Update dependencies.
8956 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
8957 instead of switch_to_cp_abi.
8958 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
8959 register_cp_abi.
8960 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
8961 register_cp_abi.
8962 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
8963
e4adbba9
DJ
89642003-03-05 Daniel Jacobowitz <drow@mvista.com>
8965
8966 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
8967 * dwarf2loc.c: Include "regcache.h".
8968 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
8969 register_size.
8970 * Makefile.in (dwarf2loc.o): Update dependencies.
8971
91ccbfc1
TR
89722003-03-04 Theodore A. Roth <troth@openavr.org>
8973
8974 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
8975 number of io registers reported by remote target is not a multiple of
8976 step.
8977
3d4e8fd2
DC
89782003-03-04 David Carlton <carlton@math.stanford.edu>
8979
8980 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
8981 (lookup_symbol_aux_psymtabs): Update call to
8982 lookup_partial_symbol.
8983 (lookup_transparent_type, find_main_psymtab)
8984 (make_symbol_overload_list): Ditto.
8985
ed42d87b
KH
89862003-03-04 Kazu Hirata <kazu@cs.umass.edu>
8987
8988 * MAINTAINERS (Write after approval): Update my email address.
8989
a0ed5532
AC
89902003-03-03 Andrew Cagney <cagney@redhat.com>
8991
8992 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
8993 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
8994 predicate. Replace MAX_REGISTER_RAW_SIZE.
8995 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
8996 MAX_REGISTER_VIRTUAL_SIZE.
8997 * regcache.c (legacy_max_register_raw_size): New function.
8998 (legacy_max_register_virtual_size): New function.
8999 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9000 (MAX_REGISTER_RAW_SIZE): Define.
9001 (legacy_max_register_raw_size): Declare.
9002 (legacy_max_register_virtual_size): Declare.
9003 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9004 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9005 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9006 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9007 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9008 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9009 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9010 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9011 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9012 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9013 * vax-tdep.c (vax_gdbarch_init): Update.
9014 * v850-tdep.c (v850_gdbarch_init): Update.
9015 * sparc-tdep.c (sparc_gdbarch_init): Update.
9016 * sh-tdep.c (sh_gdbarch_init): Update.
9017 * s390-tdep.c (s390_gdbarch_init): Update.
9018 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9019 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9020 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9021 * mips-tdep.c (mips_gdbarch_init): Update.
9022 * mcore-tdep.c (mcore_gdbarch_init): Update.
9023 * m68k-tdep.c (m68k_gdbarch_init): Update.
9024 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9025 * ia64-tdep.c (ia64_gdbarch_init): Update.
9026 * i386-tdep.c (i386_gdbarch_init): Update.
9027 * hppa-tdep.c (hppa_gdbarch_init): Update.
9028 * h8300-tdep.c (h8300_gdbarch_init): Update.
9029 * frv-tdep.c (frv_gdbarch_init): Update.
9030 * cris-tdep.c (cris_gdbarch_init): Update.
9031 * avr-tdep.c (avr_gdbarch_init): Update.
9032 * arm-tdep.c (arm_gdbarch_init): Update.
9033 * alpha-tdep.c (alpha_gdbarch_init): Update.
9034 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9035 max_register_raw_size or max_register_virtual_size.
9036
8e437497
DC
90372003-03-03 David Carlton <carlton@math.stanford.edu>
9038
9039 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9040 SYMBOL_MATCHES_NAME, add comment.
9041 (SYMBOL_MATCHES_NATURAL_NAME): New.
9042 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9043 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9044 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9045 * symtab.c (lookup_partial_symbol): Use
9046 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9047 unhelpful comment.
9048 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9049 SYMBOL_MATCHES_NAME.
9050 Fix for PR c++/33.
9051
25120b0d
DC
90522003-03-03 David Carlton <carlton@math.stanford.edu>
9053
9054 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9055 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9056 by regexp matching against SYMBOL_NATURAL_NAME.
9057
78a11fb4
DC
90582003-03-03 David Carlton <carlton@math.stanford.edu>
9059
9060 * linespec.c (find_method): Extract code into collect_methods.
9061 (collect_methods): New.
9062
645dd519
MK
90632003-03-02 Mark Kettenis <kettenis@gnu.org>
9064
b4700d91
MK
9065 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9066 get_frame_base.
9067
645dd519
MK
9068 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9069 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9070
0aa7e1aa
SC
90712003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9072
8ffd9b1b 9073 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
9074 and not regnum when summing the size of all registers up to regnum.
9075
f30ee0bc
AC
90762003-03-01 Andrew Cagney <cagney@redhat.com>
9077
9078 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9079 FRAME_INIT_SAVED_REGS.
9080 * gdbarch.h, gdbarch.c: Regenerate.
9081 * stack.c (frame_info): Update.
9082 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9083 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9084 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9085 * ns32k-tdep.c (ns32k_pop_frame): Update.
9086 * mips-tdep.c (mips_pop_frame): Update.
9087 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9088 * ia64-tdep.c (ia64_frame_chain): Update.
9089 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9090 (ia64_frameless_function_invocation): Update.
9091 (ia64_init_extra_frame_info): Update.
9092 (ia64_pop_frame_regular): Update.
9093 * frame.h (struct frame_info): Update comment.
9094 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9095 * frame.c (frame_saved_regs_register_unwind): Update.
9096 (frame_saved_regs_register_unwind): Update.
9097 (deprecated_generic_get_saved_register): Update.
9098 * cris-tdep.c: Update comment.
9099 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9100 Rename macro.
9101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9102 * x86-64-tdep.c (x86_64_init_abi): Update.
9103 * vax-tdep.c (vax_gdbarch_init): Update.
9104 * v850-tdep.c (v850_gdbarch_init): Update.
9105 * sparc-tdep.c (sparc_gdbarch_init): Update.
9106 * sh-tdep.c (sh_gdbarch_init): Update.
9107 * s390-tdep.c (s390_gdbarch_init): Update.
9108 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9109 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9110 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9111 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9112 * mips-tdep.c (mips_gdbarch_init): Update.
9113 * mcore-tdep.c (mcore_gdbarch_init): Update.
9114 * m68k-tdep.c (m68k_gdbarch_init): Update.
9115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9116 * ia64-tdep.c (ia64_gdbarch_init): Update.
9117 * i386-tdep.c (i386_gdbarch_init): Update.
9118 * frv-tdep.c (frv_gdbarch_init): Update.
9119 * avr-tdep.c (avr_gdbarch_init): Update.
9120 * arm-tdep.c (arm_gdbarch_init): Update.
9121 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9122
42fa7c0f
AC
91232003-03-01 Andrew Cagney <cagney@redhat.com>
9124
9125 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9126 option enum and switch. When no windows, set the interpreter to
9127 INTERP_CONSOLE.
8ffd9b1b 9128
49c7e338
AC
91292003-03-01 Andrew Cagney <cagney@redhat.com>
9130
9131 * main.c (captured_main): Replace magic option characters with an
9132 enum.
9133
e9582e71
AC
91342003-03-01 Andrew Cagney <cagney@redhat.com>
9135
9136 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9137 INIT_EXTRA_FRAME_INFO.
9138 * gdbarch.h, gdbarch.c: Regenerate.
9139 * arm-tdep.c: Update comments.
9140 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9141 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9142 * frame.h, avr-tdep.c: Ditto.
9143 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9144 (create_new_frame, legacy_get_prev_frame): Ditto.
9145 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9146 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9148 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9149 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9150 * v850-tdep.c (v850_gdbarch_init): Ditto.
9151 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9152 * sh-tdep.c (sh_gdbarch_init): Ditto.
9153 * s390-tdep.c (s390_gdbarch_init): Ditto.
9154 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9155 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9156 * mips-tdep.c (mips_gdbarch_init): Ditto.
9157 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9159 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9160 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9161 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9162 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9163 * frv-tdep.c (frv_gdbarch_init): Ditto.
9164 * cris-tdep.c (cris_gdbarch_init): Ditto.
9165 * avr-tdep.c (avr_gdbarch_init): Ditto.
9166 * arm-tdep.c (arm_gdbarch_init): Ditto.
9167 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9168 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9169
35cac7cf
AC
91702003-03-01 Andrew Cagney <cagney@redhat.com>
9171
9172 * gdbarch.sh (register_type): New function with predicate.
9173 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9174 * gdbarch.h, gdbarch.c: Re-generate.
9175 * arch-utils.c (generic_register_byte): Use generic_register_size.
9176 (generic_register_size): When available, use
9177 gdbarch_register_type.
9178 * regcache.c (init_regcache_descr): When available, initialize the
9179 register type array using gdbarch_register_type. If the
9180 architecture supplies gdbarch_register_type, do not use the legacy
9181 regcache layout.
9182 * d10v-tdep.c (d10v_register_type): Replace
9183 d10v_register_virtual_type.
9184 (d10v_gdbarch_init): Set register_type instead of
9185 register_virtual_type.
9186
7b83296f
AC
91872003-03-01 Andrew Cagney <cagney@redhat.com>
9188
9189 * Makefile.in (ax-gdb.o): Update dependencies.
9190 * ax-gdb.c: Include "regcache.h".
9191 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9192 * findvar.c (value_of_register): Ditto.
9193 * infcmd.c (default_print_registers_info): Ditto.
9194
eadc1c87
MK
91952003-03-01 Mark Kettenis <kettenis@gnu.org>
9196
9197 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9198 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9199
14143612
MK
92002003-03-01 Mark Kettenis <kettenis@gnu.org>
9201
9202 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9203 of STREQ.
9204
a55cc764
DJ
92052003-02-28 Daniel Jacobowitz <drow@mvista.com>
9206
9207 * Makefile.in (dwarf2loc.o): Update dependencies.
9208 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9209 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9210 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9211 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9212 (locexpr_tracepoint_var_ref): New function.
9213 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9214
08a617da
AC
92152003-02-28 Andrew Cagney <cagney@redhat.com>
9216
9217 * regcache.c (register_size): New function.
9218 * regcache.h (register_size): Declare
9219 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9220 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9221
4224873a
DC
92222003-02-28 David Carlton <carlton@math.stanford.edu>
9223
9224 * linespec.c (decode_compound): Extract code into find_method.
9225 (find_method): New.
9226
ccdc5d7f
JB
92272003-02-28 J. Brobecker <brobecker@gnat.com>
9228
9229 * Makefile.in: Add rules to build and link in observer.o.
9230
974e8ced
JB
92312003-02-27 J. Brobecker <brobecker@gnat.com>
9232
9233 * observer.c: Minor comments edits.
9234
7a28f973
JB
92352003-02-27 J. Brobecker <brobecker@gnat.com>
9236
9237 * observer.h, observer.c: New file.
9238
27cddce2
AC
92392003-02-27 Andrew Cagney <cagney@redhat.com>
9240
9241 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9242
b94a41a1
SC
92432003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9244
9245 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9246 (M6812_OP_STS_EXT): Likewise.
9247 (m6811_prologue): Use the above to recognize prologue.
9248 (m6812_prologue): Likewise.
9249
c8be8951
DC
92502003-02-27 David Carlton <carlton@math.stanford.edu>
9251
9252 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9253 SYMBOL_PRINT_NAME.
9254 (compare_psymbols): Ditto.
9255 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9256
d05bb1fc
MS
92572003-02-27 Michael Snyder <msnyder@redhat.com>
9258
4e845cd3
MS
9259 * f-lang.c (build_fortran_types): New function.
9260 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
9261 * doublest.c (extract_floating): Fix warning text.
9262
f3824013
AC
92632003-02-27 Andrew Cagney <cagney@redhat.com>
9264
9265 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9266 predicate. Replaces PUSH_DUMMY_FRAME.
9267 * gdbarch.h, gdbarch.c: Regnerate.
9268 * valops.c (hand_function_call): Update. Call
9269 generic_push_dummy_frame directly.
9270 * vax-tdep.c (vax_gdbarch_init): Update.
9271 * sparc-tdep.c (sparc_gdbarch_init): Update.
9272 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9273 * m68k-tdep.c (m68k_gdbarch_init): Update.
9274 * hppa-tdep.c (hppa_gdbarch_init): Update.
9275 * alpha-tdep.c (alpha_gdbarch_init): Update.
9276 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9277 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9278 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9280 push_dummy_frame to generic_push_dummy_frame.
9281 * v850-tdep.c (v850_gdbarch_init): Ditto.
9282 * sh-tdep.c (sh_gdbarch_init): Ditto.
9283 * s390-tdep.c (s390_gdbarch_init): Ditto.
9284 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9285 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9286 * mips-tdep.c (mips_gdbarch_init): Ditto.
9287 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9289 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9290 * i386-tdep.c (i386_gdbarch_init): Ditto.
9291 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9292 * frv-tdep.c (frv_gdbarch_init): Ditto.
9293 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9294 * cris-tdep.c (cris_gdbarch_init): Ditto.
9295 * avr-tdep.c (avr_gdbarch_init): Ditto.
9296 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 9297
ad188201
KB
92982003-02-26 Kevin Buettner <kevinb@redhat.com>
9299
9300 * mips-tdep.c (show_mips_abi): New function.
9301 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9302 command ``show mips abi''.
9303
6b37567a 93042003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9305
6b37567a 9306 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 9307 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
9308 more sline entries have been seen for the function.
9309
d3e0a5bf
MC
93102003-02-26 Michael Chastain <mec@shout.net>
9311
9312 * configure: Regenerate with autoconf 000227.
9313
18972eea
MC
93142003-02-26 Michael Chastain <mec@shout.net>
9315
9316 Close PR build/660.
9317 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9318 for old libc5/glibc.
9319 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9320
0bbde931
KW
93212003-02-26 Kris Warkentin <kewarken@qnx.com>
9322
9323 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9324 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9325
27ca5dad
MC
93262003-02-26 Michael Chastain <mec@shout.net>
9327
9328 * configure.in: New variable HAVE_UINTPTR_T.
9329 * configure, config.in: Regenerated.
9330
6f88d630
DJ
93312003-02-26 Daniel Jacobowitz <drow@mvista.com>
9332
9333 Fix PR build/1097.
9334 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9335
b14185ce
AC
93362003-02-25 Andrew Cagney <cagney@redhat.com>
9337
9338 * frame.c (get_prev_frame): Add comment on check for
9339 inside_entry_func. Only check for inside_entry_file when not a
9340 dummy and not a sentinel. Check that the new frame is not inner
9341 to the old frame.
9342
ac2bd0a9
AC
93432003-02-25 Andrew Cagney <cagney@redhat.com>
9344
9345 * frame.c (frame_debug): New variable.
9346 (_initialize_frame): Add "set/show debug frame" command.
9347 (get_prev_frame): When frame_debug, print reason why unwind
9348 failed.
9349
b18a0fd2
MC
93502003-02-25 Michael Chastain <mec@shout.net>
9351
9352 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9353 to avoid uintptr_t definition problems.
9354
22abf04a
DC
93552003-02-25 David Carlton <carlton@math.stanford.edu>
9356
9357 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9358 (SYMBOL_LINKAGE_NAME): Ditto.
9359 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9360 SYMBOL_LINKAGE_NAME.
9361 (struct general_symbol_info): Expand comment.
9362 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9363 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9364 (SYMBOL_MATCHES_REGEXP): Ditto.
9365 * symtab.c (symbol_natural_name): New function.
9366 * objfiles.h: Replace all uses of SYMBOL_NAME by
9367 DEPRECATED_SYMBOL_NAME.
9368 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9369 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9370 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9371 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9372 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9373 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9374 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9375 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9376 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9377 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9378 * ada-exp.y: Ditto.
9379 * ada-exp.y: Update copyright.
9380 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9381 * cp-valprint.c: Ditto.
9382
1a5848f6
JJ
93832003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9384
9385 * infptrace.c (detach): Do not flag error if ptrace detach fails
9386 and errno is set to ESRCH.
9387
7343d46a
AC
93882003-02-24 Andrew Cagney <cagney@redhat.com>
9389
9390 * infptrace.c (udot_info): Change type of udot_off to long. Use
9391 paddr when printing udot_off's value.
9392
49fa1dc2
DC
93932003-02-24 David Carlton <carlton@math.stanford.edu>
9394
9395 * symtab.c (make_symbol_overload_list): Only read in partial
9396 symtabs containing a matching partial symbol.
9397
0fe19209
DC
93982003-02-24 David Carlton <carlton@math.stanford.edu>
9399
9400 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9401 do the comparison, not strcmp.
9402 * symfile.c (compare_psymbols): Ditto.
9403 * defs.h: Declare strcmp_iw_ordered.
9404 * utils.c (strcmp_iw_ordered): New function.
9405
8e3ee7b5
JB
94062003-02-24 Jim Blandy <jimb@redhat.com>
9407
9408 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9409 support, shared libs): Remove my name from here, to better reflect
9410 reality.
9411
7df1a324
KW
94122003-02-24 Kris Warkentin <kewarken@qnx.com>
9413
9414 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9415 (target_ops): Add to_have_continuable_watchpoint.
9416 * target.c (update_current_target): Add INHERIT line for
9417 to_have_continuable_watchpoint.
9418 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9419 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9420 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9421 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9422
d1c76907
EZ
94232003-02-24 Elena Zannoni <ezannoni@redhat.com>
9424
9425 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9426 maintainership.
9427
2610b0bf
KW
94282003-02-24 Kris Warkentin <kewarken@qnx.com>
9429
f46169db
KW
9430 * solib.c (solib_open): Call target defined search function after
9431 failing with solib-search-path.
9432 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9433 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 9434
9a3c34fe
KW
94352003-02-24 Kris Warkentin <kewarken@qnx.com>
9436
f46169db 9437 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 9438
2417dd25
SC
94392003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9440
9441 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9442
b631436b
SC
94432003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9444
9445 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9446 (m68hc11_add_reggroups): New function.
9447 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9448 (m68hc11_gdbarch_init): Install the reggroups.
9449 (_initialize_m68hc11_tdep): Initialize them.
9450
0aa8c1e4
JW
94512003-02-21 James E Wilson <wilson@tuliptree.org>
9452
9453 * MAINTAINERS: Update my email address.
9454
50ceaba5
DC
94552003-02-21 David Carlton <carlton@math.stanford.edu>
9456
9457 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9458
4c2df51b
DJ
94592003-02-21 Daniel Jacobowitz <drow@mvista.com>
9460
9461 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9462 * symtab.h: Add opaque declarations of struct axs_value and
9463 struct agent_expr.
9464 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9465 (struct location_funcs): New type.
9466 (struct symbol): Add "loc" to aux_value.
9467 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9468 * dwarf2read.c: Include "dwarf2expr.h".
9469 (dwarf2_symbol_mark_computed): New function.
9470 (read_func_scope): Use it.
9471 (var_decode_location): New function.
9472 (new_symbol): Use it.
9473 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9474
9475 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9476 (dwarf2expr_h, dwarf2loc_h): New variables.
9477 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9478 (dwarf2expr.o, dwarf2loc.o): New rules.
9479 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9480 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9481 LOC_COMPUTED_ARG.
9482 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9483 * m2-exp.y (yylex): Likewise.
9484 * printcmd.c (address_info, print_frame_args): Likewise.
9485 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9486 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9487 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9488 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9489 * symtab.c (lookup_block_symbol): Likewise.
9490
5784d15e
AF
94912003-02-20 Adam Fedor <fedor@gnu.org>
9492
9493 * symtab.h: Remove objc_specific struct
9494 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9495 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9496 Have language_objc use cplus_specific struct.
9497
d4cad8db
TT
94982003-02-20 Tom Tromey <tromey@redhat.com>
9499
9500 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9501 TYPE_NAME, when printing a String value. PR java/1075.
9502
2f9a90b4
AF
95032003-02-20 Adam Fedor <fedor@gnu.org>
9504
d38074a8 9505 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 9506 * objc-lang.c (find_methods): Make static.
2f9a90b4 9507
6f17862b
CF
95082003-02-20 Christopher Faylor <cgf@redhat.com>
9509
9510 * win32-nat.c (get_image_name): Check return value from
9511 ReadProcessMemory.
9512 (child_xfer_memory): Ditto.
9513
715d1656
AO
95142003-02-20 Alexandre Oliva <aoliva@redhat.com>
9515
9516 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9517 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9518 '${exec_prefix}' (in addition to the expansion thereof) as
9519 relocatable.
9520 * configure: Rebuilt.
9521
b1262a02
DC
95222003-02-20 David Carlton <carlton@math.stanford.edu>
9523
9524 * symtab.c (search_symbols): Revert the search_symbols part of my
9525 2002-12-23 patch. Add comment.
9526
7134143f
DJ
95272002-02-20 Daniel Jacobowitz <drow@mvista.com>
9528
9529 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9530 * dbxread.c (elfstab_build_psymtabs): Don't call
9531 install_minimal_symbols.
9532 (stabsect_build_psymtabs): Likewise.
9533 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9534 earlier.
9535 * somread.c (som_symfile_read): Call install_minimal_symbols
9536 and do_cleanups earlier.
9537 * nlmread.c (nlm_symfile_read): Likewise.
9538 * mdebugread.c (elfmdebug_build_psymtabs): Call
9539 install_minimal_symbols and make appropriate cleanups.
9540
cf466558
KB
95412003-02-20 Kevin Buettner <kevinb@redhat.com>
9542
9543 * solib.c (reload_shared_libraries): New function.
9544 (_initialize_solib): Add callbacks for ``set solib-search-path''
9545 and ``set solib-absolute-prefix''.
9546
de5ad195
DC
95472003-02-20 David Carlton <carlton@math.stanford.edu>
9548
9549 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9550 expand comment.
9551 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9552 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9553 * ada-typeprint.c (ada_typedef_print): Ditto.
9554 * ax-gdb.c (gen_var_ref): Ditto.
9555 * breakpoint.c (print_one_breakpoint): Ditto.
9556 * buildsym.c (finish_block): Ditto.
9557 * c-valprint.c (c_val_print): Ditto.
9558 * expprint.c (print_subexp): Ditto.
9559 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
9560 * infcmd.c (jump_command): Ditto.
9561 * linespec.c (decode_line_2, decode_compound): Ditto.
9562 * maint.c (maintenance_translate_address): Ditto.
9563 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
9564 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9565 Ditto.
8ffd9b1b
AJ
9566 * p-valprint.c (pascal_val_print): Ditto.
9567 * stabsread.c (define_symbol): Ditto.
de5ad195 9568 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
9569 (print_frame_arg_vars, return_command): Ditto.
9570 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9571 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
9572 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9573 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
9574 (rbreak_command): Ditto.
9575 * tracepoint.c (tracepoints_info): Ditto.
9576 * typeprint.c (typedef_print): Ditto.
9577 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
9578 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9579 * ada-typeprint.c: Update Copyright.
9580 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9581 * tracepoint.c, cli/cli-cmds.c: Ditto.
9582
f796e4be
KB
95832003-02-20 Kevin Buettner <kevinb@redhat.com>
9584
9585 * frame.c (generic_unwind_get_saved_register): Make non-static.
9586 * frame.h (generic_unwind_get_saved_register): Declare.
9587 * mips-tdep.c (read_next_frame_reg): Fetch register from
9588 current regcache when frame is NULL.
9589 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9590 that must be NULL.
9591 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9592 instead of frame_register_unwind().
9593
836cc9f4
AC
95942003-02-20 Andrew Cagney <ac131313@redhat.com>
9595
9596 * remote-sim.c (gdbsim_insert_breakpoint)
9597 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9598 code.
9599
501eef12
AC
96002003-02-20 Andrew Cagney <ac131313@redhat.com>
9601
9602 * remote.c (_initialize_remote): Add commands "set/show remote
9603 hardware-watchpoint-limit" and "set/show remote
9604 hardware-breakpoint-limit".
9605 (remote_hw_watchpoint_limit): Initialize to -1.
9606 (remote_hw_breakpoint_limit): Ditto.
9607 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9608
1b6bc7e0
CF
96092003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9610
9611 * coff-pe-read.c: New file - support reading of minimal symbols from a
9612 portable executable using the export table.
9613 * coff-pe-read.h: New file.
9614 * coffread.c: Include coff-pe-read.h.
9615 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9616 debugging symbols found.
9617 * Makefile.in (SFILES): Add coff-pe-read.o.
9618 (coff_pe_read_h): Define.
9619 (COMMON_OBS): Add coff-pe-read.o.
9620 (coffread.o): Add coff_pe_read_h dependency.
9621 (coff-pe-read.o): New target.
9622
fe898f56
DC
96232003-02-19 David Carlton <carlton@math.stanford.edu>
9624
9625 * Makefile.in (SFILES): Add block.c.
9626 (block_h): New.
9627 (COMMON_OBS): Add block.o.
9628 (block.o): New.
9629 (x86-64-tdep.o): Add $(block_h).
9630 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9631 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9632 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9633 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9634 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9635 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9636 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9637 * value.h: Add opaque declaration for struct block.
9638 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9639 * ada-lang.h: Ditto.
9640 * x86-64-tdep.c: #include "block.h"
9641 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9642 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9643 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9644 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9645 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9646 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9647 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9648 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9649 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9650 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9651 * symtab.c (block_function): Ditto.
9652 (contained_in): Ditto.
9653 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9654 block.h. Add opaque declaration for struct block.
9655 * symtab.h: Move block_function and contained_in declarations to
9656 block.h. Add opaque declarations for struct block, struct
9657 blockvector.
9658 (struct block): Move to block.h.
9659 (struct blockvector): Ditto.
9660 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9661 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9662 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9663 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9664 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9665 Ditto.
9666 * block.c: New file.
9667 * block.h: New file.
9668
173345b5
TR
96692003-02-19 Theodore A. Roth <troth@openavr.org>
9670
9671 * avr-tdep.c (avr_extract_return_value): Remove function.
9672 (avr_store_return_value): Remove function.
9673 (avr_extract_struct_value_address): Remove function.
9674 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9675
338ef23d
AC
96762003-02-19 Andrew Cagney <ac131313@redhat.com>
9677
9678 * rs6000-tdep.c: Include "gdb_assert.h".
9679 (registers_e500): Add "acc" and "spefscr".
9680 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9681 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9682 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9683 really is "r0".
9684 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9685
5412f5f3
KS
96862003-02-18 Keith Seitz <keiths@redhat.com>
9687
9688 * Makefile.in: Add gdbtk-interps.c.
9689
881324eb
KB
96902003-02-18 Kevin Buettner <kevinb@redhat.com>
9691
9692 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9693 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9694
6a2f5abf
AC
96952003-02-18 Andrew Cagney <cagney@redhat.com>
9696
9697 * symtab.h (struct objfile): Add opaque declaration.
9698
54c7009d
EZ
96992003-02-18 Elena Zannoni <ezannoni@redhat.com>
9700
9701 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
9702 * dbxread.c (process_one_symbol): Use last_function_start rather
9703 than function_start_offset to find the real beginning of the
9704 current function. The latter is just the text section offset on
9705 some systems, the former is always the real function start.
54c7009d 9706
7ee6d7eb
AC
97072003-02-17 Andrew Cagney <cagney@redhat.com>
9708
9709 * configure.in: Revert ${target} != ${host}.
9710
2846da9b
AC
97112003-02-17 Andrew Cagney <ac131313@redhat.com>
9712
9713 * configure.in (Makefile): Use the test ${target} != ${host},
9714 instead of the absence of the "nm.h" file, to determine of the
9715 configuration non-native.
9716 * configure: Regenerate.
8ffd9b1b 9717
3b27aeea
EZ
97182003-02-14 Elena Zannoni <ezannoni@redhat.com>
9719
fbe586ae 9720 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
9721
9722 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
9723 conditionalize tui_active test.
9724 (lookup_cmd_1): Ditto.
9725
b0b1c2c0
MK
97262003-02-14 Mark Kettenis <kettenis@gnu.org>
9727
9728 * configure.in: Add check for _etext.
9729 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
9730 available.
9731 * config.in, configure: regenerated.
9732
8f05cde5
DJ
97332003-02-14 Daniel Jacobowitz <drow@mvista.com>
9734
9735 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
9736
021e7609
AC
97372003-02-14 Andrew Cagney <ac131313@redhat.com>
9738
9739 * main.c (tui_version): Delete variable.
9740 (captured_main): When --tui, set interpreter_p to "tui" instead of
9741 enabling tui_version.
9742 * printcmd.c (display_command) [TUI]: Test tui_active instead of
9743 tui_version.
9744 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
9745 * cli/cli-cmds.c (disassemble_command): Ditto.
9746 * defs.h (tui_version): Delete declaration.
9747 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
9748 (tui-interp.o): Add rules.
9749 (SUBDIR_TUI_OBS): Add "tui-interp.o".
9750
e325dcec
CF
97512003-02-14 Christopher Faylor <cgf@redhat.com>
9752
36ffb041 9753 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
9754 just-loaded dll.
9755
c4f90d87
JM
97562003-02-12 Jason Molenda (jmolenda@apple.com)
9757
fbe586ae
RH
9758 * symmisc.c (print_objfile_statistics): Include information about
9759 the number of psymtabs and symtabs in each object file.
c4f90d87 9760
e46e5ccd
KS
97612003-02-13 Keith R Seitz <keiths@redhat.com>
9762
9763 * main.h (struct captured_main_args): Add interpreter_p.
9764 * main.c (captured_main): Initialize interpreter_p from context.
9765 * gdb.c (main): Set interpreter_p argument.
9766 * Makefile.in (gdb.o): Add dependency for interps.h.
9767
fe97fe9c
AC
97682003-02-12 Andrew Cagney <ac131313@redhat.com>
9769
9770 * event-top.c (cli_command_loop): Delete declaration.
9771 (_initialize_event_loop): Delete function setting event_loop_hook.
9772 * event-top.h (cli_command_loop): Declare. Update copyright.
9773 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
9774 * interps.c (current_interp_command_loop): When event_loop_p, call
9775 cli_command_loop.
9776
1cdac4ef
AC
97772003-02-12 Andrew Cagney <ac131313@redhat.com>
9778
9779 * interps.h (interp_command_loop_ftype): Change return type to
9780 void.
9781
48037ead
ML
97822003-02-12 Michal Ludvig <mludvig@suse.cz>
9783
9784 * x86-64-tdep.c (x86_64_extract_return_value)
9785 (x86_64_store_return_value): Use regcache instead of regbuf.
9786 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
9787 * x86-64-linux-nat.c (fill_gregset): Use regcache.
9788
033afc63
AC
97892003-02-11 Andrew Cagney <ac131313@redhat.com>
9790
9791 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
9792 * aclocal.m4: Regenerate.
9793 * configure: Regenerate.
9794
9795 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
9796 TCL_LD_SEARCH_FLAGS.
9797
40d02bca
ML
97982003-02-10 Michal Ludvig <mludvig@suse.cz>
9799
9800 * dwarf2cfi.c: Reindented.
9801
11308a41
AC
98022003-02-09 Andrew Cagney <ac131313@redhat.com>
9803
9804 * interps.c (clear_interpreter_hooks): Convert function definition
9805 to ISO C.
9806
e1c1c0f6
DC
98072003-02-07 David Carlton <carlton@math.stanford.edu>
9808
9809 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
9810
ab5d3da6
KB
98112003-02-07 Kevin Buettner <kevinb@redhat.com>
9812
9813 * gdbtypes.h (struct main_type): Move ``length'' field from here...
9814 (struct type): ...to here.
9815 (TYPE_LENGTH): Adjust to reflect different location of ``length''
9816 field.
9817 * gdbtypes.c (make_qualified_type): Set length on newly created type.
9818 (replace_type): Set length on all type variants for a given type.
9819
b8a92b82
AC
98202003-02-07 Andrew Cagney <ac131313@redhat.com>
9821
9822 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
9823 <sys/stat.h>.
9824 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 9825
5cb316ef
AC
98262003-02-06 Andrew Cagney <ac131313@redhat.com>
9827
2555fe1a
AC
9828 * Makefile.in (symm-nat.o): Update dependencies.
9829 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
9830 (lynx-nat.o, ia64-linux-nat.): Ditto.
9831 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
9832 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
9833 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
9834
44270758
AC
9835 * Makefile.in (inflow_h): Define.
9836 (procfs.o, inflow.o, procfs.o): Update dependencies.
9837 * inftarg.c (child_stop): Delete extern declaration of
9838 inferior_process_group. Include "inflow.h".
9839 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
9840 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
9841 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
9842 (our_process_group, inferior_process_group): Extern declarations.
9843
df8f7274
AC
9844 * procfs.c: Include "gdb_assert.h".
9845
5cb316ef
AC
9846 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9847 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
9848 * jv-typeprint.c (java_type_print_base): Ditto.
9849 * typeprint.c (typedef_print): Eliminate STREQ.
9850 * cli/cli-script.c (define_command, define_command): Ditto.
9851 * main.c (captured_main): Ditto.
9852 * values.c (lookup_internalvar): Ditto.
9853 * utils.c (safe_strerror, parse_escape): Eliminate assignment
9854 within `if' conditional.
9855 * linespec.c (decode_line_2): Ditto.
9856 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
9857 (bfd_openw_with_cleanup): Ditto.
9858
2a28ccea
MK
98592003-02-07 Mark Kettenis <kettenis@gnu.org>
9860
9861 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
9862 legacy_extract_return_value and store_return_value to
9863 legacy_return_value.
9864
786b8124
CF
98652003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
9866
9867 * win32-nat.c (get_relocated_section_addrs): New function. Find
9868 section load addresses for symbol handling in relocated DLLs.
9869 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
9870
b871e4ec
FF
98712003-02-05 Fred Fish <fnf@intrinsity.com>
9872
9873 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
9874 '=' and '!='.
9875 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
9876 with '&' and '=='.
9877 (angel_RDI_info): Ditto.
9878 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
9879 with '&' and '!='.
9880 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 9881
4389a95a 98822003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
9883 Keith Seitz <keiths@redhat.com>
9884 Elena Zannoni <ezannoni@redhat.com>
9885 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
9886
9887 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
9888 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
9889 (SUBDIR_MI_OBS): Add "mi-interp.o".
9890 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
9891 (SFILES): Add "interps.c".
9892 (COMMON_OBS): Add "interps.o".
9893 (interps_h, mi_main_h): Define.
9894 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
9895 (mi-main.o, main.o, event-top.o): Update dependencies.
9896 * cli/cli-interp.c: New file.
9897 * interps.h, interps.c: New files.
9898 * top.c: (gdb_init): Don't install the default interpreter, handed
9899 by captured_main.
9900 * main.c: Include "interps.h".
9901 (interpreter_p): Note that it should malloc'ed.
9902 (captured_command_loop): Call current_interp_command_loop.
9903 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
9904 xfree and xstrdup when updating interpreter_p. Install the
9905 default interpreter. Add hack to stop mi1's copyright notice
9906 being encoded.
9907 * event-top.h (gdb_setup_readline): Declare.
9908 (gdb_disable_readline): Declare.
9909 * event-top.c: Include "interps.h".
9910 (display_gdb_prompt): Call current_interp_display_prompt_p.
9911 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
9912 gdb_stdlog, and gdb_stdtarg.
9913 (_initialize_event_loop): Don't call gdb_setup_readline.
9914 * cli-out.c (cli_out_set_stream): New function.
9915 * cli-out.h (cli_out_set_stream): Declare.
9916
ff3b5810
MK
99172003-02-06 Mark Kettenis <kettenis@gnu.org>
9918
9919 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
9920 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
9921 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
9922 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
9923 config/i386/i386v42mp.mt: Removed.
9924
5b729aa5
MK
99252003-02-05 Mark Kettenis <kettenis@gnu.org>
9926
9927 * configure.tgt (*-*-solaris*): Set gdb_osabi to
9928 GDB_OSABI_SOLARIS.
9929
8cc15142
MC
99302003-02-05 Michael Chastain <mec@shout.net>
9931
9932 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
9933 2.12.1 and earlier versions.
9934
5aa5d4b9
AC
99352003-02-05 Andrew Cagney <ac131313@redhat.com>
9936
9937 Remove orphaned hosts, targets and files.
9938 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
9939 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
9940 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
9941 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
9942 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
9943 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
9944 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
9945 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
9946 * config/sparc/tm-sp64sim.h: Delete.
9947 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
9948 hosts.
9949 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
9950 mips*-dec-mach3* targets.
9951
b68767c1
MC
99522003-02-04 Michael Chastain <mec@shout.net>
9953
9954 * NEWS: Fix typo: sepcifying -> specifying.
9955
5ae7ca1d
MC
99562003-02-04 Michael Chastain <mec@shout.net>
9957
9958 * dwarfread.c: Add documentation on the state of dwarf-1,
9959 looking towards obsoletion.
9960
d08a4280
MC
99612003-02-03 Michael Chastain <mec@shout.net>
9962
9963 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
9964 gdb/testsuite/gdb.c++/pr-1023.exp.
9965
e9be73e4
AC
99662003-02-04 Andrew Cagney <ac131313@redhat.com>
9967
9968 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
9969 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
9970
9971 * utils.c (init_page_info): Delete reference to MPW in comments.
9972 * main.c (captured_main): Delete #ifdef MPW.
9973
05d57f6f
AC
99742003-02-04 Andrew Cagney <ac131313@redhat.com>
9975
8ffd9b1b 9976 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
9977 * monitor.c (monitor_expect): Obsolete reference to m32r.
9978 * configure.tgt: Mark m32r-*-elf* as obsolete.
9979 * MAINTAINERS: Mark m32k as obsolete.
9980 * m32r-rom.c: Obsolete file.
9981 * config/m32r/m32r.mt: Obsolete file.
9982 * config/m32r/tm-m32r.h: Obsolete file.
9983 * m32r-stub.c: Obsolete file.
9984 * m32r-tdep.c: Obsolete file.
9985
8b0e5691
AC
99862003-02-04 Andrew Cagney <ac131313@redhat.com>
9987
9988 * NEWS: Mention that the z8k-zilog-none is obsolete.
9989 * MAINTAINERS: Mark z8k as obsolete.
9990 * configure.tgt: Obsolete the z8k-*-coff* target.
9991 * config/z8k/z8k.mt: Obsolete file.
9992 * config/z8k/tm-z8k.h: Obsolete file.
9993 * z8k-tdep.c: Obsolete file.
9994
67f16606
AC
99952003-02-04 Andrew Cagney <ac131313@redhat.com>
9996
9997 * NEWS: Mention that the mn10200-elf is obsolete.
9998 * configure.tgt: Obsolete mn10200-*-* target.
9999 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10000 mention that the mn10200 is obsolete.
10001 * breakpoint.h: Ditto.
10002 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10003 * config/mn10200/mn10200.mt: Obsolete file.
10004 * config/mn10200/tm-mn10200.h: Obsolete file.
10005 * mn10200-tdep.c: Obsolete file.
10006
fd2299bd
AC
100072003-02-04 Andrew Cagney <ac131313@redhat.com>
10008
10009 * MAINTAINERS: Mark h8500 as obsolete.
10010 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10011 * findvar.c (value_from_register): Ditto.
10012 * h8500-tdep.c: Mark file as obsolete.
10013 * config/h8500/h8500.mt: Ditto.
10014 * config/h8500/tm-h8500.h: Ditto.
10015 * NEWS: Mention that h8500 is obsolete.
10016
eb9a305d
DC
100172003-02-04 David Carlton <carlton@math.stanford.edu>
10018
10019 * objfiles.c (allocate_objfile): Always set name. Add comment at
10020 start of function.
10021 * jv-lang.c (get_dynamics_objfile): Add comment.
10022
406fc7fb
DC
100232003-02-04 David Carlton <carlton@math.stanford.edu>
10024
10025 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10026 * printcmd.c (build_address_symbolic): Replace uses of
10027 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10028 SYMBOL_NAME, and asm_demangle.
10029 Update copyright.
10030
93d91629
DC
100312003-02-04 David Carlton <carlton@math.stanford.edu>
10032
10033 * linespec.c (decode_compound): Extract code into
10034 lookup_prefix_sym.
10035 (lookup_prefix_sym): New function.
10036
1c5cb38e
DC
100372003-02-04 David Carlton <carlton@math.stanford.edu>
10038
10039 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10040 FLOAT_COERCION_BADNESS.
10041 * gdbtypes.c (rank_one_type): Replace all uses of
10042 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10043
0cf824c9
JB
100442003-02-04 Jim Blandy <jimb@redhat.com>
10045
10046 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10047 section, let dwarf_macinfo_section point to it, not
10048 dwarf_loc_section.
10049
a2d356b0
DJ
100502003-02-04 Daniel Jacobowitz <drow@mvista.com>
10051
10052 Pointed out by Anton Blanchard <anton@samba.org>.
10053 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10054 (ppc_linux_at_sigtramp_return_path): Use it.
10055
2de7ced7
DJ
100562003-02-04 Daniel Jacobowitz <drow@mvista.com>
10057
10058 * defs.h (streq): Add prototype.
10059 * utils.c (streq): New function.
10060
10061 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10062 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10063 * mdebugread.c (new_symbol): Likewise.
10064 * stabsread.c (define_symbol): Likewise.
10065 * coffread.c (process_coff_symbol): Likewise.
10066 * dwarfread.c (new_symbol): Likewise.
10067
10068 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10069 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10070 here.
10071 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10072 SYMBOL_INIT_DEMANGLED_NAME.
10073 * objfiles.c: Include "hashtab.h".
10074 (allocate_objfile): Call htab_set_functions_ex for the
10075 demangled_names_hash.
10076 (free_objfile): Call htab_delete for the demangled_names_hash.
10077 * objfiles.h (struct htab): Add declaration.
10078 (struct objfile): Add demangled_names_hash.
10079 * symfile.c: Include "hashtab.h".
10080 (reread_symbols): Call htab_delete for the demangled_names_hash.
10081 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10082 SYMBOL_NAME in the bcache.
10083 * symtab.c: Include "hashtab.h". Update comments.
10084 (create_demangled_names_hash, symbol_set_names): New functions.
10085 (symbol_find_demangled_name): New function, broken out from
10086 symbol_init_demangled_names.
10087 (symbol_init_demangled_names): Use it.
10088 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10089 (SYMBOL_SET_NAMES): New macro.
10090 (symbol_set_names): Add prototype.
10091
15831452
JB
100922003-02-03 Jim Blandy <jimb@redhat.com>
10093
10094 Use a single, consistent representation for an empty minimal
10095 symbol table in an objfile.
10096 * objfiles.c (terminate_minimal_symbol_table): New function.
10097 (allocate_objfile): Call it.
10098 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10099 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 10100 non-NULL.
15831452
JB
10101 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10102 objfile has minimal symbols, compare minimal_symbol_count to zero,
10103 instead of comparing msymbols with NULL.
10104 * objfiles.c (have_minimal_symbols): Same.
10105 * solib-sunos.c (solib_add_common_symbols): Call
10106 terminate_minimal_symbol_table.
10107 * symfile.c (reread_symbols): Same.
8ffd9b1b 10108
ffc65945
KB
101092003-02-03 Kevin Buettner <kevinb@redhat.com>
10110
10111 * s390-tdep.c (s390_address_class_type_flags)
10112 (s390_address_class_type_flags_to_name)
10113 (s390_address_class_name_to_type_flags): New functions.
10114 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10115 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10116
f211c6d4
MS
101172003-02-03 Michael Snyder <msnyder@redhat.com>
10118
10119 * arm-tdep.c: Fix spell-o in comment.
10120
659b0389
ML
101212003-02-03 Michal Ludvig <mludvig@suse.cz>
10122
10123 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10124 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 10125 error messages to contain BFD filename.
659b0389 10126
3b31d625
EZ
101272003-02-02 Elena Zannoni <ezannoni@redhat.com>
10128
997b089a 10129 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
10130 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10131 (do_mixed_source_and_assembly): Use
10132 make_cleanup_ui_out_tuple_begin_end and
10133 make_cleanup_ui_out_tuple_begin_end.
10134 (do_mixed_source_and_assembly): Ditto.
10135 * thread.c (do_captured_list_thread_ids): Ditto.
10136 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10137 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10138 ui_out_tuple_end): Delete prototypes.
10139 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10140 ui_out_list_end, ui_out_tuple_end): Delete.
10141
10142 From Kevin Buettner <kevinb@redhat.com>:
10143 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
10144 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10145 (do_cleanup_table_end): New functions.
10146 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10147 Use cleanups to invoke_ui_out_tuple_end().
10148 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
10149 * cli/cli-setshow.c (cmd_show_list): Use
10150 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 10151
5b181d62
AC
101522003-02-02 Andrew Cagney <ac131313@redhat.com>
10153
10154 * frame.c (frame_unwind_register): New function.
10155 (frame_unwind_unsigned_register): Use.
10156 (frame_unwind_signed_register): Use.
10157 (frame_read_register): New function.
10158 * frame.h (frame_unwind_register): Declare.
10159 (frame_read_register): Declare.
10160
10161 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10162 and frame_unwind_register instead of read_memory, write_register
10163 and deprecated_write_register_bytes.
10164
5f601589
AC
101652003-02-02 Andrew Cagney <ac131313@redhat.com>
10166
10167 * frame.h: Note that namelen can be negative.
10168 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10169 NAME's length.
10170
10171 * NEWS: Mention that the d10v's `regs' command is deprecated.
10172 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10173 (d10v_print_registers_info): New function.
10174 (show_regs): Call d10v_print_registers_info.
10175 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10176
6a3fe0a4
MK
101772003-02-02 Mark Kettenis <kettenis@gnu.org>
10178
10179 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10180 lost in the previous patch.
10181
075559bc
AC
101822003-02-01 Andrew Cagney <ac131313@redhat.com>
10183
10184 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
10185 * stack.c (print_frame_info_base): Output complete FRAME tuple
10186 for synthesized frames.
075559bc 10187
6789195b
AC
101882003-02-02 Andrew Cagney <ac131313@redhat.com>
10189
10190 * mips-nat.c (zerobuf): Delete.
10191 (fetch_inferior_registers): Alloc local zerobuf.
10192 (fetch_core_registers): Alloc local zerobuf.
10193 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10194 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10195 * thread-db.c (thread_db_store_registers): Ditto.
10196 * sh-tdep.c (sh_do_register): Ditto.
10197 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10198 * remote-sim.c (gdbsim_store_register): Ditto.
10199 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10200 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10201 * monitor.c (monitor_supply_register): Ditto.
10202 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10203 * mips-nat.c (fetch_inferior_registers): Ditto.
10204 * m68klinux-nat.c (fetch_register): Ditto.
10205 * lynx-nat.c (fetch_inferior_registers): Ditto.
10206 (fetch_inferior_registers): Ditto.
10207 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10208 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10209 (hpux_thread_store_registers): Ditto.
10210 * hppah-nat.c (fetch_register): Ditto.
10211 * hppab-nat.c (fetch_register): Ditto.
10212 * hppa-tdep.c (pa_register_look_aside): Ditto.
10213 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10214 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10215
e669114a
AC
102162003-02-01 Andrew Cagney <ac131313@redhat.com>
10217
10218 * gdbarch.sh: Explictly specify all method levels. When a
10219 variable with an empty level, provide a non-multi-arch default.
10220 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10221 * gdbarch.h: Re-generate.
10222 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10223 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10224
9a043c1d
AC
102252003-02-01 Andrew Cagney <ac131313@redhat.com>
10226
10227 * defs.h (host_pointer_to_address): Delete declaration.
10228 (address_to_host_pointer): Delete declaration.
10229 * utils.c (host_pointer_to_address): Delete function.
10230 (address_to_host_pointer): Delete function.
10231 * procfs.c (procfs_address_to_host_pointer): New function.
10232 * procfs.c (proc_set_watchpoint): Use.
10233 (procfs_can_use_hw_breakpoint): Update comments.
10234 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10235 (som_solib_add): Use.
10236 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10237 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 10238
7ca9f392
AC
102392003-02-01 Andrew Cagney <ac131313@redhat.com>
10240
94bbfd30
AC
10241 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10242 strlen d_name.
10243
7ca9f392
AC
10244 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10245 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10246 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10247 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10248 (define_symbol): Update.
10249 * symfile.c (generic_load): Remove references to nindy.
10250 * symtab.c: Remove references to nindy.
10251
31a85ea2
AC
102522003-02-01 Andrew Cagney <ac131313@redhat.com>
10253
10254 * infcmd.c (print_float_info): Delete code conditional on
10255 FLOAT_INFO.
10256 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10257 * config/m68k/nm-apollo68b.h: Ditto.
10258 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10259 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10260 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10261
f6e85fc8
MK
102622003-02-01 Mark Kettenis <kettenis@gnu.org>
10263
6015b6a0
MK
10264 * config/i386/tm-i386os9k.h: Removed.
10265
f7a30bdf
MK
10266 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10267 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10268 they're identical to i[3456]86-*-sysv* now.
10269 * config/i386/i386v32.mh: Removed.
10270 * config/i386/xm-i386v32.h: Removed.
10271 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10272
28d52111
MK
10273 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10274
4d3f6bce
MK
10275 * config/i386/i386dgux.mh: Removed.
10276 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10277
f6e85fc8
MK
10278 * configure.in: Fix typo.
10279 * configure: Regenerated.
10280
53955967
DC
102812003-01-31 David Carlton <carlton@math.stanford.edu>
10282
10283 * dwarf2read.c (dwarf2_locate_sections): Set
10284 dwarf_ranges_section.
10285
b1364885
AC
102862003-01-31 Andrew Cagney <ac131313@redhat.com>
10287
8dbb1c65
AC
10288 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10289 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 10290
8731e58e
AC
10291 * utils.c: Re-indent.
10292
b1364885
AC
10293 * config/djgpp/fnchange.lst: Delete nindy files.
10294 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10295 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10296 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10297 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10298 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10299 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10300 * Makefile.in (init.c): Remove nindy references.
10301 (saber_gdb): Delete rule.
10302 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10303 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10304 and a68v-nat.c.
10305 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10306 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10307 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10308 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10309 nindy-share/stop.h.
10310 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10311 * saber.suppress: Delete file.
10312
086df311
DJ
103132003-01-31 Daniel Jacobowitz <drow@mvista.com>
10314
10315 * dbxread.c (stabs_data): New static variable.
10316 (fill_symbuf): Support an in-memory buffer for stabs data.
10317 (stabs_seek): New function.
10318 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10319 (read_ofile_symtab): Use stabs_seek.
10320 (elfstab_build_psymtabs): Take an asection* instead of
10321 an offset and size. Relocate the stabs data if necessary.
10322 Save the section* for dbx_psymtab_to_symtab.
10323 * dwarf2read.c: Add section variables for each debug section.
10324 (dwarf2_locate_sections): Fill them in.
10325 (dwarf2_read_section): Take an asection* argument.
10326 Relocate the section contents if necessary.
10327 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10328 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10329 it to dwarf2_read_section.
10330 (dwarf2_build_frame_info): Update callers.
10331 * elfread.c (elf_symfile_read): Update call to
10332 elfstab_build_psymtabs.
10333 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10334 (DBX_STAB_SECTION): New macro.
8ffd9b1b 10335 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
10336 * symfile.c (symfile_dummy_outputs): New function.
10337 (symfile_relocate_debug_section): New function.
10338 * symfile.h (symfile_relocate_debug_section): Add prototype.
10339
87d1b352
RH
103402003-01-31 Richard Henderson <rth@redhat.com>
10341
10342 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10343 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10344 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10345 * alpha-tdep.c (alpha_register_name): Add "unique".
10346 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10347 (ALPHA_UNIQUE_REGNUM): New.
10348 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10349
c48861fb
AC
103502003-01-31 Andrew Cagney <ac131313@redhat.com>
10351
10352 * README: Remove reference to Ericsson 1800 monitor.
10353 * Makefile.in (remote-es.o): Delete rule.
10354 (ALLDEPFILES): Delete remote-es.c.
10355 * remote-es.c: Delete file.
10356 * config/m68k/es1800.mt: Delete file.
10357 * config/djgpp/fnchange.lst: Update.
10358 * configure.tgt: Delete m68*-ericsson-* target.
10359
d764a824
AF
103602003-01-31 Adam Fedor <fedor@gnu.org>
10361
10362 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10363 Remove duplicate/shadowing variable of same name.
10364
fe36c4f4
JB
103652003-01-30 Jim Blandy <jimb@redhat.com>
10366
10367 * symfile.c (find_separate_debug_file): Assert that the objfile's
10368 directory name we compute ends with a slash, and then assume that
10369 that's so everywhere we use it.
10370
cb741690
DJ
103712003-01-30 Daniel Jacobowitz <drow@mvista.com>
10372
10373 * valops.c (value_assign): Flush frame cache after stores to memory
10374 also.
10375
96ee5227
AC
103762003-01-30 Andrew Cagney <ac131313@redhat.com>
10377
10378 * Makefile.in (mon960-rom.o): Delete rule.
10379 * mon960-rom.c: Delete file.
10380
7f6104a9
AC
103812003-01-30 Andrew Cagney <ac131313@redhat.com>
10382
10383 * d10v-tdep.c: Include "frame-unwind.h".
10384 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10385 list.
10386 (next_addr, uses_frame): Delete.
10387 (struct d10v_unwind_cache): Define.
10388 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10389 Use info instead of next_addr and uses_frame globals.
10390 (d10v_frame_init_saved_regs): Delete function.
10391 (d10v_init_extra_frame_info): Delete function.
10392 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10393 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10394 init_frame_pc or frame_saved_pc.
10395 (d10v_pop_frame): Delete function.
10396 (do_d10v_pop_frame): Delete function.
10397 (d10v_frame_chain): Delete function.
10398 (d10v_frame_chain_valid): Delete function.
10399 (d10v_frame_pc_unwind): New function.
10400 (d10v_frame_id_unwind): New function.
10401 (saved_regs_unwinder): New function.
10402 (d10v_frame_register_unwind): New function.
10403 (d10v_frame_pop): New function.
10404 (d10v_frame_unwind): New variable.
10405 (d10v_frame_p): New function.
10406 (d10v_frame_saved_pc): Delete function.
10407 * Makefile.in (d10v-tdep.o): Update dependencies.
10408
cad2e848
JB
104092003-01-30 J. Brobecker <brobecker@gnat.com>
10410
10411 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10412 causing some regressions due to a change in the default value
10413 for this macro.
10414
af34e669
DJ
104152003-01-29 Richard Henderson <rth@redhat.com>
10416 Elena Zannoni <ezannoni@redhat.com>
10417 Daniel Jacobowitz <drow@mvista.com>
10418
10419 Fix PR gdb/961.
8ffd9b1b 10420 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
10421 variables.
10422 (RANGES_SECTION): New.
10423 (dwarf_ranges_buffer): New variable.
10424 (struct comp_unit_head): Add member "die".
10425 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10426 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10427 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10428 (dwarf2_locate_sections): Likewise.
10429 (dwarf2_build_psymtabs): Read .debug_ranges.
10430 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10431 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10432 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10433 Look for DW_AT_ranges and return the bounding box.
10434
baa93fa6
CF
104352003-01-29 Brian Ford <ford@vss.fsi.com>
10436
10437 * win32-nat.c (cygwin_pid): Removed as unused.
10438 (child_attach): Try fall back to Cygwin pid.
10439
c63f977f
JB
104402003-01-29 Jim Blandy <jimb@redhat.com>
10441
10442 * objfiles.h (struct objfile): Doc fix.
10443
d62d1979
AC
104442003-01-29 Andrew Cagney <ac131313@redhat.com>
10445
10446 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10447 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10448 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10449 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10450 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10451 (FRAME_SAVED_PC): Change to a function with predicate.
10452 * gdbarch.h, gdbarch.c: Re-generate.
10453
1ae18a04
AC
104542003-01-28 Andrew Cagney <ac131313@redhat.com>
10455
52287340
AC
10456 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10457
1ae18a04
AC
10458 * complaints.c (complain): Delete function.
10459 * complaints.h (struct deprecated_complaint): Delete definition.
10460 (complain): Delete declaration.
10461
f2c16bd6
KB
104622003-01-28 Kevin Buettner <kevinb@redhat.com>
10463
10464 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10465 dummy frames.
10466
a94dd1fd
AC
104672003-01-27 Andrew Cagney <ac131313@redhat.com>
10468
10469 * sentinel-frame.h, sentinel-frame.c: New files.
10470 * Makefile.in (frame.o): Update dependencies.
10471 (SFILES): Add sentinel-frame.c.
10472 (sentinel_frame_h): Define.
10473 (COMMON_OBS): Add sentinel-frame.o.
10474 (sentinel-frame.o): Specify dependencies.
10475 * frame.c: Include "sentinel-frame.h".
10476 (frame_register_unwind): Rewrite assuming that there is always a a
10477 ->next frame.
10478 (frame_register, generic_unwind_get_saved_register): Ditto.
10479 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10480 (create_sentinel_frame, unwind_to_current_frame): New functions.
10481 (get_current_frame): Rewrite using create_sentinel_frame and
10482 unwind_to_current_frame. When possible, always create a frame.
10483 (create_new_frame): Set next to the sentinel frame.
10484 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10485 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10486 ID cache when necessary.
10487 (frame_saved_regs_id_unwind): Use frame_relative_level.
10488 (deprecated_generic_get_saved_register): Use frame_relative_level,
10489 get_frame_saved_regs, get_frame_pc, get_frame_base and
10490 get_next_frame.
10491 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10492 frame_register.
10493
5378adc4
DJ
104942003-01-27 Daniel Jacobowitz <drow@mvista.com>
10495
10496 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10497
51ee2ddc
DJ
104982003-01-27 Daniel Jacobowitz <drow@mvista.com>
10499
10500 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10501 (maintenance_set_profile_cmd): Use error () instead of warning ().
10502
d9feb4e7
DJ
105032003-01-27 Daniel Jacobowitz <drow@mvista.com>
10504
10505 * configure.in: Check that -pg works if using --enable-profiling.
10506 Check for monstartup and _mcleanup regardless of --enable-profiling.
10507 * maint.c: Check for monstartup and _mcleanup before using them.
10508 * config.in: Regenerated.
10509 * configure: Regenerated.
10510
2d188dd3
NC
105112003-01-24 Nick Clifton <nickc@redhat.com>
10512
10513 * Add sh2e support:
10514
10515 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10516
10517 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10518 (sh2e_show_regs): New.
10519 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10520 * config/sh/tm-sh.h: Added sh2e to comments.
10521
cb3c37b2
JB
105222003-01-23 Jim Blandy <jimb@redhat.com>
10523
10524 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10525 symbols found)" message here; we haven't checked for a separate
10526 debug info file yet, so we don't know yet.
10527 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10528 we've looked everywhere. Also, there's no need to print a special
10529 message when we're loading the separate debug info file: the one
10530 symbol_file_add prints is fine.
10531
5b5d99cf
JB
105322003-01-23 Alexander Larsson <alexl@redhat.com>
10533 Jim Blandy <jimb@redhat.com>
10534
10535 Add support for executables whose debug info has been separated
10536 out into a separate file, leaving only a link behind.
10537 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10538 and separate_debug_objfile_backlink.
10539 (put_objfile_before): New declaration.
10540 * symfile.c: #include "filenames.h".
10541 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10542 debug info in a separate file, read that, too. Save the addrs
10543 argument, so we can use it again to read the separated debug info;
10544 syms_from_objfile modifies the table we pass it.
10545 (reread_symbols): After re-reading an objfile, call
10546 reread_separate_symbols to refresh its separate debug info
10547 objfile, if it has one.
10548 (reread_separate_symbols, find_separate_debug_file,
10549 get_debug_link_info, separate_debug_file_exists): New functions.
10550 (debug_file_directory): New global var.
10551 (_initialize_symfile): Initialize debug_file_directory, and
10552 provide the new `set debug-file-directory' command to let the user
10553 change it.
10554 * objfiles.c (free_objfile): If this objfile has its debug info in
10555 a separate objfile, free that one too. If this is itself a
10556 separate debug info objfile, clear our parent's backlink.
10557 (put_objfile_before): New function.
10558 * utils.c (gnu_debuglink_crc32): New function.
10559 * defs.h (gnu_debuglink_crc32): New declaration.
10560 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10561 * configure.in: Handle --with-separate-debug-dir config option.
10562 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10563 * acconfig.h (DEBUGDIR): New macro.
10564 * configure, aclocal.m4, config.in: Regenerated.
10565
7e8580c1
JB
105662003-01-22 Jim Blandy <jimb@redhat.com>
10567
7904e09f
JB
10568 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10569 like the old symbol_file_add, but taking new arguments: you can
10570 now pass in either a `struct section_addr_info' list to say where
10571 each section is loaded, or a `struct section_offsets' table. Pass
10572 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 10573 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
10574 with the appropriate quiescent values for the new arguments.
10575
7e8580c1
JB
10576 * symfile.c: #include "gdb_assert.h".
10577 (syms_from_objfile): Add the ability to pass in a section offset
10578 table directly, as an alternative to the section_addr_info table.
10579 Document arguments better.
10580 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10581 * symfile.h (syms_from_objfile): Update declaration.
10582 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10583 syms_from_objfile.
10584 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10585
d28f9cdf
DJ
105862003-01-22 Daniel Jacobowitz <drow@mvista.com>
10587
10588 Original patch by Tom Tromey <tromey@cygnus.com> and
10589 Jason Molenda <jmolenda@apple.com>.
10590 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10591 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10592 * NEWS: Mention profiling.
10593 * configure.in (--enable-gdbtk): Fix typo.
10594 (--enable-profiling): New. Set PROFILE_CFLAGS.
10595 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10596 Fill in function.
10597 (profiling_state): New variable.
10598 (mcleanup_wrapper): New function.
10599 (_initialize_maint): Remove NOTYET, fix call to
10600 add_setshow_boolean_cmd for "maint set profile".
10601 * configure: Regenerated.
10602
df21e465
MH
106032003-01-21 Martin M. Hunt <hunt@redhat.com>
10604
10605 * Makefile.in (install-gdbtk): Install PNG images too.
10606
73c1f219
AC
106072003-01-21 Andrew Cagney <ac131313@redhat.com>
10608
10609 * exec.c (text_start): Delete global variable.
10610 (exec_file_attach): Make text_start local to the function.
10611 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10612 * valops.c (hand_function_call): Delete code that handles
10613 BEFORE_TEXT_END and AFTER_TEXT_END.
10614 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10615 of CALL_DUMMY_LOCATION.
10616 * gdbarch.c: Regenerate.
10617 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10618 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10619 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10620 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10621 (text_end): Delete extern declaration.
10622
eb4f72c5
AC
106232003-01-21 Andrew Cagney <ac131313@redhat.com>
10624
10625 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10626 * blockframe.c (backtrace_below_main): Move to "frame.c".
10627 (frame_chain_valid): Delete check for backtrace_below_main.
10628 (_initialize_blockframe): Delete initialization, move ``set
10629 backtrace-below-main'' command to "frame.c".
10630 (do_flush_frames_sfunc): Delete function.
10631 * frame.c: Include "command.h" and "gdbcmd.h".
10632 (frame_type_from_pc): New function.
10633 (create_new_frame): Use frame_type_from_pc.
10634 (legacy_get_prev_frame): New function.
10635 (get_prev_frame): Rewrite. When an old style frame, call
10636 legacy_get_prev_frame. Otherwize, unwind the PC first.
10637 (_initialize_frame): Add ``set backtrace-below-main'' command.
10638 * Makefile.in (frame.o): Update dependencies.
10639
778ce8cc
AC
106402003-01-19 Andrew Cagney <ac131313@redhat.com>
10641
10642 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10643 DEPRECATED_REGISTERS_INFO.
10644
01c193c8
AC
106452003-01-19 Andrew Cagney <ac131313@redhat.com>
10646
10647 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10648 Maintainers'. Update `Various Maintainers'.
10649
dedc2a2b
AC
106502003-01-19 Andrew Cagney <ac131313@redhat.com>
10651
10652 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10653 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10654 Suppress actual parameters when `-'.
10655 * gdbarch.h, gdbarch.c: Regenerate.
10656
b7261c70
AC
106572003-01-19 Andrew Cagney <ac131313@redhat.com>
10658
10659 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10660 code handling dummy frames.
10661
dbe9fe58
AC
106622003-01-19 Andrew Cagney <ac131313@redhat.com>
10663
10664 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10665 (struct frame_unwind): Add field pop.
10666 * frame.h (frame_pop): Declare.
10667 * frame.c (frame_saved_regs_pop): New function.
10668 (trad_frame_unwinder): Add frame_saved_regs_pop.
10669 (frame_pop): New function.
10670 * dummy-frame.c (dummy_frame_pop): New function.
10671 (discard_innermost_dummy): New function.
10672 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10673 (dummy_frame_unwind): Add dummy_frame_pop.
10674 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10675 * valops.c (hand_function_call): Ditto.
10676 * stack.c (return_command): Ditto.
10677
570b8f7c
AC
106782003-01-18 Andrew Cagney <ac131313@redhat.com>
10679
10680 * cris-tdep.c: Fix function declaration indentation.
10681 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10682 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10683 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10684 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10685 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10686 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10687
106882003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
10689
10690 * README (Unpacking and Installation -- quick overview):
10691 Warn against ".../gdb-5.3/gdb/configure".
10692
494cca16
AC
106932003-01-18 Andrew Cagney <ac131313@redhat.com>
10694
10695 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
10696 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10697 (struct frame_unwind): Declare opaque.
10698 (dummy_frame_p): Declare function.
10699 * dummy-frame.c (dummy_frame_id_unwind): Make static.
10700 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
10701 * dummy-frame.c: Include "frame-unwind.h".
10702 (dummy_frame_p): New function.
10703 (dummy_frame_unwind): New variable.
10704 * frame.c: Include "frame-unwind.h".
10705 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
10706 to use the new unwind field.
10707 (set_unwind_by_pc): Delete function.
10708 (create_new_frame, get_prev_frame): Set unwind field using
10709 frame_unwind_find_by_pc.
10710 (trad_frame_unwind, trad_frame_unwinder): New variables.
10711 * frame.h (trad_frame_unwind): Declare variable.
10712 (frame_id_unwind_ftype): Delete declaration.
10713 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
10714 (struct frame_unwind): Declare opaque.
10715 (struct frame_info): Replace the fields id_unwind, pc_unwind and
10716 register_unwind with a single unwind pointer.
10717 * frame-unwind.h, frame-unwind.c: New files.
10718 * Makefile.in (SFILES): Add frame-unwind.c.
10719 (frame_unwind_h): Define.
10720 (COMMON_OBS): Add frame-unwind.o.
10721 (frame-unwind.o): Specify dependencies.
10722 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 10723
4efb68b1
AC
107242003-01-18 Andrew Cagney <ac131313@redhat.com>
10725
10726 * ada-valprint.c: Eliminate PTR.
10727 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
10728 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
10729 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
10730 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
10731 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
10732 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
10733 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 10734
a84d24ee
AC
107352003-01-17 Andrew Cagney <ac131313@redhat.com>
10736
762f08a3
AC
10737 * main.c (captured_main): Don't use PTR.
10738 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
10739 * gdbtypes.c (lookup_primitive_typename): Ditto.
10740 (lookup_struct_elt_type): Ditto.
10741 * f-valprint.c (info_common_command): Ditto.
10742 (list_all_visible_commons): Ditto.
10743 * jv-typeprint.c (java_type_print_base): Ditto.
10744
a84d24ee
AC
10745 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
10746 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
10747 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
10748 i386-interix-nat.c and i386-interix-tdep.c. Rename
10749 m68klinux-nat.c and m68klinux-tdep.c. Rename
10750 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
10751 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
10752 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
10753 * main.c (captured_main): Use xfree, not free.
10754
c170fb60
AC
107552003-01-16 Andrew Cagney <ac131313@redhat.com>
10756
10757 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
10758 ID back using a parameter.
10759 * frame.c (frame_id_unwind): Update call.
10760 (frame_saved_regs_id_unwind): Update.
10761 * dummy-frame.c (dummy_frame_id_unwind): Update function.
10762 * dummy-frame.h (struct frame_id): Add opaque declaration.
10763 (dummy_frame_id_unwind): Update declaration.
10764
867f3898
AC
107652003-01-15 Andrew Cagney <ac131313@redhat.com>
10766
10767 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
10768
40622be8 107692003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 10770
40622be8 10771 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 10772
ae66c1fc
EZ
107732003-01-14 Elena Zannoni <ezannoni@redhat.com>
10774
997b089a 10775 Fix PR gdb/898
ae66c1fc
EZ
10776 * breakpoint.c (until_break_command): Add new argument. Use it to
10777 decide whether to stop only at the current frame or not.
10778 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 10779 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
10780 call.
10781 (advance_command): New function.
10782 (_initialize_infcmd): Update help string for 'until' command.
10783 Add new 'advance' command.
10784
a04257e6
DC
107852003-01-14 David Carlton <carlton@math.stanford.edu>
10786
10787 * linespec.c (decode_line_1): Normalize comments.
10788 (set_flags): Ditto.
10789 (locate_first_half): Ditto.
10790 (decode_compound): Ditto.
10791 (symtab_from_filename): Ditto.
10792 (decode_all_digits): Ditto.
10793 (decode_dollar): Ditto.
10794 (find_methods): Ditto.
10795 (find_toplevel_char): Ditto.
10796
1bac305b
AC
107972003-01-13 Andrew Cagney <ac131313@redhat.com>
10798
10799 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
10800 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
10801 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
10802 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
10803 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
10804 * language.c, language.h, m32r-tdep.c: Update copyright.
10805 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
10806 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
10807 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
10808 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
10809 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
10810 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
10811
25caa7a8
EZ
108122003-01-13 Elena Zannoni <ezannoni@redhat.com>
10813
10814 * stabsread.h (process_later, resolve_cfront_continuation):
10815 Obsolete.
10816 Update copyright years.
10817 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
10818 Update copyright year.
10819 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 10820 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
10821 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
10822 Update copyright year.
10823 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
10824 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
10825 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
10826 (parse_partial_symbols): Obsolete cfront support.
10827 * stabsread.c
10828 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
10829 macros.
10830 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
10831 read_cfront_baseclasses, read_cfront_member_functions,
10832 resolve_cfront_continuation,read_cfront_static_fields,
10833 copy_cfront_struct_fields): Obsolete functions.
10834 (define_symbol, read_one_struct_field): Obsolete cfront support.
10835 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
10836 Update Copyright year.
10837
7789c6f5
EZ
108382003-01-13 Elena Zannoni <ezannoni@redhat.com>
10839
10840 * stack.c (print_frame_info, print_stack_frame_base_stub,
10841 print_stack_frame_base, show_and_print_stack_frame_stub,
10842 show_and_print_stack_frame, print_only_stack_frame_stub,
10843 print_only_stack_frame): Delete functions.
10844 (print_stack_frame_stub): Call print_frame_info instead of
10845 print_frame_info_base.
10846 (print_frame_info_base): Rename to print_frame_info.
10847 (backtrace_command_1): Call print_frame_info, instead of
10848 print_frame_info_base.
10849 (current_frame_command): Call print_stack_frame, instead of
10850 print_only_stack_frame.
10851 (frame_command): Call print_stack_frame, instead of
10852 show_and_print_stack_frame.
10853 (up_command): Ditto.
10854 (down_command): Ditto.
10855 * frame.h (print_only_stack_frame): Delete prototype.
10856 * infrun.c (normal_stop): Call print_stack_frame, instead of
10857 show_and_print_stack_frame.
10858 * thread.c (info_threads_command): Call print_stack_frame, instead
10859 of print_only_stack_frame.
10860
3f5a3016
AC
108612003-01-13 Andrew Cagney <ac131313@redhat.com>
10862
d99ba314
AC
10863 * README (Graphical interface to GDB): Update URL. Point at
10864 gdb/links/.
10865
3f5a3016
AC
10866 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
10867 version match.
10868
083ae935
DJ
108692003-01-13 Daniel Jacobowitz <drow@mvista.com>
10870
10871 * symtab.c (find_pc_sect_line): Don't consider end-of-function
10872 lines.
10873
5365276c
DJ
108742003-01-13 Daniel Jacobowitz <drow@mvista.com>
10875
10876 * thread-db.c (attach_thread): Prototype.
10877 (struct private_thread_info): Remove lwpid. Add thread handle (th),
10878 thread information (ti), and valid flags (th_valid, ti_valid).
10879 (attach_thread): Move target_pid_to_str call to after the thread
10880 is added to GDB's list. Initialize the cache.
10881 (thread_get_info_callback, thread_db_map_id2thr)
10882 (thread_db_get_info): New functions.
10883 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
10884 (thread_db_store_registers, thread_db_thread_alive)
10885 (thread_db_get_thread_local_address): Use them.
10886 (thread_db_pid_to_str): Likewise. Return "Missing" instead
10887 of calling error() for threads in unknown state.
10888
10889 (clear_lwpid_callback): New function.
10890 (thread_db_resume): Use it to clear the cache.
10891
9fc30b6b
DJ
108922003-01-13 Daniel Jacobowitz <drow@mvista.com>
10893
10894 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
10895 (resume_callback): Remove dead code.
10896
8f871025
AC
108972003-01-13 Andrew Cagney <ac131313@redhat.com>
10898
10899 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
10900 predicate.
10901 * gdbarch.h, gdbarch.c: Regenerate.
10902 * stack.c (frame_info): Only initialize the saved registers when
10903 FRAME_INIT_SAVED_REGS_P.
10904 * frame.c (frame_saved_regs_register_unwind): Assert
10905 FRAME_INIT_SAVED_REGS_P.
10906 (deprecated_generic_get_saved_register): Ditto.
10907
3f565f1e
DJ
109082003-01-13 Daniel Jacobowitz <drow@mvista.com>
10909
10910 * source.c (openp): Squelch warning about "filename".
10911
072b1022
DJ
109122003-01-13 Daniel Jacobowitz <drow@mvista.com>
10913
10914 * source.c (openp): If the file does not exist don't necessarily
10915 search the path.
10916
973ccf8b
DJ
109172003-01-13 Daniel Jacobowitz <drow@mvista.com>
10918
10919 Fix PR gdb/872.
10920 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
10921 (integer_types_same_name_p): New function.
10922 (rank_one_type): Use it.
10923 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
10924
030292b7
DJ
109252003-01-13 Daniel Jacobowitz <drow@mvista.com>
10926
10927 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
10928 variables.
10929 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
10930 * configure.in: Add --with-sysroot.
10931 * configure: Regenerated.
10932 * main.c (gdb_sysroot): New variable.
10933 (captured_main): Initialize gdb_sysroot.
10934 * defs.h (gdb_sysroot): New extern declaration.
10935 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
10936
afb5d334
MC
109372003-01-12 Michael Chastain <mec@shout.net>
10938
10939 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
10940
751ceeb4
MC
109412003-01-12 Michael Chastain <mec@shout.net>
10942
10943 * top.c (print_gdb_version): Bump copyright year to 2003.
10944
94cd26f8
DC
109452003-01-12 David Carlton <carlton@bactrian.org>
10946
10947 * linespec.c (symtab_from_filename): Rename variable 's' to
10948 'file_symtab'.
10949
1ce79225
AC
109502003-01-12 Andrew Cagney <ac131313@redhat.com>
10951
10952 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
10953 dummy frame.
10954 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
10955
fa1fd571
AC
109562003-01-12 Andrew Cagney <ac131313@redhat.com>
10957
10958 * d10v-tdep.c: Include "gdb_assert.h".
10959 (d10v_store_return_value): Rewrite to match current interface.
10960 (d10v_extract_struct_value_address): Ditto.
10961 (d10v_extract_return_value): Ditto.
10962 (d10v_gdbarch_init): Set store_restore_value,
10963 extract_struct_value_address and extract_return_value.
10964
68b8d23e
JB
109652003-01-12 J. Brobecker <brobecker@gnat.com>
10966
10967 * hpread.c (set_namestring): New procedure replacing the
10968 SET_NAMESTRING macro.
10969 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
10970 by calls to set_namestring.
10971
109722003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
10973
10974 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
10975 a compilation warning.
10976 (hpread_process_one_debug_symbol): Likewise.
10977
88d262ca
DC
109782003-01-10 David Carlton <carlton@math.stanford.edu>
10979
10980 * linespec.c (decode_line_1): Rename variable 's' to
10981 'file_symtab'.
10982 (decode_all_digits): Rename argument 's' to 'file_symtab'.
10983 (decode_dollar): Ditto.
10984 (decode_variable): Ditto.
10985 (symbol_found): Ditto.
10986
86669319
MC
109872003-01-09 Michael Chastain <mec@shout.net>
10988
10989 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
10990
616a9dc4
CV
109912003-01-07 Corinna Vinschen <vinschen@redhat.com>
10992
10993 * win32-nat.c (set_process_privilege): New function.
10994 (child_attach): Call set_process_privilege() to enable the
10995 SE_DEBUG_NAME user privilege if available in process token.
10996
3269bcfa
JB
109972003-01-10 J. Brobecker <brobecker@gnat.com>
10998
10999 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11000 compilation error in the previous revision.
11001
2b0ee454
DC
110022003-01-09 David Carlton <carlton@math.stanford.edu>
11003
11004 * linespec.c: Update copyright.
11005
b3ba1b44
DJ
110062003-01-09 Daniel Jacobowitz <drow@mvista.com>
11007
11008 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11009 than inferior_ptid.
11010 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11011
4ef3f3be
AC
110122003-01-09 Andrew Cagney <ac131313@redhat.com>
11013
479ab5a0
AC
11014 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11015 Update comments.
11016 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11017 (frame_saved_regs_zalloc): Update.
11018 (frame_saved_regs_register_unwind): Update.
11019 (create_new_frame): Update.
11020 (get_prev_frame): Update.
11021 (frame_extra_info_zalloc): Update.
11022 (deprecated_get_frame_saved_regs): Update.
11023 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11024 * cris-tdep.c: Update comment.
11025
bde58177
AC
11026 * somsolib.h: Fix function indentation.
11027 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11028 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11029 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11030 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11031 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11032
4ef3f3be
AC
11033 * infrun.c (follow_fork): Use ISO C definition.
11034 * expprint.c (print_subexp): Use xfree instead of free.
11035 * charset.c: Include "gdb_string.h" instead of <string.h>.
11036 (register_iconv_charsets): Use ISO C definition.
11037 (host_charset, target_charset): Ditto.
11038 * Makefile.in (charset.o): Update dependencies.
11039 (mi-cmd-env.o): Update dependencies.
11040
1c615f7a
AC
110412003-01-08 Andrew Cagney <cagney@redhat.com>
11042
11043 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11044 get_frame_base.
11045
c9a1dc08
AC
110462003-01-08 Andrew Cagney <ac131313@redhat.com>
11047
11048 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11049 build directories. Save edited gdb output in Mbuild.log. If a
11050 build fails, remove any final GDB executable.
11051
dbad9d94
AC
110522003-01-08 Andrew Cagney <ac131313@redhat.com>
11053
11054 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11055 replacing hex constants with function names and stripping leading
11056 file name directory prefixes.
11057
8d357cca
AC
110582003-01-08 Andrew Cagney <cagney@redhat.com>
11059
11060 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11061 get_frame_base.
11062
bca02a8a
DC
110632003-01-08 David Carlton <carlton@math.stanford.edu>
11064
11065 * linespec.c (decode_line_1): Move code into decode_variable.
11066 (decode_variable): New function.
11067
7f8ab3a0
AC
110682003-01-08 Andrew Cagney <ac131313@redhat.com>
11069
11070 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11071
7b5849cc
AC
110722003-01-08 Andrew Cagney <cagney@redhat.com>
11073
11074 * cris-tdep.c (cris_frame_init_saved_regs): Use
11075 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11076 saved_regs buffer.
11077 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11078 (sh64_nofp_frame_init_saved_regs): Ditto.
11079 (sh_fp_frame_init_saved_regs): Ditto.
11080 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11081 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11082 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11083 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11084
72a5efb3
DJ
110852003-01-08 Daniel Jacobowitz <drow@mvista.com>
11086
11087 * minsyms.c (lookup_minimal_symbol): Update comment.
11088 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11089 (lookup_minimal_symbol_solib_trampoline): Likewise.
11090
11c02a10
AC
110912003-01-08 Andrew Cagney <cagney@redhat.com>
11092
aab3ea25
AC
11093 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11094 frame_relative_level.
11095
da50a4b7
AC
11096 * alpha-tdep.c: Use get_frame_extra_info.
11097 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11098 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11099 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11100 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11101
11c02a10
AC
11102 * alpha-tdep.c: Use get_next_frame.
11103 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11104 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11105 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11106 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11107 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11108 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11109 * xstormy16-tdep.c: Ditto.
8ffd9b1b 11110
1e2330ba
AC
111112003-01-07 Andrew Cagney <cagney@redhat.com>
11112
11113 * alpha-tdep.c: Use get_frame_base.
11114 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11115 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11116 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11117 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11118 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11119 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11120 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11121 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 11122
2d75187b
AC
111232003-01-07 Andrew Cagney <cagney@redhat.com>
11124
11125 * frame.c (deprecated_get_frame_context): New function.
11126 (deprecated_set_frame_context): New function.
11127 * frame.h (deprecated_get_frame_context): Declare.
11128 (deprecated_set_frame_context): Declare.
11129 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11130 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 11131
483d36b2
AC
111322003-01-07 Andrew Cagney <cagney@redhat.com>
11133
11134 * frame.c (deprecated_set_frame_next_hack): New function.
11135 (deprecated_set_frame_prev_hack): New function.
11136 * frame.h (deprecated_set_frame_next_hack): Declare.
11137 (deprecated_set_frame_prev_hack): Declare.
11138 * mcore-tdep.c (analyze_dummy_frame): Use
11139 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11140 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11141
14e91ac5
DC
111422003-01-07 David Carlton <carlton@math.stanford.edu>
11143
11144 * linespec.c (decode_line_1): Move code into decode_dollar.
11145 (decode_dollar): New function.
11146
b0c6b05c
AC
111472003-01-07 Andrew Cagney <cagney@redhat.com>
11148
11149 * arm-tdep.c (arm_init_extra_frame_info): Use
11150 deprecated_update_frame_base_hack.
11151 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11152 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11153 (fix_frame_pointer): Ditto.
11154 (mn10300_analyze_prologue): Ditto.
11155
a00a19e9
AC
111562003-01-07 Andrew Cagney <cagney@redhat.com>
11157
11158 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11159 extra_info using frame_extra_info_zalloc.
11160 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11161 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11162 (sh64_init_extra_frame_info): Ditto.
11163 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11164 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11165 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11166 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11167 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11168 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11169 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11170 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11171 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11172 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11173 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11174 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11175
11176 * mn10300-tdep.c (analyze_dummy_frame): Use
11177 deprecated_set_frame_extra_info_hack.
11178 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11179
1fb4c65b
JB
111802003-01-07 J. Brobecker <brobecker@gnat.com>
11181
11182 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11183 class is not scText. These do not define "real" procedures.
11184 (parse_partial_symbols): Likewise.
11185
9fe7d6bf
MS
111862003-01-06 Michael Snyder <msnyder@redhat.com>
11187
11188 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11189
f6c609c4
AC
111902003-01-06 Andrew Cagney <ac131313@redhat.com>
11191
11192 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11193 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11194 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11195 deprecated_frame_xmalloc_with_cleanup.
11196 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11197 deprecated_frame_xmalloc.
11198 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11199 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11200
d995ff4b
AC
112012003-01-06 Andrew Cagney <cagney@redhat.com>
11202
84dc46cb
AC
11203 * x86-64-linux-tdep.c: Include "osabi.h".
11204 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11205
d995ff4b
AC
11206 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11207
66140c26
AC
112082003-01-06 Andrew Cagney <cagney@redhat.com>
11209
11210 * MAINTAINERS (Target Instruction Set Architectures): Update
11211 arm-elf. Can be built with -Werror, has been multiarched.
11212
11213 * value.h (unpack_long): Make buffer parameter constant.
11214 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11215 * scm-lang.h (scm_parse): Ditto.
11216 * defs.h (extract_typed_address, extract_address): Ditto.
11217 (extract_long_unsigned_integer): Ditto.
11218 * inferior.h (unsigned_pointer_to_address): Ditto.
11219 (signed_pointer_to_address): Ditto.
11220 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11221 * gdbarch.h, gdbarch.c: Regenerate.
11222 * findvar.c (extract_long_unsigned_integer): Update.
11223 (extract_address): Update.
11224 (extract_typed_address): Update.
11225 (unsigned_pointer_to_address): Update.
11226 * values.c (unpack_long): Update.
11227 (unpack_double): Update.
11228 (unpack_pointer): Update.
11229 (unpack_field_as_long): Update.
11230 * d10v-tdep.c (d10v_pointer_to_address): Update.
11231 * avr-tdep.c (avr_pointer_to_address): Update.
11232 * scm-lang.c (scm_unpack): Update.
11233 * findvar.c (signed_pointer_to_address): Update.
11234
b089b3da
ML
112352003-01-06 Michal Ludvig <mludvig@suse.cz>
11236
8ffd9b1b 11237 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
11238 since it is in i386-tdep.c.
11239
aff87235
JB
112402003-01-06 J. Brobecker <brobecker@gnat.com>
11241
11242 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11243 failure introduced in the previous change.
11244
34f5e845
MC
112452003-01-05 Michael Chastain <mec@shout.net>
11246
11247 * README: Remove references to deleted remote-*.c files:
11248 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11249 remote-nrom.c, remote-os9k.c, remote-udi.c.
11250
28bcfd30
MK
112512003-01-05 Mark Kettenis <kettenis@gnu.org>
11252
11253 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11254 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11255 i386_get_longjmp_target.
11256
15a5b3ee
AC
112572003-01-05 Andrew Cagney <ac131313@redhat.com>
11258
11259 * arm-tdep.c (prologue_cache): Change to a pointer.
11260 (_initialize_arm_tdep): Allocate prologue_cache.
11261 (check_prologue_cache): Update.
11262 (save_prologue_cache): Update.
11263 (arm_gdbarch_init): Update.
11264
c263362b
DJ
112652003-01-04 Daniel Jacobowitz <drow@mvista.com>
11266
11267 * stabsread.c (update_method_name_from_physname): Call complaint()
11268 instead of error.
11269
51603483
DJ
112702003-01-04 Daniel Jacobowitz <drow@mvista.com>
11271
11272 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11273 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11274 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11275
11276 * blockframe.c: Include "gdbcmd.h" and "command.h".
11277 (backtrace_below_main): New variable.
11278 (file_frame_chain_valid, func_frame_chain_valid)
11279 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11280 (generic_func_frame_chain_valid): Remove functions.
11281 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11282 (_initialize_blockframe): New function.
11283 * Makefile.in (blockframe.o): Update dependencies.
11284 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11285 comment. Call frame_chain_valid ().
11286 * frame.h: Remove old prototypes. Add prototype for
11287 frame_chain_valid and update comments to match.
11288 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11289 Remove old comment.
11290 * gdbarch.h: Regenerated.
11291 * gdbarch.c: Regenerated.
11292
11293 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11294 set_gdbarch_frame_chain_valid.
11295 * avr-tdep.c (avr_gdbarch_init): Likewise.
11296 * cris-tdep.c (cris_gdbarch_init): Likewise.
11297 * frv-tdep.c (frv_gdbarch_init): Likewise.
11298 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11299 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11300 (i386_nw_init_abi): Likewise.
11301 (i386_gdbarch_init): Likewise.
11302 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11303 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11304 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11305 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11306 * mips-tdep.c (mips_gdbarch_init): Likewise.
11307 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11308 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11309 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11310 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11311 * s390-tdep.c (s390_gdbarch_init): Likewise.
11312 * sh-tdep.c (sh_gdbarch_init): Likewise.
11313 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11314 * v850-tdep.c (v850_gdbarch_init): Likewise.
11315 * vax-tdep.c (vax_gdbarch_init): Likewise.
11316 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11317
11318 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11319 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11320 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11321 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11322 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11323 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11324 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11325 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11326
b00a8037
DJ
113272002-01-04 Daniel Jacobowitz <drow@mvista.com>
11328
11329 * Makefile.in (acconfig_h): Remove incorrect macro.
11330 (config_h): Define.
11331 (osabi.o): Update dependencies.
11332 * configure.tgt: Set gdb_osabi based on target triplet.
11333 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11334 * configure: Regenerated.
11335 * config.in: Regenerated.
11336 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11337 (GDB_OSABI_DEFAULT): Define if not already defined.
11338 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11339 (set_osabi_string): New variables.
11340 (gdbarch_register_osabi): Add new OS ABI to
11341 gdb_osabi_available_names.
11342 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11343 (set_osabi, show_osabi): New functions.
11344 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11345
4be87837
DJ
113462003-01-04 Daniel Jacobowitz <drow@mvista.com>
11347
11348 * arch-utils.c (gdbarch_info_init): Set osabi to
11349 GDB_OSABI_UNINITIALIZED.
11350 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11351 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11352 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11353 * gdbarch.c: Regenerated.
11354 * gdbarch.h: Regenerated.
11355 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11356 there's no BFD.
11357 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11358 * osabi.h (enum gdb_osabi): Move to defs.h.
11359 (gdbarch_init_osabi): Update prototype.
11360 * defs.h (enum gdb_osabi): Moved here.
11361 * Makefile.in: Update dependencies.
11362
11363 * alpha-tdep.h: Don't include "osabi.h".
11364 (struct gdbarch_tdep): Remove osabi member.
11365 * alpha-tdep.c: Include "osabi.h".
11366 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11367 iterate over arches. Update call to gdbarch_init_osabi.
11368 (alpha_dump_tdep): Don't dump osabi.
11369 * alpha-linux-tdep.c: Include "osabi.h".
11370 * alpha-osf1-tdep.c: Include "osabi.h".
11371 * alphafbsd-tdep.c: Include "osabi.h".
11372 * alphanbsd-tdep.c: Include "osabi.h".
11373
11374 * arm-tdep.h: Don't include "osabi.h".
11375 (struct gdbarch_tdep): Remove osabi member.
11376 * arm-tdep.c: Include "osabi.h".
11377 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11378 iterate over arches. Update call to gdbarch_init_osabi.
11379 (arm_dump_tdep): Don't dump osabi.
11380 * arm-linux-tdep.c: Include "osabi.h".
11381 * armnbsd-tdep.c: Include "osabi.h".
11382
11383 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11384 Update call to gdbarch_init_osabi.
11385
11386 * i386-tdep.h: Don't include "osabi.h".
11387 (struct gdbarch_tdep): Remove osabi member.
11388 * i386-tdep.c: Include "osabi.h".
11389 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11390 iterate over arches. Update call to gdbarch_init_osabi.
11391 (i386_dump_tdep): Don't dump osabi.
11392 * i386-linux-tdep.c: Include "osabi.h".
11393 * i386-sol2-tdep.c: Include "osabi.h".
11394 * i386bsd-tdep.c: Include "osabi.h".
11395 * i386gnu-tdep.c: Include "osabi.h".
11396 * i386ly-tdep.c: Include "osabi.h".
11397 * i386nbsd-tdep.c: Include "osabi.h".
11398 * i386obsd-tdep.c: Include "osabi.h".
11399
11400 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11401 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11402 check osabi when iterating over arches. Update call to
11403 gdbarch_init_osabi.
11404 (mips_dump_tdep): Don't dump osabi.
11405
11406 * ns32k-tdep.h: Don't include "osabi.h".
11407 (struct gdbarch_tdep): Remove.
11408 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11409 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11410 allocate tdep. Update call to gdbarch_init_osabi.
11411 (ns32k_dump_tdep): Remove.
11412 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11413 * ns32knbsd-tdep.c: Include "osabi.h".
11414
11415 * ppc-tdep.h: Don't include "osabi.h".
11416 (struct gdbarch_tdep): Remove osabi member.
11417 * rs6000-tdep.c: Include "osabi.h".
11418 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11419 osabi when iterating over arches. Update call to
11420 gdbarch_init_osabi.
11421 (rs6000_dump_tdep): Don't dump osabi.
11422 * ppc-linux-tdep.c: Include "osabi.h".
11423 * ppcnbsd-tdep.c: Include "osabi.h".
11424
11425 * sh-tdep.h: Don't include "osabi.h".
11426 (struct gdbarch_tdep): Remove osabi member.
11427 * sh-tdep.c: Include "osabi.h".
11428 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11429 iterate over arches. Update call to gdbarch_init_osabi.
11430 (sh_dump_tdep): Don't dump osabi.
11431 * shnbsd-tdep.c: Include "osabi.h".
11432
11433 * sparc-tdep.c: Include "osabi.h".
11434 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11435 iterate over arches. Update call to gdbarch_init_osabi.
11436 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11437 tdep structure.
11438
11439 * vax-tdep.h: Don't include "osabi.h".
11440 (struct gdbarch_tdep): Remove.
11441 * vax-tdep.c: Include "osabi.h".
11442 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11443 iterate over arches. Don't allocate tdep. Update call
11444 to gdbarch_init_osabi.
11445 (vax_dump_tdep): Remove.
11446 (_initialize_vax_tdep): Update call to gdbarch_register.
11447
a881cf8e
DJ
114482003-01-04 Daniel Jacobowitz <drow@mvista.com>
11449
11450 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11451 entirely.
11452 (breakpoint_re_set_one): Don't fetch the value for a disabled
11453 watchpoint.
11454
1e698235
DJ
114552003-01-04 Daniel Jacobowitz <drow@mvista.com>
11456
11457 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11458 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11459 (COERCE_FLOAT_TO_DOUBLE): Remove.
11460 * gdbarch.c: Regenerate.
11461 * gdbarch.h: Regenerate.
11462 * Makefile.in: Remove value_h from gdbarch_h.
11463 * valops.c (coerce_float_to_double): New variable.
11464 (default_coerce_float_to_double): Remove.
11465 (standard_coerce_float_to_double): Remove.
11466 (value_arg_coerce): Use coerce_float_to_double.
11467 (_initialize_valops): Add "set coerce-float-to-double".
11468 * value.h (default_coerce_float_to_double): Remove prototype.
11469 (standard_coerce_float_to_double): Remove prototype.
11470
11471 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11472 prototyped.
11473 * mdebugread.c (parse_symbol): Likewise.
11474 * stabsread.c (define_symbol): Mark all functions as prototyped.
11475
11476 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11477 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11478 set_gdbarch_coerce_float_to_double.
11479 * arm-tdep.c (arm_gdbarch_init): Likewise.
11480 * frv-tdep.c (frv_gdbarch_init): Likewise.
11481 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11482 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11483 * mips-tdep.c (mips_gdbarch_init): Likewise.
11484 (mips_coerce_float_to_double): Remove.
11485 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11486 (rs6000_coerce_float_to_double): Remove.
11487 * s390-tdep.c (s390_gdbarch_init): Likewise.
11488 * sh-tdep.c (sh_gdbarch_init): Likewise.
11489 (sh_coerce_float_to_double): Remove.
11490 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11491 (sparc_coerce_float_to_double): Remove.
11492 * v850-tdep.c (v850_gdbarch_init): Likewise.
11493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11494 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11495 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11496 (hppa_coerce_float_to_double): Remove prototype.
11497 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11498
f436a26a
DJ
114992003-01-04 Daniel Jacobowitz <drow@mvista.com>
11500
11501 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11502
248f8055
DJ
115032003-01-04 Daniel Jacobowitz <drow@mvista.com>
11504
11505 Suggested by Stewart Brown <sb24@avaya.com>:
11506 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11507 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11508 (c_type_print_varspec_suffix): Likewise.
11509
72cfdc76
MK
115102003-01-04 Mark Kettenis <kettenis@gnu.org>
11511
bfd260bb
MK
11512 * configure.in: Don't set and AC_SUBST SUBDIRS.
11513 * configure: Regenerated.
11514
72cfdc76
MK
11515 * configure.in: Remove code dealing with shared libraries.
11516 * Makefile.in: Remove HLDFLAGS and HLDENV.
11517 * configure: Regenerated.
11518
c8b8a898
AC
115192003-01-04 Andrew Cagney <ac131313@redhat.com>
11520
11521 * frame.c (deprecated_frame_xmalloc): New function.
11522 (deprecated_set_frame_saved_regs_hack): New function.
11523 (deprecated_set_frame_extra_info_hack): New function.
11524 * frame.h (deprecated_frame_xmalloc): Declare.
11525 (deprecated_set_frame_saved_regs_hack): Declare.
11526 (deprecated_set_frame_extra_info_hack): Declare.
11527
14abd0fb
MK
115282003-01-04 Mark Kettenis <kettenis@gnu.org>
11529
8ee53726
MK
11530 * configure.in: Move code that provides the --enable-gdbtk option
11531 right after the code that handles the --enable-tui option, and
11532 polish it somewhat.
11533 * configure: Regenerated.
11534
14abd0fb
MK
11535 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11536 AC_CHECK_FUNCS and remove the old check for pread64.
11537 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11538 * acconfig.h (_GNU_SOURCE): Add.
11539 (HAVE_PREAD64): Remove.
11540 * configure, aclocal.m4, config.in: Regenerated.
11541
b2fb4676
AC
115422003-01-03 Andrew Cagney <ac131313@redhat.com>
11543
11544 * alpha-tdep.c: Use get_frame_saved_regs.
11545 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11546 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11547 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11548 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11549 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11550
8dcde887
MK
115512003-01-03 Mark Kettenis <kettenis@gnu.org>
11552
11553 * configure.in: Remove all use of the SUBDIRS variable; add
11554 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11555 code providing the --enable-multi-ice option, and move it right in
11556 front of the code that checks whether gdbserver is supported.
11557 Polish that too.
11558 * configure: Regenerated.
11559 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11560 @SUBDIRS@.
11561
8ccd593b
AC
115622003-01-03 Andrew Cagney <cagney@redhat.com>
11563
11564 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11565 * avr-tdep.c, cris-tdep.c: Ditto.
11566 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11567 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 11568
91151a06
MK
115692003-01-03 Mark Kettenis <kettenis@gnu.org>
11570
11571 * configure.in: Remove --enable-netrom option.
11572 * configure: Regenerated.
11573
8fe84d01
MK
115742003-01-03 Mark Kettenis <kettenis@gnu.org>
11575
11576 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11577 declaration for `struct re_pattern_buffer' instead.
11578 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11579
f0394be6
JB
115802003-01-03 J. Brobecker <brobecker@gnat.com>
11581
11582 * mdebugread.c (parse_symbol): Count until the stEnd matching
11583 the structure name.
11584
27e9bf90
MK
115852003-01-02 Mark Kettenis <kettenis@gnu.org>
11586
93d331ba
MK
11587 * configure.in: Remove --with-cpu option.
11588 subscripts. Remove evil changequotes here.
11589 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11590 * config.in, configure: Regenerated.
8ffd9b1b 11591
27e9bf90
MK
11592 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11593 * configure.in: Cleanup section that sources GDB and BFD configure
11594 subscripts. Remove evil changequotes here.
11595 * config.in, configure: Regenerated.
11596
50abf9e5
AC
115972003-01-02 Andrew Cagney <ac131313@redhat.com>
11598
11599 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11600 frame accessor methods.
11601 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11602 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11603 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11604 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11605 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11606 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11607 * z8k-tdep.c: Ditto.
8ffd9b1b 11608
287c1a40
MK
116092003-01-02 Mark Kettenis <kettenis@gnu.org>
11610
f5dbc56d
MK
11611 * configure.in: Remove UI_OUT configuration code.
11612 * ada-lang.c: Update assuming UI_OUT is always true.
11613 * Makefile.in (UIOUT_CFLAGS): Remove.
11614 * configure: Regenerated.
11615 * TODO: Remove blurb about elimination of -DUI_OUT.
11616
627af7ea
MK
11617 * configure.in: Move code that provides the --enable-gdbcli,
11618 --enable-gdbmi options right before the code that handles the
11619 --enable-tui option. Polish a bit.
11620 * configure: Regenerated.
11621
06825bd1
MK
11622 * configure.in: Rewrite check for GNU regex and the
11623 --without-included regex option, and move it into the "Checks for
11624 library functions" section. This makes us use the system regex
11625 again by default on systems with version 2 of the GNU C library.
11626 This was apparently broken.
11627 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11628 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11629 * config.in, configure: Regenerated.
11630
287c1a40
MK
11631 * configure.in: Move code that provides the --enable-tui option
11632 before the "Checks for libraries" section. Polish the code
11633 somewhat and set need_curses to yes if we build the TUI. Rewrite
11634 code that looks for a library providing termcap functionality to
11635 match more closely what's done in the Readline library, and move
11636 it into to the "Checks for libraries" section.
11637 * configure: Regenerated.
11638 * Makefile.in (TERMCAP): Remove variable.
11639 * config/i386/go32.mh (TERMCAP): Remove variable.
11640
684e56bf
AC
116412003-01-02 Andrew Cagney <ac131313@redhat.com>
11642
11643 * MAINTAINERS: Mention gdb_mbuild.sh.
11644 * gdb_mbuild.sh: Rewrite.
11645
e1ea1d75
MK
116462003-01-02 Mark Kettenis <kettenis@gnu.org>
11647
11648 * configure.in: Fix typo in last change.
11649 * config.in, configure: Regenerated.
11650
1b831c93
AC
116512003-01-02 Andrew Cagney <ac131313@redhat.com>
11652
11653 * valarith.c (value_binop): Delete obsolete code and comments.
11654 * configure.host: Ditto.
11655 * buildsym.h (make_blockvector): Ditto.
11656 * buildsym.c (make_blockvector): Ditto.
11657 * defs.h (enum language): Ditto.
11658 (chill_demangle): Ditto.
11659 * elfread.c (elf_symtab_read): Ditto.
11660 * dwarfread.c (CHILL_PRODUCER): Ditto.
11661 (set_cu_language): Ditto.
11662 (handle_producer): Ditto.
11663 * expprint.c (print_subexp): Ditto.
11664 * gdbtypes.c (chill_varying_type): Ditto.
11665 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11666 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11667 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11668 (chill_varying_type): Ditto.
11669 * language.h (_LANG_chill): Ditto.
11670 * language.c (binop_result_type, integral_type): Ditto.
11671 (character_type, string_type, structured_type): Ditto.
11672 (lang_bool_type, binop_type_check): Ditto.
11673 * stabsread.h (os9k_stabs): Ditto.
11674 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11675 (define_symbol, read_type, read_struct_fields): Ditto.
11676 (read_array_type, read_enum_type, read_huge_number): Ditto.
11677 (read_range_type, start_stabs): Ditto.
11678 * symfile.c (init_filename_language_table): Ditto.
11679 (add_psymbol_with_dem_name_to_list): Ditto.
11680 * symtab.c (symbol_init_language_specific): Ditto.
11681 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11682 * symtab.h (struct general_symbol_info): Ditto.
11683 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11684 * typeprint.c (typedef_print): Ditto.
11685 * utils.c (fprintf_symbol_filtered): Ditto.
11686 * valops.c (value_cast, search_struct_field, value_slice): Delete
11687 obsolete code.
11688 (varying_to_slice): Delete function.
11689 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11690 (varying_to_slice): Delete declaration.
11691 * MAINTAINERS: Update.
11692
8bb2c122
MK
116932003-01-02 Mark Kettenis <kettenis@gnu.org>
11694
97bf5e38
MK
11695 * configure.in: Reorganize "Checks for library functions section"
11696 a bit. Remove check for `btowc' and `isascii' functions.
11697 * configure: Regenerated.
11698
5ee754fc
MK
11699 * acconfig.h (_MSE_INT_H): Remove.
11700 * configure.in: Create "Checks for header files" section, and move
11701 appropriate tests there. Don't check for objlist.h, wchar.h,
11702 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
11703 misdetection fix. Also add "Checks for types", "Checks for
11704 compiler characteristics" and "Checks for library functions"
11705 sections.
11706 * config.in, configure: Regenerated.
11707
8bb2c122
MK
11708 * configure.in: Create "Checks for programs" section, and move
11709 appropriate tests there.
11710
9a156167
MK
117112003-01-01 Mark Kettenis <kettenis@gnu.org>
11712
11713 * configure.in: Create "Checks for libraries" section, and move
11714 appropriate tests there. Cleanup check for wctype in libw. Use
11715 AC_SEARCH_LIBS to see whether we need libsocket.
11716 * configure: Regenerated.
11717
a80e2bcb 11718For older changes see ChangeLog-2002
c906108c
SS
11719\f
11720Local Variables:
11721mode: change-log
11722left-margin: 8
11723fill-column: 74
11724version-control: never
11725End:
This page took 1.091855 seconds and 4 git commands to generate.