2003-10-06 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
28a86f5c
AC
12003-10-06 Andrew Cagney <cagney@redhat.com>
2
41989fcd
AC
3 * breakpoint.c, breakpoint.h: Remove obsolete code.
4 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
5 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
6 * stabsread.h, xcoffread.c: Ditto.
7
28a86f5c
AC
8 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
9 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
10 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
11 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
12
4efdaa0d
DL
132003-10-06 David Lecomber <dsl@sources.redhat.com>
14
15 * f-valprint.c: Reformatting
16
ae53de43
MK
172003-10-06 Mark Kettenis <kettenis@gnu.org>
18
a8bb57e7
MK
19 * x86-64-tdep.c: Remove duplicate comment.
20
ae53de43
MK
21 * x86-64-tdep.c (x86_64_store_return_value): Don't use
22 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
23 names for return values. This fixes a bug since we looked at %rbx
24 instead of %rdx.
25
473f17b0
MK
262003-10-05 Mark Kettenis <kettenis@gnu.org>
27
2c261fae
MK
28 * x86-64-tdep.c: Include "regset.h".
29
473f17b0
MK
30 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
31 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
32 sizeof_fpregset.
33 * i386-tdep.c: Include "regset.h".
34 (i386_supply_gregset): New function.
35 (i386_supply_fpregset): New function.
36 (i386_gdbarch_init): Initialze register set-related members of
37 TDEP.
38 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
39 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
40
afd48b75
AC
412003-10-03 Andrew Cagney <cagney@redhat.com>
42
43 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
44 set extract_return_value, store_return_value and
45 use_struct_convention to ppc64_sysv_abi_extract_return_value,
46 ppc64_sysv_abi_store_return_value and
47 ppc64_sysv_abi_use_struct_convention.
48 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
49 (ppc64_sysv_abi_store_return_value): Declare.
50 (ppc64_sysv_abi_use_struct_convention): Declare.
51 * ppc-sysv-tdep.c (enum return_value_convention): Define.
52 (ppc64_sysv_abi_extract_return_value): New function.
53 (ppc64_sysv_abi_store_return_value): New function.
54 (ppc64_sysv_abi_use_struct_convention): New function.
55 (ppc64_sysv_abi_return_value): New function.
56
9b540880
AC
572003-10-03 Andrew Cagney <cagney@redhat.com>
58
59 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
60 convert a descriptor to a function when it's in the ".opd"
61 section.
62
8748518b
CV
632003-10-03 Corinna Vinschen <vinschen@redhat.com>
64
65 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
66 reg_size to keep GCC silent.
67
0fd85043
CV
682003-10-03 Corinna Vinschen <vinschen@redhat.com>
69
70 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
71 base for DW_EH_PE_textrel encodings.
72 (read_encoded_value): Add a DW_EH_PE_textrel case.
73 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
74 section.
75
37b517aa
MK
762003-10-03 Mark Kettenis <kettenis@gnu.org>
77
78 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
79
12c266ea
AC
802003-10-02 Andrew Cagney <cagney@redhat.com>
81
82 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
83 REGISTER_RAW_SIZE.
84 * gdbarch.h, gdbarch.c: Re-generate.
85 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
86 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
87 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
88 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
89 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
90 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
91 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
92 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
93 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
94 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
95 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
96 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
97 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
98 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
99 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
100 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
101
78ba4af6
JB
1022003-10-02 Jim Blandy <jimb@redhat.com>
103
104 * dwarf2read.c (struct die_info): Doc fix.
105
617daa0e
CV
1062003-10-02 Corinna Vinschen <vinschen@redhat.com>
107
108 * sh-tdep.c: Running thru gdb_indent.sh.
109
e5e33cd9
CV
1102003-10-02 Corinna Vinschen <vinschen@redhat.com>
111
112 * sh-tdep.c (sh_justify_value_in_reg): New function.
113 (sh_stack_allocsize): Ditto.
114 (flt_argreg_array): New array used for floating point argument
115 passing.
116 (sh_init_flt_argreg): New function.
117 (sh_next_flt_argreg): Ditto.
118 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
119 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
120 Fix argument passing strategy.
121 (sh_push_dummy_call_nofpu): Ditto.
122
5fe830e4
AC
1232003-10-01 Andrew Cagney <cagney@redhat.com>
124
125 * value.h (register_value_being_returned): Declare. Replace
126 "value_being_returned".
127 * infcall.c (call_function_by_hand): Use
128 register_value_being_returned.
129 * infcmd.c (print_return_value): Call
130 "register_value_being_returned", handle struct return locally.
131 * values.c (register_value_being_returned): New function. Replace
132 "value_being_returned".
133
1342003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
135
136 * linux-proc.c (linux_do_registers): New function.
137 (linux_make_note_section): Use linux_do_registers in case of
138 single threaded inferior programs.
139
64f395bf
AC
1402003-10-01 Andrew Cagney <cagney@redhat.com>
141
142 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
143 use STRUCT_ADDR. When not using "struct return convention", pass
144 "0" to "value_being_returned". Add FIXMEs.
145 * infcmd.c (print_return_value): Pass an explicit 0/1 to
146 value_being_returned. Add comments.
147 * values.c (value_being_returned): Add fixme.
148 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
149 (hppa_value_returned_from_stack): Add FIXME.
150
639d11d3
DC
1512003-09-30 David Carlton <carlton@kealia.com>
152
153 * dwarf2read.c (struct die_info): Add 'parent' field; replace
154 'has_children' and 'next' by 'child' and 'sibling'.
155 (read_comp_unit): Rework algorithm, breaking body into
156 read_die_and_children and read_die_and_siblings.
157 (read_die_and_children, read_die_and_siblings): New.
158 (read_full_die): Add 'has_children' argument; set it instead of
159 the die's 'has_children' field. Minor formatting cleanup.
160 (free_die_list): Use die->child and die->sibling instead of
161 die->next.
162 (dump_die_list): Ditto.
163 (sibling_die): Use die->sibling.
164 (psymtab_to_symtab_1): Use die's 'child' field in place of its
165 'has_children' and 'next' fields.
166 (process_die, read_file_scope, read_func_scope)
167 (read_lexical_block_scope, read_structure_scope)
168 (read_enumeration, read_array_type, read_common_block)
169 (read_namespace, read_subroutine_type, dump_die): Ditto.
170
5bffac25
AC
1712003-09-30 Andrew Cagney <cagney@redhat.com>
172
173 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
174 to 224, not 220.
175
f30992d4
AC
1762003-09-30 Andrew Cagney <cagney@redhat.com>
177
178 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
179 REGISTER_VIRTUAL_SIZE.
180 * gdbarch.h, gdbarch.c: Regenerate.
181 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
182 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
183 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
184
2e092625
AC
1852003-09-29 Andrew Cagney <cagney@redhat.com>
186
187 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
188 DEPRECATED_REGISTER_VIRTUAL_TYPE.
189 * gdbarch.h, gdbarch.c: Regenerate.
190 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
191 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
192
193 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
194 * remote-vxmips.c (vx_read_register): Ditto.
195 * remote-vx68.c (vx_read_register): Ditto.
196 * gnu-nat.c (inf_validate_procs): Ditto.
197
7a5dd6ee
JB
1982003-09-29 J. Brobecker <brobecker@gnat.com>
199
200 * infcall.c (call_function_by_hand): Fix build failure
201 introduced in the previous change to this file.
202
1fe43d45
AC
2032003-09-29 Andrew Cagney <cagney@redhat.com>
204
205 * NEWS: Mention Objective-C.
206
e28a332c
JG
2072003-09-29 Jerome Guitton <guitton@act-europe.fr>
208
209 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
210 test if the register has been saved on the stack.
211 (arm_scan_prologue_cache): When analysing the instruction
212 "str lr, [sp, #-4]", save the address where lr has been stored.
213
9ff63c35
AC
2142003-09-28 Andrew Cagney <cagney@redhat.com>
215
7f5f525d
AC
216 * frame.c (frame_read_unsigned_register): Delete function.
217 * frame.h (frame_read_unsigned_register): Delete declaration.
218 * sparc-tdep.c (sparc_init_extra_frame_info): Use
219 get_frame_register_unsigned.
220 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
221 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
222 * d10v-tdep.c (d10v_print_registers_info): Ditto.
223
224 * frame.h (frame_read_register): Delete declaration.
225 * frame.c (frame_read_register): Delete function.
226 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
227 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
228 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
229 * mips-tdep.c (mips_register_to_value): Ditto.
230 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
231 * d10v-tdep.c (d10v_print_registers_info): Ditto.
232
233 * frame.c (frame_read_signed_register): Delete function.
234 (frame_read_unsigned_register): Update comments.
235 * frame.h (frame_read_signed_register): Delete declaration.
236 * h8300-tdep.c (h8300_print_register): Use
237 get_frame_register_signed.
238 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
239
9ff63c35
AC
240 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
241 Rename VALUE_RETURNED_FROM_STACK.
242 * infcmd.c (print_return_value): Update.
243 * infcall.c (call_function_by_hand): Update.
244
41d041d6
MK
2452003-09-28 Mark Kettenis <kettenis@gnu.org>
246
247 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
248 regcache argument and reverse the order of the other two
249 arguments. Remove local regcache variable. Determine
250 architecture from REGCACHE. Update comments.
251 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
252 reverse the order of the other two arguments. Remove local
253 regcache variable. Determine architecture from REGCACHE. Update
254 comments.
255 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
256 prototypes. Update comments.
257 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
258 comment.
259 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
260 Update.
261 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
262 * i386-interix-nat.c (supply_fpregset): Update.
263 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
264 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
265 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
266 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
267 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
268 Update.
269 * i386obsd-tdep.c (fetch_core_registers): Update.
270 * i386v4-nat.c (supply_fpregset): Update.
271 * x86-64-linux-nat.c (supply_fpregset): Update.
272 * x86-64-linux-tdep.c (fetch_core_registers): Update.
273
1cb97e17
MK
2742003-09-27 Mark Kettenis <kettenis@gnu.org>
275
5716833c
MK
276 * i386-tdep.h: Put opaque declarations in alphabetical
277 order. Remove spurious whitespace.
278 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
279 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
280 * i386-tdep.c (MM0_REGNUM): Remove define.
281 (i386_mmx_regnum_p): Add gdbarch argument.
282 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
283 Rewrite using new macro definitions for FPU/SSE registers.
284 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
285 definitions from i387-tdep.h.
286 (i386_register_name): Update.
287 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
288 new macro definitions for FPU/SSE registers.
289 (i386_extract_return_value): Determine whether floating-point
290 registers are present by examining REGCACHE's architecture.
291 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
292 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
293 FPU/SSE registers.
294 (i386_register_type): Update.
295 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
296 definitions for FPU registers. Use REGCACHE's architecture to
297 determine the appropriate register numbers.
298 (i386_pseudo_register_read, i386_pseudo_register_write,
299 i386_register_reggroup_p): Update.
300 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
301 TDEP->mm0_regnum.
302 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
303 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
304 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
305 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
306 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
307 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
308 *' to `void *'.
309 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
310 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
311 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
312 definitions for FPU/SSE registers.
313 (FXSAVE_MXCSR_ADDR): New define.
314 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
315 TDEP->mm0_regnum.
316 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
317 (I387_ST0_REGNUM): Define.
318
41d35cb0
MK
319 * regcache.h (get_regcache_arch): New prototype.
320 * regcache.c (get_regcache_arch): New function.
321
54e74f72
MK
322 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
323 whitespace.
324
1cb97e17
MK
325 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
326 Initialize using ARRAY_SIZE.
327
0968aa8c
AC
3282003-09-27 Andrew Cagney <cagney@redhat.com>
329
330 * arch-utils.c (deprecated_init_frame_pc_default): Rename
331 "init_frame_pc_default".
332 * arch-utils.h (deprecated_init_frame_pc_default): Update.
333 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
334 * vax-tdep.c (vax_gdbarch_init): Update.
335 * v850-tdep.c (v850_gdbarch_init): Update.
336 * sh64-tdep.c (sh64_gdbarch_init): Update.
337 * s390-tdep.c (s390_gdbarch_init): Update.
338 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
339 * mcore-tdep.c (mcore_gdbarch_init): Update.
340 * h8300-tdep.c (h8300_gdbarch_init): Update.
341 * cris-tdep.c (cris_gdbarch_init): Update.
342 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
343
54c84734
MK
3442003-09-26 Mark Kettenis <kettenis@gnu.org>
345
346 * regset.h: New file.
347 * Makefile.in (regset_h): Add.
348
1b1d3794
AC
3492003-09-25 Andrew Cagney <cagney@redhat.com>
350
351 * frame.h (deprecated_frame_saved_regs): Rename
352 get_frame_saved_regs.
353 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
354 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
355 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
356 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
357 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
358
e6beb428
AC
3592003-09-25 Andrew Cagney <cagney@redhat.com>
360
361 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
362 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
363 and Java.
364 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
365 arm*-*-* do not use the new frame code.
366
710122da
DC
3672003-09-25 David Carlton <carlton@kealia.com>
368
369 * c-exp.y: Remove 'register' declarations.
370 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
371
79c2c32d
DC
3722003-09-25 David Carlton <carlton@kealia.com>
373
374 * c-exp.y: Include cp-support.h. Add qualified_type.
375 (yylex): Delete nested type hack; add comments.
376 * cp-namespace.c (cp_lookup_nested_type): New function.
377 * cp-support.h: Declare cp_lookup_nested_type.
378 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
379 instead of value_struct_elt_for_reference.
380 * valops.c: Include cp-support.h.
381 (value_aggregate_elt): New function.
382 (value_namespace_elt): Ditto.
383 (value_struct_elt_for_reference): Make static.
384 * value.h: Delete declaration of value_struct_elt_for_reference;
385 add declaration for value_aggregate_elt.
386 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
387 (valops.o): Ditto.
388
898c62f5
DJ
3892003-09-25 Daniel Jacobowitz <drow@mvista.com>
390
391 * stack.c: Include "reggroups.h".
392 (frame_info): Only display registers in all_reggroup.
393 * Makefile.in (stack.o): Update dependencies.
394
28cd8767
JG
3952003-09-25 Jerome Guitton <guitton@act-europe.fr>
396
397 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
398 "add ip, sp #n" in the prologue.
399 (arm_scan_prologue): Ditto.
400
a4ab2b5d
JG
4012003-09-25 Jerome Guitton <guitton@act-europe.fr>
402
403 * MAINTAINERS (write after approval): Add myself.
404
3f244638
AS
4052003-09-25 Andreas Schwab <schwab@suse.de>
406
407 * m68k-tdep.c: Include "dwarf2-frame.h".
408 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
409 * Makefile.in (m68k-tdep.o): Update dependencies.
410
1c0159e0
CV
4112003-09-25 Corinna Vinschen <vinschen@redhat.com>
412
413 * sh-tdep.c (struct frame_extra_info): Remove.
414 (struct sh_frame_cache): New structure.
415 (GET_SOURCE_REG): New macro extracting source register of an opcode.
416 (GET_TARGET_REG): Ditto but target register.
417 (GET_PUSHED_REG): Remove.
418 (IS_MOV_ARG_TO_REG): New macro.
419 (IS_MOV_ARG_TO_IND_R14): New macro.
420 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
421 (IS_MOVW_PCREL_TO_REG): New macro.
422 (IS_MOVL_PCREL_TO_REG): New macro.
423 (IS_SUB_REG_FROM_SP): New macro.
424 (IS_ARG_MOV): Remove.
425 (IS_MOV_TO_R14): Remove.
426 (IS_RESTORE_FP): New macro.
427 (IS_RTS): New macro.
428 (IS_LDS): New macro.
429 (IS_MOV_FP_SP): New macro.
430 (IS_ADD_REG_TO_FP): New macro.
431 (IS_ADD_IMM_FP): New macro.
432 (sh_skip_prologue_hard_way): Remove.
433 (sh_saved_pc_after_call): Remove.
434 (sh_frame_chain): Remove.
435 (sh_find_callers_reg): Remove.
436 (sh_nofp_frame_init_saved_regs): Remove.
437 (sh_fp_frame_init_saved_regs): Remove.
438 (sh_init_extra_frame_info): Remove.
439 (sh_analyze_prologue): New function.
440 (sh_skip_prologue): Remove deprecated code. Rely on new function
441 sh_analyze_prologue when after_prologue fails.
442 (sh_frame_saved_pc): Remove.
443 (sh_alloc_frame_cache): New function.
444 (sh_frame_cache): Ditto.
445 (sh_frame_prev_register): Ditto.
446 (sh_frame_this_id): Ditto.
447 (sh_frame_unwind): New structure defining the heuristic frame
448 sniffer interface.
449 (sh_frame_sniffer): New function.
450 (sh_unwind_sp): Ditto.
451 (sh_unwind_pc): Ditto.
452 (sh_unwind_dummy_id): Ditto.
453 (sh_frame_base_address): Ditto.
454 (sh_frame_base): New structure defining new frame base code.
455 (sh_in_function_epilogue_p): New function.
456 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
457 code and to call all new code instead. Initialize dwarf2 and
458 heuristic frame sniffer.
459
5f9769d1
PH
4602003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
461
462 * parser-defs.h (struct exp_descriptor): New definition, containing
463 language-specific info for printing, prefixifying, dumping, and
464 evaluating expressions.
465 (exp_descriptor_standard): Declare new variable.
466 (print_subexp): Make global and declare here (from expprint.c).
467 (dump_subexp): Ditto.
468 (dump_subexp_body_standard): Declare.
469 (operator_length_standard): Declare.
470 (op_name_standard): Declare.
471 (print_subexp): Declare.
472 (print_subexp_standard): Declare.
473
474 * language.h (struct language_defn): Add la_exp_desc field to hold
475 pointer to table for language-specific operators.
476 Remove evaluate_exp field, which is now in struct exp_descriptor.
477
478 * parse.c (operator_length): Move most code to new
479 operator_length_standard function. Use language-specific information.
480 (operator_length_standard): New function taking most code from
481 operator_length.
482 (exp_descriptor_standard): New constant.
483
484 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
485 and OP_EXTENDED_LAST.
486
487 * expprint.c (print_subexp): Use language-specific print_subexp.
488 Make global; remove static declaration.
489 Move most code to print_subexp_standard.
490 (print_subexp_standard): New function, containing code formerly in
491 print_subexp.
492 (op_name): Add expression to argument signature.
493 Use langauge-specific op_name.
494 Move most code to op_name_standard.
495 (op_name_standard): New function, containing code formerly in op_name.
496 (dump_subexp): Use new version of op_name function.
497 Use language-specific dump_subexp_body, and move most existing code to
498 dump_subexp_body_standard.
499 (dump_raw_expression): Use new op_name interface.
500 (dump_subexp_body): Move most code to dump_subexp_body_standard.
501 (dump_subexp_body_standard): New function, containing code formerly
502 in dump_subexp_body.
503
504 * language.c (unknown_language): Add default la_exp_desc field and
505 remove evaluate_exp field.
506 (auto_language): Ditto.
507 (local_language): Ditto.
508 * f-lang.c (f_language_defn): Ditto.
509 * c-lang.c (c_language_defn): Ditto.
510 (cplus_language_defn): Ditto.
511 (asm_language_defn): Ditto.
512 (minimal_language_defn): Ditto.
513 * p-lang.c (pascal_language_defn): Ditto.
514 * m2-lang.c (m2_language_defn): Ditto.
515 * objc-lang.c (objc_language_defn): Ditto.
516
517 * jv-lang.c (exp_descriptor_java): New variable, containing
518 Java-specific expression evaluator.
519 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
520 field.
521 * scm-lang.c (exp_descriptor_scm): New variable, containing
522 Scheme-specific expression evaluator.
523 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
524 field.
525 * objc-lang.c (print_object_command): Take evaluate_exp from the
526 la_exp_desc field.
527
528 * Makefile.in (eval.o): Add dependency on parser-defs.h.
529
530 * eval.c: Include parser-defs.h for the full declaration of
531 la_exp_desc's type.
532 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
533
24daaebc
PH
5342003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
535
536 * parser-defs.h (operator_length): Declare.
537
538 * parse.c (length_of_subexp): Use operator_length to get operator
539 lengths and arities for operators.
540 Move most code to new operator_length function.
541 (operator_length): New function absorbing most code from
542 length_of_subexp.
543 (prefixify_subexp): Remove large case and use operator_length instead.
544 (parse_exp_1): Use renamings:
545 dump_prefix_expression => dump_raw_expression and
546 dump_postfix_expression => dump_prefix_expression.
547
548 * expression.h (dump_prefix_expression): Rename to ...
549 (dump_raw_expression): New name.
550 (dump_postfix_expression): Rename to ...
551 (dump_prefix_expression): New name.
552
553 * expprint.c (dump_subexp): Make global. Add comment.
554 Move most existing code to dump_subexp_body.
555 (dump_subexp_body): New function.
556 (dump_prefix_expression): Rename to dump_raw_expression.
557 Remove attempt to print the expression via print_expression: it can't
558 work before the expression is prefixified.
559 (dump_raw_expression): Renamed from dump_prefix_expression.
560 (dump_postfix_expression): Rename to dump_prefix_expression, since
561 that's what it does.
562 Remove 'note' parameter, since this routine must be used on
563 prefixified expression.
564 (dump_prefix_expression): Renamed from dump_postfix_expression.
565
8c2957c4
JB
5662003-09-22 Jim Blandy <jimb@redhat.com>
567
568 * dwarf2read.c (read_array_type): When building the type for an
569 array of unspecified length, make sure to choose the upper bound
570 so that the array's total length comes out to be zero --- that's
571 how we represent such arrays.
572
592e3010
MC
5732003-09-22 Michael Chastain <mec@shout.net>
574
575 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
576
365c70b1
JJ
5772003-09-22 Jeff Johnston <jjohnstn@redhat.com>
578
579 * top.c (quit_force): Fix indirect call to quit_target so
580 a struct qt_args pointer is passed.
581
5d6eb653
AC
5822003-09-22 Andrew Cagney <cagney@redhat.com>
583
584 * arch-utils.h (init_frame_pc_noop): Delete declaration.
585 * arch-utils.c (init_frame_pc_noop): Delete function.
586 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
587 "init_frame_pc".
588 * mips-tdep.c (mips_gdbarch_init): Ditto.
589 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
590 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
591 declaration.
592 (DEPRECATED_INIT_FRAME_PC): Delete macro.
593 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
594 declaration.
595 (DEPRECATED_INIT_FRAME_PC): Delete macro.
596
b222a67f
AG
5972003-09-22 Anthony Green <green@redhat.com>
598
599 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
600 declaration.
601
d5b5ac79
AC
6022003-09-20 Andrew Cagney <cagney@redhat.com>
603
deafb061
AC
604 * breakpoint.c: Eliminate ARGSUSED.
605 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
606 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
607 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
608 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
609 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
610 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
611 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
612 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
613 * wince.c, remote-vx.c: Ditto.
614
d5b5ac79
AC
615 * cli/cli-script.c: Remove "register" attributes.
616 * config/pa/tm-hppa.h: Ditto.
617 * cli/cli-decode.c: Ditto.
618 * cli/cli-cmds.c: Ditto.
619
c6316faa
AC
6202003-09-19 Andrew Cagney <cagney@redhat.com>
621
622 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
623 DEPRECATED_NPC_REGNUM.
624 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
625
f4f99b11
CF
6262003-09-19 Christopher Faylor <cgf@redhat.com>
627
628 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
629
1708f284
JB
6302003-09-19 Jim Blandy <jimb@redhat.com>
631
632 * macrotab.c (macro_include): Use the correct comparison to find
633 the appropriate place for this inclusion in the list.
634
b9fbf434
AC
6352003-09-19 Andrew Cagney <cagney@redhat.com>
636
637 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
638 (DEPRECATED_HPUX_TEXT_END): Define.
639 (deprecated_hpux_text_end): Declare.
640 (struct target_ops): Declare opaque.
641 * hppah-nat.c (text_end): Make static.
642 (deprecated_hpux_text_end): New function.
643 * exec.c (text_end): Delete global variable.
644 (NEED_TEXT_START_END): Do not define.
645 (exec_file_attach): Replace code computing "text_end" code with
646 call to DEPRECATED_HPUX_TEXT_END.
647
5b03f266
AC
6482003-09-19 Andrew Cagney <cagney@redhat.com>
649
650 * utils.c (align_up, align_down): New functions.
651 * defs.h (align_up, align_down): Declare.
652 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
653 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
654 and "align_down".
655 (round_up, round_down): Delete functions.
656 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
657 "align_down".
658 (ROUND_DOWN, ROUND_UP): Delete macros.
659 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
660 * h8300-tdep.c: Replace "round_up" and "round_down" with
661 "align_up" and "align_down".
662 (round_up, round_down): Delete macros.
663 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
664 "align_down".
665 (ROUND_UP, ROUND_DOWN): Delete macros.
666
51db5742
JB
6672003-09-18 J. Brobecker <brobecker@gnat.com>
668
669 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
670 hard-coded constant. Use the proper machine name instead.
671
77949794
AC
6722003-09-17 Andrew Cagney <cagney@redhat.com>
673
674 * sparc-tdep.c (legacy_register_name): Delete function.
675 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
676 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
677 * infcmd.c (gdb_register_name): Delete variable.
678 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
679 REGISTER_NAME and "tm.h".
680 * gdbarch.h, gdbarch.c: Regenerate.
681 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
682 REGISTER_NAMES in comments.
683 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
684 * m68klinux-nat.c (regmap): Ditto.
685
b55c33cc
JB
6862003-09-17 Jim Blandy <jimb@redhat.com>
687
688 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
689
957e27ac
AC
6902003-09-17 Andrew Cagney <cagney@redhat.com>
691
692 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
693 (ppcnbsd_init_abi): Set "use_struct_convention" to
694 "ppcnbsd_use_struct_convention".
695
192cb3d4
MK
6962003-09-17 Mark Kettenis <kettenis@gnu.org>
697
698 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
699 * gdbarch.h, gdbarch.c: Regenerate.
700 (stabs_argument_has_addr): New architecture method.
701 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
702 * arch-utils.c: Include "buildsym.h".
703 (default_stabs_argument_has_addr): New function.
704 * stabsread.c (define_symbol): Use stabs_argument_has_addr
705 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
706
efe59759
AC
7072003-09-17 Andrew Cagney <cagney@redhat.com>
708
709 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
710 * gdbarch.h, gdbarch.c: Regenerate.
711 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
712 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
713 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
714 * sparcnbsd-tdep.c: Update.
715
62700349
AC
7162003-09-17 Andrew Cagney <cagney@redhat.com>
717
718 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
719 * gdbarch.h, gdbarch.c: Regenerate.
720 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
721 * d10v-tdep.c, frame.c: Update.
722 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
723 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
724 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
725 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
726 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
727 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
728 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
729 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
730 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
731 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
732 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
733 * config/pa/nm-hppah.h: Update.
734
b9ff3018
AC
7352003-09-16 Andrew Cagney <cagney@redhat.com>
736
737 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
738 "use_struct_convention" to "ppc_linux_use_struct_convention".
739 (ppc_linux_use_struct_convention): New function.
740 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
741 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
742 "rs6000_use_struct_convention".
743 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
744 declaration.
745 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
746 Delete function.
747
aa1ee363
AC
7482003-09-16 Andrew Cagney <cagney@redhat.com>
749
750 * buildsym.c: Remove more occurances of "register".
751 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
752 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
753 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
754 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
755 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
756 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
757 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
758 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
759
f2ea0907
CV
7602003-09-16 Corinna Vinschen <vinschen@redhat.com>
761
762 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
763 numbers to enumeration values.
764 * sh-tdep.c: Accomodate above change.
765 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
766 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
767 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
768 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
769 (IS_FPUSH): Rename from IS_FMOV.
770 (sh_extract_struct_value_address): Remove useless comment.
771 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
772 instead of own local values.
773 (sh_dump_tdep): Remove.
774 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
775 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
776
1c704f11
AC
7772003-09-15 Andrew Cagney <cagney@redhat.com>
778
779 * doublest.c (convert_floatformat_to_doublest): No longer need to
780 cast "exp_bias" to an int. Reverts 2002-12-04 change.
781
ac79b88b
DJ
7822003-09-15 Daniel Jacobowitz <drow@mvista.com>
783
784 * values.c (unpack_double): Call floatformat_is_valid.
785
1c671366
MK
7862003-09-15 Mark Kettenis <kettenis@gnu.org>
787
de5227fb
MK
788 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
789 ps_strings into a long.
790
1c671366
MK
791 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
792 _initialize_am64fbsd_nat.
793
a604369a
KB
7942003-09-15 Kevin Buettner <kevinb@redhat.com>
795
796 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
797 associated with DW_AT_ranges attribute is out of bounds.
798
b3cacbee
DL
7992003-09-15 David Lecomber <dsl@sources.redhat.com>
800
801 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
802
d0f37bb2
MC
8032003-09-14 Michael Chastain <mec@shout.net>
804
805 * config/m68k/nm-apollo68v.h: Delete.
806 * config/m68k/xm-apollo68v.h: Delete.
807
69517000
AC
8082003-09-14 Andrew Cagney <cagney@redhat.com>
809
810 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
811 * dcache.c: Update copyrights and descriptions.
812 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
813
ef8b349d
AC
8142003-09-14 Andrew Cagney <cagney@redhat.com>
815
816 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
817 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
818
52f0bd74
AC
8192003-09-14 Andrew Cagney <cagney@redhat.com>
820
821 * alpha-nat.c: Remove some occurances of "register".
822 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
823 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
824 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
825 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
826 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
827 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
828 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
829 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
830 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
831 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
832 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
833 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
834 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
835 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
836 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
837 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
838 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
839 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
840 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
841 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
842 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
843 * values.c, vax-tdep.c, xcoffread.c: Ditto.
844
4a4b3fed
AC
8452003-09-13 Andrew Cagney <cagney@redhat.com>
846
847 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
848 * ppc-tdep.h (struct regcache): Declare opaque.
849 * objfiles.h (struct objfile_data): Declare opaque.
850 * cp-support.h (struct objfile): Declare opaque.
851 * linux-nat.h (target_waitstatus): Declare opaque.
852
2110b94f
MK
8532003-09-14 Mark Kettenis <kettenis@gnu.org>
854
1c671366
MK
855 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
856 (stabs_argument_has_addr): New architecture method.
857 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
858 * arch-utils.c: Include "buildsym.h".
859 (default_stabs_argument_has_addr): New function.
860 * stabsread.c (define_symbol): Use stabs_argument_has_addr
861 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
862
2110b94f
MK
863 * cris-tdep.c (cris_gdbarch_init): Set
864 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
865 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
866 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
867 * mips-tdep.c (mips_gdbarch_init): Likewise.
868 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
869 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
870
48436ce6
AC
8712003-09-13 Andrew Cagney <cagney@redhat.com>
872
873 * values.c (using_struct_return): Delete "function" and "funcaddr"
874 parameters.
875 * value.h (using_struct_return): Update declaration.
876 * infcmd.c (finish_command_continuation): Update.
877 (finish_command): Update.
878 * infcall.c (call_function_by_hand): Update.
879 * eval.c (evaluate_subexp_standard): Update.
880
403d9909
CF
8812003-09-13 Christopher Faylor <cgf@redhat.com>
882
883 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
884 SSE registers since gdb will not operate correctly without this.
885 Restore include file ordering munged in previous change.
886 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
887
ebf7d56b
MK
8882003-09-13 Mark Kettenis <kettenis@gnu.org>
889
8e823e25
MK
890 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
891 REG_STRUCT_HAS_ADDR.
892 * gdbarch.c, gdbarch.h: Updated.
893 * infcall.c (call_function_by_hand): Update.
894 * stabsread.c (define_symbol): Updated.
895
ebf7d56b
MK
896 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
897
d3f13f72
CF
8982003-09-12 Christopher Faylor <cgf@redhat.com>
899
900 * win32-nat.c: Reorganize so that defines used by target headers are
901 actually defined by the system headers.
902 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
903 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
904
14f75137
JB
9052003-09-12 Jim Blandy <jimb@redhat.com>
906
d646061f
JB
907 * dbxread.c (read_dbx_symtab): Don't report an internal error if
908 the file has no .data, .bss, or .rodata sections. Instead wait
909 until we see a variable alleged to live in one of those sections.
910
2a13f9bc
JB
911 * dbxread.c (read_dbx_symtab): If we have no .data section and no
912 .bss section, presume that any variables we find live in the
913 .rodata section.
914
4f49b26b
JB
915 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
916 offsets for global and static variables.
917
14f75137
JB
918 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
919 symbol types are, by definition, in the .data section, so it is
920 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
921 If there is no .data section, there should be no N_DATA or N_DATA
922 | N_EXT symbols.
923
212c460c
MK
9242003-09-12 Mark Kettenis <kettenis@gnu.org>
925
926 * amd64fbsd-tdep.c: Fix sigtramp recognition.
927 (amd64fbsd_sigcontext_addr): Rewrite.
928 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
929 with correct values.
930 (amd64fbsd_sc_reg_offset): Initialize with correct values.
931 (amd64fbsd_init_abi): Fix typo.
932
68856ea3
AC
9332003-09-12 Andrew Cagney <cagney@redhat.com>
934
935 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
936 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
937
627b3ba2
AC
9382003-09-12 Andrew Cagney <cagney@redhat.com>
939
940 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
941 "entry_file_highpc". Update comments.
942 * defs.h (deprecated_inside_entry_file): Rename
943 "inside_entry_file".
944 * blockframe.c (deprecated_inside_entry_file): Rename
945 "inside_entry_file".
946 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
947 * vax-tdep.c (vax_frame_chain): Update.
948 * sh64-tdep.c (sh64_frame_chain): Update.
949 * sh-tdep.c (sh_frame_chain): Update.
950 * rs6000-tdep.c (rs6000_frame_chain): Update.
951 * ns32k-tdep.c (ns32k_frame_chain): Update.
952 * mips-tdep.c (mips_frame_chain): Update.
953 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
954 * m32r-tdep.c (m32r_frame_this_id): Update.
955 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
956 * frv-tdep.c (frv_frame_this_id): Update.
957 * d10v-tdep.c (d10v_frame_this_id): Update.
958 * cris-tdep.c (cris_frame_chain): Update.
959 * blockframe.c (legacy_frame_chain_valid): Update.
960 * avr-tdep.c (avr_frame_this_id): Update.
961 * arm-tdep.c (arm_prologue_this_id): Update.
962 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
963 * objfiles.c (objfile_relocate): Update.
964 * mipsread.c (mipscoff_symfile_read): Update.
965 (mipscoff_symfile_read): Update.
966 * mdebugread.c (parse_partial_symbols): Update.
967 * dwarfread.c (read_file_scope): Update.
968 * dwarf2read.c (read_file_scope): Update.
969 * dbxread.c (read_dbx_symtab): Update.
970 (read_dbx_symtab): Update.
971 * coffread.c (complete_symtab): Update.
972
b0abbc58
JJ
9732003-09-12 Jeff Johnston <jjohnstn@redhat.com>
974
975 * top.c (quit_target): New static helper function.
976 (quit_force): Moved code to quit_target(). Call quit_target()
977 via catch_errors() to catch errors during quit.
978
a1632d59
DC
9792003-09-11 David Carlton <carlton@kealia.com>
980
981 * buildsym.c (finish_block): Use allocate_block to allocate the
982 block.
983 * mdebugread.c (new_block): Add FIXME.
984
5c4e30ca
DC
9852003-09-11 David Carlton <carlton@kealia.com>
986
987 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
988 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
989 (recursive_dump_type): Ditto.
990 * printcmd.c (print_formatted): Ditto.
991 * typeprint.c (print_type_scalar): Ditto.
992 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
993 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
994 * cp-support.h: Declare cp_check_possible_namespace_symbols,
995 maint_cplus_cmd_list.
996 * cp-support.c: Make maint_cplus_cmd_list extern.
997 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
998 command.h.
999 (lookup_symbol_file): Look in possible namespace blocks when
1000 appropriate.
1001 (initialize_namespace_symtab): New.
1002 (get_possible_namespace_block, free_namespace_block)
1003 (check_possible_namespace_symbols)
1004 (check_possible_namespace_symbols_loop)
1005 (check_one_possible_namespace_symbol)
1006 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1007 (_initialize_cp_namespace): Ditto.
1008 * block.h: Declare allocate_block.
1009 * block.c (allocate_block): New.
1010 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1011 allocate_block.
1012 * symfile.h: Update declaration of add_psymbol_to_list.
1013 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1014 question.
1015 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1016 scan_partial_symbols_call.
1017 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1018 helper functions.
1019 (add_partial_symbol): If necessary, scan mangled names for names
1020 of namespaces.
1021 (add_partial_namespace): Add NAMESPACE argument; generate partial
1022 symbols associated to namespaces.
1023 (add_partial_enumeration): Add NAMESPACE argument.
1024 (new_symbol): Allow namespace syms.
1025 (read_namespace): Generate namespace syms.
1026 * objfiles.h: Add opaque declaration of struct symtab.
1027 (struct objfile): Add cp_namespace_symtab member.
1028 * objfiles.c (allocate_objfile): Set
1029 objfile->cp_namespace_symtab.
1030 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1031 dictionary_h, command_h.
1032
33a7c2fc
AC
10332003-09-11 Andrew Cagney <cagney@redhat.com>
1034
1035 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1036 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1037 near the function's end.
1038 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1039 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1040 regcache_raw_write_signed to set SP_REGNUM.
1041
63cd24fe
EZ
10422003-09-11 Elena Zannoni <ezannoni@redhat.com>
1043
1044 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1045 orig_addrs is set up properly.
1046
f27dd7fd
AC
10472003-09-11 Andrew Cagney <cagney@redhat.com>
1048
1049 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1050 * gdbarch.h, gdbarch.c: Re-generate.
1051 * infcall.c (call_function_by_hand): Update.
1052 * hppa-tdep.c (hppa_push_arguments): Update.
1053 * ada-lang.c (place_on_stack): Update.
1054 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1055 * sparc-tdep.c (sparc_gdbarch_init): Update.
1056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1057 * hppa-tdep.c (hppa_gdbarch_init): Update.
1058 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1059 stack_align.
1060
f630a401
DJ
10612003-09-11 Daniel Jacobowitz <drow@mvista.com>
1062
1063 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1064 register do need a frame.
1065
0ddabb4c
AC
10662003-09-11 Andrew Cagney <cagney@redhat.com>
1067
1068 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1069 buildable since GDB 5.0.
1070 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1071 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1072 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1073 * irix4-nat.c: Delete file.
1074 * config/mips/irix4.mh: Delete file.
1075 * config/mips/irix3.mh: Delete file.
1076 * config/mips/irix3.mt: Delete file.
1077 * config/mips/tm-irix3.h: Delete file.
1078 * config/mips/nm-irix3.h: Delete file.
1079 * config/mips/xm-irix3.h: Delete file.
1080 * config/mips/nm-irix4.h: Delete file.
1081 * config/mips/xm-irix4.h: Delete file.
1082 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1083
fde2cceb
JB
10842003-09-10 J. Brobecker <brobecker@gnat.com>
1085
1086 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1087 * Makefile.in (hppa-tdep.o): Update dependencies.
1088
66f667f5
JW
10892003-09-10 James E Wilson <wilson@specifixinc.com>
1090
ef5fd69f
JW
1091 * MAINTAINERS: Change my e-mail address. Move to paper trail
1092 section.
66f667f5 1093
53e8aaea
KB
10942003-09-10 Kevin Buettner <kevinb@redhat.com>
1095
1096 * MAINTAINERS (frv): New ISA entry.
1097
dcc6aaff
KB
10982003-09-10 Kevin Buettner <kevinb@redhat.com>
1099
1100 * frv-tdep.c (dis-asm.h): Include.
1101 * Makefile.in (frv-tdep.o): Update dependencies.
1102
932644f0
JJ
11032003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1104
1105 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1106 Fix typo for high range of floating registers.
1107
91c24f0a
DC
11082003-09-09 David Carlton <carlton@kealia.com>
1109
1110 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1111 highpc initialization here out of scan_partial_symbols.
1112 (scan_partial_symbols): Restructure into a recursive version,
1113 calling add_partial_namespace and add_partial_enumeration when
1114 appropriate.
1115 (add_partial_namespace): New.
1116 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1117
c9263853
AC
11182003-09-09 Andrew Cagney <cagney@redhat.com>
1119
e56a0ecc
AC
1120 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1121 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1122 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1123 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1124
794a477a
AC
1125 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1126 (rs6000_push_dummy_call): Set the "TOC" register.
1127
c9263853
AC
1128 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1129 methods "max_register_raw_size", "max_register_virtual_size" or
1130 "register_virtual_size".
1131
afa7d0b2
ILT
11322003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1133
1134 * MAINTAINERS: Update my e-mail address.
1135
7a41266b
AC
11362003-09-09 Andrew Cagney <cagney@redhat.com>
1137
1138 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1139 (rs6000_push_dummy_call): Store the struct return address.
1140 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1141
77b2b6d4
AC
11422003-09-09 Andrew Cagney <cagney@redhat.com>
1143
1144 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1145 "ppc_sysv_abi_push_arguments".
1146 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1147 "ppc_sysv_abi_push_arguments".
1148 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1149 instead of "push_arguments".
1150 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1151
e8a7b686
AC
11522003-09-09 Andrew Cagney <cagney@redhat.com>
1153
1154 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1155 instead of CALL_DUMMY_ADDRESS.
1156
f86f5ca3
PH
11572003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1158
1159 * p-lang.c: Eliminate "register".
1160 * c-lang.c: Ditto.
1161 * expprint.c: Ditto.
1162 * f-lang.c: Ditto.
1163 * jv-lang.c: Ditto.
1164 * language.c: Ditto.
1165 * m2-lang.c: Ditto.
1166 * parse.c: Ditto.
1167 * scm-lang.c: Ditto.
1168 * objc-lang.c: Ditto.
1169
83ee270e
NC
11702003-09-09 Nick Clifton <nickc@redhat.com>
1171
1172 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1173
a89aa300
AC
11742003-09-04 Andrew Cagney <cagney@redhat.com>
1175
1176 * avr-tdep.c: Include "dis-asm.h".
1177 * cris-tdep.c: Include "dis-asm.h".
1178 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1179 instead of corresponding typedef.
1180 * h8300-tdep.c: Include "dis-asm.h".
1181 * ia64-tdep.c: Include "dis-asm.h".
1182 * i386-tdep.c: Include "dis-asm.h".
1183 (i386_print_insn): Use "struct disassemble_info" instead of
1184 corresponding typedef.
1185 * m68k-tdep.c: Include "dis-asm.h".
1186 * mcore-tdep.c: Include "dis-asm.h".
1187 * mips-tdep.c: Include "dis-asm.h".
1188 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1189 instead of corresponding typedef.
1190 * ns32k-tdep.c: Include "dis-asm.h".
1191 * s390-tdep.c: Include "dis-asm.h".
1192 * sparc-tdep.c: Include "dis-asm.h".
1193 * vax-tdep.c: Include "dis-asm.h".
1194 * v850-tdep.c: Include "dis-asm.h".
1195 * mn10300-tdep.c: Include "dis-asm.h".
1196 * rs6000-tdep.c: Include "dis-asm.h".
1197 * xstormy16-tdep.c: Include "dis-asm.h".
1198 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1199 print_insn_xstormy16.
1200 * Makefile.in (v850-tdep.o): Update dependencies.
1201 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1202 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1203 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1204 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1205 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1206 (gdbarch_h): Remove $(dis_asm_h).
1207 * disasm.c: Include "dis-asm.h".
1208 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1209 corresponding typedef.
1210 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1211 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1212 * gdbarch.sh: Do not include "dis-asm.h".
1213 (struct disassemble_info): Declare opaque.
1214 (TARGET_PRINT_INSN): Update declaration.
1215 * gdbarch.h, gdbarch.c: Re-generate.
1216
88a82a65
AC
12172003-09-08 Andrew Cagney <cagney@redhat.com>
1218
1219 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1220 CALL_DUMMY_ADDRESS, change to a predicate.
1221 * gdbarch.h, gdbarch.c: Re-generate.
1222 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1223 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1224 * infcall.c (call_function_by_hand): Ditto.
1225 * sparc-tdep.c (sparc_push_return_address): Ditto.
1226 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1227 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1228 CALL_DUMMY_ADDRESS with entry_point_address.
1229 * v850-tdep.c (v850_push_return_address): Ditto.
1230 * s390-tdep.c (s390_push_return_address): Ditto.
1231 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1232 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1233 * mcore-tdep.c (mcore_push_return_address): Ditto.
1234 * cris-tdep.c (cris_push_return_address): Ditto.
1235 * arm-tdep.c (arm_push_return_address): Ditto.
1236
3e2c4033
AC
12372003-09-08 Andrew Cagney <cagney@redhat.com>
1238
1239 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1240 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1241 and REG_UNMODIFIED to REG_SAME_VALUE.
1242 (execute_cfa_program): Update.
1243 (dwarf2_frame_cache): Update. Initialize table to
1244 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1245 location.
1246 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1247
39efb398
AC
12482003-09-08 Andrew Cagney <cagney@redhat.com>
1249
1250 * gnu-nat.c: Remove "inline" function attribute.
1251 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1252
f5cb5aca
KB
12532003-09-08 Kevin Buettner <kevinb@redhat.com>
1254
1255 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1256 target.
1257
1cb761c7
KB
12582003-09-08 Kevin Buettner <kevinb@redhat.com>
1259
1260 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1261 (frame_extra_info): Rename this struct to frv_unwind_cache.
1262 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1263 Add fields ``prev_sp'' and ``base''.
1264 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1265 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1266 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1267 Delete.
1268 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1269 Revise all callers. Fill in the unwind cache argument and make
1270 other adjustments to account for new frame mechanisms.
1271 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1272 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1273 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1274 (frv_frame_unwind, frv_frame_base): New structs.
1275 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1276 additional arguments expected by this method and adjust function
1277 body accordingly.
1278 (frv_gdbarch_init): Remove calls to the following functions:
1279 set_gdbarch_deprecated_init_frame_pc(),
1280 set_gdbarch_deprecated_saved_pc_after_call(),
1281 set_gdbarch_deprecated_frame_chain(),
1282 set_gdbarch_deprecated_frame_saved_pc(),
1283 set_gdbarch_deprecated_frame_init_saved_regs(),
1284 set_gdbarch_deprecated_push_arguments(),
1285 set_gdbarch_deprecated_push_return_address(),
1286 set_gdbarch_deprecated_pop_frame(),
1287 set_gdbarch_deprecated_call_dummy_words(),
1288 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1289 set_gdbarch_deprecated_init_extra_frame_info(),
1290 set_gdbarch_deprecated_dummy_write_sp(), and
1291 set_gdbarch_deprecated_pc_in_call_dummy().
1292 Add calls to the following functions:
1293 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1294 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1295 frame_base_set_default().
1296 * Makefile.in (frv-tdep.o): Update dependencies.
1297
68f6cf99
MK
12982003-09-09 Mark Kettenis <kettenis@gnu.org>
1299
1300 * dwarf2-frame.c (read_encoded_value): Add support for
1301 DW_EH_PE_aligned encoding.
1302
73b65bb0
DJ
13032003-09-08 Daniel Jacobowitz <drow@mvista.com>
1304
1305 * infrun.c (normal_stop): Don't print a message if the inferior
1306 has exited.
1307
7c8a5605
JB
13082003-09-08 Jim Blandy <jimb@redhat.com>
1309
1310 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1311 * dbxread.c: #include "gdb_assert.h".
1312 (read_dbx_symtab): If the objfile has no .data section, use the
1313 section index for the .bss section instead.
1314
7dd88986
DJ
13152003-09-08 Daniel Jacobowitz <drow@mvista.com>
1316
1317 * frame.c (deprecated_safe_get_selected_frame): New function.
1318 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1319 * findvar.c (read_var_value): Call it.
1320
55ff77ac
CV
13212003-09-08 Corinna Vinschen <vinschen@redhat.com>
1322
1323 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1324 (sh64-tdep.o): Add dependencies.
1325 * configure.tgt: Add FIXME to sh-*-linux*.
1326 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1327 (sh_gdbarch_init): Always set correct sh_show_regs function
1328 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1329 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1330 * sh64-tdep.c: New file, containing all sh64 related code from
1331 sh-tdep.c.
1332 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1333 * config/sh/linux.mt (TDEPFILES): Ditto.
1334 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1335 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1336 * config/sh/wince.mt (TDEPFILES): Ditto.
1337
bfb39158
DJ
13382003-09-07 Daniel Jacobowitz <drow@mvista.com>
1339
1340 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1341 (stop_wait_callback): Handle !lp->signalled also.
1342 (lin_lwp_has_pending, flush_callback): New functions.
1343 (lin_lwp_wait): Call flush_callback.
1344 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1345 (linux_proc_pending_signals): New function.
1346 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1347
9407de8e
DJ
13482003-09-07 Daniel Jacobowitz <drow@mvista.com>
1349
1350 From Nick Kelsey <nickk@ubicom.com>:
1351 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1352 when the stop PC is at the beginning of a function also.
1353
2ef47cd0
DJ
13542003-09-06 Daniel Jacobowitz <drow@mvista.com>
1355
1356 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1357 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1358
6f4492c8
MK
13592003-09-06 Mark Kettenis <kettenis@gnu.org>
1360
1361 * sol-thread.c: Include "gdb_string.h".
1362
d3420b2f
MK
13632003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1364
1365 * gcore.c: Reorder include files in alphabetical order. Include
1366 "gdb_assert.h". Various coding style fixes.
1367 (derive_stack_segment, derive_heap_segment): Replace check for
1368 non-null BOTTOM and TOP with gdb_assert.
1369 (derive_heap_segment): Replace check for successful creation of
1370 ZERO with gdb_assert.
1371 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1372
5220ea4c
AC
13732003-09-04 Andrew Cagney <cagney@redhat.com>
1374
1375 * thread-db.c (verbose_dlsym): New function.
1376 (thread_db_load): Use verbose_dlsym
1377 (thread_db_new_objfile): Print that libthread_db was loaded, and
1378 that thread debugging was enabled.
1379
6e8c2c06
AC
13802003-09-04 Andrew Cagney <cagney@redhat.com>
1381
1382 * configure.tgt: Add "mips64*-*-*" target. Delete
1383 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1384 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1385 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1386 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1387 mips*-sony-*, and mips64*-*-elf* targets.
1388 * config/mips/embedl.mt: Delete file.
1389 * config/mips/embedl64.mt: Delete file.
1390 * config/mips/mips.mt: Delete file.
1391 * config/mips/mips64.mt: Delete file.
1392 * config/mips/tm-embed.h: Delete file.
1393 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1394 * config/mips/embed64.mt: Delete out-of-date comment.
1395
3a3bc038
AC
13962003-09-04 Andrew Cagney <cagney@redhat.com>
1397
1398 * hppa-tdep.c (hppa_gdbarch_init): Set
1399 "have_nonsteppable_watchpoint".
1400 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1401 * mips-tdep.c (mips_dump_tdep): Do not print
1402 HAVE_NONSTEPPABLE_WATCHPOINT.
1403 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1404 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1405 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1406 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1407
a957e642
CV
14082003-09-04 Corinna Vinschen <vinschen@redhat.com>
1409
1410 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1411 unused code. Add comment.
1412
a6fbcf2f
CV
14132003-09-04 Corinna Vinschen <vinschen@redhat.com>
1414
1415 * breakpoint.c (watchpoint_check): Check for pc being in an
1416 epilogue if watchpoint frame couldn't be found.
1417
c14a44d5
AC
14182003-09-04 Andrew Cagney <cagney@redhat.com>
1419
1420 * Makefile.in: Re-generate all dependencies.
1421
f6c40618
AC
14222003-09-03 Andrew Cagney <cagney@redhat.com>
1423
1424 * arch-utils.h (legacy_print_insn): Delete declaration.
1425 * arch-utils.c (legacy_print_insn): Delete function.
1426 * disasm.c (deprecated_tm_print_insn_info): Delete.
1427 (_initialize_disasm): Delete function, contained code initializing
1428 deprecated_tm_print_insn_info.
1429 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1430 (deprecated_tm_print_insn_info): Delete.
1431 (TARGET_PRINT_INSN): Do not provide a default.
1432 * gdbarch.h, gdbarch.c: Re-generate.
1433
242e8be5
AC
14342003-09-03 Andrew Cagney <cagney@redhat.com>
1435
1436 * disasm.c (fprintf_disasm): New function.
1437 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1438 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1439 reverts 2003-08-14 change.
1440 (_initialize_disasm): Call "init_disassemble_info", instead of
1441 INIT_DISASSEMBLE_INFO_NO_ARCH.
1442
3ffc3dda
MS
14432003-09-03 Michael Snyder <msnyder@redhat.com>
1444
1445 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1446
52d16ba8
AC
14472003-09-03 Andrew Cagney <cagney@redhat.com>
1448
1449 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1450 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1451 * symfile.c (syms_from_objfile): Update.
1452 (reread_symbols): `Update
1453 * exec.c (exec_file_attach): Update.
1454 (exec_file_attach): Update.
1455 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1456 2003-08-29 change.
1457 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1458
eb5492fa
DJ
14592003-09-03 Daniel Jacobowitz <drow@mvista.com>
1460
1461 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1462 trad-frame.h.
1463 (arm_get_cache): Delete macro.
1464 (struct arm_prologue_cache): Update comments. Make saved_regs into
1465 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1466 to prev_sp.
1467 (thumb_scan_prologue): Update for cache changes. Don't call
1468 DEPRECATED_PC_IN_CALL_DUMMY.
1469 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1470 argument and use it in desperation search for our prologue. Do not
1471 search past the specified PC.
1472 (arm_make_prologue_cache): Simplify.
1473
1474 (arm_prologue_this_id, arm_prologue_prev_register)
1475 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1476 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1477 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1478 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1479 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1480
1481 (arm_frame_chain_valid, arm_find_callers_reg)
1482 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1483 (arm_pop_frame): Delete obsolete methods.
1484 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1485
1486 (arm_gdbarch_init): Update for new frame methods. Register prologue
1487 and sigtramp unwinders. Set the default frame base method.
1488
1489 * Makefile.in (arm-tdep.o): Update dependencies.
1490 * varobj.c (find_frame_addr_in_frame_chain): Call
1491 get_frame_base_address.
1492 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1493
24de872b
DJ
14942003-09-03 Daniel Jacobowitz <drow@mvista.com>
1495
1496 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1497 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1498 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1499 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1500 Take NEXT_FRAME and CACHE arguments. Call
1501 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1502 Set unwound_pc in CACHE instead of modifying the frame argument.
1503 Don't bother checking the frame type when looking for sigtramp
1504 frames.
1505 (arm_make_prologue_cache, arm_frame_chain)
1506 (arm_init_extra_frame_info): New functions.
1507
9b8d791a
DJ
15082003-09-03 Daniel Jacobowitz <drow@mvista.com>
1509
1510 * arm-tdep.c (arm_get_cache): Define.
1511 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1512 unwound_sp, unwound_pc, and saved_regs.
1513 (thumb_scan_prologue): Take a cache instead of the frame.
1514 (arm_scan_prologue): Likewise.
1515 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1516 instead of a temporary frame.
1517 (arm_init_extra_frame_info): Allocate and use a cache.
1518 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1519
7ee3275f
AC
15202003-09-03 Andrew Cagney <cagney@redhat.com>
1521
1522 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1523 * config/mips/wince.mt (TM_CLIBS): Ditto.
1524 * config/sh/wince.mt (TM_CLIBS): Ditto.
1525 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1526 * config/sparc/sp64.mt (CC): Delete.
1527
57b29be7
AC
15282003-09-03 Andrew Cagney <cagney@redhat.com>
1529
1530 * defs.h: Do not include "arch-utils.h".
1531 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1532 GDB_MULTI_ARCH_PURE.
1533 * configure.in (GDB_MULTI_ARCH): Do not define.
1534 * configure, config.in: Regenerate.
1535 * configure.tgt: Do not set variable "gdb_multi_arch".
1536 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1537 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1538 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1539 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1540 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1541 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1542 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1543 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1544 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1545 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1546 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1547 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1548 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1549 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1550 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1551 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1552 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1553 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1554
12e035e2
MC
15552003-08-30 Michael Chastain <mec@shout.net>
1556
1557 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1558 * config/m68k/nm-hp300hpux.h: Delete.
1559 * config/m68k/tm-hp300hpux.h: Delete.
1560 * config/m68k/xm-hp300hpux.h: Delete.
1561 * config/m68k/xm-hp300bsd.h: Delete.
1562 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1563 tm-hp300hpux.h, xm-hp300hpux.h.
1564 * somsolib.c: Remove comment about hp300 shared libraries.
1565
bda34dc2
MK
15662003-08-31 Mark Kettenis <kettenis@gnu.org>
1567
5bca7895
MK
1568 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1569 Only define PTRACE_GET_THREAD_AREA is not already defined.
1570 Various style fixes in code and comments and some additional
1571 spelling fixes in comments. Move after functions dealing with
1572 debug registers.
1573 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1574 Fix coding-style.
1575
bda34dc2
MK
1576 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1577 frame_unwind_register_unsigned instead of
1578 frame_unwind_unsigned_register.
1579
c890192f
MK
15802003-08-30 Mark Kettenis <kettenis@gnu.org>
1581
1582 * configure.in: Search for gethostbyname in libnsl.
1583 * configure: Regenerated.
1584
60fac5b8
MK
15852003-08-29 Mark Kettenis <kettenis@gnu.org>
1586
e294916c
MK
1587 * configure.in: Remove redundant AC_MSG_RESULT in check for
1588 uintptr_t in stdint.h.
1589 * configure: Regenerated.
1590
c40d267a
MK
1591 * amd64-nat.h (struct regcache): Add opaque declaration.
1592
60fac5b8
MK
1593 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1594 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1595 Change "register array" to "register cache" in comments.
1596 (x86_64_linux_gregset64_reg_offset): New variable.
1597 (GETREGS_SUPPLIES): Remove macro.
1598 (supply_gregset): Call amd64_supply_native_gregset instead of
1599 x86_64_linux_supply_gregset.
1600 (fill_gregset): Rename `regno' to `regnum'. Call
1601 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1602 (store_regs): Rename `regno' to `regnum'.
1603 (store_fpregs): Rename `regno' to `regnum'.
1604 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1605 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1606 Reorganize function a bit.
1607 (store_inferior_registers): Rename `regno' to `regnum'. Use
1608 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1609 Reorganize function a bit.
1610 (_initialize_x86_64_linux_nat): New function.
1611 * config/i386/x86-64linux.mh.
1612
546143b6
AC
16132003-08-29 Andrew Cagney <cagney@redhat.com>
1614
1615 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1616 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1617 (target_remove_watchpoint): Delete macro.
1618 (target_insert_watchpoint): Delete macro.
1619 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1620 (remote_mips_stopped_by_watchpoint): Delete declaration.
1621 (remote_mips_remove_watchpoint): Delete declaration.
1622 (remote_mips_set_watchpoint): Delete declaration.
1623 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1624 * remote-mips.c (_initialize_remote_mips): Set
1625 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1626 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1627 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1628 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1629 (mips_stopped_by_watchpoint): Rename
1630 remote_mips_stopped_by_watchpoint.
1631 (mips_can_hardware_watchpoint): Rename
1632 remote_mips_can_use_hardware_watchpoint, update function
1633 signature.
1634
7bace51b
MK
16352003-08-29 Mark Kettenis <kettenis@gnu.org>
1636
b0f5c6f2
MK
1637 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1638 USER_DS. We haven't given them a register number yet.
1639
2a6d284d
MK
1640 * amd64-nat.h: New file.
1641 * amd64-nat.c: New file.
1642 * amd64fbsd-nat.c: Include "amd64-nat.h".
1643 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1644 (amd64fbsd32_r_reg_offset): New variable.
1645 (supply_gregset): Simply call amd64_supply_native_gregset.
1646 (fill_gregset): Rename `regno' to `regnum'. Simply call
1647 amd64_collect_native_gregset.
1648 (fill_fpregset): Rename `regno' to `regnum'.
1649 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1650 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1651 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1652 `fpregset_t'. Call amd64_supply_native_gregset instead of
1653 supply_gregset. Call x86_64_supply_fxsave instead of
1654 supply_fpregset.
1655 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1656 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1657 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1658 `fpregset_t'. Call amd64_collect_native_gregset instead of
1659 fill_gregset. Call x86_64_collect_fxsave instead of
1660 fill_fpregset.
1661 (_initialize_am64fbsd_nat): Initialize
1662 amd64_native_gregset32_reg_offset and
1663 amd64_native_gregset64_reg_offset.
1664 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1665
a16d75cc
MK
1666 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1667 null pointer. Fix typo in comment.
1668
7bace51b
MK
1669 * regcache.c (supply_register): Reimplement to call
1670 regcache_raw_supply.
1671 (regcache_collect): Reimplement by calling regcache_raw_collect.
1672
9a661b68
MK
16732003-08-28 Mark Kettenis <kettenis@gnu.org>
1674
1675 * regcache.c (register_buffer): Consitify first argument.
1676 (regcache_raw_supply, regcache_raw_collect): New
1677 functions.
1678
e94cc8fa
DJ
16792003-08-28 Daniel Jacobowitz <drow@mvista.com>
1680
1681 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1682 by Nathan J. Williams.
1683
c64bd0ce
DJ
16842003-08-28 Daniel Jacobowitz <drow@mvista.com>
1685
1686 * lin-lwp.c (wait_lwp): New function, copied from
1687 stop_wait_callback. Clean up.
1688 (stop_wait_callback): Use wait_lwp.
1689
e5ab0dce
AC
16902003-08-28 Andrew Cagney <cagney@redhat.com>
1691
1692 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1693 flavour and disassembler options.
1694 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1695 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1696 deprecated_tm_print_insn_info.
1697
a788de9b
AC
16982003-08-27 Andrew Cagney <cagney@redhat.com>
1699
1700 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1701 Use target_read_memory.
1702 (s390_get_frame_info): Update. Do not reference
1703 deprecated_tm_print_insn_info.
1704 (s390_check_function_end, s390_is_sigreturn): Ditto.
1705
36482093
AC
17062003-08-27 Andrew Cagney <cagney@redhat.com>
1707
1708 * Makefile.in (cris-tdep.o): Update dependencies.
1709 * cris-tdep.c: Include "gdb_assert.h".
1710 (cris_gdbarch_init): Set print_insn.
1711 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1712 (cris_delayed_get_disassembler): Simplify, directly call the
1713 disassembler returned by cris_get_disassembler.
1714 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1715 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1716 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1717 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1718 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1719 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1720 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1721 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1722 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1723 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1724 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1725 (gdb_print_insn_sparc): Delete function.
1726 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1727 deprecated_tm_print_insn_info.
1728 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1729 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1730 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1732 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1733 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1734 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1735 (s390_gdbarch_init): Set print_insn.
1736
0285512f
AC
17372003-08-27 Andrew Cagney <cagney@redhat.com>
1738
1739 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1740 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1741 * infcall.c (call_function_by_hand): Convert the entry point
1742 address into a code address.
1743
cdcd5552
AC
17442003-08-27 Andrew Cagney <cagney@redhat.com>
1745
1746 * dsrec.c: Include "gdb_string.h".
1747 * Makefile.in (dsrec.o): Update dependencies.
1748
e85cddad
MC
17492003-08-27 Michael Chastain <mec@shout.net>
1750
1751 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1752
8bbfbb23
AC
17532003-08-27 Andrew Cagney <cagney@redhat.com>
1754
1755 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1756 (alpha_osf1_init_abi): Do not set call_dummy_address.
1757
ba058b66
DC
17582003-08-27 David Carlton <carlton@kealia.com>
1759
1760 From Randolph Chung <tausq@debian.org>:
1761 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1762 compiles with -Wformat-nonliteral -Werror.
1763
87f84c9d
JB
17642003-08-26 Jim Blandy <jimb@redhat.com>
1765
1766 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1767 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1768 bfd_lookup_symbol, since we only want symbols in code sections.
1769 (look_for_base): Pass zero as the SECT_FLAGS argument to
1770 bfd_lookup_symbol, since we're not concerned about which section
1771 the symbol is in.
1772
102d615a
JJ
17732003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1774
1775 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1776 we are frameless or the return address register is already known.
1777
cc7ad3ea
AC
17782003-08-26 Andrew Cagney <cagney@redhat.com>
1779
1780 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1781 in size. Add comments.
1782
af8b88dd
JJ
17832003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1784
1785 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1786 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1787
e0a4f5a1
JM
17882003-08-26 Jason Merrill <jason@redhat.com>
1789
1790 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1791 case out of #ifdef MIPS block.
1792
4ae9ee8e
DJ
17932003-08-25 Daniel Jacobowitz <drow@mvista.com>
1794
1795 PR java/1322
1796 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1797 available before calling SECT_OFF_TEXT.
3c164570 1798 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1799
004d836a
JJ
18002003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1801
1802 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1803 bof, and nat0-nat127 as pseudo-registers.
1804 (ia64_frame_cache): New struct used to cache frame info.
1805 (ia64_register_reggroup_p): New routine used to override default
1806 register grouping so registers without names are still saved and
1807 restored.
1808 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1809 pseudo values.
1810 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1811 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1812 (ia64_alloc_frame_cache): New routine to create a new
1813 ia64_frame_cache.
1814 (examine_prologue): Change prototype to add next_frame pointer.
1815 Assume frameless until otherwise proven. Verify that the cfm for
1816 current frame matches the cfm that should occur for the prologues
1817 alloc insn and if equal, mark as not frameless. At end of routine,
1818 if not frameless, calculate registers for the previous frame and store
1819 in the cache, if a cache is provided.
1820 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1821 and pass 0 for next_frame.
1822 (ia64_store_return_value): Change to use convert_typed_floating()
1823 instead of calling ia64_convert_to_raw().
1824 (ia64_extract_return_value): Change to use convert_typed_floating()
1825 instead of calling ia64_convert_to_virtual().
1826 (ia64_frame_cache): New routine to support new frame model.
1827 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1828 (ia64_frame_sniffer): Ditto.
1829 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1830 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1831 (ia64_sigtramp_frame_prev_register): Ditto.
1832 (ia64_sigtramp_frame_sniffer): Ditto.
1833 (ia64_frame_base_address): Ditto.
1834 (ia64_extract_struct_value_address): Change to issue error message.
1835 (ia64_frame_align): New routine to align sp.
1836 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1837 (ia64_push_arguments): Removed. Logic moved to
1838 ia64_push_dummy_call().
1839 (ia64_push_return_address): Ditto.
1840 (ia64_unwind_dummy_id): New function.
1841 (ia64_unwind_pc): Ditto.
1842 (ia64_convert_register_p): Ditto.
1843 (ia64_register_to_value): Ditto.
1844 (ia64_value_to_register): Ditto.
1845 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1846 (ia64_register_byte, ia64_register_raw_size): Ditto.
1847 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1848 (ia64_saved_pc_after_call): Ditto.
1849 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1850 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1851 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1852 (ia64_register_convert_to_raw): Ditto.
1853 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1854 (ia64_init_extra_frame_info): Ditto.
1855 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1856 (ia64_gdbarch_init): Remove registering of deprecated functions that
1857 are no longer used. Add registration of new gdbarch functions.
1858 Remove registering deprecated_write_sp. Replace
1859 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1860 Delete set_gdbarch_deprecated_register_convertible(),
1861 set_gdbarch_deprecated_register_convert_to_virtual(), and
1862 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1863 set_gdbarch_deprecated_register_size(),
1864 set_gdbarch_deprecated_register_bytes(),
1865 set_gdbarch_pcregnum(),
1866 set_gdbarch_deprecated_register_byte(),
1867 set_gdbarch_deprecated_register_raw_size(),
1868 set_gdbarch_deprecated_max_register_raw_size(),
1869 set_gdbarch_deprecated_register_virtual_size(),
1870 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1871 Replace set_gdbarch_deprecated_extract_return_value() with
1872 set_gdbarch_extract_return_value(). Remove calls to:
1873 set_gdbarch_deprecated_saved_pc_after_call();
1874 set_gdbarch_deprecated_frame_chain(),
1875 set_gdbarch_deprecated_frame_saved_pc(),
1876 set_gdbarch_deprecated_frame_init_saved_regs(),
1877 set_gdbarch_deprecated_get_saved_register(),
1878 set_gdbarch_deprecated_call_dummy_words(),
1879 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1880 set_gdbarch_deprecated_init_extra_frame_info(),
1881 set_gdbarch_deprecated_frame_args_address(),
1882 set_gdbarch_deprecated_frame_locals_address(),
1883 and set_gdbarch_deprecated_dummy_write_sp().
1884 Add set_gdbarch_convert_register_p(),
1885 set_gdbarch_register_to_value(),
1886 set_gdbarch_value_to_register(),
1887 set_gdbarch_push_dummy_call(),
1888 set_gdbarch_frame_align(),
1889 set_gdbarch_unwind_dummy_id(),
1890 set_gdbarch_unwind_pc(),
1891 frame_unwind_append_sniffer(),
1892 frame_unwind_append_sniffer(),
1893 and frame_base_set_default().
1894
aede7613
CD
18952003-08-25 Chris Demetriou <cgd@broadcom.com>
1896
1897 * configure.tgt: Document need for special "mipsisa64" handling.
1898 (mipsisa64*-*-linux64): Handle as target linux64.
1899 (mipsisa64*-*-*): Handle as target embed64.
1900
43c3a82e
MC
19012003-08-18 Michael Chastain <mec@shout.net>
1902
1903 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1904 objfile bug.
1905
6564f77d
MK
19062003-08-24 Mark Kettenis <kettenis@gnu.org>
1907
2de139ba
MK
1908 * i387-tdep.h: Update copyright date.
1909 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1910
6564f77d
MK
1911 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1912 CFLAGS games to reflect reality.
1913
42cf1509
AC
19142003-08-24 Andrew Cagney <cagney@redhat.com>
1915
1916 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1917 GDB_MULTI_ARCH is always non-zero.
1918 * osabi.c (_initialize_gdb_osabi): Ditto.
1919 (gdbarch_init_osabi): Ditto.
1920 * sparc-tdep.c: Ditto for #if code.
1921
0485f6ad
MK
19222003-08-23 Mark Kettenis <kettenis@gnu.org>
1923
1924 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1925 Update comments.
1926 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1927 comments.
1928 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1929 x86_64_supply_fxsave.
1930 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1931 x86_64_supply_fxsave.
1932 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1933 x86_64_supply_fxsave.
1934
c7716133
AJ
19352003-08-23 Andreas Jaeger <aj@suse.de>
1936
1937 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1938 i387_supply_fxsave.
1939
ed504bdf
MK
19402003-08-23 Mark Kettenis <kettenis@gnu.org>
1941
1942 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1943 i387_supply_register.
1944 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1945 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1946 i387_supply_fsave.
1947 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1948 i387_supply_fxsave.
1949 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1950 i387_supply_fsave.
1951 * i386bsd-nat.c (supply_fpregset): Adjust call to
1952 i387_supply_fsave.
1953 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1954 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1955 supply_fpregset.
1956 (store_inferior_registers): Remove extraneous whitespace. Call
1957 i387_fill_fsave instead of fill_fpregset.
1958 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1959 (supply_fpregset): Likewise.
1960 * i386v4-nat.c (supply_fpregset): Adjust call to
1961 i387_supply_fsave.
1962 * i386-interix-nat.c (supply_fpregset): Adjust call to
1963 i387_supply_fsave.
1964 * i386-linux-nat.c (supply_fpregset): Adjust call to
1965 i387_supply_fsave.
1966 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1967 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1968 i387supply_fsave and i387_supply_fxsave.
1969 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1970 Incorporate code from `i387_supply_register.
1971 (i387_supply_register): Remove.
1972 (i387_supply_fxsave): Add `regnum' argument.
1973 Update comments.
1974 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1975 prototype.
1976 (i387_supply_register): remove prototype.
1977 Update comments.
1978
4be5d520
MC
19792003-08-22 Michael Chastain <mec@shout.net>
1980
1981 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1982 Add lines for files in gdb/testsuite/gdb.cp/* that are
1983 still not 8.3 unique.
1984
7ed85d26
DJ
19852003-08-22 Daniel Jacobowitz <drow@mvista.com>
1986
1987 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1988 TYPE_VPTR_FIELDNO is valid.
1989
eb0d3137
MK
19902003-08-19 Mark Kettenis <kettenis@gnu.org>
1991
1992 * utils.c (set_width_command): Remove prototypes.
1993 (set_screen_size): New prototype.
1994 (init_page_info): Simplify by fetching the screen size from
1995 Readline. Call set_screen_size.
1996 (set_screen_size): New function.
1997 (set_width): Add missing whitespace in comment.
1998 (set_width_command): Call set_screen_size.
1999 (set_height_command): New function.
2000 (initialize_utils): Fix formatting. Make "set height" command
2001 call set_height_command. Remove redundant code that turns off
2002 pagination if output isn't a terminal. Remove redundant call to
2003 set_width_command.
2004
7e6d0ac8
MK
20052003-08-22 Mark Kettenis <kettenis@gnu.org>
2006
3567a8ea
MK
2007 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2008 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2009 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2010 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2011 `case' keyword.
2012 (sparc64_register_info): Give the reister with number
2013 SPARC64_STATE_REGNUM a name.
2014 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2015 %asi and %ccr.
2016 (sparc64_push_dummy_call): Take BIAS into account when checking
2017 stcak alignment.
2018 (sparc_software_single_step): Remove assertions that check whether
2019 NPC and NNPC were zero.
2020 (sparc_supply_rwindow): Make public. Merge functionality with
2021 sparc64_supply_rwindow.
2022 (sparc_fill_rwindow): Make public. Merge functionality with
2023 sparc64_fill_rwindow.
2024 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2025 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2026 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2027 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2028 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2029
7e6d0ac8
MK
2030 * reggroups.c: Add whitespace after declarations of local
2031 variables in functions.
2032
72e5f484
MC
20332003-08-21 Michael Chastain <mec@shout.net>
2034
2035 * gdbtypes.h: Change array bound type from an int to enum.
2036
435ac228
AC
20372003-08-21 Andrew Cagney <cagney@redhat.com>
2038
2039 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2040 * config/sparc/tm-sparc.h: Ditto.
2041 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2042 unconditionally.
2043 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2044
0d0e1a63
MK
20452003-07-13 Mark Kettenis <kettenis@gnu.org>
2046
2047 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2048 (register_objfile_data, set_objfile_data, objfile_data): New
2049 prototypes.
2050 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2051 prototypes.
2052 (allocate_objfile): Call objfile_alloc_data.
2053 (free_objfile): Call objfile_free_data.
2054 (struct objfile_data): New.
2055 (struct objfile_data_registration): New.
2056 (struct objfile_data_registry): New.
2057 (objfile_data_registry): New variable.
2058 (register_objfile_data): New function.
2059 (objfile_alloc_data, objfile_free_data): New functions.
2060 (set_objfile_data, objfile_data): New functions.
2061 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2062 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2063 (_initialize_dwarf2_frame): New function and prototype.
2064
d90cf509
AC
20652003-08-21 Andrew Cagney <cagney@redhat.com>
2066
2067 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2068 a specific architecture.
2069 * arch-utils.h (set_architecture_from_arch_mach): Delete
2070 declaration.
2071 (target_architecture_hook): Delete declaration.
2072 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2073 (default_float_format): Assume GDB_MULTI_ARCH.
2074 (default_double_format): Assume GDB_MULTI_ARCH.
2075 (set_endian_from_file): Delete function.
2076 (arch_ok): Delete function.
2077 (set_arch): Delete function.
2078 (set_architecture_from_arch_mach): Delete function.
2079 (set_architecture_from_file): Delete function.
2080 (set_architecture): Assume GDB_MULTI_ARCH.
2081 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2082
8b39fe56
MK
20832003-08-21 Mark Kettenis <kettenis@gnu.org>
2084
2085 Rewrite FreeBSD/sparc64 native configuration.
2086 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2087 * sparc64fbsd-nat.c: New file.
2088 * sparc64fbsd-tdep.c: New file.
2089 * sparc64-tdep.c sparc64-tdep.h: New files.
2090 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2091 sparc64fbsd-tdep.o): New dependencies.
2092 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2093 and sparc64fbsd-tdep.c.
2094 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2095 * config/sparc/fbsd.mh: Remove copyright notice.
2096 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2097 sparcbsd-nat.o.
2098 * config/sparc/fbsd.mt: Remove copyright notice.
2099 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2100 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2101 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2102 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2103 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2104 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2105 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2106 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2107 "sparc/tm-sp64.h".
2108 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2109 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2110
a7f19c79
MC
21112003-08-21 Michael Chastain <mec@shout.net>
2112
2113 * symtab.h: Add doco on the space critical structures and
2114 some measurements of space usage.
2115
da08ea5b
MS
21162003-08-21 Michael Snyder <msnyder@redhat.com>
2117
2118 * tracepoint.c (trace_dump_command): Trace break address
2119 is subject to DECR_PC_AFTER_BREAK.
2120 (set_traceframe_context): Make "trace_line" an int.
2121 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2122
6df2bf50
MS
21232003-08-20 Michael Snyder <msnyder@redhat.com>
2124
2125 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2126 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2127 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2128 argument passing.
2129 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2130 functions, replace sh_push_dummy_call.
2131 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2132
0955bbf0
MC
21332003-08-20 Michael Chastain <mec@shout.net>
2134
2135 * gdbtypes.h (struct main_type): Rearrange to save space.
2136
260a4188
MS
21372003-08-20 Michael Snyder <msnyder@redhat.com>
2138
2139 * trad-frame.c: Comment typo fix.
2140
8baa6f92
KB
21412003-08-20 Michael Snyder <msnyder@redhat.com>
2142 Kevin Buettner <kevinb@redhat.com>
2143
2144 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2145 (frv_frame_init_saved_regs): Add declaration.
2146 (frame_extra_info): Add new field ``saved_regs''.
2147 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2148 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2149 Update frame related code.
2150 (frv_extract_struct_value_address): Adjust formatting.
2151 * Makefile.in (frv-tdep.o): Update dependencies.
2152 * config/frv/tm-frv.h (target_insert_watchpoint)
2153 (target_remove_watchpoint, target_insert_hw_breakpoint)
2154 (target_remove_hw_breakpoint): Delete these macros.
2155 (remote_insert_watchpoint, remote_remove_watchpoint)
2156 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2157 these declarations.
2158
87193939
MC
21592003-08-20 Michael Chastain <mec@shout.net>
2160
2161 * defs.h (ENUM_BITFIELD): New macro.
2162 * symtab.h (ENUM_BITFIELD): Use it.
2163 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2164
062103ba
SA
21652003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2166
2167 * MAINTAINERS (write after approval): Add myself.
2168
8b148df9
AC
21692003-08-18 Andrew Cagney <cagney@redhat.com>
2170
2171 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2172 * gdbarch.h, gdbarch.c: Re-generate.
2173 * infcall.c (call_function_by_hand): Adjust the SP by
2174 frame_red_zone_size before allocating any stack space.
2175 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2176 * x86-64-tdep.c (x86_64_frame_align): New function.
2177 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2178
2179 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2180 Remove code adjusting SP so that it skips over the Red Zone.
2181
954a4db8
MK
21822003-08-18 Mark Kettenis <kettenis@gnu.org>
2183
2184 * NEWS (New native configurations): Mention FreeBSD/amd64.
2185
1a241548
AC
21862003-08-18 Andrew Cagney <cagney@redhat.com>
2187
2188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2189 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2190 "m68k_frame_p".
2191 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2192
f82b2acd
MK
21932003-08-18 Mark Kettenis <kettenis@gnu.org>
2194
2195 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2196
4056d258
ML
21972003-08-18 Michal Ludvig <mludvig@suse.cz>
2198
2199 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2200 Define.
2201 * i386-linux-nat.c: Include "linux-nat.h".
2202 (child_post_startup_inferior): New function.
2203
99ab4326
MK
22042003-08-18 Mark Kettenis <kettenis@gnu.org>
2205
2206 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2207 at the start of a frameless function. This probably fixes PR
2208 backtrace/1338.
2209
c8d5f0d6
MC
22102003-08-17 Michael Chastain <mec@shout.net>
2211
2212 * symfile.c (find_sym_fns): Remove special case for apollo target.
2213
9016a515
DJ
22142003-08-17 Daniel Jacobowitz <drow@mvista.com>
2215
2216 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2217 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2218 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2219 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2220 (linux_supports_tracevforkdone): New function.
2221 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2222 TRACEVFORKDONE.
2223 (child_follow_fork): Handle vfork.
2224 (linux_handle_extended_wait): Likewise. Also handle exec.
2225 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2226 * NEWS: Mention fork tracing.
2227
c538c11c
DJ
22282003-08-17 Daniel Jacobowitz <drow@mvista.com>
2229
2230 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2231
4de4c07c
DJ
22322003-08-17 Daniel Jacobowitz <drow@mvista.com>
2233
2234 * Makefile.in (i386-linux-nat.o): Update dependencies.
2235 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2236 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2237 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2238 * i386-linux-nat.c: Include "linux-nat.h".
2239 (child_post_startup_inferior): New function.
2240 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2241 * infptrace.c (kill_inferior): Wrap in #ifdef.
2242 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2243 attaching to each LWP.
2244 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2245 (init_lin_lwp_ops): Fill in some more operations.
2246 * linux-nat.h (linux_enable_event_reporting)
2247 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2248 prototypes.
2249 * linux-nat.c (linux_enable_event_reporting): New function.
2250 (child_post_attach, linux_child_post_startup_inferior)
2251 (child_post_startup_inferior, child_follow_fork)
2252 (linux_handle_extended_wait, kill_inferior): New functions.
2253
7996bcec
AC
22542003-08-16 Andrew Cagney <cagney@redhat.com>
2255
2256 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2257 * gdbarch.h, gdbarch.c: Re-generate.
2258
3d48a7a0
MK
22592003-08-16 Mark Kettenis <kettenis@gnu.org>
2260
2261 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2262
7989c619
AC
22632003-08-16 Andrew Cagney <cagney@redhat.com>
2264
2265 * NEWS: Mention that "set prompt-escape-char" was deleted.
2266 * top.c (get_prompt_1): Delete function.
2267 (gdb_prompt_escape):
2268 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2269 prompt-escape-char" command.
2270 (MAX_PROMPT_SIZE): Delete macro.
2271 (get_prompt): Simplify, do not call get_prompt_1.
2272
07978cd8
AC
22732003-08-16 Andrew Cagney <cagney@redhat.com>
2274
2275 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2276 -Werror. -Wformat-nonliteral problems.
2277
3ff7cf9e
JB
22782003-08-15 J. Brobecker <brobecker@gnat.com>
2279
2280 Further multiarching work mostly for hppa64-*-hpux11:
2281 * hppa-tdep.h: New file.
2282 * hppa-tdep.c: #include hppa-tdep.c.
2283 (hppa32_num_regs): Renamed from hppa_num_regs.
2284 (hppa64_num_regs): New constant.
2285 (hppa64_call_dummy_breakpoint_offset): New constant.
2286 (hppa32_call_dummy_length): New constant.
2287 (hppa64_call_dummy_length): New constant.
2288 (hppa32_stack_align): Make name 32bit explicit.
2289 (hppa32_register_virtual_type): Likewise.
2290 (hppa32_extract_return_value): Likewise.
2291 (hppa32_use_struct_convention): Likewise.
2292 (hppa32_store_return_value): Likewise.
2293 (hppa64_register_virtual_type): New function.
2294 (hppa64_extract_return_value): New function.
2295 (hppa64_use_struct_convention): New function.
2296 (hppa64_store_return_value): New function.
2297 (hppa_frame_locals_address): Remove declaration, function does
2298 not exist anymore.
2299 (hppa_register_byte): Add support for PA64 ABI.
2300 (hppa_gdbarch_init): Add support for PA64 ABI.
2301 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2302 Make name 32bit explicit.
2303 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2304 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2305 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2306 (hppa64_hpux_frame_base_before_sigtramp): New function.
2307 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2308 * config/pa/tm-hppa64.h: Remove macros that are no longer
2309 necessary now that the gdbarch vector is properly setup.
2310 Transform some macros into function calls. Some minor cleanup.
2311 * config/pa/tm-hppah.h: Update function calls in macros
2312 following the function renaming in hppa-hpux-tdep.c.
2313 * Makefile.in (hppa_tdep_h): New variable.
2314 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2315
5d05ca6d
MS
23162003-08-14 Michael Snyder <msnyder@redhat.com>
2317
2318 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2319
37ba2569
JB
23202003-08-13 J. Brobecker <brobecker@gnat.com>
2321
2322 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2323 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2324 routine.
2325
aed7f26a
MS
23262003-08-13 Michael Snyder <msnyder@redhat.com>
2327
2328 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2329 (frv_saved_pc_after_call): Use deprecated ftype.
2330 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2331 (frv_remote_translate_xfer_address): Remove.
2332 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2333
752d4ac1
JB
23342003-08-13 J. Brobecker <brobecker@gnat.com>
2335
2336 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2337 initialization after the common gdbarch initialization, not before.
2338
1426ac1d
JB
23392003-08-13 J. Brobecker <brobecker@gnat.com>
2340
2341 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2342 (ADDR_BITS_REMOVE): Remove, redundant.
2343
b6fbdd1d
JB
23442003-08-13 J. Brobecker <brobecker@gnat.com>
2345
2346 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2347 gdbarch method to clear the 2 low bits of text addresses.
2348
44160db3
AC
23492003-08-12 Andrew Cagney <cagney@redhat.com>
2350
2351 * Makefile.in (dsrec.o): Update dependencies.
2352 * dsrec.c: Include "gdb_assert.h".
2353 (make_srec): Use snprintf instead of sprintf, use a literal format
2354 string.
2355
bcf7d3ca
AC
23562003-08-12 Andrew Cagney <cagney@redhat.com>
2357
2358 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2359 FRAME_OBSTACK_ZALLOC.
2360
49ed40de
KB
23612003-08-12 Kevin Buettner <kevinb@redhat.com>
2362
2363 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2364 SSE registers.
2365
b246147c
MK
23662003-08-10 Mark Kettenis <kettenis@gnu.org>
2367
2368 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2369 amd64fbsd_sc_reg_offset): Add extern declarations.
2370 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2371 declarations.
2372
d95fdc0d
BE
23732003-08-11 Ben Elliston <bje@wasabisystems.com>
2374
2375 * MAINTAINERS (write after approval): Update my mail address.
2376
cf6a0e73
AC
23772003-08-10 Andrew Cagney <cagney@redhat.com>
2378
2379 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2380
f837910f
MK
23812003-08-10 Mark Kettenis <kettenis@gnu.org>
2382
e2dbbd2d
MK
2383 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2384 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2385 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2386 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2387 i386bsd_sc_reg_offset): Add extern declarations.
2388 * i386obsd-nat.c: Include "i386-tdep.h"
2389 (_initialize_i386obsd_nat): Remove extern declarations.
2390 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2391 declarations.
2392 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2393 declarations.
2394
f837910f
MK
2395 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2396 instead of frame_read_register.
2397 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2398 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2399 SP_REGNUM.
2400 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2401 instead of frame_unwind_unsigned_register. Use
2402 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2403 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2404 instead of read_register. Use builtin_type_void_data_ptr instead
2405 of builtin_type_void_func_ptr when extracting the address of the
2406 jmp_buf.
2407 (i386_extract_return_value, i386_store_return_value,
2408 i386_pseudo_register_read, i386_pseudo_register_write): Use
2409 register_size instead REGISTER_RAW_SIZE.
2410
edcf254d
AC
24112003-08-10 Andrew Cagney <cagney@redhat.com>
2412
2413 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2414 sprintf. Make "name" constant.
2415
26604a34
MK
24162003-08-10 Mark Kettenis <kettenis@gnu.org>
2417
192285c6
MK
2418 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2419 instead of frame_read_register.
f837910f
MK
2420 (i387_print_float_info): Use get_frame_register and
2421 get_frame_register_unsigned instead of frame_register_read.
192285c6 2422
f0925262
MK
2423 * i386fbsd-nat.c: Include "i386-tdep.h".
2424 (child_resume): Make `eflags' an ULONGEST. Use
2425 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2426 instead of register_read and register_write.
2427
a144416f
MK
2428 * i386bsd-nat.c (fetch_inferior_registers,
2429 store_inferior_registers): Don't use && at the end of a line.
2430 (_initialize_i386bsd_nat): Fix typo.
2431
fec74868
MK
2432 * frame.c (_initialize_frame): Add missing backslash.
2433
87232496
MK
2434 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2435 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2436 and supply_register instead of manipulating the register buffer
2437 directly.
2438
c9b9de0b
MK
2439 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2440 * config/i386/nm-i386sol2.h
2441 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2442
26604a34
MK
2443 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2444 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2445 instructions that GCC likes to mingle into the prologue. Fixes
2446 gdb/1253 and gdb/1255.
2447
25d29d70
AC
24482003-08-09 Andrew Cagney <cagney@redhat.com>
2449
2450 Fix GDB PR cli/926.
2451 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2452 * command.h (add_setshow_uinteger_cmd): Declare.
2453 * frame.c (set_backtrace_cmd): New function.
2454 (show_backtrace_cmd): New function.
2455 * frame.c (_initialize_frame): Replace "set/show
2456 backtrace-below-main" with "set/show backtrace past-main". Add
2457 command "set/show backtrace limit".
2458 (backtrace_past_main): Rename "backtrace_below_main".
2459 (backtrace_limit): New variable.
2460 (get_prev_frame): Update. Check the backtrace_limit.
2461
9ebf4acf
AC
24622003-08-09 Andrew Cagney <cagney@redhat.com>
2463
2464 * defs.h (xstrprintf): Declare.
2465 * utils.c (xstrprintf): New function.
2466 * breakpoint.c (insert_breakpoints): Replace sprintf and
2467 non-literal format strings, with xstrprintf and cleanups.
2468 (delete_breakpoint,breakpoint_re_set): Ditto.
2469 (commands_command, insert_breakpoints): Ditto.
2470 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2471 (break_at_finish_command_1): Ditto.
2472
3771659b
AC
24732003-08-09 Andrew Cagney <cagney@redhat.com>
2474
2475 * MAINTAINERS (language support): List Adam Fedor as Objective C
2476 maintainer.
2477
b4263afa
JB
24782003-08-08 J. Brobecker <brobecker@gnat.com>
2479
2480 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2481 are now multiarched.
2482
d84defb1
JB
24832003-08-08 J. Brobecker <brobecker@gnat.com>
2484
2485 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2486 longer necessary now that hppa64 is partially multiarch'ed.
2487
f786f615
AC
24882003-08-08 Andrew Cagney <cagney@redhat.com>
2489
2490 * interps.c (interp_set): Check for a NULL "old_interp".
2491
c938e9b0
L
24922003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2493
2494 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2495 (install-only): Support DESTDIR.
2496 (uninstall): Likewise.
2497 (install-gdbtk): Likewise.
2498
9a146a11
EZ
24992003-08-08 Elena Zannoni <ezannoni@redhat.com>
2500
2501 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2502 contains something meaningful at all times.
2503
2504Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2505
62599e99 2506 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2507
56296155
BC
2508Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2509
62599e99 2510 * MAINTAINERS (write after approval): Added self.
56296155 2511
9710e734
AC
25122003-08-07 Andrew Cagney <cagney@redhat.com>
2513
2514 * inferior.h (AT_SYMBOL): Define.
2515 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2516 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2517 * mips-tdep.c (mips_call_dummy_address): Delete function.
2518 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2519 set call_dummy_address.
2520
98b3ab73
AC
25212003-08-07 Andrew Cagney <cagney@redhat.com>
2522
2523 * language.c (op_error): Delete function.
2524 (binop_type_check): Delete function.
2525 * language.h (type_op_error, range_op_error): Delete macros.
2526 (op_error): Delete declaration.
2527
2fcf52f0
AC
25282003-08-07 Andrew Cagney <cagney@redhat.com>
2529
2530 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2531
abd4220e 25322003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2533
abd4220e 2534 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2535 (x86_64_push_arguments): Skip the red zone.
abd4220e 2536
9dd5f34f
AC
25372003-08-05 Andrew Cagney <cagney@redhat.com>
2538
2539 * reggroups.c (reggroup_next): Check for the final entry.
2540
e5e78edc
AC
25412003-08-04 Andrew Cagney <cagney@redhat.com>
2542
ab4e3d93
AC
2543 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2544 * cli/cli-script.c (define_command): Call query directly, instead
2545 of passing it a buffer.
2546 * ocd.c (ocd_error): Pass error a constant format string.
2547 * remote-mips.c (mips_error): Use fputs_filtered.
2548
1062ca82
AC
2549 * solib-svr4.c (_initialize_svr4_solib): Update
2550 register_gdbarch_data call.
2551 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2552
fcc1c85c
AC
2553 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2554 (register_gdbarch_data): Delete "free" parameter. Update
2555 comments.
2556 * gdbarch.h, gdbarch.c: Re-generate.
2557 * reggroups.c (_initialize_reggroup): Update.
2558 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2559 * frame-base.c (_initialize_frame_base): Update.
2560 * frame-unwind.c (_initialize_frame_unwind): Update.
2561 * user-regs.c (_initialize_user_regs): Update.
2562 * remote.c (_initialize_remote): Update.
2563 * regcache.c (_initialize_regcache): Update.
2564
116f06ea
AC
2565 * regcache.c (xfree_regcache_descr): Delete function.
2566 (_initialize_regcache): Update call to register_gdbarch_data.
2567 (init_regcache_descr, init_legacy_regcache_descr): Use
2568 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2569
e5e78edc
AC
2570 * remote.c (free_remote_state): Delete function.
2571 (_initialize_remote): Update register_gdbarch_data.
2572 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2573 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2574
6c7d17ba
AC
25752003-08-04 Andrew Cagney <cagney@redhat.com>
2576
2577 * reggroups.c (struct reggroup_el): Define.
2578 (struct reggroups): Delete field "nr_group". Replace array
2579 "group" with a "first" to "last" linked list.
2580 (reggroups_init): Update. Allocate using gdbarch's obstack.
2581 (reggroups_free): Delete function.
2582 (add_group): Update. Add "el" parameter.
2583 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2584 (default_groups): Update.
2585 (reggroup_next): Replace reggroups.
2586 (reggroups_dump): Update.
2587 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2588 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2589 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2590
89b7795b
DJ
25912003-08-04 Daniel Jacobowitz <drow@mvista.com>
2592
2593 * Makefile.in (tui-interp.o): Update dependencies.
2594
306d9ac5
DC
25952003-08-04 David Carlton <carlton@kealia.com>
2596
2597 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2598 to internal_error call.
2599 * source.c (forward_search_command): Add "%s" format argument.
2600 (reverse_search_command): Ditto.
2601 * top.c (quit_confirm): Ditto.
2602 * cli/cli-setshow.c (do_setshow_command): Ditto.
2603 * cp-valprint.c (cp_print_class_method): Replace
2604 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2605 (cp_print_class_member): Ditto.
2606 * event-top.c (command_line_handler): Ditto.
2607 * linux-proc.c (linux_info_proc_cmd): Ditto.
2608 * p-typeprint.c (pascal_type_print_base): Ditto.
2609 * p-valprint.c (pascal_object_print_class_method): Ditto.
2610 (pascal_object_print_class_member): Ditto.
2611 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2612 * remote.c (remote_cisco_section_offsets): Ditto.
2613 * top.c (command_line_input): Ditto.
2614 * utils.c (vwarning,error_stream,quit): Ditto.
2615 * valprint.c (print_floating,print_binary_chars)
2616 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2617
57bfe177
AC
26182003-08-04 Andrew Cagney <cagney@redhat.com>
2619
2620 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2621
e546b999
AC
26222003-08-02 Andrew Cagney <cagney@redhat.com>
2623
2624 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2625 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2626 amd64fbsd-nat.c.
2627
91092ee5
AC
26282003-08-02 Andrew Cagney <cagney@redhat.com>
2629
2630 * Makefile.in: Update all dependencies and definitions.
2631
889f28e2
AF
26322003-08-02 Adam Fedor <fedor@gnu.org>
2633
2634 * linespec.c (is_objc_method_format): New function
2635 (decode_line_1, locate_first_half): Use it.
2636 Fixes PR objc/1298
2637
880bc914
AC
26382003-08-01 Andrew Cagney <cagney@redhat.com>
2639
2640 * NEWS: Mention that m32r is multi-arch.
2641 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2642 * configure.tgt: Recognize m32r-*-*.
2643 * config/m32r/tm-m32r.h: Delete file.
2644 * config/m32r/m32r.mt: New file.
2645 * m32r-rom.c (m32r_upload_command): Use hostent only when
2646 gethostname succeeds, in order to avoid a compilation
2647 warning.
2648 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2649 compiler warning.
2650
19f59343
MS
26512003-08-01 Michael Snyder <msnyder@redhat.com>
2652
2653 * sh-tdep.c (sh_frame_align): New gdbarch method.
2654 (sh_gdbarch_init): Set up frame_align method.
2655
4e7d7511
MS
26562003-07-31 Michael Snyder <msnyder@redhat.com>
2657
2658 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2659 which is already covered by the new frames infrastructure.
2660
63022984
AC
26612003-07-31 Andrew Cagney <cagney@redhat.com>
2662
2663 * user-regs.c (struct user_reg): Add "next" link.
2664 (struct user_regs): Replace "user" with "first" and "last" links.
2665 (append_user_reg): Add pre-allocated "reg" parameter.
2666 (builtin_user_regs): Provide initial value for "last".
2667 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2668 (user_regs_init): Allocate memory from the gdbarch obstack.
2669 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2670 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2671 linked list.
2672 (usernum_to_user_reg): New function.
2673 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2674 (value_of_user_reg): Use usernum_to_user_reg.
2675 (user_regs_free): Delete function.
2676 (_initialize_user_regs): Update register_gdbarch_data call.
2677
7cf6e574
DJ
26782003-07-31 Daniel Jacobowitz <drow@mvista.com>
2679
2680 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2681
c48a845b
MS
26822003-07-30 Michael Snyder <msnyder@redhat.com>
2683
4e7d7511 2684 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2685 * infcall.c (call_function_by_hand): Pass struct_addr to
2686 value_being_returned.
2687 * infcmd.c (print_return_value): Pass zero as struct_addr.
2688 * values.c (value_being_returned): If struct_addr is passed,
2689 use it instead of trying to recover it from the inferior.
2690
f0d8db19
KB
26912003-07-30 Kevin Buettner <kevinb@redhat.com>
2692
2693 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2694 the prologue analyzer won't need to attempt to extract the pc
2695 value from the woefully incomplete dummy frame.
2696 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2697 possible. Disable code which modifies the frame.
2698
e5c113a1
AC
26992003-07-28 Andrew Cagney <cagney@redhat.com>
2700
2701 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2702 to level 2.
2703 (annotate_breakpoints_table, annotate_record): Ditto.
2704 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2705 (annotate_field_name_end, annotate_field_value): Ditto.
2706 (annotate_field_end, annotate_frame_source_begin): Ditto.
2707 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2708 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2709 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2710 (annotate_frame_address_end, annotate_frame_address): Ditto.
2711 (annotate_frame_args, annotate_frame_end): Ditto.
2712 (annotate_frame_where, annotate_arg_begin): Ditto.
2713 (annotate_arg_name_end, annotate_arg_value): Ditto.
2714 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2715 (annotate_function_call, annotate_signal_name): Ditto.
2716 (annotate_signal_string, annotate_signal_name_end): Ditto.
2717 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2718 (annotate_value_begin, annotate_value_history_value): Ditto.
2719 (annotate_value_history_end, annotate_value_end): Ditto.
2720 (annotate_display_begin, annotate_display_number_end): Ditto.
2721 (annotate_display_format, annotate_display_expression): Ditto.
2722 (annotate_display_expression_end, annotate_display_value): Ditto.
2723 (annotate_display_end, annotate_array_section_begin): Ditto.
2724 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2725 (annotate_elt, annotate_array_section_end): Ditto.
2726
bb1db049
AC
27272003-07-28 Andrew Cagney <cagney@redhat.com>
2728
2729 * regcache.c (struct regcache_descr): Update comments on
2730 nr_raw_registers.
2731 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2732 sizeof_raw_register_valid_p.
2733 (init_regcache_descr): Set nr_raw_registers and
2734 sizeof_raw_register_valid_p before calling
2735 init_legacy_regcache_descr.
2736
20e6603c
AC
27372003-07-28 Andrew Cagney <cagney@redhat.com>
2738
2739 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2740 MOD NUM_REGS.
2741
db742940
DJ
27422003-07-28 Daniel Jacobowitz <drow@mvista.com>
2743
2744 * thread.c (info_threads_command): Use get_selected_frame ().
2745 Check that there is at least one non-sentinel frame.
2746
ce7f4371
SC
27472003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2748
2749 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2750 (m68hc11_pop_frame): Remove.
2751 (m68hc11_frame_saved_pc): Remove.
2752 (m68hc11_frame_chain): Remove.
2753 (m68hc11_frame_init_saved_regs): Remove.
2754 (m68hc11_init_extra_frame_info): Remove.
2755 (m68hc11_store_struct_return): Remove.
2756 (m68hc11_saved_pc_after_call): Remove.
2757
1ea653ae
SC
27582003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2759
2760 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2761 frame unwind information.
2762 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2763 and adapted for frame unwinding.
2764 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2765 (m68hc11_unwind_pc): New function.
2766 (m68hc11_frame_unwind_cache): New function to analyze frames.
2767 (m68hc11_frame_this_id): New function to create new frame struct.
2768 (m68hc11_frame_prev_register): New function to unwind a register from
2769 the frame.
2770 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2771 (m68hc11_frame_p): New function for the above.
2772 (m68hc11_frame_base_address): New function to return fp of frame.
2773 (m68hc11_frame_args_address): Update for frame.
2774 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2775 (m68hc11_unwind_sp): New function.
2776 (m68hc11_unwind_dummy_id): New function.
2777 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2778 calls.
2779
c8a7f6ac
SC
27802003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2781
2782 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2783 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2784 when we are beyond the current pc.
2785
3dc990bf
SC
27862003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2787
2788 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2789 from m68hc11_push_arguments.
2790 (m68hc11_push_arguments): Remove.
2791 (m68hc11_push_return_address): Remove.
2792 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2793 handlers; remove deprecated_extra_stack_alignment_needed.
2794
222e5d1d
AC
27952003-07-27 Andrew Cagney <cagney@redhat.com>
2796
2797 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2798 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2799 REAL_PC and not the pointer.
2800 * hppa-hpux-tdep.c: Include frame.h
2801
a7e9a47e
AC
28022003-07-27 Andrew Cagney <cagney@redhat.com>
2803
2804 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2805 GDB_MULTI_ACH_PARTIAL.
2806
7e3dd49e
AC
28072003-07-27 Andrew Cagney <cagney@redhat.com>
2808
2809 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2810 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2811 operator at start and not end of line.
2812 (decode_prologue): Ditto.
2813 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2814 frame_unwind_register_unsigned instead of
2815 frame_unwind_unsigned_register.
2816 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2817 read_register.
2818 (m32r_push_dummy_call): Use register_size instead of
2819 REGISTER_RAW_SIZE.
2820 (m32r_frame_sniffer): Replace m32r_frame_p.
2821 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2822 * m32r-rom.c (report_transfer_performance): Delete extern
2823 declaration.
2824 (m32r_load, m32r_upload_command): Use print_transfer_performance
2825 instead of report_transfer_performance.
2826 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2827 / add_show_from_set.
2828
0880807f
AC
28292003-07-26 Andrew Cagney <cagney@redhat.com>
2830
2831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2832 store_return_value and extract_struct_value_address.
2833
64ae9269
DJ
28342003-07-26 Daniel Jacobowitz <drow@mvista.com>
2835
2836 PR c++/1267
2837 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2838 NULL, default to the section containing PC.
2839
e286caf2
SC
28402003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2841
2842 * NEWS: Mention "regs" deprecated for m68hc11 too.
2843
2844 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2845 (m68hc11_print_register): New function to print out one register.
2846 (m68hc11_print_registers_info): New function to print registers.
2847 (show_regs): Deprecate and use the above.
2848 (m68hc11_gdbarch_init): Install the print_registers_info.
2849
705b278b
JJ
28502003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2851
2852 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2853 that we have a SIGTRAP before returning non-zero.
2854
63cd4198
EZ
28552003-07-23 Michal Ludvig <mludvig@suse.cz>
2856 Elena Zannoni <ezannoni@redhat.com>
2857
2858 * linespec.c (decode_line_2): Avoid crash if
2859 find_function_start_sal() returns empty record.
2860
6926787d
AS
28612003-07-23 Andreas Schwab <schwab@suse.de>
2862
2863 * ia64-tdep.c (ia64_print_insn): New function.
2864 (ia64_gdbarch_init): Set print_insn to it.
2865 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2866 deprecated_tm_print_insn_info.
2867
708cc1b6
MS
28682003-07-22 Michael Snyder <msnyder@redhat.com>
2869
2870 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2871 handle 8-bit returns (long long).
2872 (h8300h_extract_return_value): Ditto.
2873 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2874
aebd7893
AC
28752003-07-22 Andrew Cagney <cagney@redhat.com>
2876
2877 * gdbarch.c Include "gdb_obstack.h".
2878 (struct gdbarch): Add an "obstack".
2879 (alloc_gdbarch_data): Allocate the gdbarch data using
2880 GDBARCH_OBSTACK_CALLOC.
2881 (free_gdbarch_data): Delete function.
2882 (gdbarch_obstack_zalloc): New function.
2883 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2884 Assert that the architecture is not initialized.
2885 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2886 vector from the obstack.
2887 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2888 architecture obstack.
2889 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2890 (set_gdbarch_data): Assert that the data is not initialized.
2891 (struct gdbarch_data): Delete member "free".
2892 (register_gdbarch_data): Do not initialize "free".
2893 * gdbarch.h, gdbarch.c: Re-generate.
2894
153721e6
AC
28952003-07-22 Andrew Cagney <cagney@redhat.com>
2896
2897 * configure.in (build_warnings): Add -Wformat-nonliteral.
2898 * configure: Re-generate.
2899
c193f044 29002003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2901
2902 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2903
c3228f12
EZ
29042003-07-22 Elena Zannoni <ezannoni@redhat.com>
2905
2906 * findvar.c (read_var_value): Remove case for thread local storage
2907 variables. It is now entirely handled by the dwarf2 location
2908 expression code.
2909 * printcmd.c (address_info): Ditto.
2910 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2911 enumeration value.
2912 (struct symbol): Remove objfile field, which was used by
2913 LOC_THREAD_LOCAL_STATIC only.
2914 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2915 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2916 usage of objfile pointer.
2917 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2918 thread local variables.
2919 Add include of objfiles.h.
2920 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2921 storage variables.
2922 * Makefile.in (dwarf2loc.o): Update dependencies.
2923
aef9bcd2
AC
29242003-07-22 Andrew Cagney <cagney@redhat.com>
2925
2926 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2927 get_frame_base.
2928 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2929 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2930 (struct value): Add opaque declaration.
2931 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2932
d95a8903
AC
29332003-07-21 Andrew Cagney <cagney@redhat.com>
2934
2935 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2936 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2937
4db73d49
SC
29382003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2939
2940 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2941 regcache_cooked_read_unsigned instead of read_register.
2942 (m68hc11_saved_pc_after_call): Likewise.
2943 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2944 instead of write_register.
2945 (m68hc11_register_type): New function.
2946 (m68hc11_register_virtual_type): Remove.
2947 (m68hc11_store_return_value): Convert to use the regcache.
2948 (m68hc11_extract_struct_value_address): Likewise.
2949 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2950 m68hc11_register_type; undeprecate store_return_value and
2951 extract_struct_value_address.
2952
ef2b8fcd
SC
29532003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2954
2955 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2956 and translate to use regcache.
2957 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2958
625b0b97
AC
29592003-07-18 Andrew Cagney <cagney@redhat.com>
2960
2961 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2962 * gdbarch.h, gdbarch.c: Re-generate.
2963 * i386-tdep.c (i386_gdbarch_init): Do not set
2964 DWARF2_BUILD_FRAME_INFO.
2965 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2966 unconditionally.
2967 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2968 DWARF2_BUILD_FRAME_INFO.
2969
22b0d388
AC
29702003-07-18 Andrew Cagney <cagney@redhat.com>
2971
2972 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2973 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2974
1ce5d6dd
AC
29752003-07-18 Andrew Cagney <cagney@redhat.com>
2976
2977 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2978 frame_unwind_address_in_block, instead of frame_pc_unwind.
2979 (dwarf2_frame_cache): Ditto.
2980
e6e5e94c
AC
29812003-07-18 Andrew Cagney <cagney@redhat.com>
2982
2983 * user-regs.h (struct gdbarch): Declare opaque.
2984 * ui-out.h (struct ui_file): Declare opaque.
2985 * dwarf2-frame.h (struct frame_info): Declare opaque.
2986
5483d879
KW
29872003-07-18 Kris Warkentin <kewarken@qnx.com>
2988
2989 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2990 #include "...".
2991 (procfs_meminfo): Change strerror to safe_strerror.
2992 (procfs_can_run): Remove K&R badness.
2993
278a7cf7
MS
29942003-07-17 Michael Snyder <msnyder@redhat.com>
2995
2996 * remote-sim.c: Comment typo fix.
2997
606e3b82
AC
29982003-07-17 Andrew Cagney <cagney@redhat.com>
2999
3000 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3001 configure.
3002 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3003 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3004 GDB_MULTI_ARCH_PARTIAL.
3005
c43af07c
EZ
30062003-07-17 Elena Zannoni <ezannoni@redhat.com>
3007
3008 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3009 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3010 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3011
3b85b0f1
TR
30122003-07-16 Theodore A. Roth <troth@openavr.org>
3013
3014 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3015 found.
3016 (avr_frame_unwind_cache): Don't unwind FP for main.
3017 Update a comment.
3018 Save the computed prev_sp.
3019 (avr_saved_regs_unwinder): Remove function.
3020 (avr_frame_prev_register): Use PC unwind logic from
3021 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3022
336d1bba
AC
30232003-07-16 Andrew Cagney <cagney@redhat.com>
3024
3025 * frame-base.h (frame_base_p_ftype): Delete definition.
3026 (frame_base_append_predicate): Delete declaration.
3027 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3028 (frame_unwind_append_predicate): Delete declaration.
3029 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3030 (append_predicate): Delete parameter "p".
3031 (frame_unwind_append_predicate): Delete function.
3032 (frame_unwind_append_sniffer): Update call to append_predicate.
3033 (frame_unwind_free): Delete function.
3034 (_initialize_frame_unwind): Pass NULL as "free" to
3035 register_gdbarch_data.
3036 (frame_unwind_init): Append the dummy_frame_sniffer.
3037 (frame_unwind_find_by_frame): Simplify.
3038 * frame-base.c (struct frame_base_table): Delete field "p".
3039 (append_predicate): Delete parameter "p".
3040 (frame_base_append_predicate): Delete function.
3041 (frame_base_append_sniffer): Update call to append_predicate.
3042 (frame_base_free): Delete function.
3043 (frame_base_find_by_frame): Simplify.
3044 (_initialize_frame_base): Pass NULL as "free" to
3045 register_gdbarch_data.
3046 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3047 (x86_64_sigtramp_frame_sniffer): Replace
3048 "x86_64_sigtramp_frame_p".
3049 (x86_64_init_abi): Set the frame unwind sniffers.
3050 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3051 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3052 (m68k_gdbarch_init): Set the frame unwind sniffers.
3053 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3054 "i386_sigtramp_frame_p".
3055 (i386_frame_sniffer): Replace "i386_frame_p".
3056 (i386_gdbarch_init): Set the frame unwind sniffers.
3057 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3058 (avr_gdbarch_init): Set the frame unwind sniffers.
3059 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3060 "alpha_sigtramp_frame_p"
3061 (alpha_heuristic_frame_sniffer): Replace
3062 "alpha_heuristic_frame_p".
3063 (alpha_gdbarch_init): Set the frame unwind sniffers.
3064 (alpha_dwarf2_init_abi): Ditto.
3065 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3066 "alpha_debug_frame_p".
3067 (alpha_mdebug_frame_base_sniffer): Replace
3068 "alpha_mdebug_frame_base_p".
3069 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3070 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3071 (d10v_gdbarch_init): Set the frame unwind sniffer.
3072 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3073 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3074 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3075 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3076 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3077 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3078
48db5a3c
CV
30792003-07-16 Michael Snyder <msnyder@redhat.com>
3080
3081 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3082 should go thru sh_dsp_register_sim_regno, else the dsp regs
3083 will not get the right values.
3084
30852003-07-16 Corinna Vinschen <vinschen@redhat.com>
3086
3087 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3088 deprecated_store_floating by call to store_typed_floating.
3089 (sh_sh4_register_convert_to_raw): Substitute call to
3090 deprecated_extract_floating by call to extract_typed_floating.
3091
30922003-07-16 Corinna Vinschen <vinschen@redhat.com>
3093
3094 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3095
30962003-07-16 Corinna Vinschen <vinschen@redhat.com>
3097
3098 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3099 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3100 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3101 as possible.
3102 (do_pseudo_register): Remove.
3103 (sh_push_dummy_code): New function.
3104 (sh64_store_struct_return): Rename from sh_store_struct_return.
3105 Only called for sh64 now.
3106 (sh_extract_struct_value_address): Regcache'ify.
3107 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3108 and accomodate new tasks.
3109 (sh64_push_return_address): Rename from sh_push_return_address.
3110 Only called for sh64 now.
3111 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3112 Regcache'ify.
3113 (sh3e_sh4_extract_return_value): Regcache'ify.
3114 (sh_default_store_return_value): Ditto.
3115 (sh3e_sh4_store_return_value): Ditto.
3116 (sh_default_register_byte): Remove.
3117 (sh_sh4_register_byte): Remove.
3118 (sh_default_register_raw_size): Remove.
3119 (sh_sh4_register_raw_size): Remove.
3120 (sh_register_virtual_size): Remove.
3121 (sh_sh3e_register_virtual_type): Remove.
3122 (sh_sh3e_register_type): New function.
3123 (sh_sh4_register_virtual_type): Remove.
3124 (sh_sh4_register_type): New function.
3125 (sh_default_register_virtual_type): Remove.
3126 (sh_default_register_type): New function.
3127 (do_fv_register_info): Add parameters to accomodate call from
3128 sh_print_registers_info.
3129 (do_dr_register_info): Ditto.
3130 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3131 Add parameters to accomodate call from sh_print_registers_info.
3132 (sh_do_fp_register): Ditto.
3133 (sh64_do_pseudo_register): Call do_dr_register_info,
3134 do_fv_register_info and sh_do_fp_register with default parameters.
3135 (sh_do_register): Add parameters to accomodate call from
3136 sh_print_registers_info.
3137 (sh_print_register): Ditto.
3138 (sh_print_registers_info): Rename from sh_do_registers_info.
3139 Add parameters to be used as gdbarch_print_registers_info
3140 implementation. Accomodate removed do_pseudo_register function
3141 pointer.
3142 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3143 function pointer. Call sh_print_register with default parameters.
3144 (sh64_do_registers_info): Call sh_print_registers_info instead of
3145 sh_do_registers_info.
3146 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3147 detection of deprecated vs. non-deprecated functionality.
3148 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3149 function pointer assignments by direct function calls.
3150
e8a89fe2
AC
31512003-07-15 Andrew Cagney <cagney@redhat.com>
3152
3153 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3154 (frame_register_unwind, create_new_frame): Ditto.
3155 (legacy_get_prev_frame, get_frame_type): Ditto.
3156 (get_frame_base_address): Use frame_base_find_by_frame.
3157 (get_frame_locals_address): Use frame_base_find_by_frame.
3158 (get_frame_args_address): Use frame_base_find_by_frame.
3159 * frame-base.h (frame_base_sniffer_ftype): Declare.
3160 (frame_base_append_sniffer): Declare.
3161 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3162 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3163 (frame_base_append_sniffer): New function.
3164 (frame_base_append_predicate): Add a NULL sniffer.
3165 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3166 (struct frame_base_table): Add "sniffer".
3167 (frame_base_free): Free the "sniffer" table.
3168 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3169 (frame_unwind_append_sniffer): Declare.
3170 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3171 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3172 (struct frame_unwind_table): Add "sniffer", delete "middle".
3173 (append_predicate): Add "sniffer" parameter, append the sniffer.
3174 (frame_unwind_init): Update append_predicate call.
3175 (frame_unwind_append_sniffer): New function.
3176 (frame_unwind_append_predicate): Update append_predicate call.
3177 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3178
0714963c
AC
31792003-07-15 Andrew Cagney <cagney@redhat.com>
3180
3181 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3182 before code inhibiting repeated unwind attempts. Add to
3183 commentary on that test's problems.
3184 * blockframe.c (inside_main_func): Look for "main" in the minimal
3185 symbol table.
3186 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3187 identical.
3188
d9170e22
AC
31892003-07-15 Andrew Cagney <cagney@redhat.com>
3190
3191 * complaints.c (struct explanation): Define.
3192 (struct complaints): Change type of "explanation" to "struct
3193 explanation".
3194 (symfile_explanations): Convert to a "struct explanation" table.
3195 (vcomplaint): Update.
3196
eba29c8c
ML
31972003-07-15 Michal Ludvig <mludvig@suse.cz>
3198
3199 * x86-64-linux-nat.c (regmap): Removed.
3200 (supply_gregset, fill_gregset): Call
3201 x86_64_linux_(fill,supply)_gregset functions.
3202 * x86-64-linux-tdep.c (USER_*): New defines.
3203 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3204 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3205 New functions.
3206 (fetch_core_registers): Ditto.
3207 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3208 * x86-64-linux-tdep.h: New file.
3209 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3210 and core-regset.o.
3211 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3212
68cc0bfb
MK
32132003-07-13 Mark Kettenis <kettenis@gnu.org>
3214
88a115f7
MK
3215 * x86-64-tdep.c (x86_64_store_return_value): Use
3216 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3217
68cc0bfb
MK
3218 * configure.host: Add x86_64-*-freebsd*.
3219 * configure.tgt: Add x86_64-*-freebsd*.
3220 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3221 * amd64fbsd-nat.c: New file.
3222 * amd64fbsd-tdep.c: New file.
3223 * config/i386/nm-fbsd64.h: New file.
3224 * config/i386/fbsd64.mh: New file.
3225 * config/i386/fbsd64.mt: New file.
3226
138e7be5
MK
32272003-07-11 Mark Kettenis <kettenis@gnu.org>
3228
3229 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3230 `sc_regs_offset' and `sc_fpregs_offset'.
3231 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3232 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3233 (alpha_sigtramp_register_address): Rewrite to use new members of
3234 `struct gdbarch_tdep'.
3235 (alpha_gdbarch_init): Initialize new members of struct
3236 gdbarch_tdep'.
3237 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3238 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3239 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3240 (alphafbsd_pc_in_sigtramp): Implement.
3241 (alphafbsd_sigtramp_offset): New function.
3242 (alphafbsd_sigcontext_addr): New function.
3243 (alphafbsd_init_abi): Initialize signal trampoline related members
3244 of `struct gdbarch_tdep'.
3245 (_initialize_alphafbsd_tdep): Add prototype.
3246
95303a68
TR
32472003-07-11 Theodore A. Roth <troth@openavr.org>
3248
ba292e4c
TR
3249 * Makefile.in (install-only): Quote sed expression when generating
3250 transformed_name.
95303a68 3251
6896c0c7
RH
32522003-07-11 Richard Henderson <rth@redhat.com>
3253
3254 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3255 * dwarf2-frame.c: Include complaints.h.
3256 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3257 variable initialization; return NULL on error.
3258 (decode_frame_entry): New.
3259
8edd5d01
AC
32602003-07-11 Andrew Cagney <cagney@redhat.com>
3261
c4a09524
AC
3262 * frame.h (frame_address_in_block): Delete declaration.
3263 * blockframe.c (frame_address_in_block): Delete function.
3264 (get_frame_block): Use get_frame_address_in_block.
3265 (block_innermost_frame): Ditto.
3266 * stack.c (print_frame, backtrace_command_1): Ditto.
3267
8edd5d01
AC
3268 * frame.h (get_frame_address_in_block): Declare.
3269 (frame_unwind_address_in_block): Declare.
3270 * frame.c (frame_unwind_address_in_block): New function.
3271 (get_frame_address_in_block): New function.
3272
f7968451
AC
32732003-07-10 Andrew Cagney <cagney@redhat.com>
3274
3275 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3276 pre-default. Note: re-generate has no effect.
3277
ae99b398
AC
32782003-07-10 Andrew Cagney <cagney@redhat.com>
3279
3280 * gdbarch.sh: When a variable, but not a function, compare against
3281 0. Fix problem in previous patch.
3282 * gdbarch.c: Re-generate.
3283
956ac328
AC
32842003-07-10 Andrew Cagney <cagney@redhat.com>
3285
3286 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3287 functions against NULL, not 0.
3288 * gdbarch.c: Re-generate.
3289
287c3240
FF
32902003-07-10 Fred Fish <fnf@ninemoons.com>
3291
3292 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3293 null string instead of a null pointer.
3294 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3295
32f63c4b
MS
32962003-07-09 Michael Snyder <msnyder@redhat.com>
3297
3298 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3299
402ecd56
MK
33002003-07-09 Mark Kettenis <kettenis@gnu.org>
3301
3302 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3303 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3304 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3305 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3306 * x86-64-tdep.c: ... from here.
3307
c481dac7
AS
33082003-07-09 Andreas Schwab <schwab@suse.de>
3309
3310 * m68k-tdep.h (enum struct_return): Define.
3311 (struct gdbarch_tdep): Add struct_return.
3312 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3313 bytes are padded to the right, not to the left. Pass struct value
3314 address in register %a1, not on stack.
3315 (m68k_use_struct_convention): New function.
3316 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3317 struct_return in tdep to pcc_struct_return.
3318 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3319 reg_struct_return.
3320
64176fa3
JB
33212003-07-09 Joel Brobecker <brobecker@gnat.com>
3322
3323 * somread.c (som_symfile_offsets): Fix compilation error.
3324
96a4ee76
AC
33252003-07-09 Andrew Cagney <cagney@redhat.com>
3326
3327 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3328 Add comments about the checks.
3329
1517c6d1
AC
33302003-07-08 Andrew Cagney <cagney@redhat.com>
3331
3332 * Makefile.in: Make dependency section headers consistent.
3333 (config_h): Move to $BUILD headers section.
3334 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3335 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3336 (ada-exp.tab.c): Move to YACC/LEX section.
3337 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3338 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3339
dc5dd1eb
KW
33402003-07-08 Kris Warkentin <kewarken@qnx.com>
3341
3342 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3343 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3344 of strerror with safe_strerror, use ISO C function definitions,
3345 and replace instances of sprintf with snprintf.
dc5dd1eb 3346
612dde91
AC
33472003-07-07 Andrew Cagney <cagney@redhat.com>
3348
3349 * frame.c (get_prev_frame): Enable check for identical frames.
3350 Update comments. Update error messages.
3351
492c11d3
JB
33522003-07-07 Joel Brobecker <brobecker@gnat.com>
3353
3354 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3355
376a5a49
JB
33562003-07-07 Joel Brobecker <brobecker@gnat.com>
3357
3358 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3359 sort_symtab_syms, no longer necessary.
3360
22b4a9ad
JB
33612003-07-07 Joel Brobecker <brobecker@gnat.com>
3362
3363 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3364
5bbcb741
JB
33652003-07-07 Joel Brobecker <brobecker@gnat.com>
3366
3367 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3368 (mips_register_byte): Likewise.
3369
c139e7d9
DJ
33702003-07-07 Daniel Jacobowitz <drow@mvista.com>
3371
3372 * Makefile.in (sparc_tdep_h): New.
3373 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3374 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3375 * sparc-linux-nat.c: Include "sparc-tdep.h".
3376 * sparc-nat.c: Likewise.
3377 * sparc-tdep.c: Likewise.
3378 * sparc64nbsd-nat.c: Likewise.
3379 * sparcnbsd-nat.c: Likewise.
3380 * sparcnbsd-tdep.c: Likewise.
3381 * sparc-tdep.h: New file.
3382 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3383 and sparc_npc_regnum.
3384
fd8f87c5
DJ
33852003-07-07 Daniel Jacobowitz <drow@mvista.com>
3386
3387 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3388 (mips_linux_cannot_store_register): List supported instead of
3389 unsupported registers.
3390
13adf674
DJ
33912003-07-07 Daniel Jacobowitz <drow@mvista.com>
3392
3393 * disasm.c (dump_insns): Separate instructions from addresses.
3394
8de307e0
AS
33952003-07-07 Andreas Schwab <schwab@suse.de>
3396
3397 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3398 dependencies.
3399 * m68k-tdep.c (NUM_FREGS): Delete.
3400 (SIG_PC_FP_OFFSET): Delete.
3401 (TARGET_M68K): Delete.
3402 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3403 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3404 P_MOVEL_SP, P_MOVEML_SP): Define.
3405 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3406 P_TRAP): Delete.
3407 (m68k_register_raw_size): Delete.
3408 (m68k_register_virtual_size): Delete.
3409 (m68k_register_type): Renamed from m68k_register_virtual_type and
3410 add gdbarch argument.
3411 (m68k_store_struct_return): Delete.
3412 (m68k_deprecated_extract_return_value): Delete.
3413 (m68k_deprecated_extract_struct_value_address): Delete.
3414 (m68k_frame_chain): Delete.
3415 (m68k_frame_saved_pc): Delete.
3416 (m68k_fix_call_dummy): Delete.
3417 (m68k_push_dummy_frame): Delete.
3418 (m68k_pop_frame): Delete.
3419 (m68k_extract_return_value): New function.
3420 (m68k_store_return_value): Rewrite using regcache.
3421 (m68k_extract_struct_value_address): Rewrite using regcache.
3422 (m68k_push_dummy_call): New function.
3423 (struct m68k_frame_cache): Define.
3424 (m68k_alloc_frame_cache): New function.
3425 (m68k_analyze_frame_setup): New function.
3426 (m68k_analyze_register_saves): New function.
3427 (m68k_analyze_prologue): New function.
3428 (m68k_skip_prologue): Rewrite using above functions.
3429 (m68k_unwind_pc): New function.
3430 (m68k_frame_cache): New function.
3431 (m68k_frame_this_id): New function.
3432 (m68k_frame_prev_register): New function.
3433 (m68k_frame_unwind): New variable.
3434 (m68k_frame_p): New function.
3435 (m68k_sigtramp_frame_cache): New function.
3436 (m68k_sigtramp_frame_this_id): New function.
3437 (m68k_sigtramp_frame_prev_register): New function.
3438 (m68k_sigtramp_frame_unwind): New variable.
3439 (m68k_sigtramp_frame_p): New function.
3440 (m68k_frame_base_address): New function.
3441 (m68k_frame_base): New function.
3442 (m68k_unwind_dummy_id): New function.
3443 (fill_gregset): Use regcache_collect.
3444 (fill_fpregset): Likewise.
3445 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3446 defined.
3447 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3448 deprecated_init_frame_pc, deprecated_store_struct_return,
3449 deprecated_extract_return_value, deprecated_store_return_value,
3450 deprecated_frame_chain, deprecated_frame_saved_pc,
3451 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3452 deprecated_register_virtual_size,
3453 deprecated_max_register_raw_size,
3454 deprecated_max_register_virtual_size,
3455 deprecated_register_virtual_type, deprecated_register_size,
3456 deprecated_register_byte, deprecated_register_bytes,
3457 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3458 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3459 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3460 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3461 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3462 deprecated_push_dummy_frame, deprecated_pop_frame,
3463 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3464 only if SYSCALL_TRAP is defined. Set extract_return_value,
3465 store_return_value, extract_struct_value_address, register_type,
3466 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3467 predicates.
3468 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3469 M68K_MAX_REGISTER_SIZE): Define.
3470 (struct m68k_sigtramp_info): Define.
3471 (struct gdbarch_tdep): Add get_sigtramp_info.
3472 * m68klinux-nat.c (fetch_register): Use register_size instead of
3473 REGISTER_RAW_SIZE. Don't put assignment in if.
3474 (store_register): Likewise.
3475 (fetch_inferior_registers): Likewise.
3476 (store_inferior_registers): Likewise.
3477 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3478 (m68k_linux_frame_saved_pc): Delete.
3479 (m68k_linux_sigcontext_reg_offset,
3480 m68k_linux_ucontext_reg_offset): Define.
3481 (m68k_linux_get_sigtramp_info): New function.
3482 (m68k_linux_extract_return_value): Rewrite using regcache.
3483 (m68k_linux_store_return_value): Likewise.
3484 (m68k_linux_extract_struct_value_address): Likewise.
3485 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3486 Don't set deprecated_frame_saved_pc,
3487 deprecated_extract_return_value, deprecated_store_return_value,
3488 deprecated_extract_struct_value_address. Set
3489 extract_return_value, store_return_value,
3490 extract_struct_value_address.
3491
eb8bc282
AC
34922003-07-07 Andrew Cagney <cagney@redhat.com>
3493
3494 * expprint.c: Include "user-regs.h" instead of "frame.h".
3495 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3496 frame_map_regnum_to_name.
3497 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3498 (frame_map_name_to_regnum): Simplify, call
3499 user_reg_map_name_to_regnum.
3500 (frame_map_regnum_to_name): Simplify, call
3501 user_reg_map_regnum_to_name.
3502 (frame_register_unwind): Update.
3503 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3504 (_initialize_frame_reg): Call user_reg_add_builtin.
3505 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3506 (value_of_register): Use value_of_user_reg.
3507 * eval.c (evaluate_subexp_standard): Update.
3508 * parse.c (write_dollar_variable): Update.
3509 * d10v-tdep.c (d10v_print_registers_info): Update.
3510 * infcmd.c (registers_info): Update.
3511 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3512 (builtin_regs_h): Delete macro.
3513 (user_regs_h): Define.
3514 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3515 (builtin-regs.o): Delete target.
3516 (user-regs.o): Specify dependencies.
3517 (expprint.o): Update dependencies.
3518 (findvar.o): Update dependencies.
3519 (frame.o): Update dependencies.
3520 (std-regs.o): Update dependencies.
3521
9f476a01
CF
35222003-07-06 Christopher Faylor <cgf@redhat.com>
3523
3524 * win32-nat.c (solib_symbols_add): Use one variable for all section
3525 address stuff. Pass variable rather than address of variable to
3526 safe_symbol_file_add.
3527
a731b831
AS
35282003-07-06 Andreas Schwab <schwab@suse.de>
3529
3530 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3531
9f83329d
JB
35322003-07-04 Joel Brobecker <brobecker@gnat.com>
3533
3534 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3535
27e28cc5
KW
35362003-07-04 Kris Warkentin <kewarken@qnx.com>
3537
3538 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3539
35402003-07-04 Kris Warkentin <kewarken@qnx.com>
3541
3542 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3543 * config/i386/nto.mh: New file.
3544 * config/i386/nm-nto.h: New file.
3545 * configure.host: Add i[3456]86-*-nto*.
3546
100f2e98
JB
35472003-07-03 Joel Brobecker <brobecker@gnat.com>
3548
3549 * remote-vx.c (vx_add_symbols): Fix compilation error.
3550
e23457df
AC
35512003-07-03 Andrew Cagney <cagney@redhat.com>
3552
3553 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3554 * gdbarch.h, gdbarch.c: Re-generate.
3555 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3556 (legacy_register_name): Declare.
3557 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3558 (REGISTER_NAME): Define.
3559 * sparc-tdep.c (legacy_register_name): New function.
3560 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3561 (REGISTER_NAME): Define.
3562 (hppa64_register_name): Declare.
3563 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3564 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3565 (hppa64_register_name): New function.
3566 (hppa_register_name): New function.
3567 * arch-utils.c (legacy_register_name): Delete.
3568 * arch-utils.h (legacy_register_name): Delete.
3569
38caaeec
DJ
35702003-07-03 Daniel Jacobowitz <drow@mvista.com>
3571
3572 * cli/cli-interp.c (cli_interpreter_resume): Update the
3573 cli_uiout's stream to gdb_stdout.
3574
dadd712e
AC
35752003-07-03 Andrew Cagney <cagney@redhat.com>
3576
3577 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3578 predicate.
3579 * gdbarch.h, gdbarch.c: Re-generate.
3580 * regcache.c (init_regcache_descr): Use legacy code when either
3581 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3582
c7f1390e
DJ
35832003-07-02 Daniel Jacobowitz <drow@mvista.com>
3584
3585 * NEWS: Move "set logging" entry into GDB 6.0 section.
3586
4bc8c588
JB
35872003-07-02 Jim Blandy <jimb@redhat.com>
3588
a9dd42f1
JB
3589 * s390-tdep.c (struct frame_extra_info): new member:
3590 'stack_bought_valid'.
3591 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3592 initialize fextra_info->stack_bought.
3593 (s390_frameless_function_invocation): Don't trust the value of
3594 fextra_info_ptr->stack_bought unless
3595 fextra_info->stack_bought_valid is set.
3596
4bc8c588
JB
3597 New S390 prologue analyzer.
3598 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3599 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3600 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3601 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3602 compute_x_addr, s390_on_stack, s390_store,
3603 s390_get_signal_frame_info): New functions.
3604 (S390_NUM_SPILL_SLOTS): New macro.
3605 (s390_get_frame_info): Rewritten.
3606 (is_arg_reg): Deleted.
3607
3608 Break out the decoding of S/390 instructions into separate
3609 functions, to make it more legible, and easier to check
3610 against the spec.
3611 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3612 is_rx, is_rxe): New functions.
3613 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3614 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3615 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3616 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3617 enums for opcode values. (Is this an improvement?)
3618
fd13a04a
AC
36192003-07-02 Andrew Cagney <cagney@redhat.com>
3620
3621 * i386-tdep.c: Revert change committed as part of trad-frame code
3622 below.
3623
3f8091c1
DJ
36242003-07-02 Daniel Jacobowitz <drow@mvista.com>
3625
3626 * breakpoint.c (insert_catchpoint): Make static.
3627
8dd5115e
AS
36282003-07-02 Andreas Schwab <schwab@suse.de>
3629
3630 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3631 former ia64_push_arguments and ia64_push_return_address, and use
3632 regcache functions instead of read/write_register.
3633 (ia64_gdbarch_init): Set push_dummy_call instead of
3634 deprecated_push_arguments and deprecated_push_return_address.
3635
a2229c23
AJ
36362003-07-01 Andreas Jaeger <aj@suse.de>
3637
3638 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3639 before the call.
3640 Set %rax only to number of SSE registers used.
3641
3b3850e8
AC
36422003-07-01 Andrew Cagney <cagney@redhat.com>
3643
3644 * trad-frame.h: Update comments, a -1 .addr is reserved.
3645 (trad_frame_value_p, trad_frame_addr_p): Declare.
3646 (trad_frame_reg_p): Declare.
3647 (trad_frame_set_value): Rename trad_frame_register_value.
3648 (trad_frame_set_unknown): Declare.
3649 * trad-frame.c (trad_frame_realreg_p): New function.
3650 (trad_frame_addr_p, trad_frame_value_p): New function.
3651 (trad_frame_set_unknown): New function.
3652 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3653 (trad_frame_prev_register): Use trad_frame_realreg_p,
3654 trad_frame_addr_p and trad_frame_value_p.
3655 (trad_frame_set_value): Rename trad_frame_register_value.
3656 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3657 and trad_frame_set_value.
a2229c23 3658
4d819d0e
JB
36592003-06-30 Jim Blandy <jimb@redhat.com>
3660
3661 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3662 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3663 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3664 for 16 registers, and then 32 more bytes.
3665 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3666 New macros.
3667 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3668 Move up in the file, since it's now used by is_simple_arg.
3669 (is_simple_arg): Don't assume registers are four bytes long.
3670 Exclude all double arguments. Extended floats are not simple
3671 args.
3672 (is_power_of_two): New function.
3673 (pass_by_copy_ref): Call is_power_of_two, and check that the
3674 length fits in a register, rather than listing all the acceptable
3675 sizes. Extended floats are not passed by reference.
3676 (s390_push_arguments): Don't assume registers are four bytes long.
3677 Reserve an argument register to point to the buffer for structures
3678 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3679 S390_STACK_FRAME_OVERHEAD.
3680
1ad828f1
AS
36812003-06-30 Andreas Schwab <schwab@suse.de>
3682
3683 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3684 format error message.
3685
39b00981
JB
36862003-06-30 Joel Brobecker <brobecker@gnat.com>
3687
3688 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3689
b2a7f303
DC
36902003-06-30 David Carlton <carlton@kealia.com>
3691
3692 Band-aid for PR c++/1245.
3693 * Makefile.in (cp-support.o): Depend on complaints_h.
3694 * cp-support.c: Include complaints.h. Add declaration for
3695 find_last_component.
3696 (cp_find_first_component): Separate code into
3697 cp_find_first_component_aux.
3698 (cp_find_first_component_aux): Call demangled_name_complaint.
3699 (demangled_name_complaint): New.
3700
a257b5bb
AC
37012003-06-30 Andrew Cagney <cagney@redhat.com>
3702
3703 * remote.c (remote_write_bytes): Explicitly compute and then use
3704 the payload size. Update comments to reflect. Fixes problem of
3705 GDB not sending small packets as found by Fred Fish.
3706
0a2cfde4
AC
37072003-06-30 Andrew Cagney <cagney@redhat.com>
3708
3709 * remote.c (remote_async_wait): Fix -Wformat problem.
3710
3fcb8548
AC
37112003-06-29 Andrew Cagney <cagney@redhat.com>
3712
3713 * remote.c (remote_wait): Call error, and not warning, when the
3714 packet is corrupt.
3715 (remote_async_wait): Ditto.
3716
9f9970a3
DJ
37172003-06-29 Daniel Jacobowitz <drow@mvista.com>
3718
3719 * sparc-tdep.c (sparc_y_regnum): Make external again.
3720
83a8ccca
DJ
37212003-06-29 Daniel Jacobowitz <drow@mvista.com>
3722
3723 * cli/cli-logging.c (pop_output_files): Add void to function
3724 definition.
3725
d2cf594a
AC
37262003-06-29 Andrew Cagney <cagney@redhat.com>
3727
3728 * frame.c (frame_register_unwind): Use unsigned char when dumping
3729 the buffer contents.
3730
0fac0b41
DJ
37312003-06-28 Daniel Jacobowitz <drow@mvista.com>
3732
3733 * cli/cli-logging.c: New file.
3734 * cli-out.c (struct ui_out_data): Add original_stream.
3735 (cli_redirect): New function.
3736 (cli_ui_out_impl): Add cli_redirect.
3737 (cli_out_new): Initialize original_stream.
3738 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3739 (uo_redirect, ui_out_redirect): New.
3740 * ui-out.h (struct ui_out_impl): Add redirect member.
3741 (redirect_ftype): New.
3742 (ui_out_redirect): Add prototype.
3743 * Makefile.in: Add rules for cli-logging.c.
3744 * NEWS: Mention "set logging".
3745
88a07d7c
EZ
37462003-06-27 Elena Zannoni <ezannoni@redhat.com>
3747
3748 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3749
4eb58876
AC
37502003-06-27 Andrew Cagney <cagney@redhat.com>
3751
3752 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3753 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3754 * avr-tdep.c (avr_call_dummy_address): Delete function.
3755 (avr_gdbarch_init): Do not set call_dummy_address.
3756
1549f619
EZ
37572003-06-27 Elena Zannoni <ezannoni@redhat.com>
3758
3759 * symfile.c (syms_from_objfile): Move variables to inner block.
3760 Move the checks for the non-mainline case a bit earlier to avoid
3761 doing some useless computations.
3762
3cb3398d
EZ
37632003-06-27 Elena Zannoni <ezannoni@redhat.com>
3764
3765 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3766
3799ccc6
EZ
37672003-06-26 Elena Zannoni <ezannoni@redhat.com>
3768
3769 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3770 sections.
3771
ce1f6491
MC
37722003-06-26 Michael Chastain <mec@shout.net>
3773
3774 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3775 gdb/testsuite/gdb.c++/pr-1210.exp.
3776
d958dfd0
AC
37772003-06-26 Andrew Cagney <cagney@redhat.com>
3778
3779 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3780 altivec_expression.h and altivec_registers.h.
3781
d31431ed
AC
37822003-06-26 Andrew Cagney <cagney@redhat.com>
3783
3784 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3785 info->mach when MIPS16. Patch suggested by Fred Fish.
3786
714b1282
AC
37872003-06-26 Andrew Cagney <cagney@redhat.com>
3788
3789 * utils.c (internal_vproblem): Print the problem to a reason
3790 buffer and then pass to query. Make the msg variable more local.
3791
42efa47a
AC
37922003-06-26 Andrew Cagney <cagney@redhat.com>
3793
3794 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3795 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3796 * gdbarch.h, gdbarch.c: Re-generate.
3797 * frame-base.c (default_frame_args_address): Update. Use
3798 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3799 not available.
3800 (default_frame_locals_address): Ditto for
3801 DEPRECATED_FRAME_LOCALS_ADDRESS.
3802 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3803 (vax_frame_num_args): Update.
3804 (vax_gdbarch_init): Update.
3805 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3806 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3807 * mcore-tdep.c (mcore_gdbarch_init): Update.
3808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3809 * ia64-tdep.c (ia64_gdbarch_init): Update.
3810 * symtab.h (address_class): Update comments.
3811 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3812 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3813 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3814 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3815 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3816 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3817 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3818 * alpha-mdebug-tdep.c: Update.
3819 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3820
8ffd9b1b
AJ
38212003-06-26 Andreas Jaeger <aj@suse.de>
3822
3823 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3824 of SSE registers so that varargs functions work. Rework handling
3825 of passing arguments on the stack.
3826 (x86_64_store_return_value): Return double and float values in SSE
3827 register.
3828
e8ac10a6
MC
38292003-06-24 Michael Chastain <mec@shout.net>
3830
3831 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3832 the "constructor breakpoints ignored" bug.
3833
986af8e6
DC
38342003-06-25 David Carlton <carlton@kealia.com>
3835
3836 * MAINTAINERS: Update e-mail address.
3837
d64558a5
JB
38382003-06-24 Jim Blandy <jimb@redhat.com>
3839
e538d2d7
JB
3840 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3841
02631ec0
JB
3842 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3843 function.
3844 (ppc_linux_init_abi): Register it as the
3845 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3846
e716d87a
JB
3847 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3848 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3849 method.
3850
d64558a5
JB
3851 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3852 (ppc64_standard_linkage_target): Use it.
3853
449a5da4
AC
38542003-06-23 Andrew Cagney <cagney@redhat.com>
3855
3856 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3857 for 0 "int0" and 4 "int32" sized registers.
3858 * gdbtypes.c (builtin_type_int0): Define.
3859 (build_gdbtypes): Initialize builtin_type_int0.
3860 * gdbtypes.h (builtin_type_int0): Declare.
3861
b2a02dda
SC
38622003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3863
3864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3865 as characters are unsigned.
3866
fba3138e
DJ
38672003-06-22 Daniel Jacobowitz <drow@mvista.com>
3868
3869 PR gdb/1179
3870 * dwarfread.c (struct_type): Skip static fields without crashing.
3871
f6c8180b
AC
38722003-06-22 Andrew Cagney <cagney@redhat.com>
3873
3874 GDB 6.0 branch created.
f2c06f52
AC
3875 * README: Update.
3876 * PROBLEMS: Update. Empty.
3877 * NEWS: Update.
f6c8180b 3878
ae822768
DJ
38792003-06-22 Daniel Jacobowitz <drow@mvista.com>
3880
3881 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3882 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3883
261de166
AC
38842003-06-22 Andrew Cagney <cagney@redhat.com>
3885
3886 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3887 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3888 Velikov.
3889
30e94205
DJ
38902003-06-22 Daniel Jacobowitz <drow@mvista.com>
3891
3892 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3893 compilers.
3894
9e14d721
DJ
38952003-06-21 Daniel Jacobowitz <drow@mvista.com>
3896
3897 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3898 argument of val_print.
3899 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3900 to the address argument of baseclass_offset or target_read_memory.
3901 Do add it to the argument of cp_print_value_fields.
3902
a4b8ebc8
AC
39032003-06-21 Andrew Cagney <cagney@redhat.com>
3904
3905 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3906 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3907 instead of 0..NUM_REGS.
3908 (mips_register_reggroup_p): New function.
3909 (mips_pseudo_register_write): New function.
3910 (mips_pseudo_register_read): New function.
3911 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3912 based on the register's type.
3913 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3914 cooked.
3915 (mips_get_saved_register): Simplify. Assert that REGNO is a
3916 pseudo / cooked.
3917 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3918 (mips_register_type): Replace mips_register_virtual_type. Map
3919 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3920 when available.
3921 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3922 that the register is cooked / virtual.
3923 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3924 Only get the extra info when needed.
3925 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3926 (mips32_heuristic_proc_desc): Fetch the cooked register.
3927 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3928 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3929 (mips_print_register): Use gdbarch_register_type, instead of
3930 REGISTER_VIRTUAL_TYPE.
3931 (print_gp_register_row): Use gdbarch_register_type, instead of
3932 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3933 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3934 Print the pseudo / cooked registers.
3935 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3936 Print the pseudo / cooked registers.
3937 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3938 REG_NUM is pseudo / cooked.
3939 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3940 (mips_n32n64_xfer_return_value): Ditto.
3941 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3942 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3943 (mips_register_sim_regno): New function.
3944 (mips_gdbarch_init): Set deprecated_register_byte,
3945 register_group_p, pseudo_register_write, pseudo_register_read,
3946 register_sim_regno, and num_pseudo_regs. Set register_type,
3947 instead of register_virtual_type.
3948 * Makefile.in (mips-tdep.o): Update dependencies.
3949 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3950 REGISTER_VIRTUAL_TYPE.
3951 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3952 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3953 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3954 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3955 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3956
325ed089
DJ
39572003-06-21 Daniel Jacobowitz <drow@mvista.com>
3958
3959 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3960 * cli/cli-cmds.c: Include "gdb_vfork.h".
3961 (shell_escape): Use vfork.
3962
f0e7d0e8
AC
39632003-06-21 Andrew Cagney <cagney@redhat.com>
3964
c57bb9fa
AC
3965 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3966 32 bit floating-point register saves.
3967
6e51443a
AC
3968 * frame.h (deprecated_unwind_get_saved_register): Delete.
3969 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3970 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3971 and deprecated_get_next_frame_hack instead of
3972 deprecated_unwind_get_saved_register.
3973
ed183c7c
AC
3974 * mips-tdep.c (mips_dump_tdep): Do not print
3975 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3976
f0e7d0e8
AC
3977 * frame.c (get_frame_register): New function.
3978 (frame_unwind_register_signed): New function.
3979 (get_frame_register_signed): New function.
3980 (frame_unwind_register_unsigned): New function.
3981 (get_frame_register_unsigned): New function.
3982 * frame.h: Add comments on naming schema.
3983 (get_frame_register, frame_unwind_register_signed): Declare.
3984 (get_frame_register_signed, get_frame_register_signed): Declare.
3985 (frame_unwind_register_unsigned): Declare.
3986 (get_frame_register_unsigned): Declare.
3987
2224d941
TR
39882003-06-20 Theodore A. Roth <troth@openavr.org>
3989
3990 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3991
8619218d
TR
39922003-06-20 Theodore A. Roth <troth@openavr.org>
3993
3994 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3995 (avr_read_sp): Ditto.
3996
0b1b50c0
DJ
39972003-06-20 Daniel Jacobowitz <drow@mvista.com>
3998
3999 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4000 * config/arm/nm-linux.h: Likewise.
4001 * config/arm/tm-linux.h: Likewise.
4002 * config/ia64/nm-linux.h: Likewise.
4003 * config/ia64/tm-ia64.h: Likewise.
4004 * config/s390/tm-linux.h: Likewise.
4005 * config/s390/tm-s390.h: Likewise.
4006 * s390-nat.c: Likewise.
4007 * s390-tdep.c: Likewise.
4008
4009 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4010 * config/ia64/linux.mt: Likewise.
4011 * config/m68k/linux.mh: Likewise.
4012 * config/mips/linux.mt: Likewise.
4013 * config/powerpc/linux.mh: Likewise.
4014 * config/sh/linux.mt: Likewise.
4015
c8c18e65
KW
40162003-06-19 Kris Warkentin <kewarken@qnx.com>
4017
4018 * solib.c (solib_open): Change tests for whether to search
4019 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4020 comments.
4021
dcccef2e
TR
40222003-06-19 Theodore A. Roth <troth@openavr.org>
4023
4024 * avr-tdep.c (avr_frame_address): Delete function.
4025 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4026 set_gdbarch_frame_args_address.
4027
5861a190
AC
40282003-06-19 Andrew Cagney <cagney@redhat.com>
4029
4030 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4031 (REGISTER_CONVERT_FROM_TYPE): Delete.
4032 (mips_register_convert_to_type): Delete declaration.
4033 (mips_register_convert_from_type): Delete declaration.
4034 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4035 kernel/.
4036
0274a8ce
MS
40372003-06-19 Michael Snyder <msnyder@redhat.com>
4038
4039 * linux-nat.h: New file.
4040 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4041 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4042 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4043 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4044 (linux_make_note_section): Iterate over lwps instead of threads.
4045 (linux_do_thread_registers): Use lwp instead of merged pid.
4046 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4047 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4048 Add dependency on linux_nat_h.
4049
adf5f719
TR
40502003-06-19 Theodore A. Roth <troth@openavr.org>
4051
4052 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4053
6766a268
DJ
40542003-06-19 Daniel Jacobowitz <drow@mvista.com>
4055
4056 * varobj.c (get_type, get_target_type): Use check_typedef.
4057
1171114a
DJ
40582003-06-19 Daniel Jacobowitz <drow@mvista.com>
4059
4060 * breakpoint.c (insert_catchpoint): Call internal_error.
4061
adcf68a2
TR
40622003-06-19 Theodore A. Roth <troth@openavr.org>
4063
4064 * avr-tdep.c (avr_push_dummy_code): Delete function.
4065 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4066
ea67f13b
DJ
40672003-06-19 Daniel Jacobowitz <drow@mvista.com>
4068
4069 * arch-utils.c (default_prepare_to_proceed): Remove.
4070 (generic_prepare_to_proceed): Remove.
4071 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4072 (generic_prepare_to_proceed): Remove prototype.
4073 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4074 * gdbarch.c: Regenerate.
4075 * gdbarch.h: Regenerate.
4076 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4077 * hppah-nat.c (hppa_switched_threads): Remove.
4078 * infrun.c (prepare_to_proceed): New static function, copied from
4079 generic_prepare_to_proceed. Remove select_it argument.
4080 (proceed): Call prepare_to_proceed.
4081 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4082 variables.
4083 (ptrace_wait): Don't set the removed variables.
4084 (hppa_switched_threads): Remove.
4085 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4086 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4087 (lin_lwp_prepare_to_proceed): Remove prototype.
4088 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4089 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4090
4add8633
TR
40912003-06-18 Theodore A. Roth <troth@openavr.org>
4092
4093 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4094 trad-frame.h.
4095 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4096 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4097 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4098 (AVR_PROLOGUE_*): Enumerate prologue types.
4099 (struct frame_extra_info): Remove.
4100 (struct avr_unwind_cache): Define.
4101 (avr_write_sp): Delete function.
4102 (avr_read_fp): Ditto.
4103 (avr_init_extra_frame_info): Ditto.
4104 (avr_pop_frame): Ditto.
4105 (avr_frame_saved_pc): Ditto.
4106 (avr_saved_pc_after_call): Ditto.
4107 (avr_push_return_address): Ditto.
4108 (avr_frame_chain): Ditto.
4109 (avr_store_struct_return): Ditto.
4110 (avr_push_arguments): Ditto.
4111 (avr_scan_prologue): Update comments. Changed to set up the info for
4112 cache unwinding. Now returns end of prologue PC.
4113 (avr_skip_prologue): Better handling of functions lacking a prologue
4114 by using avr_scan_prologue.
4115 (avr_scan_arg_moves): New function.
4116 (avr_saved_regs_unwinder): Ditto.
4117 (avr_frame_unwind_cache): Ditto.
4118 (avr_unwind_pc): Ditto.
4119 (avr_frame_this_id): Ditto.
4120 (avr_frame_prev_register): Ditto.
4121 (avr_frame_p): Ditto.
4122 (avr_frame_base_address ): Ditto.
4123 (avr_unwind_dummy_id): Ditto.
4124 (avr_push_dummy_code): Ditto.
4125 (push_stack_item): Ditto.
4126 (pop_stack_item): Ditto.
4127 (avr_push_dummy_call): Ditto.
4128 (struct stack_item): Define.
4129 (avr_frame_unwind): Declare structure.
4130 (avr_frame_base): Ditto.
4131 (avr_gdbarch_init): Remove calls to
4132 set_gdbarch_deprecated_init_frame_pc,
4133 set_gdbarch_deprecated_target_read_fp,
4134 set_gdbarch_deprecated_dummy_write_sp,
4135 set_gdbarch_deprecated_fp_regnum,
4136 set_gdbarch_deprecated_push_arguments,
4137 set_gdbarch_deprecated_push_return_address,
4138 set_gdbarch_deprecated_pop_frame,
4139 set_gdbarch_deprecated_store_struct_return,
4140 set_gdbarch_deprecated_frame_init_saved_regs,
4141 set_gdbarch_deprecated_init_extra_frame_info,
4142 set_gdbarch_deprecated_frame_chain,
4143 set_gdbarch_deprecated_frame_saved_pc,
4144 set_gdbarch_deprecated_saved_pc_after_call.
4145 Add calls to set_gdbarch_push_dummy_call,
4146 set_gdbarch_push_dummy_code,
4147 frame_unwind_append_predicate,
4148 frame_base_set_default,
4149 set_gdbarch_unwind_dummy_id,
4150 set_gdbarch_unwind_pc.
4151 Wrap a long line.
4152
7be04a68
MS
41532003-06-18 Corinna Vinschen <vinschen@redhat.com>
4154
4155 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4156 registers for H8/300S.
4157 (h8300_print_registers_info): Ditto.
8ffd9b1b 4158 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4159
ae087d01
DJ
41602003-06-18 Daniel Jacobowitz <drow@mvista.com>
4161
4162 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4163 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4164 (lin_lwp_wait): Likewise. Update comments.
4165 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4166 (pull_pid_from_list, linux_record_stopped_pid): New.
4167
07d8f827
SC
41682003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4169
4170 * ada-lang.c (scan_discrim_bound): Name first argument.
4171 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4172 declared by ALL_BLOCK_SYMBOLS.
4173
7cb47b14
SC
41742003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4175
4176 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4177 ("regcache.h"): Include it.
4178 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4179
6ad8ae5c
DJ
41802003-06-17 Daniel Jacobowitz <drow@mvista.com>
4181
4182 * NEWS: Mention gdbserver detach change and "disconnect" command.
4183 * infcmd.c (disconnect_command): New function.
4184 (_initialize_infcmd): Add ``disconnect'' command.
4185 * remote.c (remote_async_detach): Delete.
4186 (remote_detach): Merge remote_async_detach.
4187 (remote_disconnect): New.
4188 (init_remote_ops): Set to_disconnect.
4189 (init_remote_cisco_ops): Likewise.
4190 (init_remote_async_ops): Likewise. Use remote_detach.
4191 * target.c (cleanup_target): Default to_disconnect.
4192 (update_current_target): Inherit to_disconnect.
4193 (target_disconnect, debug_to_disconnect): New functions.
4194 (setup_target_debug): Set to_disconnect.
4195 * target.h (struct target_ops): Add to_disconnect.
4196 (target_disconnect): Add prototype.
4197
687595f9
DJ
41982003-06-17 Daniel Jacobowitz <drow@mvista.com>
4199
4200 * breakpoint.c (insert_catchpoint): New function.
4201 (insert_breakpoints): Use catch_exceptions to call
4202 insert_catchpoint. Disable catchpoints if they fail to insert.
4203
29239a8f
DJ
42042003-06-17 Daniel Jacobowitz <drow@mvista.com>
4205
4206 * symfile.c (reread_symbols): Clear sym_private.
4207
2cdf3c63
AC
42082003-06-17 Andrew Cagney <cagney@redhat.com>
4209
4210 * trad-frame.h (struct frame_info): Add opaque declaration.
4211 * remote-fileio.h (struct cmd_list_element): Add opaque
4212 declaration.
4213 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4214 comments.
4215
cf0e1e0d
DJ
42162003-06-17 Daniel Jacobowitz <drow@mvista.com>
4217
4218 * remote.c (remote_prepare_to_store): Replace call to
4219 deprecated_read_register_bytes with multiple regcache_raw_read
4220 calls.
4221
192cdb19
KW
42222003-06-17 Kris Warkentin <kewarken@qnx.com>
4223
4224 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4225 (nto_find_and_open_solib): Likewise.
4226 (nto_init_solib_absolute_prefix): Likewise.
4227 (_initialize_nto_tdep): Fix indentation.
4228
89929b45
KW
42292003-06-17 Kris Warkentin <kewarken@qnx.com>
4230
4231 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4232
46019f27
KW
42332003-06-17 Kris Warkentin <kewarken@qnx.com>
4234
4235 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4236
1a38736e
JB
42372003-06-17 Jim Blandy <jimb@redhat.com>
4238
4239 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4240
3605c34a
TR
42412003-06-16 Theodore A. Roth <troth@openavr.org>
4242
4243 * avr-tdep.c (avr_extract_return_value): New function.
4244 (avr_gdbarch_init): Set extract_return_value method.
4245
870b3035
AC
42462003-06-16 Andrew Cagney <cagney@redhat.com>
4247
4248 * frame.h (deprecated_get_next_frame_hack): Declare.
4249 * frame.c (legacy_saved_regs_prev_register): Only require
4250 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4251 there are always saved regs.
4252 (deprecated_generic_get_saved_register): Do not require
4253 DEPRECATED_FRAME_INIT_SAVED_REGS.
4254 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4255 use frame ID unwind instead.
4256 (deprecated_get_next_frame_hack): New function.
4257
63d47a7d
CV
42582003-06-16 Corinna Vinschen <vinschen@redhat.com>
4259
4260 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4261 (h8300_push_dummy_call): ...this function. Some minor optimization.
4262 (h8300_push_return_address): Remove.
4263 (h8300_gdbarch_init): Remove calls to
4264 set_gdbarch_deprecated_dummy_write_sp,
4265 set_gdbarch_deprecated_push_arguments and
4266 set_gdbarch_deprecated_push_return_address.
4267 Add call to set_gdbarch_push_dummy_call.
4268
4bb1dc5e
CV
42692003-06-16 Corinna Vinschen <vinschen@redhat.com>
4270
4271 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4272 (E_PSEUDO_EXR_REGNUM): Ditto.
4273 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4274 registers into safe registers.
4bb1dc5e
CV
4275 (h8300_skip_prologue): Check for stm instruction to push registers
4276 used for register variables onto stack.
4277 (gdb_print_insn_h8300): Remove.
4278 (h8300_examine_prologue): Add a comment.
4279 (h8300_register_name): Take pseudo registers into account.
4280 (h8300s_register_name): Ditto.
4281 (h8300sx_register_name): Ditto.
4282 (h8300_print_register): Ditto.
4283 (h8300_print_registers_info): Define "nice" printing order.
4284 (h8300_saved_pc_after_call): Take pseudo registers into account.
4285 (h8300_register_type): Ditto. Return type used for remote connection
4286 when requesting real CCR or EXR register, return actual type when
4287 requesting pseudo CCR or EXR.
4288 (h8300_pseudo_register_read): New function.
4289 (h8300_pseudo_register_write): Ditto.
4290 (h8300_dbg_reg_to_regnum): Ditto.
4291 (h8300s_dbg_reg_to_regnum): Ditto.
4292 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4293 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4294 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4295 set_gdbarch_print_insn architecture dependent.
4296 Call set_gdbarch_pseudo_register_read and
4297 set_gdbarch_pseudo_register_write.
4298 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4299
a59fe496
AC
43002003-06-16 Andrew Cagney <cagney@redhat.com>
4301
4302 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4303 * gdbarch.h, gdbarch.c: Re-generate.
4304 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4305 * s390-tdep.c (s390_gdbarch_init): Update.
4306 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4307 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4308 * mips-tdep.c (mips_gdbarch_init): Update.
4309 * mcore-tdep.c (mcore_gdbarch_init): Update.
4310 * cris-tdep.c (cris_gdbarch_init): Update.
4311 * infcall.c (call_function_by_hand): Update.
4312 * ia64-tdep.c (ia64_push_arguments): Update comment.
4313 * frame.c (legacy_get_prev_frame): Do not assume
4314 SAVE_DUMMY_FRAME_TOS_P.
4315 * dummy-frame.c (find_dummy_frame): Update comment.
4316
6f4e5a41
AC
43172003-06-16 Andrew Cagney <cagney@redhat.com>
4318
4319 * regcache.c (do_cooked_read): Do not use register_valid_p.
4320
72fab697
TR
43212003-06-15 Theodore A. Roth <troth@openavr.org>
4322
4323 * avr-tdep.c (avr_register_type): Remove a blank line.
4324 (avr_scan_prologue): Correct some comments.
4325
e3d8b004
TR
43262003-06-15 Theodore A. Roth <troth@openavr.org>
4327
4328 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4329 prologue types.
8ffd9b1b 4330 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4331 option.
4332 Add code to scan -mcall-prologues for mega devices.
4333
866b76ea
TR
43342003-06-15 Theodore A. Roth <troth@openavr.org>
4335
4336 * avr-tdep.c (avr_register_byte): Delete function.
4337 (avr_register_raw_size): Delete function.
4338 (avr_register_virtual_size): Delete function.
4339 (avr_register_virtual_type): Delete function.
4340 (avr_register_type): New function.
4341 (avr_address_to_pointer): Remove unused code.
4342 (avr_read_fp): Need to read FP as two separate bytes due to change to
4343 avr_register_type() usage.
4344 (avr_gdbarch_init): Don't set deprecated_register_size.
4345 Don't set deprecated_register_bytes.
4346 Don't set deprecated_register_byte.
4347 Don't set deprecated_register_raw_size.
4348 Don't set deprecated_max_register_raw_size.
4349 Don't set deprecated_register_virtual_size.
4350 Don't set deprecated_max_register_virtual_size.
4351 Don't set deprecated_register_virtual_type.
4352 Set register_type method.
4353
3993f6b1
DJ
43542003-06-15 Daniel Jacobowitz <drow@mvista.com>
4355
4356 * Makefile.in (linux-nat.o): Add rule.
4357 * linux-nat.c: New file.
4358 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4359 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4360 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4361 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4362 * config/arm/linux.mh (NATDEPFILES): Likewise.
4363 * config/i386/linux.mh (NATDEPFILES): Likewise.
4364 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4365 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4366 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4367 * config/mips/linux.mh (NATDEPFILES): Likewise.
4368 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4369 * config/s390/s390.mh (NATDEPFILES): Likewise.
4370 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4371
786a90bb
MK
43722003-06-15 Mark Kettenis <kettenis@gnu.org>
4373
4374 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4375 replace out-of-date comment.
4376
3bd3f01e
AC
43772003-06-15 Andrew Cagney <cagney@redhat.com>
4378
4379 * rdi-share/host.h (Fail): Change to a varargs function.
4380 * remote-rdi.c (Fail): Update.
8ffd9b1b 4381
de5b9bb9
MK
43822003-06-15 Mark Kettenis <kettenis@gnu.org>
4383
4384 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4385 (i386_convert_register_p, i386_register_to_value,
4386 i386_register_from_value): Handle types longer than 8 bytes.
4387
d532c08f
MK
43882003-06-15 Mark Kettenis <kettenis@gnu.org>
4389
4390 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4391 Move floating-point code to new function in i387-tdep.c.
4392 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4393 New functions containing code moved here from i386-tdep.c.
4394 * i387-tdep.h: Add opaque declaration for `struct type'.
4395 (i387_register_to_value, i387_value_to_register): New prototypes.
4396 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4397 (x86_64_init_abi): Set convert_register_p, register_to_value and
4398 value_to_register here.
8ffd9b1b 4399
42c466d7
AC
44002003-06-14 Andrew Cagney <cagney@redhat.com>
4401
4402 * mips-tdep.c (mips_register_to_value): Make static.
4403 (mips_value_to_register): Make static.
4404 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4405 * ia64-tdep.c (ia64_register_raw_size): Make static.
4406 (ia64_register_virtual_size): Make static.
4407 (ia64_register_byte): Make static.
4408 * i387-tdep.c: Include "i387-tdep.h".
4409 (print_387_control_word): Delete function.
4410 (print_387_status_word): Delete function.
4411 (print_387_status_bits): Delete function.
4412 (print_387_control_bits): Delete function.
4413 * Makefile.in (i387-tdep.o): Update dependencies.
4414 * rdi-share/host.h (Fail): Declare.
4415 * remote-rdi.c (Fail): Update to match declaration.
4416
2a9cda49
AC
44172003-06-14 Andrew Cagney <cagney@redhat.com>
4418
4419 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4420 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4421 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4422 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4423 * README: Delete reference to remote-array.
4424 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4425 (remote-array.o): Delete target.
4426 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4427 * remote-array.c: Delete file.
4428
ff2e87ac
AC
44292003-06-14 Andrew Cagney <cagney@redhat.com>
4430 Mark Kettenis <kettenis@gnu.org>
4431
4432 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4433 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4434 parameter with "frame".
4435 * gdbarch.h, gdbarch.c: Re-generate.
4436 * frame.h (put_frame_register): Declare.
4437 * frame.c (put_frame_register): New function.
4438 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4439 (legacy_register_to_value): Rewrite, use "frame" to get the
4440 register value.
4441 (legacy_value_to_register): Rewrite, use "frame" to find the
4442 register's location before storing.
4443 * arch-utils.h (legacy_convert_register_p): Update.
4444 (legacy_register_to_value, legacy_value_to_register): Update.
4445 * findvar.c (value_from_register): Rewrite, eliminate use of
4446 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4447 "frame" to REGISTER_TO_VALUE.
4448 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4449 lval_reg_frame_relative + lval_register branch of the switch. Do
4450 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4451 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4452 I386_EDI_REGNUM): New defines.
4453 (i386_next_regnum, i386_convert_register_p,
4454 i386_register_to_value, i386_value_to_register): New functions.
4455 (i386_register_convertible, i386_register_convert_to_virtual,
4456 i386_convert_to_raw): Remove functions.
4457 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4458 value_to_register instead of register_convertible,
4459 register_convert_to_virtual and register_convert_to_raw.
4460 * mips-tdep.c (mips_convert_register_p): New function.
4461 (mips_value_to_register): Replace mips_register_convert_from_type.
4462 (mips_register_to_value): Replace mips_register_convert_to_type.
4463 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4464 register_to_value.
4465 * alpha-tdep.c (alpha_convert_register_p): Update.
4466 (alpha_value_to_register): Update, store the register.
4467 (alpha_register_to_value): Update, fetch the register.
4468
98be1e77
TR
44692003-06-14 Theodore A. Roth <troth@openavr.org>
4470
4471 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4472 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4473 Don't set deprecated_call_dummy_words.
4474 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4475 Don't set remote_translate_xfer_address.
4476 (avr_io_reg_read_command): Remove commented out debug printf.
4477 Wrap a long line.
4478
57bc6122
TR
44792003-06-14 Theodore A. Roth <troth@openavr.org>
4480
4481 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4482 causes gdb to seg fault.
4483
eb01fc62
DJ
44842003-06-14 Daniel Jacobowitz <drow@mvista.com>
4485
4486 * sparc-nat.c (fetch_inferior_registers): Correct
4487 a reference to "registers".
4488
3b3e6bee
DJ
44892003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4490
4491 * Makefile.in (exc_request_U_h): Define
4492 (exc_request_S_h): Likewise.
4493 (msg_reply_S_h): Likewise.
4494 (msg_U_h): Likewise.
4495 (notify_S_h): Likewise.
4496 (process_reply_S_h): Likewise.
4497 (gnu-nat.o): Depend on gdb_obstack_h
4498 * gnu-nat.c: Include "gdb_obstack.h".
4499
b8de8283
AC
45002003-06-13 Andrew Cagney <cagney@redhat.com>
4501
4502 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4503 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4504
f3be58bc
AC
45052003-06-13 Andrew Cagney <cagney@redhat.com>
4506
4507 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4508 when deprecated REGISTER macros can be deleted.
4509 * gdbarch.h, gdbarch.c: Re-generate.
4510
4c0122c8
JB
45112003-06-13 Jim Blandy <jimb@redhat.com>
4512
4513 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4514 Linux entry point symbols for _dl_debug_state, too.
4515
3e210248
AC
45162003-06-13 Andrew Cagney <cagney@redhat.com>
4517
4518 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4519 available, do not use the FP register, and always save the TOS.
4520 * dummy-frame.c (dummy_frame_this_id): Do not assert
4521 SAVE_DUMMY_FRAME_TOS.
4522 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4523 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4524 (i386_push_dummy_call): Add 8 to the returned SP.
4525 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4526 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4527 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4528 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4529 (x86_64_push_dummy_call): Return "sp + 16".
4530 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4531 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4532 save_dummy_frame_tos.
4533
0b65af49
JB
45342003-06-13 Jim Blandy <jimb@redhat.com>
4535
4536 * frv-tdep.c (frv_use_struct_convention): Delete static
4537 declaration for function deleted in my change of 2003-06-12.
4538
4ea2465e
TR
45392003-06-13 Theodore A. Roth <troth@openavr.org>
4540
4541 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4542 (avr_pointer_to_address): Shift code addrs left 1 bit.
4543 (avr_convert_from_func_ptr_addr): Delete function since operation is
4544 better handled by avr_address_to_pointer and avr_pointer_to_address.
4545 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4546
1581182a
MK
45472003-06-13 Mark Kettenis <kettenis@gnu.org>
4548
4549 From Kelley Cook <kelleycook@wideopenwest.com>:
4550 * configure.host: Accept i[34567]86 variants.
4551 * configure.tgt: Likewise.
4552 * nlm/configure.in: Likewise.
4553 * nlm/configure: Regenerated.
4554
7aa1783e
RE
45552003-06-13 Richard Earnshaw <rearnsha@arm.com>
4556
4557 * arm-tdep.c (solib-svr4.h): Dont' include it.
4558 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4559 * arm-linux-tdep.c: ... here. Make static.
4560 (arm_linux_init_abi): Register it.
4561 (solib-svr4.h): Include it.
4562 * Makefile.in: Update dependencies.
4563 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4564 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4565
0261a0d0
CV
45662003-06-13 Corinna Vinschen <vinschen@redhat.com>
4567
4568 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4569 indicate registers used for return values.
4570 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4571 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4572 members.
4573 (h8300_init_extra_frame_info): Ditto.
4574 (h8300_frame_locals_address): Removed.
4575 (h8300_frame_args_address): Removed.
4576 (h8300_extract_return_value): Use new regcache structure. Only care
4577 for 16 bit CPUs.
4578 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4579 (h8300_store_return_value): Use new regcache structure. Only care
4580 for 16 bit CPUs.
4581 (h8300h_store_return_value): Same function for 32 bit CPUs.
4582 (h8300_store_struct_return): Removed.
4583 (h8300_extract_struct_value_address): Use new regcache structure.
4584 (h8300h_extract_struct_value_address): Removed.
4585 (h8300_push_dummy_code): New function.
4586 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4587 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4588 set_gdbarch_store_return_value architecture dependent.
4589 Call set_gdbarch_push_dummy_code and
4590 set_gdbarch_extract_struct_value_address.
4591 Remove calls to set_gdbarch_frame_args_address,
4592 set_gdbarch_frame_locals_address,
4593 set_gdbarch_deprecated_store_struct_return,
4594 set_gdbarch_deprecated_extract_return_value,
4595 set_gdbarch_deprecated_extract_struct_value_address,
4596 set_gdbarch_deprecated_call_dummy_words and
4597 set_gdbarch_deprecated_sizeof_call_dummy_words.
4598
055c394a
CV
45992003-06-13 Corinna Vinschen <vinschen@redhat.com>
4600
4601 * h8300-tdep.c (h8300_register_byte): Remove.
4602 (h8300h_register_byte): Remove.
4603 (h8300_register_virtual_type): Remove. Substitute by...
4604 (h8300_register_type): New function.
4605 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4606 (h8300h_extract_struct_value_address): Ditto.
4607 (h8300_gdbarch_init): Drop calls to
4608 set_gdbarch_deprecated_register_byte and
4609 set_gdbarch_deprecated_register_virtual_type.
4610 Add call to set_gdbarch_register_type.
4611
9c04cab7
AC
46122003-06-13 Andrew Cagney <cagney@redhat.com>
4613
4614 * gdbarch.sh: Update comments on registers.
4615 (deprecated_register_byte): Rename register_byte.
4616 (deprecated_register_raw_size): Rename register_raw_size.
4617 (deprecated_register_virtual_size): Rename register_virtual_size.
4618 (deprecated_register_virtual_type): Rename register_virtual_type.
4619 * gdbarch.h, gdbarch.c: Re-generate.
4620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4621 * vax-tdep.c (vax_gdbarch_init): Update.
4622 * v850-tdep.c (v850_gdbarch_init): Update.
4623 * sparc-tdep.c (sparc_gdbarch_init): Update.
4624 * sh-tdep.c (sh_gdbarch_init): Update.
4625 * s390-tdep.c (s390_gdbarch_init): Update.
4626 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4627 * ns32k-tdep.c: Update.
4628 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4629 * mips-tdep.c (mips_gdbarch_init): Update.
4630 * mcore-tdep.c (mcore_gdbarch_init): Update.
4631 * m68k-tdep.c (m68k_gdbarch_init): Update.
4632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4633 * ia64-tdep.c (ia64_gdbarch_init): Update.
4634 * hppa-tdep.c (hppa_gdbarch_init): Update.
4635 * h8300-tdep.c (h8300_gdbarch_init): Update.
4636 * frv-tdep.c (frv_gdbarch_init): Update.
4637 * cris-tdep.c (cris_gdbarch_init): Update.
4638 * avr-tdep.c (avr_gdbarch_init): Update.
4639 * alpha-tdep.c (alpha_gdbarch_init): Update.
4640 * arm-tdep.c (arm_gdbarch_init): Update.
4641
b060cbea
AC
46422003-06-13 Andrew Cagney <cagney@redhat.com>
4643
4644 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4645 mips_o32_use_struct_convention with always_use_struct_convention.
4646
0fc9922a
DC
46472003-06-12 David Carlton <carlton@kealia.com>
4648
4649 * cp-namespace.c (cp_set_block_scope): Comment out
4650 processing_has_namespace_info branch.
4651
1fd35568
JB
46522003-06-12 Jim Blandy <jimb@redhat.com>
4653
f470a70a
JB
4654 Recognize and skip 64-bit PowerPC Linux linkage functions.
4655 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4656 insn_pattern, insns_match_pattern, d_field, ds_field): New
4657 functions, macros, and types for working with PPC instructions.
4658 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4659 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4660 ppc64_skip_trampoline_code): New functions, variables, and macros
4661 for recognizing and skipping linkage functions.
4662 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4663 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4664
49ff75ad
JB
4665 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4666 register offsets for both the 32- and 64-bit interfaces.
4667
bd918c83
JB
4668 Actually finish the job started by my change of 2003-05-29.
4669 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4670 other #definition of this.
4671 (ppc_linux_skip_trampoline_code): Remove declaration.
4672 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4673 static.
4674 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4675 method for GDBARCH.
4676
4677 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4678 'long' on ppc64-*-linux*.
4679
f8c59253
JB
4680 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4681 isn't #defined, assume the register doesn't exist: act as if
4682 tdep->ppc_mq_regnum were -1.
4683
8fbb30b1
JB
4684 * configure.host, configure.tgt: Add entries for
4685 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4686 powerpc/linux.mt.
4687 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4688 New files.
4689
1fd35568
JB
4690 * arch-utils.c (always_use_struct_convention): New function.
4691 * arch-utils.h (always_use_struct_convention): New prototype.
4692 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4693 (alpha_gdbarch_init): Register always_use_struct_convention,
4694 instead of alpha_use_struct_convention.
4695 * cris-tdep.c (cris_use_struct_convention): Delete.
4696 (cris_gdbarch_init): Register always_use_struct_convention,
4697 instead of cris_use_struct_convention.
4698 * frv-tdep.c (frv_use_struct_convention): Delete.
4699 (frv_gdbarch_init): Register always_use_struct_convention,
4700 instead of frv_use_struct_convention.
4701 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4702 (h8300_gdbarch_init): Register always_use_struct_convention,
4703 instead of h8300_use_struct_convention.
e3305dd9 4704 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4705 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4706 instead of mips_o32_use_struct_convention.
4707
e14e6e9c
AC
47082003-06-12 Andrew Cagney <cagney@redhat.com>
4709
4710 * wince.c: Include "mips-tdep.h".
4711 * mips-tdep.h (mips_next_pc): Declare.
4712 * mcore-tdep.c: Make more local functions static.
4713 * Makefile.in (wince.o): Update dependencies.
4714
2335f48e
DC
47152003-06-12 David Carlton <carlton@kealia.com>
4716
4717 * symtab.c (lookup_symbol_aux_minsyms): Replace
4718 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4719 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4720 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4721 SYMBOL_NATURAL_NAME.
4722
f70a7d61
AS
47232003-06-12 Andreas Schwab <schwab@suse.de>
4724
4725 * Makefile.in (tuiDisassem.o): Update dependencies.
4726
b6429628
DC
47272003-06-12 David Carlton <carlton@bactrian.org>
4728
4729 * symtab.h: Delete declaration of make_symbol_overload_list.
4730 Add declaration of lookup_partial_symbol.
4731 * symtab.c (remove_params): Move to cp-support.c.
4732 (overload_list_add_symbol, make_symbol_overload_list)
4733 (sym_return_val_size, sym_return_val_index): Ditto.
4734 (lookup_partial_symbol): Make extern.
4735 * cp-support.h: Add declaration of make_symbol_overload_list.
4736 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4737 symtab.h, and block.h.
4738 (remove_params): Move here from symtab.c.
4739 (overload_list_add_symbol, make_symbol_overload_list)
4740 (sym_return_val_size, sym_return_val_index): Ditto.
4741 * valops.c: Include cp-support.h.
4742 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4743 frame_h, and block_h.
4744 (valops.o): Depend on cp_support_h.
4745
084edea5
CV
47462003-06-12 Corinna Vinschen <vinschen@redhat.com>
4747
4748 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4749 substitute by NUM_REGS throughout.
4750 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4751 (h8300s_register_name): New function for H8S registers.
4752 (h8300sx_register_name): Ditto for H8SX registers.
4753 (h8300_print_register): Revise register printing, avoid depending
4754 on 32 bit long.
0261a0d0 4755 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4756 (h8300h_register_byte): New function for any other architecture.
4757 (h8300_register_raw_size): Remove.
4758 (h8300_register_virtual_type): Revise to return actually useful
4759 type.
4760 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4761 (h8300h_extract_struct_value_address): New function for any other
4762 architecture.
4763 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4764 set_gdbarch_register_name, set_gdbarch_register_byte,
4765 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4766 Remove calls to set_gdbarch_deprecated_register_size,
4767 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4768 set_gdbarch_deprecated_max_register_raw_size,
4769 set_gdbarch_register_virtual_size and
4770 set_gdbarch_deprecated_max_register_virtual_size entirely.
4771 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4772 set_gdbarch_long_double_bit.
4773
06194148
JJ
47742003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4775
8ffd9b1b
AJ
4776 * doublest.c (convert_doublest_to_floatformat): When dealing
4777 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4778 processing a full 32 bits of mantissa.
4779
de4f826b
DC
47802003-06-11 David Carlton <carlton@bactrian.org>
4781
4782 * dictionary.h: New.
4783 * dictionary.c: New.
4784 * block.h: Add opaque declaration for struct dictionary.
4785 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4786 'sym' members.
4787 (BLOCK_DICT): New macro.
4788 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4789 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4790 BLOCK_SHOULD_SORT.
4791 (ALL_BLOCK_SYMBOLS): Update definition.
4792 * Makefile.in (SFILES): Add dictionary.c.
4793 (dictionary_h): New.
4794 (COMMON_OBS): Add dictionary.o.
4795 (dictionary.o): New.
4796 (ada-lang.o): Depend on dictionary_h.
4797 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4798 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4799 (mi-cmd-stack.o): Ditto.
4800 (gdbtk-cmds.o): Update dependencies.
4801 (gdbtk-stack.o): Ditto.
4802 * ada-lang.c: Include dictionary.h.
4803 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4804 (fill_in_ada_prototype, debug_print_block): Ditto.
4805 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4806 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4807 'is_sorted'.
4808 * mdebugread.c: Include dictionary.h.
4809 (struct parse_stack): Delete 'maxsyms' member.
4810 (parse_symbol): Update calls to new_block. Delete calls to
4811 shrink_block. Use dictionary methods.
4812 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4813 Update calls to new_symtab. Don't maintain maxsyms data.
4814 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4815 (add_symbol): Just call dict_add_symbol.
4816 (new_symtab): Delete 'maxsyms' argument.
4817 (new_symtab): Update calls to new_block.
4818 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4819 (shrink_block): Delete function.
4820 (fixup_sigtramp): Update call to new_block. Add symbol via
4821 dict_add_symbol.
4822 * jv-lang.c: Include dictionary.h.
4823 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4824 appropriately. Set class_symtab->free_func. Make sure the
4825 blockvector is big enough to hold two blocks.
4826 (add_class_symtab_symbol): Use dictionary methods.
4827 (free_class_block): New function.
4828 (type_from_class): Replace explicit iteration by
4829 ALL_BLOCK_SYMBOLS.
4830 * symtab.h (struct symtab): Replace 'free_ptr' method by
4831 'free_func'.
4832 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4833 sort_symtab_syms.
4834 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4835 sort_symtab_syms.
4836 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4837 Include dictionary.h.
4838 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4839 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4840 sort_symtab_syms.
4841 * objfiles.c: Include dictionary.h.
4842 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4843 * buildsym.c: Include dictionary.h.
4844 (finish_block): Use dictionary methods.
4845 (end_symtab): Set free_func to NULL, not free_ptr.
4846 * tracepoint.c: Include dictionary.h.
4847 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4848 (scope_info): Ditto.
4849 * stack.c: Include dictionary.h.
4850 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4851 (print_block_frame_labels, print_frame_arg_vars)
4852 (print_frame_args): Ditto.
4853 * symmisc.c (free_symtab_block): Use dictionary methods.
4854 (dump_symtab): Ditto.
4855 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4856 Include dictionary.h.
4857 * symfile.h: Delete declarations of sort_block_syms,
4858 sort_symtab_syms.
4859 * symfile.c (sort_block_syms): Delete.
4860 (sort_symtab_syms): Delete.
4861 * symtab.c: Include dictionary.h.
4862 (lookup_block_symbol): Use dictionary iterators.
4863 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4864 (search_symbols, make_symbol_completion_list): Ditto.
4865 (make_symbol_overload_list): Ditto.
4866 * valops.c (value_of_local): Use dict_empty.
4867 Include dictionary.h.
4868
a31f978c
JB
48692003-06-11 J. Brobecker <brobecker@gnat.com>
4870
4871 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4872
526e70c0
DC
48732003-06-11 David Carlton <carlton@bactrian.org>
4874
4875 * block.h (BLOCK_SHOULD_SORT): Delete.
4876 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4877 blocks.
4878 * ada-lang.c (ada_add_block_symbols): Ditto.
4879 * symfile.c (sort_block_syms): Delete.
4880 (sort_symtab_syms): Ditto.
4881 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4882 declarations.
4883 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4884 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4885 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4886 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4887 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4888 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4889 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4890
33c08150
JJ
48912003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4892
8ffd9b1b 4893 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4894 bits to 128.
4895
781a750d
AC
48962003-06-11 Andrew Cagney <cagney@redhat.com>
4897
4898 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4899 REGISTER_CONVERTIBLE.
4900 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4901 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4902 * gdbarch.h, gdbarch.c: Re-generate.
4903 * arch-utils.h (deprecated_register_convertible_not): Rename
4904 generic_register_convertible_not.
4905 * arch-utils.c (deprecated_register_convertible_not): Rename
4906 generic_register_convertible.
4907 (legacy_convert_register_p, legacy_register_to_value): Update.
4908 * sh-tdep.c (sh64_push_arguments): Update.
4909 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4910 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4911 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4912 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4913 * arch-utils.c (legacy_value_to_register): Update.
4914 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4915 (rs6000_register_convert_to_raw): Make parameter "from" const.
4916 * mips-tdep.c (mips_gdbarch_init): Update.
4917 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4918 * infcmd.c (default_print_registers_info): Update.
4919 * ia64-tdep.c (ia64_gdbarch_init): Update.
4920 (ia64_register_convert_to_raw): Make parameter "from" const.
4921 * i386-tdep.c (i386_gdbarch_init): Update.
4922 (i386_register_convert_to_raw): Update.
4923
cd90e54f
AC
49242003-06-11 Andrew Cagney <cagney@redhat.com>
4925
4926 * remote-fileio.c: Include "remote-fileio.h".
4927 * Makefile.in (remote-fileio.o): Update dependencies.
4928 (remote_fileio_h): Fix typo.
4929
a78f21af
AC
49302003-06-11 Andrew Cagney <cagney@redhat.com>
4931
4932 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4933 (xstormy16_save_dummy_frame_tos): Make static.
4934 (_initialize_xstormy16_tdep): Add declaration.
4935 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4936 * v850-tdep.c: Make local functions static.
4937 (_initialize_v850_tdep): Add declaration.
4938 * sparc-tdep.c: Make local functions static.
4939 (_initialize_sparc_tdep): Add declaration.
4940 * sh-tdep.c: Make local functions static.
4941 (_initialize_sh_tdep): Add declaration.
4942 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4943 * s390-tdep.c: Make local functions static.
4944 (_initialize_s390_tdep): Add declaration.
4945 * dbxread.c (find_stab_function_addr): Make static.
4946 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4947 * ocd.c (_initialize_remote_ocd): Add declaration.
4948 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4949 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4950 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4951 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4952 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4953 * remote-array.c (_initialize_array): Add declaration.
4954 (_initialize_remote_monitors): Add declaration.
4955 * remote-mips.c: Make local functions static.
4956 (_initialize_remote_mips): Add declaration.
4957 * mcore-tdep.c: Make all local functions static.
4958 (_initialize_mcore_tdep): Add declaration.
4959 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4960 * abug-rom.c (_initialize_abug_rom): Add declaration.
4961 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4962 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4963 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4964 * remote-est.c (_initialize_est): Add declaration.
4965 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4966 (m68hc11_call_dummy_address): Make static.
4967 * ia64-tdep.c: Make local functions static.
4968 (_initialize_ia64_tdep): Add declaration.
4969 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4970 * monitor.c (monitor_wait_filter): Make static.
4971 (_initialize_remote_monitors): Add declaration.
4972 * remote-hms.c (_initialize_remote_hms): Add declaration.
4973 * remote-e7000.c (fetch_regs_from_dump): Make static.
4974 (expect_n): Make static.
4975 (_initialize_remote_e7000): Add declaration.
4976 * ser-e7kpc.c: Always include "defs.h".
4977 (_initialize_ser_e7000pc): Add declaration.
4978 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4979 * cris-tdep.c: Make all but one function static.
4980 (_initialize_cris_tdep): Add declaration.
4981 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4982 * solib.c (update_solib_list): Make static.
4983 (_initialize_solib): Add declaration.
4984 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4985 (_initialize_avr_tdep): Add declaration.
4986 * remote-rdi.c (voiddummy): Make static.
4987 (_initialize_remote_rdi): Add declaration.
4988 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4989 * remote-rdp.c (send_rdp): Make static.
4990 (_initialize_remote_rdp): Add declaration.
4991 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4992
cbcdb1f5
CV
49932003-06-11 Corinna Vinschen <vinschen@redhat.com>
4994
4995 * remote-fileio.c: Make ari happy.
4996
a191ea8d
JB
49972003-06-10 J. Brobecker <brobecker@gnat.com>
4998
4999 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5000 fetching the trailing bytes of the buffer we are about to write.
5001
0ef75e11
AC
50022003-06-10 Andrew Cagney <cagney@redhat.com>
5003
5004 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5005 * Makefile.in (remote-fileio.o): Update dependencies.
5006 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5007 include <setjmp.h>, or <sys/types.h> conditional on USG.
5008 (remote_fio_jmp_buf): Delete global variable.
5009
449092f6 50102003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5011 Martin M. Hunt <hunt@redhat.com>
449092f6 5012
559fa028
AC
5013 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5014 (SFILES): Add remote-fileio.c.
5015 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5016 dependencies for building remote.o.
449092f6
CV
5017 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5018 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5019 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5020 static storage class.
5021 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5022 'F' packet.
5023 (_initialize_remote): Call initialize_remote_fileio().
5024 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5025 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5026 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5027 (captured_main): Initialize new ui_files.
5028 * ui-file.c: Add read and fgets input functions.
5029 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5030 (null_file_read): New function.
5031 (ui_file_read): New function.
5032 (set_ui_file_read): New function.
5033 (stdio_file_read): New function.
5034 * ui-file.h: New type ui_file_read_ftype.
5035 (set_ui_file_read): Declare.
5036 (ui_file_read): Declare.
5037
248de703
AC
50382003-06-09 Andrew Cagney <cagney@redhat.com>
5039
5040 * frame.h (deprecated_unwind_get_saved_register): Rename
5041 generic_unwind_get_saved_register, update comments.
5042 * mips-tdep.c (mips_get_saved_register): Update.
5043 * frame.c (deprecated_unwind_get_saved_register): Update.
5044
0ed8aa57
AC
50452003-06-09 Andrew Cagney <cagney@redhat.com>
5046
5047 * vax-tdep.c (vax_frame_locals_address): Delete function.
5048 (vax_gdbarch_init): Do not set frame_locals_address.
5049 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5050 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5051 * s390-tdep.c (s390_frame_args_address): Delete function.
5052 (s390_gdbarch_init): Do not set frame_args_address or
5053 frame_locals_address.
5054 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5055 (ns32k_gdbarch_init): Do not set frame_locals_address.
5056 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5057 (hppa_frame_locals_address): Delete function.
5058 (hppa_gdbarch_init): Do not set frame_args_address, or
5059 frame_locals_address.
5060 * arm-tdep.c (arm_frame_args_address): Delete.
5061 (arm_frame_locals_address): Delete.
5062 (arm_gdbarch_init): Do not set frame_args_address, or
5063 frame_locals_address.
5064
983a287a
AC
50652003-06-09 Andrew Cagney <cagney@redhat.com>
5066
5067 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5068 * gdbarch.h, gdbarch.c: Re-generate.
5069 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5070 * arch-utils.c (frame_num_args_unknown): Delete function.
5071 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5072 (frame_info): Use FRAME_NUM_ARGS_P.
5073 * arm-tdep.c (arm_frame_num_args): Delete function.
5074 (arm_gdbarch_init): Do not set frame_num_args.
5075 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5076 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5077 (hppa_gdbarch_init): Do not set frame_num_args.
5078 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5079 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5080 frame_num_args to default frame_num_args_unknown.
5081 * v850-tdep.c (v850_gdbarch_init): Ditto.
5082 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5083 * sh-tdep.c (sh_gdbarch_init): Ditto.
5084 * s390-tdep.c (s390_gdbarch_init): Ditto.
5085 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5086 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5087 * mips-tdep.c (mips_gdbarch_init): Ditto.
5088 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5089 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5090 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5091 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5092 * i386-tdep.c (i386_gdbarch_init): Ditto.
5093 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5094 * frv-tdep.c (frv_gdbarch_init): Ditto.
5095 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5096 * cris-tdep.c (cris_gdbarch_init): Ditto.
5097 * avr-tdep.c (avr_gdbarch_init): Ditto.
5098 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5099
8d3b0994
AC
51002003-06-09 Andrew Cagney <cagney@redhat.com>
5101
5102 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5103 (print_frame_args): Moved to "stack.c".
5104 * stack.c: Include "gdb_assert.h".
5105 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5106 (print_frame_args): Moved from "printcmd.c".
5107 * frame.h (print_frame_args): Delete declaration.
5108 * Makefile.in (stack.o): Update dependencies.
5109
25e3a86b
AC
51102003-06-08 Andrew Cagney <cagney@redhat.com>
5111
5112 * frame.c (get_prev_frame): Remove reference to
5113 frame_args_address_correct in comments.
5114 * frame-base.c (default_frame_args_address): Delete code
5115 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5116 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5117 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5118 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5119 (vax_frame_args_address_correct): Delete declaration.
5120
a9e5fdc2
AC
51212003-06-08 Andrew Cagney <cagney@redhat.com>
5122
5123 * gdbarch.sh (UNWIND_SP): Add.
5124 * gdbarch.h, gdbarch.c: Re-generate.
5125 * frame.c (frame_sp_unwind): New function.
5126 (get_frame_sp): New function.
5127 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5128 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5129 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5130 value.
5131 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5132 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5133
8983bd83
AC
51342003-06-08 Andrew Cagney <cagney@redhat.com>
5135
7fec2c59
AC
5136 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5137 REMOTE_BREAKPOINT.
5138 * remote.c: Update.
5139 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5140 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5141 * config/m68k/tm-sun3.h: Update.
5142 * config/m68k/tm-m68klynx.h: Update.
5143 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5144
8983bd83
AC
5145 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5146 trad_frame". Update comments.
5147 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5148 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5149 (trad_frame_register_value, trad_frame_prev_register): Update.
5150
b9362cc7
AC
51512003-06-08 Andrew Cagney <cagney@redhat.com>
5152
5153 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5154 from GCC's acinclude.m4.
5155 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5156 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5157 * main.c (error_init): Delete declaration.
5158 * defs.h (error_init): Declare.
5159 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5160 (rs6000_convert_from_func_ptr_addr): Make static.
5161 (_initialize_rs6000_tdep): Add declaration.
5162 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5163 (show_commands, set_verbose, show_history): Delete declaration.
5164 * top.h (set_verbose): Add declaration.
5165 (show_history, set_history, show_commands): Add declaration.
5166 (do_restore_instream_cleanup): Add declaration.
5167 * objc-lang.c (specialcmp): Make static.
5168 (print_object_command): Make static.
5169 (find_objc_msgsend): Make static.
5170 (find_objc_msgcall_submethod_helper): Make static.
5171 (find_objc_msgcall_submethod): Make static.
5172 (_initialize_objc_language): Add declaration.
5173 (find_implementation_from_class): Make static.
5174 (find_implementation): Make static.
5175 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5176 * objc-lang.h (lookup_struct_typedef): Add declaration.
5177 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5178 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5179 (do_restore_user_call_depth): Make static.
5180 (do_restore_instream_cleanup): Delete declaration.
5181 (dont_repeat): Delete declaration.
5182 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5183 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5184 * reggroups.c (_initialize_reggroup): Add declaration.
5185 * cp-support.c (_initialize_cp_support): Add declaration.
5186 * cp-abi.c (_initialize_cp_abi): Add declaration.
5187 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5188 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5189 (_initialize_gnu_v3_abi): Add declaration.
5190 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5191 (_initialize_gnu_v2_abi): Add declaration.
5192 * frame-base.c (_initialize_frame_base): Add declaration.
5193 * doublest.c (floatformat_from_length): Make static.
5194 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5195 * frame.c (create_sentinel_frame): Make static.
5196 (_initialize_frame): Add declaration.
5197 * top.c (do_catch_errors): Make static.
5198 (gdb_rl_operate_and_get_next_completion): Make static.
5199 * typeprint.c: Include "typeprint.h".
5200 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5201 (sentinel_frame_this_id): Make static.
5202 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5203 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5204 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5205 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5206 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5207 * maint.c (maintenance_print_architecture): Make static.
5208 * signals/signals.c (_initialize_signals): Add declaration.
5209 * std-regs.c (_initialize_frame_reg): Add declaration.
5210 * jv-exp.y (push_variable): ISO C definition.
5211 (push_qualified_expression_name): Ditto.
5212 * memattr.c (_initialize_mem): Add declaration.
5213 * remote.c (remote_check_watch_resources): Make static.
5214 (remote_stopped_by_watchpoint): Make static.
5215 (remote_stopped_data_address): Make static.
5216 * d10v-tdep.c (nr_dmap_regs): Make static.
5217 (a0_regnum): Make static.
5218 (d10v_frame_unwind_cache): Make static.
5219 (d10v_frame_p): Make static.
5220 * osabi.c (show_osabi): Make static.
5221 (_initialize_gdb_osabi): Add extern declaration.
5222 * gdbtypes.c (make_qualified_type): Make static.
5223 (safe_parse_type): Make static.
5224 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5225 * macrotab.c (macro_bcache_free): Make static.
5226 * interps.c (interp_set_quiet): Make static.
5227 (interpreter_exec_cmd): Make static.
5228 * stack.h (select_frame_command): New file.
5229 * stack.c: Include "stack.h".
5230 (select_frame_command_wrapper): Delete function.
5231 (select_frame_command): Make global.
5232 * infcall.c: Include "infcall.h".
5233 * linespec.c: Include "linespec.h".
5234 * symfile.c (sections_overlap): Make static.
5235 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5236 * charset.c (_initialize_charset): Add missing prototype.
5237 * regcache.c (init_legacy_regcache_descr): Make static.
5238 (do_regcache_xfree): Make static.
5239 (regcache_xfer_part): Make static.
5240 (_initialize_regcache): Add missing prototype.
5241 * breakpoint.c (parse_breakpoint_sals): Make static.
5242 (breakpoint_sals_to_pc): Make static.
5243 * interps.h (clear_interpreter_hooks): ISO C declaration.
5244 * Makefile.in (stack_h): Define.
5245 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5246 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5247
a0f267c7
AC
52482003-06-08 Andrew Cagney <cagney@redhat.com>
5249
5250 * Makefile.in (d10v-tdep.o): Update dependencies.
5251 (SFILES): Add trad-frame.c.
5252 (trad_frame_h): Define.
5253 (COMMON_OBS): Add trad-frame.o.
5254 (trad-frame.o): Specify dependencies.
5255 * d10v-tdep.c: Include "trad-frame.h".
5256 (saved_regs_unwinder): Delete function.
5257 (d10v_frame_prev_register): Use trad_frame_prev_register.
5258 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5259 trad_frame", delete "regs" and "prev_sp".
5260 (prologue_find_regs): Use trad-frame.
5261 * trad-frame.h, trad-frame.c: New files.
5262
4538b4f4
MK
52632003-06-08 Mark Kettenis <kettenis@gnu.org>
5264
5265 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5266
a0273b2f
AF
52672003-06-07 Adam Fedor <fedor@gnu.org>
5268
5269 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5270 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5271 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5272 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5273 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5274 Use it.
5275
3a6c3343
AC
52762003-06-07 Andrew Cagney <cagney@redhat.com>
5277
5278 * symfile.h: Re-indent, clean up comments.
5279
b46e02f6
AC
52802003-06-07 Andrew Cagney <cagney@redhat.com>
5281
5282 * inferior.h (deprecated_write_sp): Replace
5283 generic_target_write_sp.
5284 * regcache.c (deprecated_write_sp): Replace
5285 generic_target_write_sp.
5286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5287 * vax-tdep.c (vax_gdbarch_init): Update.
5288 * v850-tdep.c (v850_gdbarch_init): Update.
5289 * sparc-tdep.c (sparc_gdbarch_init): Update.
5290 * sh-tdep.c (sh_gdbarch_init): Update.
5291 * s390-tdep.c (s390_gdbarch_init): Update.
5292 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5293 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5294 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5295 * mcore-tdep.c (mcore_gdbarch_init): Update.
5296 * m68k-tdep.c (m68k_gdbarch_init): Update.
5297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5298 * ia64-tdep.c (ia64_gdbarch_init): Update.
5299 * h8300-tdep.c (h8300_gdbarch_init): Update.
5300 * frv-tdep.c (frv_gdbarch_init): Update.
5301 * cris-tdep.c (cris_gdbarch_init): Update.
5302 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5303
a42e117c
AC
53042003-06-07 Andrew Cagney <cagney@redhat.com>
5305
5306 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5307 Assert that PC_REGNUM is valid.
5308 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5309
bd1ce8ba
AC
53102003-06-07 Andrew Cagney <cagney@redhat.com>
5311
5312 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5313 * gdbarch.h, gdbarch.c: Regenerate.
5314 * mn10300-tdep.c: Include "gdb_assert.h".
5315 (mn10300_read_fp): New function.
5316 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5317 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5318 * ia64-tdep.c: Include "gdb_assert.h".
5319 (ia64_read_fp): New function.
5320 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5321 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5322 * regcache.c (generic_target_read_sp): Delete function.
5323 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5324 * inferior.h (generic_target_read_sp): Delete declaration.
5325 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5326 generic_target_read_sp.
5327 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5328 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5329 * sh-tdep.c (sh_gdbarch_init): Ditto.
5330 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5331 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5332
ec5cbaec
AC
53332003-06-07 Andrew Cagney <cagney@redhat.com>
5334
5335 * gdbarch.sh: Comment each field of startup_gdbarch.
5336 * gdbarch.h, gdbarch.c: Re-generate.
5337
cde9ea48
AC
53382003-06-07 Andrew Cagney <cagney@redhat.com>
5339
5340 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5341 * gdbarch.h, gdbarch.c: Re-generate.
5342 * regcache.c: Update comments on read_pc et.al.
5343 (generic_target_read_pc): Delete function.
5344 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5345 * inferior.h (generic_target_read_pc): Delete declaration.
5346 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5347 generic_target_read_pc.
5348 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5349 * sh-tdep.c (sh_gdbarch_init): Ditto.
5350 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5351 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5352
9a90a780
AC
53532003-06-07 Andrew Cagney <cagney@redhat.com>
5354
5355 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5356 "index" with "special_local_sect". Use strcmp instead of STREQ.
5357 Append period to coments.
5358
a39a16c4
MM
53592003-06-06 Mark Mitchell <mark@codesourcery.com>
5360
5361 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5362 (elfstab_offset_sections): Likewise.
5363 * gdb-stabs.h (stab_section_info): Likewise.
5364 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5365 * objfiles.c (objfile_relocate): Likewise.
5366 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5367 * remote.c (get_offsets): Likewise.
5368 (remote_cisco_objfile_relocate): Likewise.
5369 * somread.c (som_symfile_offsets): Likewise.
5370 * symfile.c (alloc_section_addr_info): New function.
5371 (build_section_addr_info_from_section_tab): Use it.
5372 (free_section_addr_info): Adjust.
5373 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5374 (syms_from_objfile): Allocate local_addr dynamically.
5375 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5376 dynamically.
5377 (add_symbol_file_command): Allocate sect_opts dynamically.
5378 (reread_symbols): Avoid use of SECT_OFF_MAX.
5379 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5380 (alloc_section_addr_info): Declare it.
5381 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5382 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5383 dynamically.
5384 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5385
20c6c2f8
AC
53862003-06-06 Andrew Cagney <cagney@redhat.com>
5387
5388 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5389 (d10v_frame_unwind_cache): Do not set "return_pc".
5390
884a26c8
MS
53912003-06-06 Michael Snyder <msnyder@redhat.com>
5392
5393 * h8300-tdep.c: Make tidy (long lines).
5394
088ce440
ML
53952003-06-06 Michal Ludvig <mludvig@suse.cz>
5396
8ffd9b1b 5397 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5398 to regcache_collect().
5399
7d773d96
JB
54002003-06-05 J. Brobecker <brobecker@gnat.com>
5401
5402 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5403 pc_in_sigtramp multiarch method.
5404 (hppa_hpux_som_init_abi): Use it.
5405 (hppa_hpux_elf_init_abi): Likewise.
5406 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5407 macro has been multiarched.
5408 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5409 macro here, as hppa64 isn't multiarched yet.
5410
1df6926e
AC
54112003-06-05 Andrew Cagney <cagney@redhat.com>
5412
5413 * Makefile.in (value_h): Add $(frame_h).
5414 * value.h: Include "frame.h".
5415 (struct value): Replace "frame_addr" with "frame_id".
5416 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5417 * values.c (allocate_value): Use VALUE_FRAME_ID.
5418 (value_copy): Use VALUE_FRAME_ID.
5419 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5420 * valops.c (value_assign): Update. Use frame_find_by_id.
5421
6b53acc6
ML
54222003-06-05 Michal Ludvig <mludvig@suse.cz>
5423
5424 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5425 in each pass.
5426
4d9850d3
JJ
54272003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5428
5429 * thread-db.c (check_event): For create/death event breakpoints,
5430 loop through all messages to ensure that we read the message
5431 corresponding to the breakpoint we are at.
5432
8efca6ba
MS
54332003-06-04 Michael Snyder <msnyder@redhat.com>
5434
5435 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5436
0912c7f2
MK
54372003-06-04 Mark Kettenis <kettenis@gnu.org>
5438
5439 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5440 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5441 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5442 when handling .eh_frame sections.
5443
4e370325
JB
54442003-06-04 J. Brobecker <brobecker@gnat.com>
5445
5446 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5447 prepare_to_proceed procedure instead of the hppa-specific one.
5448 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5449
b757528f 54502003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5451
b757528f
JJ
5452 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5453 * config.in: Regenerated.
5454 * configure.in: Add test for syscall function and check for
5455 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5456 * configure: Regenerated.
5457 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5458 <sys/syscall.h>.
5459 (kill_lwp): New function that uses tkill syscall or
5460 uses kill, depending on whether threading model is nptl or not.
5461 All callers of kill() changed to use kill_lwp().
5462 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5463 see if all threads have already exited in the nptl model.
5464 (stop_and_resume_callback): New callback function used by the
5465 lin_lwp_wait thread exit handling code.
5466 (stop_wait_callback): Check for threads already having exited and
5467 delete such threads fromt the lwp list when discovered.
5468 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5469
b757528f
JJ
5470 Roland McGrath <roland@redhat.com>
5471 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5472 nptl libthread_db.
5473
087779b1
RH
54742003-06-03 Richard Henderson <rth@redhat.com>
5475
b21fd293
RH
5476 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5477 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5478 (alpha_sigtramp_frame_prev_register): Likewise.
5479 (alpha_heuristic_frame_prev_register): Likewise.
5480 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5481
8ffd9b1b 5482 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5483 alpha-specific register id names.
5484 (alpha_mdebug_frame_unwind_cache): Likewise.
5485 (alpha_mdebug_frame_prev_register): Likewise.
5486
baa490c4
RH
54872003-06-03 Richard Henderson <rth@redhat.com>
5488
5489 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5490 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5491 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5492 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5493 unwind routines.
5494 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5495 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5496 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5497
5498 * alpha-linux-tdep.c: Remove unnecessary includes.
5499 * Makefile.in (alpha-linux-tdep.o): Update.
5500
55012003-06-03 Richard Henderson <rth@redhat.com>
5502
5503 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5504 (alphabsd_fill_fpreg): Likewise.
5505
f534e522
JB
55062003-06-03 J. Brobecker <brobecker@gnat.com>
5507
5508 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5509 references to struct frame_info fields by calls to the equivalent
5510 accessors. Necessary now that frame_info is opaque.
5511
4035536b
JB
55122003-06-03 J. Brobecker <brobecker@gnat.com>
5513
5514 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5515 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5516 structure, field no longer exists.
5517
0bd79c5c
JB
55182003-06-03 J. Brobecker <brobecker@gnat.com>
5519
5520 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5521 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5522
37bb6d9f
JB
55232003-06-03 J. Brobecker <brobecker@gnat.com>
5524
5525 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5526 references to struct frame_info fields by calls to the equivalent
5527 accessors. Necessary now that frame_info is opaque.
5528
852ee05c
JB
55292003-06-03 J. Brobecker <brobecker@gnat.com>
5530
5531 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5532 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5533 structure, field no longer exists.
5534
7d58c67d
TR
55352003-06-03 Theodore A. Roth <troth@openavr.org>
5536
8ffd9b1b 5537 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5538 accumulation of the size of all registers instead of blindly using
5539 DEPRECATED_REGISTER_BYTES.
5540
0a48e7e8
MS
55412003-06-03 Michael Snyder <msnyder@redhat.com>
5542
5543 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5544 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5545 for h8300sx.
5546
9798ab0d
JB
55472003-06-03 J. Brobecker <brobecker@gnat.com>
5548
5549 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5550 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5551
00b037e2
AC
55522003-06-03 Andrew Cagney <cagney@redhat.com>
5553
5554 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5555 (sparc_convert_to_raw): Delete function.
5556 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5557 register_convert_to_virtual.
5558
043b2f77
JJ
55592003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5560
5561 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5562 layer if not dealing with a statically-linked threaded program.
5563
f43caff8
KW
55642003-06-03 Kris Warkentin <kewarken@qnx.com>
5565
5566 * solib.c (solib_open): Update comment to reflect actual search order.
5567
ae1e7417
AC
55682003-06-03 Andrew Cagney <cagney@redhat.com>
5569
5570 * frame.c (get_frame_memory_signed): New function.
5571 (get_frame_memory, get_frame_memory_unsigned): New function.
5572 (get_frame_arch): New function.
5573 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5574 (get_frame_memory, get_frame_unsigned_memory): Declare.
5575 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5576 get_frame_memory_unsigned and get_frame_arch.
5577 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5578
cb123844
RG
55792003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5580
5581 * MAINTAINERS (write after approval): Add myself.
5582
1bb792e9
JB
55832003-06-03 Jim Blandy <jimb@redhat.com>
5584
5585 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5586 elements of gregset_t are 64 bits each, but access registers
5587 are still 32 bits, so they're packed two per gregset_t
5588 element. Unpack/pack them properly.
5589
aee8d8ba
DC
55902003-06-02 David Carlton <carlton@bactrian.org>
5591
5592 * linespec.c (find_methods): Break out code into
5593 add_matching_methods and add_constructors.
5594 (add_matching_methods): New.
5595 (add_constructors): Ditto.
5596
bf7488d2
AC
55972003-06-02 Andrew Cagney <cagney@redhat.com>
5598
bf7488d2
AC
5599 * sparc-tdep.c (sparc_print_registers): Delete call to
5600 REGISTER_CONVERTIBLE.
5601 (sparc_gdbarch_init): Do not set register_convertible.
5602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5603 * frv-tdep.c (frv_gdbarch_init): Ditto.
5604 * cris-tdep.c (cris_gdbarch_init): Ditto.
5605
adedef68
EZ
56062003-06-02 Elena Zannoni <ezannoni@redhat.com>
5607
8ffd9b1b 5608 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5609 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5610 (syms_from_objfile): Ditto.
5611
650fcc91
AS
56122003-06-03 Andreas Schwab <schwab@suse.de>
5613
5614 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5615 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5616
df4a182b
RH
56172003-06-02 Richard Henderson <rth@redhat.com>
5618
5619 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5620 a member of all_reggroup.
5621
c483c494
RH
56222003-06-02 Richard Henderson <rth@redhat.com>
5623
5624 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5625 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5626 (alpha_lds, alpha_sts): New.
5627 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5628 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5629 restructure and fail for type sizes other than 4 or 8.
5630 (alpha_value_to_register): Similarly.
5631 (alpha_extract_return_value): Use alpha_sts.
5632 (alpha_store_return_value): Use alpha_lds.
5633 (alpha_gdbarch_init): Update hooks.
5634
b38b6be2
RH
56352003-06-02 Richard Henderson <rth@redhat.com>
5636
5637 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5638 regnum identifiers.
5639 (alpha_sigtramp_register_address): Likewise.
5640
98a8e1e5
RH
56412003-06-02 Richard Henderson <rth@redhat.com>
5642
5643 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5644 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5645 * alpha-tdep.h: Declare them.
5646
5647 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5648 Remove zerobuf. Don't error on UNIQUE.
5649 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5650 (ALPHA_REGSET_UNIQUE): Provide default.
5651 (supply_gregset): Use alpha_supply_int_regs.
5652 (fill_gregset): Use alpha_fill_int_regs.
5653 (supply_fpregset): Use alpha_supply_fp_regs.
5654 (fill_fpregset): Use alpha_fill_fp_regs.
5655 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5656 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5657 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5658 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5659 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5660 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5661
67dfac52
RH
56622003-06-02 Richard Henderson <rth@redhat.com>
5663
f75d70cc
RH
5664 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5665
67dfac52
RH
5666 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5667 (alpha_store_return_value): Likewise.
5668
0cf566ec
DC
56692003-06-02 David Carlton <carlton@math.stanford.edu>
5670
5671 * block.c (contained_in): Add 'const' to arguments.
5672 (block_function): Ditto.
5673 * block.h: Update declarations for block_function and
5674 contained_in.
5675
cdef89d0
DC
56762003-06-02 David Carlton <carlton@math.stanford.edu>
5677
5678 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5679 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5680 * p-valprint.c (pascal_val_print): Ditto.
5681 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5682
72667056
RH
56832003-06-02 Richard Henderson <rth@redhat.com>
5684
98a8e1e5
RH
5685 * alpha-tdep.c (alpha_push_dummy_call): Use
5686 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5687
8ffd9b1b 5688 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5689 sign-extension of 32-bit values.
5690 (alpha_store_return_value): Similarly.
0ede8eca 5691
98a8e1e5
RH
5692 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5693 (alpha_extract_return_value): Likewise.
5694 (alpha_store_return_value): Likewise.
7b5e1cb3 5695
98a8e1e5
RH
5696 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5697 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5698
98a8e1e5
RH
5699 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5700 (alpha_extract_struct_value_address): Likewise.
5701 (alpha_store_return_value): Likewise.
5702 (alpha_store_struct_return): Remove.
5703 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5704
98a8e1e5
RH
5705 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5706 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5707 macros where appropriate.
5708 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5709 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5710
98a8e1e5
RH
5711 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5712 for SP, GP; void_func_ptr for PC; non-language-specific types
5713 for all others.
5714 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5715
6dd77b81
RH
57162003-06-02 Richard Henderson <rth@redhat.com>
5717
5718 * top.h (lim_at_start): Declare.
5719 * main.c (captured_main): Set it.
5720 * top.c (lim_at_start): Define.
5721 (command_loop): Use it instead of &environ.
5722 * event-top.c (command_handler): Likewise.
5723
f4dbdb54
JT
57242003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5725
5726 * mipsnbsd-tdep.c: Update copyright years.
5727 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5728
8f285956
RH
57292003-06-01 Richard Henderson <rth@redhat.com>
5730
98a8e1e5
RH
5731 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5732 (alpha-linux-tdep.o): Update dependencies.
5733 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5734 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5735
615967cb
RH
57362003-06-01 Richard Henderson <rth@redhat.com>
5737
98a8e1e5
RH
5738 * alpha-tdep.c (alpha_register_reggroup_p): New.
5739 (alpha_gdbarch_init): Register it.
615967cb 5740
b59661bd
AC
57412003-06-02 Andrew Cagney <cagney@redhat.com>
5742
5743 * dwarfread.c: Eliminate "register"
5744 (decode_die_type): Eliminate assignment within "if".
5745 (struct_type, decode_array_element_type): Ditto.
5746 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5747 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5748 (decode_modified_type, completedieinfo): Ditto.
5749 * block.c: Eliminate "register".
5750 (blockvector_for_pc_sect): Eliminate assignment within "if".
5751 * cp-support.h (struct symbol): Opaque declaration.
5752 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5753
5ef165c2
RH
57542003-06-01 Richard Henderson <rth@redhat.com>
5755
98a8e1e5
RH
5756 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5757 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5758
143985b7
AF
57592003-06-01 Adam Fedor <fedor@gnu.org>
5760
5761 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5762 * gdbarch.[ch]: Regenerate.
5763 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5764 (hppa_gdbarch_init): Set it in the gdbarch vector.
5765 * i386-tdep.c (i386_fetch_pointer_argument): New
5766 (i386_gdbarch_init): Set it into gdbarch.
5767 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5768 (rs6000_gdbarch_init): Set it in gdbarch.
5769 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5770 (sparc_gdbarch_init): Set it in gdbarch.
5771
ae0167b9
AC
57722003-06-01 Andrew Cagney <cagney@redhat.com>
5773
7c0b4a20
AC
5774 * defs.h (extract_address): Delete declaration.
5775 * findvar.c (extract_address): Delete function.
5776 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5777 extract_address with the inline equivalent,
5778 extract_unsigned_integer.
5779 (xstormy16_extract_struct_value_address): Ditto.
5780 (xstormy16_pointer_to_address): Ditto.
5781 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5782 * v850-tdep.c (v850_push_arguments): Ditto.
5783 (v850_extract_return_value): Ditto.
5784 (v850_extract_struct_value_address): Ditto.
5785 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5786 (sparcnbsd_get_longjmp_target_64): Ditto.
5787 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5788 (get_longjmp_target): Ditto.
5789 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5790 (sh64_extract_struct_value_address): Ditto.
5791 (sh_push_arguments): Ditto.
5792 (sh64_push_arguments): Ditto.
5793 * remote-vxsparc.c (vx_read_register): Ditto.
5794 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5795 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5796 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5797 * mipsv4-nat.c (get_longjmp_target): Ditto.
5798 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5799 * mips-nat.c (get_longjmp_target): Ditto.
5800 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5801 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5802 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5803 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5804 * irix5-nat.c (get_longjmp_target): Ditto.
5805 * irix4-nat.c (get_longjmp_target): Ditto.
5806 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5807 (ia64_push_arguments): Ditto.
5808 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5809 * h8300-tdep.c (h8300_push_arguments): Ditto.
5810 (h8300_store_return_value): Ditto.
5811 (h8300_extract_struct_value_address): Ditto.
5812 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5813 (frv_push_arguments): Ditto.
5814 * avr-tdep.c (avr_pointer_to_address): Ditto.
5815 (avr_push_arguments): Ditto.
5816 * arm-tdep.c (arm_push_dummy_call): Ditto.
5817 (arm_get_longjmp_target): Ditto.
5818 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5819 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5820 (alpha_get_longjmp_target): Ditto.
5821
ae0167b9
AC
5822 * solib-irix.c (extract_mips_address): Inline extract_address,
5823 replacing it with extract_signed_integer.
5824 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5825 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5826 (first_link_map_member, open_symbol_file_object): Ditto.
5827 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5828 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5829 (LM_NEXT, LM_NAME): Ditto.
5830
44d88583
RH
58312003-06-01 Richard Henderson <rth@redhat.com>
5832
98a8e1e5
RH
5833 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5834 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5835 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5836 (alpha_cannot_store_register): Likewise.
5837 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5838 * alpha-nat.c (supply_gregset): Likewise.
5839 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5840
310e9b6a
AC
58412003-06-01 Andrew Cagney <cagney@redhat.com>
5842
5843 * infcall.c (call_function_by_hand): Update comment on
5844 DEPRECATED_DUMMY_WRITE_SP.
5845
5846 * mips-tdep.c (mips_gdbarch_init): Do not set
5847 deprecated_dummy_write_sp.
5848 (mips_eabi_push_dummy_call): Set the SP register.
5849 (mips_o64_push_dummy_call): Set the SP register.
5850 (mips_o32_push_dummy_call): Set the SP register.
5851 (mips_n32n64_push_dummy_call): Set the SP register.
5852
5ab84872
RH
58532003-06-01 Richard Henderson <rth@redhat.com>
5854
98a8e1e5
RH
5855 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5856 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5857 (supply_gregset): Likewise.
5858 * alpha-tdep.c (alpha_store_return_value): Likewise.
5859 (alpha_get_longjmp_target): Likewise.
5860 (alpha_register_name): Constify array.
5861 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5862 deprecated_register_size, deprecated_register_bytes,
5863 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5864 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5865 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5866
09cc52fd
RH
58672003-06-01 Richard Henderson <rth@redhat.com>
5868
5869 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5870 from arg_reg_buffer to regcache to avoid double conversion.
5871
c7f16359
MK
58722003-06-01 Mark Kettenis <kettenis@gnu.org>
5873
5874 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5875 SP_REGNUM.
5876 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5877 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5878
7131cb6e
RH
58792003-06-01 Richard Henderson <rth@redhat.com>
5880
98a8e1e5
RH
5881 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5882 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5883
f3e0f90b
RH
58842003-06-01 Richard Henderson <rth@redhat.com>
5885
98a8e1e5
RH
5886 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5887 not overlapping PC_REGNUM.
f3e0f90b 5888
c88e30c0
RH
58892003-06-01 Richard Henderson <rth@redhat.com>
5890
98a8e1e5
RH
5891 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5892 alpha_push_arguments. Don't dump argument register data to
5893 the target stack. Fix float and 128-bit long double semantics.
5894 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5895 (alpha_fix_call_dummy): Remove.
5896 (alpha_call_dummy_words): Remove.
5897 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5898
f1a559ae
RH
58992003-06-01 Richard Henderson <rth@redhat.com>
5900
5901 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5902
5e045346
AC
59032003-06-01 Andrew Cagney <cagney@redhat.com>
5904
95404a3e
AC
5905 * mips-tdep.c (is_mips16_addr): New function.
5906 (make_mips16_addr, unmake_mips16_addr): New functions.
5907 (pc_is_mips16, mips_fetch_instruction): Use.
5908 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5909 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5910 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5911 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5912 TARGET_MIPS.
5913 * config/mips/tm-mips.h: Update copyright.
5914 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5915 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5916 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5917 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5918 (TM_PRINT_INSN_MACH): Delete.
5919 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5920
5e045346
AC
5921 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5922 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5923 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5924 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5925 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5926 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5927 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5928 mips*-*-riscos* and mips*-*-sysv* onto mips.
5929 * config/mips/mips64.mt: New file.
5930 * config/mips/mips.mt: New file.
5931 * config/mips/littlemips.mt: Delete file.
5932 * config/mips/decstation.mt: Delete file.
5933 * config/mips/vr4300el.mt: Delete file.
5934 * config/mips/vr5000el.mt: Delete file.
5935 * config/mips/vr5000.mt: Delete file.
5936 * config/mips/vr4100.mt: Delete file.
5937 * config/mips/vr4xxxel.mt: Delete file.
5938 * config/mips/vr4300.mt: Delete file.
5939 * config/mips/vr4xxx.mt: Delete file.
5940 * config/mips/bigmips.mt: Delete file.
5941 * config/mips/bigmips64.mt: Delete file.
5942 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5943 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5944 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5945 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5946 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5947 "tm-bigmips.h".
5948 * config/mips/tm-irix3.h: Ditto.
5949 * config/mips/tm-mipsv4.h: Ditto.
5950 * config/mips/tm-embed.h: Ditto.
5951 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5952 "tm-bigmips64.h".
5953 * config/mips/tm-vr5000el.h: Delete file.
5954 * config/mips/tm-tx39l.h: Delete file.
5955 * config/mips/tm-vr4300el.h: Delete file.
5956 * config/mips/tm-vr4xxxel.h: Delete file.
5957 * config/mips/tm-vr4300.h: Delete file.
5958 * config/mips/tm-vr4100.h: Delete file.
5959 * config/mips/tm-vr4xxx.h: Delete file.
5960 * config/mips/tm-vr5000.h: Delete file.
5961 * config/mips/tm-embedl64.h: Delete file.
5962 * config/mips/tm-embedl.h: Delete file.
5963 * config/mips/tm-embed64.h: Delete file.
5964 * config/mips/tm-bigmips64.h: Delete file.
5965 * config/mips/tm-bigmips.h: Delete file.
5966
2473a4a9
MK
59672003-06-01 Mark Kettenis <kettenis@gnu.org>
5968
97a5b208
MK
5969 Fix gdb/1216.
5970 * shnbsd-nat.c: Include "sh-tdep.h".
5971
2473a4a9
MK
5972 From Richard Henderson <rth@redhat.com>:
5973 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5974
e0f7ec59
AC
59752003-05-31 Andrew Cagney <cagney@redhat.com>
5976
5977 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5978 forward declaration.
5979 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5980 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5981 (mips_find_saved_regs): Use set_reg_offset.
5982 (mips_frame_init_saved_regs): Delete function.
5983 (mips_pop_frame): Call mips_find_saved_regs instead of
5984 DEPRECATED_FRAME_INIT_SAVED_REGS.
5985
68dcc709
AC
59862003-05-31 Andrew Cagney <cagney@redhat.com>
5987
5988 * mips-tdep.c (mips_gdbarch_init): Do not set
5989 deprecated_max_register_raw_size, register_virtual_size, and
5990 deprecated_max_register_virtual_size.
5991
cfc14b3a
MK
59922003-05-31 Mark Kettenis <kettenis@gnu.org>
5993
6405b0a6
MK
5994 * i386-tdep.c: Include "dwarf2-frame.h".
5995 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5996 * Makefile.in (i386-tdep.o): Update dependencies.
5997
cfc14b3a
MK
5998 * dwarf2-frame.c, dwarf2-frame.h: New files.
5999 * Makefile.in (SFILES): Add dwarf2-frame.c.
6000 (dwarf2_frame_h): Define.
6001 (COMMON_OBS): Add dwarf2-frame.o.
6002 (dwarf2-frame.o): Add dependencies.
6003
6a2751d2
AJ
60042003-05-31 Andreas Jaeger <aj@suse.de>
6005
6006 * x86-64-linux-nat.c: Fix comment.
6007
1c3545ae
MK
60082003-05-31 Mark Kettenis <kettenis@gnu.org>
6009
10f93086
MK
6010 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6011 function signature.
6012
1c3545ae
MK
6013 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6014 have a sigcontext_addr handler.
6015 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6016 sigcontext_addr handler.
6017
e11c53d2
AC
60182003-05-31 Andrew Cagney <cagney@redhat.com>
6019
6020 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6021 (print_fp_register_row): Replace do_fp_register_row.
6022 (mips_print_fp_register): Add "file" and "frame" parameters.
6023 (mips_print_register): Add "file" and "frame" parameters.
6024 (mips_print_registers_info): Replace mips_do_registers_info.
6025 (mips_gdbarch_init): Set print_registers_info instead of
6026 deprecated_do_registers_info.
6027 (mips_read_fp_register_single): Add "frame" parameter.
6028 (mips_read_fp_register_double): Add "frame" parameter.
6029
a3386186
MK
60302003-05-31 Mark Kettenis <kettenis@gnu.org>
6031
70913449
MK
6032 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6033 Fixes a bug where GDB would print the wrong register names for
6034 targets without SSE.
6035
2b5e0749
MK
6036 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6037 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6038 registers.
6039
6040 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6041 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6042 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6043 TDEP->sc_sp_offset.
6044
a3386186
MK
6045 From Michal Ludvig <mludvig@suse.cz>:
6046 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6047 and `sc_num_regs'.
6048 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6049 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6050 I386_ST0_REGNUM): Move here from...
6051 * i386-tdep.c: ... here.
6052 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6053 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6054 registers if possible.
6055 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6056 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6057 Remove variables.
6058 (i386bsd_sc_reg_offset): New variable.
6059 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6060 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6061 TDEP->sc_sp_offset.
6062 (i386fbsd_sc_reg_offset): New variable.
6063 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6064 TDEP->sc_num_regs.
6065 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6066 variables.
6067 (i386fbsd4_sc_reg_offset): New variable.
6068 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6069 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6070 TDEP->sc_sp_offset.
6071 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6072 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6073 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6074 Remove variables.
6075 (i386nbsd_sc_reg_offset): New variable.
6076 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6077 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6078 TDEP->sc_sp_offset.
6079 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6080 Remove variables.
6081 (i386obsd_sc_reg_offset): New variable.
6082 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6083 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6084 TDEP->sc_sp_offset.
6085 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6086 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6087 for frame pointer offset in `struct sigcontext'.
6088
25ab4790
AC
60892003-05-31 Andrew Cagney <cagney@redhat.com>
6090
6091 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6092 architecture methods call_dummy_words, sizeof_call_dummy_words,
6093 push_return_address, store_struct_return, and fix_call_dummy. Set
6094 push_dummy_call instead of deprecated_push_arguments.
6095 (mips_store_struct_return): Delete function.
6096 (mips_fix_call_dummy): Delete function.
6097 (mips_push_return_address): Delete function.
6098 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6099 RA_REGNUM and T9_REGNUM.
6100 (mips_n32n64_push_dummy_call): Ditto for
6101 mips_n32n64_push_arguments.
6102 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6103 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6104
6a65450a
AC
61052003-05-31 Andrew Cagney <cagney@redhat.com>
6106
6107 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6108 "dummy_addr" to "bp_addr".
6109 * infcall.c (call_function_by_hand): Pass "funaddr" to
6110 gdbarch_push_dummy_call.
6111 * gdbarch.h, gdbarch.c: Re-generate.
6112 * i386-tdep.c (i386_push_dummy_call): Update.
6113 * arm-tdep.c (arm_push_dummy_call): Update.
6114 * d10v-tdep.c (d10v_push_dummy_call): Update.
6115
c4f35dd8
MK
61162003-05-31 Mark Kettenis <kettenis@gnu.org>
6117
6118 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6119 variable declarations.
6120 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6121 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6122 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6123 x86_64_init_frame_pc, x86_64_init_frame_pc,
6124 x86_64_function_has_prologue): Remove prototypes.
6125 (X86_64_NUM_GREGS): New define.
6126 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6127 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6128 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6129 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6130 XMM1_REGNUM): Remove defines.
6131 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6132 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6133 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6134 X86_64_XMM1_REGNUM): New defines.
6135 (struct x86_64_register_info): Renamed from `struct
6136 register_info'. Remove `size' member.
6137 (x86_64_register_info_table): Remove variable.
6138 (x86_64_register_info): New variable.
6139 (X86_64_NUM_REGS): New define.
6140 (X86_64_NUM_GREGS): Remove define.
6141 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6142 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6143 Remove variables.
6144 (x86_54_dwarf2_reg_to_regnum): Remove function.
6145 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6146 (x86_64_dwarf_reg_to_regnum): New function.
6147 (x86_64_register_name): Rewrite.
6148 (x86_64_register_raw_size): Remove function.
6149 (x86_64_register_byte_table): Remove variable.
6150 (x86_64_register_byte): Remove function.
6151 (x86_64_register_virtual_type): Remove function.
6152 (x86_64_register_type): New function.
6153 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6154 x86_64_register_convert_to_raw): Remove functions.
6155 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6156 (x86_64_use_struct_convention): Make static. Adjust for renamed
6157 defines.
6158 (x86_64_frame_init_saved_regs): Remove function.
6159 (x86_64_push_arguments): Make static. Change to accept a regcache
6160 as argument.
6161 (x86_64_store_return_value, x86_64_extract_return_value): Make
6162 static. Rewrite based on i386 counterparts.
6163 (x86_64_push_dummy_call): New function.
6164 (X86_64_NUM_SAVED_REGS): New define.
6165 (x86_64_register_number): Remove function.
6166 (x86_64_store_struct_return): Remove function.
6167 (x86_64_frameless_function_invocation,
6168 x86_64_function_has_prologue): Remove functions.
6169 (PROLOG_BUFSIZE): Remove define.
6170 (struct x86_64_frame_cache): New structure.
6171 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6172 x86_64_frame_cache, x86_64_frame_this_id,
6173 x86_64_frame_prev_register, x86_64_frame_p,
6174 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6175 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6176 functions.
6177 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6178 variables.
6179 (x86_64_skip_prologue): Rewrite in terms of
6180 x86_64_analyze_prologue.
6181 (x86_64_frame_base_address): New function.
6182 (x86_64_frame_base): New variable.
6183 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6184 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6185 set deprecated_fp_regnum, deprecated_register_size,
6186 deprecated_register_bytes, register_raw_size, register_byte,
6187 register_virtual_type, register_convertiable,
6188 register_convert_to_virtual, convert_to_raw,
6189 deprecated_get_saved_register, deprecated_target_read_fp,
6190 deprecated_push_arguments, deprecated_push_return_address,
6191 deprecated_pop_frame, deprecated_store_struct_return,
6192 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6193 frameless_function_invocation, deprecated_frame_saved_pc,
6194 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6195 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6196 deprecated_init_frame_pc and virtual_frame_pointer. Call
6197 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6198 and x86_64_frame_p. Call frame_base_set_default to register
6199 x86_64_frame_base.
6200 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6201 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6202 (_initialize_x86_64_tdep): Remove function.
6203 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6204 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6205 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6206 define.
6207 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6208 (x86_64_linux_sigcontext_addr): Rewrite.
6209 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6210 x86_64_linux_frame_saved_pc): Remove functions.
6211 (x86_64_linux_pc_in_sigtramp): Renamed from
6212 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6213 trampoline.
6214 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6215 Remove_functions.
6216 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6217 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6218 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6219 (x86_64_regmap): Rename to regmap.
6220 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6221 x86_64_num_gregs.
6222 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6223 x86_64_regmap.
6224 (x86_64_fxsave_offset): Remove function.
6225 (supply_fpregset): Simply call x86_64_supply_fxsave.
6226 (fill_fpregset): Simply call x86_64_fill_fxsave.
6227 (fetch_inferior_registers, store_inferior_registers): Avoid
6228 asignment in if-statement.
6229 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6230 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6231 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6232 (fetch_core_registers): Remove function.
6233 (linux_elf_core_fns): Remove.
6234 (offsetoff): Don't define.
6235 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6236 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6237 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6238 add core-regset.o.
6239 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6240 protection against multiple includes instead of NM_X86_64_h. Add
6241 various comments. Include "config/nm-linux.h". Don't include
6242 <signal.h>.
6243 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6244 GET_THREAD_SIGNALS): Remove defines.
6245 (x86_64_register_u_addr, kernel_u_size,
6246 lin_thread_get_thread_signals): Remove prototypes.
6247 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6248 [HAVE_LINK_H]: Don't include "solib.h".
6249 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6250 * config/i386/tm-x86-64linux.h: Fix comments.
6251 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6252 x86-64-tdep.o): Update dependencies.
6253
c25083af
AC
62542003-05-30 Andrew Cagney <cagney@redhat.com>
6255
c8f55a7b
AC
6256 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6257 Change parameter type to a "struct regcache *".
6258
c25083af
AC
6259 * gdbarch.sh: Regardless of the multi-arch level, always define
6260 the macro when not already defined.
6261 * gdbarch.h, gdbarch.c: Re-generate.
6262
fbe586ae
RH
62632003-05-30 Richard Henderson <rth@redhat.com>
6264
6265 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6266 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6267 (alpha_mdebug_frame_this_id): Likewise.
6268 (alpha_mdebug_frame_prev_register): Likewise.
6269 (alpha_mdebug_frame_base_address): Likewise.
6270 (alpha_mdebug_frame_locals_address): Likewise.
6271 (alpha_mdebug_frame_args_address): Likewise.
6272 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6273 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6274 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6275 loop increment.
6276 (alpha_heuristic_frame_this_id): Make static.
6277 (alpha_heuristic_frame_prev_register): Likewise.
6278 (alpha_heuristic_frame_base_address): Likewise.
6279 * alpha-tdep.h: Update.
6280
acd5c798
MK
62812003-05-30 Mark Kettenis <kettenis@gnu.org>
6282
6283 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6284 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6285 defenitions.
6286 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6287 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6288 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6289 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6290 I386_ST0_REGNUM): New defines.
6291 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6292 codestream_get): Remove define.
6293 (codestream_next_addr, condestream_addr, condestream_buf,
6294 codestream_off, codestream_cnt): Remove variables.
6295 (codestream_fill, codestream_seek, codestream_read): Remove
6296 functions.
6297 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6298 functionality.
6299 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6300 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6301 i386_frame_saved_pc, i386_saved_pc_after_call,
6302 i386_frame_num_args, i386_frame_init_saved_regs,
6303 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6304 i386_push_arguments): Remove functions.
6305 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6306 functionality. Use i386_analyze_prologue instead of
6307 i386_get_frame_setup.
6308 (I386_NUM_SAVED_REGS): New define.
6309 (struct i386_frame_cache): New structure.
6310 (i386_alloc_frame_cache, i386_analyze_struct_return,
6311 i386_skip_probe, i386_analyze_frame_setup,
6312 i386_analyze_register_saves, i386_analyze_prologue,
6313 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6314 i386_frame_prev_register, i386_sigtramp_frame_cache,
6315 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6316 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6317 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6318 New functions.
6319 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6320 New variables.
6321 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6322 I386_EAX_REGNUM and I386_EDX_REGNUM.
6323 (i386_extract_return_value, i386_store_return_value): Use
6324 I386_ST0_REGNUM where appropriate.
6325 (i386_extract_struct_value_address): Rewrite to use extract_address.
6326 (i386_svr4_pc_in_sigtramp): Add comment.
6327 (i386_svr4_sigcontext_addr): Rewrite.
6328 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6329 TDEP->sc_sp_offset.
6330 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6331 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6332 of new defines. Set push_dummy_call, don't set
6333 deprecated_push_arguments, deprecated_push_return_address,
6334 deprecated_pop_frame. Don't set parm_boundary. Don't set
6335 deprecated_frame_chain, deprecated_frame_saved_pc,
6336 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6337 save_dummy_frame_tos, unwind_pc. Call
6338 frame_unwind_append_predicate and frame_base_set_default. Don't
6339 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6340 Don't set frameless_function_invocation. Don't set
6341 deprecated_register_bytes, deprecated_register_size,
6342 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6343 * i386-linux-tdep.c: Fix formatting in some comments.
6344 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6345 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6346 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6347 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6348 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6349 redundant parentheses.
6350 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6351 (i386_linux_sigcontext_addr): Use it. Rewrite.
6352 (find_minsym_and_objfile): Change name of second argument.
6353 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6354 changed. Use frame_pc_unwind instead of
6355 DEPRECATED_SAVED_PC_AFTER_CALL.
6356 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6357 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6358 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6359 unwinder.
6360 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6361 "dummy-frame.h".
6362 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6363 (_initialize_i386_cygwin_tdep): New prototype.
6364 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6365 deprecated_frame_chain_valid.
6366 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6367 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6368 Rely on the SVR4 defaults.
6369 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6370 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6371
c89b70f1
AC
63722003-05-30 Andrew Cagney <cagney@redhat.com>
6373
6374 * infcall.c (call_function_by_hand): Always call
6375 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6376
85b32d22
RH
63772003-05-30 Richard Henderson <rth@redhat.com>
6378
c89b70f1
AC
6379 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6380 increment.
85b32d22 6381
bfe51b1e
JB
63822003-05-29 Jim Blandy <jimb@redhat.com>
6383
6384 Use gdbarch methods for solib stuff on PowerPC Linux.
6385 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6386 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6387 show through.
6388 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6389 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6390 giving the same effect as the #definitions above.
6391
1abf022c
AF
63922003-05-29 Adam Fedor <fedor@gnu.org>
6393
6394 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6395 (find_implementation_from_class): Replace it with the standard
6396 case i.e. do nothing.
6397
d2427a71
RH
63982003-05-29 Richard Henderson <rth@redhat.com>
6399
6400 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6401 (alpha_linux_sigtramp_offset): Use it. Make static.
6402 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6403 update for new frame model.
6404 * alpha-mdebug-tdep.c: New file.
6405 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6406 (alpha_osf1_init_abi): Install it.
6407 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6408 (linked_proc_desc_table): Remove.
6409 (alpha_frame_past_sigtramp_frame): Remove.
6410 (alpha_dynamic_sigtramp_offset): Remove.
6411 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6412 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6413 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6414 (push_sigtramp_desc): Remove.
6415 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6416 (alpha_cannot_store_register): Likewise.
6417 (alpha_sigcontext_addr): Remove.
6418 (alpha_find_saved_regs): Remove.
6419 (alpha_frame_init_saved_regs): Remove.
6420 (alpha_init_frame_pc_first): Remove.
6421 (read_next_frame_reg): Remove.
6422 (alpha_frame_saved_pc): Remove.
6423 (alpha_saved_pc_after_call): Remove.
6424 (temp_proc_desc, temp_saved_regs): Remove.
6425 (alpha_about_to_return): Remove.
6426 (cached_proc_desc): Remove.
6427 (alpha_frame_chain): Remove.
6428 (alpha_print_extra_frame_info): Remove.
6429 (alpha_init_extra_frame_info): Remove.
6430 (alpha_frame_locals_address): Remove.
6431 (alpha_frame_args_address): Remove.
6432 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6433 (alpha_push_dummy_frame): Remove.
6434 (alpha_pop_frame): Remove.
6435 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6436 (alpha_read_insn): New.
6437 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6438 for different insn encodings.
6439 (alpha_in_lenient_prologue): Remove.
6440 (struct alpha_sigtramp_unwind_cache): New.
6441 (alpha_sigtramp_frame_unwind_cache): New.
6442 (alpha_sigtramp_register_address): New.
6443 (alpha_sigtramp_frame_this_id): New.
6444 (alpha_sigtramp_frame_prev_register): New.
6445 (alpha_sigtramp_frame_unwind): New.
6446 (alpha_sigtramp_frame_p): New.
6447 (struct alpha_heuristic_unwind_cache): New.
6448 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6449 don't count nop insns that occur between functions.
6450 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6451 heuristic_proc_desc, but without the mdebug wrapping.
6452 (alpha_heuristic_frame_this_id): New.
6453 (alpha_heuristic_frame_prev_register): New.
6454 (alpha_heuristic_frame_unwind): New.
6455 (alpha_heuristic_frame_p): New.
6456 (alpha_heuristic_frame_base_address): New.
6457 (alpha_heuristic_frame_base): New.
6458 (alpha_unwind_dummy_id): New.
6459 (alpha_unwind_pc): New.
6460 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6461 frame related deprecated initializations; install replacements.
6462 (alpha_dump_tdep): Remove.
6463 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6464 (alpha_read_insn, alpha_after_prologue,
6465 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6466 alpha_heuristic_frame_prev_register,
6467 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6468 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6469 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6470 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6471
93ec1121
AC
64722003-05-29 Andrew Cagney <cagney@redhat.com>
6473
6474 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6475 dependant on the availability of ASSERT_FUNCTION.
6476 (ASSERT_FUNCTION): Do not define when there is no function name.
6477
98f08d3d
KB
64782003-05-29 Kevin Buettner <kevinb@redhat.com>
6479
6480 From Jimi X <jimix@watson.ibm.com>:
6481 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6482
0897f59b
JB
64832003-05-28 Jim Blandy <jimb@redhat.com>
6484
6485 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6486 argument to ptrace to int; the system headers should give it the
6487 right type, and pointers don't fit in ints on powerpc64-*-*.
6488
14898363
L
64892003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6490
6491 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6492 DW_TAG_catch_block.
6493
a7a48797
EZ
64942003-05-26 Elena Zannoni <ezannoni@redhat.com>
6495
6496 * stabsread.c (dbx_lookup_type): Make static.
6497 (read_type): Ditto.
6498 (add_undefined_type): Ditto.
6499 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6500 not export.
6501
f5479e9c
EZ
65022003-05-26 Elena Zannoni <ezannoni@redhat.com>
6503
6504 * hpread.c (hpread_has_name): Make static.
6505 (hpread_psymtab_to_symtab): Ditto.
6506 (file_exists): Ditto.
6507 (hpread_call_pxdb): Ditto.
6508 (hpread_pxdb_needed): Ditto.
6509 (hpread_quick_traverse): Ditto.
6510 (hpread_get_header): Ditto.
6511 (hpread_get_lntt): Ditto.
6512 (hpread_get_slt): Ditto.
6513 (class_of): Ditto.
6514
eb2e12d7
AS
65152003-05-25 Andreas Schwab <schwab@suse.de>
6516
78bf922a
AS
6517 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6518 stack_align and deprecated_extra_stack_alignment_needed.
6519 (m68k_stack_align): Delete.
6520
eb2e12d7
AS
6521 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6522 (m68k_register_virtual_size): Likewise.
6523 (altos_skip_prologue): Remove obsolete function.
6524 (isi_frame_num_args): Likewise.
6525 (news_frame_num_args): Likewise.
6526 (m68k_fix_call_dummy): Make static.
6527 (m68k_push_dummy_frame): Likewise.
6528 (m68k_pop_frame): Likewise.
6529 (m68k_skip_prologue): Likewise.
6530 (m68k_frame_init_saved_regs): Likewise.
6531 (m68k_saved_pc_after_call): Likewise.
6532 (m68k_get_longjmp_target): Make multi-arch.
6533 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6534 structure. Register m68k_get_longjmp_target if enabled.
6535 * m68k-tdep.h (struct gdbarch_tdep): Define.
6536 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6537
6538 * Makefile.in (config.status): Also depend on configure.tgt
6539 and configure.host.
6540 (m68klinux-tdep.o): Update dependencies.
6541 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6542 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6543 (M68K_LINUX_JB_PC): Define.
6544 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6545 and take additional parameter.
6546 (m68k_linux_sigtramp_saved_pc): Update.
6547 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6548 m68k_linux_pc_in_sigtramp, in_plt_section,
6549 find_solib_trampoline_target.
6550 * config/m68k/tm-linux.h: Don't include any tm headers.
6551 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6552 (JB_ELEMENT_SIZE): Likewise.
6553 (JB_PC): Likewise.
6554 (GET_LONGJMP_TARGET): Likewise.
6555 (IN_SIGTRAMP): Likewise.
6556 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6557
eb2c22dc
MK
65582003-05-25 Mark Kettenis <kettenis@gnu.org>
6559
6560 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6561 (sparc32_push_arguments): Re-implement by calling
6562 sparc32_do_push_arguments.
6563
44b7b84e
MK
65642003-05-25 Mark Kettenis <kettenis@gnu.org>
6565
6566 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6567 SPARC_O1_REGNUM): New defines.
6568 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6569 (sparc32_store_return_value): New function.
6570 (sparc_extract_struct_value_address): Rewrite to operate on a
6571 regcache.
6572 (sparc_gdbarch_init): Don't set
6573 deprecated_extract_struct_value_address. Set
6574 extract_struct_value_address instead. Don't set
6575 deprecated_extract_return_value and deprecated_store_return_value
6576 for 32-bit targets. Set extract_return_value and
6577 store_return_value instead.
6578 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6579 DEPRECTAED_EXTRACT_RETURN_VALUE,
6580 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6581 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6582 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6583 (sparc_store_return_value): Remove prototype.
6584 (sparc32_store_return_value): New prototype.
6585 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6586 Adjust prototypes.
6587
f6ad61e3
MK
65882003-05-24 Mark Kettenis <kettenis@gnu.org>
6589
6590 * sparcnbsd-tdep.c: Include "gdb_string.h".
6591
b276f1bb
AC
65922003-05-23 Andrew Cagney <cagney@redhat.com>
6593
6594 * p-valprint.c (pascal_val_print): Replace extract_address with
6595 the inline equivalent extract_unsigned_integer.
6596 * jv-valprint.c (java_value_print): Ditto.
6597 * ada-valprint.c (ada_val_print_1): Ditto.
6598 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6599
e76c5fcc
TR
66002003-05-23 Theodore A. Roth <troth@openavr.org>
6601
6602 * blockframe.c (frameless_look_for_prologue): Remove unused
6603 after_prologue variable.
6604
2cdd89cb
MK
66052003-05-23 Mark Kettenis <kettenis@gnu.org>
6606
6607 * blockframe.c (get_pc_function_start): Rewrite to avoid
6608 asignments in if-statements.
6609
182d43bc
EZ
66102003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6611
6612 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6613 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6614 files, don't relocate absolute symbols (and do use mst_abs).
6615
e8f3fcdd
AC
66162003-05-23 Andrew Cagney <cagney@redhat.com>
6617
6618 * objc-lang.c: Include "gdb_assert.h".
6619 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6620 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6621 (gdb_check, gdb_check_fatal): Delete functions.
6622 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6623 gdb_assert.
6624 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6625 * Makefile.in (objc-lang.o): Update dependencies.
6626
3c23e6fb
ILT
66272003-05-22 Ian Lance Taylor <ian@airs.com>
6628
6629 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6630 with fprintf_filtered, not fprintf_unfiltered.
6631
af1342ab
AC
66322003-05-22 Andrew Cagney <cagney@redhat.com>
6633
6634 * stack.c (frame_info): Inline extract_address, replacing it with
6635 extract_unsigned_integer.
6636 * findvar.c (unsigned_pointer_to_address): Ditto.
6637 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6638 * dwarf2expr.c (dwarf2_read_address): Ditto.
6639 * frame.c (frame_pc_unwind): Update comment.
6640 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6641
47e242ec
JJ
66422003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6643
6644 * infptrace.c (detach): Call print_sys_errmsg rather than
6645 perror_with_name to issue warning message when errno is non-zero
6646 after calling ptrace detach.
6647
e2ac8128
JB
66482003-05-21 J. Brobecker <brobecker@gnat.com>
6649
6650 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6651 macro definitions from here...
6652 * hppa-tdep.c: ...to there.
6653
92b3541e
KB
66542003-05-20 Kevin Buettner <kevinb@redhat.com>
6655
6656 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6657 register_ptrace_addr(). Fix all callers.
6658
55809acb
AS
66592003-05-21 Andreas Schwab <schwab@suse.de>
6660
6661 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6662 dependencies.
6663 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6664 end.
6665 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6666 (_initialize_m68k_linux_tdep): New function.
6667 (m68k_linux_frame_saved_pc): Make static.
6668 (m68k_linux_extract_return_value): Likewise.
6669 (m68k_linux_store_return_value): Likewise.
6670 (m68k_linux_extract_struct_value_address): Likewise.
6671 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6672 Remove.
6673 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6674 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6675 (DEPRECATED_FRAME_SAVED_PC): Remove.
6676
0fbc10f7
KW
66772003-05-20 Kris Warkentin <kewarken@qnx.com>
6678
6679 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6680 regset numbering rather than our own.
6681
58da2eb2
DC
66822003-05-19 David Carlton <carlton@bactrian.org>
6683
6684 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6685
1fcb5155
DC
66862003-05-19 David Carlton <carlton@bactrian.org>
6687
6688 Partial fix for PR c++/827.
6689 * cp-support.h: Include symtab.h.
6690 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6691 * cp-namespace.c: Update contributors.
6692 (cp_lookup_symbol_nonlocal): New.
6693 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6694 (lookup_symbol_file): Ditto.
6695 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6696 * block.h: Declare block_scope, block_using, block_global_block.
6697 * block.c (block_scope): New.
6698 (block_using, block_global_block): Ditto.
6699 * Makefile.in (cp_support_h): Depend on symtab_h.
6700 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6701
5f9a71c3
DC
67022003-05-19 David Carlton <carlton@bactrian.org>
6703
6704 * language.h (struct language_defn): Add 'la_value_of_this'
6705 and 'la_lookup_symbol_nonlocal' members.
6706 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6707 lookup_symbol_static, lookup_symbol_global,
6708 lookup_symbol_aux_block.
6709 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6710 if we should search fields of this and how to do static/global
6711 lookup.
6712 (lookup_symbol_aux_block): Make extern.
6713 (basic_lookup_symbol_nonlocal): New.
6714 (lookup_symbol_static, lookup_symbol_global): Ditto.
6715 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6716 'la_lookup_symbol_nonlocal' members.
6717 * c-lang.c (c_language_defn, cplus_language_defn)
6718 (asm_language_defn, minimal_language_defn): Ditto.
6719 * jv-lang.c (java_language_defn): Ditto.
6720 * language.c (unknown_language_defn, auto_language_defn)
6721 (local_language_defn): Ditto.
6722 * m2-lang.c (m2_language_defn): Ditto.
6723 * objc-lang.c (objc_language_defn): Ditto.
6724 * scm-lang.c (scm_language_defn): Ditto.
6725 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6726 * p-lang.c (pascal_language_defn): Ditto for both.
6727 * Makefile.in (f-lang.o): Depend on value_h.
6728 (p-lang.o): Ditto.
6729
89a9d1b1
DC
67302003-05-19 David Carlton <carlton@bactrian.org>
6731
6732 * block.h: Declare block_static_block.
6733 * block.c (block_static_block): New.
6734 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6735 lookup_symbol_aux_local, calling block_static_block instead.
6736 (lookup_symbol_aux_local): Delete 'static_block' argument.
6737
eed3f8ab
DC
67382003-05-19 David Carlton <carlton@bactrian.org>
6739
6740 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6741
a09d8bda
ML
67422003-05-19 Michal Ludvig <mludvig@suse.cz>
6743
6744 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6745 register numbers mapping.
6746
69636828
AF
67472003-05-18 Adam Fedor <fedor@gnu.org>
6748
6749 * symtab.c (completion_list_objc_symbol): New function.
6750 (make_symbol_completion_list): Use it to add ObjC symbols
6751 when looking though the list.
6752 (language_search_unquoted_string): New function.
6753 (make_file_symbol_completion_list): Use it.
6754
55baeb84
AS
67552003-05-18 Andreas Schwab <schwab@suse.de>
6756
d0b45d99
AS
6757 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6758 dependencies.
6759 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6760 as m68k_linux_extract_return_value.
6761 (DEPRECATED_STORE_RETURN_VALUE): Define as
6762 m68k_linux_store_return_value.
6763 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6764 m68k_linux_extract_struct_value_address.
6765 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6766 get_next_frame, get_frame_base, get_frame_pc.
6767 (m68k_linux_frame_saved_pc): Use get_frame_base.
6768 (m68k_linux_extract_return_value): New function.
6769 (m68k_linux_store_return_value): New function.
6770 (m68k_linux_extract_struct_value_address): New function.
6771 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6772
55baeb84
AS
6773 * c-exp.y (typebase): Remove duplicate occurence of
6774 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6775 of lookup_signed_typename.
55baeb84 6776
b6b08ebf
MK
67772003-05-18 Mark Kettenis <kettenis@gnu.org>
6778
6779 * dwarf2loc.c (find_location_expression): Change type of second
6780 argument to `size_t *'.
6781 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6782 for size variable.
6783
5ad1c190
DC
67842003-05-18 David Carlton <carlton@bactrian.org>
6785
6786 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6787 'linkage_name'. Add comment.
6788 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6789 'linkage_name'.
6790 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6791 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6792 (lookup_block_symbol): Ditto.
6793
b8b527c5
AC
67942003-05-16 Andrew Cagney <cagney@redhat.com>
6795
6796 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6797 * gdbarch.h, gdbarch.c: Re-generate.
6798 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6799 * TODO (REGISTER_BYTES): Delete reference.
6800 * alpha-tdep.c (alpha_gdbarch_init): Update.
6801 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6802 * x86-64-tdep.c (x86_64_init_abi): Update.
6803 * vax-tdep.c (vax_gdbarch_init): Update.
6804 * v850-tdep.c (v850_gdbarch_init): Update.
6805 * sparc-tdep.c (sparc_gdbarch_init): Update.
6806 * sh-tdep.c (sh_gdbarch_init): Update.
6807 * s390-tdep.c (s390_gdbarch_init): Update.
6808 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6809 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6810 (ns32k_gdbarch_init_32382): Update.
6811 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6812 * mcore-tdep.c (mcore_gdbarch_init): Update.
6813 * m68k-tdep.c (m68k_gdbarch_init): Update.
6814 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6815 * ia64-tdep.c (ia64_gdbarch_init): Update.
6816 * i386-tdep.c (i386_gdbarch_init): Update.
6817 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6818 * hppa-tdep.c (hppa_gdbarch_init): Update.
6819 * h8300-tdep.c (h8300_gdbarch_init): Update.
6820 * frv-tdep.c (frv_gdbarch_init): Update.
6821 * cris-tdep.c (cris_gdbarch_init): Update.
6822 * avr-tdep.c (avr_gdbarch_init): Update.
6823 * arm-tdep.c (arm_gdbarch_init): Update.
6824 * sparc-tdep.c (sparc_pop_frame): Update.
6825 * rs6000-tdep.c (rs6000_pop_frame): Update.
6826 * remote.c (init_remote_state): Update.
6827 (remote_prepare_to_store): Update.
6828 * remote-vx.c (vx_prepare_to_store): Update.
6829 * remote-sds.c (sds_fetch_registers): Update.
6830 (sds_prepare_to_store): Update.
6831 * remote-array.c: Update.
6832 * regcache.c (init_legacy_regcache_descr): Update.
6833 (init_regcache_descr): Update.
6834 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6835 (mips_o64_extract_return_value): Update.
6836 * irix5-nat.c (fetch_core_registers): Update.
6837 * irix4-nat.c (fetch_core_registers): Update.
6838 * i386-tdep.h: Update.
6839 * hppa-tdep.c (pa_do_registers_info): Update.
6840 (pa_do_strcat_registers_info): Update.
6841 * cris-tdep.c (cris_register_bytes_ok): Update.
6842 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6843 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6844 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6845 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6846 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6847 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6848 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6849 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6850 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6851 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6852 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6853 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6854 (REGISTER_BYTES_OK): Update.
6855 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6856 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6857
ee2842e2
ILT
68582003-05-16 Ian Lance Taylor <ian@airs.com>
6859
6860 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6861 (vax_print_insn, print_insn_arg): Remove static functions.
6862 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6863 print_insn_vax from opcodes library.
6864 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6865
973177d3
AC
68662003-05-15 Andrew Cagney <cagney@redhat.com>
6867
aaab4dba
AC
6868 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6869 * target.h (memory_breakpoint_from_pc): Delete declaration.
6870 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6871 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6872 * monitor.c (monitor_insert_breakpoint): Use
6873 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6874 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6875 * gdbarch.h, gdbarch.c: Re-generate.
6876 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6877 (sparc_gdbarch_init): Set breakpoint_from_pc to
6878 sparc_breakpoint_from_pc.
6879 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6880 (BREAKPOINT_FROM_PC): Define.
6881 (sparc_breakpoint_from_pc): Declare.
6882 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6883 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6884 (BREAKPOINT_FROM_PC): Define.
6885 (BREAKPOINT): Delete macro.
6886 * target.h: Update comment.
6887 * s390-tdep.c (s390_gdbarch_init): Update comments.
6888 * remote.c: Update comments.
6889 * remote-mips.c: Update comments.
6890 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6891 * mem-break.c: Update comment.
6892 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6893 (ia64_memory_insert_breakpoint): Update.
6894 * config/sparc/tm-sparc.h: Update comment.
6895 * config/pa/tm-hppa64.h: Update comment.
6896 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6897 (rs6000_breakpoint_from_pc): Update.
6898 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6899 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6900 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6901 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6902 (mips_breakpoint_from_pc): Update.
6903 (mips_dump_tdep): Update.
6904
e06963ff
AC
6905 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6906 * minsyms.c (lookup_minimal_symbol): Inline
6907 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6908
973177d3
AC
6909 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6910 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6911 * p-lang.c (pascal_printstr): Ditto.
6912 * objc-lang.c (objc_printstr): Ditto.
6913 * m2-lang.c (m2_printstr): Ditto.
6914 * jv-valprint.c (java_print_value_fields): Ditto.
6915 * f-lang.c (f_printstr): Ditto.
6916 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6917 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6918 for repeat_count_threshold.
6919 * Makefile.in (cp-valprint.o): Update dependencies.
6920
5ea2bd7f 69212003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6922
5ea2bd7f
JJ
6923 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6924 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6925 they start with mov r2,r12. Support skipping over indirect stores
6926 of the input registers. Upon hitting a non-nop branch instruction
6927 or predicated instruction, bail out by setting lim_pc to the current
6928 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6929 beyond our calculated value and we have trust_limit set,
6930 use the lim_pc value.
6931
cc8c88f3
AC
69322003-05-15 Andrew Cagney <cagney@redhat.com>
6933
6934 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6935 generic_find_dummy_frame.
6936 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6937 (deprecated_generic_find_dummy_frame): Update.
6938 (deprecated_read_register_dummy): Update.
6939 * frame.c (deprecated_generic_get_saved_register): Update.
6940
909cd28e
TR
69412003-05-15 Theodore A. Roth <troth@openavr.org>
6942
6943 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6944 (avr_gdbarch_init): Set breakpoint_from_pc method.
6945
b923b08d
AC
69462003-05-15 Andrew Cagney <cagney@redhat.com>
6947
6948 * regcache.c (build_regcache): Set deprecated_register_valid
6949 directly.
6950 (deprecated_grub_regcache_for_register_valid): Delete function.
6951 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6952 declaration.
6953
ae2f03ac 69542003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6955
6956 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6957 * symtab.c (lookup_symbol_aux): Delete calls to
6958 lookup_symbol_aux_minsyms.
6959 (lookup_symbol_aux_minsyms): Comment out function and
6960 prototype. Delete lookup by mangled name.
ae2f03ac 6961
18ec9831
KB
69622003-05-14 Kevin Buettner <kevinb@redhat.com>
6963
6964 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6965 correctly indicate an empty stack and ``stack_allocated'' to the
6966 indicate the number of elements initially allocated.
6967 (dwarf_expr_grow_stack): Simplify method for computing new
6968 stack size. Don't loop infinitely if ``stack_len'' is zero.
6969 (execute_stack_op): Move ``ctx->in_reg'' initialization
6970 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6971 be used in conjuction with DW_OP_piece. Revise error message
6972 accordingly.
6973
de18ac1f
TR
69742003-05-14 Theodore A. Roth <troth@openavr.org>
6975
6976 * MAINTAINERS: Update my email address.
6977 * avr-tdep.c: Ditto.
6978
176620f1
EZ
69792003-05-14 Elena Zannoni <ezannoni@redhat.com>
6980
6981 * symtab.h (enum domain_enum): Rename from namespace_enum.
6982 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6983 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6984 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6985 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6986 TYPES_NAMESPACE, METHODS_NAMESPACE.
6987 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6988 (struct symbol, struct partial_symbol): Rename field
6989 'namespace_enum namespace' to 'domain_enum domain'.
6990 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6991 Delete old define kludge for namespace.
6992
6993 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6994 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6995 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6996 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6997 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6998 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6999 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7000 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7001 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7002 occurrences of the above.
7003
b7f31508
ILT
70042003-05-14 Ian Lance Taylor <ian@airs.com>
7005
7006 * Makefile.in (install-only): Use $(SHELL) when running
7007 mkinstalldirs.
7008
2fdbdd39
ILT
70092003-05-13 Ian Lance Taylor <ian@airs.com>
7010
a208d82c
ILT
7011 * MAINTAINERS (write after approval): Add myself.
7012
2fdbdd39
ILT
7013 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7014 second and third arguments.
7015 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7016 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7017
fbd9dcd3
AC
70182003-05-13 Andrew Cagney <cagney@redhat.com>
7019
7020 * defs.h (store_address): Delete declaration.
7021 findvar.c (store_address): Delete function.
7022 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7023 store_unsigned_integer.
7024 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7025 * v850-tdep.c (v850_push_arguments): Ditto.
7026 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7027 * sh-tdep.c (sh64_get_saved_register): Ditto.
7028 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7029 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7030 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7031 (mips_get_saved_register): Ditto.
7032 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7033 (find_func_descr, ia64_push_arguments): Ditto.
7034 * i386-tdep.c (i386_push_arguments): Ditto.
7035 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7036 * frv-tdep.c (frv_push_arguments): Ditto.
7037 * frame.c (legacy_saved_regs_prev_register): Ditto.
7038 (deprecated_generic_get_saved_register): Ditto.
7039 * findvar.c (unsigned_address_to_pointer): Ditto.
7040 * dwarf2read.c (dwarf2_const_value): Ditto.
7041 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7042 * alpha-tdep.c (alpha_push_arguments): Ditto.
7043
6760f9e6
JB
70442003-05-12 J. Brobecker <brobecker@gnat.com>
7045
7046 * NEWS: Mention that the hppa-hpux port has been partially
7047 multiarched (32bit ABIT only, so far).
7048
30e221b4
AC
70492003-05-11 Andrew Cagney <cagney@redhat.com>
7050
7051 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7052 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7053 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7054 sim/testsuite/sim/arm/misaligned2.ms, and
7055 sim/testsuite/sim/arm/misaligned3.ms.
7056 * disasm.h (struct ui_file): Add opaque struct declaration.
7057 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7058 * frame.h (struct ui_file): Ditto.
7059
dea7f9ba
MK
70602003-05-11 Mark Kettenis <kettenis@gnu.org>
7061
7062 * value.h: Pretty print.
7063
01986c48
MK
70642003-05-10 Mark Kettenis <kettenis@gnu.org>
7065
7066 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7067
123a958e
AC
70682003-05-08 Andrew Cagney <cagney@redhat.com>
7069
7070 * regcache.h (max_register_size): Delete declaration.
7071 * regcache.c (max_register_size): Delete function.
7072 (struct regcache_descr): Delete field "max_register_size".
7073 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7074 registers fit in MAX_REGISTER_SIZE.
7075 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7076 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7077 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7078 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7079 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7080 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7081 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7082 * dve3900-rom.c, hppa-tdep.c: Ditto.
7083
eb294659
DC
70842003-05-08 David Carlton <carlton@math.stanford.edu>
7085
7086 * valops.c (push_word): Fix typo.
7087
d9d9c31f
AC
70882003-05-08 Andrew Cagney <cagney@redhat.com>
7089
7090 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7091 * gdbarch.h: Re-generate.
7092 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7093 (legacy_max_register_raw_size): Delete declaration.
7094 * regcache.c (legacy_max_register_raw_size): Delete function.
7095 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7096 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7097 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7098 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7099 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7100 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7101 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7102 * findvar.c, dwarf2cfi.c: Ditto.
7103
22540ece
AC
71042003-05-08 Andrew Cagney <cagney@redhat.com>
7105
7106 * mips-tdep.c (read_signed_register): New function, moved to here
7107 from "regcache.c".
7108 (read_signed_register_pid): Ditto.
7109 * regcache.c (read_signed_register_pid): Delete function, moved to
7110 "mips-tdep.c".
7111 (read_signed_register): Ditto.
7112 * regcache.h (read_signed_register): Delete declaration.
7113 (read_signed_register_pid): Delete declaration.
7114
0c92afe8
AC
71152003-05-08 Andrew Cagney <cagney@redhat.com>
7116
7117 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7118 * gdbarch.h: Re-generate.
7119 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7120 (legacy_max_register_virtual_size): Delete declaration.
7121 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7122 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7123 * tracepoint.c (memrange_sortmerge): Ditto.
7124 * sparc-tdep.c (sparc_print_registers): Ditto.
7125 * regcache.c (legacy_max_register_virtual_size): Delete function.
7126
6037b830
JB
71272002-05-08 J. Brobecker <brobecker@gnat.com>
7128
7129 * fork-child.c (escape_bang_in_quoted_argument): New function.
7130 (fork_inferior): Escape '!' characters in quoted arguments
7131 only when needed.
7132
5d62c8b1
JB
71332003-05-08 J. Brobecker <brobecker@gnat.com>
7134
7135 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7136 the language of the CU is not currently supported by GDB.
7137
20a0e81d
JB
71382003-05-08 J. Brobecker <brobecker@gnat.com>
7139
7140 * defs.h (language): Add language_minimal enum value.
7141 * c-lang.c (minimal_language_defn): New language definition.
7142 (_initialize_c_language): Add the new minimal language to the list
7143 of languages known to GDB.
7144
710ee10a
KB
71452003-05-08 Kevin Buettner <kevinb@redhat.com>
7146
7147 * frame.c (get_frame_type): Don't attempt to lazily initialize
7148 frame's unwinder for legacy frames.
7149
1750fa04
AC
71502003-05-07 Andrew Cagney <cagney@redhat.com>
7151
7152 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7153 and "regcache" parameters.
7154 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7155
ddf9f258 71562003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7157
7158 * dwarf2read.c (dwarf_decode_lines): Only use output of
7159 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7160 the current address.
7161
87767c29
AC
71622003-05-07 Andrew Cagney <cagney@redhat.com>
7163
7164 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7165 code.
7166
5e7b2f39
JB
71672003-05-07 Jim Blandy <jimb@redhat.com>
7168
7169 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7170 'maint info symtabs' and 'maint info psymtabs'.
7171 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7172 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7173 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7174 Declarations updated.
7175 * maint.c (maintenance_list_command): Delete.
7176 (_initialize_maint_cmds): Update calls to add_cmd.
7177 * gdbcmd.h (maintenancelistlist): Delete declaration.
7178 * cli/cli-cmds.c (maintenancelistlist): Delete.
7179 (init_cmd_lists): Don't initialize it.
7180 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7181
f6684c31
AC
71822003-05-07 Andrew Cagney <cagney@redhat.com>
7183
7184 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7185 "regcache".
7186 (d10v_print_registers_info): Update.
7187 (d10v_dmap_register, d10v_imap_register): Delete functions.
7188 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7189 and "imap_register".
7190 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7191 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7192 * arch-utils.c (generic_remote_translate_xfer_address): Add
7193 "regcache" and "gdbarch" parameters.
7194 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7195 parameter. Change class to multi-arch.
7196 * gdbarch.h, gdbarch.c: Re-generate.
7197 * remote.c (remote_xfer_memory): Use
7198 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7199
e4846b08
JJ
72002003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7201
7202 * infrun.c (prev_pc): Move declaration ahead of proceed().
7203 (proceed): Refresh prev_pc value before resuming.
7204 (stop_stepping): Remove code to refresh prev_pc.
7205
6b71b8ac
KW
72062003-05-06 Kris Warkentin <kewarken@qnx.com>
7207
7208 * nto-tdep.c: Removed stray comment.
7209
47979a4b
KW
72102003-05-06 Kris Warkentin <kewarken@qnx.com>
7211
7212 * i386-nto-tdep.c: Fix old K&R function definitions.
7213 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7214 Also change add_show_from_set() call to add_setshow_cmd().
7215 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7216
00905d52
AC
72172003-05-05 Andrew Cagney <cagney@redhat.com>
7218
7219 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7220 (fprint_dummy_frames): New function.
7221 (maintenance_print_dummy_frames): New function.
7222 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7223 * frame.c (fprint_frame_id): Make global.
7224 * frame.h (fprint_frame_id): Declare.
7225 * Makefile.in (dummy-frame.o): Update dependencies.
7226
b1e29e33
AC
72272003-05-05 Andrew Cagney <cagney@redhat.com>
7228
7229 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7230 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7231 SIZEOF_CALL_DUMMY_WORDS.
7232 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7233 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7234 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7235 CALL_DUMMY_BREAKPOINT_OFFSET.
7236 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7237 CALL_DUMMY_START_OFFSET.
7238 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7239 * gdbarch.h, gdbarch.c: Re-generate.
7240 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7241 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7242 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7243 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7244 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7245 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7246 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7247 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7248 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7249 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7250 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7251 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7252 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7253 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7254 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7255
72562003-05-05 Kris Warkentin <kewarken@qnx.com>
7257
7258 * configure.tgt: Add i[3456]86-*-nto*.
7259 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7260 * nto-tdep.c: New file. Neutrino target support routines.
7261 * nto-tdep.h: New file. Neutrino target header.
7262 * config/tm-qnxnto.h: New file.
7263 * config/i386/i386nto.mt: New file.
7264 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7265
0ce3d317
AC
72662003-05-04 Andrew Cagney <cagney@redhat.com>
7267
7268 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7269 (load_infrun_state): Ditto.
7270 (struct thread_info): Drop "prev_func_name" field.
7271 * thread.c (load_infrun_state): Update.
7272 (save_infrun_state): Update.
7273 * infrun.c (prev_func_name): Delete variable.
7274 (init_wait_for_inferior): Do not clear prev_func_name.
7275 (stop_stepping, keep_going, context_switch): Do not swap
7276 prev_func_name.
7277 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7278 instead of PC_IN_SIGTRAMP.
7279
46654a5b
AC
72802003-05-04 Andrew Cagney <cagney@redhat.com>
7281
7282 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7283 REGISTER_BYTE with register_offset_hack.
7284 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7285 that REGISTER_BYTE is consistent with the regcache.
7286 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7287 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7288
14b08c1b
MK
72892003-05-04 Mark Kettenis <kettenis@gnu.org>
7290
04c8243f
MK
7291 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7292 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7293
14b08c1b
MK
7294 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7295
c7a11e01
JB
72962003-05-03 J. Brobecker <brobecker@gnat.com>
7297
7298 From Thierry Schneider <tpschneider1@yahoo.com>
7299 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7300 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7301 (mi-cmd-symbol.o): Add rule.
7302
7043d8dc
AC
73032003-05-03 Andrew Cagney <cagney@redhat.com>
7304
7305 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7306 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7307 * gdbarch.h, gdbarch.c: Re-generate.
7308 * d10v-tdep.c (d10v_push_dummy_code): New function.
7309 (d10v_gdbarch_init): Set push_dummy_code.
7310 * infcall.c (legacy_push_dummy_code): New function.
7311 (generic_push_dummy_code): New function.
7312 (push_dummy_code): New function.
7313 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7314 instead of dummy_addr, to push_dummy_call. Move call to
7315 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7316 switch.
7317 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7318
92bf2b80
AC
73192003-05-03 Andrew Cagney <cagney@redhat.com>
7320
7321 * disasm.h (print_insn): Declare.
7322 * disasm.c (init_gdb_disassemble_info): New function.
7323 (gdb_disassembly): Call init_gdb_disassemble_info.
7324 (gdb_print_insn): New function.
7325 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7326 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7327 * mcore-tdep.c: Include "disasm.h"
7328 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7329 * d10v-tdep.c: Include "disasm.h".
7330 (display_trace): Call gdb_print_insn, instead of print_insn.
7331 (print_insn): Delete function.
7332 * printcmd.c: Include "disasm.h".
7333 (print_insn): Delete function.
7334 (print_formatted): Call gdb_print_insn, instead of print_insn.
7335 * Makefile.in (printcmd.o): Update dependencies.
7336 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7337
27d94c49
AC
73382003-05-02 Andrew Cagney <cagney@redhat.com>
7339
82de1e5b
AC
7340 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7341 PC_REGNUM, re-indent.
7342 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7343 PC_REGNUM isn't set.
7344
27d94c49
AC
7345 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7346 * gdbarch.h, gdbarch.c: Re-generate.
7347 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7348 register_virtual_size, pc_regnum, or register_bytes.
7349 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7350 (d10v_register_type): Use D10V_PC_REGNUM.
7351 (d10v_print_registers_info, d10v_read_pc): Ditto.
7352 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7353 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7354
a9c0dc7f
DC
73552003-05-02 David Carlton <carlton@bactrian.org>
7356
7357 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7358 the name with mstrsave.
7359
e33d66ec
EZ
73602003-05-02 Elena Zannoni <ezannoni@redhat.com>
7361
7362 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7363 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7364 (host_charset_name, target_charset_name): New vars for use by
7365 set/show commands.
7366 (host_charset_enum, target_charset_enum): New enums for set/show
7367 commands.
7368 (set_charset_sfunc, set_host_charset_sfunc,
7369 set_target_charset_sfunc): New functions.
7370 (set_host_charset, set_target_charset): Make static.
7371 (list_charsets, set_host_charset_command,
7372 set_target_charset_command): Delete functions.
7373 (show_charset_command): Rewrite as....
7374 (show_charset): Hook this up with the set/show command mechanism.
7375 (_initialize_charset): Change names of charsets to match the
7376 set/show enums. Use host_charset_name and target_charset_name.
7377 Use set/show mechanism for charset, host-charset, target-charset
7378 commands. Do not make 'show host-charset' and 'show
7379 target-charset' be aliases of 'show charset'.
7380
7381 * charset.h (set_host_charset, set_target_charset): Don't export,
7382 they are not used outside the file.
7383
2b6fd0d8
AC
73842003-05-01 Andrew Cagney <cagney@redhat.com>
7385
7386 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7387 (gdb_disassembly): Make "di" non static, always initialize and
7388 cleanup. Always use dis_asm_read_memory.
7389 (gdb_dis_asm_read_memory): Delete function.
7390
6ae2f580
AC
73912003-05-01 Andrew Cagney <cagney@redhat.com>
7392
7393 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7394 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7395
810ecf9f
AC
73962003-04-30 Andrew Cagney <cagney@redhat.com>
7397
7398 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7399 "tm_print_insn_info".
7400 (TARGET_PRINT_INSN_INFO): Delete macro.
7401 (dis_asm_read_memory): Delete function declaration.
7402 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7403 (tm_print_insn_info): Delete variable definition.
7404 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7405 * gdbarch.h, gdbarch.c: Re-generate.
7406 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7407 "deprecated_tm_print_insn_info".
7408 * mcore-tdep.c (mcore_dump_insn): Ditto.
7409 * mips-tdep.c (mips_gdbarch_init): Ditto.
7410 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7411 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7412 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7413 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7414 instead of TARGET_PRINT_INSN_INFO, add comment.
7415 * s390-tdep.c (s390_get_frame_info): Instead of
7416 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7417 (s390_check_function_end, s390_is_sigreturn): Ditto.
7418 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7419 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7420 * disasm.c: Include "gdbcore.h".
7421 (_initialize_disasm): New function, initialize
7422 "deprecated_tm_print_insn_info".
7423 (deprecated_tm_print_insn_info): New variable.
7424 (dis_asm_read_memory): Moved from "corefile.c", made static.
7425 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7426 * Makefile.in (disasm.o): Update dependencies.
7427
07020390
AC
74282003-04-30 Andrew Cagney <cagney@redhat.com>
7429
7430 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7431
a9fa03de
AF
74322003-04-29 Adam Fedor <fedor@gnu.org>
7433
7434 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7435 * infcall.c (find_function_addr): Make non-static.
7436 * infcall.h (find_function_addr): Declare.
7437 * Makefile.in (eval.o): Update dependencies.
7438
1bae87b9
AF
74392003-04-28 Adam Fedor <fedor@gnu.org>
7440
7441 * symtab.c (symbol_find_demangled_name): Check for and demangle
7442 ObjC symbols.
7443 (symbol_init_demangled_name): Init for language_objc as well.
7444
0ba6dca9
AC
74452003-04-28 Andrew Cagney <cagney@redhat.com>
7446
7447 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7448 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7449 * gdbarch.h, gdbarch.c: Re-generate.
7450 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7451 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7452 * inferior.h (deprecated_read_fp): Rename read_fp.
7453 (generic_target_read_fp): Delete declaration.
7454 * regcache.c (generic_target_read_fp): Delete function.
7455 (deprecated_read_fp): Replace read_fp, use
7456 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7457 * d10v-tdep.c (d10v_read_fp): Delete function.
7458 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7459
7460 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7461 deprecated_target_read_fp to generic_target_read_fp.
7462 * sh-tdep.c (sh_gdbarch_init): Ditto.
7463 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7465 * frv-tdep.c (frv_gdbarch_init): Ditto.
7466
7467 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7468 deprecated_fp_regnum.
7469 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7470 * vax-tdep.c (vax_gdbarch_init): Ditto.
7471 * v850-tdep.c (v850_gdbarch_init): Ditto.
7472 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7473 * sh-tdep.c (sh_gdbarch_init): Ditto.
7474 * s390-tdep.c (s390_gdbarch_init): Ditto.
7475 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7476 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7477 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7478 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7479 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7480 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7481 * i386-tdep.c (i386_gdbarch_init): Ditto.
7482 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7483 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7484 * frv-tdep.c (frv_gdbarch_init): Ditto.
7485 * cris-tdep.c (cris_gdbarch_init): Ditto.
7486 * avr-tdep.c (avr_gdbarch_init): Ditto.
7487 * arm-tdep.c (arm_gdbarch_init): Ditto.
7488 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7489
7490 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7491 * v850-tdep.c (v850_gdbarch_init): Ditto.
7492 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7493 * sh-tdep.c (sh_gdbarch_init): Ditto.
7494 * s390-tdep.c (s390_gdbarch_init): Ditto.
7495 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7496 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7497 * mips-tdep.c (mips_gdbarch_init): Ditto.
7498 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7499 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7500 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7501 * frv-tdep.c (frv_gdbarch_init): Ditto.
7502 * avr-tdep.c (avr_gdbarch_init): Ditto.
7503 * arm-tdep.c (arm_gdbarch_init): Ditto.
7504
7505 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7506 DEPRECATED_FP_REGNUM.
7507 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7508 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7509 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7510 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7511 (sparc32_register_virtual_type): Ditto.
7512 * sh-tdep.c (sh64_frame_chain): Ditto.
7513 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7514 (sh_nofp_frame_init_saved_regs): Ditto.
7515 (sh64_nofp_frame_init_saved_regs): Ditto.
7516 (sh_fp_frame_init_saved_regs): Ditto.
7517 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7518 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7519 * procfs.c (procfs_fetch_registers): Ditto.
7520 (procfs_store_registers): Ditto.
7521 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7522 (store_inferior_registers, fetch_core_registers): Ditto.
7523 (fetch_kcore_registers, clear_regs): Ditto.
7524 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7525 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7526 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7527 * nlm/i386.c (do_status): Ditto.
7528 * mipsv4-nat.c (supply_gregset): Ditto.
7529 * mips-tdep.c: Ditto for comments.
7530 * mips-nat.c (fetch_inferior_registers): Ditto.
7531 (store_inferior_registers, fetch_core_registers): Ditto.
7532 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7533 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7534 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7535 (i386_do_pop_frame, i386_register_type): Ditto.
7536 * hppa-tdep.c (hppa_frame_chain): Ditto.
7537 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7538 (hppa_pop_frame, hppa_read_fp): Ditto.
7539 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7540 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7541 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7542 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7543 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7544 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7545 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7546 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7547 * blockframe.c: Ditto for comments.
7548 * arch-utils.h: Ditto for comments.
7549 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7550 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7551 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7552 * alpha-tdep.h: Ditto for comments.
7553 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7554 (alpha_cannot_store_register): Ditto.
7555 (alpha_push_dummy_frame): Ditto.
7556 * alpha-nat.c (supply_gregset): Ditto.
7557
7558 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7559 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7560 * config/sparc/tm-sparc.h: Update comment.
7561
7562 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7563 deprecated_read_fp instead of TARGET_READ_FP.
7564 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7565 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7566 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7567 deprecated_read_fp instead of read_fp.
7568 * s390-tdep.c (s390_push_arguments): Ditto.
7569 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7570 * frame.h: Ditto in comments.
7571 * frame.c (legacy_get_prev_frame): Ditto.
7572 * dummy-frame.c (dummy_frame_this_id): Ditto.
7573 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7574
d7a27068
AC
75752003-04-28 Andrew Cagney <cagney@redhat.com>
7576
7577 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7578 * gdbarch.h, gdbarch.c: Re-generate.
7579 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7580 * vax-tdep.c (_initialize_vax_tdep): Update.
7581 * v850-tdep.c (_initialize_v850_tdep): Update.
7582 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7583 * s390-tdep.c (_initialize_s390_tdep): Update.
7584 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7585 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7586 * mips-tdep.c (_initialize_mips_tdep): Update.
7587 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7588 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7589 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7590 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7591 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7592 * frv-tdep.c (_initialize_frv_tdep): Update.
7593 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7594 (_initialize_cris_tdep): Update.
7595 * arch-utils.c (legacy_print_insn): Update.
7596 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7597
d2630e69
AF
75982003-04-26 Adam Fedor <fedor@gnu.org>
7599
7600 * linespec.c (decode_objc): New function to decode ObjC calls
7601 (decode_line_1): Check for ObjC calls (using decode_objc)
7602 * Makefile (linespec.o): Update dependencies.
7603
3086aeae
DJ
76042003-04-26 Daniel Jacobowitz <drow@mvista.com>
7605
7606 * breakpoint.h (struct breakpoint_ops): New.
7607 (struct breakpoint): Add ops member.
7608
7609 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7610 (mention): Use new breakpoint ops member.
7611 (set_raw_breakpoint): Initialize ops field to NULL.
7612 (print_exception_catchpoint, print_one_exception_catchpoint)
7613 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7614 (gnu_v3_exception_catchpoint_ops): New.
7615 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7616
1fbec6c3
AF
76172003-04-25 Adam Fedor <fedor@gnu.org>
7618
7619 * Makefile.in (COMMON_OBS): Add objc-lang.o
7620
0ef21242
AC
76212003-04-25 Andrew Cagney <cagney@redhat.com>
7622
7623 * d10v-tdep.c (print_insn): Delete function.
7624 (display_trace): Use TARGET_PRINT_INSN.
7625 (_initialize_d10v_tdep): Do not set tm_print_insn.
7626 (d10v_gdbarch_init): Set print_insn.
7627
f75493ed
AC
76282003-04-25 Andrew Cagney <cagney@redhat.com>
7629
7630 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7631 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7632 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7633 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7634 (nr_dmap_regs, a0_regnum): ... new functions.
7635 (d10v_print_registers_info): Use a0_regnum, use register_size.
7636 (d10v_register_byte): Delete function.
7637 (d10v_register_raw_size): Delete function.
7638 (d10v_register_type): Use a0_regnum.
7639 (d10v_print_registers_info): Use a0_regnum.
7640 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7641 (d10v_gdbarch_init): Do not set register_byte or
7642 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7643 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7644 extract_address.
7645 (trace_command): Use XCALLOC.
7646 (print_insn): Delete reference to tm_print_insn.
7647 (saved_regs_unwinder): Use store_unsigned_integer instead of
7648 store_address.
7649 * frame.h (FRAME_OBSTACK_CALLOC): Define
7650
2202b100
DC
76512003-04-25 David Carlton <carlton@bactrian.org>
7652
7653 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7654
4e45ca2e
AF
76552003-04-24 Adam Fedor <fedor@gnu.org>
7656
7657 * objc-lang.c: Include "valprint.h"
7658 * Makefile.in (objc-lang.o): Update dependencies.
7659
93de3e7f
AF
76602003-04-24 Adam Fedor <fedor@gnu.org>
7661
8ffd9b1b 7662 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7663 architecture dependant compilation and mark as unimplemented
7664 (until they get put in the gdbarch vector).
7665
0f20eeea
DC
76662003-04-23 David Carlton <carlton@bactrian.org>
7667
7668 * cp-support.c (cp_find_first_component): Accept 'operator' in
7669 more locations.
7670
74cfe982
AC
76712003-04-23 Andrew Cagney <cagney@redhat.com>
7672
7673 * infcall.c (call_function_by_hand): Eliminate redundant
7674 indentation. Move "saved_async" and "old_cleanups" to where they
7675 are needed.
8ffd9b1b 7676
52557533
AC
76772003-04-23 Andrew Cagney <cagney@redhat.com>
7678
7679 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7680 and "buffer". Move the "name" code to where it is needed.
7681
158775de
AC
76822003-04-23 Andrew Cagney <cagney@redhat.com>
7683
7684 * infcall.c (call_function_by_hand): Move variables "start_sp",
7685 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7686 code to ON_STACK switch branch.
8ffd9b1b 7687
ebc7896c
AC
76882003-04-23 Andrew Cagney <cagney@redhat.com>
7689
7690 * infcall.c (call_function_by_hand): Make declaration of "i",
7691 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7692 lint.
7693
d727590f
AC
76942003-04-23 Andrew Cagney <cagney@redhat.com>
7695
7696 * infcall.c (call_function_by_hand): Delete variable
7697 "n_method_args". Localize "param_type"'s declaration to the loop
7698 that it is used. Reinstate code assigning to said variable -
7699 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7700 Rationalize code using "param_type".
7701
d585e13a
AC
77022003-04-22 Andrew Cagney <cagney@redhat.com>
7703
7704 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7705 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7706 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7707 to DEPRECATED_PUSH_RETURN_ADDRESS.
7708
051caad9
KB
77092003-04-22 Kevin Buettner <kevinb@redhat.com>
7710
7711 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7712 on the DWARF2 register number prior to fetching a register.
7713
77296879
JB
77142003-04-22 J. Brobecker <brobecker@gnat.com>
7715
7716 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7717 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7718 this macro was always set to 0.
77296879
JB
7719 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7720 considering the fact that this macro was always set to 0.
7721 * hppa-tdep.h (hppa_store_return_value): Likewise.
7722 (hppa_extract_return_value): Likewise.
7723
4252f1df
JB
77242003-04-22 J. Brobecker <brobecker@gnat.com>
7725
7726 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7727 the hppa-pro target only.
7728
14604c6b
JB
77292003-04-21 J. Brobecker <brobecker@gnat.com>
7730
7731 Ongoing multi-arch conversion effort for HP/UX:
7732 * config/pa/tm-hppa.h: Move all macro that are no longer
7733 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7734 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7735
77eb01d1
JB
77362003-04-21 J. Brobecker <brobecker@gnat.com>
7737
7738 * config/pa/tm-hppa.h: Obsolete a section that was only used
7739 for hppa-pro.
7740
61995b3b
JB
77412003-04-21 J. Brobecker <brobecker@gnat.com>
7742
7743 Ongoing multi-arch conversion for HP/UX.
7744 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7745 if already defined (allows hppa64 to stay non-multiarched for now).
7746 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7747
4aa79dcc
AC
77482003-04-21 Andrew Cagney <cagney@redhat.com>
7749
7750 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7751
0f751ff2
AC
77522003-04-21 Andrew Cagney <cagney@redhat.com>
7753
7754 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7755 "i386_num_mmx_regs".
7756
04714b91
AC
77572003-04-21 Andrew Cagney <cagney@redhat.com>
7758
7759 * infcall.c: New file.
7760 * infcall.h: New file.
7761 * valarith.c: Include "infcall.h".
7762 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7763 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7764 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7765 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7766 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7767 (SFILES): Add "infcall.c"
7768 (COMMON_OBS): Add "infcall.o".
7769 (infcall.o): Specify dependencies.
7770 * value.h (call_function_by_hand): Delete declaration.
7771 * inferior.h (run_stack_dummy): Delete declaration.
7772 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7773 (run_stack_dummy): Move to "infcall.c", merged into
7774 call_function_by_hand.
7775 * valops.c (call_function_by_hand): Moved to "infcall.c".
7776 (find_function_addr, value_arg_coerce): Ditto.
7777 (unwindonsignal_p, coerce_float_to_double): Ditto.
7778 (_initialize_valops): Move "set/show coerce-float-to-double", and
7779 "set/show unwindonsignal" commands to "infcall.c".
7780 * v850-tdep.c, target.h: Update comments.
7781 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7782 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7783 (sh64_init_extra_frame_info): Update comments.
7784 * mn10300-tdep.c: Update comments.
7785 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7786 * config/sparc/tm-sparc.h: Update comments.
7787 * breakpoint.h: Update comments.
7788 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7789 * arm-tdep.c: Update comment.
7790
f9d3c2a8
MK
77912003-04-19 Mark Kettenis <kettenis@gnu.org>
7792
c40e1eab
MK
7793 * i386-tdep.c (i386_num_register_names): New variable.
7794 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7795 (MM0_REGNUM): Remove redundant parentheses in define.
7796 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7797 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7798 i386_mxcsr_regnum_p): Remove redundant parentheses.
7799 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7800
94ea66b3
MK
7801 * i386-tdep.c (i386_extract_return_value,
7802 i386_store_return_value): Correct check for availability of
7803 floating-point registers.
7804
54299a1d
MK
7805 * i386-tdep.c (i386_frame_num_args): Remove function.
7806 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7807
c86c27af
MK
7808 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7809 mmx_regnum_to_fp_regnum. Adjust all callers.
7810
f9d3c2a8
MK
7811 * i386-tdep.c (i386_get_longjmp_target): Use
7812 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7813 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7814 extract_address.
7815
94ba74a9
MK
78162003-04-19 Mark Kettenis <kettenis@gnu.org>
7817
7818 * core-regset.c: Update comments to reflect reality. Re-order
7819 includes.
7820 (fetch_core_registers): Use switch instead of if. Remove
7821 redundant prototype.
7822
4074e13c
JB
78232003-04-18 Jim Blandy <jimb@redhat.com>
7824
7825 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7826 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7827
e3ab4aba
RH
78282003-04-17 Richard Henderson <rth@redhat.com>
7829
7830 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7831
627bf7c1
EZ
78322003-04-17 Michael Snyder <msnyder@redhat.com>
7833 Karen Bennet <bennet@redhat.com>
7834
7835 Committed by Elena Zannoni <ezannoni@redhat.com>
7836 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7837
514621a9
EZ
78382003-04-17 Elena Zannoni <ezannoni@redhat.com>
7839
7840 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7841 value if the return type is void.
514621a9 7842
b4acd559
JJ
78432003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7844
7845 * thread-db.c: Reindented.
8ffd9b1b 7846
530b167e 78472003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7848
7849 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7850 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7851 as types.
7852
0a48e7e8
MS
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
8ffd9b1b 7876
ab9fe00e
KB
78772003-04-16 Kevin Buettner <kevinb@redhat.com>
7878
610a3745 7879 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7880 the size of ``long double'' to 16, instead of 8.
7881
e64a344c
MK
78822003-04-16 Mark Kettenis <kettenis@gnu.org>
7883
7884 * i386-linux-nat.c: Add some whitespace to make things more
7885 readable.
7886 (fetch_register, store_register, fetch_inferior_registers,
7887 store_inferior_registers): Get rid of assignment in if-statement.
7888 (store_register): Fix typo in error message.
7889
25d41031
AC
78902003-04-16 Andrew Cagney <cagney@redhat.com>
7891
7892 * utils.c (xmmalloc): Always allocate something, matches
7893 libiberty/xmalloc's semantics.
7894 (xmrealloc, xmcalloc): Ditto.
7895
c50901fd
AC
78962003-04-16 Andrew Cagney <cagney@redhat.com>
7897
7898 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7899 update comments.
7900 (get_frame_type): Initialize unwind and type when needed.
7901 (get_frame_id, frame_register_unwind): Ditto.
7902
f81824a9
AC
79032003-04-16 Andrew Cagney <cagney@redhat.com>
7904
7905 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7906 obsolete.
7907 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7908 * sparcl-stub.c: Obsolete file.
7909 * config/sparc/tm-sparclet.h: Obsolete file.
7910 * sparclet-stub.c: Obsolete file.
7911 * sparclet-rom.c: Obsolete file.
7912 * sparcl-tdep.c: Obsolete file.
7913 * config/sparc/tm-sparclite.h: Obsolete file.
7914 * config/sparc/sparclite.mt: Obsolete file.
7915 * config/sparc/sparclet.mt: Obsolete file.
7916 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7917 sparc86x-*-* obsolete.
7918
9219021c
DC
79192003-04-15 David Carlton <carlton@math.stanford.edu>
7920
7921 * Makefile.in (SFILES): Add cp-namespace.c.
7922 (COMMON_OBS): Add cp-namespace.o.
7923 (block.o): Depend on gdb_obstack_h and cp_support_h.
7924 (buildsym.o): Depend on cp_support_h.
7925 (cp-namespace.o): New.
7926 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7927 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7928 (dwarf2read.o): Depend on cp_support_h.
7929 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7930 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7931 processing_current_namespace.
7932 (read_namespace): Update processing_current_namespace; check for
7933 anonymous namespaces.
7934 (dwarf2_name): New function.
7935 (dwarf2_extension): Ditto.
7936 * cp-support.h: Update copyright, contributors.
7937 Add inclusion guards.
7938 Add opaque declaration for structs obstack, block, symbol.
7939 (struct using_direct): New struct.
7940 Add declarations for cp_find_first_component,
7941 cp_entire_prefix_len, processing_has_namespace_info,
7942 processing_current_namespace, cp_is_anonymous,
7943 cp_add_using_directive, cp_initialize_namespace,
7944 cp_finalize_namespace, cp_set_block_scope,
7945 cp_scan_for_anonymous_namespaces.
7946 * cp-namespace.c: New file.
7947 * cp-support.c: Update copyright.
7948 Include ctype.h, gdb_assert.h, gdbcmd.h.
7949 New variable maint_cplus_cmd_list.
7950 (cp_find_first_component): New function.
7951 (cp_entire_prefix_len, maint_cplus_command)
7952 (first_component_command, _initialize_cp_support): Ditto.
7953 * buildsym.c: Include cp-support.h.
7954 New variable using_list.
7955 (add_symbol_to_list): Check for anonymous namespaces.
7956 (finish_block): Set block's scope.
7957 (start_symtab): Initialize C++ namespace support.
7958 (end_symtab): Finalize C++ namespace support.
7959 * block.h: Add opaque declarations for structs
7960 block_namespace_info, using_direct, and obstack.
7961 Add declarations for block_set_scope and block_set_using.
7962 (struct block): Add 'language_specific' member.
7963 (BLOCK_NAMESPACE): New macro.
7964 * block.c: Include gdb_obstack.h and cp-support.h.
7965 (struct block_namespace_info): New struct.
7966 (block_set_scope): New function.
7967 (block_set_using, block_initialize_namespace): Ditto.
7968
d5a921c9
KB
79692003-04-14 Kevin Buettner <kevinb@redhat.com>
7970
7971 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7972 (locate_base): Return early if there aren't any link map offsets.
7973 (svr4_solib_create_inferior_hook): Warn if shared library support
7974 is unavailable.
7975
d2a52b27
DC
79762003-04-14 David Carlton <carlton@math.stanford.edu>
7977
7978 * symtab.c (symbol_set_names): Add prefix when storing Java names
7979 in hash table. Fix for PR java/1039.
7980
980cae7a
DC
79812003-04-14 David Carlton <carlton@math.stanford.edu>
7982
7983 * symtab.c (symbol_set_names): Rename 'name' arg to
7984 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7985 * symtab.h: Change 'name' argument in declaration of
7986 symbol_set_names to 'linkage_name'.
7987 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7988
e227b13c
AC
79892003-04-14 Andrew Cagney <cagney@redhat.com>
7990
7991 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7992 return the fully sign-extended register value.
7993 (get_frame_pointer): Ditto.
7994 (mips_pop_frame): Initialize "proc_desc" after checking for a
7995 dummy frame.
7996
36712a20
AC
79972003-04-14 Andrew Cagney <cagney@redhat.com>
7998
7999 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8000 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8001 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8002 (mips_push_register): Delete function.
8003 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8004 PUSH_FP_REGNUM.
8005
44ea7b70
JB
80062003-04-14 Jim Blandy <jimb@redhat.com>
8007
8008 * symmisc.c: #include "gdb_regex.h".
8009 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8010 functions.
8011 * maint.c (maintenance_list_command): New function.
8012 (_initialize_maint_cmds): Register the above as commands.
8013 * symtab.h (maintenance_list_symtabs,
8014 maintenance_list_psymtabs): New declarations.
8015 * cli/cli-cmds.c (maintenancelistlist): New variable.
8016 (init_cmd_lists): Initialize it.
8017 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8018 * gdbcmd.h (maintenancelistlist): New declaration.
8019 * Makefile.in (symmisc.o): Update dependencies.
8020
2d0c7962
EZ
80212003-04-14 Elena Zannoni <ezannoni@redhat.com>
8022
8023 * s390-nat.c: Include asm/types.h for addr_t.
8024
1947a811
CV
80252003-04-14 Corinna Vinschen <vinschen@redhat.com>
8026
8027 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8028 actually incoming type.
8029
adb616d7
AC
80302003-04-13 Andrew Cagney <cagney@redhat.com>
8031
8032 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8033 get_next_frame and get_frame_saved_regs.
8034
9b5e151c
AC
80352003-04-13 Andrew Cagney <cagney@redhat.com>
8036
8037 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8038 of gdbarch_num_regs.
8039
ef6e7e13
AC
80402003-04-13 Andrew Cagney <cagney@redhat.com>
8041
8042 * frame.h: Mention what replaced what in "struct frame_info".
8043 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8044 deprecated_update_frame_base_hack and
8045 deprecated_update_frame_pc_hack.
8046 * hppa-tdep.c: Ditto.
8047
61fbb938
DJ
80482003-04-13 Daniel Jacobowitz <drow@mvista.com>
8049
8050 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8051 to read_reg and update its comment. Remove regnum member.
8052 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8053 Don't call read_reg when setting in_reg. Call read_reg to get
8054 the frame base if it's in a register. Return the register number
8055 on the stack instead of in the context. Remove extra arguments
8056 to read_reg.
8057 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8058 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8059 the register number on the expression stack.
8060 (needs_frame_read_reg): Remove extra arguments.
8061
0d53c4c4
DJ
80622003-04-13 Daniel Jacobowitz <drow@mvista.com>
8063
8064 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8065 made non-static.
8066 (execute_stack_op): All callers updated.
8067 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8068 * dwarf2loc.c (find_location_expression): New function.
8069 (dwarf_expr_frame_base): Call it.
8070 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8071 (dwarf2_tracepoint_var_ref): New function, broken out from
8072 locexpr_tracepoint_var_ref.
8073 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8074 Make static.
8075 (loclist_read_variable, loclist_read_needs_frame): New functions.
8076 (loclist_describe_location, loclist_tracepoint_var_ref): New
8077 functions.
8078 (dwarf2_loclist_funcs): New struct location_funcs.
8079 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8080 (struct dwarf2_locexpr_baton): Add comments.
8081 (dwarf2_loclist_funcs): New extern.
8082 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8083 base_address and base_known.
8084 (dwarf_loc_buffer): New variable.
8085 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8086 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8087 (dwarf2_has_info): Initialize dwarf_loc_offset.
8088 (dwarf2_build_psymtabs): Read in .debug_loc.
8089 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8090 DWARF_LOC_SIZE.
8091 (psymtab_to_symtab_1): Likewise. Move base address calculation
8092 here, from...
8093 (dwarf2_get_pc_bounds): ... here. Use the base address from
8094 cu_header.
8095 (dwarf2_symbol_mark_computed): Handle location lists.
8096
6aca59a3
DJ
80972003-04-13 Daniel Jacobowitz <drow@mvista.com>
8098
8099 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8100 if the linkage name demangled successfully.
8101
aca1fcd0
MK
81022003-04-13 Mark Kettenis <kettenis@gnu.org>
8103
97095916
MK
8104 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8105 disassmbly_flavour): Removed.
8106
aca1fcd0
MK
8107 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8108
562a961f
MK
81092003-04-13 Mark Kettenis <kettenis@gnu.org>
8110
8111 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8112
bd013d54
AC
81132003-04-12 Andrew Cagney <cagney@redhat.com>
8114
8115 * frame.h (struct frame_info): Move definition from here ...
8116 * frame.c (struct frame_info): ... to here.
8117
167ef8b1
AC
81182003-04-12 Andrew Cagney <cagney@redhat.com>
8119
8120 * gdbthread.h (save_infrun_state): Delete parameter
8121 "prev_func_start".
8122 (struct thread_info): Delete field "prev_func_start".
8123 (load_infrun_state): Ditto.
8124 * thread.c (load_infrun_state, save_infrun_state): Update.
8125 * infrun.c (prev_func_start): Delete variable.
8126 (context_switch, init_wait_for_inferior): Update.
8127 (stop_stepping, keep_going): Update.
8128
da3331ec
AC
81292003-04-12 Andrew Cagney <cagney@redhat.com>
8130
8131 * gdbarch.sh: Add missing opaque declarations.
8132 * gdbarch.h: Regnerate.
8133 * symtab.h: Add missing opaque declarations.
8134 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8135 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8136 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8137 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8138 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8139 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8140 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8141 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8142 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8143 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8144 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8145 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8146 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8147
18adea3f
AC
81482003-04-11 Andrew Cagney <cagney@redhat.com>
8149
8150 * frame.c (get_frame_id): Return this frame's "id".
8151 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8152 function start.
8153 (legacy_saved_regs_this_id): Replace function body with
8154 internal-error.
8155 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8156 FRAME_OBSTACK_ZALLOC.
8157 (create_new_frame): Mark the frame ID as valid.
8158
2252e863
AO
81592003-04-11 Alexandre Oliva <aoliva@redhat.com>
8160
8161 * Makefile.in (libbfd_h): Added missing setting.
8162 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8163 according to the selected ABI.
8164
a8245ab8
JJ
81652003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8166
8167 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8168
6913c89a
AC
81692003-04-11 Andrew Cagney <cagney@redhat.com>
8170
8171 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8172 SAVED_PC_AFTER_CALL.
8173 * gdbarch.h, gdbarch.c: Regenerate.
8174 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8175 * x86-64-tdep.c (x86_64_init_abi): Update.
8176 * vax-tdep.c (vax_gdbarch_init): Update.
8177 * v850-tdep.c (v850_gdbarch_init): Update.
8178 * sparc-tdep.c (sparc_gdbarch_init): Update.
8179 * sh-tdep.c (sh_gdbarch_init): Update.
8180 * s390-tdep.c (s390_gdbarch_init): Update.
8181 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8182 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8183 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8184 * mips-tdep.c (mips_gdbarch_init): Update.
8185 * mcore-tdep.c (mcore_gdbarch_init): Update.
8186 * m68k-tdep.c (m68k_gdbarch_init): Update.
8187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8188 * ia64-tdep.c (ia64_gdbarch_init): Update.
8189 (ia64_saved_pc_after_call): Update declaration.
8190 * i386ly-tdep.c (i386lynx_init_abi): Update.
8191 * i386-tdep.c (i386_gdbarch_init): Update.
8192 * hppa-tdep.c (hppa_gdbarch_init): Update.
8193 * h8300-tdep.c (h8300_gdbarch_init): Update.
8194 * frv-tdep.c (frv_gdbarch_init): Update.
8195 * cris-tdep.c (cris_gdbarch_init): Update.
8196 * avr-tdep.c (avr_gdbarch_init): Update.
8197 * arm-tdep.c (arm_gdbarch_init): Update.
8198 * alpha-tdep.c (alpha_gdbarch_init): Update.
8199 * ns32knbsd-nat.c (frame_num_args): Update.
8200 * ns32k-tdep.c (umax_frame_num_args): Update.
8201 * mips-tdep.c (mips_init_frame_pc_first): Update.
8202 * infrun.c (step_over_function): Update.
8203 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8204 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8205 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8206 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8207 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8208 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8209 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8210 * arch-utils.c (init_frame_pc_default): Update.
8211 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8212 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8213 declaration.
8ffd9b1b 8214
38edeab8
AC
82152003-04-11 Andrew Cagney <cagney@redhat.com>
8216
8217 * i387-tdep.c: Update copyright.
8218 (i387_to_double): Delete function.
8219 (double_to_i387): Delete function.
8220
81f8a206
AC
82212003-04-10 Andrew Cagney <cagney@redhat.com>
8222
8223 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8224 frame's function's address. Simplify.
8225 (d10v_frame_unwind_cache): Check that the frame's function is
8226 non-zero.
8227
6e691f7a
JB
82282003-04-10 Jim Blandy <jimb@redhat.com>
8229
8230 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8231 call to set_gdbarch_deprecated_push_arguments.
8232
7f78e237
AC
82332003-04-10 Andrew Cagney <cagney@redhat.com>
8234
8235 * frame.c (fprint_frame_id): New function.
8236 (fprint_frame_type, fprint_frame): New function.
8237 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8238 (create_sentinel_frame, get_frame_id): Ditto.
8239 (frame_id_p, frame_id_eq): Ditto.
8240 (frame_id_inner, create_new_frame): Ditto.
8241 (legacy_get_prev_frame, get_prev_frame): Ditto.
8242 (deprecated_update_frame_pc_hack): Ditto.
8243 (frame_register_unwind): Ditto.
8244 (deprecated_update_frame_base_hack): Ditto.
8245
f870b49b
CV
82462003-04-10 Corinna Vinschen <vinschen@redhat.com>
8247
8248 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8249 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8250 frame_chain function.
8251 * Makefile.in: Add dependencies due to above change.
8252
7c86889b
CV
82532003-04-10 Corinna Vinschen <vinschen@redhat.com>
8254
8255 * blockframe.c (legacy_frame_chain_valid): Move call to
8256 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8257 inside_entry_file.
8258
d0a55772
AC
82592003-04-09 Andrew Cagney <cagney@redhat.com>
8260
8261 * frame.h (struct frame_id): Replace "pc" and "base" with
8262 "stack_addr" and "code_addr". Update comments.
8263 (frame_id_build): Update parameter names and comment.
8264 (struct frame_info): Replace "id_p" and "id" with "this_id".
8265 * dummy-frame.c (dummy_frame_this_id): Update.
8266 * breakpoint.c (print_one_breakpoint): Update.
8267 * frame.c (get_frame_id): Update.
8268 (get_frame_base, frame_id_build): Update.
8269 (create_sentinel_frame, legacy_get_prev_frame): Update.
8270 (deprecated_update_frame_base_hack): Update.
8271 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8272 (frame_id_inner): Ditto.
8273
ac16bf07
AC
82742003-04-09 Andrew Cagney <cagney@redhat.com>
8275
8276 * defs.h (gdb_print_host_address): Make "addr" parameter a
8277 pointer constant.
8278 * utils.c (gdb_print_host_address): Update.
8279
366cfc9e
KB
82802003-04-09 Kevin Buettner <kevinb@redhat.com>
8281
8282 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8283 register number for R0 is 0.
8284
cd983b5c
JB
82852003-04-09 J. Brobecker <brobecker@gnat.com>
8286
8287 * frame.h (struct gdbarch): Add opaque structure definition
8288 to avoid a compilation warning on LynxOS 4.0.
8289
d1340264
AC
82902003-04-09 Andrew Cagney <cagney@redhat.com>
8291
8292 * frame.h (struct frame_info): Delete field "pc". Replace
8293 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8294 structure.
8295 * frame.c (frame_pc_unwind): Update.
8296 (create_sentinel_frame): Do not set "pc".
8297 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8298 (get_frame_pc): Call frame_pc_unwind.
8299 (deprecated_update_frame_pc_hack): Update.
8300 (create_new_frame): Use "pc" not "->pc".
8301
90a6fffb
AC
83022003-04-09 Andrew Cagney <cagney@redhat.com>
8303
8304 * frame.c (get_frame_id): Eliminate code updating "frame".
8305 (legacy_get_prev_frame): Ditto.
8306 (get_frame_base): Return id.base directly.
8307 (deprecated_update_frame_base_hack): Update "id.base".
8308 * frame.h (struct frame_info): Delete field "frame".
8309
2fbce691
AC
83102003-04-09 Andrew Cagney <cagney@redhat.com>
8311
8312 * NEWS: Mention that the "Sequent family" is obsolete.
8313 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8314 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8315 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8316 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8317 * config/i386/tm-ptx4.h: Obsolete file.
8318 * config/i386/tm-ptx.h: Obsolete file.
8319 * symm-tdep.c: Obsolete file.
8320 * config/i386/symmetry.mt: Obsolete file.
8321 * config/i386/tm-symmetry.h: Obsolete file.
8322 * symm-nat.c: Obsolete file.
8323 * config/i386/nm-symmetry.h: Obsolete file.
8324 * config/i386/xm-symmetry.h: Obsolete file.
8325 * config/i386/symmetry.mh: Obsolete file.
8326 * config/i386/nm-ptx4.h: Obsolete file.
8327 * config/i386/ptx4.mh: Obsolete file.
8328 * config/i386/ptx.mt: Obsolete file.
8329 * config/i386/ptx.mh: Obsolete file.
8330 * config/i386/xm-ptx4.h: Obsolete file.
8331 * config/i386/xm-ptx.h: Obsolete file.
8332
78c43945
AC
83332003-04-09 Andrew Cagney <cagney@redhat.com>
8334
8335 Obsolete mips*-*-mach3*.
8336 * NEWS: Mention that mips*-*-mach3* is obsolete.
8337 * m3-nat.c: Obsolete file.
8338 * config/nm-m3.h: Obsolete file.
8339 * config/mips/tm-mipsm3.h: Obsolete file.
8340 * config/mips/mipsm3.mt: Obsolete file.
8341 * config/mips/mipsm3.mh: Obsolete file.
8342 * config/mips/xm-mipsm3.h: Obsolete file.
8343 * mipsm3-nat.c: Obsolete file.
8344 * configure.host: Obsolete mips-dec-mach3*.
8345 * configure.tgt: Obsolete mips*-*-mach3*.
8346
f1908289
AC
83472003-04-09 Andrew Cagney <cagney@redhat.com>
8348
8349 * doublest.h: Update copyright.
8350 (deprecated_store_floating, deprecated_extract_floating): Rename
8351 store_floating and extract_floating. Update comments.
8352 * doublest.c: Update copyright.
8353 (extract_floating_by_length): Replace extract_floating.
8354 (store_floating_by_length): Replace store_floating.
8355 (deprecated_extract_floating): New function.
8356 (deprecated_store_floating): New function.
8357 (extract_typed_floating): Call extract_floating_by_length.
8358 (store_typed_floating): Call store_floating_by_length.
8359 * x86-64-tdep.c (x86_64_store_return_value): Update.
8360 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8361 (sh64_extract_return_value): Update.
8362 (sh_sh4_register_convert_to_virtual): Update.
8363 (sh_sh64_register_convert_to_virtual): Update.
8364 (sh_sh4_register_convert_to_raw): Update.
8365 (sh_sh64_register_convert_to_raw): Update.
8366 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8367 (rs6000_register_convert_to_raw): Update.
8368 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8369 (ia64_register_convert_to_raw): Update.
8370 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8371 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8372 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8373 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8374 (alpha_register_convert_to_raw): Update.
8375
4443bd83
AC
83762003-04-08 Andrew Cagney <cagney@redhat.com>
8377
8378 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8379 * gdbarch.h, gdbarch.c: Re-generate.
8380 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8381 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8382 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8383 conditionally, use frame_pc_unwind as an alternative. Add
8384 comments.
8385 * arch-utils.c (init_frame_pc_default): Only call
8386 SAVED_PC_AFTER_CALL when available.
8387
c0236d92
EZ
83882003-04-08 Elena Zannoni <ezannoni@redhat.com>
8389
fbe586ae 8390 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8391 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8392 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8393 (start_remote): Ditto.
8394 (handle_inferior_event): Ditto.
8395 (save_inferior_status): Ditto.
8396 (restore_inferior_status): Ditto.
8397 * infcmd.c (attach_command): Ditto.
8398 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8399 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8400 * alpha-tdep.c (heuristic_proc_start): Ditto.
8401 * mips-tdep.c (heuristic_proc_start): Ditto.
8402 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8403 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8404 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8405 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8406 * remote-vx.c (vx_create_inferior): Ditto.
8407
84082003-04-08 Elena Zannoni <ezannoni@redhat.com>
8409
8410 * infrun.c (stop_soon_quietly): Make it an enum, to better
8411 override the default behavior of handle_inferior_event.
8412 (clear_proceed_status): Update uses of stop_soon_quietly to
8413 reflect that it is now an enum.
8414 (start_remote): Ditto.
8415 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8416 is set to handle the new GNU/Linux kernel behavior for
8417 attach/sigstop. Update uses of stop_soon_quietly.
8418 * inferior.h (enum stop_kind): New enum.
8419 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8420 Reset normal handle_inferior_event behavior, afterwards.
8421 * fork-child.c (startup_inferior): Update.
8422 * alpha-tdep.c (heuristic_proc_start): Update.
8423 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8424 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8425 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8426 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8427 * remote-vx.c (vx_create_inferior): Update.
8428 * mips-tdep.c (heuristic_proc_start): Update.
8429
1211bce3
EZ
84302003-04-07 Elena Zannoni <ezannoni@redhat.com>
8431
8432 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8433 be freed more than once, causing wild memory corruptions.
1211bce3 8434 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8435 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8436 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8437 with the "core" target.
1211bce3 8438
f0ef6b29
KB
84392003-04-07 Kevin Buettner <kevinb@redhat.com>
8440
8441 * mips-tdep.c (mips_print_fp_register): New function, created from
8442 do_fp_register_row(). Registers are now (also) printed as hex.
8443 Only one register is printed per row.
8444 (mips_print_register, do_fp_register_row): Print floating point
8445 registers with mips_print_fp_register().
8446
8cf71652
AC
84472003-04-06 Andrew Cagney <cagney@redhat.com>
8448
5e488a7b
AC
8449 * valprint.h (inspect_it): Add extern declaration.
8450 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8451 (selectors_info, classes_info): Ditto.
8452 (find_objc_msgcall): Fix indentation.
8453 (objc_printstr): Delete extern declarations.
8454
8cf71652
AC
8455 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8456
e6ba3bc9
AC
84572003-04-06 Andrew Cagney <cagney@redhat.com>
8458
8459 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8460 Update comment.
8461 * frame.c (legacy_saved_regs_this_id): Update.
8462 (legacy_get_prev_frame): Update.
8463 * xstormy16-tdep.c: Update comment.
8464 * sparc-tdep.c (sparc_frame_chain): Update comment.
8465 * blockframe.c (legacy_frame_chain_valid): Update.
8466
55e1d7e7
AC
84672003-04-06 Andrew Cagney <cagney@redhat.com>
8468
996179ee
AC
8469 * valprint.c (val_print_type_code_int): Delete #ifdef
8470 PRINT_TYPELESS_INTEGER code.
8471
55e1d7e7
AC
8472 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8473 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8474 multi-arch definition.
8475 * gdbarch.h: Re-generate.
8476
43bd9a9e
AC
84772003-04-05 Andrew Cagney <cagney@redhat.com>
8478
8479 Eliminate FRAME_FIND_SAVED_REGS.
8480 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8481 Change FSR parameter to a pointer.
8482 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8483 Assume FSR parameter is a pointer.
8484 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8485 Make fsr a pointer.
8486 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8487 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8488 saved_regs a pointer.
8489 (hppa_frame_saved_pc): Ditto.
8490 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8491 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8492 pointer.
8493 (restore_pc_queue): Make fsr a pointer.
8494 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8495 (hppa_frame_chain): Make saved_regs a pointer, call
8496 hppa_frame_init_saved_regs.
8497 * sparc-tdep.c: Include "gdb_assert.h".
8498 (sparc_frame_find_saved_regs): Replace internal_error with
8499 gdb_assert.
8500 * remote-vxsparc.c (vx_read_register): Delete reference to
8501 FRAME_FIND_SAVED_REGS.
8502 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8503 * gdbarch.h: Regenerate.
8504 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8505 (deprecated_get_frame_saved_regs): Delete declaration.
8506 (struct frame_saved_regs): Delete definition.
8507 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8508 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8509 (hppa_frame_find_saved_regs): Delete declaration.
8510 (FRAME_FIND_SAVED_REGS): Delete macro.
8511 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8512 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8513 FRAME_FIND_SAVED_REGS in comment.
8514
be41e9f4
AC
85152003-04-05 Andrew Cagney <cagney@redhat.com>
8516
8517 * frame.c (frame_func_unwind, get_frame_func): New functions.
8518 * frame.h (get_frame_func, frame_func_unwind): Declare.
8519 (struct frame_info): Add field "prev_func" for caching the
8520 previous frame's function address.
8521 * arm-tdep.c (arm_frameless_function_invocation): Combine
8522 get_pc_function_start and get_frame_pc into get_frame_func.
8523 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8524 (sh64_nofp_frame_init_saved_regs): Ditto.
8525 * s390-tdep.c (s390_function_start): Ditto.
8526 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8527 (rs6000_frameless_function_invocation): Ditto.
8528 (rs6000_frame_saved_pc): Ditto.
8529 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8530 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8531 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8532 (i386_frame_init_saved_regs): Ditto.
8533 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8534 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8535 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8536 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8537 * blockframe.c (frameless_look_for_prologue): Ditto.
8538
a01dd7cc
AC
85392003-04-05 Andrew Cagney <cagney@redhat.com>
8540
8541 * frame.c (legacy_get_prev_frame): Link prev to next at the
8542 function start. Update comments.
8543
5e5592e6
AC
85442003-04-05 Andrew Cagney <cagney@redhat.com>
8545
8546 * frame.c (get_frame_id): Update comment.
8547 (legacy_get_prev_frame): Update comment.
8548 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8549 * gdbarch.h: Regenerate.
8550 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8551 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8552
6fba5002
AC
85532003-04-05 Andrew Cagney <cagney@redhat.com>
8554
8555 * stack.c (print_frame_info): Use get_frame_pc.
8556
7df05f2b
AC
85572003-04-04 Andrew Cagney <cagney@redhat.com>
8558
8559 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8560 the frame's type from the unwinder.
8561 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8562 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8563 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8564 (get_frame_base_address): Use get_frame_type.
8565 (get_frame_locals_address, get_frame_args_address): Ditto.
8566 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8567 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8568 (struct frame_info): Add comment explaining why the frame contains
8569 a "type" field.
8570 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8571 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8572 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8573 NORMAL_FRAME.
8574 * frame-unwind.h: Include "frame.h".
8575 (struct frame_unwind): Add "type" field.
8576 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8577
11889732
AC
85782003-04-04 Andrew Cagney <cagney@redhat.com>
8579
8580 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8581 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8582 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8583 get_frame_base.
8584 (d10v_unwind_dummy_id): Use frame_id_build.
8585 * frame.c (find_frame_sal): Use get_frame_pc.
8586 (create_new_frame): Use deprecated_update_frame_pc_hack and
8587 deprecated_update_frame_base_hack.
8588 (create_sentinel_frame): Add comment about ->pc going away.
8589 (get_prev_frame): Add comment about ->pc going away.
8590 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8591 frame_id_build, deprecated_update_frame_pc_hack and
8592 deprecated_update_frame_base_hack.
8593 (select_frame): Use get_frame_pc.
8594 (legacy_saved_regs_this_id): Use frame_id_build.
8595
50c46a0d
EZ
85962003-04-04 Elena Zannoni <ezannoni@redhat.com>
8597
fbe586ae
RH
8598 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8599 signed integer case.
8600 (classify_argument): Handle enumerations and references.
50c46a0d 8601
50bbdbd9
AC
86022003-04-04 Andrew Cagney <cagney@redhat.com>
8603
8604 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8605 ID to NULL.
8606
36018d2e
AF
86072003-04-01 Adam Fedor <fedor@gnu.org>
8608
8609 * gdb/objc-lang.c (selectors_info): Replace calls to
8610 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8611 SYMBOL_NATURAL_NAME.
8612 (classes_info, find_methods): Likewise.
8613
35cec841
KB
86142003-04-03 Kevin Buettner <kevinb@redhat.com>
8615
8616 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8617 ``mach'' to the value determined by bfd_default_set_arch_mach().
8618
43136899
BR
86192003-04-02 Bob Rossi <bob_rossi@cox.net>
8620
8621 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8622 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8623 (mi-cmd-file.o): Update dependencies.
8624
040b99fd
KB
86252003-04-01 Kevin Buettner <kevinb@redhat.com>
8626
8627 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8628 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8629
9a3d7dfd
AF
86302003-04-01 Adam Fedor <fedor@gnu.org>
8631
8632 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8633 * language.h (struct language_defn): Add la_demangle.
8634 (language_demangle): Declare.
8635 * language.c (language_demangle): New function.
8636 (unk_lang_demangle): Likewise.
8637 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8638 Add ukn_lang_demangle.
9a3d7dfd 8639 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8640 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8641 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8642 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8643 * jv-lang.c (java_demangle): New function
8644 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8645 * objc-lang.c (objc_demangle): Add options argument
8646 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8647 * maint.c (maintenance_demangle): Replace switch with
8648 call to language_demangle.
8649 * utils.c (fprintf_symbol_filtered): Likewise.
8650
5e074003
AC
86512003-04-01 Andrew Cagney <cagney@redhat.com>
8652
8653 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8654 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8655 PRINT_TYPELESS_INTEGER.
8656 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8657 PUSH_RETURN_ADDRESS.
8658
270cb5d6
AC
86592003-04-01 Andrew Cagney <cagney@redhat.com>
8660
8661 * Makefile.in (d10v-tdep.o): Update dependencies.
8662 * d10v-tdep.c: Include "frame-base.h".
8663 (d10v_frame_unwind): Make constant.
8664 (d10v_frame_base_address): New function.
8665 (d10v_frame_base): New variable.
8666 (d10v_gdbarch_init): Set frame_base default.
8667 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8668 comment for base.
8669 (d10v_frame_unwind_cache): Set and use "prev_sp".
8670 (d10v_frame_this_id): Use the previous frame's inner most stack
8671 address and this frame's func address for the frame ID. Use
8672 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8673
6bfb3e36
AC
86742003-04-01 Andrew Cagney <cagney@redhat.com>
8675
8676 * frame.h (get_frame_locals_address, get_frame_args_address):
8677 Refer to the base address, instead of the address of the first
8678 local or parameter.
8ffd9b1b 8679
da62e633
AC
86802003-04-01 Andrew Cagney <cagney@redhat.com>
8681
8682 Add frame debug info addresses:
8683 * frame-base.c: New file.
8684 * frame-base.h: New file.
8685 * frame.h (struct frame_base): Add opaque declaration.
8686 (get_frame_base): Update comment.
8687 (get_frame_base_address): Declare.
8688 (get_frame_locals_address): Declare.
8689 (get_frame_args_address): Declare.
8690 (struct frame_info): Add "base" and "base_cache". Update
8691 comments on the unwinder.
8692 * frame.c: Include "frame-base.h".
8693 (get_frame_locals_address): New function.
8694 (get_frame_base_address): New function.
8695 (get_frame_args_address): New function.
8696 * findvar.c (read_var_value): Use get_frame_locals_address and
8697 get_frame_args_address.
8698 * stack.c (frame_info): Use get_frame_locals_address and
8699 get_frame_args_address.
8700 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8701 moved to "frame-base.c".
8702 * printcmd.c (print_frame_nameless_args): Ditto.
8703 * symtab.h (address_class): Update comments.
8704 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8705 get_frame_base_address.
8706 * dwarf2expr.c (execute_stack_op): Ditto.
8707 * Makefile.in (frame_base_h): Define.
8708 (frame.o): Update dependencies.
8709 (frame-base.o): Add dependencies.
8710 (SFILES): Add frame-base.c.
8711 (COMMON_OBS): Add frame-base.o.
8712
3d30e9c2
AC
87132003-04-01 Andrew Cagney <cagney@redhat.com>
8714
8715 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8716 CALL_DUMMY_LENGTH): Ditto.
8717 * gdbarch.c: Re-generate.
8718 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8719 (CALL_DUMMY_LENGTH): Delete macro.
8720 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8721 * arm-tdep.c (arm_gdbarch_init): Ditto.
8722 * avr-tdep.c (avr_gdbarch_init): Ditto.
8723 * cris-tdep.c (cris_gdbarch_init): Ditto.
8724 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8725 * frv-tdep.c (frv_gdbarch_init): Ditto.
8726 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8727 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8728 * i386-tdep.c (i386_gdbarch_init): Ditto.
8729 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8730 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8731 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8732 * mips-tdep.c (mips_gdbarch_init): Ditto.
8733 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8734 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8735 * s390-tdep.c (s390_gdbarch_init): Ditto.
8736 * sh-tdep.c (sh_gdbarch_init): Ditto.
8737 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8738 * v850-tdep.c (v850_gdbarch_init): Ditto.
8739 * vax-tdep.c (vax_gdbarch_init): Ditto.
8740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8741
ce0c7262
CV
87422003-04-01 Corinna Vinschen <vinschen@redhat.com>
8743
8744 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8745
73dd234f
AC
87462003-04-01 Andrew Cagney <cagney@redhat.com>
8747
8748 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8749 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8750 * gdbarch.h, gdbarch.c: Re-generate.
8751 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8752 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8753 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8754 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8755 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8756 * infcmd.c (run_stack_dummy): Simplify assuming
8757 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8758 * infrun.c (handle_inferior_event): Ditto.
8759 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8760 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8761 * arm-tdep.c (arm_gdbarch_init): Ditto.
8762 * avr-tdep.c (avr_gdbarch_init): Ditto.
8763 * cris-tdep.c (cris_gdbarch_init): Ditto.
8764 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8765 * frv-tdep.c (frv_gdbarch_init): Ditto.
8766 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8767 * i386-tdep.c (i386_gdbarch_init): Ditto.
8768 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8769 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8770 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8771 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8772 * mips-tdep.c (mips_gdbarch_init): Ditto.
8773 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8774 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8775 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8776 * s390-tdep.c (s390_gdbarch_init): Ditto.
8777 * sh-tdep.c (sh_gdbarch_init): Ditto.
8778 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8779 * v850-tdep.c (v850_gdbarch_init): Ditto.
8780 * vax-tdep.c (vax_gdbarch_init): Ditto.
8781 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8782
97606a13
DJ
87832003-04-01 Daniel Jacobowitz <drow@mvista.com>
8784
8785 * symfile.c (symfile_relocate_debug_section): Update call to
8786 bfd_simple_get_relocated_section_contents.
8787
e8ab51f7
AC
87882003-03-31 Andrew Cagney <cagney@redhat.com>
8789
8790 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8791 * gdbarch.h, gdbarch.c: Regenerate.
8792 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8793 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8794 available.
8795 * frame.h (generic_fix_call_dummy): Delete declaration.
8796 * dummy-frame.h: Update comment.
8797 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8798 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8799 fix_call_dummy.
8800 * sh-tdep.c (sh_gdbarch_init): Ditto.
8801 * s390-tdep.c (s390_gdbarch_init): Ditto.
8802 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8803 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8805 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8806 * i386-tdep.c (i386_gdbarch_init): Ditto.
8807 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8808 * frv-tdep.c (frv_gdbarch_init): Ditto.
8809 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8810 * cris-tdep.c (cris_gdbarch_init): Ditto.
8811 * avr-tdep.c (avr_gdbarch_init): Ditto.
8812 * arm-tdep.c (arm_gdbarch_init): Ditto.
8813
018d1b48
JB
88142003-03-31 J. Brobecker <brobecker@gnat.com>
8815
8816 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8817 (INIT_FRAME_AP): Likewise.
8818 (EXTRA_FRAME_INFO): Likewise.
8819
e9a2674e
AC
88202003-03-31 Andrew Cagney <cagney@redhat.com>
8821
8822 * gdbarch.sh: Include "symfile.h".
8823 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8824 * gdbarch.h, gdbarch.c: Re-generate.
8825 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8826 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8827 call_dummy_address, the default is at entry_point_address.
8828 * v850-tdep.c (v850_gdbarch_init): Ditto.
8829 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8830 * sh-tdep.c (sh_gdbarch_init): Ditto.
8831 * s390-tdep.c (s390_gdbarch_init): Ditto.
8832 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8833 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8834 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8835 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8836 * i386-tdep.c (i386_gdbarch_init): Ditto.
8837 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8838 * frv-tdep.c (frv_gdbarch_init): Ditto.
8839 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8840 * cris-tdep.c (cris_gdbarch_init): Ditto.
8841 * arm-tdep.c (arm_gdbarch_init): Ditto.
8842
e8a8712a
AC
88432003-03-31 Andrew Cagney <cagney@redhat.com>
8844
8845 * gdbarch.sh (CALL_DUMMY_P): Delete.
8846 * gdbarch.h, gdbarch.c: Re-generate.
8847 * inferior.h (CALL_DUMMY_P): Delete macro.
8848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8849 * vax-tdep.c (vax_gdbarch_init): Update.
8850 * v850-tdep.c (v850_gdbarch_init): Update.
8851 * sparc-tdep.c (sparc_gdbarch_init): Update.
8852 * sh-tdep.c (sh_gdbarch_init): Update.
8853 * s390-tdep.c (s390_gdbarch_init): Update.
8854 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8855 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8856 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8857 * mips-tdep.c (mips_gdbarch_init): Update.
8858 * mcore-tdep.c (mcore_gdbarch_init): Update.
8859 * m68k-tdep.c (m68k_gdbarch_init): Update.
8860 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8861 * ia64-tdep.c (ia64_gdbarch_init): Update.
8862 * i386-tdep.c (i386_gdbarch_init): Update.
8863 * h8300-tdep.c (h8300_gdbarch_init): Update.
8864 * frv-tdep.c (frv_gdbarch_init): Update.
8865 * d10v-tdep.c (d10v_gdbarch_init): Update.
8866 * cris-tdep.c (cris_gdbarch_init): Update.
8867 * breakpoint.c (deprecated_frame_in_dummy): Update.
8868 * avr-tdep.c (avr_gdbarch_init): Update.
8869 * alpha-tdep.c (alpha_gdbarch_init): Update.
8870 * arm-tdep.c (arm_gdbarch_init): Update.
8871 * dummy-frame.c (dummy_frame_this_id): Update comments.
8872 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8873 * frame.c (legacy_get_prev_frame): Ditto.
8874 * valops.c (call_function_by_hand): Delete function.
8875 (hand_function_call): Rename to call_function_by_hand
8876
ed234cf8
AC
88772003-03-30 Andrew Cagney <cagney@redhat.com>
8878
8879 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8880 * value.h (struct value): Update comment.
ed234cf8 8881
06c77151
AC
88822003-03-30 Andrew Cagney <cagney@redhat.com>
8883
6c2b5168
AC
8884 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8885 D10V_FP_REGNUM.
8886 (d10v_gdbarch_init): Do not set fp_regnum.
8887
06c77151
AC
8888 * frame.c (get_frame_base): Force ID initialization.
8889 (get_prev_frame): Move computation of the frame ID from here ...
8890 (get_frame_id): ... to here.
8891 (legacy_get_prev_frame): Mark the frame ID as valid.
8892 * frame.h (struct frame_info): Add field "id_p".
8893
97a1a11c
MK
88942003-03-30 Mark Kettenis <kettenis@gnu.org>
8895
8896 * i386-tdep.c (i386_store_struct_return): Removed.
8897 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8898
6c0e89ed
AC
88992003-03-30 Andrew Cagney <cagney@redhat.com>
8900
8901 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8902 * gdbarch.h, gdbarch.c: Regenerate.
8903 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8904 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8905 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8906 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8907 * i386-tdep.c (i386_gdbarch_init): Ditto.
8908 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8909 * cris-tdep.c (cris_gdbarch_init): Ditto.
8910 * vax-tdep.c (vax_gdbarch_init): Ditto.
8911 * s390-tdep.c (s390_gdbarch_init): Ditto.
8912 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8913 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8914 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8915 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8916 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8917 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8918 * sparc-tdep.c (sparc_gdbarch_init): Update.
8919 * sh-tdep.c (sh_gdbarch_init): Update.
8920 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8921 * mips-tdep.c (mips_gdbarch_init): Update.
8922 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8923 * ia64-tdep.c (ia64_gdbarch_init): Update.
8924 * frv-tdep.c (frv_gdbarch_init): Update.
8925 * avr-tdep.c (avr_gdbarch_init): Update.
8926 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8927 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8928 instead of when push_dummy_call is not available.
8ffd9b1b 8929
f7dd6af2
AC
89302003-03-30 Andrew Cagney <cagney@redhat.com>
8931
8932 * infttrace.c: Include "gdbthread.h".
8933 (parent_attach_all): Fix function signature.
8934 (call_ptrace): Update call.
8935 * Makefile.in (infttrace.o): Update dependencies.
8936
28f617b3
AC
89372003-03-30 Andrew Cagney <cagney@redhat.com>
8938
8939 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8940 PUSH_RETURN_ADDRESS.
8941 * gdbarch.h, gdbarch.c: Regenerate.
8942 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8943 * x86-64-tdep.c (x86_64_init_abi): Update.
8944 * v850-tdep.c (v850_gdbarch_init): Update.
8945 * sparc-tdep.c (sparc_gdbarch_init): Update.
8946 * sh-tdep.c (sh_gdbarch_init): Update.
8947 * s390-tdep.c (s390_gdbarch_init): Update.
8948 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8949 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8950 * mips-tdep.c (mips_gdbarch_init): Update.
8951 * mcore-tdep.c (mcore_gdbarch_init): Update.
8952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8953 * ia64-tdep.c (ia64_gdbarch_init): Update.
8954 * i386-tdep.c (i386_gdbarch_init): Update.
8955 * h8300-tdep.c (h8300_gdbarch_init): Update.
8956 * frv-tdep.c (frv_gdbarch_init): Update.
8957 * cris-tdep.c (cris_gdbarch_init): Update.
8958 * avr-tdep.c (avr_gdbarch_init): Update.
8959 * arm-tdep.c (arm_gdbarch_init): Update.
8960 * valops.c (hand_function_call): Update.
8961
4d628cd7
AC
89622003-03-29 Andrew Cagney <cagney@redhat.com>
8963
8964 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8965 sizeof_call_dummy_words.
8966 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8967 define.
8968 * gdbarch.h: Regenerate.
8ffd9b1b 8969
65e82032
AC
89702003-03-29 Andrew Cagney <cagney@redhat.com>
8971
8972 * infttrace.h: New file.
8973 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8974 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8975 (hpread_read_doc_function_type): Detect an initialized type1.
8976 (hpread_quick_traverse): Initialize mod_name_string.
8977 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8978 (som_solib_get_solib_by_pc): Declare.
8979 (so_lib_thread_start_addr): Declare.
8980 (no_shared_libraries): Declare.
8981 * somread.c (init_import_symbols): Make static. Add forward
8982 declaration.
8983 * config/pa/nm-hppah.h: Include "infttrace.h" for
8984 parent_attach_all.
8985 (hppa_insert_hw_watchpoint): Declare.
8986 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8987 * hppah-nat.c: Include "gdb_string.h".
8988 (parent_attach_all): Delete extern declaration, moved to
8989 "infttrace.h".
8990 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8991 int.
8992 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8993 * Makefile.in (infttrace_h): Define.
8994 (hpread.o): Update dependencies.
8995 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8996 * hppa-hpux-tdep.c: Include "gdb_string.h".
8997 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8998 * infrun.c (handle_inferior_event): Always initialize
8999 stepped_after_stopped_by_watchpoint. Add default and remove
9000 fallthrough in switch statement.
9001 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9002 parameter to int.
9003 (hppa_remove_hw_watchpoint): Ditto.
9004
2c3bbe77
AC
90052003-03-29 Andrew Cagney <cagney@redhat.com>
9006
9007 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9008 offset.
9009
2dd604e7
RE
90102003-03-29 Richard Earnshaw <rearnsha@arm.com>
9011
9012 * arm-tdep.c (arm_push_arguments): Delete.
9013 (struct stack_item): New type.
9014 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9015 (arm_store_struct_return): Delte.
9016 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9017 arm_push_arguments or arm_store_struct_return.
9018
e8933a55
AC
90192003-03-28 Andrew Cagney <cagney@redhat.com>
9020
9021 * Makefile.in (d10v-tdep.o): Update dependencies.
9022 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9023 * d10v-tdep.c: Include "remote.h".
9024 (target_resume_hook): Delete extern declaration.
9025 (target_wait_loop_hook): Ditto.
9026 (tdisassemble_command): Eliminate assignment in "if" conditional.
9027 (d10v_ts2_register_sim_regno): Eliminate call to
9028 legacy_register_sim_regno.
9029 (d10v_ts3_register_sim_regno): Ditto.
9030
6949171e
JJ
90312003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9032
9033 * thread.c: Reindented.
9034 * lin-lwp.c: Ditto.
9035 * linux-proc.c: Ditto.
9036
98c7071f
BR
90372003-03-28 Bob Rossi <bob_rossi@cox.net>
9038
fbe586ae 9039 * MAINTAINERS (write after approval): Add myself.
98c7071f 9040
5edc9ca6
TR
90412003-03-27 Theodore A. Roth <troth@openavr.org>
9042
9043 * objc-exp.y: Add missing semi-colons.
9044
378bfd1b
AC
90452003-03-27 Andrew Cagney <cagney@redhat.com>
9046
9047 * regcache.c (write_sp): Delete function and references.
9048 * inferior.h (write_sp): Delete declaration.
9049 * valops.c (hand_function_call): Replace write_sp with
9050 TARGET_WRITE_SP.
9051 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9052 (sparc_pop_frame): Ditto.
8ffd9b1b 9053
56056df7
AC
90542003-03-27 Andrew Cagney <cagney@redhat.com>
9055
9056 * NEWS: Mention removal of support for hppa*-*-bsd* and
9057 hppa*-*-osf* natives, and hppa*-*-pro* target.
9058 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9059 * config/pa/xm-pa.h: Obsolete file.
9060 * config/pa/xm-hppab.h: Obsolete file.
9061 * config/pa/nm-hppab.h: Obsolete file.
9062 * config/pa/tm-hppab.h: Obsolete file.
9063 * config/pa/tm-hppao.h: Obsolete file.
9064 * config/pa/nm-hppao.h: Obsolete file.
9065 * config/pa/tm-pro.h: Obsolete file.
9066 * config/pa/hppaosf.mt: Obsolete file.
9067 * config/pa/hppaosf.mh: Obsolete file.
9068 * config/pa/hppapro.mt: Obsolete file.
9069 * config/pa/hppabsd.mt: Obsolete file.
9070 * config/pa/hppabsd.mh: Obsolete file.
9071 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9072 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9073 hppa*-*-osf*.
9074
5873a88d
AC
90752003-03-27 Andrew Cagney <cagney@redhat.com>
9076
9077 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9078 push_arguments. Don't set push_return_address or write_sp.
9079 (d10v_push_dummy_call): Replace d10v_push_arguments.
9080 (d10v_push_return_address, d10v_write_sp): Delete function,
9081 handled by push_dummy_call.
9082
b81774d8
AC
90832003-03-26 Andrew Cagney <cagney@redhat.com>
9084
9085 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9086 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9087 regcache and dummy_addr parameters.
9088 * gdbarch.h, gdbarch.c: Re-generate.
9089 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9090 available; assume it will handle stack alignment and return
9091 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9092 legacy_push_arguments.
9093 (legacy_push_arguments): Rename default_push_arguments.
9094 * value.h (legacy_push_arguments): Rename default_push_arguments.
9095 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9096 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9097 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9098 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9099 * config/i386/tm-symmetry.h: Update.
9100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9101 * x86-64-tdep.c (x86_64_init_abi): Update.
9102 * v850-tdep.c (v850_gdbarch_init): Update.
9103 * sparc-tdep.c (sparc_gdbarch_init): Update.
9104 * sh-tdep.c (sh_gdbarch_init): Update.
9105 * s390-tdep.c (s390_gdbarch_init): Update.
9106 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9107 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9108 * mips-tdep.c (mips_gdbarch_init): Update.
9109 * mcore-tdep.c (mcore_gdbarch_init): Update.
9110 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9111 * ia64-tdep.c (ia64_gdbarch_init): Update.
9112 * i386-tdep.c (i386_gdbarch_init): Update.
9113 * hppa-tdep.c (hppa_gdbarch_init): Update.
9114 * h8300-tdep.c (h8300_gdbarch_init): Update.
9115 * frv-tdep.c (frv_gdbarch_init): Update.
9116 * d10v-tdep.c (d10v_gdbarch_init): Update.
9117 * cris-tdep.c (cris_gdbarch_init): Update.
9118 * avr-tdep.c (avr_gdbarch_init): Update.
9119 * arm-tdep.c (arm_gdbarch_init): Update.
9120 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9121 * alpha-tdep.c (alpha_gdbarch_init): Update.
9122
f541410f
DJ
91232003-03-26 Daniel Jacobowitz <drow@mvista.com>
9124
9125 * signals/signals.c (do_target_signal_to_host): Correct realtime
9126 signal range test.
9127
69f567ae
DJ
91282003-03-26 Daniel Jacobowitz <drow@mvista.com>
9129
9130 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9131 (struct sal_chain, map_catch_names): Remove.
9132 (catch_exception_command_1): Don't call
9133 handle_gnu_4_16_catch_command.
9134
d5d14a5a
DJ
91352003-03-26 Daniel Jacobowitz <drow@mvista.com>
9136
9137 From Mark Dettinger <dettinge@de.ibm.com>:
9138 * dwarf2cfi.c (read_2u): Increment pointer by two.
9139
bdd73e22
DJ
91402003-03-26 Daniel Jacobowitz <drow@mvista.com>
9141
9142 * signals/signals.c: Fix typos in last change.
9143
960cb555
DJ
91442003-03-26 Daniel Jacobowitz <drow@mvista.com>
9145
9146 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9147 not already defined. Use __SIGRTMIN if available.
9148 (target_signal_from_host): Remove SIGRTMIN block.
9149 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9150 the signal is within the realtime range.
9151
f636b87d
AF
91522003-03-25 Adam Fedor <fedor@gnu.org>
9153
9154 * Makefile.in (infrun.o): Add $(language_h)
9155 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9156 for language specific trampolines.
9157 * language.h (struct language_defn): Add skip_trampoline.
9158 (skip_language_trampoline): Declare.
9159 * language.c (unk_lang_trampoline, skip_language_trampoline):
9160 New functions.
9161 (unknown_language_defn, auto_language_defn, local_language_defn):
9162 Add ukn_lang_trampoline.
9163 * ada-lang.c (ada_language_defn): Add NULL for language
9164 specific skip_trampoline.
9165 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9166 scm-lang.c: Likewise.
9167 * objc-lang.c (objc_skip_trampoline): New function.
9168 (objc_language_defn): Add objc_skip_trampoline.
9169
28f617b3 91702003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9171
9172 * frame.c (get_prev_frame): Delay validating a frame's ID -
9173 non-NULL, didn't go backwards - until an attempt to unwind it to
9174 the previous frame.
9175
f933a9c5
AC
91762003-03-25 Andrew Cagney <cagney@redhat.com>
9177
9178 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9179 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9180 * gdbarch.h, gdbarch.c: Re-generate.
9181 * config/sparc/tm-sparc.h
9182 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9183 * sparc-tdep.c (sparc_gdbarch_init): Set
9184 deprecated_extra_stack_alignment_needed.
9185 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9187 extra_stack_alignment_needed.
9188 * v850-tdep.c (v850_gdbarch_init): Ditto.
9189 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9190 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9191 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9192 * cris-tdep.c (cris_gdbarch_init): Ditto.
9193 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9194 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9195
4183d812
AC
91962003-03-25 Andrew Cagney <cagney@redhat.com>
9197
9198 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9199 STORE_STRUCT_RETURN.
9200 * gdbarch.h, gdbarch.c: Regenerate.
9201 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9202 (d10v_push_arguments): Set the struct return register.
9203 (d10v_gdbarch_init): Update.
9204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9205 * x86-64-tdep.c (x86_64_init_abi): Update.
9206 * vax-tdep.c (vax_gdbarch_init): Update.
9207 * v850-tdep.c (v850_gdbarch_init): Update.
9208 * sparc-tdep.c (sparc_gdbarch_init): Update.
9209 * sh-tdep.c (sh_gdbarch_init): Update.
9210 * s390-tdep.c (s390_gdbarch_init): Update.
9211 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9212 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9213 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9214 * mips-tdep.c (mips_gdbarch_init): Update.
9215 * mcore-tdep.c (mcore_gdbarch_init): Update.
9216 * m68k-tdep.c (m68k_gdbarch_init): Update.
9217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9218 * ia64-tdep.c (ia64_gdbarch_init): Update.
9219 * i386-tdep.c (i386_gdbarch_init): Update.
9220 * hppa-tdep.c (hppa_gdbarch_init): Update.
9221 * h8300-tdep.c (h8300_gdbarch_init): Update.
9222 * frv-tdep.c (frv_gdbarch_init): Update.
9223 * cris-tdep.c (cris_gdbarch_init): Update.
9224 * avr-tdep.c (avr_gdbarch_init): Update.
9225 * arm-tdep.c (arm_gdbarch_init): Update.
9226 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9227
1bf6d5cc
AC
92282003-03-25 Andrew Cagney <cagney@redhat.com>
9229
9230 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9231 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9232 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9233 * gdbarch.h, gdbarch.c: Regenerate.
9234 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9235 call_dummy_stack_adjust_p.
9236 * vax-tdep.c (vax_gdbarch_init): Ditto.
9237 * v850-tdep.c (v850_gdbarch_init): Ditto.
9238 * sh-tdep.c (sh_gdbarch_init): Ditto.
9239 * s390-tdep.c (s390_gdbarch_init): Ditto.
9240 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9241 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9242 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9243 * mips-tdep.c (mips_gdbarch_init): Ditto.
9244 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9245 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9246 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9247 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9248 * i386-tdep.c (i386_gdbarch_init): Ditto.
9249 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9250 * frv-tdep.c (frv_gdbarch_init): Ditto.
9251 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9252 * cris-tdep.c (cris_gdbarch_init): Ditto.
9253 * avr-tdep.c (avr_gdbarch_init): Ditto.
9254 * arm-tdep.c (arm_gdbarch_init): Ditto.
9255 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9256 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9257 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9258 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9259 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9260 call_dummy_stack_adjust_p.
9261 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9262 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9263 * sparc-tdep.c (sparc32_push_arguments): Update.
9264 * valops.c (hand_function_call): Update.
9265
71c08af0
CV
92662003-03-25 Corinna Vinschen <vinschen@redhat.com>
9267
9268 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9269 set_gdbarch_char_signed.
9270
30757f90
RE
92712003-03-25 Richard Earnshaw <rearnsha@arm.com>
9272
9273 PR cli/548
9274 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9275
03d48a7d
RE
92762003-03-25 Richard Earnshaw <rearnsha@arm.com>
9277
9278 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9279 (_initialize_arm_tdep): Don't set tm_print_insn.
9280
2cf6873c
AF
92812003-03-24 Adam Fedor <fedor@gnu.org>
9282
9283 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9284 * objc-lang.h: Add multiple inclusion protection.
9285 (start_msglist, add_msglist, end_msglist): Additional declarations.
9286
17c0759e
RE
92872003-03-24 Richard Earnshaw <rearnsha@arm.com>
9288
9289 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9290 value was renamed to ARM_FLOAT_SOFT_FPA.
9291
618ce49f
AC
92922003-03-23 Andrew Cagney <cagney@redhat.com>
9293
9294 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9295 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9296 * gdbarch.h, gdbarch.c: Regenerate.
9297 * valops.c (hand_function_call): Update.
9298 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9299 * frame.c (legacy_saved_regs_this_id): Update.
9300 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9301 * dummy-frame.h: Update.
9302 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9303 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9304 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9305 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9306 * config/m68k/tm-sun3.h: Update.
9307 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9309 * x86-64-tdep.c (x86_64_init_abi): Update.
9310 * vax-tdep.c (vax_gdbarch_init): Update.
9311 * v850-tdep.c (v850_gdbarch_init): Update.
9312 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9313 * sh-tdep.c (sh_gdbarch_init): Update.
9314 * s390-tdep.c (s390_gdbarch_init): Update.
9315 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9316 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9317 (frame_get_saved_regs): Update.
9318 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9319 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9320 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9321 * mips-tdep.c (mips_gdbarch_init): Update.
9322 * mcore-tdep.c (mcore_gdbarch_init): Update.
9323 * m68k-tdep.c (m68k_gdbarch_init): Update.
9324 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9325 * ia64-tdep.c (ia64_gdbarch_init): Update.
9326 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9327 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9328 (i386_interix_back_one_frame): Update.
9329 * hppa-tdep.c (hppa_gdbarch_init): Update.
9330 (hppa_init_extra_frame_info): Update.
9331 * h8300-tdep.c (h8300_gdbarch_init): Update.
9332 * frv-tdep.c (frv_gdbarch_init): Update.
9333 * cris-tdep.c (cris_gdbarch_init): Update.
9334 * avr-tdep.c (avr_gdbarch_init): Update.
9335 * arm-tdep.c (arm_gdbarch_init): Update.
9336 * alpha-tdep.c (alpha_gdbarch_init): Update.
9337
fd50bc42
RE
93382003-03-22 Richard Earnshaw <rearnsha@arm.com>
9339
9340 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9341 (arm_get_fp_model): Declare.
9342 * arm-tdep.c (fp_model_strings): New string array.
9343 (arm_fp_model, current_fp_model): New variables.
9344 (arm_get_fp_model): New function.
9345 (arm_set_fp): New function.
9346 (set_fp_model_sfunc): New function.
9347 (show_fp_model): New function.
9348 (_initialize_arm_tdep): Add new command to set/show the FPU.
9349 (arm_extract_return_value): Use arm_get_fp_model.
9350 (arm_store_return_value): Likewise.
9351 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9352 to initialize the floating-point data types.
9353 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9354 model is FPA.
9355
26304000
RE
93562003-03-22 Richard Earnshaw <rearnsha@arm.com>
9357
9358 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9359 the current setting of each value.
9360 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9361 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9362 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9363 commands and add new version as subcommands of "set/show arm".
9364
afd7eef0
RE
93652003-03-22 Richard Earnshaw <rearnsha@arm.com>
9366
9367 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9368 (set_arm_command, show_arm_command): New functions.
9369 (_initialize_arm_tdep): Add them.
9370 (num_disassembly_options): Renamed from num_flavor_options.
9371 (valid_disassembly_styles): Renamed from valid_flavors.
9372 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9373 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9374 set_disassembly_flavor_sfunc.
9375 (set_disassembly_style): Renamed from set_disassembly_flavor.
9376 (arm_othernames): Updated.
9377 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9378 command. Add "set/show arm disassembly" commands. Deprecate
9379 "othernames" command.
9380
299a7944
RE
93812003-03-22 Richard Earnshaw <rearnsha@arm.com>
9382
9383 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9384 (arm-tdep.o): Depend on elf_arm_h.
9385
c1dac9e6
RE
93862003-03-22 Richard Earnshaw <rearnsha@arm.com>
9387
9388 * Makefile.in (coff_internal_h): Define.
9389 (arm-tdep.o): Update dependencies.
9390
2702d96c
RE
93912003-03-22 Richard Earnshaw <rearnsha@arm.com>
9392
9393 * arm-tdep.c (prologue_cache): Delete.
9394 (check_prologue_cache, save_prologue_cache): Delete.
9395 (arm_scan_prologue): Don't check or update the prologue_cache.
9396 (arm_gdb_arch_init): Don't initialize it.
9397 (_initialize_arm_tdep): Likewise.
9398
27d5d74b
SC
93992003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9400
9401 * MAINTAINERS (tui): Maintainer of tui code.
9402
1762d96d
CV
94032003-03-21 Corinna Vinschen <vinschen@redhat.com>
9404
9405 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9406 (i386-cygwin-tdep.o): Add dependencies.
9407 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9408 * i386-cygwin-tdep.c: New file.
9409 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9410 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9411
4c2e2391
AC
94122003-03-20 Andrew Cagney <cagney@redhat.com>
9413
f20d38b7
AC
9414 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9415 (handle_inferior_event): Remove code calling
9416 DYNAMIC_TRAMPOLINE_NEXTPC.
9417
0022b738
AC
9418 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9419 already has a full path.
9420
864dbc90
AC
9421 * main.c (gdb_main): Return 1.
9422 (captured_main): Call error to report an invalid interpreter.
9423
4c2e2391
AC
9424 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9425 * alpha-osf1-tdep.c: Include "gdb_string.h".
9426
5ef7553b
JB
94272003-03-19 J. Brobecker <brobecker@gnat.com>
9428
9429 Continuing work to convert the hppa targets to multiarch partial.
9430
9431 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9432 method, now that hppa_push_dummy_frame has a conformant prototype.
9433 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9434 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9435 for the switch to multiarch partial.
9436
7bde8967
KB
94372003-03-19 Kevin Buettner <kevinb@redhat.com>
9438
9439 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9440 when iss is issNull.
9441
b006a9e9
KB
94422003-03-18 Kevin Buettner <kevinb@redhat.com>
9443
9444 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9445 NUM_REGS bounds check.
9446
5e2e9765
KB
94472003-03-18 Kevin Buettner <kevinb@redhat.com>
9448
9449 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9450 * mips-tdep.c (gdb_assert.h): Include.
9451 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9452 (mips_register_name): Handle integer registers explicitly. Add
9453 bounds checking.
9454 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9455 (mips_lsi33k_reg_names): Don't list integer registers; they're
9456 handled by mips_register_name() now.
9457 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9458 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9459 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9460 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9461 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9462
a2867626
AC
94632003-03-18 Andrew Cagney <cagney@redhat.com>
9464
9465 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9466 a void pointer.
9467 * gdbtypes.h (print_scalar_formatted): Update declaration.
9468 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9469
06600e06
JB
94702003-03-18 J. Brobecker <brobecker@gnat.com>
9471
9472 * infrun.c (observer.h): Add #include.
9473 (normal_stop): Add call to observer_notify_normal_stop.
9474 * Makefile.in (infrun.o): Add dependency on observer.h.
9475
7daf4f5b
JB
94762003-03-18 J. Brobecker <brobecker@gnat.com>
9477
9478 Continuing work to convert the hppa targets to multiarch partial.
9479 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9480 parameter. Reformat comment.
9481 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9482 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9483 to match new profile.
9484
3371ccc0
JB
94852003-03-18 J. Brobecker <brobecker@gnat.com>
9486
9487 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9488 appear to be working in any case.
9489
4fbe891e
JB
94902003-03-18 J. Brobecker <brobecker@gnat.com>
9491
9492 * observer.c (observer_test_first_observer): New static variable.
9493 (observer_test_second_observer): Likewise.
9494 (observer_test_third_observer): Likewise.
9495 (observer_test_first_notification_function): New static function.
9496 (observer_test_second_notification_function): Likewise.
9497 (observer_test_third_notification_function): Likewise.
9498
a7ff40e7
JB
94992003-03-17 J. Brobecker <brobecker@gnat.com>
9500
9501 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9502 * somsolib.c (gdb_assert.h): Likewise.
9503 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9504 (somsolib.o): Likewise.
9505
26ca4152
AC
95062003-03-17 Andrew Cagney <cagney@redhat.com>
9507
9508 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9509 BFD. Simplify setting of di.endian.
9510
0a613259
AC
95112003-03-17 Andrew Cagney <cagney@redhat.com>
9512
9513 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9514 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9515
9516 From Elena Zannoni <ezannoni@redhat.com>
9517 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9518 vector and floating-point parameters.
9519 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9520 convention.
9521 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9522
1132738f
FN
95232003-03-17 Fernando Nasser <fnasser@redhat.com>
9524
9525 * MAINTAINERS: Remove my name from several maintainership roles.
9526
6dc42492
AC
95272003-03-17 Andrew Cagney <cagney@redhat.com>
9528
9529 Fix frame off-by-one bug.
9530 * frame-unwind.h (frame_this_id_ftype): Replace
9531 frame_unwind_id_ftype.
9532 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9533 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9534 with "prev_register".
9535 * frame-unwind.c (frame_unwind_find_by_pc): Return
9536 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9537 comment.
9538 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9539 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9540 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9541 (dummy_frame_unwind): Update.
9542 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9543 sentinel_frame_register_unwind.
9544 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9545 (sentinel_frame_unwinder): Update.
9546 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9547 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9548 * frame.c (create_sentinel_frame): Update. Initialize
9549 "prologue_cache" instead of "unwind_cache".
9550 (frame_register_unwind): Call this frame's prev_register with the
9551 next frame and this frame's prologue cache.
9552 (get_prev_frame): Simplify. Always call prev frame's this_id with
9553 this frame and prev frame's prologue cache. Document that this
9554 call is shifted one to the left when compared to the
9555 frame_register_unwind call.
9556 (legacy_saved_regs_prev_register): Replace
9557 frame_saved_regs_register_unwind.
9558 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9559 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9560 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9561 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9562 (d10v_frame_unwind): Update.
9563 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9564 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9565 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9566 "saved_regs" with "this_saved_regs".
9567
efd710d6
AC
95682003-03-16 Andrew Cagney <cagney@redhat.com>
9569
9570 * frame.c (frame_pop): Don't call target_store_registers. Fix
9571 problem reported by Mark Kettenis.
9572
4e259f09
MK
95732003-03-16 Mark Kettenis <kettenis@gnu.org>
9574
9575 * i386-tdep.c (i386_register_type): Renamed from
9576 i386_register_virtual_type. Adjust function signature.
9577 (i386_gdbarch_init): Set register_type instead of
9578 deprecated_max_register_raw_size,
9579 deprecated_max_register_virtual_size and register_virtual_type.
9580
055bb976
AC
95812003-03-14 Andrew Cagney <cagney@redhat.com>
9582
9583 * frame.c (get_prev_frame): When a legacy frame, always call
9584 legacy_get_prev_frame. Simplify unwind code using assumption that
9585 the unwinder is new.
9586 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9587 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9588 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9589
ac2adee5
AC
95902003-03-14 Andrew Cagney <cagney@redhat.com>
9591
9592 * frame.c (get_saved_register): Delete function.
9593 * frame.h (get_saved_register): Delete declaration.
9594 * xstormy16-tdep.c: Update comment.
9595 * regcache.h: Update comments.
9596 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9597 get_saved_register and extract_address, use
9598 frame_read_unsigned_register.
9599 (sparc_frame_saved_pc): Ditto.
9600 (sparc_get_saved_register): Instead of get_saved_register, use
9601 frame_register.
9602 (sparc_pop_frame): Ditto.
9603 * findvar.c: Update comments.
9604 (value_of_register): Call frame_register instead of
9605 get_saved_register.
9606 (value_from_register): Ditto.
9607 * config/sparc/tm-sparc.h: Update comment.
9608 * breakpoint.c: Update comment.
9609
129c1cd6
AC
96102003-03-14 Andrew Cagney <cagney@redhat.com>
9611
9612 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9613 GET_SAVED_REGISTER.
9614 * gdbarch.h, gdbarch.c: Re-generate.
9615 * frame.h: Update comments.
9616 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9617 * x86-64-tdep.c (x86_64_init_abi): Update.
9618 * sparc-tdep.c (sparc_gdbarch_init): Update.
9619 * sh-tdep.c (sh_gdbarch_init): Update.
9620 * mips-tdep.c (mips_gdbarch_init): Update.
9621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9622 * cris-tdep.c (cris_gdbarch_init): Update.
9623 * ia64-tdep.c (ia64_gdbarch_init): Update.
9624 * frame.c (frame_register): Update.
9625 (get_saved_register): Update.
9626 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9627
749b82f6
AC
96282003-03-13 Andrew Cagney <cagney@redhat.com>
9629
9630 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9631 * gdbarch.h, gdbarch.c: Regenerate.
9632 * valops.c (hand_function_call): Update comment.
9633 * stack.c (return_command): Update comment.
9634 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9635 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9637 * x86-64-tdep.c (x86_64_init_abi): Update.
9638 * vax-tdep.c (vax_gdbarch_init): Update.
9639 * v850-tdep.c (v850_gdbarch_init): Update.
9640 * sparc-tdep.c (sparc_gdbarch_init): Update.
9641 * sh-tdep.c (sh_gdbarch_init): Update.
9642 * s390-tdep.c (s390_gdbarch_init): Update.
9643 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9644 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9645 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9646 * mips-tdep.c (mips_gdbarch_init): Update.
9647 * mcore-tdep.c (mcore_gdbarch_init): Update.
9648 * m68k-tdep.c (m68k_gdbarch_init): Update.
9649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9650 * ia64-tdep.c (ia64_gdbarch_init): Update.
9651 * i386-tdep.c (i386_gdbarch_init): Update.
9652 * hppa-tdep.c (hppa_gdbarch_init): Update.
9653 * h8300-tdep.c (h8300_gdbarch_init): Update.
9654 * frv-tdep.c (frv_gdbarch_init): Update.
9655 * cris-tdep.c (cris_gdbarch_init): Update.
9656 * avr-tdep.c (avr_gdbarch_init): Update.
9657 * arm-tdep.c (arm_gdbarch_init): Update.
9658 * alpha-tdep.c (alpha_gdbarch_init): Update.
9659
1594fa56
AC
96602003-03-13 Andrew Cagney <cagney@redhat.com>
9661
9662 * frame.c (legacy_frame_p): New function.
9663 (get_prev_frame): Use legacy_frame_p.
9664 * frame.h (legacy_frame_p): Declare.
9665
7717fda3
V
96662003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9667
fbe586ae 9668 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9669 listing corrected.
9670
0c67cbe9
V
96712003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9672
fbe586ae 9673 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9674
03febf99
AC
96752003-03-12 Andrew Cagney <cagney@redhat.com>
9676
9677 * frame.c (get_prev_frame): Rename the frame parameter to
9678 "this_frame".
9679 (get_next_frame, legacy_get_prev_frame): Ditto.
9680
0a1e1ca1
AC
96812003-03-12 Andrew Cagney <cagney@redhat.com>
9682
9683 * frame.c (get_current_frame): Check target_has_registers before
9684 checking target_has_stack.
9685 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9686 instead of deprecated_selected_frame.
9687 * findvar.c (value_of_register): Pass "frame", not
9688 deprecated_selected_frame, to value_of_builtin_reg.
9689
a66a9c23
AC
96902003-03-12 Andrew Cagney <cagney@redhat.com>
9691
9692 * regcache.c (regcache_cooked_write_signed): New function.
9693 (regcache_cooked_write_unsigned): New function.
9694 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9695 (regcache_cooked_read_signed): Fix regnum in range assertion.
9696 * regcache.h (regcache_cooked_write_signed): Declare.
9697 (regcache_cooked_write_unsigned): Declare.
9698
8bedc050
AC
96992003-03-12 Andrew Cagney <cagney@redhat.com>
9700
9701 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9702 * gdbarch.h, gdbarch.c: Re-generate.
9703 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9704 * x86-64-tdep.h: Update.
9705 * x86-64-tdep.c (x86_64_init_abi): Update.
9706 * v850-tdep.c (v850_gdbarch_init): Update.
9707 * sparc-tdep.c (sparc_gdbarch_init): Update.
9708 * sh-tdep.c (sh_gdbarch_init): Update.
9709 * s390-tdep.c (s390_gdbarch_init): Update.
9710 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9711 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9712 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9713 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9714 * mips-tdep.c (mips_gdbarch_init): Update.
9715 * mcore-tdep.c (mcore_gdbarch_init): Update.
9716 * m68k-tdep.c (m68k_gdbarch_init): Update.
9717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9718 * ia64-tdep.c (ia64_gdbarch_init): Update.
9719 * i386-tdep.c (i386_gdbarch_init): Update.
9720 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9721 * hppa-tdep.c (hppa_gdbarch_init): Update.
9722 * h8300-tdep.c (h8300_gdbarch_init): Update.
9723 * frv-tdep.c (frv_gdbarch_init): Update.
9724 * cris-tdep.c (cris_gdbarch_init): Update.
9725 * avr-tdep.c (avr_gdbarch_init): Update.
9726 * arm-tdep.c (arm_gdbarch_init): Update.
9727 * alpha-tdep.c (alpha_gdbarch_init): Update.
9728 * sh-tdep.c (sh_init_extra_frame_info): Update.
9729 (sh64_init_extra_frame_info): Update.
9730 * ns32knbsd-nat.c (frame_num_args): Update.
9731 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9732 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9733 (xstormy16_frame_chain_valid): Update.
9734 * vax-tdep.c (vax_saved_pc_after_call): Update.
9735 * v850-tdep.c (v850_frame_chain): Update.
9736 (v850_pop_frame): Update.
9737 (v850_init_extra_frame_info): Update.
9738 * sparc-tdep.c (setup_arbitrary_frame): Update.
9739 * ns32k-tdep.c (umax_frame_num_args): Update.
9740 * s390-tdep.c (s390_pop_frame_regular): Update.
9741 * mn10300-tdep.c (mn10300_frame_chain): Update.
9742 (mn10300_pop_frame_regular): Update.
9743 (mn10300_init_extra_frame_info): Update.
9744 * mips-tdep.c (mips_init_frame_pc_first): Update.
9745 (mips_frame_chain): Update.
9746 (mips_pop_frame): Update.
9747 * mcore-tdep.c (mcore_frame_chain): Update.
9748 (mcore_pop_frame): Update.
9749 (mcore_init_extra_frame_info): Update.
9750 * arch-utils.c (init_frame_pc_default): Update.
9751 * m68k-tdep.c (isi_frame_num_args): Update.
9752 (delta68_frame_num_args): Update.
9753 (news_frame_num_args): Update.
9754 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9755 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9756 (alpha_frame_chain): Update.
9757 (alpha_pop_frame): Update.
9758 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9759 (hppa_init_extra_frame_info): Update.
9760 (hppa_frame_chain): Update.
9761 (hppa_frame_chain_valid): Update.
9762 * cris-tdep.c (cris_init_extra_frame_info): Update.
9763 * avr-tdep.c (avr_init_extra_frame_info): Update.
9764 * arm-tdep.c (arm_frame_chain_valid): Update.
9765 (arm_init_extra_frame_info): Update.
9766 (arm_pop_frame): Update.
9767 * frame.c (frame_pc_unwind): Update.
9768 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9769 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9770 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9771 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9772 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9773 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9774
7a25a7c1
AC
97752003-03-12 Andrew Cagney <cagney@redhat.com>
9776
9777 Eliminate the need for POP_FRAME.
9778 * frame.c (do_frame_unwind_register): New function.
9779 (frame_pop): When no POP_FRAME, pop the frame using register
9780 unwind and a scratch regcache.
9781 (frame_saved_regs_pop): Delete function.
9782 (trad_frame_unwinder): Update.
9783 * d10v-tdep.c (d10v_frame_pop): Delete function.
9784 (d10v_frame_unwind): Update.
9785 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9786 (sentinel_frame_unwinder): Update.
9787 * dummy-frame.c (dummy_frame_pop): Delete function.
9788 (dummy_frame_unwind): Update.
9789 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9790 (struct frame_unwind): Update.
9791
2f38ef89
KB
97922003-03-11 Kevin Buettner <kevinb@redhat.com>
9793
9794 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9795 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9796 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9797 Do range checks on register number obtained from debugging info.
9798 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9799 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9800 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9801 mapping function.
9802 (do_fp_register_row): Fix typo which caused double type to be
9803 used when attempting to unpack a float.
9804
552f4abf
JB
98052003-03-11 J. Brobecker <brobecker@gnat.com>
9806
9807 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9808
e0d2ae16
AC
98092003-03-11 Andrew Cagney <cagney@redhat.com>
9810
9811 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9812 frame. Problem found by Corinna Vinschen.
9813
ddbfdd06
PM
98142003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9815
9816 * doublest.c (floatformat_from_length): Accept also
9817 the real size of 'long double' type.
9818
088b2ddc 98192003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9820
088b2ddc 9821 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9822 * breakpoint.c (bpstat_copy): Copy the command lines as well
9823 as the old value, to match what is freed in bpstat_clear.
9824
f56f77c1
DC
98252003-03-10 David Carlton <carlton@math.stanford.edu>
9826
9827 * minsyms.c (add_minsym_to_hash_table): Replace
9828 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9829 (compare_minimal_symbols, compact_minimal_symbols)
9830 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9831 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9832 of DEPRECATED_SYMBOL_MATCHES_NAME.
9833 (lookup_minimal_symbol_solib_trampoline): Ditto.
9834
5602984a
AC
98352003-03-10 Andrew Cagney <cagney@redhat.com>
9836
9837 * regcache.h (regcache_cooked_read_ftype): Define.
9838 (regcache_save, regcache_restore): Add a cooked_read parameter.
9839 * regcache.c (regcache_save, regcache_restore): Update.
9840 (do_cooked_read): New function.
9841 (regcache_cpy): Pass do_cooked_read to regcache_save and
9842 regcache_restore.
9843
8bedc050
AC
98442003-03-10 Andrew Cagney <cagney@redhat.com>
9845
9846 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9847 * gdbarch.h, gdbarch.c: Re-generate.
9848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9849 * x86-64-tdep.h: Update.
9850 * x86-64-tdep.c (x86_64_init_abi): Update.
9851 * v850-tdep.c (v850_gdbarch_init): Update.
9852 * sparc-tdep.c (sparc_gdbarch_init): Update.
9853 * sh-tdep.c (sh_gdbarch_init): Update.
9854 * s390-tdep.c (s390_gdbarch_init): Update.
9855 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9856 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9857 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9858 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9859 * mips-tdep.c (mips_gdbarch_init): Update.
9860 * mcore-tdep.c (mcore_gdbarch_init): Update.
9861 * m68k-tdep.c (m68k_gdbarch_init): Update.
9862 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9863 * ia64-tdep.c (ia64_gdbarch_init): Update.
9864 * i386-tdep.c (i386_gdbarch_init): Update.
9865 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9866 * hppa-tdep.c (hppa_gdbarch_init): Update.
9867 * h8300-tdep.c (h8300_gdbarch_init): Update.
9868 * frv-tdep.c (frv_gdbarch_init): Update.
9869 * cris-tdep.c (cris_gdbarch_init): Update.
9870 * avr-tdep.c (avr_gdbarch_init): Update.
9871 * arm-tdep.c (arm_gdbarch_init): Update.
9872 * alpha-tdep.c (alpha_gdbarch_init): Update.
9873 * sh-tdep.c (sh_init_extra_frame_info): Update.
9874 (sh64_init_extra_frame_info): Update.
9875 * ns32knbsd-nat.c (frame_num_args): Update.
9876 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9877 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9878 (xstormy16_frame_chain_valid): Update.
9879 * vax-tdep.c (vax_saved_pc_after_call): Update.
9880 * v850-tdep.c (v850_frame_chain): Update.
9881 (v850_pop_frame): Update.
9882 (v850_init_extra_frame_info): Update.
9883 * sparc-tdep.c (setup_arbitrary_frame): Update.
9884 * ns32k-tdep.c (umax_frame_num_args): Update.
9885 * s390-tdep.c (s390_pop_frame_regular): Update.
9886 * mn10300-tdep.c (mn10300_frame_chain): Update.
9887 (mn10300_pop_frame_regular): Update.
9888 (mn10300_init_extra_frame_info): Update.
9889 * mips-tdep.c (mips_init_frame_pc_first): Update.
9890 (mips_frame_chain): Update.
9891 (mips_pop_frame): Update.
9892 * mcore-tdep.c (mcore_frame_chain): Update.
9893 (mcore_pop_frame): Update.
9894 (mcore_init_extra_frame_info): Update.
9895 * arch-utils.c (init_frame_pc_default): Update.
9896 * m68k-tdep.c (isi_frame_num_args): Update.
9897 (delta68_frame_num_args): Update.
9898 (news_frame_num_args): Update.
9899 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9900 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9901 (alpha_frame_chain): Update.
9902 (alpha_pop_frame): Update.
9903 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9904 (hppa_init_extra_frame_info): Update.
9905 (hppa_frame_chain): Update.
9906 (hppa_frame_chain_valid): Update.
9907 * cris-tdep.c (cris_init_extra_frame_info): Update.
9908 * avr-tdep.c (avr_init_extra_frame_info): Update.
9909 * arm-tdep.c (arm_frame_chain_valid): Update.
9910 (arm_init_extra_frame_info): Update.
9911 (arm_pop_frame): Update.
9912 * frame.c (frame_pc_unwind): Update.
9913 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9914 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9915 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9916 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9917 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9918 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9919
12cc2063
AC
99202003-03-10 Andrew Cagney <cagney@redhat.com>
9921
9922 * gdbarch.sh (gdbarch_unwind_pc): New method.
9923 * gdbarch.h, gdbarch.c: Regenerate.
9924 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9925 but use read_pc and FRAME_SAVED_PC as fall backs.
9926 (frame_saved_regs_pc_unwind): Delete function.
9927 (trad_frame_unwinder): Update.
9928 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9929 (struct frame_unwind): Update.
9930 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9931 (dummy_frame_unwind): Update.
9932 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9933 (sentinel_frame_unwinder): Update.
9934 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9935 (d10v_frame_unwind): Update.
9936 (d10v_unwind_pc): New function.
9937 (d10v_gdbarch_init): Set unwind_pc.
9938
ef840a37
AC
99392003-03-10 Andrew Cagney <cagney@redhat.com>
9940
a2ce2e56
AC
9941 * gdbarch.h: Re-generate.
9942
ef840a37
AC
9943 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9944 PC.
9945 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9946 the PC register.
9947
08f3424b
MK
99482003-03-08 Mark Kettenis <kettenis@gnu.org>
9949
9950 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9951
1248ede2
AC
99522003-03-08 Andrew Cagney <cagney@redhat.com>
9953
9954 * cli-out.c: Update copyright.
9955 (cli_out_data): Define typedef. Use instead of ui_out_data.
9956
f49bacc8
AC
99572003-03-08 Andrew Cagney <cagney@redhat.com>
9958
9959 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9960 the result.
9961
9b05f993
AC
99622003-03-07 Andrew Cagney <cagney@redhat.com>
9963
9964 * gdbarch.sh: Don't generate two macro definitions when an
9965 undefined macro taking no arguments.
9966 * gdbarch.h: Regenerate.
8ffd9b1b 9967
166f4c7b
ML
99682002-03-07 Michal Ludvig <mludvig@suse.cz>
9969
9970 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9971 (x86_64_unwind_dummy_id): New functions.
9972 (x86_64_init_abi): Register these two new functions.
9973
6d686a84
ML
99742003-03-07 Michal Ludvig <mludvig@suse.cz>
9975
9976 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9977 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9978 separate function.
9979 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9980
6314f104
AC
99812003-03-05 Andrew Cagney <cagney@redhat.com>
9982
9983 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9984 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9985 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9986 to use unwind_dummy_id when a dummy frame.
9987 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9988 predicate.
9989 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9990
ceea5145
AC
99912003-03-05 Andrew Cagney <cagney@redhat.com>
9992
9993 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9994 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9995 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9996 values.
9997
0d843116
AC
99982003-03-05 Andrew Cagney <cagney@redhat.com>
9999
10000 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10001 (struct d10v_unwind_cache): Delete field "frameless". Replace
10002 "next_addr" with "sp_offset". Add "r11_offset".
10003 (d10v_frame_unwind_cache): Update.
10004 (prologue_find_regs): Update. When "mv r11, sp", save the
10005 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10006 RN was saved in r11_offset.
10007
b2579786
AC
100082003-03-05 Andrew Cagney <cagney@redhat.com>
10009
10010 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10011 cached PC value in the next frame.
10012
218e5956
AC
100132003-03-05 Andrew Cagney <cagney@redhat.com>
10014
10015 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10016 "id_unwind_cache" with "id".
10017 (frame_id_unwind): Delete declaration.
10018 * frame.c (frame_id_unwind): Delete function.
10019 (get_prev_frame): Call the frame id unwind method directly. Store
10020 the returned next frame's ID value in NEXT_FRAME. Note that there
10021 is a problem with the wrong unwind ID being called with the wrong
10022 unwind cache.
10023
ed363b1b
DJ
100242003-03-05 Daniel Jacobowitz <drow@mvista.com>
10025
10026 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10027
fe1f4a5e
DJ
100282003-03-05 James Ingham <jingham@apple.com>
10029 Daniel Jacobowitz <drow@mvista.com>
10030
10031 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10032 (auto_cp_abi): New variable.
10033 (current_cp_abi, num_cp_abis): Make static.
10034 (CP_ABI_MAX): Define.
10035 (cp_abis): Turn into an array.
10036 (value_virtual_fn_field): Fix formatting.
10037 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10038 takes a pointer.
10039 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10040 (list_cp_abis, _initialize_cp_abi): New functions.
10041 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10042 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10043 switch_to_cp_abi. Update prototype for register_cp_abi.
10044 * Makefile.in (cp-abi.o): Update dependencies.
10045 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10046 instead of switch_to_cp_abi.
10047 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10048 register_cp_abi.
10049 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10050 register_cp_abi.
10051 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10052
e4adbba9
DJ
100532003-03-05 Daniel Jacobowitz <drow@mvista.com>
10054
10055 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10056 * dwarf2loc.c: Include "regcache.h".
10057 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10058 register_size.
10059 * Makefile.in (dwarf2loc.o): Update dependencies.
10060
91ccbfc1
TR
100612003-03-04 Theodore A. Roth <troth@openavr.org>
10062
10063 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10064 number of io registers reported by remote target is not a multiple of
10065 step.
10066
3d4e8fd2
DC
100672003-03-04 David Carlton <carlton@math.stanford.edu>
10068
10069 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10070 (lookup_symbol_aux_psymtabs): Update call to
10071 lookup_partial_symbol.
10072 (lookup_transparent_type, find_main_psymtab)
10073 (make_symbol_overload_list): Ditto.
10074
ed42d87b
KH
100752003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10076
10077 * MAINTAINERS (Write after approval): Update my email address.
10078
a0ed5532
AC
100792003-03-03 Andrew Cagney <cagney@redhat.com>
10080
10081 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10082 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10083 predicate. Replace MAX_REGISTER_RAW_SIZE.
10084 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10085 MAX_REGISTER_VIRTUAL_SIZE.
10086 * regcache.c (legacy_max_register_raw_size): New function.
10087 (legacy_max_register_virtual_size): New function.
10088 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10089 (MAX_REGISTER_RAW_SIZE): Define.
10090 (legacy_max_register_raw_size): Declare.
10091 (legacy_max_register_virtual_size): Declare.
10092 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10093 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10094 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10095 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10096 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10097 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10098 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10099 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10100 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10102 * vax-tdep.c (vax_gdbarch_init): Update.
10103 * v850-tdep.c (v850_gdbarch_init): Update.
10104 * sparc-tdep.c (sparc_gdbarch_init): Update.
10105 * sh-tdep.c (sh_gdbarch_init): Update.
10106 * s390-tdep.c (s390_gdbarch_init): Update.
10107 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10108 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10109 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10110 * mips-tdep.c (mips_gdbarch_init): Update.
10111 * mcore-tdep.c (mcore_gdbarch_init): Update.
10112 * m68k-tdep.c (m68k_gdbarch_init): Update.
10113 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10114 * ia64-tdep.c (ia64_gdbarch_init): Update.
10115 * i386-tdep.c (i386_gdbarch_init): Update.
10116 * hppa-tdep.c (hppa_gdbarch_init): Update.
10117 * h8300-tdep.c (h8300_gdbarch_init): Update.
10118 * frv-tdep.c (frv_gdbarch_init): Update.
10119 * cris-tdep.c (cris_gdbarch_init): Update.
10120 * avr-tdep.c (avr_gdbarch_init): Update.
10121 * arm-tdep.c (arm_gdbarch_init): Update.
10122 * alpha-tdep.c (alpha_gdbarch_init): Update.
10123 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10124 max_register_raw_size or max_register_virtual_size.
10125
8e437497
DC
101262003-03-03 David Carlton <carlton@math.stanford.edu>
10127
10128 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10129 SYMBOL_MATCHES_NAME, add comment.
10130 (SYMBOL_MATCHES_NATURAL_NAME): New.
10131 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10132 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10133 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10134 * symtab.c (lookup_partial_symbol): Use
10135 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10136 unhelpful comment.
10137 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10138 SYMBOL_MATCHES_NAME.
10139 Fix for PR c++/33.
10140
25120b0d
DC
101412003-03-03 David Carlton <carlton@math.stanford.edu>
10142
10143 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10144 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10145 by regexp matching against SYMBOL_NATURAL_NAME.
10146
78a11fb4
DC
101472003-03-03 David Carlton <carlton@math.stanford.edu>
10148
10149 * linespec.c (find_method): Extract code into collect_methods.
10150 (collect_methods): New.
10151
645dd519
MK
101522003-03-02 Mark Kettenis <kettenis@gnu.org>
10153
b4700d91
MK
10154 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10155 get_frame_base.
10156
645dd519
MK
10157 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10158 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10159
0aa7e1aa
SC
101602003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10161
8ffd9b1b 10162 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10163 and not regnum when summing the size of all registers up to regnum.
10164
f30ee0bc
AC
101652003-03-01 Andrew Cagney <cagney@redhat.com>
10166
10167 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10168 FRAME_INIT_SAVED_REGS.
10169 * gdbarch.h, gdbarch.c: Regenerate.
10170 * stack.c (frame_info): Update.
10171 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10172 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10173 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10174 * ns32k-tdep.c (ns32k_pop_frame): Update.
10175 * mips-tdep.c (mips_pop_frame): Update.
10176 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10177 * ia64-tdep.c (ia64_frame_chain): Update.
10178 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10179 (ia64_frameless_function_invocation): Update.
10180 (ia64_init_extra_frame_info): Update.
10181 (ia64_pop_frame_regular): Update.
10182 * frame.h (struct frame_info): Update comment.
10183 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10184 * frame.c (frame_saved_regs_register_unwind): Update.
10185 (frame_saved_regs_register_unwind): Update.
10186 (deprecated_generic_get_saved_register): Update.
10187 * cris-tdep.c: Update comment.
10188 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10189 Rename macro.
10190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10191 * x86-64-tdep.c (x86_64_init_abi): Update.
10192 * vax-tdep.c (vax_gdbarch_init): Update.
10193 * v850-tdep.c (v850_gdbarch_init): Update.
10194 * sparc-tdep.c (sparc_gdbarch_init): Update.
10195 * sh-tdep.c (sh_gdbarch_init): Update.
10196 * s390-tdep.c (s390_gdbarch_init): Update.
10197 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10198 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10199 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10200 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10201 * mips-tdep.c (mips_gdbarch_init): Update.
10202 * mcore-tdep.c (mcore_gdbarch_init): Update.
10203 * m68k-tdep.c (m68k_gdbarch_init): Update.
10204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10205 * ia64-tdep.c (ia64_gdbarch_init): Update.
10206 * i386-tdep.c (i386_gdbarch_init): Update.
10207 * frv-tdep.c (frv_gdbarch_init): Update.
10208 * avr-tdep.c (avr_gdbarch_init): Update.
10209 * arm-tdep.c (arm_gdbarch_init): Update.
10210 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10211
42fa7c0f
AC
102122003-03-01 Andrew Cagney <cagney@redhat.com>
10213
10214 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10215 option enum and switch. When no windows, set the interpreter to
10216 INTERP_CONSOLE.
8ffd9b1b 10217
49c7e338
AC
102182003-03-01 Andrew Cagney <cagney@redhat.com>
10219
10220 * main.c (captured_main): Replace magic option characters with an
10221 enum.
10222
e9582e71
AC
102232003-03-01 Andrew Cagney <cagney@redhat.com>
10224
10225 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10226 INIT_EXTRA_FRAME_INFO.
10227 * gdbarch.h, gdbarch.c: Regenerate.
10228 * arm-tdep.c: Update comments.
10229 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10230 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10231 * frame.h, avr-tdep.c: Ditto.
10232 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10233 (create_new_frame, legacy_get_prev_frame): Ditto.
10234 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10235 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10237 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10238 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10239 * v850-tdep.c (v850_gdbarch_init): Ditto.
10240 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10241 * sh-tdep.c (sh_gdbarch_init): Ditto.
10242 * s390-tdep.c (s390_gdbarch_init): Ditto.
10243 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10244 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10245 * mips-tdep.c (mips_gdbarch_init): Ditto.
10246 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10247 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10248 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10249 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10250 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10251 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10252 * frv-tdep.c (frv_gdbarch_init): Ditto.
10253 * cris-tdep.c (cris_gdbarch_init): Ditto.
10254 * avr-tdep.c (avr_gdbarch_init): Ditto.
10255 * arm-tdep.c (arm_gdbarch_init): Ditto.
10256 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10257 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10258
35cac7cf
AC
102592003-03-01 Andrew Cagney <cagney@redhat.com>
10260
10261 * gdbarch.sh (register_type): New function with predicate.
10262 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10263 * gdbarch.h, gdbarch.c: Re-generate.
10264 * arch-utils.c (generic_register_byte): Use generic_register_size.
10265 (generic_register_size): When available, use
10266 gdbarch_register_type.
10267 * regcache.c (init_regcache_descr): When available, initialize the
10268 register type array using gdbarch_register_type. If the
10269 architecture supplies gdbarch_register_type, do not use the legacy
10270 regcache layout.
10271 * d10v-tdep.c (d10v_register_type): Replace
10272 d10v_register_virtual_type.
10273 (d10v_gdbarch_init): Set register_type instead of
10274 register_virtual_type.
10275
7b83296f
AC
102762003-03-01 Andrew Cagney <cagney@redhat.com>
10277
10278 * Makefile.in (ax-gdb.o): Update dependencies.
10279 * ax-gdb.c: Include "regcache.h".
10280 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10281 * findvar.c (value_of_register): Ditto.
10282 * infcmd.c (default_print_registers_info): Ditto.
10283
eadc1c87
MK
102842003-03-01 Mark Kettenis <kettenis@gnu.org>
10285
10286 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10287 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10288
14143612
MK
102892003-03-01 Mark Kettenis <kettenis@gnu.org>
10290
10291 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10292 of STREQ.
10293
a55cc764
DJ
102942003-02-28 Daniel Jacobowitz <drow@mvista.com>
10295
10296 * Makefile.in (dwarf2loc.o): Update dependencies.
10297 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10298 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10299 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10300 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10301 (locexpr_tracepoint_var_ref): New function.
10302 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10303
08a617da
AC
103042003-02-28 Andrew Cagney <cagney@redhat.com>
10305
10306 * regcache.c (register_size): New function.
10307 * regcache.h (register_size): Declare
10308 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10309 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10310
4224873a
DC
103112003-02-28 David Carlton <carlton@math.stanford.edu>
10312
10313 * linespec.c (decode_compound): Extract code into find_method.
10314 (find_method): New.
10315
ccdc5d7f
JB
103162003-02-28 J. Brobecker <brobecker@gnat.com>
10317
10318 * Makefile.in: Add rules to build and link in observer.o.
10319
974e8ced
JB
103202003-02-27 J. Brobecker <brobecker@gnat.com>
10321
10322 * observer.c: Minor comments edits.
10323
7a28f973
JB
103242003-02-27 J. Brobecker <brobecker@gnat.com>
10325
10326 * observer.h, observer.c: New file.
10327
27cddce2
AC
103282003-02-27 Andrew Cagney <cagney@redhat.com>
10329
10330 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10331
b94a41a1
SC
103322003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10333
10334 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10335 (M6812_OP_STS_EXT): Likewise.
10336 (m6811_prologue): Use the above to recognize prologue.
10337 (m6812_prologue): Likewise.
10338
c8be8951
DC
103392003-02-27 David Carlton <carlton@math.stanford.edu>
10340
10341 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10342 SYMBOL_PRINT_NAME.
10343 (compare_psymbols): Ditto.
10344 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10345
d05bb1fc
MS
103462003-02-27 Michael Snyder <msnyder@redhat.com>
10347
4e845cd3
MS
10348 * f-lang.c (build_fortran_types): New function.
10349 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10350 * doublest.c (extract_floating): Fix warning text.
10351
f3824013
AC
103522003-02-27 Andrew Cagney <cagney@redhat.com>
10353
10354 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10355 predicate. Replaces PUSH_DUMMY_FRAME.
10356 * gdbarch.h, gdbarch.c: Regnerate.
10357 * valops.c (hand_function_call): Update. Call
10358 generic_push_dummy_frame directly.
10359 * vax-tdep.c (vax_gdbarch_init): Update.
10360 * sparc-tdep.c (sparc_gdbarch_init): Update.
10361 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10362 * m68k-tdep.c (m68k_gdbarch_init): Update.
10363 * hppa-tdep.c (hppa_gdbarch_init): Update.
10364 * alpha-tdep.c (alpha_gdbarch_init): Update.
10365 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10366 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10367 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10368 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10369 push_dummy_frame to generic_push_dummy_frame.
10370 * v850-tdep.c (v850_gdbarch_init): Ditto.
10371 * sh-tdep.c (sh_gdbarch_init): Ditto.
10372 * s390-tdep.c (s390_gdbarch_init): Ditto.
10373 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10374 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10375 * mips-tdep.c (mips_gdbarch_init): Ditto.
10376 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10378 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10379 * i386-tdep.c (i386_gdbarch_init): Ditto.
10380 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10381 * frv-tdep.c (frv_gdbarch_init): Ditto.
10382 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10383 * cris-tdep.c (cris_gdbarch_init): Ditto.
10384 * avr-tdep.c (avr_gdbarch_init): Ditto.
10385 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10386
ad188201
KB
103872003-02-26 Kevin Buettner <kevinb@redhat.com>
10388
10389 * mips-tdep.c (show_mips_abi): New function.
10390 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10391 command ``show mips abi''.
10392
6b37567a 103932003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10394
6b37567a 10395 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10396 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10397 more sline entries have been seen for the function.
10398
d3e0a5bf
MC
103992003-02-26 Michael Chastain <mec@shout.net>
10400
10401 * configure: Regenerate with autoconf 000227.
10402
18972eea
MC
104032003-02-26 Michael Chastain <mec@shout.net>
10404
10405 Close PR build/660.
10406 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10407 for old libc5/glibc.
10408 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10409
0bbde931
KW
104102003-02-26 Kris Warkentin <kewarken@qnx.com>
10411
10412 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10413 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10414
27ca5dad
MC
104152003-02-26 Michael Chastain <mec@shout.net>
10416
10417 * configure.in: New variable HAVE_UINTPTR_T.
10418 * configure, config.in: Regenerated.
10419
6f88d630
DJ
104202003-02-26 Daniel Jacobowitz <drow@mvista.com>
10421
10422 Fix PR build/1097.
10423 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10424
b14185ce
AC
104252003-02-25 Andrew Cagney <cagney@redhat.com>
10426
10427 * frame.c (get_prev_frame): Add comment on check for
10428 inside_entry_func. Only check for inside_entry_file when not a
10429 dummy and not a sentinel. Check that the new frame is not inner
10430 to the old frame.
10431
ac2bd0a9
AC
104322003-02-25 Andrew Cagney <cagney@redhat.com>
10433
10434 * frame.c (frame_debug): New variable.
10435 (_initialize_frame): Add "set/show debug frame" command.
10436 (get_prev_frame): When frame_debug, print reason why unwind
10437 failed.
10438
b18a0fd2
MC
104392003-02-25 Michael Chastain <mec@shout.net>
10440
10441 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10442 to avoid uintptr_t definition problems.
10443
22abf04a
DC
104442003-02-25 David Carlton <carlton@math.stanford.edu>
10445
10446 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10447 (SYMBOL_LINKAGE_NAME): Ditto.
10448 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10449 SYMBOL_LINKAGE_NAME.
10450 (struct general_symbol_info): Expand comment.
10451 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10452 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10453 (SYMBOL_MATCHES_REGEXP): Ditto.
10454 * symtab.c (symbol_natural_name): New function.
10455 * objfiles.h: Replace all uses of SYMBOL_NAME by
10456 DEPRECATED_SYMBOL_NAME.
10457 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10458 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10459 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10460 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10461 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10462 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10463 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10464 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10465 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10466 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10467 * ada-exp.y: Ditto.
10468 * ada-exp.y: Update copyright.
10469 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10470 * cp-valprint.c: Ditto.
10471
1a5848f6
JJ
104722003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10473
10474 * infptrace.c (detach): Do not flag error if ptrace detach fails
10475 and errno is set to ESRCH.
10476
7343d46a
AC
104772003-02-24 Andrew Cagney <cagney@redhat.com>
10478
10479 * infptrace.c (udot_info): Change type of udot_off to long. Use
10480 paddr when printing udot_off's value.
10481
49fa1dc2
DC
104822003-02-24 David Carlton <carlton@math.stanford.edu>
10483
10484 * symtab.c (make_symbol_overload_list): Only read in partial
10485 symtabs containing a matching partial symbol.
10486
0fe19209
DC
104872003-02-24 David Carlton <carlton@math.stanford.edu>
10488
10489 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10490 do the comparison, not strcmp.
10491 * symfile.c (compare_psymbols): Ditto.
10492 * defs.h: Declare strcmp_iw_ordered.
10493 * utils.c (strcmp_iw_ordered): New function.
10494
8e3ee7b5
JB
104952003-02-24 Jim Blandy <jimb@redhat.com>
10496
10497 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10498 support, shared libs): Remove my name from here, to better reflect
10499 reality.
10500
7df1a324
KW
105012003-02-24 Kris Warkentin <kewarken@qnx.com>
10502
10503 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10504 (target_ops): Add to_have_continuable_watchpoint.
10505 * target.c (update_current_target): Add INHERIT line for
10506 to_have_continuable_watchpoint.
10507 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10508 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10509 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10510 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10511
d1c76907
EZ
105122003-02-24 Elena Zannoni <ezannoni@redhat.com>
10513
10514 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10515 maintainership.
10516
2610b0bf
KW
105172003-02-24 Kris Warkentin <kewarken@qnx.com>
10518
f46169db
KW
10519 * solib.c (solib_open): Call target defined search function after
10520 failing with solib-search-path.
10521 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10522 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10523
9a3c34fe
KW
105242003-02-24 Kris Warkentin <kewarken@qnx.com>
10525
f46169db 10526 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10527
2417dd25
SC
105282003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10529
10530 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10531
b631436b
SC
105322003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10533
10534 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10535 (m68hc11_add_reggroups): New function.
10536 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10537 (m68hc11_gdbarch_init): Install the reggroups.
10538 (_initialize_m68hc11_tdep): Initialize them.
10539
0aa8c1e4
JW
105402003-02-21 James E Wilson <wilson@tuliptree.org>
10541
10542 * MAINTAINERS: Update my email address.
10543
50ceaba5
DC
105442003-02-21 David Carlton <carlton@math.stanford.edu>
10545
10546 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10547
4c2df51b
DJ
105482003-02-21 Daniel Jacobowitz <drow@mvista.com>
10549
10550 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10551 * symtab.h: Add opaque declarations of struct axs_value and
10552 struct agent_expr.
10553 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10554 (struct location_funcs): New type.
10555 (struct symbol): Add "loc" to aux_value.
10556 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10557 * dwarf2read.c: Include "dwarf2expr.h".
10558 (dwarf2_symbol_mark_computed): New function.
10559 (read_func_scope): Use it.
10560 (var_decode_location): New function.
10561 (new_symbol): Use it.
10562 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10563
10564 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10565 (dwarf2expr_h, dwarf2loc_h): New variables.
10566 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10567 (dwarf2expr.o, dwarf2loc.o): New rules.
10568 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10569 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10570 LOC_COMPUTED_ARG.
10571 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10572 * m2-exp.y (yylex): Likewise.
10573 * printcmd.c (address_info, print_frame_args): Likewise.
10574 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10575 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10576 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10577 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10578 * symtab.c (lookup_block_symbol): Likewise.
10579
5784d15e
AF
105802003-02-20 Adam Fedor <fedor@gnu.org>
10581
10582 * symtab.h: Remove objc_specific struct
10583 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10584 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10585 Have language_objc use cplus_specific struct.
10586
d4cad8db
TT
105872003-02-20 Tom Tromey <tromey@redhat.com>
10588
10589 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10590 TYPE_NAME, when printing a String value. PR java/1075.
10591
2f9a90b4
AF
105922003-02-20 Adam Fedor <fedor@gnu.org>
10593
d38074a8 10594 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10595 * objc-lang.c (find_methods): Make static.
2f9a90b4 10596
6f17862b
CF
105972003-02-20 Christopher Faylor <cgf@redhat.com>
10598
10599 * win32-nat.c (get_image_name): Check return value from
10600 ReadProcessMemory.
10601 (child_xfer_memory): Ditto.
10602
715d1656
AO
106032003-02-20 Alexandre Oliva <aoliva@redhat.com>
10604
10605 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10606 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10607 '${exec_prefix}' (in addition to the expansion thereof) as
10608 relocatable.
10609 * configure: Rebuilt.
10610
b1262a02
DC
106112003-02-20 David Carlton <carlton@math.stanford.edu>
10612
10613 * symtab.c (search_symbols): Revert the search_symbols part of my
10614 2002-12-23 patch. Add comment.
10615
7134143f
DJ
106162002-02-20 Daniel Jacobowitz <drow@mvista.com>
10617
10618 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10619 * dbxread.c (elfstab_build_psymtabs): Don't call
10620 install_minimal_symbols.
10621 (stabsect_build_psymtabs): Likewise.
10622 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10623 earlier.
10624 * somread.c (som_symfile_read): Call install_minimal_symbols
10625 and do_cleanups earlier.
10626 * nlmread.c (nlm_symfile_read): Likewise.
10627 * mdebugread.c (elfmdebug_build_psymtabs): Call
10628 install_minimal_symbols and make appropriate cleanups.
10629
cf466558
KB
106302003-02-20 Kevin Buettner <kevinb@redhat.com>
10631
10632 * solib.c (reload_shared_libraries): New function.
10633 (_initialize_solib): Add callbacks for ``set solib-search-path''
10634 and ``set solib-absolute-prefix''.
10635
de5ad195
DC
106362003-02-20 David Carlton <carlton@math.stanford.edu>
10637
10638 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10639 expand comment.
10640 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10641 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10642 * ada-typeprint.c (ada_typedef_print): Ditto.
10643 * ax-gdb.c (gen_var_ref): Ditto.
10644 * breakpoint.c (print_one_breakpoint): Ditto.
10645 * buildsym.c (finish_block): Ditto.
10646 * c-valprint.c (c_val_print): Ditto.
10647 * expprint.c (print_subexp): Ditto.
10648 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10649 * infcmd.c (jump_command): Ditto.
10650 * linespec.c (decode_line_2, decode_compound): Ditto.
10651 * maint.c (maintenance_translate_address): Ditto.
10652 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10653 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10654 Ditto.
8ffd9b1b
AJ
10655 * p-valprint.c (pascal_val_print): Ditto.
10656 * stabsread.c (define_symbol): Ditto.
de5ad195 10657 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10658 (print_frame_arg_vars, return_command): Ditto.
10659 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10660 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10661 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10662 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10663 (rbreak_command): Ditto.
10664 * tracepoint.c (tracepoints_info): Ditto.
10665 * typeprint.c (typedef_print): Ditto.
10666 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10667 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10668 * ada-typeprint.c: Update Copyright.
10669 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10670 * tracepoint.c, cli/cli-cmds.c: Ditto.
10671
f796e4be
KB
106722003-02-20 Kevin Buettner <kevinb@redhat.com>
10673
10674 * frame.c (generic_unwind_get_saved_register): Make non-static.
10675 * frame.h (generic_unwind_get_saved_register): Declare.
10676 * mips-tdep.c (read_next_frame_reg): Fetch register from
10677 current regcache when frame is NULL.
10678 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10679 that must be NULL.
10680 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10681 instead of frame_register_unwind().
10682
836cc9f4
AC
106832003-02-20 Andrew Cagney <ac131313@redhat.com>
10684
10685 * remote-sim.c (gdbsim_insert_breakpoint)
10686 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10687 code.
10688
501eef12
AC
106892003-02-20 Andrew Cagney <ac131313@redhat.com>
10690
10691 * remote.c (_initialize_remote): Add commands "set/show remote
10692 hardware-watchpoint-limit" and "set/show remote
10693 hardware-breakpoint-limit".
10694 (remote_hw_watchpoint_limit): Initialize to -1.
10695 (remote_hw_breakpoint_limit): Ditto.
10696 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10697
1b6bc7e0
CF
106982003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10699
10700 * coff-pe-read.c: New file - support reading of minimal symbols from a
10701 portable executable using the export table.
10702 * coff-pe-read.h: New file.
10703 * coffread.c: Include coff-pe-read.h.
10704 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10705 debugging symbols found.
10706 * Makefile.in (SFILES): Add coff-pe-read.o.
10707 (coff_pe_read_h): Define.
10708 (COMMON_OBS): Add coff-pe-read.o.
10709 (coffread.o): Add coff_pe_read_h dependency.
10710 (coff-pe-read.o): New target.
10711
fe898f56
DC
107122003-02-19 David Carlton <carlton@math.stanford.edu>
10713
10714 * Makefile.in (SFILES): Add block.c.
10715 (block_h): New.
10716 (COMMON_OBS): Add block.o.
10717 (block.o): New.
10718 (x86-64-tdep.o): Add $(block_h).
10719 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10720 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10721 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10722 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10723 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10724 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10725 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10726 * value.h: Add opaque declaration for struct block.
10727 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10728 * ada-lang.h: Ditto.
10729 * x86-64-tdep.c: #include "block.h"
10730 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10731 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10732 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10733 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10734 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10735 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10736 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10737 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10738 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10739 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10740 * symtab.c (block_function): Ditto.
10741 (contained_in): Ditto.
10742 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10743 block.h. Add opaque declaration for struct block.
10744 * symtab.h: Move block_function and contained_in declarations to
10745 block.h. Add opaque declarations for struct block, struct
10746 blockvector.
10747 (struct block): Move to block.h.
10748 (struct blockvector): Ditto.
10749 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10750 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10751 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10752 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10753 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10754 Ditto.
10755 * block.c: New file.
10756 * block.h: New file.
10757
173345b5
TR
107582003-02-19 Theodore A. Roth <troth@openavr.org>
10759
10760 * avr-tdep.c (avr_extract_return_value): Remove function.
10761 (avr_store_return_value): Remove function.
10762 (avr_extract_struct_value_address): Remove function.
10763 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10764
338ef23d
AC
107652003-02-19 Andrew Cagney <ac131313@redhat.com>
10766
10767 * rs6000-tdep.c: Include "gdb_assert.h".
10768 (registers_e500): Add "acc" and "spefscr".
10769 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10770 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10771 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10772 really is "r0".
10773 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10774
5412f5f3
KS
107752003-02-18 Keith Seitz <keiths@redhat.com>
10776
10777 * Makefile.in: Add gdbtk-interps.c.
10778
881324eb
KB
107792003-02-18 Kevin Buettner <kevinb@redhat.com>
10780
10781 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10782 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10783
6a2f5abf
AC
107842003-02-18 Andrew Cagney <cagney@redhat.com>
10785
10786 * symtab.h (struct objfile): Add opaque declaration.
10787
54c7009d
EZ
107882003-02-18 Elena Zannoni <ezannoni@redhat.com>
10789
10790 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10791 * dbxread.c (process_one_symbol): Use last_function_start rather
10792 than function_start_offset to find the real beginning of the
10793 current function. The latter is just the text section offset on
10794 some systems, the former is always the real function start.
54c7009d 10795
7ee6d7eb
AC
107962003-02-17 Andrew Cagney <cagney@redhat.com>
10797
10798 * configure.in: Revert ${target} != ${host}.
10799
2846da9b
AC
108002003-02-17 Andrew Cagney <ac131313@redhat.com>
10801
10802 * configure.in (Makefile): Use the test ${target} != ${host},
10803 instead of the absence of the "nm.h" file, to determine of the
10804 configuration non-native.
10805 * configure: Regenerate.
8ffd9b1b 10806
3b27aeea
EZ
108072003-02-14 Elena Zannoni <ezannoni@redhat.com>
10808
fbe586ae 10809 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10810
10811 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10812 conditionalize tui_active test.
10813 (lookup_cmd_1): Ditto.
10814
b0b1c2c0
MK
108152003-02-14 Mark Kettenis <kettenis@gnu.org>
10816
10817 * configure.in: Add check for _etext.
10818 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10819 available.
10820 * config.in, configure: regenerated.
10821
8f05cde5
DJ
108222003-02-14 Daniel Jacobowitz <drow@mvista.com>
10823
10824 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10825
021e7609
AC
108262003-02-14 Andrew Cagney <ac131313@redhat.com>
10827
10828 * main.c (tui_version): Delete variable.
10829 (captured_main): When --tui, set interpreter_p to "tui" instead of
10830 enabling tui_version.
10831 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10832 tui_version.
10833 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10834 * cli/cli-cmds.c (disassemble_command): Ditto.
10835 * defs.h (tui_version): Delete declaration.
10836 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10837 (tui-interp.o): Add rules.
10838 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10839
e325dcec
CF
108402003-02-14 Christopher Faylor <cgf@redhat.com>
10841
36ffb041 10842 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10843 just-loaded dll.
10844
c4f90d87
JM
108452003-02-12 Jason Molenda (jmolenda@apple.com)
10846
fbe586ae
RH
10847 * symmisc.c (print_objfile_statistics): Include information about
10848 the number of psymtabs and symtabs in each object file.
c4f90d87 10849
e46e5ccd
KS
108502003-02-13 Keith R Seitz <keiths@redhat.com>
10851
10852 * main.h (struct captured_main_args): Add interpreter_p.
10853 * main.c (captured_main): Initialize interpreter_p from context.
10854 * gdb.c (main): Set interpreter_p argument.
10855 * Makefile.in (gdb.o): Add dependency for interps.h.
10856
fe97fe9c
AC
108572003-02-12 Andrew Cagney <ac131313@redhat.com>
10858
10859 * event-top.c (cli_command_loop): Delete declaration.
10860 (_initialize_event_loop): Delete function setting event_loop_hook.
10861 * event-top.h (cli_command_loop): Declare. Update copyright.
10862 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10863 * interps.c (current_interp_command_loop): When event_loop_p, call
10864 cli_command_loop.
10865
1cdac4ef
AC
108662003-02-12 Andrew Cagney <ac131313@redhat.com>
10867
10868 * interps.h (interp_command_loop_ftype): Change return type to
10869 void.
10870
48037ead
ML
108712003-02-12 Michal Ludvig <mludvig@suse.cz>
10872
10873 * x86-64-tdep.c (x86_64_extract_return_value)
10874 (x86_64_store_return_value): Use regcache instead of regbuf.
10875 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10876 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10877
033afc63
AC
108782003-02-11 Andrew Cagney <ac131313@redhat.com>
10879
10880 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10881 * aclocal.m4: Regenerate.
10882 * configure: Regenerate.
10883
10884 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10885 TCL_LD_SEARCH_FLAGS.
10886
40d02bca
ML
108872003-02-10 Michal Ludvig <mludvig@suse.cz>
10888
10889 * dwarf2cfi.c: Reindented.
10890
11308a41
AC
108912003-02-09 Andrew Cagney <ac131313@redhat.com>
10892
10893 * interps.c (clear_interpreter_hooks): Convert function definition
10894 to ISO C.
10895
e1c1c0f6
DC
108962003-02-07 David Carlton <carlton@math.stanford.edu>
10897
10898 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10899
ab5d3da6
KB
109002003-02-07 Kevin Buettner <kevinb@redhat.com>
10901
10902 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10903 (struct type): ...to here.
10904 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10905 field.
10906 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10907 (replace_type): Set length on all type variants for a given type.
10908
b8a92b82
AC
109092003-02-07 Andrew Cagney <ac131313@redhat.com>
10910
10911 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10912 <sys/stat.h>.
10913 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10914
5cb316ef
AC
109152003-02-06 Andrew Cagney <ac131313@redhat.com>
10916
2555fe1a
AC
10917 * Makefile.in (symm-nat.o): Update dependencies.
10918 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10919 (lynx-nat.o, ia64-linux-nat.): Ditto.
10920 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10921 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10922 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10923
44270758
AC
10924 * Makefile.in (inflow_h): Define.
10925 (procfs.o, inflow.o, procfs.o): Update dependencies.
10926 * inftarg.c (child_stop): Delete extern declaration of
10927 inferior_process_group. Include "inflow.h".
10928 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10929 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10930 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10931 (our_process_group, inferior_process_group): Extern declarations.
10932
df8f7274
AC
10933 * procfs.c: Include "gdb_assert.h".
10934
5cb316ef
AC
10935 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10936 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10937 * jv-typeprint.c (java_type_print_base): Ditto.
10938 * typeprint.c (typedef_print): Eliminate STREQ.
10939 * cli/cli-script.c (define_command, define_command): Ditto.
10940 * main.c (captured_main): Ditto.
10941 * values.c (lookup_internalvar): Ditto.
10942 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10943 within `if' conditional.
10944 * linespec.c (decode_line_2): Ditto.
10945 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10946 (bfd_openw_with_cleanup): Ditto.
10947
2a28ccea
MK
109482003-02-07 Mark Kettenis <kettenis@gnu.org>
10949
10950 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10951 legacy_extract_return_value and store_return_value to
10952 legacy_return_value.
10953
786b8124
CF
109542003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10955
10956 * win32-nat.c (get_relocated_section_addrs): New function. Find
10957 section load addresses for symbol handling in relocated DLLs.
10958 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10959
b871e4ec
FF
109602003-02-05 Fred Fish <fnf@intrinsity.com>
10961
10962 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10963 '=' and '!='.
10964 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10965 with '&' and '=='.
10966 (angel_RDI_info): Ditto.
10967 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10968 with '&' and '!='.
10969 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10970
4389a95a 109712003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10972 Keith Seitz <keiths@redhat.com>
10973 Elena Zannoni <ezannoni@redhat.com>
10974 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10975
10976 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10977 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10978 (SUBDIR_MI_OBS): Add "mi-interp.o".
10979 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10980 (SFILES): Add "interps.c".
10981 (COMMON_OBS): Add "interps.o".
10982 (interps_h, mi_main_h): Define.
10983 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10984 (mi-main.o, main.o, event-top.o): Update dependencies.
10985 * cli/cli-interp.c: New file.
10986 * interps.h, interps.c: New files.
10987 * top.c: (gdb_init): Don't install the default interpreter, handed
10988 by captured_main.
10989 * main.c: Include "interps.h".
10990 (interpreter_p): Note that it should malloc'ed.
10991 (captured_command_loop): Call current_interp_command_loop.
10992 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10993 xfree and xstrdup when updating interpreter_p. Install the
10994 default interpreter. Add hack to stop mi1's copyright notice
10995 being encoded.
10996 * event-top.h (gdb_setup_readline): Declare.
10997 (gdb_disable_readline): Declare.
10998 * event-top.c: Include "interps.h".
10999 (display_gdb_prompt): Call current_interp_display_prompt_p.
11000 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11001 gdb_stdlog, and gdb_stdtarg.
11002 (_initialize_event_loop): Don't call gdb_setup_readline.
11003 * cli-out.c (cli_out_set_stream): New function.
11004 * cli-out.h (cli_out_set_stream): Declare.
11005
ff3b5810
MK
110062003-02-06 Mark Kettenis <kettenis@gnu.org>
11007
11008 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11009 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11010 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11011 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11012 config/i386/i386v42mp.mt: Removed.
11013
5b729aa5
MK
110142003-02-05 Mark Kettenis <kettenis@gnu.org>
11015
11016 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11017 GDB_OSABI_SOLARIS.
11018
8cc15142
MC
110192003-02-05 Michael Chastain <mec@shout.net>
11020
11021 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11022 2.12.1 and earlier versions.
11023
5aa5d4b9
AC
110242003-02-05 Andrew Cagney <ac131313@redhat.com>
11025
11026 Remove orphaned hosts, targets and files.
11027 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11028 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11029 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11030 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11031 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11032 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11033 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11034 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11035 * config/sparc/tm-sp64sim.h: Delete.
11036 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11037 hosts.
11038 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11039 mips*-dec-mach3* targets.
11040
b68767c1
MC
110412003-02-04 Michael Chastain <mec@shout.net>
11042
11043 * NEWS: Fix typo: sepcifying -> specifying.
11044
5ae7ca1d
MC
110452003-02-04 Michael Chastain <mec@shout.net>
11046
11047 * dwarfread.c: Add documentation on the state of dwarf-1,
11048 looking towards obsoletion.
11049
d08a4280
MC
110502003-02-03 Michael Chastain <mec@shout.net>
11051
11052 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11053 gdb/testsuite/gdb.c++/pr-1023.exp.
11054
e9be73e4
AC
110552003-02-04 Andrew Cagney <ac131313@redhat.com>
11056
11057 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11058 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11059
11060 * utils.c (init_page_info): Delete reference to MPW in comments.
11061 * main.c (captured_main): Delete #ifdef MPW.
11062
05d57f6f
AC
110632003-02-04 Andrew Cagney <ac131313@redhat.com>
11064
8ffd9b1b 11065 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11066 * monitor.c (monitor_expect): Obsolete reference to m32r.
11067 * configure.tgt: Mark m32r-*-elf* as obsolete.
11068 * MAINTAINERS: Mark m32k as obsolete.
11069 * m32r-rom.c: Obsolete file.
11070 * config/m32r/m32r.mt: Obsolete file.
11071 * config/m32r/tm-m32r.h: Obsolete file.
11072 * m32r-stub.c: Obsolete file.
11073 * m32r-tdep.c: Obsolete file.
11074
8b0e5691
AC
110752003-02-04 Andrew Cagney <ac131313@redhat.com>
11076
11077 * NEWS: Mention that the z8k-zilog-none is obsolete.
11078 * MAINTAINERS: Mark z8k as obsolete.
11079 * configure.tgt: Obsolete the z8k-*-coff* target.
11080 * config/z8k/z8k.mt: Obsolete file.
11081 * config/z8k/tm-z8k.h: Obsolete file.
11082 * z8k-tdep.c: Obsolete file.
11083
67f16606
AC
110842003-02-04 Andrew Cagney <ac131313@redhat.com>
11085
11086 * NEWS: Mention that the mn10200-elf is obsolete.
11087 * configure.tgt: Obsolete mn10200-*-* target.
11088 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11089 mention that the mn10200 is obsolete.
11090 * breakpoint.h: Ditto.
11091 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11092 * config/mn10200/mn10200.mt: Obsolete file.
11093 * config/mn10200/tm-mn10200.h: Obsolete file.
11094 * mn10200-tdep.c: Obsolete file.
11095
fd2299bd
AC
110962003-02-04 Andrew Cagney <ac131313@redhat.com>
11097
11098 * MAINTAINERS: Mark h8500 as obsolete.
11099 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11100 * findvar.c (value_from_register): Ditto.
11101 * h8500-tdep.c: Mark file as obsolete.
11102 * config/h8500/h8500.mt: Ditto.
11103 * config/h8500/tm-h8500.h: Ditto.
11104 * NEWS: Mention that h8500 is obsolete.
11105
eb9a305d
DC
111062003-02-04 David Carlton <carlton@math.stanford.edu>
11107
11108 * objfiles.c (allocate_objfile): Always set name. Add comment at
11109 start of function.
11110 * jv-lang.c (get_dynamics_objfile): Add comment.
11111
406fc7fb
DC
111122003-02-04 David Carlton <carlton@math.stanford.edu>
11113
11114 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11115 * printcmd.c (build_address_symbolic): Replace uses of
11116 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11117 SYMBOL_NAME, and asm_demangle.
11118 Update copyright.
11119
93d91629
DC
111202003-02-04 David Carlton <carlton@math.stanford.edu>
11121
11122 * linespec.c (decode_compound): Extract code into
11123 lookup_prefix_sym.
11124 (lookup_prefix_sym): New function.
11125
1c5cb38e
DC
111262003-02-04 David Carlton <carlton@math.stanford.edu>
11127
11128 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11129 FLOAT_COERCION_BADNESS.
11130 * gdbtypes.c (rank_one_type): Replace all uses of
11131 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11132
0cf824c9
JB
111332003-02-04 Jim Blandy <jimb@redhat.com>
11134
11135 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11136 section, let dwarf_macinfo_section point to it, not
11137 dwarf_loc_section.
11138
a2d356b0
DJ
111392003-02-04 Daniel Jacobowitz <drow@mvista.com>
11140
11141 Pointed out by Anton Blanchard <anton@samba.org>.
11142 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11143 (ppc_linux_at_sigtramp_return_path): Use it.
11144
2de7ced7
DJ
111452003-02-04 Daniel Jacobowitz <drow@mvista.com>
11146
11147 * defs.h (streq): Add prototype.
11148 * utils.c (streq): New function.
11149
11150 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11151 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11152 * mdebugread.c (new_symbol): Likewise.
11153 * stabsread.c (define_symbol): Likewise.
11154 * coffread.c (process_coff_symbol): Likewise.
11155 * dwarfread.c (new_symbol): Likewise.
11156
11157 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11158 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11159 here.
11160 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11161 SYMBOL_INIT_DEMANGLED_NAME.
11162 * objfiles.c: Include "hashtab.h".
11163 (allocate_objfile): Call htab_set_functions_ex for the
11164 demangled_names_hash.
11165 (free_objfile): Call htab_delete for the demangled_names_hash.
11166 * objfiles.h (struct htab): Add declaration.
11167 (struct objfile): Add demangled_names_hash.
11168 * symfile.c: Include "hashtab.h".
11169 (reread_symbols): Call htab_delete for the demangled_names_hash.
11170 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11171 SYMBOL_NAME in the bcache.
11172 * symtab.c: Include "hashtab.h". Update comments.
11173 (create_demangled_names_hash, symbol_set_names): New functions.
11174 (symbol_find_demangled_name): New function, broken out from
11175 symbol_init_demangled_names.
11176 (symbol_init_demangled_names): Use it.
11177 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11178 (SYMBOL_SET_NAMES): New macro.
11179 (symbol_set_names): Add prototype.
11180
15831452
JB
111812003-02-03 Jim Blandy <jimb@redhat.com>
11182
11183 Use a single, consistent representation for an empty minimal
11184 symbol table in an objfile.
11185 * objfiles.c (terminate_minimal_symbol_table): New function.
11186 (allocate_objfile): Call it.
11187 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11188 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11189 non-NULL.
15831452
JB
11190 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11191 objfile has minimal symbols, compare minimal_symbol_count to zero,
11192 instead of comparing msymbols with NULL.
11193 * objfiles.c (have_minimal_symbols): Same.
11194 * solib-sunos.c (solib_add_common_symbols): Call
11195 terminate_minimal_symbol_table.
11196 * symfile.c (reread_symbols): Same.
8ffd9b1b 11197
ffc65945
KB
111982003-02-03 Kevin Buettner <kevinb@redhat.com>
11199
11200 * s390-tdep.c (s390_address_class_type_flags)
11201 (s390_address_class_type_flags_to_name)
11202 (s390_address_class_name_to_type_flags): New functions.
11203 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11204 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11205
f211c6d4
MS
112062003-02-03 Michael Snyder <msnyder@redhat.com>
11207
11208 * arm-tdep.c: Fix spell-o in comment.
11209
659b0389
ML
112102003-02-03 Michal Ludvig <mludvig@suse.cz>
11211
11212 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11213 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11214 error messages to contain BFD filename.
659b0389 11215
3b31d625
EZ
112162003-02-02 Elena Zannoni <ezannoni@redhat.com>
11217
997b089a 11218 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11219 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11220 (do_mixed_source_and_assembly): Use
11221 make_cleanup_ui_out_tuple_begin_end and
11222 make_cleanup_ui_out_tuple_begin_end.
11223 (do_mixed_source_and_assembly): Ditto.
11224 * thread.c (do_captured_list_thread_ids): Ditto.
11225 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11226 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11227 ui_out_tuple_end): Delete prototypes.
11228 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11229 ui_out_list_end, ui_out_tuple_end): Delete.
11230
11231 From Kevin Buettner <kevinb@redhat.com>:
11232 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11233 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11234 (do_cleanup_table_end): New functions.
11235 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11236 Use cleanups to invoke_ui_out_tuple_end().
11237 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11238 * cli/cli-setshow.c (cmd_show_list): Use
11239 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11240
5b181d62
AC
112412003-02-02 Andrew Cagney <ac131313@redhat.com>
11242
11243 * frame.c (frame_unwind_register): New function.
11244 (frame_unwind_unsigned_register): Use.
11245 (frame_unwind_signed_register): Use.
11246 (frame_read_register): New function.
11247 * frame.h (frame_unwind_register): Declare.
11248 (frame_read_register): Declare.
11249
11250 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11251 and frame_unwind_register instead of read_memory, write_register
11252 and deprecated_write_register_bytes.
11253
5f601589
AC
112542003-02-02 Andrew Cagney <ac131313@redhat.com>
11255
11256 * frame.h: Note that namelen can be negative.
11257 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11258 NAME's length.
11259
11260 * NEWS: Mention that the d10v's `regs' command is deprecated.
11261 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11262 (d10v_print_registers_info): New function.
11263 (show_regs): Call d10v_print_registers_info.
11264 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11265
6a3fe0a4
MK
112662003-02-02 Mark Kettenis <kettenis@gnu.org>
11267
11268 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11269 lost in the previous patch.
11270
075559bc
AC
112712003-02-01 Andrew Cagney <ac131313@redhat.com>
11272
11273 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11274 * stack.c (print_frame_info_base): Output complete FRAME tuple
11275 for synthesized frames.
075559bc 11276
6789195b
AC
112772003-02-02 Andrew Cagney <ac131313@redhat.com>
11278
11279 * mips-nat.c (zerobuf): Delete.
11280 (fetch_inferior_registers): Alloc local zerobuf.
11281 (fetch_core_registers): Alloc local zerobuf.
11282 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11283 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11284 * thread-db.c (thread_db_store_registers): Ditto.
11285 * sh-tdep.c (sh_do_register): Ditto.
11286 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11287 * remote-sim.c (gdbsim_store_register): Ditto.
11288 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11289 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11290 * monitor.c (monitor_supply_register): Ditto.
11291 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11292 * mips-nat.c (fetch_inferior_registers): Ditto.
11293 * m68klinux-nat.c (fetch_register): Ditto.
11294 * lynx-nat.c (fetch_inferior_registers): Ditto.
11295 (fetch_inferior_registers): Ditto.
11296 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11297 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11298 (hpux_thread_store_registers): Ditto.
11299 * hppah-nat.c (fetch_register): Ditto.
11300 * hppab-nat.c (fetch_register): Ditto.
11301 * hppa-tdep.c (pa_register_look_aside): Ditto.
11302 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11303 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11304
e669114a
AC
113052003-02-01 Andrew Cagney <ac131313@redhat.com>
11306
11307 * gdbarch.sh: Explictly specify all method levels. When a
11308 variable with an empty level, provide a non-multi-arch default.
11309 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11310 * gdbarch.h: Re-generate.
11311 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11312 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11313
9a043c1d
AC
113142003-02-01 Andrew Cagney <ac131313@redhat.com>
11315
11316 * defs.h (host_pointer_to_address): Delete declaration.
11317 (address_to_host_pointer): Delete declaration.
11318 * utils.c (host_pointer_to_address): Delete function.
11319 (address_to_host_pointer): Delete function.
11320 * procfs.c (procfs_address_to_host_pointer): New function.
11321 * procfs.c (proc_set_watchpoint): Use.
11322 (procfs_can_use_hw_breakpoint): Update comments.
11323 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11324 (som_solib_add): Use.
11325 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11326 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11327
7ca9f392
AC
113282003-02-01 Andrew Cagney <ac131313@redhat.com>
11329
94bbfd30
AC
11330 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11331 strlen d_name.
11332
7ca9f392
AC
11333 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11334 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11335 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11336 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11337 (define_symbol): Update.
11338 * symfile.c (generic_load): Remove references to nindy.
11339 * symtab.c: Remove references to nindy.
11340
31a85ea2
AC
113412003-02-01 Andrew Cagney <ac131313@redhat.com>
11342
11343 * infcmd.c (print_float_info): Delete code conditional on
11344 FLOAT_INFO.
11345 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11346 * config/m68k/nm-apollo68b.h: Ditto.
11347 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11348 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11349 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11350
f6e85fc8
MK
113512003-02-01 Mark Kettenis <kettenis@gnu.org>
11352
6015b6a0
MK
11353 * config/i386/tm-i386os9k.h: Removed.
11354
f7a30bdf
MK
11355 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11356 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11357 they're identical to i[3456]86-*-sysv* now.
11358 * config/i386/i386v32.mh: Removed.
11359 * config/i386/xm-i386v32.h: Removed.
11360 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11361
28d52111
MK
11362 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11363
4d3f6bce
MK
11364 * config/i386/i386dgux.mh: Removed.
11365 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11366
f6e85fc8
MK
11367 * configure.in: Fix typo.
11368 * configure: Regenerated.
11369
53955967
DC
113702003-01-31 David Carlton <carlton@math.stanford.edu>
11371
11372 * dwarf2read.c (dwarf2_locate_sections): Set
11373 dwarf_ranges_section.
11374
b1364885
AC
113752003-01-31 Andrew Cagney <ac131313@redhat.com>
11376
8dbb1c65
AC
11377 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11378 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11379
8731e58e
AC
11380 * utils.c: Re-indent.
11381
b1364885
AC
11382 * config/djgpp/fnchange.lst: Delete nindy files.
11383 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11384 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11385 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11386 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11387 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11388 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11389 * Makefile.in (init.c): Remove nindy references.
11390 (saber_gdb): Delete rule.
11391 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11392 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11393 and a68v-nat.c.
11394 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11395 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11396 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11397 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11398 nindy-share/stop.h.
11399 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11400 * saber.suppress: Delete file.
11401
086df311
DJ
114022003-01-31 Daniel Jacobowitz <drow@mvista.com>
11403
11404 * dbxread.c (stabs_data): New static variable.
11405 (fill_symbuf): Support an in-memory buffer for stabs data.
11406 (stabs_seek): New function.
11407 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11408 (read_ofile_symtab): Use stabs_seek.
11409 (elfstab_build_psymtabs): Take an asection* instead of
11410 an offset and size. Relocate the stabs data if necessary.
11411 Save the section* for dbx_psymtab_to_symtab.
11412 * dwarf2read.c: Add section variables for each debug section.
11413 (dwarf2_locate_sections): Fill them in.
11414 (dwarf2_read_section): Take an asection* argument.
11415 Relocate the section contents if necessary.
11416 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11417 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11418 it to dwarf2_read_section.
11419 (dwarf2_build_frame_info): Update callers.
11420 * elfread.c (elf_symfile_read): Update call to
11421 elfstab_build_psymtabs.
11422 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11423 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11424 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11425 * symfile.c (symfile_dummy_outputs): New function.
11426 (symfile_relocate_debug_section): New function.
11427 * symfile.h (symfile_relocate_debug_section): Add prototype.
11428
87d1b352
RH
114292003-01-31 Richard Henderson <rth@redhat.com>
11430
11431 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11432 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11433 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11434 * alpha-tdep.c (alpha_register_name): Add "unique".
11435 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11436 (ALPHA_UNIQUE_REGNUM): New.
11437 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11438
c48861fb
AC
114392003-01-31 Andrew Cagney <ac131313@redhat.com>
11440
11441 * README: Remove reference to Ericsson 1800 monitor.
11442 * Makefile.in (remote-es.o): Delete rule.
11443 (ALLDEPFILES): Delete remote-es.c.
11444 * remote-es.c: Delete file.
11445 * config/m68k/es1800.mt: Delete file.
11446 * config/djgpp/fnchange.lst: Update.
11447 * configure.tgt: Delete m68*-ericsson-* target.
11448
d764a824
AF
114492003-01-31 Adam Fedor <fedor@gnu.org>
11450
11451 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11452 Remove duplicate/shadowing variable of same name.
11453
fe36c4f4
JB
114542003-01-30 Jim Blandy <jimb@redhat.com>
11455
11456 * symfile.c (find_separate_debug_file): Assert that the objfile's
11457 directory name we compute ends with a slash, and then assume that
11458 that's so everywhere we use it.
11459
cb741690
DJ
114602003-01-30 Daniel Jacobowitz <drow@mvista.com>
11461
11462 * valops.c (value_assign): Flush frame cache after stores to memory
11463 also.
11464
96ee5227
AC
114652003-01-30 Andrew Cagney <ac131313@redhat.com>
11466
11467 * Makefile.in (mon960-rom.o): Delete rule.
11468 * mon960-rom.c: Delete file.
11469
7f6104a9
AC
114702003-01-30 Andrew Cagney <ac131313@redhat.com>
11471
11472 * d10v-tdep.c: Include "frame-unwind.h".
11473 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11474 list.
11475 (next_addr, uses_frame): Delete.
11476 (struct d10v_unwind_cache): Define.
11477 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11478 Use info instead of next_addr and uses_frame globals.
11479 (d10v_frame_init_saved_regs): Delete function.
11480 (d10v_init_extra_frame_info): Delete function.
11481 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11482 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11483 init_frame_pc or frame_saved_pc.
11484 (d10v_pop_frame): Delete function.
11485 (do_d10v_pop_frame): Delete function.
11486 (d10v_frame_chain): Delete function.
11487 (d10v_frame_chain_valid): Delete function.
11488 (d10v_frame_pc_unwind): New function.
11489 (d10v_frame_id_unwind): New function.
11490 (saved_regs_unwinder): New function.
11491 (d10v_frame_register_unwind): New function.
11492 (d10v_frame_pop): New function.
11493 (d10v_frame_unwind): New variable.
11494 (d10v_frame_p): New function.
11495 (d10v_frame_saved_pc): Delete function.
11496 * Makefile.in (d10v-tdep.o): Update dependencies.
11497
cad2e848
JB
114982003-01-30 J. Brobecker <brobecker@gnat.com>
11499
11500 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11501 causing some regressions due to a change in the default value
11502 for this macro.
11503
af34e669
DJ
115042003-01-29 Richard Henderson <rth@redhat.com>
11505 Elena Zannoni <ezannoni@redhat.com>
11506 Daniel Jacobowitz <drow@mvista.com>
11507
11508 Fix PR gdb/961.
8ffd9b1b 11509 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11510 variables.
11511 (RANGES_SECTION): New.
11512 (dwarf_ranges_buffer): New variable.
11513 (struct comp_unit_head): Add member "die".
11514 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11515 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11516 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11517 (dwarf2_locate_sections): Likewise.
11518 (dwarf2_build_psymtabs): Read .debug_ranges.
11519 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11520 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11521 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11522 Look for DW_AT_ranges and return the bounding box.
11523
baa93fa6
CF
115242003-01-29 Brian Ford <ford@vss.fsi.com>
11525
11526 * win32-nat.c (cygwin_pid): Removed as unused.
11527 (child_attach): Try fall back to Cygwin pid.
11528
c63f977f
JB
115292003-01-29 Jim Blandy <jimb@redhat.com>
11530
11531 * objfiles.h (struct objfile): Doc fix.
11532
d62d1979
AC
115332003-01-29 Andrew Cagney <ac131313@redhat.com>
11534
11535 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11536 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11537 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11538 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11539 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11540 (FRAME_SAVED_PC): Change to a function with predicate.
11541 * gdbarch.h, gdbarch.c: Re-generate.
11542
1ae18a04
AC
115432003-01-28 Andrew Cagney <ac131313@redhat.com>
11544
52287340
AC
11545 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11546
1ae18a04
AC
11547 * complaints.c (complain): Delete function.
11548 * complaints.h (struct deprecated_complaint): Delete definition.
11549 (complain): Delete declaration.
11550
f2c16bd6
KB
115512003-01-28 Kevin Buettner <kevinb@redhat.com>
11552
11553 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11554 dummy frames.
11555
a94dd1fd
AC
115562003-01-27 Andrew Cagney <ac131313@redhat.com>
11557
11558 * sentinel-frame.h, sentinel-frame.c: New files.
11559 * Makefile.in (frame.o): Update dependencies.
11560 (SFILES): Add sentinel-frame.c.
11561 (sentinel_frame_h): Define.
11562 (COMMON_OBS): Add sentinel-frame.o.
11563 (sentinel-frame.o): Specify dependencies.
11564 * frame.c: Include "sentinel-frame.h".
11565 (frame_register_unwind): Rewrite assuming that there is always a a
11566 ->next frame.
11567 (frame_register, generic_unwind_get_saved_register): Ditto.
11568 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11569 (create_sentinel_frame, unwind_to_current_frame): New functions.
11570 (get_current_frame): Rewrite using create_sentinel_frame and
11571 unwind_to_current_frame. When possible, always create a frame.
11572 (create_new_frame): Set next to the sentinel frame.
11573 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11574 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11575 ID cache when necessary.
11576 (frame_saved_regs_id_unwind): Use frame_relative_level.
11577 (deprecated_generic_get_saved_register): Use frame_relative_level,
11578 get_frame_saved_regs, get_frame_pc, get_frame_base and
11579 get_next_frame.
11580 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11581 frame_register.
11582
5378adc4
DJ
115832003-01-27 Daniel Jacobowitz <drow@mvista.com>
11584
11585 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11586
51ee2ddc
DJ
115872003-01-27 Daniel Jacobowitz <drow@mvista.com>
11588
11589 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11590 (maintenance_set_profile_cmd): Use error () instead of warning ().
11591
d9feb4e7
DJ
115922003-01-27 Daniel Jacobowitz <drow@mvista.com>
11593
11594 * configure.in: Check that -pg works if using --enable-profiling.
11595 Check for monstartup and _mcleanup regardless of --enable-profiling.
11596 * maint.c: Check for monstartup and _mcleanup before using them.
11597 * config.in: Regenerated.
11598 * configure: Regenerated.
11599
2d188dd3
NC
116002003-01-24 Nick Clifton <nickc@redhat.com>
11601
11602 * Add sh2e support:
11603
11604 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11605
11606 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11607 (sh2e_show_regs): New.
11608 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11609 * config/sh/tm-sh.h: Added sh2e to comments.
11610
cb3c37b2
JB
116112003-01-23 Jim Blandy <jimb@redhat.com>
11612
11613 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11614 symbols found)" message here; we haven't checked for a separate
11615 debug info file yet, so we don't know yet.
11616 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11617 we've looked everywhere. Also, there's no need to print a special
11618 message when we're loading the separate debug info file: the one
11619 symbol_file_add prints is fine.
11620
5b5d99cf
JB
116212003-01-23 Alexander Larsson <alexl@redhat.com>
11622 Jim Blandy <jimb@redhat.com>
11623
11624 Add support for executables whose debug info has been separated
11625 out into a separate file, leaving only a link behind.
11626 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11627 and separate_debug_objfile_backlink.
11628 (put_objfile_before): New declaration.
11629 * symfile.c: #include "filenames.h".
11630 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11631 debug info in a separate file, read that, too. Save the addrs
11632 argument, so we can use it again to read the separated debug info;
11633 syms_from_objfile modifies the table we pass it.
11634 (reread_symbols): After re-reading an objfile, call
11635 reread_separate_symbols to refresh its separate debug info
11636 objfile, if it has one.
11637 (reread_separate_symbols, find_separate_debug_file,
11638 get_debug_link_info, separate_debug_file_exists): New functions.
11639 (debug_file_directory): New global var.
11640 (_initialize_symfile): Initialize debug_file_directory, and
11641 provide the new `set debug-file-directory' command to let the user
11642 change it.
11643 * objfiles.c (free_objfile): If this objfile has its debug info in
11644 a separate objfile, free that one too. If this is itself a
11645 separate debug info objfile, clear our parent's backlink.
11646 (put_objfile_before): New function.
11647 * utils.c (gnu_debuglink_crc32): New function.
11648 * defs.h (gnu_debuglink_crc32): New declaration.
11649 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11650 * configure.in: Handle --with-separate-debug-dir config option.
11651 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11652 * acconfig.h (DEBUGDIR): New macro.
11653 * configure, aclocal.m4, config.in: Regenerated.
11654
7e8580c1
JB
116552003-01-22 Jim Blandy <jimb@redhat.com>
11656
7904e09f
JB
11657 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11658 like the old symbol_file_add, but taking new arguments: you can
11659 now pass in either a `struct section_addr_info' list to say where
11660 each section is loaded, or a `struct section_offsets' table. Pass
11661 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11662 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11663 with the appropriate quiescent values for the new arguments.
11664
7e8580c1
JB
11665 * symfile.c: #include "gdb_assert.h".
11666 (syms_from_objfile): Add the ability to pass in a section offset
11667 table directly, as an alternative to the section_addr_info table.
11668 Document arguments better.
11669 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11670 * symfile.h (syms_from_objfile): Update declaration.
11671 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11672 syms_from_objfile.
11673 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11674
d28f9cdf
DJ
116752003-01-22 Daniel Jacobowitz <drow@mvista.com>
11676
11677 Original patch by Tom Tromey <tromey@cygnus.com> and
11678 Jason Molenda <jmolenda@apple.com>.
11679 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11680 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11681 * NEWS: Mention profiling.
11682 * configure.in (--enable-gdbtk): Fix typo.
11683 (--enable-profiling): New. Set PROFILE_CFLAGS.
11684 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11685 Fill in function.
11686 (profiling_state): New variable.
11687 (mcleanup_wrapper): New function.
11688 (_initialize_maint): Remove NOTYET, fix call to
11689 add_setshow_boolean_cmd for "maint set profile".
11690 * configure: Regenerated.
11691
df21e465
MH
116922003-01-21 Martin M. Hunt <hunt@redhat.com>
11693
11694 * Makefile.in (install-gdbtk): Install PNG images too.
11695
73c1f219
AC
116962003-01-21 Andrew Cagney <ac131313@redhat.com>
11697
11698 * exec.c (text_start): Delete global variable.
11699 (exec_file_attach): Make text_start local to the function.
11700 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11701 * valops.c (hand_function_call): Delete code that handles
11702 BEFORE_TEXT_END and AFTER_TEXT_END.
11703 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11704 of CALL_DUMMY_LOCATION.
11705 * gdbarch.c: Regenerate.
11706 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11707 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11708 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11709 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11710 (text_end): Delete extern declaration.
11711
eb4f72c5
AC
117122003-01-21 Andrew Cagney <ac131313@redhat.com>
11713
11714 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11715 * blockframe.c (backtrace_below_main): Move to "frame.c".
11716 (frame_chain_valid): Delete check for backtrace_below_main.
11717 (_initialize_blockframe): Delete initialization, move ``set
11718 backtrace-below-main'' command to "frame.c".
11719 (do_flush_frames_sfunc): Delete function.
11720 * frame.c: Include "command.h" and "gdbcmd.h".
11721 (frame_type_from_pc): New function.
11722 (create_new_frame): Use frame_type_from_pc.
11723 (legacy_get_prev_frame): New function.
11724 (get_prev_frame): Rewrite. When an old style frame, call
11725 legacy_get_prev_frame. Otherwize, unwind the PC first.
11726 (_initialize_frame): Add ``set backtrace-below-main'' command.
11727 * Makefile.in (frame.o): Update dependencies.
11728
778ce8cc
AC
117292003-01-19 Andrew Cagney <ac131313@redhat.com>
11730
11731 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11732 DEPRECATED_REGISTERS_INFO.
11733
01c193c8
AC
117342003-01-19 Andrew Cagney <ac131313@redhat.com>
11735
11736 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11737 Maintainers'. Update `Various Maintainers'.
11738
dedc2a2b
AC
117392003-01-19 Andrew Cagney <ac131313@redhat.com>
11740
11741 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11742 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11743 Suppress actual parameters when `-'.
11744 * gdbarch.h, gdbarch.c: Regenerate.
11745
b7261c70
AC
117462003-01-19 Andrew Cagney <ac131313@redhat.com>
11747
11748 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11749 code handling dummy frames.
11750
dbe9fe58
AC
117512003-01-19 Andrew Cagney <ac131313@redhat.com>
11752
11753 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11754 (struct frame_unwind): Add field pop.
11755 * frame.h (frame_pop): Declare.
11756 * frame.c (frame_saved_regs_pop): New function.
11757 (trad_frame_unwinder): Add frame_saved_regs_pop.
11758 (frame_pop): New function.
11759 * dummy-frame.c (dummy_frame_pop): New function.
11760 (discard_innermost_dummy): New function.
11761 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11762 (dummy_frame_unwind): Add dummy_frame_pop.
11763 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11764 * valops.c (hand_function_call): Ditto.
11765 * stack.c (return_command): Ditto.
11766
570b8f7c
AC
117672003-01-18 Andrew Cagney <ac131313@redhat.com>
11768
11769 * cris-tdep.c: Fix function declaration indentation.
11770 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11771 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11772 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11773 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11774 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11775 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11776
117772003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11778
11779 * README (Unpacking and Installation -- quick overview):
11780 Warn against ".../gdb-5.3/gdb/configure".
11781
494cca16
AC
117822003-01-18 Andrew Cagney <ac131313@redhat.com>
11783
11784 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11785 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11786 (struct frame_unwind): Declare opaque.
11787 (dummy_frame_p): Declare function.
11788 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11789 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11790 * dummy-frame.c: Include "frame-unwind.h".
11791 (dummy_frame_p): New function.
11792 (dummy_frame_unwind): New variable.
11793 * frame.c: Include "frame-unwind.h".
11794 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11795 to use the new unwind field.
11796 (set_unwind_by_pc): Delete function.
11797 (create_new_frame, get_prev_frame): Set unwind field using
11798 frame_unwind_find_by_pc.
11799 (trad_frame_unwind, trad_frame_unwinder): New variables.
11800 * frame.h (trad_frame_unwind): Declare variable.
11801 (frame_id_unwind_ftype): Delete declaration.
11802 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11803 (struct frame_unwind): Declare opaque.
11804 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11805 register_unwind with a single unwind pointer.
11806 * frame-unwind.h, frame-unwind.c: New files.
11807 * Makefile.in (SFILES): Add frame-unwind.c.
11808 (frame_unwind_h): Define.
11809 (COMMON_OBS): Add frame-unwind.o.
11810 (frame-unwind.o): Specify dependencies.
11811 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11812
4efb68b1
AC
118132003-01-18 Andrew Cagney <ac131313@redhat.com>
11814
11815 * ada-valprint.c: Eliminate PTR.
11816 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11817 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11818 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11819 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11820 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11821 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11822 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11823
a84d24ee
AC
118242003-01-17 Andrew Cagney <ac131313@redhat.com>
11825
762f08a3
AC
11826 * main.c (captured_main): Don't use PTR.
11827 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11828 * gdbtypes.c (lookup_primitive_typename): Ditto.
11829 (lookup_struct_elt_type): Ditto.
11830 * f-valprint.c (info_common_command): Ditto.
11831 (list_all_visible_commons): Ditto.
11832 * jv-typeprint.c (java_type_print_base): Ditto.
11833
a84d24ee
AC
11834 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11835 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11836 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11837 i386-interix-nat.c and i386-interix-tdep.c. Rename
11838 m68klinux-nat.c and m68klinux-tdep.c. Rename
11839 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11840 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11841 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11842 * main.c (captured_main): Use xfree, not free.
11843
c170fb60
AC
118442003-01-16 Andrew Cagney <ac131313@redhat.com>
11845
11846 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11847 ID back using a parameter.
11848 * frame.c (frame_id_unwind): Update call.
11849 (frame_saved_regs_id_unwind): Update.
11850 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11851 * dummy-frame.h (struct frame_id): Add opaque declaration.
11852 (dummy_frame_id_unwind): Update declaration.
11853
867f3898
AC
118542003-01-15 Andrew Cagney <ac131313@redhat.com>
11855
11856 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11857
40622be8 118582003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11859
40622be8 11860 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11861
ae66c1fc
EZ
118622003-01-14 Elena Zannoni <ezannoni@redhat.com>
11863
997b089a 11864 Fix PR gdb/898
ae66c1fc
EZ
11865 * breakpoint.c (until_break_command): Add new argument. Use it to
11866 decide whether to stop only at the current frame or not.
11867 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11868 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11869 call.
11870 (advance_command): New function.
11871 (_initialize_infcmd): Update help string for 'until' command.
11872 Add new 'advance' command.
11873
a04257e6
DC
118742003-01-14 David Carlton <carlton@math.stanford.edu>
11875
11876 * linespec.c (decode_line_1): Normalize comments.
11877 (set_flags): Ditto.
11878 (locate_first_half): Ditto.
11879 (decode_compound): Ditto.
11880 (symtab_from_filename): Ditto.
11881 (decode_all_digits): Ditto.
11882 (decode_dollar): Ditto.
11883 (find_methods): Ditto.
11884 (find_toplevel_char): Ditto.
11885
1bac305b
AC
118862003-01-13 Andrew Cagney <ac131313@redhat.com>
11887
11888 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11889 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11890 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11891 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11892 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11893 * language.c, language.h, m32r-tdep.c: Update copyright.
11894 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11895 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11896 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11897 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11898 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11899 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11900
25caa7a8
EZ
119012003-01-13 Elena Zannoni <ezannoni@redhat.com>
11902
11903 * stabsread.h (process_later, resolve_cfront_continuation):
11904 Obsolete.
11905 Update copyright years.
11906 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11907 Update copyright year.
11908 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11909 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11910 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11911 Update copyright year.
11912 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11913 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11914 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11915 (parse_partial_symbols): Obsolete cfront support.
11916 * stabsread.c
11917 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11918 macros.
11919 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11920 read_cfront_baseclasses, read_cfront_member_functions,
11921 resolve_cfront_continuation,read_cfront_static_fields,
11922 copy_cfront_struct_fields): Obsolete functions.
11923 (define_symbol, read_one_struct_field): Obsolete cfront support.
11924 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11925 Update Copyright year.
11926
7789c6f5
EZ
119272003-01-13 Elena Zannoni <ezannoni@redhat.com>
11928
11929 * stack.c (print_frame_info, print_stack_frame_base_stub,
11930 print_stack_frame_base, show_and_print_stack_frame_stub,
11931 show_and_print_stack_frame, print_only_stack_frame_stub,
11932 print_only_stack_frame): Delete functions.
11933 (print_stack_frame_stub): Call print_frame_info instead of
11934 print_frame_info_base.
11935 (print_frame_info_base): Rename to print_frame_info.
11936 (backtrace_command_1): Call print_frame_info, instead of
11937 print_frame_info_base.
11938 (current_frame_command): Call print_stack_frame, instead of
11939 print_only_stack_frame.
11940 (frame_command): Call print_stack_frame, instead of
11941 show_and_print_stack_frame.
11942 (up_command): Ditto.
11943 (down_command): Ditto.
11944 * frame.h (print_only_stack_frame): Delete prototype.
11945 * infrun.c (normal_stop): Call print_stack_frame, instead of
11946 show_and_print_stack_frame.
11947 * thread.c (info_threads_command): Call print_stack_frame, instead
11948 of print_only_stack_frame.
11949
3f5a3016
AC
119502003-01-13 Andrew Cagney <ac131313@redhat.com>
11951
d99ba314
AC
11952 * README (Graphical interface to GDB): Update URL. Point at
11953 gdb/links/.
11954
3f5a3016
AC
11955 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11956 version match.
11957
083ae935
DJ
119582003-01-13 Daniel Jacobowitz <drow@mvista.com>
11959
11960 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11961 lines.
11962
5365276c
DJ
119632003-01-13 Daniel Jacobowitz <drow@mvista.com>
11964
11965 * thread-db.c (attach_thread): Prototype.
11966 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11967 thread information (ti), and valid flags (th_valid, ti_valid).
11968 (attach_thread): Move target_pid_to_str call to after the thread
11969 is added to GDB's list. Initialize the cache.
11970 (thread_get_info_callback, thread_db_map_id2thr)
11971 (thread_db_get_info): New functions.
11972 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11973 (thread_db_store_registers, thread_db_thread_alive)
11974 (thread_db_get_thread_local_address): Use them.
11975 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11976 of calling error() for threads in unknown state.
11977
11978 (clear_lwpid_callback): New function.
11979 (thread_db_resume): Use it to clear the cache.
11980
9fc30b6b
DJ
119812003-01-13 Daniel Jacobowitz <drow@mvista.com>
11982
11983 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11984 (resume_callback): Remove dead code.
11985
8f871025
AC
119862003-01-13 Andrew Cagney <ac131313@redhat.com>
11987
11988 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11989 predicate.
11990 * gdbarch.h, gdbarch.c: Regenerate.
11991 * stack.c (frame_info): Only initialize the saved registers when
11992 FRAME_INIT_SAVED_REGS_P.
11993 * frame.c (frame_saved_regs_register_unwind): Assert
11994 FRAME_INIT_SAVED_REGS_P.
11995 (deprecated_generic_get_saved_register): Ditto.
11996
3f565f1e
DJ
119972003-01-13 Daniel Jacobowitz <drow@mvista.com>
11998
11999 * source.c (openp): Squelch warning about "filename".
12000
072b1022
DJ
120012003-01-13 Daniel Jacobowitz <drow@mvista.com>
12002
12003 * source.c (openp): If the file does not exist don't necessarily
12004 search the path.
12005
973ccf8b
DJ
120062003-01-13 Daniel Jacobowitz <drow@mvista.com>
12007
12008 Fix PR gdb/872.
12009 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12010 (integer_types_same_name_p): New function.
12011 (rank_one_type): Use it.
12012 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12013
030292b7
DJ
120142003-01-13 Daniel Jacobowitz <drow@mvista.com>
12015
12016 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12017 variables.
12018 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12019 * configure.in: Add --with-sysroot.
12020 * configure: Regenerated.
12021 * main.c (gdb_sysroot): New variable.
12022 (captured_main): Initialize gdb_sysroot.
12023 * defs.h (gdb_sysroot): New extern declaration.
12024 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12025
afb5d334
MC
120262003-01-12 Michael Chastain <mec@shout.net>
12027
12028 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12029
751ceeb4
MC
120302003-01-12 Michael Chastain <mec@shout.net>
12031
12032 * top.c (print_gdb_version): Bump copyright year to 2003.
12033
94cd26f8
DC
120342003-01-12 David Carlton <carlton@bactrian.org>
12035
12036 * linespec.c (symtab_from_filename): Rename variable 's' to
12037 'file_symtab'.
12038
1ce79225
AC
120392003-01-12 Andrew Cagney <ac131313@redhat.com>
12040
12041 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12042 dummy frame.
12043 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12044
fa1fd571
AC
120452003-01-12 Andrew Cagney <ac131313@redhat.com>
12046
12047 * d10v-tdep.c: Include "gdb_assert.h".
12048 (d10v_store_return_value): Rewrite to match current interface.
12049 (d10v_extract_struct_value_address): Ditto.
12050 (d10v_extract_return_value): Ditto.
12051 (d10v_gdbarch_init): Set store_restore_value,
12052 extract_struct_value_address and extract_return_value.
12053
68b8d23e
JB
120542003-01-12 J. Brobecker <brobecker@gnat.com>
12055
12056 * hpread.c (set_namestring): New procedure replacing the
12057 SET_NAMESTRING macro.
12058 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12059 by calls to set_namestring.
12060
120612003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12062
12063 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12064 a compilation warning.
12065 (hpread_process_one_debug_symbol): Likewise.
12066
88d262ca
DC
120672003-01-10 David Carlton <carlton@math.stanford.edu>
12068
12069 * linespec.c (decode_line_1): Rename variable 's' to
12070 'file_symtab'.
12071 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12072 (decode_dollar): Ditto.
12073 (decode_variable): Ditto.
12074 (symbol_found): Ditto.
12075
86669319
MC
120762003-01-09 Michael Chastain <mec@shout.net>
12077
12078 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12079
616a9dc4
CV
120802003-01-07 Corinna Vinschen <vinschen@redhat.com>
12081
12082 * win32-nat.c (set_process_privilege): New function.
12083 (child_attach): Call set_process_privilege() to enable the
12084 SE_DEBUG_NAME user privilege if available in process token.
12085
3269bcfa
JB
120862003-01-10 J. Brobecker <brobecker@gnat.com>
12087
12088 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12089 compilation error in the previous revision.
12090
2b0ee454
DC
120912003-01-09 David Carlton <carlton@math.stanford.edu>
12092
12093 * linespec.c: Update copyright.
12094
b3ba1b44
DJ
120952003-01-09 Daniel Jacobowitz <drow@mvista.com>
12096
12097 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12098 than inferior_ptid.
12099 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12100
4ef3f3be
AC
121012003-01-09 Andrew Cagney <ac131313@redhat.com>
12102
479ab5a0
AC
12103 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12104 Update comments.
12105 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12106 (frame_saved_regs_zalloc): Update.
12107 (frame_saved_regs_register_unwind): Update.
12108 (create_new_frame): Update.
12109 (get_prev_frame): Update.
12110 (frame_extra_info_zalloc): Update.
12111 (deprecated_get_frame_saved_regs): Update.
12112 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12113 * cris-tdep.c: Update comment.
12114
bde58177
AC
12115 * somsolib.h: Fix function indentation.
12116 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12117 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12118 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12119 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12120 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12121
4ef3f3be
AC
12122 * infrun.c (follow_fork): Use ISO C definition.
12123 * expprint.c (print_subexp): Use xfree instead of free.
12124 * charset.c: Include "gdb_string.h" instead of <string.h>.
12125 (register_iconv_charsets): Use ISO C definition.
12126 (host_charset, target_charset): Ditto.
12127 * Makefile.in (charset.o): Update dependencies.
12128 (mi-cmd-env.o): Update dependencies.
12129
1c615f7a
AC
121302003-01-08 Andrew Cagney <cagney@redhat.com>
12131
12132 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12133 get_frame_base.
12134
c9a1dc08
AC
121352003-01-08 Andrew Cagney <ac131313@redhat.com>
12136
12137 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12138 build directories. Save edited gdb output in Mbuild.log. If a
12139 build fails, remove any final GDB executable.
12140
dbad9d94
AC
121412003-01-08 Andrew Cagney <ac131313@redhat.com>
12142
12143 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12144 replacing hex constants with function names and stripping leading
12145 file name directory prefixes.
12146
8d357cca
AC
121472003-01-08 Andrew Cagney <cagney@redhat.com>
12148
12149 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12150 get_frame_base.
12151
bca02a8a
DC
121522003-01-08 David Carlton <carlton@math.stanford.edu>
12153
12154 * linespec.c (decode_line_1): Move code into decode_variable.
12155 (decode_variable): New function.
12156
7f8ab3a0
AC
121572003-01-08 Andrew Cagney <ac131313@redhat.com>
12158
12159 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12160
7b5849cc
AC
121612003-01-08 Andrew Cagney <cagney@redhat.com>
12162
12163 * cris-tdep.c (cris_frame_init_saved_regs): Use
12164 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12165 saved_regs buffer.
12166 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12167 (sh64_nofp_frame_init_saved_regs): Ditto.
12168 (sh_fp_frame_init_saved_regs): Ditto.
12169 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12170 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12171 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12172 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12173
72a5efb3
DJ
121742003-01-08 Daniel Jacobowitz <drow@mvista.com>
12175
12176 * minsyms.c (lookup_minimal_symbol): Update comment.
12177 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12178 (lookup_minimal_symbol_solib_trampoline): Likewise.
12179
11c02a10
AC
121802003-01-08 Andrew Cagney <cagney@redhat.com>
12181
aab3ea25
AC
12182 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12183 frame_relative_level.
12184
da50a4b7
AC
12185 * alpha-tdep.c: Use get_frame_extra_info.
12186 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12187 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12188 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12189 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12190
11c02a10
AC
12191 * alpha-tdep.c: Use get_next_frame.
12192 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12193 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12194 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12195 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12196 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12197 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12198 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12199
1e2330ba
AC
122002003-01-07 Andrew Cagney <cagney@redhat.com>
12201
12202 * alpha-tdep.c: Use get_frame_base.
12203 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12204 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12205 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12206 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12207 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12208 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12209 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12210 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12211
2d75187b
AC
122122003-01-07 Andrew Cagney <cagney@redhat.com>
12213
12214 * frame.c (deprecated_get_frame_context): New function.
12215 (deprecated_set_frame_context): New function.
12216 * frame.h (deprecated_get_frame_context): Declare.
12217 (deprecated_set_frame_context): Declare.
12218 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12219 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12220
483d36b2
AC
122212003-01-07 Andrew Cagney <cagney@redhat.com>
12222
12223 * frame.c (deprecated_set_frame_next_hack): New function.
12224 (deprecated_set_frame_prev_hack): New function.
12225 * frame.h (deprecated_set_frame_next_hack): Declare.
12226 (deprecated_set_frame_prev_hack): Declare.
12227 * mcore-tdep.c (analyze_dummy_frame): Use
12228 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12229 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12230
14e91ac5
DC
122312003-01-07 David Carlton <carlton@math.stanford.edu>
12232
12233 * linespec.c (decode_line_1): Move code into decode_dollar.
12234 (decode_dollar): New function.
12235
b0c6b05c
AC
122362003-01-07 Andrew Cagney <cagney@redhat.com>
12237
12238 * arm-tdep.c (arm_init_extra_frame_info): Use
12239 deprecated_update_frame_base_hack.
12240 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12241 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12242 (fix_frame_pointer): Ditto.
12243 (mn10300_analyze_prologue): Ditto.
12244
a00a19e9
AC
122452003-01-07 Andrew Cagney <cagney@redhat.com>
12246
12247 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12248 extra_info using frame_extra_info_zalloc.
12249 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12250 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12251 (sh64_init_extra_frame_info): Ditto.
12252 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12253 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12254 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12255 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12256 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12257 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12258 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12259 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12260 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12261 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12262 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12263 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12264
12265 * mn10300-tdep.c (analyze_dummy_frame): Use
12266 deprecated_set_frame_extra_info_hack.
12267 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12268
1fb4c65b
JB
122692003-01-07 J. Brobecker <brobecker@gnat.com>
12270
12271 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12272 class is not scText. These do not define "real" procedures.
12273 (parse_partial_symbols): Likewise.
12274
9fe7d6bf
MS
122752003-01-06 Michael Snyder <msnyder@redhat.com>
12276
12277 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12278
f6c609c4
AC
122792003-01-06 Andrew Cagney <ac131313@redhat.com>
12280
12281 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12282 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12283 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12284 deprecated_frame_xmalloc_with_cleanup.
12285 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12286 deprecated_frame_xmalloc.
12287 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12288 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12289
d995ff4b
AC
122902003-01-06 Andrew Cagney <cagney@redhat.com>
12291
84dc46cb
AC
12292 * x86-64-linux-tdep.c: Include "osabi.h".
12293 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12294
d995ff4b
AC
12295 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12296
66140c26
AC
122972003-01-06 Andrew Cagney <cagney@redhat.com>
12298
12299 * MAINTAINERS (Target Instruction Set Architectures): Update
12300 arm-elf. Can be built with -Werror, has been multiarched.
12301
12302 * value.h (unpack_long): Make buffer parameter constant.
12303 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12304 * scm-lang.h (scm_parse): Ditto.
12305 * defs.h (extract_typed_address, extract_address): Ditto.
12306 (extract_long_unsigned_integer): Ditto.
12307 * inferior.h (unsigned_pointer_to_address): Ditto.
12308 (signed_pointer_to_address): Ditto.
12309 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12310 * gdbarch.h, gdbarch.c: Regenerate.
12311 * findvar.c (extract_long_unsigned_integer): Update.
12312 (extract_address): Update.
12313 (extract_typed_address): Update.
12314 (unsigned_pointer_to_address): Update.
12315 * values.c (unpack_long): Update.
12316 (unpack_double): Update.
12317 (unpack_pointer): Update.
12318 (unpack_field_as_long): Update.
12319 * d10v-tdep.c (d10v_pointer_to_address): Update.
12320 * avr-tdep.c (avr_pointer_to_address): Update.
12321 * scm-lang.c (scm_unpack): Update.
12322 * findvar.c (signed_pointer_to_address): Update.
12323
b089b3da
ML
123242003-01-06 Michal Ludvig <mludvig@suse.cz>
12325
8ffd9b1b 12326 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12327 since it is in i386-tdep.c.
12328
aff87235
JB
123292003-01-06 J. Brobecker <brobecker@gnat.com>
12330
12331 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12332 failure introduced in the previous change.
12333
34f5e845
MC
123342003-01-05 Michael Chastain <mec@shout.net>
12335
12336 * README: Remove references to deleted remote-*.c files:
12337 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12338 remote-nrom.c, remote-os9k.c, remote-udi.c.
12339
28bcfd30
MK
123402003-01-05 Mark Kettenis <kettenis@gnu.org>
12341
12342 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12343 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12344 i386_get_longjmp_target.
12345
15a5b3ee
AC
123462003-01-05 Andrew Cagney <ac131313@redhat.com>
12347
12348 * arm-tdep.c (prologue_cache): Change to a pointer.
12349 (_initialize_arm_tdep): Allocate prologue_cache.
12350 (check_prologue_cache): Update.
12351 (save_prologue_cache): Update.
12352 (arm_gdbarch_init): Update.
12353
c263362b
DJ
123542003-01-04 Daniel Jacobowitz <drow@mvista.com>
12355
12356 * stabsread.c (update_method_name_from_physname): Call complaint()
12357 instead of error.
12358
51603483
DJ
123592003-01-04 Daniel Jacobowitz <drow@mvista.com>
12360
12361 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12362 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12363 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12364
12365 * blockframe.c: Include "gdbcmd.h" and "command.h".
12366 (backtrace_below_main): New variable.
12367 (file_frame_chain_valid, func_frame_chain_valid)
12368 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12369 (generic_func_frame_chain_valid): Remove functions.
12370 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12371 (_initialize_blockframe): New function.
12372 * Makefile.in (blockframe.o): Update dependencies.
12373 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12374 comment. Call frame_chain_valid ().
12375 * frame.h: Remove old prototypes. Add prototype for
12376 frame_chain_valid and update comments to match.
12377 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12378 Remove old comment.
12379 * gdbarch.h: Regenerated.
12380 * gdbarch.c: Regenerated.
12381
12382 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12383 set_gdbarch_frame_chain_valid.
12384 * avr-tdep.c (avr_gdbarch_init): Likewise.
12385 * cris-tdep.c (cris_gdbarch_init): Likewise.
12386 * frv-tdep.c (frv_gdbarch_init): Likewise.
12387 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12388 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12389 (i386_nw_init_abi): Likewise.
12390 (i386_gdbarch_init): Likewise.
12391 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12392 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12393 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12394 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12395 * mips-tdep.c (mips_gdbarch_init): Likewise.
12396 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12397 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12398 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12399 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12400 * s390-tdep.c (s390_gdbarch_init): Likewise.
12401 * sh-tdep.c (sh_gdbarch_init): Likewise.
12402 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12403 * v850-tdep.c (v850_gdbarch_init): Likewise.
12404 * vax-tdep.c (vax_gdbarch_init): Likewise.
12405 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12406
12407 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12408 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12409 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12410 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12411 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12412 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12413 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12414 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12415
b00a8037
DJ
124162002-01-04 Daniel Jacobowitz <drow@mvista.com>
12417
12418 * Makefile.in (acconfig_h): Remove incorrect macro.
12419 (config_h): Define.
12420 (osabi.o): Update dependencies.
12421 * configure.tgt: Set gdb_osabi based on target triplet.
12422 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12423 * configure: Regenerated.
12424 * config.in: Regenerated.
12425 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12426 (GDB_OSABI_DEFAULT): Define if not already defined.
12427 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12428 (set_osabi_string): New variables.
12429 (gdbarch_register_osabi): Add new OS ABI to
12430 gdb_osabi_available_names.
12431 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12432 (set_osabi, show_osabi): New functions.
12433 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12434
4be87837
DJ
124352003-01-04 Daniel Jacobowitz <drow@mvista.com>
12436
12437 * arch-utils.c (gdbarch_info_init): Set osabi to
12438 GDB_OSABI_UNINITIALIZED.
12439 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12440 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12441 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12442 * gdbarch.c: Regenerated.
12443 * gdbarch.h: Regenerated.
12444 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12445 there's no BFD.
12446 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12447 * osabi.h (enum gdb_osabi): Move to defs.h.
12448 (gdbarch_init_osabi): Update prototype.
12449 * defs.h (enum gdb_osabi): Moved here.
12450 * Makefile.in: Update dependencies.
12451
12452 * alpha-tdep.h: Don't include "osabi.h".
12453 (struct gdbarch_tdep): Remove osabi member.
12454 * alpha-tdep.c: Include "osabi.h".
12455 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12456 iterate over arches. Update call to gdbarch_init_osabi.
12457 (alpha_dump_tdep): Don't dump osabi.
12458 * alpha-linux-tdep.c: Include "osabi.h".
12459 * alpha-osf1-tdep.c: Include "osabi.h".
12460 * alphafbsd-tdep.c: Include "osabi.h".
12461 * alphanbsd-tdep.c: Include "osabi.h".
12462
12463 * arm-tdep.h: Don't include "osabi.h".
12464 (struct gdbarch_tdep): Remove osabi member.
12465 * arm-tdep.c: Include "osabi.h".
12466 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12467 iterate over arches. Update call to gdbarch_init_osabi.
12468 (arm_dump_tdep): Don't dump osabi.
12469 * arm-linux-tdep.c: Include "osabi.h".
12470 * armnbsd-tdep.c: Include "osabi.h".
12471
12472 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12473 Update call to gdbarch_init_osabi.
12474
12475 * i386-tdep.h: Don't include "osabi.h".
12476 (struct gdbarch_tdep): Remove osabi member.
12477 * i386-tdep.c: Include "osabi.h".
12478 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12479 iterate over arches. Update call to gdbarch_init_osabi.
12480 (i386_dump_tdep): Don't dump osabi.
12481 * i386-linux-tdep.c: Include "osabi.h".
12482 * i386-sol2-tdep.c: Include "osabi.h".
12483 * i386bsd-tdep.c: Include "osabi.h".
12484 * i386gnu-tdep.c: Include "osabi.h".
12485 * i386ly-tdep.c: Include "osabi.h".
12486 * i386nbsd-tdep.c: Include "osabi.h".
12487 * i386obsd-tdep.c: Include "osabi.h".
12488
12489 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12490 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12491 check osabi when iterating over arches. Update call to
12492 gdbarch_init_osabi.
12493 (mips_dump_tdep): Don't dump osabi.
12494
12495 * ns32k-tdep.h: Don't include "osabi.h".
12496 (struct gdbarch_tdep): Remove.
12497 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12498 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12499 allocate tdep. Update call to gdbarch_init_osabi.
12500 (ns32k_dump_tdep): Remove.
12501 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12502 * ns32knbsd-tdep.c: Include "osabi.h".
12503
12504 * ppc-tdep.h: Don't include "osabi.h".
12505 (struct gdbarch_tdep): Remove osabi member.
12506 * rs6000-tdep.c: Include "osabi.h".
12507 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12508 osabi when iterating over arches. Update call to
12509 gdbarch_init_osabi.
12510 (rs6000_dump_tdep): Don't dump osabi.
12511 * ppc-linux-tdep.c: Include "osabi.h".
12512 * ppcnbsd-tdep.c: Include "osabi.h".
12513
12514 * sh-tdep.h: Don't include "osabi.h".
12515 (struct gdbarch_tdep): Remove osabi member.
12516 * sh-tdep.c: Include "osabi.h".
12517 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12518 iterate over arches. Update call to gdbarch_init_osabi.
12519 (sh_dump_tdep): Don't dump osabi.
12520 * shnbsd-tdep.c: Include "osabi.h".
12521
12522 * sparc-tdep.c: Include "osabi.h".
12523 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12524 iterate over arches. Update call to gdbarch_init_osabi.
12525 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12526 tdep structure.
12527
12528 * vax-tdep.h: Don't include "osabi.h".
12529 (struct gdbarch_tdep): Remove.
12530 * vax-tdep.c: Include "osabi.h".
12531 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12532 iterate over arches. Don't allocate tdep. Update call
12533 to gdbarch_init_osabi.
12534 (vax_dump_tdep): Remove.
12535 (_initialize_vax_tdep): Update call to gdbarch_register.
12536
a881cf8e
DJ
125372003-01-04 Daniel Jacobowitz <drow@mvista.com>
12538
12539 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12540 entirely.
12541 (breakpoint_re_set_one): Don't fetch the value for a disabled
12542 watchpoint.
12543
1e698235
DJ
125442003-01-04 Daniel Jacobowitz <drow@mvista.com>
12545
12546 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12547 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12548 (COERCE_FLOAT_TO_DOUBLE): Remove.
12549 * gdbarch.c: Regenerate.
12550 * gdbarch.h: Regenerate.
12551 * Makefile.in: Remove value_h from gdbarch_h.
12552 * valops.c (coerce_float_to_double): New variable.
12553 (default_coerce_float_to_double): Remove.
12554 (standard_coerce_float_to_double): Remove.
12555 (value_arg_coerce): Use coerce_float_to_double.
12556 (_initialize_valops): Add "set coerce-float-to-double".
12557 * value.h (default_coerce_float_to_double): Remove prototype.
12558 (standard_coerce_float_to_double): Remove prototype.
12559
12560 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12561 prototyped.
12562 * mdebugread.c (parse_symbol): Likewise.
12563 * stabsread.c (define_symbol): Mark all functions as prototyped.
12564
12565 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12566 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12567 set_gdbarch_coerce_float_to_double.
12568 * arm-tdep.c (arm_gdbarch_init): Likewise.
12569 * frv-tdep.c (frv_gdbarch_init): Likewise.
12570 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12571 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12572 * mips-tdep.c (mips_gdbarch_init): Likewise.
12573 (mips_coerce_float_to_double): Remove.
12574 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12575 (rs6000_coerce_float_to_double): Remove.
12576 * s390-tdep.c (s390_gdbarch_init): Likewise.
12577 * sh-tdep.c (sh_gdbarch_init): Likewise.
12578 (sh_coerce_float_to_double): Remove.
12579 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12580 (sparc_coerce_float_to_double): Remove.
12581 * v850-tdep.c (v850_gdbarch_init): Likewise.
12582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12583 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12584 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12585 (hppa_coerce_float_to_double): Remove prototype.
12586 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12587
f436a26a
DJ
125882003-01-04 Daniel Jacobowitz <drow@mvista.com>
12589
12590 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12591
248f8055
DJ
125922003-01-04 Daniel Jacobowitz <drow@mvista.com>
12593
12594 Suggested by Stewart Brown <sb24@avaya.com>:
12595 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12596 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12597 (c_type_print_varspec_suffix): Likewise.
12598
72cfdc76
MK
125992003-01-04 Mark Kettenis <kettenis@gnu.org>
12600
bfd260bb
MK
12601 * configure.in: Don't set and AC_SUBST SUBDIRS.
12602 * configure: Regenerated.
12603
72cfdc76
MK
12604 * configure.in: Remove code dealing with shared libraries.
12605 * Makefile.in: Remove HLDFLAGS and HLDENV.
12606 * configure: Regenerated.
12607
c8b8a898
AC
126082003-01-04 Andrew Cagney <ac131313@redhat.com>
12609
12610 * frame.c (deprecated_frame_xmalloc): New function.
12611 (deprecated_set_frame_saved_regs_hack): New function.
12612 (deprecated_set_frame_extra_info_hack): New function.
12613 * frame.h (deprecated_frame_xmalloc): Declare.
12614 (deprecated_set_frame_saved_regs_hack): Declare.
12615 (deprecated_set_frame_extra_info_hack): Declare.
12616
14abd0fb
MK
126172003-01-04 Mark Kettenis <kettenis@gnu.org>
12618
8ee53726
MK
12619 * configure.in: Move code that provides the --enable-gdbtk option
12620 right after the code that handles the --enable-tui option, and
12621 polish it somewhat.
12622 * configure: Regenerated.
12623
14abd0fb
MK
12624 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12625 AC_CHECK_FUNCS and remove the old check for pread64.
12626 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12627 * acconfig.h (_GNU_SOURCE): Add.
12628 (HAVE_PREAD64): Remove.
12629 * configure, aclocal.m4, config.in: Regenerated.
12630
b2fb4676
AC
126312003-01-03 Andrew Cagney <ac131313@redhat.com>
12632
12633 * alpha-tdep.c: Use get_frame_saved_regs.
12634 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12635 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12636 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12637 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12638 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12639
8dcde887
MK
126402003-01-03 Mark Kettenis <kettenis@gnu.org>
12641
12642 * configure.in: Remove all use of the SUBDIRS variable; add
12643 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12644 code providing the --enable-multi-ice option, and move it right in
12645 front of the code that checks whether gdbserver is supported.
12646 Polish that too.
12647 * configure: Regenerated.
12648 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12649 @SUBDIRS@.
12650
8ccd593b
AC
126512003-01-03 Andrew Cagney <cagney@redhat.com>
12652
12653 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12654 * avr-tdep.c, cris-tdep.c: Ditto.
12655 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12656 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12657
91151a06
MK
126582003-01-03 Mark Kettenis <kettenis@gnu.org>
12659
12660 * configure.in: Remove --enable-netrom option.
12661 * configure: Regenerated.
12662
8fe84d01
MK
126632003-01-03 Mark Kettenis <kettenis@gnu.org>
12664
12665 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12666 declaration for `struct re_pattern_buffer' instead.
12667 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12668
f0394be6
JB
126692003-01-03 J. Brobecker <brobecker@gnat.com>
12670
12671 * mdebugread.c (parse_symbol): Count until the stEnd matching
12672 the structure name.
12673
27e9bf90
MK
126742003-01-02 Mark Kettenis <kettenis@gnu.org>
12675
93d331ba
MK
12676 * configure.in: Remove --with-cpu option.
12677 subscripts. Remove evil changequotes here.
12678 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12679 * config.in, configure: Regenerated.
8ffd9b1b 12680
27e9bf90
MK
12681 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12682 * configure.in: Cleanup section that sources GDB and BFD configure
12683 subscripts. Remove evil changequotes here.
12684 * config.in, configure: Regenerated.
12685
50abf9e5
AC
126862003-01-02 Andrew Cagney <ac131313@redhat.com>
12687
12688 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12689 frame accessor methods.
12690 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12691 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12692 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12693 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12694 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12695 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12696 * z8k-tdep.c: Ditto.
8ffd9b1b 12697
287c1a40
MK
126982003-01-02 Mark Kettenis <kettenis@gnu.org>
12699
f5dbc56d
MK
12700 * configure.in: Remove UI_OUT configuration code.
12701 * ada-lang.c: Update assuming UI_OUT is always true.
12702 * Makefile.in (UIOUT_CFLAGS): Remove.
12703 * configure: Regenerated.
12704 * TODO: Remove blurb about elimination of -DUI_OUT.
12705
627af7ea
MK
12706 * configure.in: Move code that provides the --enable-gdbcli,
12707 --enable-gdbmi options right before the code that handles the
12708 --enable-tui option. Polish a bit.
12709 * configure: Regenerated.
12710
06825bd1
MK
12711 * configure.in: Rewrite check for GNU regex and the
12712 --without-included regex option, and move it into the "Checks for
12713 library functions" section. This makes us use the system regex
12714 again by default on systems with version 2 of the GNU C library.
12715 This was apparently broken.
12716 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12717 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12718 * config.in, configure: Regenerated.
12719
287c1a40
MK
12720 * configure.in: Move code that provides the --enable-tui option
12721 before the "Checks for libraries" section. Polish the code
12722 somewhat and set need_curses to yes if we build the TUI. Rewrite
12723 code that looks for a library providing termcap functionality to
12724 match more closely what's done in the Readline library, and move
12725 it into to the "Checks for libraries" section.
12726 * configure: Regenerated.
12727 * Makefile.in (TERMCAP): Remove variable.
12728 * config/i386/go32.mh (TERMCAP): Remove variable.
12729
684e56bf
AC
127302003-01-02 Andrew Cagney <ac131313@redhat.com>
12731
12732 * MAINTAINERS: Mention gdb_mbuild.sh.
12733 * gdb_mbuild.sh: Rewrite.
12734
e1ea1d75
MK
127352003-01-02 Mark Kettenis <kettenis@gnu.org>
12736
12737 * configure.in: Fix typo in last change.
12738 * config.in, configure: Regenerated.
12739
1b831c93
AC
127402003-01-02 Andrew Cagney <ac131313@redhat.com>
12741
12742 * valarith.c (value_binop): Delete obsolete code and comments.
12743 * configure.host: Ditto.
12744 * buildsym.h (make_blockvector): Ditto.
12745 * buildsym.c (make_blockvector): Ditto.
12746 * defs.h (enum language): Ditto.
12747 (chill_demangle): Ditto.
12748 * elfread.c (elf_symtab_read): Ditto.
12749 * dwarfread.c (CHILL_PRODUCER): Ditto.
12750 (set_cu_language): Ditto.
12751 (handle_producer): Ditto.
12752 * expprint.c (print_subexp): Ditto.
12753 * gdbtypes.c (chill_varying_type): Ditto.
12754 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12755 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12756 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12757 (chill_varying_type): Ditto.
12758 * language.h (_LANG_chill): Ditto.
12759 * language.c (binop_result_type, integral_type): Ditto.
12760 (character_type, string_type, structured_type): Ditto.
12761 (lang_bool_type, binop_type_check): Ditto.
12762 * stabsread.h (os9k_stabs): Ditto.
12763 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12764 (define_symbol, read_type, read_struct_fields): Ditto.
12765 (read_array_type, read_enum_type, read_huge_number): Ditto.
12766 (read_range_type, start_stabs): Ditto.
12767 * symfile.c (init_filename_language_table): Ditto.
12768 (add_psymbol_with_dem_name_to_list): Ditto.
12769 * symtab.c (symbol_init_language_specific): Ditto.
12770 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12771 * symtab.h (struct general_symbol_info): Ditto.
12772 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12773 * typeprint.c (typedef_print): Ditto.
12774 * utils.c (fprintf_symbol_filtered): Ditto.
12775 * valops.c (value_cast, search_struct_field, value_slice): Delete
12776 obsolete code.
12777 (varying_to_slice): Delete function.
12778 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12779 (varying_to_slice): Delete declaration.
12780 * MAINTAINERS: Update.
12781
8bb2c122
MK
127822003-01-02 Mark Kettenis <kettenis@gnu.org>
12783
97bf5e38
MK
12784 * configure.in: Reorganize "Checks for library functions section"
12785 a bit. Remove check for `btowc' and `isascii' functions.
12786 * configure: Regenerated.
12787
5ee754fc
MK
12788 * acconfig.h (_MSE_INT_H): Remove.
12789 * configure.in: Create "Checks for header files" section, and move
12790 appropriate tests there. Don't check for objlist.h, wchar.h,
12791 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12792 misdetection fix. Also add "Checks for types", "Checks for
12793 compiler characteristics" and "Checks for library functions"
12794 sections.
12795 * config.in, configure: Regenerated.
12796
8bb2c122
MK
12797 * configure.in: Create "Checks for programs" section, and move
12798 appropriate tests there.
12799
9a156167
MK
128002003-01-01 Mark Kettenis <kettenis@gnu.org>
12801
12802 * configure.in: Create "Checks for libraries" section, and move
12803 appropriate tests there. Cleanup check for wctype in libw. Use
12804 AC_SEARCH_LIBS to see whether we need libsocket.
12805 * configure: Regenerated.
12806
a80e2bcb 12807For older changes see ChangeLog-2002
c906108c
SS
12808\f
12809Local Variables:
12810mode: change-log
12811left-margin: 8
12812fill-column: 74
12813version-control: never
12814End:
This page took 1.265944 seconds and 4 git commands to generate.