* gdb.threads/switch-threads.exp: New test.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0f317a0c
DJ
12003-10-09 Daniel Jacobowitz <drow@mvista.com>
2
3 * remote-mips.c (mips_initialize): Remove unneeded call to
4 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
5
bbab2f46
DJ
62003-10-09 Daniel Jacobowitz <drow@mvista.com>
7
8 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
9 a memory pointer.
10
550950b8
JJ
112003-10-08 Jeff Johnston <jjohnstn@redhat.com>
12
13 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
14 for any lwp we resume.
15 (running_callback): Add lwps that have pending status events
16 against them to be considered running.
17
15c69bc7
KI
182003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
19
20 * m32r-tdep.c : Include "dis-asm.h".
21 * Makefile.in (m32r-tdep.o): Update dependencies.
22
51065942
JB
232003-10-06 J. Brobecker <brobecker@gnat.com>
24
25 * completer.h (get_gdb_completer_word_break_characters): Delete.
26 * completer.c: include language.h.
27 (gdb_completer_word_break_characters): Delete.
28 (get_gdb_completer_word_break_characters): Delete.
29 (location_completer): Use the word break characters of the current
30 language.
31 (complete_line): Likewise.
32 (line_completion_function): Likewise.
33 (skip_quoted_chars): Likewise.
34 * Makefile.in (completer.o): Add dependency on language.h.
35 * top.c (init_main): Set the readline word break characters
36 to GDB's default word break characters.
37
6084f43a
JB
382003-10-06 J. Brobecker <brobecker@gnat.com>
39
40 * language.h (language_defn): new field, la_word_break_characters.
41 * language.c (unknown_language_defn): Set new field to
42 default_word_break_characters.
43 (auto_language_defn): Likewise.
44 (local_language_defn): Likewise.
45 * ada-lang.c (ada_language_defn): Likewise.
46 * c-lang.c (c_language_defn): Likewise.
47 (cplus_language_defn): Likewise.
48 (asm_language_defn): Likewise.
49 (minimal_language_defn): Likewise.
50 * f-lang.c (f_language_defn): Likewise.
51 * jv-lang.c (java_language_defn): Likewise.
52 * m2-lang.c (m2_language_defn): Likewise.
53 * objc-lang.c (objc_language_defn): Likewise.
54 * p-lang.c (pascal_language_defn): Likewise.
55 * scm-lang.c (scm_language_defn): Likewise.
56
944fcfab
AC
572003-10-06 Andrew Cagney <cagney@redhat.com>
58
59 * ppc-sysv-tdep.c: Re-indent.
60
9f0a5303
JB
612003-10-06 J. Brobecker <brobecker@gnat.com>
62
63 * language.h (default_word_break_characters): Add prototype.
64 * language.c (default_word_break_characters): New function.
65
7270b6ed
AS
662003-10-06 Andreas Schwab <schwab@suse.de>
67
68 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
69 with %eax.
70
a5d61f66
AC
712003-10-06 Andrew Cagney <cagney@redhat.com>
72
73 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
74 "h8500-tdep.c".
75 (z8k-tdep.o): Delete custom build rule.
76
28a86f5c
AC
772003-10-06 Andrew Cagney <cagney@redhat.com>
78
1bfd8a83
AC
79 * Makefile.in: Update all dependencies.
80
17144ef8
AC
81 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
82 No longer list PA as as obsolete candidate. List m32r as
83 broken instead of obsolete.
84
a5679ae5
AC
85 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
86 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
87 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
88 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
89 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
90 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
91 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
92 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
93 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
94 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
95 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
96 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
97 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
98 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
99 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
100 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
101 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
102 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
103 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
104 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
105 * config/z8k/z8k.mt: Ditto.
106
4a8269c0
AC
107 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
108 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
109 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
110 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
111 sparclite were removed.
112 * configure.host, configure.tgt: Remove corresponding tuples.
113
41989fcd
AC
114 * breakpoint.c, breakpoint.h: Remove obsolete code.
115 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
116 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
117 * stabsread.h, xcoffread.c: Ditto.
118
28a86f5c
AC
119 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
120 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
121 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
122 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
123
4efdaa0d
DL
1242003-10-06 David Lecomber <dsl@sources.redhat.com>
125
126 * f-valprint.c: Reformatting
127
ae53de43
MK
1282003-10-06 Mark Kettenis <kettenis@gnu.org>
129
a8bb57e7
MK
130 * x86-64-tdep.c: Remove duplicate comment.
131
ae53de43
MK
132 * x86-64-tdep.c (x86_64_store_return_value): Don't use
133 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
134 names for return values. This fixes a bug since we looked at %rbx
135 instead of %rdx.
136
473f17b0
MK
1372003-10-05 Mark Kettenis <kettenis@gnu.org>
138
2c261fae
MK
139 * x86-64-tdep.c: Include "regset.h".
140
473f17b0
MK
141 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
142 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
143 sizeof_fpregset.
144 * i386-tdep.c: Include "regset.h".
145 (i386_supply_gregset): New function.
146 (i386_supply_fpregset): New function.
147 (i386_gdbarch_init): Initialze register set-related members of
148 TDEP.
149 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
150 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
151
afd48b75
AC
1522003-10-03 Andrew Cagney <cagney@redhat.com>
153
154 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
155 set extract_return_value, store_return_value and
156 use_struct_convention to ppc64_sysv_abi_extract_return_value,
157 ppc64_sysv_abi_store_return_value and
158 ppc64_sysv_abi_use_struct_convention.
159 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
160 (ppc64_sysv_abi_store_return_value): Declare.
161 (ppc64_sysv_abi_use_struct_convention): Declare.
162 * ppc-sysv-tdep.c (enum return_value_convention): Define.
163 (ppc64_sysv_abi_extract_return_value): New function.
164 (ppc64_sysv_abi_store_return_value): New function.
165 (ppc64_sysv_abi_use_struct_convention): New function.
166 (ppc64_sysv_abi_return_value): New function.
167
9b540880
AC
1682003-10-03 Andrew Cagney <cagney@redhat.com>
169
170 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
171 convert a descriptor to a function when it's in the ".opd"
172 section.
173
8748518b
CV
1742003-10-03 Corinna Vinschen <vinschen@redhat.com>
175
176 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
177 reg_size to keep GCC silent.
178
0fd85043
CV
1792003-10-03 Corinna Vinschen <vinschen@redhat.com>
180
181 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
182 base for DW_EH_PE_textrel encodings.
183 (read_encoded_value): Add a DW_EH_PE_textrel case.
184 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
185 section.
186
37b517aa
MK
1872003-10-03 Mark Kettenis <kettenis@gnu.org>
188
189 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
190
12c266ea
AC
1912003-10-02 Andrew Cagney <cagney@redhat.com>
192
193 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
194 REGISTER_RAW_SIZE.
195 * gdbarch.h, gdbarch.c: Re-generate.
196 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
197 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
198 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
199 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
200 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
201 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
202 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
203 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
204 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
205 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
206 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
207 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
208 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
209 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
210 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
211 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
212
78ba4af6
JB
2132003-10-02 Jim Blandy <jimb@redhat.com>
214
215 * dwarf2read.c (struct die_info): Doc fix.
216
617daa0e
CV
2172003-10-02 Corinna Vinschen <vinschen@redhat.com>
218
219 * sh-tdep.c: Running thru gdb_indent.sh.
220
e5e33cd9
CV
2212003-10-02 Corinna Vinschen <vinschen@redhat.com>
222
223 * sh-tdep.c (sh_justify_value_in_reg): New function.
224 (sh_stack_allocsize): Ditto.
225 (flt_argreg_array): New array used for floating point argument
226 passing.
227 (sh_init_flt_argreg): New function.
228 (sh_next_flt_argreg): Ditto.
229 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
230 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
231 Fix argument passing strategy.
232 (sh_push_dummy_call_nofpu): Ditto.
233
5fe830e4
AC
2342003-10-01 Andrew Cagney <cagney@redhat.com>
235
236 * value.h (register_value_being_returned): Declare. Replace
237 "value_being_returned".
238 * infcall.c (call_function_by_hand): Use
239 register_value_being_returned.
240 * infcmd.c (print_return_value): Call
241 "register_value_being_returned", handle struct return locally.
242 * values.c (register_value_being_returned): New function. Replace
243 "value_being_returned".
244
2452003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
246
247 * linux-proc.c (linux_do_registers): New function.
248 (linux_make_note_section): Use linux_do_registers in case of
249 single threaded inferior programs.
250
64f395bf
AC
2512003-10-01 Andrew Cagney <cagney@redhat.com>
252
253 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
254 use STRUCT_ADDR. When not using "struct return convention", pass
255 "0" to "value_being_returned". Add FIXMEs.
256 * infcmd.c (print_return_value): Pass an explicit 0/1 to
257 value_being_returned. Add comments.
258 * values.c (value_being_returned): Add fixme.
259 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
260 (hppa_value_returned_from_stack): Add FIXME.
261
639d11d3
DC
2622003-09-30 David Carlton <carlton@kealia.com>
263
264 * dwarf2read.c (struct die_info): Add 'parent' field; replace
265 'has_children' and 'next' by 'child' and 'sibling'.
266 (read_comp_unit): Rework algorithm, breaking body into
267 read_die_and_children and read_die_and_siblings.
268 (read_die_and_children, read_die_and_siblings): New.
269 (read_full_die): Add 'has_children' argument; set it instead of
270 the die's 'has_children' field. Minor formatting cleanup.
271 (free_die_list): Use die->child and die->sibling instead of
272 die->next.
273 (dump_die_list): Ditto.
274 (sibling_die): Use die->sibling.
275 (psymtab_to_symtab_1): Use die's 'child' field in place of its
276 'has_children' and 'next' fields.
277 (process_die, read_file_scope, read_func_scope)
278 (read_lexical_block_scope, read_structure_scope)
279 (read_enumeration, read_array_type, read_common_block)
280 (read_namespace, read_subroutine_type, dump_die): Ditto.
281
5bffac25
AC
2822003-09-30 Andrew Cagney <cagney@redhat.com>
283
284 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
285 to 224, not 220.
286
f30992d4
AC
2872003-09-30 Andrew Cagney <cagney@redhat.com>
288
289 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
290 REGISTER_VIRTUAL_SIZE.
291 * gdbarch.h, gdbarch.c: Regenerate.
292 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
293 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
294 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
295
2e092625
AC
2962003-09-29 Andrew Cagney <cagney@redhat.com>
297
298 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
299 DEPRECATED_REGISTER_VIRTUAL_TYPE.
300 * gdbarch.h, gdbarch.c: Regenerate.
301 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
302 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
303
304 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
305 * remote-vxmips.c (vx_read_register): Ditto.
306 * remote-vx68.c (vx_read_register): Ditto.
307 * gnu-nat.c (inf_validate_procs): Ditto.
308
7a5dd6ee
JB
3092003-09-29 J. Brobecker <brobecker@gnat.com>
310
311 * infcall.c (call_function_by_hand): Fix build failure
312 introduced in the previous change to this file.
313
1fe43d45
AC
3142003-09-29 Andrew Cagney <cagney@redhat.com>
315
316 * NEWS: Mention Objective-C.
317
e28a332c
JG
3182003-09-29 Jerome Guitton <guitton@act-europe.fr>
319
320 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
321 test if the register has been saved on the stack.
322 (arm_scan_prologue_cache): When analysing the instruction
323 "str lr, [sp, #-4]", save the address where lr has been stored.
324
9ff63c35
AC
3252003-09-28 Andrew Cagney <cagney@redhat.com>
326
7f5f525d
AC
327 * frame.c (frame_read_unsigned_register): Delete function.
328 * frame.h (frame_read_unsigned_register): Delete declaration.
329 * sparc-tdep.c (sparc_init_extra_frame_info): Use
330 get_frame_register_unsigned.
331 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
332 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
333 * d10v-tdep.c (d10v_print_registers_info): Ditto.
334
335 * frame.h (frame_read_register): Delete declaration.
336 * frame.c (frame_read_register): Delete function.
337 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
338 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
339 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
340 * mips-tdep.c (mips_register_to_value): Ditto.
341 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
342 * d10v-tdep.c (d10v_print_registers_info): Ditto.
343
344 * frame.c (frame_read_signed_register): Delete function.
345 (frame_read_unsigned_register): Update comments.
346 * frame.h (frame_read_signed_register): Delete declaration.
347 * h8300-tdep.c (h8300_print_register): Use
348 get_frame_register_signed.
349 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
350
9ff63c35
AC
351 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
352 Rename VALUE_RETURNED_FROM_STACK.
353 * infcmd.c (print_return_value): Update.
354 * infcall.c (call_function_by_hand): Update.
355
41d041d6
MK
3562003-09-28 Mark Kettenis <kettenis@gnu.org>
357
358 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
359 regcache argument and reverse the order of the other two
360 arguments. Remove local regcache variable. Determine
361 architecture from REGCACHE. Update comments.
362 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
363 reverse the order of the other two arguments. Remove local
364 regcache variable. Determine architecture from REGCACHE. Update
365 comments.
366 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
367 prototypes. Update comments.
368 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
369 comment.
370 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
371 Update.
372 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
373 * i386-interix-nat.c (supply_fpregset): Update.
374 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
375 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
376 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
377 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
378 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
379 Update.
380 * i386obsd-tdep.c (fetch_core_registers): Update.
381 * i386v4-nat.c (supply_fpregset): Update.
382 * x86-64-linux-nat.c (supply_fpregset): Update.
383 * x86-64-linux-tdep.c (fetch_core_registers): Update.
384
1cb97e17
MK
3852003-09-27 Mark Kettenis <kettenis@gnu.org>
386
5716833c
MK
387 * i386-tdep.h: Put opaque declarations in alphabetical
388 order. Remove spurious whitespace.
389 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
390 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
391 * i386-tdep.c (MM0_REGNUM): Remove define.
392 (i386_mmx_regnum_p): Add gdbarch argument.
393 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
394 Rewrite using new macro definitions for FPU/SSE registers.
395 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
396 definitions from i387-tdep.h.
397 (i386_register_name): Update.
398 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
399 new macro definitions for FPU/SSE registers.
400 (i386_extract_return_value): Determine whether floating-point
401 registers are present by examining REGCACHE's architecture.
402 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
403 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
404 FPU/SSE registers.
405 (i386_register_type): Update.
406 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
407 definitions for FPU registers. Use REGCACHE's architecture to
408 determine the appropriate register numbers.
409 (i386_pseudo_register_read, i386_pseudo_register_write,
410 i386_register_reggroup_p): Update.
411 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
412 TDEP->mm0_regnum.
413 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
414 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
415 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
416 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
417 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
418 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
419 *' to `void *'.
420 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
421 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
422 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
423 definitions for FPU/SSE registers.
424 (FXSAVE_MXCSR_ADDR): New define.
425 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
426 TDEP->mm0_regnum.
427 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
428 (I387_ST0_REGNUM): Define.
429
41d35cb0
MK
430 * regcache.h (get_regcache_arch): New prototype.
431 * regcache.c (get_regcache_arch): New function.
432
54e74f72
MK
433 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
434 whitespace.
435
1cb97e17
MK
436 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
437 Initialize using ARRAY_SIZE.
438
0968aa8c
AC
4392003-09-27 Andrew Cagney <cagney@redhat.com>
440
441 * arch-utils.c (deprecated_init_frame_pc_default): Rename
442 "init_frame_pc_default".
443 * arch-utils.h (deprecated_init_frame_pc_default): Update.
444 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
445 * vax-tdep.c (vax_gdbarch_init): Update.
446 * v850-tdep.c (v850_gdbarch_init): Update.
447 * sh64-tdep.c (sh64_gdbarch_init): Update.
448 * s390-tdep.c (s390_gdbarch_init): Update.
449 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
450 * mcore-tdep.c (mcore_gdbarch_init): Update.
451 * h8300-tdep.c (h8300_gdbarch_init): Update.
452 * cris-tdep.c (cris_gdbarch_init): Update.
453 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
454
54c84734
MK
4552003-09-26 Mark Kettenis <kettenis@gnu.org>
456
457 * regset.h: New file.
458 * Makefile.in (regset_h): Add.
459
1b1d3794
AC
4602003-09-25 Andrew Cagney <cagney@redhat.com>
461
462 * frame.h (deprecated_frame_saved_regs): Rename
463 get_frame_saved_regs.
464 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
465 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
466 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
467 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
468 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
469
e6beb428
AC
4702003-09-25 Andrew Cagney <cagney@redhat.com>
471
472 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
473 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
474 and Java.
475 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
476 arm*-*-* do not use the new frame code.
477
710122da
DC
4782003-09-25 David Carlton <carlton@kealia.com>
479
480 * c-exp.y: Remove 'register' declarations.
481 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
482
79c2c32d
DC
4832003-09-25 David Carlton <carlton@kealia.com>
484
485 * c-exp.y: Include cp-support.h. Add qualified_type.
486 (yylex): Delete nested type hack; add comments.
487 * cp-namespace.c (cp_lookup_nested_type): New function.
488 * cp-support.h: Declare cp_lookup_nested_type.
489 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
490 instead of value_struct_elt_for_reference.
491 * valops.c: Include cp-support.h.
492 (value_aggregate_elt): New function.
493 (value_namespace_elt): Ditto.
494 (value_struct_elt_for_reference): Make static.
495 * value.h: Delete declaration of value_struct_elt_for_reference;
496 add declaration for value_aggregate_elt.
497 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
498 (valops.o): Ditto.
499
898c62f5
DJ
5002003-09-25 Daniel Jacobowitz <drow@mvista.com>
501
502 * stack.c: Include "reggroups.h".
503 (frame_info): Only display registers in all_reggroup.
504 * Makefile.in (stack.o): Update dependencies.
505
28cd8767
JG
5062003-09-25 Jerome Guitton <guitton@act-europe.fr>
507
508 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
509 "add ip, sp #n" in the prologue.
510 (arm_scan_prologue): Ditto.
511
a4ab2b5d
JG
5122003-09-25 Jerome Guitton <guitton@act-europe.fr>
513
514 * MAINTAINERS (write after approval): Add myself.
515
3f244638
AS
5162003-09-25 Andreas Schwab <schwab@suse.de>
517
518 * m68k-tdep.c: Include "dwarf2-frame.h".
519 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
520 * Makefile.in (m68k-tdep.o): Update dependencies.
521
1c0159e0
CV
5222003-09-25 Corinna Vinschen <vinschen@redhat.com>
523
524 * sh-tdep.c (struct frame_extra_info): Remove.
525 (struct sh_frame_cache): New structure.
526 (GET_SOURCE_REG): New macro extracting source register of an opcode.
527 (GET_TARGET_REG): Ditto but target register.
528 (GET_PUSHED_REG): Remove.
529 (IS_MOV_ARG_TO_REG): New macro.
530 (IS_MOV_ARG_TO_IND_R14): New macro.
531 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
532 (IS_MOVW_PCREL_TO_REG): New macro.
533 (IS_MOVL_PCREL_TO_REG): New macro.
534 (IS_SUB_REG_FROM_SP): New macro.
535 (IS_ARG_MOV): Remove.
536 (IS_MOV_TO_R14): Remove.
537 (IS_RESTORE_FP): New macro.
538 (IS_RTS): New macro.
539 (IS_LDS): New macro.
540 (IS_MOV_FP_SP): New macro.
541 (IS_ADD_REG_TO_FP): New macro.
542 (IS_ADD_IMM_FP): New macro.
543 (sh_skip_prologue_hard_way): Remove.
544 (sh_saved_pc_after_call): Remove.
545 (sh_frame_chain): Remove.
546 (sh_find_callers_reg): Remove.
547 (sh_nofp_frame_init_saved_regs): Remove.
548 (sh_fp_frame_init_saved_regs): Remove.
549 (sh_init_extra_frame_info): Remove.
550 (sh_analyze_prologue): New function.
551 (sh_skip_prologue): Remove deprecated code. Rely on new function
552 sh_analyze_prologue when after_prologue fails.
553 (sh_frame_saved_pc): Remove.
554 (sh_alloc_frame_cache): New function.
555 (sh_frame_cache): Ditto.
556 (sh_frame_prev_register): Ditto.
557 (sh_frame_this_id): Ditto.
558 (sh_frame_unwind): New structure defining the heuristic frame
559 sniffer interface.
560 (sh_frame_sniffer): New function.
561 (sh_unwind_sp): Ditto.
562 (sh_unwind_pc): Ditto.
563 (sh_unwind_dummy_id): Ditto.
564 (sh_frame_base_address): Ditto.
565 (sh_frame_base): New structure defining new frame base code.
566 (sh_in_function_epilogue_p): New function.
567 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
568 code and to call all new code instead. Initialize dwarf2 and
569 heuristic frame sniffer.
570
5f9769d1
PH
5712003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
572
573 * parser-defs.h (struct exp_descriptor): New definition, containing
574 language-specific info for printing, prefixifying, dumping, and
575 evaluating expressions.
576 (exp_descriptor_standard): Declare new variable.
577 (print_subexp): Make global and declare here (from expprint.c).
578 (dump_subexp): Ditto.
579 (dump_subexp_body_standard): Declare.
580 (operator_length_standard): Declare.
581 (op_name_standard): Declare.
582 (print_subexp): Declare.
583 (print_subexp_standard): Declare.
584
585 * language.h (struct language_defn): Add la_exp_desc field to hold
586 pointer to table for language-specific operators.
587 Remove evaluate_exp field, which is now in struct exp_descriptor.
588
589 * parse.c (operator_length): Move most code to new
590 operator_length_standard function. Use language-specific information.
591 (operator_length_standard): New function taking most code from
592 operator_length.
593 (exp_descriptor_standard): New constant.
594
595 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
596 and OP_EXTENDED_LAST.
597
598 * expprint.c (print_subexp): Use language-specific print_subexp.
599 Make global; remove static declaration.
600 Move most code to print_subexp_standard.
601 (print_subexp_standard): New function, containing code formerly in
602 print_subexp.
603 (op_name): Add expression to argument signature.
604 Use langauge-specific op_name.
605 Move most code to op_name_standard.
606 (op_name_standard): New function, containing code formerly in op_name.
607 (dump_subexp): Use new version of op_name function.
608 Use language-specific dump_subexp_body, and move most existing code to
609 dump_subexp_body_standard.
610 (dump_raw_expression): Use new op_name interface.
611 (dump_subexp_body): Move most code to dump_subexp_body_standard.
612 (dump_subexp_body_standard): New function, containing code formerly
613 in dump_subexp_body.
614
615 * language.c (unknown_language): Add default la_exp_desc field and
616 remove evaluate_exp field.
617 (auto_language): Ditto.
618 (local_language): Ditto.
619 * f-lang.c (f_language_defn): Ditto.
620 * c-lang.c (c_language_defn): Ditto.
621 (cplus_language_defn): Ditto.
622 (asm_language_defn): Ditto.
623 (minimal_language_defn): Ditto.
624 * p-lang.c (pascal_language_defn): Ditto.
625 * m2-lang.c (m2_language_defn): Ditto.
626 * objc-lang.c (objc_language_defn): Ditto.
627
628 * jv-lang.c (exp_descriptor_java): New variable, containing
629 Java-specific expression evaluator.
630 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
631 field.
632 * scm-lang.c (exp_descriptor_scm): New variable, containing
633 Scheme-specific expression evaluator.
634 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
635 field.
636 * objc-lang.c (print_object_command): Take evaluate_exp from the
637 la_exp_desc field.
638
639 * Makefile.in (eval.o): Add dependency on parser-defs.h.
640
641 * eval.c: Include parser-defs.h for the full declaration of
642 la_exp_desc's type.
643 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
644
24daaebc
PH
6452003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
646
647 * parser-defs.h (operator_length): Declare.
648
649 * parse.c (length_of_subexp): Use operator_length to get operator
650 lengths and arities for operators.
651 Move most code to new operator_length function.
652 (operator_length): New function absorbing most code from
653 length_of_subexp.
654 (prefixify_subexp): Remove large case and use operator_length instead.
655 (parse_exp_1): Use renamings:
656 dump_prefix_expression => dump_raw_expression and
657 dump_postfix_expression => dump_prefix_expression.
658
659 * expression.h (dump_prefix_expression): Rename to ...
660 (dump_raw_expression): New name.
661 (dump_postfix_expression): Rename to ...
662 (dump_prefix_expression): New name.
663
664 * expprint.c (dump_subexp): Make global. Add comment.
665 Move most existing code to dump_subexp_body.
666 (dump_subexp_body): New function.
667 (dump_prefix_expression): Rename to dump_raw_expression.
668 Remove attempt to print the expression via print_expression: it can't
669 work before the expression is prefixified.
670 (dump_raw_expression): Renamed from dump_prefix_expression.
671 (dump_postfix_expression): Rename to dump_prefix_expression, since
672 that's what it does.
673 Remove 'note' parameter, since this routine must be used on
674 prefixified expression.
675 (dump_prefix_expression): Renamed from dump_postfix_expression.
676
8c2957c4
JB
6772003-09-22 Jim Blandy <jimb@redhat.com>
678
679 * dwarf2read.c (read_array_type): When building the type for an
680 array of unspecified length, make sure to choose the upper bound
681 so that the array's total length comes out to be zero --- that's
682 how we represent such arrays.
683
592e3010
MC
6842003-09-22 Michael Chastain <mec@shout.net>
685
686 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
687
365c70b1
JJ
6882003-09-22 Jeff Johnston <jjohnstn@redhat.com>
689
690 * top.c (quit_force): Fix indirect call to quit_target so
691 a struct qt_args pointer is passed.
692
5d6eb653
AC
6932003-09-22 Andrew Cagney <cagney@redhat.com>
694
695 * arch-utils.h (init_frame_pc_noop): Delete declaration.
696 * arch-utils.c (init_frame_pc_noop): Delete function.
697 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
698 "init_frame_pc".
699 * mips-tdep.c (mips_gdbarch_init): Ditto.
700 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
701 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
702 declaration.
703 (DEPRECATED_INIT_FRAME_PC): Delete macro.
704 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
705 declaration.
706 (DEPRECATED_INIT_FRAME_PC): Delete macro.
707
b222a67f
AG
7082003-09-22 Anthony Green <green@redhat.com>
709
710 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
711 declaration.
712
d5b5ac79
AC
7132003-09-20 Andrew Cagney <cagney@redhat.com>
714
deafb061
AC
715 * breakpoint.c: Eliminate ARGSUSED.
716 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
717 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
718 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
719 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
720 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
721 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
722 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
723 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
724 * wince.c, remote-vx.c: Ditto.
725
d5b5ac79
AC
726 * cli/cli-script.c: Remove "register" attributes.
727 * config/pa/tm-hppa.h: Ditto.
728 * cli/cli-decode.c: Ditto.
729 * cli/cli-cmds.c: Ditto.
730
c6316faa
AC
7312003-09-19 Andrew Cagney <cagney@redhat.com>
732
733 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
734 DEPRECATED_NPC_REGNUM.
735 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
736
f4f99b11
CF
7372003-09-19 Christopher Faylor <cgf@redhat.com>
738
739 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
740
1708f284
JB
7412003-09-19 Jim Blandy <jimb@redhat.com>
742
743 * macrotab.c (macro_include): Use the correct comparison to find
744 the appropriate place for this inclusion in the list.
745
b9fbf434
AC
7462003-09-19 Andrew Cagney <cagney@redhat.com>
747
748 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
749 (DEPRECATED_HPUX_TEXT_END): Define.
750 (deprecated_hpux_text_end): Declare.
751 (struct target_ops): Declare opaque.
752 * hppah-nat.c (text_end): Make static.
753 (deprecated_hpux_text_end): New function.
754 * exec.c (text_end): Delete global variable.
755 (NEED_TEXT_START_END): Do not define.
756 (exec_file_attach): Replace code computing "text_end" code with
757 call to DEPRECATED_HPUX_TEXT_END.
758
5b03f266
AC
7592003-09-19 Andrew Cagney <cagney@redhat.com>
760
761 * utils.c (align_up, align_down): New functions.
762 * defs.h (align_up, align_down): Declare.
763 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
764 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
765 and "align_down".
766 (round_up, round_down): Delete functions.
767 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
768 "align_down".
769 (ROUND_DOWN, ROUND_UP): Delete macros.
770 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
771 * h8300-tdep.c: Replace "round_up" and "round_down" with
772 "align_up" and "align_down".
773 (round_up, round_down): Delete macros.
774 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
775 "align_down".
776 (ROUND_UP, ROUND_DOWN): Delete macros.
777
51db5742
JB
7782003-09-18 J. Brobecker <brobecker@gnat.com>
779
780 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
781 hard-coded constant. Use the proper machine name instead.
782
77949794
AC
7832003-09-17 Andrew Cagney <cagney@redhat.com>
784
785 * sparc-tdep.c (legacy_register_name): Delete function.
786 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
787 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
788 * infcmd.c (gdb_register_name): Delete variable.
789 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
790 REGISTER_NAME and "tm.h".
791 * gdbarch.h, gdbarch.c: Regenerate.
792 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
793 REGISTER_NAMES in comments.
794 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
795 * m68klinux-nat.c (regmap): Ditto.
796
b55c33cc
JB
7972003-09-17 Jim Blandy <jimb@redhat.com>
798
799 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
800
957e27ac
AC
8012003-09-17 Andrew Cagney <cagney@redhat.com>
802
803 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
804 (ppcnbsd_init_abi): Set "use_struct_convention" to
805 "ppcnbsd_use_struct_convention".
806
192cb3d4
MK
8072003-09-17 Mark Kettenis <kettenis@gnu.org>
808
809 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
810 * gdbarch.h, gdbarch.c: Regenerate.
811 (stabs_argument_has_addr): New architecture method.
812 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
813 * arch-utils.c: Include "buildsym.h".
814 (default_stabs_argument_has_addr): New function.
815 * stabsread.c (define_symbol): Use stabs_argument_has_addr
816 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
817
efe59759
AC
8182003-09-17 Andrew Cagney <cagney@redhat.com>
819
820 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
821 * gdbarch.h, gdbarch.c: Regenerate.
822 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
823 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
824 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
825 * sparcnbsd-tdep.c: Update.
826
62700349
AC
8272003-09-17 Andrew Cagney <cagney@redhat.com>
828
829 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
830 * gdbarch.h, gdbarch.c: Regenerate.
831 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
832 * d10v-tdep.c, frame.c: Update.
833 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
834 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
835 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
836 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
837 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
838 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
839 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
840 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
841 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
842 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
843 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
844 * config/pa/nm-hppah.h: Update.
845
b9ff3018
AC
8462003-09-16 Andrew Cagney <cagney@redhat.com>
847
848 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
849 "use_struct_convention" to "ppc_linux_use_struct_convention".
850 (ppc_linux_use_struct_convention): New function.
851 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
852 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
853 "rs6000_use_struct_convention".
854 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
855 declaration.
856 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
857 Delete function.
858
aa1ee363
AC
8592003-09-16 Andrew Cagney <cagney@redhat.com>
860
861 * buildsym.c: Remove more occurances of "register".
862 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
863 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
864 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
865 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
866 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
867 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
868 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
869 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
870
f2ea0907
CV
8712003-09-16 Corinna Vinschen <vinschen@redhat.com>
872
873 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
874 numbers to enumeration values.
875 * sh-tdep.c: Accomodate above change.
876 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
877 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
878 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
879 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
880 (IS_FPUSH): Rename from IS_FMOV.
881 (sh_extract_struct_value_address): Remove useless comment.
882 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
883 instead of own local values.
884 (sh_dump_tdep): Remove.
885 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
886 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
887
1c704f11
AC
8882003-09-15 Andrew Cagney <cagney@redhat.com>
889
890 * doublest.c (convert_floatformat_to_doublest): No longer need to
891 cast "exp_bias" to an int. Reverts 2002-12-04 change.
892
ac79b88b
DJ
8932003-09-15 Daniel Jacobowitz <drow@mvista.com>
894
895 * values.c (unpack_double): Call floatformat_is_valid.
896
1c671366
MK
8972003-09-15 Mark Kettenis <kettenis@gnu.org>
898
de5227fb
MK
899 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
900 ps_strings into a long.
901
1c671366
MK
902 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
903 _initialize_am64fbsd_nat.
904
a604369a
KB
9052003-09-15 Kevin Buettner <kevinb@redhat.com>
906
907 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
908 associated with DW_AT_ranges attribute is out of bounds.
909
b3cacbee
DL
9102003-09-15 David Lecomber <dsl@sources.redhat.com>
911
912 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
913
d0f37bb2
MC
9142003-09-14 Michael Chastain <mec@shout.net>
915
916 * config/m68k/nm-apollo68v.h: Delete.
917 * config/m68k/xm-apollo68v.h: Delete.
918
69517000
AC
9192003-09-14 Andrew Cagney <cagney@redhat.com>
920
921 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
922 * dcache.c: Update copyrights and descriptions.
923 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
924
ef8b349d
AC
9252003-09-14 Andrew Cagney <cagney@redhat.com>
926
927 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
928 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
929
52f0bd74
AC
9302003-09-14 Andrew Cagney <cagney@redhat.com>
931
932 * alpha-nat.c: Remove some occurances of "register".
933 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
934 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
935 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
936 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
937 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
938 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
939 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
940 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
941 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
942 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
943 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
944 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
945 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
946 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
947 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
948 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
949 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
950 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
951 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
952 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
953 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
954 * values.c, vax-tdep.c, xcoffread.c: Ditto.
955
4a4b3fed
AC
9562003-09-13 Andrew Cagney <cagney@redhat.com>
957
958 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
959 * ppc-tdep.h (struct regcache): Declare opaque.
960 * objfiles.h (struct objfile_data): Declare opaque.
961 * cp-support.h (struct objfile): Declare opaque.
962 * linux-nat.h (target_waitstatus): Declare opaque.
963
2110b94f
MK
9642003-09-14 Mark Kettenis <kettenis@gnu.org>
965
1c671366
MK
966 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
967 (stabs_argument_has_addr): New architecture method.
968 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
969 * arch-utils.c: Include "buildsym.h".
970 (default_stabs_argument_has_addr): New function.
971 * stabsread.c (define_symbol): Use stabs_argument_has_addr
972 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
973
2110b94f
MK
974 * cris-tdep.c (cris_gdbarch_init): Set
975 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
976 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
977 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
978 * mips-tdep.c (mips_gdbarch_init): Likewise.
979 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
980 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
981
48436ce6
AC
9822003-09-13 Andrew Cagney <cagney@redhat.com>
983
984 * values.c (using_struct_return): Delete "function" and "funcaddr"
985 parameters.
986 * value.h (using_struct_return): Update declaration.
987 * infcmd.c (finish_command_continuation): Update.
988 (finish_command): Update.
989 * infcall.c (call_function_by_hand): Update.
990 * eval.c (evaluate_subexp_standard): Update.
991
403d9909
CF
9922003-09-13 Christopher Faylor <cgf@redhat.com>
993
994 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
995 SSE registers since gdb will not operate correctly without this.
996 Restore include file ordering munged in previous change.
997 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
998
ebf7d56b
MK
9992003-09-13 Mark Kettenis <kettenis@gnu.org>
1000
8e823e25
MK
1001 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1002 REG_STRUCT_HAS_ADDR.
1003 * gdbarch.c, gdbarch.h: Updated.
1004 * infcall.c (call_function_by_hand): Update.
1005 * stabsread.c (define_symbol): Updated.
1006
ebf7d56b
MK
1007 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1008
d3f13f72
CF
10092003-09-12 Christopher Faylor <cgf@redhat.com>
1010
1011 * win32-nat.c: Reorganize so that defines used by target headers are
1012 actually defined by the system headers.
1013 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1014 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1015
14f75137
JB
10162003-09-12 Jim Blandy <jimb@redhat.com>
1017
d646061f
JB
1018 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1019 the file has no .data, .bss, or .rodata sections. Instead wait
1020 until we see a variable alleged to live in one of those sections.
1021
2a13f9bc
JB
1022 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1023 .bss section, presume that any variables we find live in the
1024 .rodata section.
1025
4f49b26b
JB
1026 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1027 offsets for global and static variables.
1028
14f75137
JB
1029 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1030 symbol types are, by definition, in the .data section, so it is
1031 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1032 If there is no .data section, there should be no N_DATA or N_DATA
1033 | N_EXT symbols.
1034
212c460c
MK
10352003-09-12 Mark Kettenis <kettenis@gnu.org>
1036
1037 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1038 (amd64fbsd_sigcontext_addr): Rewrite.
1039 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1040 with correct values.
1041 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1042 (amd64fbsd_init_abi): Fix typo.
1043
68856ea3
AC
10442003-09-12 Andrew Cagney <cagney@redhat.com>
1045
1046 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1047 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1048
627b3ba2
AC
10492003-09-12 Andrew Cagney <cagney@redhat.com>
1050
1051 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1052 "entry_file_highpc". Update comments.
1053 * defs.h (deprecated_inside_entry_file): Rename
1054 "inside_entry_file".
1055 * blockframe.c (deprecated_inside_entry_file): Rename
1056 "inside_entry_file".
1057 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1058 * vax-tdep.c (vax_frame_chain): Update.
1059 * sh64-tdep.c (sh64_frame_chain): Update.
1060 * sh-tdep.c (sh_frame_chain): Update.
1061 * rs6000-tdep.c (rs6000_frame_chain): Update.
1062 * ns32k-tdep.c (ns32k_frame_chain): Update.
1063 * mips-tdep.c (mips_frame_chain): Update.
1064 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1065 * m32r-tdep.c (m32r_frame_this_id): Update.
1066 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1067 * frv-tdep.c (frv_frame_this_id): Update.
1068 * d10v-tdep.c (d10v_frame_this_id): Update.
1069 * cris-tdep.c (cris_frame_chain): Update.
1070 * blockframe.c (legacy_frame_chain_valid): Update.
1071 * avr-tdep.c (avr_frame_this_id): Update.
1072 * arm-tdep.c (arm_prologue_this_id): Update.
1073 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1074 * objfiles.c (objfile_relocate): Update.
1075 * mipsread.c (mipscoff_symfile_read): Update.
1076 (mipscoff_symfile_read): Update.
1077 * mdebugread.c (parse_partial_symbols): Update.
1078 * dwarfread.c (read_file_scope): Update.
1079 * dwarf2read.c (read_file_scope): Update.
1080 * dbxread.c (read_dbx_symtab): Update.
1081 (read_dbx_symtab): Update.
1082 * coffread.c (complete_symtab): Update.
1083
b0abbc58
JJ
10842003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1085
1086 * top.c (quit_target): New static helper function.
1087 (quit_force): Moved code to quit_target(). Call quit_target()
1088 via catch_errors() to catch errors during quit.
1089
a1632d59
DC
10902003-09-11 David Carlton <carlton@kealia.com>
1091
1092 * buildsym.c (finish_block): Use allocate_block to allocate the
1093 block.
1094 * mdebugread.c (new_block): Add FIXME.
1095
5c4e30ca
DC
10962003-09-11 David Carlton <carlton@kealia.com>
1097
1098 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1099 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1100 (recursive_dump_type): Ditto.
1101 * printcmd.c (print_formatted): Ditto.
1102 * typeprint.c (print_type_scalar): Ditto.
1103 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1104 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1105 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1106 maint_cplus_cmd_list.
1107 * cp-support.c: Make maint_cplus_cmd_list extern.
1108 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1109 command.h.
1110 (lookup_symbol_file): Look in possible namespace blocks when
1111 appropriate.
1112 (initialize_namespace_symtab): New.
1113 (get_possible_namespace_block, free_namespace_block)
1114 (check_possible_namespace_symbols)
1115 (check_possible_namespace_symbols_loop)
1116 (check_one_possible_namespace_symbol)
1117 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1118 (_initialize_cp_namespace): Ditto.
1119 * block.h: Declare allocate_block.
1120 * block.c (allocate_block): New.
1121 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1122 allocate_block.
1123 * symfile.h: Update declaration of add_psymbol_to_list.
1124 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1125 question.
1126 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1127 scan_partial_symbols_call.
1128 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1129 helper functions.
1130 (add_partial_symbol): If necessary, scan mangled names for names
1131 of namespaces.
1132 (add_partial_namespace): Add NAMESPACE argument; generate partial
1133 symbols associated to namespaces.
1134 (add_partial_enumeration): Add NAMESPACE argument.
1135 (new_symbol): Allow namespace syms.
1136 (read_namespace): Generate namespace syms.
1137 * objfiles.h: Add opaque declaration of struct symtab.
1138 (struct objfile): Add cp_namespace_symtab member.
1139 * objfiles.c (allocate_objfile): Set
1140 objfile->cp_namespace_symtab.
1141 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1142 dictionary_h, command_h.
1143
33a7c2fc
AC
11442003-09-11 Andrew Cagney <cagney@redhat.com>
1145
1146 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1147 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1148 near the function's end.
1149 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1150 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1151 regcache_raw_write_signed to set SP_REGNUM.
1152
63cd24fe
EZ
11532003-09-11 Elena Zannoni <ezannoni@redhat.com>
1154
1155 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1156 orig_addrs is set up properly.
1157
f27dd7fd
AC
11582003-09-11 Andrew Cagney <cagney@redhat.com>
1159
1160 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1161 * gdbarch.h, gdbarch.c: Re-generate.
1162 * infcall.c (call_function_by_hand): Update.
1163 * hppa-tdep.c (hppa_push_arguments): Update.
1164 * ada-lang.c (place_on_stack): Update.
1165 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1166 * sparc-tdep.c (sparc_gdbarch_init): Update.
1167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1168 * hppa-tdep.c (hppa_gdbarch_init): Update.
1169 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1170 stack_align.
1171
f630a401
DJ
11722003-09-11 Daniel Jacobowitz <drow@mvista.com>
1173
1174 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1175 register do need a frame.
1176
0ddabb4c
AC
11772003-09-11 Andrew Cagney <cagney@redhat.com>
1178
1179 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1180 buildable since GDB 5.0.
1181 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1182 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1183 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1184 * irix4-nat.c: Delete file.
1185 * config/mips/irix4.mh: Delete file.
1186 * config/mips/irix3.mh: Delete file.
1187 * config/mips/irix3.mt: Delete file.
1188 * config/mips/tm-irix3.h: Delete file.
1189 * config/mips/nm-irix3.h: Delete file.
1190 * config/mips/xm-irix3.h: Delete file.
1191 * config/mips/nm-irix4.h: Delete file.
1192 * config/mips/xm-irix4.h: Delete file.
1193 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1194
fde2cceb
JB
11952003-09-10 J. Brobecker <brobecker@gnat.com>
1196
1197 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1198 * Makefile.in (hppa-tdep.o): Update dependencies.
1199
66f667f5
JW
12002003-09-10 James E Wilson <wilson@specifixinc.com>
1201
ef5fd69f
JW
1202 * MAINTAINERS: Change my e-mail address. Move to paper trail
1203 section.
66f667f5 1204
53e8aaea
KB
12052003-09-10 Kevin Buettner <kevinb@redhat.com>
1206
1207 * MAINTAINERS (frv): New ISA entry.
1208
dcc6aaff
KB
12092003-09-10 Kevin Buettner <kevinb@redhat.com>
1210
1211 * frv-tdep.c (dis-asm.h): Include.
1212 * Makefile.in (frv-tdep.o): Update dependencies.
1213
932644f0
JJ
12142003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1215
1216 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1217 Fix typo for high range of floating registers.
1218
91c24f0a
DC
12192003-09-09 David Carlton <carlton@kealia.com>
1220
1221 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1222 highpc initialization here out of scan_partial_symbols.
1223 (scan_partial_symbols): Restructure into a recursive version,
1224 calling add_partial_namespace and add_partial_enumeration when
1225 appropriate.
1226 (add_partial_namespace): New.
1227 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1228
c9263853
AC
12292003-09-09 Andrew Cagney <cagney@redhat.com>
1230
e56a0ecc
AC
1231 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1232 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1233 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1234 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1235
794a477a
AC
1236 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1237 (rs6000_push_dummy_call): Set the "TOC" register.
1238
c9263853
AC
1239 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1240 methods "max_register_raw_size", "max_register_virtual_size" or
1241 "register_virtual_size".
1242
afa7d0b2
ILT
12432003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1244
1245 * MAINTAINERS: Update my e-mail address.
1246
7a41266b
AC
12472003-09-09 Andrew Cagney <cagney@redhat.com>
1248
1249 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1250 (rs6000_push_dummy_call): Store the struct return address.
1251 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1252
77b2b6d4
AC
12532003-09-09 Andrew Cagney <cagney@redhat.com>
1254
1255 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1256 "ppc_sysv_abi_push_arguments".
1257 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1258 "ppc_sysv_abi_push_arguments".
1259 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1260 instead of "push_arguments".
1261 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1262
e8a7b686
AC
12632003-09-09 Andrew Cagney <cagney@redhat.com>
1264
1265 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1266 instead of CALL_DUMMY_ADDRESS.
1267
f86f5ca3
PH
12682003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1269
1270 * p-lang.c: Eliminate "register".
1271 * c-lang.c: Ditto.
1272 * expprint.c: Ditto.
1273 * f-lang.c: Ditto.
1274 * jv-lang.c: Ditto.
1275 * language.c: Ditto.
1276 * m2-lang.c: Ditto.
1277 * parse.c: Ditto.
1278 * scm-lang.c: Ditto.
1279 * objc-lang.c: Ditto.
1280
83ee270e
NC
12812003-09-09 Nick Clifton <nickc@redhat.com>
1282
1283 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1284
a89aa300
AC
12852003-09-04 Andrew Cagney <cagney@redhat.com>
1286
1287 * avr-tdep.c: Include "dis-asm.h".
1288 * cris-tdep.c: Include "dis-asm.h".
1289 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1290 instead of corresponding typedef.
1291 * h8300-tdep.c: Include "dis-asm.h".
1292 * ia64-tdep.c: Include "dis-asm.h".
1293 * i386-tdep.c: Include "dis-asm.h".
1294 (i386_print_insn): Use "struct disassemble_info" instead of
1295 corresponding typedef.
1296 * m68k-tdep.c: Include "dis-asm.h".
1297 * mcore-tdep.c: Include "dis-asm.h".
1298 * mips-tdep.c: Include "dis-asm.h".
1299 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1300 instead of corresponding typedef.
1301 * ns32k-tdep.c: Include "dis-asm.h".
1302 * s390-tdep.c: Include "dis-asm.h".
1303 * sparc-tdep.c: Include "dis-asm.h".
1304 * vax-tdep.c: Include "dis-asm.h".
1305 * v850-tdep.c: Include "dis-asm.h".
1306 * mn10300-tdep.c: Include "dis-asm.h".
1307 * rs6000-tdep.c: Include "dis-asm.h".
1308 * xstormy16-tdep.c: Include "dis-asm.h".
1309 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1310 print_insn_xstormy16.
1311 * Makefile.in (v850-tdep.o): Update dependencies.
1312 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1313 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1314 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1315 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1316 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1317 (gdbarch_h): Remove $(dis_asm_h).
1318 * disasm.c: Include "dis-asm.h".
1319 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1320 corresponding typedef.
1321 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1322 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1323 * gdbarch.sh: Do not include "dis-asm.h".
1324 (struct disassemble_info): Declare opaque.
1325 (TARGET_PRINT_INSN): Update declaration.
1326 * gdbarch.h, gdbarch.c: Re-generate.
1327
88a82a65
AC
13282003-09-08 Andrew Cagney <cagney@redhat.com>
1329
1330 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1331 CALL_DUMMY_ADDRESS, change to a predicate.
1332 * gdbarch.h, gdbarch.c: Re-generate.
1333 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1334 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1335 * infcall.c (call_function_by_hand): Ditto.
1336 * sparc-tdep.c (sparc_push_return_address): Ditto.
1337 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1338 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1339 CALL_DUMMY_ADDRESS with entry_point_address.
1340 * v850-tdep.c (v850_push_return_address): Ditto.
1341 * s390-tdep.c (s390_push_return_address): Ditto.
1342 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1343 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1344 * mcore-tdep.c (mcore_push_return_address): Ditto.
1345 * cris-tdep.c (cris_push_return_address): Ditto.
1346 * arm-tdep.c (arm_push_return_address): Ditto.
1347
3e2c4033
AC
13482003-09-08 Andrew Cagney <cagney@redhat.com>
1349
1350 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1351 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1352 and REG_UNMODIFIED to REG_SAME_VALUE.
1353 (execute_cfa_program): Update.
1354 (dwarf2_frame_cache): Update. Initialize table to
1355 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1356 location.
1357 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1358
39efb398
AC
13592003-09-08 Andrew Cagney <cagney@redhat.com>
1360
1361 * gnu-nat.c: Remove "inline" function attribute.
1362 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1363
f5cb5aca
KB
13642003-09-08 Kevin Buettner <kevinb@redhat.com>
1365
1366 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1367 target.
1368
1cb761c7
KB
13692003-09-08 Kevin Buettner <kevinb@redhat.com>
1370
1371 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1372 (frame_extra_info): Rename this struct to frv_unwind_cache.
1373 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1374 Add fields ``prev_sp'' and ``base''.
1375 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1376 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1377 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1378 Delete.
1379 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1380 Revise all callers. Fill in the unwind cache argument and make
1381 other adjustments to account for new frame mechanisms.
1382 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1383 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1384 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1385 (frv_frame_unwind, frv_frame_base): New structs.
1386 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1387 additional arguments expected by this method and adjust function
1388 body accordingly.
1389 (frv_gdbarch_init): Remove calls to the following functions:
1390 set_gdbarch_deprecated_init_frame_pc(),
1391 set_gdbarch_deprecated_saved_pc_after_call(),
1392 set_gdbarch_deprecated_frame_chain(),
1393 set_gdbarch_deprecated_frame_saved_pc(),
1394 set_gdbarch_deprecated_frame_init_saved_regs(),
1395 set_gdbarch_deprecated_push_arguments(),
1396 set_gdbarch_deprecated_push_return_address(),
1397 set_gdbarch_deprecated_pop_frame(),
1398 set_gdbarch_deprecated_call_dummy_words(),
1399 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1400 set_gdbarch_deprecated_init_extra_frame_info(),
1401 set_gdbarch_deprecated_dummy_write_sp(), and
1402 set_gdbarch_deprecated_pc_in_call_dummy().
1403 Add calls to the following functions:
1404 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1405 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1406 frame_base_set_default().
1407 * Makefile.in (frv-tdep.o): Update dependencies.
1408
68f6cf99
MK
14092003-09-09 Mark Kettenis <kettenis@gnu.org>
1410
1411 * dwarf2-frame.c (read_encoded_value): Add support for
1412 DW_EH_PE_aligned encoding.
1413
73b65bb0
DJ
14142003-09-08 Daniel Jacobowitz <drow@mvista.com>
1415
1416 * infrun.c (normal_stop): Don't print a message if the inferior
1417 has exited.
1418
7c8a5605
JB
14192003-09-08 Jim Blandy <jimb@redhat.com>
1420
1421 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1422 * dbxread.c: #include "gdb_assert.h".
1423 (read_dbx_symtab): If the objfile has no .data section, use the
1424 section index for the .bss section instead.
1425
7dd88986
DJ
14262003-09-08 Daniel Jacobowitz <drow@mvista.com>
1427
1428 * frame.c (deprecated_safe_get_selected_frame): New function.
1429 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1430 * findvar.c (read_var_value): Call it.
1431
55ff77ac
CV
14322003-09-08 Corinna Vinschen <vinschen@redhat.com>
1433
1434 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1435 (sh64-tdep.o): Add dependencies.
1436 * configure.tgt: Add FIXME to sh-*-linux*.
1437 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1438 (sh_gdbarch_init): Always set correct sh_show_regs function
1439 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1440 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1441 * sh64-tdep.c: New file, containing all sh64 related code from
1442 sh-tdep.c.
1443 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1444 * config/sh/linux.mt (TDEPFILES): Ditto.
1445 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1446 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1447 * config/sh/wince.mt (TDEPFILES): Ditto.
1448
bfb39158
DJ
14492003-09-07 Daniel Jacobowitz <drow@mvista.com>
1450
1451 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1452 (stop_wait_callback): Handle !lp->signalled also.
1453 (lin_lwp_has_pending, flush_callback): New functions.
1454 (lin_lwp_wait): Call flush_callback.
1455 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1456 (linux_proc_pending_signals): New function.
1457 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1458
9407de8e
DJ
14592003-09-07 Daniel Jacobowitz <drow@mvista.com>
1460
1461 From Nick Kelsey <nickk@ubicom.com>:
1462 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1463 when the stop PC is at the beginning of a function also.
1464
2ef47cd0
DJ
14652003-09-06 Daniel Jacobowitz <drow@mvista.com>
1466
1467 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1468 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1469
6f4492c8
MK
14702003-09-06 Mark Kettenis <kettenis@gnu.org>
1471
1472 * sol-thread.c: Include "gdb_string.h".
1473
d3420b2f
MK
14742003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1475
1476 * gcore.c: Reorder include files in alphabetical order. Include
1477 "gdb_assert.h". Various coding style fixes.
1478 (derive_stack_segment, derive_heap_segment): Replace check for
1479 non-null BOTTOM and TOP with gdb_assert.
1480 (derive_heap_segment): Replace check for successful creation of
1481 ZERO with gdb_assert.
1482 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1483
5220ea4c
AC
14842003-09-04 Andrew Cagney <cagney@redhat.com>
1485
1486 * thread-db.c (verbose_dlsym): New function.
1487 (thread_db_load): Use verbose_dlsym
1488 (thread_db_new_objfile): Print that libthread_db was loaded, and
1489 that thread debugging was enabled.
1490
6e8c2c06
AC
14912003-09-04 Andrew Cagney <cagney@redhat.com>
1492
1493 * configure.tgt: Add "mips64*-*-*" target. Delete
1494 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1495 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1496 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1497 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1498 mips*-sony-*, and mips64*-*-elf* targets.
1499 * config/mips/embedl.mt: Delete file.
1500 * config/mips/embedl64.mt: Delete file.
1501 * config/mips/mips.mt: Delete file.
1502 * config/mips/mips64.mt: Delete file.
1503 * config/mips/tm-embed.h: Delete file.
1504 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1505 * config/mips/embed64.mt: Delete out-of-date comment.
1506
3a3bc038
AC
15072003-09-04 Andrew Cagney <cagney@redhat.com>
1508
1509 * hppa-tdep.c (hppa_gdbarch_init): Set
1510 "have_nonsteppable_watchpoint".
1511 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1512 * mips-tdep.c (mips_dump_tdep): Do not print
1513 HAVE_NONSTEPPABLE_WATCHPOINT.
1514 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1515 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1516 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1517 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1518
a957e642
CV
15192003-09-04 Corinna Vinschen <vinschen@redhat.com>
1520
1521 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1522 unused code. Add comment.
1523
a6fbcf2f
CV
15242003-09-04 Corinna Vinschen <vinschen@redhat.com>
1525
1526 * breakpoint.c (watchpoint_check): Check for pc being in an
1527 epilogue if watchpoint frame couldn't be found.
1528
c14a44d5
AC
15292003-09-04 Andrew Cagney <cagney@redhat.com>
1530
1531 * Makefile.in: Re-generate all dependencies.
1532
f6c40618
AC
15332003-09-03 Andrew Cagney <cagney@redhat.com>
1534
1535 * arch-utils.h (legacy_print_insn): Delete declaration.
1536 * arch-utils.c (legacy_print_insn): Delete function.
1537 * disasm.c (deprecated_tm_print_insn_info): Delete.
1538 (_initialize_disasm): Delete function, contained code initializing
1539 deprecated_tm_print_insn_info.
1540 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1541 (deprecated_tm_print_insn_info): Delete.
1542 (TARGET_PRINT_INSN): Do not provide a default.
1543 * gdbarch.h, gdbarch.c: Re-generate.
1544
242e8be5
AC
15452003-09-03 Andrew Cagney <cagney@redhat.com>
1546
1547 * disasm.c (fprintf_disasm): New function.
1548 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1549 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1550 reverts 2003-08-14 change.
1551 (_initialize_disasm): Call "init_disassemble_info", instead of
1552 INIT_DISASSEMBLE_INFO_NO_ARCH.
1553
3ffc3dda
MS
15542003-09-03 Michael Snyder <msnyder@redhat.com>
1555
1556 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1557
52d16ba8
AC
15582003-09-03 Andrew Cagney <cagney@redhat.com>
1559
1560 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1561 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1562 * symfile.c (syms_from_objfile): Update.
1563 (reread_symbols): `Update
1564 * exec.c (exec_file_attach): Update.
1565 (exec_file_attach): Update.
1566 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1567 2003-08-29 change.
1568 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1569
eb5492fa
DJ
15702003-09-03 Daniel Jacobowitz <drow@mvista.com>
1571
1572 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1573 trad-frame.h.
1574 (arm_get_cache): Delete macro.
1575 (struct arm_prologue_cache): Update comments. Make saved_regs into
1576 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1577 to prev_sp.
1578 (thumb_scan_prologue): Update for cache changes. Don't call
1579 DEPRECATED_PC_IN_CALL_DUMMY.
1580 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1581 argument and use it in desperation search for our prologue. Do not
1582 search past the specified PC.
1583 (arm_make_prologue_cache): Simplify.
1584
1585 (arm_prologue_this_id, arm_prologue_prev_register)
1586 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1587 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1588 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1589 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1590 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1591
1592 (arm_frame_chain_valid, arm_find_callers_reg)
1593 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1594 (arm_pop_frame): Delete obsolete methods.
1595 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1596
1597 (arm_gdbarch_init): Update for new frame methods. Register prologue
1598 and sigtramp unwinders. Set the default frame base method.
1599
1600 * Makefile.in (arm-tdep.o): Update dependencies.
1601 * varobj.c (find_frame_addr_in_frame_chain): Call
1602 get_frame_base_address.
1603 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1604
24de872b
DJ
16052003-09-03 Daniel Jacobowitz <drow@mvista.com>
1606
1607 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1608 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1609 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1610 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1611 Take NEXT_FRAME and CACHE arguments. Call
1612 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1613 Set unwound_pc in CACHE instead of modifying the frame argument.
1614 Don't bother checking the frame type when looking for sigtramp
1615 frames.
1616 (arm_make_prologue_cache, arm_frame_chain)
1617 (arm_init_extra_frame_info): New functions.
1618
9b8d791a
DJ
16192003-09-03 Daniel Jacobowitz <drow@mvista.com>
1620
1621 * arm-tdep.c (arm_get_cache): Define.
1622 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1623 unwound_sp, unwound_pc, and saved_regs.
1624 (thumb_scan_prologue): Take a cache instead of the frame.
1625 (arm_scan_prologue): Likewise.
1626 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1627 instead of a temporary frame.
1628 (arm_init_extra_frame_info): Allocate and use a cache.
1629 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1630
7ee3275f
AC
16312003-09-03 Andrew Cagney <cagney@redhat.com>
1632
1633 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1634 * config/mips/wince.mt (TM_CLIBS): Ditto.
1635 * config/sh/wince.mt (TM_CLIBS): Ditto.
1636 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1637 * config/sparc/sp64.mt (CC): Delete.
1638
57b29be7
AC
16392003-09-03 Andrew Cagney <cagney@redhat.com>
1640
1641 * defs.h: Do not include "arch-utils.h".
1642 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1643 GDB_MULTI_ARCH_PURE.
1644 * configure.in (GDB_MULTI_ARCH): Do not define.
1645 * configure, config.in: Regenerate.
1646 * configure.tgt: Do not set variable "gdb_multi_arch".
1647 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1648 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1649 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1650 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1651 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1652 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1653 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1654 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1655 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1656 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1657 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1658 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1659 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1660 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1661 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1662 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1663 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1664 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1665
12e035e2
MC
16662003-08-30 Michael Chastain <mec@shout.net>
1667
1668 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1669 * config/m68k/nm-hp300hpux.h: Delete.
1670 * config/m68k/tm-hp300hpux.h: Delete.
1671 * config/m68k/xm-hp300hpux.h: Delete.
1672 * config/m68k/xm-hp300bsd.h: Delete.
1673 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1674 tm-hp300hpux.h, xm-hp300hpux.h.
1675 * somsolib.c: Remove comment about hp300 shared libraries.
1676
bda34dc2
MK
16772003-08-31 Mark Kettenis <kettenis@gnu.org>
1678
5bca7895
MK
1679 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1680 Only define PTRACE_GET_THREAD_AREA is not already defined.
1681 Various style fixes in code and comments and some additional
1682 spelling fixes in comments. Move after functions dealing with
1683 debug registers.
1684 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1685 Fix coding-style.
1686
bda34dc2
MK
1687 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1688 frame_unwind_register_unsigned instead of
1689 frame_unwind_unsigned_register.
1690
c890192f
MK
16912003-08-30 Mark Kettenis <kettenis@gnu.org>
1692
1693 * configure.in: Search for gethostbyname in libnsl.
1694 * configure: Regenerated.
1695
60fac5b8
MK
16962003-08-29 Mark Kettenis <kettenis@gnu.org>
1697
e294916c
MK
1698 * configure.in: Remove redundant AC_MSG_RESULT in check for
1699 uintptr_t in stdint.h.
1700 * configure: Regenerated.
1701
c40d267a
MK
1702 * amd64-nat.h (struct regcache): Add opaque declaration.
1703
60fac5b8
MK
1704 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1705 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1706 Change "register array" to "register cache" in comments.
1707 (x86_64_linux_gregset64_reg_offset): New variable.
1708 (GETREGS_SUPPLIES): Remove macro.
1709 (supply_gregset): Call amd64_supply_native_gregset instead of
1710 x86_64_linux_supply_gregset.
1711 (fill_gregset): Rename `regno' to `regnum'. Call
1712 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1713 (store_regs): Rename `regno' to `regnum'.
1714 (store_fpregs): Rename `regno' to `regnum'.
1715 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1716 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1717 Reorganize function a bit.
1718 (store_inferior_registers): Rename `regno' to `regnum'. Use
1719 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1720 Reorganize function a bit.
1721 (_initialize_x86_64_linux_nat): New function.
1722 * config/i386/x86-64linux.mh.
1723
546143b6
AC
17242003-08-29 Andrew Cagney <cagney@redhat.com>
1725
1726 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1727 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1728 (target_remove_watchpoint): Delete macro.
1729 (target_insert_watchpoint): Delete macro.
1730 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1731 (remote_mips_stopped_by_watchpoint): Delete declaration.
1732 (remote_mips_remove_watchpoint): Delete declaration.
1733 (remote_mips_set_watchpoint): Delete declaration.
1734 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1735 * remote-mips.c (_initialize_remote_mips): Set
1736 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1737 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1738 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1739 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1740 (mips_stopped_by_watchpoint): Rename
1741 remote_mips_stopped_by_watchpoint.
1742 (mips_can_hardware_watchpoint): Rename
1743 remote_mips_can_use_hardware_watchpoint, update function
1744 signature.
1745
7bace51b
MK
17462003-08-29 Mark Kettenis <kettenis@gnu.org>
1747
b0f5c6f2
MK
1748 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1749 USER_DS. We haven't given them a register number yet.
1750
2a6d284d
MK
1751 * amd64-nat.h: New file.
1752 * amd64-nat.c: New file.
1753 * amd64fbsd-nat.c: Include "amd64-nat.h".
1754 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1755 (amd64fbsd32_r_reg_offset): New variable.
1756 (supply_gregset): Simply call amd64_supply_native_gregset.
1757 (fill_gregset): Rename `regno' to `regnum'. Simply call
1758 amd64_collect_native_gregset.
1759 (fill_fpregset): Rename `regno' to `regnum'.
1760 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1761 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1762 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1763 `fpregset_t'. Call amd64_supply_native_gregset instead of
1764 supply_gregset. Call x86_64_supply_fxsave instead of
1765 supply_fpregset.
1766 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1767 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1768 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1769 `fpregset_t'. Call amd64_collect_native_gregset instead of
1770 fill_gregset. Call x86_64_collect_fxsave instead of
1771 fill_fpregset.
1772 (_initialize_am64fbsd_nat): Initialize
1773 amd64_native_gregset32_reg_offset and
1774 amd64_native_gregset64_reg_offset.
1775 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1776
a16d75cc
MK
1777 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1778 null pointer. Fix typo in comment.
1779
7bace51b
MK
1780 * regcache.c (supply_register): Reimplement to call
1781 regcache_raw_supply.
1782 (regcache_collect): Reimplement by calling regcache_raw_collect.
1783
9a661b68
MK
17842003-08-28 Mark Kettenis <kettenis@gnu.org>
1785
1786 * regcache.c (register_buffer): Consitify first argument.
1787 (regcache_raw_supply, regcache_raw_collect): New
1788 functions.
1789
e94cc8fa
DJ
17902003-08-28 Daniel Jacobowitz <drow@mvista.com>
1791
1792 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1793 by Nathan J. Williams.
1794
c64bd0ce
DJ
17952003-08-28 Daniel Jacobowitz <drow@mvista.com>
1796
1797 * lin-lwp.c (wait_lwp): New function, copied from
1798 stop_wait_callback. Clean up.
1799 (stop_wait_callback): Use wait_lwp.
1800
e5ab0dce
AC
18012003-08-28 Andrew Cagney <cagney@redhat.com>
1802
1803 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1804 flavour and disassembler options.
1805 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1806 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1807 deprecated_tm_print_insn_info.
1808
a788de9b
AC
18092003-08-27 Andrew Cagney <cagney@redhat.com>
1810
1811 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1812 Use target_read_memory.
1813 (s390_get_frame_info): Update. Do not reference
1814 deprecated_tm_print_insn_info.
1815 (s390_check_function_end, s390_is_sigreturn): Ditto.
1816
36482093
AC
18172003-08-27 Andrew Cagney <cagney@redhat.com>
1818
1819 * Makefile.in (cris-tdep.o): Update dependencies.
1820 * cris-tdep.c: Include "gdb_assert.h".
1821 (cris_gdbarch_init): Set print_insn.
1822 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1823 (cris_delayed_get_disassembler): Simplify, directly call the
1824 disassembler returned by cris_get_disassembler.
1825 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1826 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1827 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1828 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1829 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1830 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1831 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1832 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1833 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1834 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1835 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1836 (gdb_print_insn_sparc): Delete function.
1837 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1838 deprecated_tm_print_insn_info.
1839 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1840 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1841 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1842 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1843 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1844 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1845 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1846 (s390_gdbarch_init): Set print_insn.
1847
0285512f
AC
18482003-08-27 Andrew Cagney <cagney@redhat.com>
1849
1850 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1851 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1852 * infcall.c (call_function_by_hand): Convert the entry point
1853 address into a code address.
1854
cdcd5552
AC
18552003-08-27 Andrew Cagney <cagney@redhat.com>
1856
1857 * dsrec.c: Include "gdb_string.h".
1858 * Makefile.in (dsrec.o): Update dependencies.
1859
e85cddad
MC
18602003-08-27 Michael Chastain <mec@shout.net>
1861
1862 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1863
8bbfbb23
AC
18642003-08-27 Andrew Cagney <cagney@redhat.com>
1865
1866 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1867 (alpha_osf1_init_abi): Do not set call_dummy_address.
1868
ba058b66
DC
18692003-08-27 David Carlton <carlton@kealia.com>
1870
1871 From Randolph Chung <tausq@debian.org>:
1872 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1873 compiles with -Wformat-nonliteral -Werror.
1874
87f84c9d
JB
18752003-08-26 Jim Blandy <jimb@redhat.com>
1876
1877 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1878 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1879 bfd_lookup_symbol, since we only want symbols in code sections.
1880 (look_for_base): Pass zero as the SECT_FLAGS argument to
1881 bfd_lookup_symbol, since we're not concerned about which section
1882 the symbol is in.
1883
102d615a
JJ
18842003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1885
1886 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1887 we are frameless or the return address register is already known.
1888
cc7ad3ea
AC
18892003-08-26 Andrew Cagney <cagney@redhat.com>
1890
1891 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1892 in size. Add comments.
1893
af8b88dd
JJ
18942003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1895
1896 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1897 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1898
e0a4f5a1
JM
18992003-08-26 Jason Merrill <jason@redhat.com>
1900
1901 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1902 case out of #ifdef MIPS block.
1903
4ae9ee8e
DJ
19042003-08-25 Daniel Jacobowitz <drow@mvista.com>
1905
1906 PR java/1322
1907 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1908 available before calling SECT_OFF_TEXT.
3c164570 1909 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1910
004d836a
JJ
19112003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1912
1913 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1914 bof, and nat0-nat127 as pseudo-registers.
1915 (ia64_frame_cache): New struct used to cache frame info.
1916 (ia64_register_reggroup_p): New routine used to override default
1917 register grouping so registers without names are still saved and
1918 restored.
1919 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1920 pseudo values.
1921 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1922 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1923 (ia64_alloc_frame_cache): New routine to create a new
1924 ia64_frame_cache.
1925 (examine_prologue): Change prototype to add next_frame pointer.
1926 Assume frameless until otherwise proven. Verify that the cfm for
1927 current frame matches the cfm that should occur for the prologues
1928 alloc insn and if equal, mark as not frameless. At end of routine,
1929 if not frameless, calculate registers for the previous frame and store
1930 in the cache, if a cache is provided.
1931 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1932 and pass 0 for next_frame.
1933 (ia64_store_return_value): Change to use convert_typed_floating()
1934 instead of calling ia64_convert_to_raw().
1935 (ia64_extract_return_value): Change to use convert_typed_floating()
1936 instead of calling ia64_convert_to_virtual().
1937 (ia64_frame_cache): New routine to support new frame model.
1938 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1939 (ia64_frame_sniffer): Ditto.
1940 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1941 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1942 (ia64_sigtramp_frame_prev_register): Ditto.
1943 (ia64_sigtramp_frame_sniffer): Ditto.
1944 (ia64_frame_base_address): Ditto.
1945 (ia64_extract_struct_value_address): Change to issue error message.
1946 (ia64_frame_align): New routine to align sp.
1947 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1948 (ia64_push_arguments): Removed. Logic moved to
1949 ia64_push_dummy_call().
1950 (ia64_push_return_address): Ditto.
1951 (ia64_unwind_dummy_id): New function.
1952 (ia64_unwind_pc): Ditto.
1953 (ia64_convert_register_p): Ditto.
1954 (ia64_register_to_value): Ditto.
1955 (ia64_value_to_register): Ditto.
1956 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1957 (ia64_register_byte, ia64_register_raw_size): Ditto.
1958 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1959 (ia64_saved_pc_after_call): Ditto.
1960 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1961 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1962 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1963 (ia64_register_convert_to_raw): Ditto.
1964 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1965 (ia64_init_extra_frame_info): Ditto.
1966 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1967 (ia64_gdbarch_init): Remove registering of deprecated functions that
1968 are no longer used. Add registration of new gdbarch functions.
1969 Remove registering deprecated_write_sp. Replace
1970 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1971 Delete set_gdbarch_deprecated_register_convertible(),
1972 set_gdbarch_deprecated_register_convert_to_virtual(), and
1973 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1974 set_gdbarch_deprecated_register_size(),
1975 set_gdbarch_deprecated_register_bytes(),
1976 set_gdbarch_pcregnum(),
1977 set_gdbarch_deprecated_register_byte(),
1978 set_gdbarch_deprecated_register_raw_size(),
1979 set_gdbarch_deprecated_max_register_raw_size(),
1980 set_gdbarch_deprecated_register_virtual_size(),
1981 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1982 Replace set_gdbarch_deprecated_extract_return_value() with
1983 set_gdbarch_extract_return_value(). Remove calls to:
1984 set_gdbarch_deprecated_saved_pc_after_call();
1985 set_gdbarch_deprecated_frame_chain(),
1986 set_gdbarch_deprecated_frame_saved_pc(),
1987 set_gdbarch_deprecated_frame_init_saved_regs(),
1988 set_gdbarch_deprecated_get_saved_register(),
1989 set_gdbarch_deprecated_call_dummy_words(),
1990 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1991 set_gdbarch_deprecated_init_extra_frame_info(),
1992 set_gdbarch_deprecated_frame_args_address(),
1993 set_gdbarch_deprecated_frame_locals_address(),
1994 and set_gdbarch_deprecated_dummy_write_sp().
1995 Add set_gdbarch_convert_register_p(),
1996 set_gdbarch_register_to_value(),
1997 set_gdbarch_value_to_register(),
1998 set_gdbarch_push_dummy_call(),
1999 set_gdbarch_frame_align(),
2000 set_gdbarch_unwind_dummy_id(),
2001 set_gdbarch_unwind_pc(),
2002 frame_unwind_append_sniffer(),
2003 frame_unwind_append_sniffer(),
2004 and frame_base_set_default().
2005
aede7613
CD
20062003-08-25 Chris Demetriou <cgd@broadcom.com>
2007
2008 * configure.tgt: Document need for special "mipsisa64" handling.
2009 (mipsisa64*-*-linux64): Handle as target linux64.
2010 (mipsisa64*-*-*): Handle as target embed64.
2011
43c3a82e
MC
20122003-08-18 Michael Chastain <mec@shout.net>
2013
2014 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2015 objfile bug.
2016
6564f77d
MK
20172003-08-24 Mark Kettenis <kettenis@gnu.org>
2018
2de139ba
MK
2019 * i387-tdep.h: Update copyright date.
2020 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2021
6564f77d
MK
2022 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2023 CFLAGS games to reflect reality.
2024
42cf1509
AC
20252003-08-24 Andrew Cagney <cagney@redhat.com>
2026
2027 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2028 GDB_MULTI_ARCH is always non-zero.
2029 * osabi.c (_initialize_gdb_osabi): Ditto.
2030 (gdbarch_init_osabi): Ditto.
2031 * sparc-tdep.c: Ditto for #if code.
2032
0485f6ad
MK
20332003-08-23 Mark Kettenis <kettenis@gnu.org>
2034
2035 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2036 Update comments.
2037 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2038 comments.
2039 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2040 x86_64_supply_fxsave.
2041 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2042 x86_64_supply_fxsave.
2043 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2044 x86_64_supply_fxsave.
2045
c7716133
AJ
20462003-08-23 Andreas Jaeger <aj@suse.de>
2047
2048 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2049 i387_supply_fxsave.
2050
ed504bdf
MK
20512003-08-23 Mark Kettenis <kettenis@gnu.org>
2052
2053 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2054 i387_supply_register.
2055 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2056 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2057 i387_supply_fsave.
2058 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2059 i387_supply_fxsave.
2060 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2061 i387_supply_fsave.
2062 * i386bsd-nat.c (supply_fpregset): Adjust call to
2063 i387_supply_fsave.
2064 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2065 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2066 supply_fpregset.
2067 (store_inferior_registers): Remove extraneous whitespace. Call
2068 i387_fill_fsave instead of fill_fpregset.
2069 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2070 (supply_fpregset): Likewise.
2071 * i386v4-nat.c (supply_fpregset): Adjust call to
2072 i387_supply_fsave.
2073 * i386-interix-nat.c (supply_fpregset): Adjust call to
2074 i387_supply_fsave.
2075 * i386-linux-nat.c (supply_fpregset): Adjust call to
2076 i387_supply_fsave.
2077 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2078 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2079 i387supply_fsave and i387_supply_fxsave.
2080 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2081 Incorporate code from `i387_supply_register.
2082 (i387_supply_register): Remove.
2083 (i387_supply_fxsave): Add `regnum' argument.
2084 Update comments.
2085 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2086 prototype.
2087 (i387_supply_register): remove prototype.
2088 Update comments.
2089
4be5d520
MC
20902003-08-22 Michael Chastain <mec@shout.net>
2091
2092 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2093 Add lines for files in gdb/testsuite/gdb.cp/* that are
2094 still not 8.3 unique.
2095
7ed85d26
DJ
20962003-08-22 Daniel Jacobowitz <drow@mvista.com>
2097
2098 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2099 TYPE_VPTR_FIELDNO is valid.
2100
eb0d3137
MK
21012003-08-19 Mark Kettenis <kettenis@gnu.org>
2102
2103 * utils.c (set_width_command): Remove prototypes.
2104 (set_screen_size): New prototype.
2105 (init_page_info): Simplify by fetching the screen size from
2106 Readline. Call set_screen_size.
2107 (set_screen_size): New function.
2108 (set_width): Add missing whitespace in comment.
2109 (set_width_command): Call set_screen_size.
2110 (set_height_command): New function.
2111 (initialize_utils): Fix formatting. Make "set height" command
2112 call set_height_command. Remove redundant code that turns off
2113 pagination if output isn't a terminal. Remove redundant call to
2114 set_width_command.
2115
7e6d0ac8
MK
21162003-08-22 Mark Kettenis <kettenis@gnu.org>
2117
3567a8ea
MK
2118 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2119 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2120 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2121 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2122 `case' keyword.
2123 (sparc64_register_info): Give the reister with number
2124 SPARC64_STATE_REGNUM a name.
2125 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2126 %asi and %ccr.
2127 (sparc64_push_dummy_call): Take BIAS into account when checking
2128 stcak alignment.
2129 (sparc_software_single_step): Remove assertions that check whether
2130 NPC and NNPC were zero.
2131 (sparc_supply_rwindow): Make public. Merge functionality with
2132 sparc64_supply_rwindow.
2133 (sparc_fill_rwindow): Make public. Merge functionality with
2134 sparc64_fill_rwindow.
2135 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2136 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2137 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2138 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2139 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2140
7e6d0ac8
MK
2141 * reggroups.c: Add whitespace after declarations of local
2142 variables in functions.
2143
72e5f484
MC
21442003-08-21 Michael Chastain <mec@shout.net>
2145
2146 * gdbtypes.h: Change array bound type from an int to enum.
2147
435ac228
AC
21482003-08-21 Andrew Cagney <cagney@redhat.com>
2149
2150 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2151 * config/sparc/tm-sparc.h: Ditto.
2152 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2153 unconditionally.
2154 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2155
0d0e1a63
MK
21562003-07-13 Mark Kettenis <kettenis@gnu.org>
2157
2158 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2159 (register_objfile_data, set_objfile_data, objfile_data): New
2160 prototypes.
2161 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2162 prototypes.
2163 (allocate_objfile): Call objfile_alloc_data.
2164 (free_objfile): Call objfile_free_data.
2165 (struct objfile_data): New.
2166 (struct objfile_data_registration): New.
2167 (struct objfile_data_registry): New.
2168 (objfile_data_registry): New variable.
2169 (register_objfile_data): New function.
2170 (objfile_alloc_data, objfile_free_data): New functions.
2171 (set_objfile_data, objfile_data): New functions.
2172 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2173 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2174 (_initialize_dwarf2_frame): New function and prototype.
2175
d90cf509
AC
21762003-08-21 Andrew Cagney <cagney@redhat.com>
2177
2178 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2179 a specific architecture.
2180 * arch-utils.h (set_architecture_from_arch_mach): Delete
2181 declaration.
2182 (target_architecture_hook): Delete declaration.
2183 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2184 (default_float_format): Assume GDB_MULTI_ARCH.
2185 (default_double_format): Assume GDB_MULTI_ARCH.
2186 (set_endian_from_file): Delete function.
2187 (arch_ok): Delete function.
2188 (set_arch): Delete function.
2189 (set_architecture_from_arch_mach): Delete function.
2190 (set_architecture_from_file): Delete function.
2191 (set_architecture): Assume GDB_MULTI_ARCH.
2192 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2193
8b39fe56
MK
21942003-08-21 Mark Kettenis <kettenis@gnu.org>
2195
2196 Rewrite FreeBSD/sparc64 native configuration.
2197 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2198 * sparc64fbsd-nat.c: New file.
2199 * sparc64fbsd-tdep.c: New file.
2200 * sparc64-tdep.c sparc64-tdep.h: New files.
2201 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2202 sparc64fbsd-tdep.o): New dependencies.
2203 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2204 and sparc64fbsd-tdep.c.
2205 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2206 * config/sparc/fbsd.mh: Remove copyright notice.
2207 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2208 sparcbsd-nat.o.
2209 * config/sparc/fbsd.mt: Remove copyright notice.
2210 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2211 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2212 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2213 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2214 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2215 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2216 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2217 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2218 "sparc/tm-sp64.h".
2219 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2220 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2221
a7f19c79
MC
22222003-08-21 Michael Chastain <mec@shout.net>
2223
2224 * symtab.h: Add doco on the space critical structures and
2225 some measurements of space usage.
2226
da08ea5b
MS
22272003-08-21 Michael Snyder <msnyder@redhat.com>
2228
2229 * tracepoint.c (trace_dump_command): Trace break address
2230 is subject to DECR_PC_AFTER_BREAK.
2231 (set_traceframe_context): Make "trace_line" an int.
2232 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2233
6df2bf50
MS
22342003-08-20 Michael Snyder <msnyder@redhat.com>
2235
2236 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2237 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2238 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2239 argument passing.
2240 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2241 functions, replace sh_push_dummy_call.
2242 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2243
0955bbf0
MC
22442003-08-20 Michael Chastain <mec@shout.net>
2245
2246 * gdbtypes.h (struct main_type): Rearrange to save space.
2247
260a4188
MS
22482003-08-20 Michael Snyder <msnyder@redhat.com>
2249
2250 * trad-frame.c: Comment typo fix.
2251
8baa6f92
KB
22522003-08-20 Michael Snyder <msnyder@redhat.com>
2253 Kevin Buettner <kevinb@redhat.com>
2254
2255 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2256 (frv_frame_init_saved_regs): Add declaration.
2257 (frame_extra_info): Add new field ``saved_regs''.
2258 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2259 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2260 Update frame related code.
2261 (frv_extract_struct_value_address): Adjust formatting.
2262 * Makefile.in (frv-tdep.o): Update dependencies.
2263 * config/frv/tm-frv.h (target_insert_watchpoint)
2264 (target_remove_watchpoint, target_insert_hw_breakpoint)
2265 (target_remove_hw_breakpoint): Delete these macros.
2266 (remote_insert_watchpoint, remote_remove_watchpoint)
2267 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2268 these declarations.
2269
87193939
MC
22702003-08-20 Michael Chastain <mec@shout.net>
2271
2272 * defs.h (ENUM_BITFIELD): New macro.
2273 * symtab.h (ENUM_BITFIELD): Use it.
2274 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2275
062103ba
SA
22762003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2277
2278 * MAINTAINERS (write after approval): Add myself.
2279
8b148df9
AC
22802003-08-18 Andrew Cagney <cagney@redhat.com>
2281
2282 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2283 * gdbarch.h, gdbarch.c: Re-generate.
2284 * infcall.c (call_function_by_hand): Adjust the SP by
2285 frame_red_zone_size before allocating any stack space.
2286 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2287 * x86-64-tdep.c (x86_64_frame_align): New function.
2288 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2289
2290 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2291 Remove code adjusting SP so that it skips over the Red Zone.
2292
954a4db8
MK
22932003-08-18 Mark Kettenis <kettenis@gnu.org>
2294
2295 * NEWS (New native configurations): Mention FreeBSD/amd64.
2296
1a241548
AC
22972003-08-18 Andrew Cagney <cagney@redhat.com>
2298
2299 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2300 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2301 "m68k_frame_p".
2302 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2303
f82b2acd
MK
23042003-08-18 Mark Kettenis <kettenis@gnu.org>
2305
2306 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2307
4056d258
ML
23082003-08-18 Michal Ludvig <mludvig@suse.cz>
2309
2310 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2311 Define.
2312 * i386-linux-nat.c: Include "linux-nat.h".
2313 (child_post_startup_inferior): New function.
2314
99ab4326
MK
23152003-08-18 Mark Kettenis <kettenis@gnu.org>
2316
2317 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2318 at the start of a frameless function. This probably fixes PR
2319 backtrace/1338.
2320
c8d5f0d6
MC
23212003-08-17 Michael Chastain <mec@shout.net>
2322
2323 * symfile.c (find_sym_fns): Remove special case for apollo target.
2324
9016a515
DJ
23252003-08-17 Daniel Jacobowitz <drow@mvista.com>
2326
2327 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2328 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2329 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2330 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2331 (linux_supports_tracevforkdone): New function.
2332 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2333 TRACEVFORKDONE.
2334 (child_follow_fork): Handle vfork.
2335 (linux_handle_extended_wait): Likewise. Also handle exec.
2336 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2337 * NEWS: Mention fork tracing.
2338
c538c11c
DJ
23392003-08-17 Daniel Jacobowitz <drow@mvista.com>
2340
2341 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2342
4de4c07c
DJ
23432003-08-17 Daniel Jacobowitz <drow@mvista.com>
2344
2345 * Makefile.in (i386-linux-nat.o): Update dependencies.
2346 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2347 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2348 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2349 * i386-linux-nat.c: Include "linux-nat.h".
2350 (child_post_startup_inferior): New function.
2351 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2352 * infptrace.c (kill_inferior): Wrap in #ifdef.
2353 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2354 attaching to each LWP.
2355 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2356 (init_lin_lwp_ops): Fill in some more operations.
2357 * linux-nat.h (linux_enable_event_reporting)
2358 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2359 prototypes.
2360 * linux-nat.c (linux_enable_event_reporting): New function.
2361 (child_post_attach, linux_child_post_startup_inferior)
2362 (child_post_startup_inferior, child_follow_fork)
2363 (linux_handle_extended_wait, kill_inferior): New functions.
2364
7996bcec
AC
23652003-08-16 Andrew Cagney <cagney@redhat.com>
2366
2367 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2368 * gdbarch.h, gdbarch.c: Re-generate.
2369
3d48a7a0
MK
23702003-08-16 Mark Kettenis <kettenis@gnu.org>
2371
2372 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2373
7989c619
AC
23742003-08-16 Andrew Cagney <cagney@redhat.com>
2375
2376 * NEWS: Mention that "set prompt-escape-char" was deleted.
2377 * top.c (get_prompt_1): Delete function.
2378 (gdb_prompt_escape):
2379 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2380 prompt-escape-char" command.
2381 (MAX_PROMPT_SIZE): Delete macro.
2382 (get_prompt): Simplify, do not call get_prompt_1.
2383
07978cd8
AC
23842003-08-16 Andrew Cagney <cagney@redhat.com>
2385
2386 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2387 -Werror. -Wformat-nonliteral problems.
2388
3ff7cf9e
JB
23892003-08-15 J. Brobecker <brobecker@gnat.com>
2390
2391 Further multiarching work mostly for hppa64-*-hpux11:
2392 * hppa-tdep.h: New file.
2393 * hppa-tdep.c: #include hppa-tdep.c.
2394 (hppa32_num_regs): Renamed from hppa_num_regs.
2395 (hppa64_num_regs): New constant.
2396 (hppa64_call_dummy_breakpoint_offset): New constant.
2397 (hppa32_call_dummy_length): New constant.
2398 (hppa64_call_dummy_length): New constant.
2399 (hppa32_stack_align): Make name 32bit explicit.
2400 (hppa32_register_virtual_type): Likewise.
2401 (hppa32_extract_return_value): Likewise.
2402 (hppa32_use_struct_convention): Likewise.
2403 (hppa32_store_return_value): Likewise.
2404 (hppa64_register_virtual_type): New function.
2405 (hppa64_extract_return_value): New function.
2406 (hppa64_use_struct_convention): New function.
2407 (hppa64_store_return_value): New function.
2408 (hppa_frame_locals_address): Remove declaration, function does
2409 not exist anymore.
2410 (hppa_register_byte): Add support for PA64 ABI.
2411 (hppa_gdbarch_init): Add support for PA64 ABI.
2412 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2413 Make name 32bit explicit.
2414 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2415 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2416 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2417 (hppa64_hpux_frame_base_before_sigtramp): New function.
2418 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2419 * config/pa/tm-hppa64.h: Remove macros that are no longer
2420 necessary now that the gdbarch vector is properly setup.
2421 Transform some macros into function calls. Some minor cleanup.
2422 * config/pa/tm-hppah.h: Update function calls in macros
2423 following the function renaming in hppa-hpux-tdep.c.
2424 * Makefile.in (hppa_tdep_h): New variable.
2425 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2426
5d05ca6d
MS
24272003-08-14 Michael Snyder <msnyder@redhat.com>
2428
2429 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2430
37ba2569
JB
24312003-08-13 J. Brobecker <brobecker@gnat.com>
2432
2433 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2434 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2435 routine.
2436
aed7f26a
MS
24372003-08-13 Michael Snyder <msnyder@redhat.com>
2438
2439 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2440 (frv_saved_pc_after_call): Use deprecated ftype.
2441 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2442 (frv_remote_translate_xfer_address): Remove.
2443 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2444
752d4ac1
JB
24452003-08-13 J. Brobecker <brobecker@gnat.com>
2446
2447 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2448 initialization after the common gdbarch initialization, not before.
2449
1426ac1d
JB
24502003-08-13 J. Brobecker <brobecker@gnat.com>
2451
2452 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2453 (ADDR_BITS_REMOVE): Remove, redundant.
2454
b6fbdd1d
JB
24552003-08-13 J. Brobecker <brobecker@gnat.com>
2456
2457 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2458 gdbarch method to clear the 2 low bits of text addresses.
2459
44160db3
AC
24602003-08-12 Andrew Cagney <cagney@redhat.com>
2461
2462 * Makefile.in (dsrec.o): Update dependencies.
2463 * dsrec.c: Include "gdb_assert.h".
2464 (make_srec): Use snprintf instead of sprintf, use a literal format
2465 string.
2466
bcf7d3ca
AC
24672003-08-12 Andrew Cagney <cagney@redhat.com>
2468
2469 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2470 FRAME_OBSTACK_ZALLOC.
2471
49ed40de
KB
24722003-08-12 Kevin Buettner <kevinb@redhat.com>
2473
2474 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2475 SSE registers.
2476
b246147c
MK
24772003-08-10 Mark Kettenis <kettenis@gnu.org>
2478
2479 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2480 amd64fbsd_sc_reg_offset): Add extern declarations.
2481 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2482 declarations.
2483
d95fdc0d
BE
24842003-08-11 Ben Elliston <bje@wasabisystems.com>
2485
2486 * MAINTAINERS (write after approval): Update my mail address.
2487
cf6a0e73
AC
24882003-08-10 Andrew Cagney <cagney@redhat.com>
2489
2490 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2491
f837910f
MK
24922003-08-10 Mark Kettenis <kettenis@gnu.org>
2493
e2dbbd2d
MK
2494 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2495 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2496 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2497 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2498 i386bsd_sc_reg_offset): Add extern declarations.
2499 * i386obsd-nat.c: Include "i386-tdep.h"
2500 (_initialize_i386obsd_nat): Remove extern declarations.
2501 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2502 declarations.
2503 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2504 declarations.
2505
f837910f
MK
2506 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2507 instead of frame_read_register.
2508 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2509 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2510 SP_REGNUM.
2511 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2512 instead of frame_unwind_unsigned_register. Use
2513 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2514 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2515 instead of read_register. Use builtin_type_void_data_ptr instead
2516 of builtin_type_void_func_ptr when extracting the address of the
2517 jmp_buf.
2518 (i386_extract_return_value, i386_store_return_value,
2519 i386_pseudo_register_read, i386_pseudo_register_write): Use
2520 register_size instead REGISTER_RAW_SIZE.
2521
edcf254d
AC
25222003-08-10 Andrew Cagney <cagney@redhat.com>
2523
2524 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2525 sprintf. Make "name" constant.
2526
26604a34
MK
25272003-08-10 Mark Kettenis <kettenis@gnu.org>
2528
192285c6
MK
2529 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2530 instead of frame_read_register.
f837910f
MK
2531 (i387_print_float_info): Use get_frame_register and
2532 get_frame_register_unsigned instead of frame_register_read.
192285c6 2533
f0925262
MK
2534 * i386fbsd-nat.c: Include "i386-tdep.h".
2535 (child_resume): Make `eflags' an ULONGEST. Use
2536 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2537 instead of register_read and register_write.
2538
a144416f
MK
2539 * i386bsd-nat.c (fetch_inferior_registers,
2540 store_inferior_registers): Don't use && at the end of a line.
2541 (_initialize_i386bsd_nat): Fix typo.
2542
fec74868
MK
2543 * frame.c (_initialize_frame): Add missing backslash.
2544
87232496
MK
2545 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2546 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2547 and supply_register instead of manipulating the register buffer
2548 directly.
2549
c9b9de0b
MK
2550 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2551 * config/i386/nm-i386sol2.h
2552 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2553
26604a34
MK
2554 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2555 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2556 instructions that GCC likes to mingle into the prologue. Fixes
2557 gdb/1253 and gdb/1255.
2558
25d29d70
AC
25592003-08-09 Andrew Cagney <cagney@redhat.com>
2560
2561 Fix GDB PR cli/926.
2562 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2563 * command.h (add_setshow_uinteger_cmd): Declare.
2564 * frame.c (set_backtrace_cmd): New function.
2565 (show_backtrace_cmd): New function.
2566 * frame.c (_initialize_frame): Replace "set/show
2567 backtrace-below-main" with "set/show backtrace past-main". Add
2568 command "set/show backtrace limit".
2569 (backtrace_past_main): Rename "backtrace_below_main".
2570 (backtrace_limit): New variable.
2571 (get_prev_frame): Update. Check the backtrace_limit.
2572
9ebf4acf
AC
25732003-08-09 Andrew Cagney <cagney@redhat.com>
2574
2575 * defs.h (xstrprintf): Declare.
2576 * utils.c (xstrprintf): New function.
2577 * breakpoint.c (insert_breakpoints): Replace sprintf and
2578 non-literal format strings, with xstrprintf and cleanups.
2579 (delete_breakpoint,breakpoint_re_set): Ditto.
2580 (commands_command, insert_breakpoints): Ditto.
2581 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2582 (break_at_finish_command_1): Ditto.
2583
3771659b
AC
25842003-08-09 Andrew Cagney <cagney@redhat.com>
2585
2586 * MAINTAINERS (language support): List Adam Fedor as Objective C
2587 maintainer.
2588
b4263afa
JB
25892003-08-08 J. Brobecker <brobecker@gnat.com>
2590
2591 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2592 are now multiarched.
2593
d84defb1
JB
25942003-08-08 J. Brobecker <brobecker@gnat.com>
2595
2596 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2597 longer necessary now that hppa64 is partially multiarch'ed.
2598
f786f615
AC
25992003-08-08 Andrew Cagney <cagney@redhat.com>
2600
2601 * interps.c (interp_set): Check for a NULL "old_interp".
2602
c938e9b0
L
26032003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2604
2605 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2606 (install-only): Support DESTDIR.
2607 (uninstall): Likewise.
2608 (install-gdbtk): Likewise.
2609
9a146a11
EZ
26102003-08-08 Elena Zannoni <ezannoni@redhat.com>
2611
2612 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2613 contains something meaningful at all times.
2614
2615Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2616
62599e99 2617 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2618
56296155
BC
2619Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2620
62599e99 2621 * MAINTAINERS (write after approval): Added self.
56296155 2622
9710e734
AC
26232003-08-07 Andrew Cagney <cagney@redhat.com>
2624
2625 * inferior.h (AT_SYMBOL): Define.
2626 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2627 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2628 * mips-tdep.c (mips_call_dummy_address): Delete function.
2629 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2630 set call_dummy_address.
2631
98b3ab73
AC
26322003-08-07 Andrew Cagney <cagney@redhat.com>
2633
2634 * language.c (op_error): Delete function.
2635 (binop_type_check): Delete function.
2636 * language.h (type_op_error, range_op_error): Delete macros.
2637 (op_error): Delete declaration.
2638
2fcf52f0
AC
26392003-08-07 Andrew Cagney <cagney@redhat.com>
2640
2641 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2642
abd4220e 26432003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2644
abd4220e 2645 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2646 (x86_64_push_arguments): Skip the red zone.
abd4220e 2647
9dd5f34f
AC
26482003-08-05 Andrew Cagney <cagney@redhat.com>
2649
2650 * reggroups.c (reggroup_next): Check for the final entry.
2651
e5e78edc
AC
26522003-08-04 Andrew Cagney <cagney@redhat.com>
2653
ab4e3d93
AC
2654 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2655 * cli/cli-script.c (define_command): Call query directly, instead
2656 of passing it a buffer.
2657 * ocd.c (ocd_error): Pass error a constant format string.
2658 * remote-mips.c (mips_error): Use fputs_filtered.
2659
1062ca82
AC
2660 * solib-svr4.c (_initialize_svr4_solib): Update
2661 register_gdbarch_data call.
2662 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2663
fcc1c85c
AC
2664 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2665 (register_gdbarch_data): Delete "free" parameter. Update
2666 comments.
2667 * gdbarch.h, gdbarch.c: Re-generate.
2668 * reggroups.c (_initialize_reggroup): Update.
2669 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2670 * frame-base.c (_initialize_frame_base): Update.
2671 * frame-unwind.c (_initialize_frame_unwind): Update.
2672 * user-regs.c (_initialize_user_regs): Update.
2673 * remote.c (_initialize_remote): Update.
2674 * regcache.c (_initialize_regcache): Update.
2675
116f06ea
AC
2676 * regcache.c (xfree_regcache_descr): Delete function.
2677 (_initialize_regcache): Update call to register_gdbarch_data.
2678 (init_regcache_descr, init_legacy_regcache_descr): Use
2679 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2680
e5e78edc
AC
2681 * remote.c (free_remote_state): Delete function.
2682 (_initialize_remote): Update register_gdbarch_data.
2683 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2684 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2685
6c7d17ba
AC
26862003-08-04 Andrew Cagney <cagney@redhat.com>
2687
2688 * reggroups.c (struct reggroup_el): Define.
2689 (struct reggroups): Delete field "nr_group". Replace array
2690 "group" with a "first" to "last" linked list.
2691 (reggroups_init): Update. Allocate using gdbarch's obstack.
2692 (reggroups_free): Delete function.
2693 (add_group): Update. Add "el" parameter.
2694 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2695 (default_groups): Update.
2696 (reggroup_next): Replace reggroups.
2697 (reggroups_dump): Update.
2698 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2699 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2700 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2701
89b7795b
DJ
27022003-08-04 Daniel Jacobowitz <drow@mvista.com>
2703
2704 * Makefile.in (tui-interp.o): Update dependencies.
2705
306d9ac5
DC
27062003-08-04 David Carlton <carlton@kealia.com>
2707
2708 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2709 to internal_error call.
2710 * source.c (forward_search_command): Add "%s" format argument.
2711 (reverse_search_command): Ditto.
2712 * top.c (quit_confirm): Ditto.
2713 * cli/cli-setshow.c (do_setshow_command): Ditto.
2714 * cp-valprint.c (cp_print_class_method): Replace
2715 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2716 (cp_print_class_member): Ditto.
2717 * event-top.c (command_line_handler): Ditto.
2718 * linux-proc.c (linux_info_proc_cmd): Ditto.
2719 * p-typeprint.c (pascal_type_print_base): Ditto.
2720 * p-valprint.c (pascal_object_print_class_method): Ditto.
2721 (pascal_object_print_class_member): Ditto.
2722 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2723 * remote.c (remote_cisco_section_offsets): Ditto.
2724 * top.c (command_line_input): Ditto.
2725 * utils.c (vwarning,error_stream,quit): Ditto.
2726 * valprint.c (print_floating,print_binary_chars)
2727 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2728
57bfe177
AC
27292003-08-04 Andrew Cagney <cagney@redhat.com>
2730
2731 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2732
e546b999
AC
27332003-08-02 Andrew Cagney <cagney@redhat.com>
2734
2735 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2736 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2737 amd64fbsd-nat.c.
2738
91092ee5
AC
27392003-08-02 Andrew Cagney <cagney@redhat.com>
2740
2741 * Makefile.in: Update all dependencies and definitions.
2742
889f28e2
AF
27432003-08-02 Adam Fedor <fedor@gnu.org>
2744
2745 * linespec.c (is_objc_method_format): New function
2746 (decode_line_1, locate_first_half): Use it.
2747 Fixes PR objc/1298
2748
880bc914
AC
27492003-08-01 Andrew Cagney <cagney@redhat.com>
2750
2751 * NEWS: Mention that m32r is multi-arch.
2752 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2753 * configure.tgt: Recognize m32r-*-*.
2754 * config/m32r/tm-m32r.h: Delete file.
2755 * config/m32r/m32r.mt: New file.
2756 * m32r-rom.c (m32r_upload_command): Use hostent only when
2757 gethostname succeeds, in order to avoid a compilation
2758 warning.
2759 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2760 compiler warning.
2761
19f59343
MS
27622003-08-01 Michael Snyder <msnyder@redhat.com>
2763
2764 * sh-tdep.c (sh_frame_align): New gdbarch method.
2765 (sh_gdbarch_init): Set up frame_align method.
2766
4e7d7511
MS
27672003-07-31 Michael Snyder <msnyder@redhat.com>
2768
2769 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2770 which is already covered by the new frames infrastructure.
2771
63022984
AC
27722003-07-31 Andrew Cagney <cagney@redhat.com>
2773
2774 * user-regs.c (struct user_reg): Add "next" link.
2775 (struct user_regs): Replace "user" with "first" and "last" links.
2776 (append_user_reg): Add pre-allocated "reg" parameter.
2777 (builtin_user_regs): Provide initial value for "last".
2778 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2779 (user_regs_init): Allocate memory from the gdbarch obstack.
2780 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2781 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2782 linked list.
2783 (usernum_to_user_reg): New function.
2784 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2785 (value_of_user_reg): Use usernum_to_user_reg.
2786 (user_regs_free): Delete function.
2787 (_initialize_user_regs): Update register_gdbarch_data call.
2788
7cf6e574
DJ
27892003-07-31 Daniel Jacobowitz <drow@mvista.com>
2790
2791 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2792
c48a845b
MS
27932003-07-30 Michael Snyder <msnyder@redhat.com>
2794
4e7d7511 2795 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2796 * infcall.c (call_function_by_hand): Pass struct_addr to
2797 value_being_returned.
2798 * infcmd.c (print_return_value): Pass zero as struct_addr.
2799 * values.c (value_being_returned): If struct_addr is passed,
2800 use it instead of trying to recover it from the inferior.
2801
f0d8db19
KB
28022003-07-30 Kevin Buettner <kevinb@redhat.com>
2803
2804 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2805 the prologue analyzer won't need to attempt to extract the pc
2806 value from the woefully incomplete dummy frame.
2807 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2808 possible. Disable code which modifies the frame.
2809
e5c113a1
AC
28102003-07-28 Andrew Cagney <cagney@redhat.com>
2811
2812 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2813 to level 2.
2814 (annotate_breakpoints_table, annotate_record): Ditto.
2815 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2816 (annotate_field_name_end, annotate_field_value): Ditto.
2817 (annotate_field_end, annotate_frame_source_begin): Ditto.
2818 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2819 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2820 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2821 (annotate_frame_address_end, annotate_frame_address): Ditto.
2822 (annotate_frame_args, annotate_frame_end): Ditto.
2823 (annotate_frame_where, annotate_arg_begin): Ditto.
2824 (annotate_arg_name_end, annotate_arg_value): Ditto.
2825 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2826 (annotate_function_call, annotate_signal_name): Ditto.
2827 (annotate_signal_string, annotate_signal_name_end): Ditto.
2828 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2829 (annotate_value_begin, annotate_value_history_value): Ditto.
2830 (annotate_value_history_end, annotate_value_end): Ditto.
2831 (annotate_display_begin, annotate_display_number_end): Ditto.
2832 (annotate_display_format, annotate_display_expression): Ditto.
2833 (annotate_display_expression_end, annotate_display_value): Ditto.
2834 (annotate_display_end, annotate_array_section_begin): Ditto.
2835 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2836 (annotate_elt, annotate_array_section_end): Ditto.
2837
bb1db049
AC
28382003-07-28 Andrew Cagney <cagney@redhat.com>
2839
2840 * regcache.c (struct regcache_descr): Update comments on
2841 nr_raw_registers.
2842 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2843 sizeof_raw_register_valid_p.
2844 (init_regcache_descr): Set nr_raw_registers and
2845 sizeof_raw_register_valid_p before calling
2846 init_legacy_regcache_descr.
2847
20e6603c
AC
28482003-07-28 Andrew Cagney <cagney@redhat.com>
2849
2850 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2851 MOD NUM_REGS.
2852
db742940
DJ
28532003-07-28 Daniel Jacobowitz <drow@mvista.com>
2854
2855 * thread.c (info_threads_command): Use get_selected_frame ().
2856 Check that there is at least one non-sentinel frame.
2857
ce7f4371
SC
28582003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2859
2860 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2861 (m68hc11_pop_frame): Remove.
2862 (m68hc11_frame_saved_pc): Remove.
2863 (m68hc11_frame_chain): Remove.
2864 (m68hc11_frame_init_saved_regs): Remove.
2865 (m68hc11_init_extra_frame_info): Remove.
2866 (m68hc11_store_struct_return): Remove.
2867 (m68hc11_saved_pc_after_call): Remove.
2868
1ea653ae
SC
28692003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2870
2871 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2872 frame unwind information.
2873 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2874 and adapted for frame unwinding.
2875 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2876 (m68hc11_unwind_pc): New function.
2877 (m68hc11_frame_unwind_cache): New function to analyze frames.
2878 (m68hc11_frame_this_id): New function to create new frame struct.
2879 (m68hc11_frame_prev_register): New function to unwind a register from
2880 the frame.
2881 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2882 (m68hc11_frame_p): New function for the above.
2883 (m68hc11_frame_base_address): New function to return fp of frame.
2884 (m68hc11_frame_args_address): Update for frame.
2885 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2886 (m68hc11_unwind_sp): New function.
2887 (m68hc11_unwind_dummy_id): New function.
2888 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2889 calls.
2890
c8a7f6ac
SC
28912003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2892
2893 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2894 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2895 when we are beyond the current pc.
2896
3dc990bf
SC
28972003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2898
2899 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2900 from m68hc11_push_arguments.
2901 (m68hc11_push_arguments): Remove.
2902 (m68hc11_push_return_address): Remove.
2903 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2904 handlers; remove deprecated_extra_stack_alignment_needed.
2905
222e5d1d
AC
29062003-07-27 Andrew Cagney <cagney@redhat.com>
2907
2908 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2909 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2910 REAL_PC and not the pointer.
2911 * hppa-hpux-tdep.c: Include frame.h
2912
a7e9a47e
AC
29132003-07-27 Andrew Cagney <cagney@redhat.com>
2914
2915 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2916 GDB_MULTI_ACH_PARTIAL.
2917
7e3dd49e
AC
29182003-07-27 Andrew Cagney <cagney@redhat.com>
2919
2920 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2921 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2922 operator at start and not end of line.
2923 (decode_prologue): Ditto.
2924 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2925 frame_unwind_register_unsigned instead of
2926 frame_unwind_unsigned_register.
2927 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2928 read_register.
2929 (m32r_push_dummy_call): Use register_size instead of
2930 REGISTER_RAW_SIZE.
2931 (m32r_frame_sniffer): Replace m32r_frame_p.
2932 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2933 * m32r-rom.c (report_transfer_performance): Delete extern
2934 declaration.
2935 (m32r_load, m32r_upload_command): Use print_transfer_performance
2936 instead of report_transfer_performance.
2937 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2938 / add_show_from_set.
2939
0880807f
AC
29402003-07-26 Andrew Cagney <cagney@redhat.com>
2941
2942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2943 store_return_value and extract_struct_value_address.
2944
64ae9269
DJ
29452003-07-26 Daniel Jacobowitz <drow@mvista.com>
2946
2947 PR c++/1267
2948 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2949 NULL, default to the section containing PC.
2950
e286caf2
SC
29512003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2952
2953 * NEWS: Mention "regs" deprecated for m68hc11 too.
2954
2955 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2956 (m68hc11_print_register): New function to print out one register.
2957 (m68hc11_print_registers_info): New function to print registers.
2958 (show_regs): Deprecate and use the above.
2959 (m68hc11_gdbarch_init): Install the print_registers_info.
2960
705b278b
JJ
29612003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2962
2963 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2964 that we have a SIGTRAP before returning non-zero.
2965
63cd4198
EZ
29662003-07-23 Michal Ludvig <mludvig@suse.cz>
2967 Elena Zannoni <ezannoni@redhat.com>
2968
2969 * linespec.c (decode_line_2): Avoid crash if
2970 find_function_start_sal() returns empty record.
2971
6926787d
AS
29722003-07-23 Andreas Schwab <schwab@suse.de>
2973
2974 * ia64-tdep.c (ia64_print_insn): New function.
2975 (ia64_gdbarch_init): Set print_insn to it.
2976 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2977 deprecated_tm_print_insn_info.
2978
708cc1b6
MS
29792003-07-22 Michael Snyder <msnyder@redhat.com>
2980
2981 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2982 handle 8-bit returns (long long).
2983 (h8300h_extract_return_value): Ditto.
2984 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2985
aebd7893
AC
29862003-07-22 Andrew Cagney <cagney@redhat.com>
2987
2988 * gdbarch.c Include "gdb_obstack.h".
2989 (struct gdbarch): Add an "obstack".
2990 (alloc_gdbarch_data): Allocate the gdbarch data using
2991 GDBARCH_OBSTACK_CALLOC.
2992 (free_gdbarch_data): Delete function.
2993 (gdbarch_obstack_zalloc): New function.
2994 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2995 Assert that the architecture is not initialized.
2996 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2997 vector from the obstack.
2998 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2999 architecture obstack.
3000 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3001 (set_gdbarch_data): Assert that the data is not initialized.
3002 (struct gdbarch_data): Delete member "free".
3003 (register_gdbarch_data): Do not initialize "free".
3004 * gdbarch.h, gdbarch.c: Re-generate.
3005
153721e6
AC
30062003-07-22 Andrew Cagney <cagney@redhat.com>
3007
3008 * configure.in (build_warnings): Add -Wformat-nonliteral.
3009 * configure: Re-generate.
3010
c193f044 30112003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3012
3013 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3014
c3228f12
EZ
30152003-07-22 Elena Zannoni <ezannoni@redhat.com>
3016
3017 * findvar.c (read_var_value): Remove case for thread local storage
3018 variables. It is now entirely handled by the dwarf2 location
3019 expression code.
3020 * printcmd.c (address_info): Ditto.
3021 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3022 enumeration value.
3023 (struct symbol): Remove objfile field, which was used by
3024 LOC_THREAD_LOCAL_STATIC only.
3025 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3026 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3027 usage of objfile pointer.
3028 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3029 thread local variables.
3030 Add include of objfiles.h.
3031 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3032 storage variables.
3033 * Makefile.in (dwarf2loc.o): Update dependencies.
3034
aef9bcd2
AC
30352003-07-22 Andrew Cagney <cagney@redhat.com>
3036
3037 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3038 get_frame_base.
3039 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3040 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3041 (struct value): Add opaque declaration.
3042 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3043
d95a8903
AC
30442003-07-21 Andrew Cagney <cagney@redhat.com>
3045
3046 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3047 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3048
4db73d49
SC
30492003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3050
3051 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3052 regcache_cooked_read_unsigned instead of read_register.
3053 (m68hc11_saved_pc_after_call): Likewise.
3054 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3055 instead of write_register.
3056 (m68hc11_register_type): New function.
3057 (m68hc11_register_virtual_type): Remove.
3058 (m68hc11_store_return_value): Convert to use the regcache.
3059 (m68hc11_extract_struct_value_address): Likewise.
3060 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3061 m68hc11_register_type; undeprecate store_return_value and
3062 extract_struct_value_address.
3063
ef2b8fcd
SC
30642003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3065
3066 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3067 and translate to use regcache.
3068 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3069
625b0b97
AC
30702003-07-18 Andrew Cagney <cagney@redhat.com>
3071
3072 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3073 * gdbarch.h, gdbarch.c: Re-generate.
3074 * i386-tdep.c (i386_gdbarch_init): Do not set
3075 DWARF2_BUILD_FRAME_INFO.
3076 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3077 unconditionally.
3078 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3079 DWARF2_BUILD_FRAME_INFO.
3080
22b0d388
AC
30812003-07-18 Andrew Cagney <cagney@redhat.com>
3082
3083 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3084 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3085
1ce5d6dd
AC
30862003-07-18 Andrew Cagney <cagney@redhat.com>
3087
3088 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3089 frame_unwind_address_in_block, instead of frame_pc_unwind.
3090 (dwarf2_frame_cache): Ditto.
3091
e6e5e94c
AC
30922003-07-18 Andrew Cagney <cagney@redhat.com>
3093
3094 * user-regs.h (struct gdbarch): Declare opaque.
3095 * ui-out.h (struct ui_file): Declare opaque.
3096 * dwarf2-frame.h (struct frame_info): Declare opaque.
3097
5483d879
KW
30982003-07-18 Kris Warkentin <kewarken@qnx.com>
3099
3100 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3101 #include "...".
3102 (procfs_meminfo): Change strerror to safe_strerror.
3103 (procfs_can_run): Remove K&R badness.
3104
278a7cf7
MS
31052003-07-17 Michael Snyder <msnyder@redhat.com>
3106
3107 * remote-sim.c: Comment typo fix.
3108
606e3b82
AC
31092003-07-17 Andrew Cagney <cagney@redhat.com>
3110
3111 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3112 configure.
3113 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3114 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3115 GDB_MULTI_ARCH_PARTIAL.
3116
c43af07c
EZ
31172003-07-17 Elena Zannoni <ezannoni@redhat.com>
3118
3119 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3120 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3121 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3122
3b85b0f1
TR
31232003-07-16 Theodore A. Roth <troth@openavr.org>
3124
3125 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3126 found.
3127 (avr_frame_unwind_cache): Don't unwind FP for main.
3128 Update a comment.
3129 Save the computed prev_sp.
3130 (avr_saved_regs_unwinder): Remove function.
3131 (avr_frame_prev_register): Use PC unwind logic from
3132 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3133
336d1bba
AC
31342003-07-16 Andrew Cagney <cagney@redhat.com>
3135
3136 * frame-base.h (frame_base_p_ftype): Delete definition.
3137 (frame_base_append_predicate): Delete declaration.
3138 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3139 (frame_unwind_append_predicate): Delete declaration.
3140 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3141 (append_predicate): Delete parameter "p".
3142 (frame_unwind_append_predicate): Delete function.
3143 (frame_unwind_append_sniffer): Update call to append_predicate.
3144 (frame_unwind_free): Delete function.
3145 (_initialize_frame_unwind): Pass NULL as "free" to
3146 register_gdbarch_data.
3147 (frame_unwind_init): Append the dummy_frame_sniffer.
3148 (frame_unwind_find_by_frame): Simplify.
3149 * frame-base.c (struct frame_base_table): Delete field "p".
3150 (append_predicate): Delete parameter "p".
3151 (frame_base_append_predicate): Delete function.
3152 (frame_base_append_sniffer): Update call to append_predicate.
3153 (frame_base_free): Delete function.
3154 (frame_base_find_by_frame): Simplify.
3155 (_initialize_frame_base): Pass NULL as "free" to
3156 register_gdbarch_data.
3157 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3158 (x86_64_sigtramp_frame_sniffer): Replace
3159 "x86_64_sigtramp_frame_p".
3160 (x86_64_init_abi): Set the frame unwind sniffers.
3161 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3162 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3163 (m68k_gdbarch_init): Set the frame unwind sniffers.
3164 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3165 "i386_sigtramp_frame_p".
3166 (i386_frame_sniffer): Replace "i386_frame_p".
3167 (i386_gdbarch_init): Set the frame unwind sniffers.
3168 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3169 (avr_gdbarch_init): Set the frame unwind sniffers.
3170 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3171 "alpha_sigtramp_frame_p"
3172 (alpha_heuristic_frame_sniffer): Replace
3173 "alpha_heuristic_frame_p".
3174 (alpha_gdbarch_init): Set the frame unwind sniffers.
3175 (alpha_dwarf2_init_abi): Ditto.
3176 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3177 "alpha_debug_frame_p".
3178 (alpha_mdebug_frame_base_sniffer): Replace
3179 "alpha_mdebug_frame_base_p".
3180 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3181 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3182 (d10v_gdbarch_init): Set the frame unwind sniffer.
3183 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3184 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3185 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3186 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3187 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3188 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3189
48db5a3c
CV
31902003-07-16 Michael Snyder <msnyder@redhat.com>
3191
3192 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3193 should go thru sh_dsp_register_sim_regno, else the dsp regs
3194 will not get the right values.
3195
31962003-07-16 Corinna Vinschen <vinschen@redhat.com>
3197
3198 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3199 deprecated_store_floating by call to store_typed_floating.
3200 (sh_sh4_register_convert_to_raw): Substitute call to
3201 deprecated_extract_floating by call to extract_typed_floating.
3202
32032003-07-16 Corinna Vinschen <vinschen@redhat.com>
3204
3205 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3206
32072003-07-16 Corinna Vinschen <vinschen@redhat.com>
3208
3209 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3210 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3211 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3212 as possible.
3213 (do_pseudo_register): Remove.
3214 (sh_push_dummy_code): New function.
3215 (sh64_store_struct_return): Rename from sh_store_struct_return.
3216 Only called for sh64 now.
3217 (sh_extract_struct_value_address): Regcache'ify.
3218 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3219 and accomodate new tasks.
3220 (sh64_push_return_address): Rename from sh_push_return_address.
3221 Only called for sh64 now.
3222 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3223 Regcache'ify.
3224 (sh3e_sh4_extract_return_value): Regcache'ify.
3225 (sh_default_store_return_value): Ditto.
3226 (sh3e_sh4_store_return_value): Ditto.
3227 (sh_default_register_byte): Remove.
3228 (sh_sh4_register_byte): Remove.
3229 (sh_default_register_raw_size): Remove.
3230 (sh_sh4_register_raw_size): Remove.
3231 (sh_register_virtual_size): Remove.
3232 (sh_sh3e_register_virtual_type): Remove.
3233 (sh_sh3e_register_type): New function.
3234 (sh_sh4_register_virtual_type): Remove.
3235 (sh_sh4_register_type): New function.
3236 (sh_default_register_virtual_type): Remove.
3237 (sh_default_register_type): New function.
3238 (do_fv_register_info): Add parameters to accomodate call from
3239 sh_print_registers_info.
3240 (do_dr_register_info): Ditto.
3241 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3242 Add parameters to accomodate call from sh_print_registers_info.
3243 (sh_do_fp_register): Ditto.
3244 (sh64_do_pseudo_register): Call do_dr_register_info,
3245 do_fv_register_info and sh_do_fp_register with default parameters.
3246 (sh_do_register): Add parameters to accomodate call from
3247 sh_print_registers_info.
3248 (sh_print_register): Ditto.
3249 (sh_print_registers_info): Rename from sh_do_registers_info.
3250 Add parameters to be used as gdbarch_print_registers_info
3251 implementation. Accomodate removed do_pseudo_register function
3252 pointer.
3253 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3254 function pointer. Call sh_print_register with default parameters.
3255 (sh64_do_registers_info): Call sh_print_registers_info instead of
3256 sh_do_registers_info.
3257 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3258 detection of deprecated vs. non-deprecated functionality.
3259 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3260 function pointer assignments by direct function calls.
3261
e8a89fe2
AC
32622003-07-15 Andrew Cagney <cagney@redhat.com>
3263
3264 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3265 (frame_register_unwind, create_new_frame): Ditto.
3266 (legacy_get_prev_frame, get_frame_type): Ditto.
3267 (get_frame_base_address): Use frame_base_find_by_frame.
3268 (get_frame_locals_address): Use frame_base_find_by_frame.
3269 (get_frame_args_address): Use frame_base_find_by_frame.
3270 * frame-base.h (frame_base_sniffer_ftype): Declare.
3271 (frame_base_append_sniffer): Declare.
3272 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3273 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3274 (frame_base_append_sniffer): New function.
3275 (frame_base_append_predicate): Add a NULL sniffer.
3276 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3277 (struct frame_base_table): Add "sniffer".
3278 (frame_base_free): Free the "sniffer" table.
3279 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3280 (frame_unwind_append_sniffer): Declare.
3281 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3282 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3283 (struct frame_unwind_table): Add "sniffer", delete "middle".
3284 (append_predicate): Add "sniffer" parameter, append the sniffer.
3285 (frame_unwind_init): Update append_predicate call.
3286 (frame_unwind_append_sniffer): New function.
3287 (frame_unwind_append_predicate): Update append_predicate call.
3288 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3289
0714963c
AC
32902003-07-15 Andrew Cagney <cagney@redhat.com>
3291
3292 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3293 before code inhibiting repeated unwind attempts. Add to
3294 commentary on that test's problems.
3295 * blockframe.c (inside_main_func): Look for "main" in the minimal
3296 symbol table.
3297 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3298 identical.
3299
d9170e22
AC
33002003-07-15 Andrew Cagney <cagney@redhat.com>
3301
3302 * complaints.c (struct explanation): Define.
3303 (struct complaints): Change type of "explanation" to "struct
3304 explanation".
3305 (symfile_explanations): Convert to a "struct explanation" table.
3306 (vcomplaint): Update.
3307
eba29c8c
ML
33082003-07-15 Michal Ludvig <mludvig@suse.cz>
3309
3310 * x86-64-linux-nat.c (regmap): Removed.
3311 (supply_gregset, fill_gregset): Call
3312 x86_64_linux_(fill,supply)_gregset functions.
3313 * x86-64-linux-tdep.c (USER_*): New defines.
3314 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3315 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3316 New functions.
3317 (fetch_core_registers): Ditto.
3318 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3319 * x86-64-linux-tdep.h: New file.
3320 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3321 and core-regset.o.
3322 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3323
68cc0bfb
MK
33242003-07-13 Mark Kettenis <kettenis@gnu.org>
3325
88a115f7
MK
3326 * x86-64-tdep.c (x86_64_store_return_value): Use
3327 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3328
68cc0bfb
MK
3329 * configure.host: Add x86_64-*-freebsd*.
3330 * configure.tgt: Add x86_64-*-freebsd*.
3331 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3332 * amd64fbsd-nat.c: New file.
3333 * amd64fbsd-tdep.c: New file.
3334 * config/i386/nm-fbsd64.h: New file.
3335 * config/i386/fbsd64.mh: New file.
3336 * config/i386/fbsd64.mt: New file.
3337
138e7be5
MK
33382003-07-11 Mark Kettenis <kettenis@gnu.org>
3339
3340 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3341 `sc_regs_offset' and `sc_fpregs_offset'.
3342 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3343 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3344 (alpha_sigtramp_register_address): Rewrite to use new members of
3345 `struct gdbarch_tdep'.
3346 (alpha_gdbarch_init): Initialize new members of struct
3347 gdbarch_tdep'.
3348 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3349 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3350 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3351 (alphafbsd_pc_in_sigtramp): Implement.
3352 (alphafbsd_sigtramp_offset): New function.
3353 (alphafbsd_sigcontext_addr): New function.
3354 (alphafbsd_init_abi): Initialize signal trampoline related members
3355 of `struct gdbarch_tdep'.
3356 (_initialize_alphafbsd_tdep): Add prototype.
3357
95303a68
TR
33582003-07-11 Theodore A. Roth <troth@openavr.org>
3359
ba292e4c
TR
3360 * Makefile.in (install-only): Quote sed expression when generating
3361 transformed_name.
95303a68 3362
6896c0c7
RH
33632003-07-11 Richard Henderson <rth@redhat.com>
3364
3365 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3366 * dwarf2-frame.c: Include complaints.h.
3367 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3368 variable initialization; return NULL on error.
3369 (decode_frame_entry): New.
3370
8edd5d01
AC
33712003-07-11 Andrew Cagney <cagney@redhat.com>
3372
c4a09524
AC
3373 * frame.h (frame_address_in_block): Delete declaration.
3374 * blockframe.c (frame_address_in_block): Delete function.
3375 (get_frame_block): Use get_frame_address_in_block.
3376 (block_innermost_frame): Ditto.
3377 * stack.c (print_frame, backtrace_command_1): Ditto.
3378
8edd5d01
AC
3379 * frame.h (get_frame_address_in_block): Declare.
3380 (frame_unwind_address_in_block): Declare.
3381 * frame.c (frame_unwind_address_in_block): New function.
3382 (get_frame_address_in_block): New function.
3383
f7968451
AC
33842003-07-10 Andrew Cagney <cagney@redhat.com>
3385
3386 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3387 pre-default. Note: re-generate has no effect.
3388
ae99b398
AC
33892003-07-10 Andrew Cagney <cagney@redhat.com>
3390
3391 * gdbarch.sh: When a variable, but not a function, compare against
3392 0. Fix problem in previous patch.
3393 * gdbarch.c: Re-generate.
3394
956ac328
AC
33952003-07-10 Andrew Cagney <cagney@redhat.com>
3396
3397 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3398 functions against NULL, not 0.
3399 * gdbarch.c: Re-generate.
3400
287c3240
FF
34012003-07-10 Fred Fish <fnf@ninemoons.com>
3402
3403 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3404 null string instead of a null pointer.
3405 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3406
32f63c4b
MS
34072003-07-09 Michael Snyder <msnyder@redhat.com>
3408
3409 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3410
402ecd56
MK
34112003-07-09 Mark Kettenis <kettenis@gnu.org>
3412
3413 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3414 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3415 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3416 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3417 * x86-64-tdep.c: ... from here.
3418
c481dac7
AS
34192003-07-09 Andreas Schwab <schwab@suse.de>
3420
3421 * m68k-tdep.h (enum struct_return): Define.
3422 (struct gdbarch_tdep): Add struct_return.
3423 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3424 bytes are padded to the right, not to the left. Pass struct value
3425 address in register %a1, not on stack.
3426 (m68k_use_struct_convention): New function.
3427 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3428 struct_return in tdep to pcc_struct_return.
3429 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3430 reg_struct_return.
3431
64176fa3
JB
34322003-07-09 Joel Brobecker <brobecker@gnat.com>
3433
3434 * somread.c (som_symfile_offsets): Fix compilation error.
3435
96a4ee76
AC
34362003-07-09 Andrew Cagney <cagney@redhat.com>
3437
3438 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3439 Add comments about the checks.
3440
1517c6d1
AC
34412003-07-08 Andrew Cagney <cagney@redhat.com>
3442
3443 * Makefile.in: Make dependency section headers consistent.
3444 (config_h): Move to $BUILD headers section.
3445 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3446 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3447 (ada-exp.tab.c): Move to YACC/LEX section.
3448 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3449 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3450
dc5dd1eb
KW
34512003-07-08 Kris Warkentin <kewarken@qnx.com>
3452
3453 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3454 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3455 of strerror with safe_strerror, use ISO C function definitions,
3456 and replace instances of sprintf with snprintf.
dc5dd1eb 3457
612dde91
AC
34582003-07-07 Andrew Cagney <cagney@redhat.com>
3459
3460 * frame.c (get_prev_frame): Enable check for identical frames.
3461 Update comments. Update error messages.
3462
492c11d3
JB
34632003-07-07 Joel Brobecker <brobecker@gnat.com>
3464
3465 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3466
376a5a49
JB
34672003-07-07 Joel Brobecker <brobecker@gnat.com>
3468
3469 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3470 sort_symtab_syms, no longer necessary.
3471
22b4a9ad
JB
34722003-07-07 Joel Brobecker <brobecker@gnat.com>
3473
3474 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3475
5bbcb741
JB
34762003-07-07 Joel Brobecker <brobecker@gnat.com>
3477
3478 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3479 (mips_register_byte): Likewise.
3480
c139e7d9
DJ
34812003-07-07 Daniel Jacobowitz <drow@mvista.com>
3482
3483 * Makefile.in (sparc_tdep_h): New.
3484 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3485 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3486 * sparc-linux-nat.c: Include "sparc-tdep.h".
3487 * sparc-nat.c: Likewise.
3488 * sparc-tdep.c: Likewise.
3489 * sparc64nbsd-nat.c: Likewise.
3490 * sparcnbsd-nat.c: Likewise.
3491 * sparcnbsd-tdep.c: Likewise.
3492 * sparc-tdep.h: New file.
3493 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3494 and sparc_npc_regnum.
3495
fd8f87c5
DJ
34962003-07-07 Daniel Jacobowitz <drow@mvista.com>
3497
3498 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3499 (mips_linux_cannot_store_register): List supported instead of
3500 unsupported registers.
3501
13adf674
DJ
35022003-07-07 Daniel Jacobowitz <drow@mvista.com>
3503
3504 * disasm.c (dump_insns): Separate instructions from addresses.
3505
8de307e0
AS
35062003-07-07 Andreas Schwab <schwab@suse.de>
3507
3508 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3509 dependencies.
3510 * m68k-tdep.c (NUM_FREGS): Delete.
3511 (SIG_PC_FP_OFFSET): Delete.
3512 (TARGET_M68K): Delete.
3513 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3514 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3515 P_MOVEL_SP, P_MOVEML_SP): Define.
3516 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3517 P_TRAP): Delete.
3518 (m68k_register_raw_size): Delete.
3519 (m68k_register_virtual_size): Delete.
3520 (m68k_register_type): Renamed from m68k_register_virtual_type and
3521 add gdbarch argument.
3522 (m68k_store_struct_return): Delete.
3523 (m68k_deprecated_extract_return_value): Delete.
3524 (m68k_deprecated_extract_struct_value_address): Delete.
3525 (m68k_frame_chain): Delete.
3526 (m68k_frame_saved_pc): Delete.
3527 (m68k_fix_call_dummy): Delete.
3528 (m68k_push_dummy_frame): Delete.
3529 (m68k_pop_frame): Delete.
3530 (m68k_extract_return_value): New function.
3531 (m68k_store_return_value): Rewrite using regcache.
3532 (m68k_extract_struct_value_address): Rewrite using regcache.
3533 (m68k_push_dummy_call): New function.
3534 (struct m68k_frame_cache): Define.
3535 (m68k_alloc_frame_cache): New function.
3536 (m68k_analyze_frame_setup): New function.
3537 (m68k_analyze_register_saves): New function.
3538 (m68k_analyze_prologue): New function.
3539 (m68k_skip_prologue): Rewrite using above functions.
3540 (m68k_unwind_pc): New function.
3541 (m68k_frame_cache): New function.
3542 (m68k_frame_this_id): New function.
3543 (m68k_frame_prev_register): New function.
3544 (m68k_frame_unwind): New variable.
3545 (m68k_frame_p): New function.
3546 (m68k_sigtramp_frame_cache): New function.
3547 (m68k_sigtramp_frame_this_id): New function.
3548 (m68k_sigtramp_frame_prev_register): New function.
3549 (m68k_sigtramp_frame_unwind): New variable.
3550 (m68k_sigtramp_frame_p): New function.
3551 (m68k_frame_base_address): New function.
3552 (m68k_frame_base): New function.
3553 (m68k_unwind_dummy_id): New function.
3554 (fill_gregset): Use regcache_collect.
3555 (fill_fpregset): Likewise.
3556 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3557 defined.
3558 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3559 deprecated_init_frame_pc, deprecated_store_struct_return,
3560 deprecated_extract_return_value, deprecated_store_return_value,
3561 deprecated_frame_chain, deprecated_frame_saved_pc,
3562 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3563 deprecated_register_virtual_size,
3564 deprecated_max_register_raw_size,
3565 deprecated_max_register_virtual_size,
3566 deprecated_register_virtual_type, deprecated_register_size,
3567 deprecated_register_byte, deprecated_register_bytes,
3568 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3569 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3570 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3571 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3572 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3573 deprecated_push_dummy_frame, deprecated_pop_frame,
3574 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3575 only if SYSCALL_TRAP is defined. Set extract_return_value,
3576 store_return_value, extract_struct_value_address, register_type,
3577 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3578 predicates.
3579 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3580 M68K_MAX_REGISTER_SIZE): Define.
3581 (struct m68k_sigtramp_info): Define.
3582 (struct gdbarch_tdep): Add get_sigtramp_info.
3583 * m68klinux-nat.c (fetch_register): Use register_size instead of
3584 REGISTER_RAW_SIZE. Don't put assignment in if.
3585 (store_register): Likewise.
3586 (fetch_inferior_registers): Likewise.
3587 (store_inferior_registers): Likewise.
3588 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3589 (m68k_linux_frame_saved_pc): Delete.
3590 (m68k_linux_sigcontext_reg_offset,
3591 m68k_linux_ucontext_reg_offset): Define.
3592 (m68k_linux_get_sigtramp_info): New function.
3593 (m68k_linux_extract_return_value): Rewrite using regcache.
3594 (m68k_linux_store_return_value): Likewise.
3595 (m68k_linux_extract_struct_value_address): Likewise.
3596 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3597 Don't set deprecated_frame_saved_pc,
3598 deprecated_extract_return_value, deprecated_store_return_value,
3599 deprecated_extract_struct_value_address. Set
3600 extract_return_value, store_return_value,
3601 extract_struct_value_address.
3602
eb8bc282
AC
36032003-07-07 Andrew Cagney <cagney@redhat.com>
3604
3605 * expprint.c: Include "user-regs.h" instead of "frame.h".
3606 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3607 frame_map_regnum_to_name.
3608 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3609 (frame_map_name_to_regnum): Simplify, call
3610 user_reg_map_name_to_regnum.
3611 (frame_map_regnum_to_name): Simplify, call
3612 user_reg_map_regnum_to_name.
3613 (frame_register_unwind): Update.
3614 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3615 (_initialize_frame_reg): Call user_reg_add_builtin.
3616 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3617 (value_of_register): Use value_of_user_reg.
3618 * eval.c (evaluate_subexp_standard): Update.
3619 * parse.c (write_dollar_variable): Update.
3620 * d10v-tdep.c (d10v_print_registers_info): Update.
3621 * infcmd.c (registers_info): Update.
3622 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3623 (builtin_regs_h): Delete macro.
3624 (user_regs_h): Define.
3625 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3626 (builtin-regs.o): Delete target.
3627 (user-regs.o): Specify dependencies.
3628 (expprint.o): Update dependencies.
3629 (findvar.o): Update dependencies.
3630 (frame.o): Update dependencies.
3631 (std-regs.o): Update dependencies.
3632
9f476a01
CF
36332003-07-06 Christopher Faylor <cgf@redhat.com>
3634
3635 * win32-nat.c (solib_symbols_add): Use one variable for all section
3636 address stuff. Pass variable rather than address of variable to
3637 safe_symbol_file_add.
3638
a731b831
AS
36392003-07-06 Andreas Schwab <schwab@suse.de>
3640
3641 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3642
9f83329d
JB
36432003-07-04 Joel Brobecker <brobecker@gnat.com>
3644
3645 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3646
27e28cc5
KW
36472003-07-04 Kris Warkentin <kewarken@qnx.com>
3648
3649 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3650
36512003-07-04 Kris Warkentin <kewarken@qnx.com>
3652
3653 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3654 * config/i386/nto.mh: New file.
3655 * config/i386/nm-nto.h: New file.
3656 * configure.host: Add i[3456]86-*-nto*.
3657
100f2e98
JB
36582003-07-03 Joel Brobecker <brobecker@gnat.com>
3659
3660 * remote-vx.c (vx_add_symbols): Fix compilation error.
3661
e23457df
AC
36622003-07-03 Andrew Cagney <cagney@redhat.com>
3663
3664 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3665 * gdbarch.h, gdbarch.c: Re-generate.
3666 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3667 (legacy_register_name): Declare.
3668 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3669 (REGISTER_NAME): Define.
3670 * sparc-tdep.c (legacy_register_name): New function.
3671 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3672 (REGISTER_NAME): Define.
3673 (hppa64_register_name): Declare.
3674 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3675 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3676 (hppa64_register_name): New function.
3677 (hppa_register_name): New function.
3678 * arch-utils.c (legacy_register_name): Delete.
3679 * arch-utils.h (legacy_register_name): Delete.
3680
38caaeec
DJ
36812003-07-03 Daniel Jacobowitz <drow@mvista.com>
3682
3683 * cli/cli-interp.c (cli_interpreter_resume): Update the
3684 cli_uiout's stream to gdb_stdout.
3685
dadd712e
AC
36862003-07-03 Andrew Cagney <cagney@redhat.com>
3687
3688 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3689 predicate.
3690 * gdbarch.h, gdbarch.c: Re-generate.
3691 * regcache.c (init_regcache_descr): Use legacy code when either
3692 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3693
c7f1390e
DJ
36942003-07-02 Daniel Jacobowitz <drow@mvista.com>
3695
3696 * NEWS: Move "set logging" entry into GDB 6.0 section.
3697
4bc8c588
JB
36982003-07-02 Jim Blandy <jimb@redhat.com>
3699
a9dd42f1
JB
3700 * s390-tdep.c (struct frame_extra_info): new member:
3701 'stack_bought_valid'.
3702 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3703 initialize fextra_info->stack_bought.
3704 (s390_frameless_function_invocation): Don't trust the value of
3705 fextra_info_ptr->stack_bought unless
3706 fextra_info->stack_bought_valid is set.
3707
4bc8c588
JB
3708 New S390 prologue analyzer.
3709 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3710 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3711 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3712 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3713 compute_x_addr, s390_on_stack, s390_store,
3714 s390_get_signal_frame_info): New functions.
3715 (S390_NUM_SPILL_SLOTS): New macro.
3716 (s390_get_frame_info): Rewritten.
3717 (is_arg_reg): Deleted.
3718
3719 Break out the decoding of S/390 instructions into separate
3720 functions, to make it more legible, and easier to check
3721 against the spec.
3722 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3723 is_rx, is_rxe): New functions.
3724 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3725 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3726 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3727 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3728 enums for opcode values. (Is this an improvement?)
3729
fd13a04a
AC
37302003-07-02 Andrew Cagney <cagney@redhat.com>
3731
3732 * i386-tdep.c: Revert change committed as part of trad-frame code
3733 below.
3734
3f8091c1
DJ
37352003-07-02 Daniel Jacobowitz <drow@mvista.com>
3736
3737 * breakpoint.c (insert_catchpoint): Make static.
3738
8dd5115e
AS
37392003-07-02 Andreas Schwab <schwab@suse.de>
3740
3741 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3742 former ia64_push_arguments and ia64_push_return_address, and use
3743 regcache functions instead of read/write_register.
3744 (ia64_gdbarch_init): Set push_dummy_call instead of
3745 deprecated_push_arguments and deprecated_push_return_address.
3746
a2229c23
AJ
37472003-07-01 Andreas Jaeger <aj@suse.de>
3748
3749 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3750 before the call.
3751 Set %rax only to number of SSE registers used.
3752
3b3850e8
AC
37532003-07-01 Andrew Cagney <cagney@redhat.com>
3754
3755 * trad-frame.h: Update comments, a -1 .addr is reserved.
3756 (trad_frame_value_p, trad_frame_addr_p): Declare.
3757 (trad_frame_reg_p): Declare.
3758 (trad_frame_set_value): Rename trad_frame_register_value.
3759 (trad_frame_set_unknown): Declare.
3760 * trad-frame.c (trad_frame_realreg_p): New function.
3761 (trad_frame_addr_p, trad_frame_value_p): New function.
3762 (trad_frame_set_unknown): New function.
3763 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3764 (trad_frame_prev_register): Use trad_frame_realreg_p,
3765 trad_frame_addr_p and trad_frame_value_p.
3766 (trad_frame_set_value): Rename trad_frame_register_value.
3767 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3768 and trad_frame_set_value.
a2229c23 3769
4d819d0e
JB
37702003-06-30 Jim Blandy <jimb@redhat.com>
3771
3772 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3773 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3774 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3775 for 16 registers, and then 32 more bytes.
3776 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3777 New macros.
3778 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3779 Move up in the file, since it's now used by is_simple_arg.
3780 (is_simple_arg): Don't assume registers are four bytes long.
3781 Exclude all double arguments. Extended floats are not simple
3782 args.
3783 (is_power_of_two): New function.
3784 (pass_by_copy_ref): Call is_power_of_two, and check that the
3785 length fits in a register, rather than listing all the acceptable
3786 sizes. Extended floats are not passed by reference.
3787 (s390_push_arguments): Don't assume registers are four bytes long.
3788 Reserve an argument register to point to the buffer for structures
3789 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3790 S390_STACK_FRAME_OVERHEAD.
3791
1ad828f1
AS
37922003-06-30 Andreas Schwab <schwab@suse.de>
3793
3794 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3795 format error message.
3796
39b00981
JB
37972003-06-30 Joel Brobecker <brobecker@gnat.com>
3798
3799 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3800
b2a7f303
DC
38012003-06-30 David Carlton <carlton@kealia.com>
3802
3803 Band-aid for PR c++/1245.
3804 * Makefile.in (cp-support.o): Depend on complaints_h.
3805 * cp-support.c: Include complaints.h. Add declaration for
3806 find_last_component.
3807 (cp_find_first_component): Separate code into
3808 cp_find_first_component_aux.
3809 (cp_find_first_component_aux): Call demangled_name_complaint.
3810 (demangled_name_complaint): New.
3811
a257b5bb
AC
38122003-06-30 Andrew Cagney <cagney@redhat.com>
3813
3814 * remote.c (remote_write_bytes): Explicitly compute and then use
3815 the payload size. Update comments to reflect. Fixes problem of
3816 GDB not sending small packets as found by Fred Fish.
3817
0a2cfde4
AC
38182003-06-30 Andrew Cagney <cagney@redhat.com>
3819
3820 * remote.c (remote_async_wait): Fix -Wformat problem.
3821
3fcb8548
AC
38222003-06-29 Andrew Cagney <cagney@redhat.com>
3823
3824 * remote.c (remote_wait): Call error, and not warning, when the
3825 packet is corrupt.
3826 (remote_async_wait): Ditto.
3827
9f9970a3
DJ
38282003-06-29 Daniel Jacobowitz <drow@mvista.com>
3829
3830 * sparc-tdep.c (sparc_y_regnum): Make external again.
3831
83a8ccca
DJ
38322003-06-29 Daniel Jacobowitz <drow@mvista.com>
3833
3834 * cli/cli-logging.c (pop_output_files): Add void to function
3835 definition.
3836
d2cf594a
AC
38372003-06-29 Andrew Cagney <cagney@redhat.com>
3838
3839 * frame.c (frame_register_unwind): Use unsigned char when dumping
3840 the buffer contents.
3841
0fac0b41
DJ
38422003-06-28 Daniel Jacobowitz <drow@mvista.com>
3843
3844 * cli/cli-logging.c: New file.
3845 * cli-out.c (struct ui_out_data): Add original_stream.
3846 (cli_redirect): New function.
3847 (cli_ui_out_impl): Add cli_redirect.
3848 (cli_out_new): Initialize original_stream.
3849 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3850 (uo_redirect, ui_out_redirect): New.
3851 * ui-out.h (struct ui_out_impl): Add redirect member.
3852 (redirect_ftype): New.
3853 (ui_out_redirect): Add prototype.
3854 * Makefile.in: Add rules for cli-logging.c.
3855 * NEWS: Mention "set logging".
3856
88a07d7c
EZ
38572003-06-27 Elena Zannoni <ezannoni@redhat.com>
3858
3859 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3860
4eb58876
AC
38612003-06-27 Andrew Cagney <cagney@redhat.com>
3862
3863 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3864 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3865 * avr-tdep.c (avr_call_dummy_address): Delete function.
3866 (avr_gdbarch_init): Do not set call_dummy_address.
3867
1549f619
EZ
38682003-06-27 Elena Zannoni <ezannoni@redhat.com>
3869
3870 * symfile.c (syms_from_objfile): Move variables to inner block.
3871 Move the checks for the non-mainline case a bit earlier to avoid
3872 doing some useless computations.
3873
3cb3398d
EZ
38742003-06-27 Elena Zannoni <ezannoni@redhat.com>
3875
3876 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3877
3799ccc6
EZ
38782003-06-26 Elena Zannoni <ezannoni@redhat.com>
3879
3880 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3881 sections.
3882
ce1f6491
MC
38832003-06-26 Michael Chastain <mec@shout.net>
3884
3885 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3886 gdb/testsuite/gdb.c++/pr-1210.exp.
3887
d958dfd0
AC
38882003-06-26 Andrew Cagney <cagney@redhat.com>
3889
3890 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3891 altivec_expression.h and altivec_registers.h.
3892
d31431ed
AC
38932003-06-26 Andrew Cagney <cagney@redhat.com>
3894
3895 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3896 info->mach when MIPS16. Patch suggested by Fred Fish.
3897
714b1282
AC
38982003-06-26 Andrew Cagney <cagney@redhat.com>
3899
3900 * utils.c (internal_vproblem): Print the problem to a reason
3901 buffer and then pass to query. Make the msg variable more local.
3902
42efa47a
AC
39032003-06-26 Andrew Cagney <cagney@redhat.com>
3904
3905 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3906 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3907 * gdbarch.h, gdbarch.c: Re-generate.
3908 * frame-base.c (default_frame_args_address): Update. Use
3909 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3910 not available.
3911 (default_frame_locals_address): Ditto for
3912 DEPRECATED_FRAME_LOCALS_ADDRESS.
3913 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3914 (vax_frame_num_args): Update.
3915 (vax_gdbarch_init): Update.
3916 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3917 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3918 * mcore-tdep.c (mcore_gdbarch_init): Update.
3919 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3920 * ia64-tdep.c (ia64_gdbarch_init): Update.
3921 * symtab.h (address_class): Update comments.
3922 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3923 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3924 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3925 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3926 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3927 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3928 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3929 * alpha-mdebug-tdep.c: Update.
3930 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3931
8ffd9b1b
AJ
39322003-06-26 Andreas Jaeger <aj@suse.de>
3933
3934 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3935 of SSE registers so that varargs functions work. Rework handling
3936 of passing arguments on the stack.
3937 (x86_64_store_return_value): Return double and float values in SSE
3938 register.
3939
e8ac10a6
MC
39402003-06-24 Michael Chastain <mec@shout.net>
3941
3942 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3943 the "constructor breakpoints ignored" bug.
3944
986af8e6
DC
39452003-06-25 David Carlton <carlton@kealia.com>
3946
3947 * MAINTAINERS: Update e-mail address.
3948
d64558a5
JB
39492003-06-24 Jim Blandy <jimb@redhat.com>
3950
e538d2d7
JB
3951 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3952
02631ec0
JB
3953 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3954 function.
3955 (ppc_linux_init_abi): Register it as the
3956 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3957
e716d87a
JB
3958 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3959 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3960 method.
3961
d64558a5
JB
3962 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3963 (ppc64_standard_linkage_target): Use it.
3964
449a5da4
AC
39652003-06-23 Andrew Cagney <cagney@redhat.com>
3966
3967 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3968 for 0 "int0" and 4 "int32" sized registers.
3969 * gdbtypes.c (builtin_type_int0): Define.
3970 (build_gdbtypes): Initialize builtin_type_int0.
3971 * gdbtypes.h (builtin_type_int0): Declare.
3972
b2a02dda
SC
39732003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3974
3975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3976 as characters are unsigned.
3977
fba3138e
DJ
39782003-06-22 Daniel Jacobowitz <drow@mvista.com>
3979
3980 PR gdb/1179
3981 * dwarfread.c (struct_type): Skip static fields without crashing.
3982
f6c8180b
AC
39832003-06-22 Andrew Cagney <cagney@redhat.com>
3984
3985 GDB 6.0 branch created.
f2c06f52
AC
3986 * README: Update.
3987 * PROBLEMS: Update. Empty.
3988 * NEWS: Update.
f6c8180b 3989
ae822768
DJ
39902003-06-22 Daniel Jacobowitz <drow@mvista.com>
3991
3992 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3993 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3994
261de166
AC
39952003-06-22 Andrew Cagney <cagney@redhat.com>
3996
3997 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3998 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3999 Velikov.
4000
30e94205
DJ
40012003-06-22 Daniel Jacobowitz <drow@mvista.com>
4002
4003 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4004 compilers.
4005
9e14d721
DJ
40062003-06-21 Daniel Jacobowitz <drow@mvista.com>
4007
4008 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4009 argument of val_print.
4010 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4011 to the address argument of baseclass_offset or target_read_memory.
4012 Do add it to the argument of cp_print_value_fields.
4013
a4b8ebc8
AC
40142003-06-21 Andrew Cagney <cagney@redhat.com>
4015
4016 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4017 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4018 instead of 0..NUM_REGS.
4019 (mips_register_reggroup_p): New function.
4020 (mips_pseudo_register_write): New function.
4021 (mips_pseudo_register_read): New function.
4022 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4023 based on the register's type.
4024 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4025 cooked.
4026 (mips_get_saved_register): Simplify. Assert that REGNO is a
4027 pseudo / cooked.
4028 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4029 (mips_register_type): Replace mips_register_virtual_type. Map
4030 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4031 when available.
4032 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4033 that the register is cooked / virtual.
4034 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4035 Only get the extra info when needed.
4036 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4037 (mips32_heuristic_proc_desc): Fetch the cooked register.
4038 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4039 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4040 (mips_print_register): Use gdbarch_register_type, instead of
4041 REGISTER_VIRTUAL_TYPE.
4042 (print_gp_register_row): Use gdbarch_register_type, instead of
4043 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4044 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4045 Print the pseudo / cooked registers.
4046 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4047 Print the pseudo / cooked registers.
4048 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4049 REG_NUM is pseudo / cooked.
4050 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4051 (mips_n32n64_xfer_return_value): Ditto.
4052 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4053 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4054 (mips_register_sim_regno): New function.
4055 (mips_gdbarch_init): Set deprecated_register_byte,
4056 register_group_p, pseudo_register_write, pseudo_register_read,
4057 register_sim_regno, and num_pseudo_regs. Set register_type,
4058 instead of register_virtual_type.
4059 * Makefile.in (mips-tdep.o): Update dependencies.
4060 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4061 REGISTER_VIRTUAL_TYPE.
4062 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4063 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4064 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4065 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4066 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4067
325ed089
DJ
40682003-06-21 Daniel Jacobowitz <drow@mvista.com>
4069
4070 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4071 * cli/cli-cmds.c: Include "gdb_vfork.h".
4072 (shell_escape): Use vfork.
4073
f0e7d0e8
AC
40742003-06-21 Andrew Cagney <cagney@redhat.com>
4075
c57bb9fa
AC
4076 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4077 32 bit floating-point register saves.
4078
6e51443a
AC
4079 * frame.h (deprecated_unwind_get_saved_register): Delete.
4080 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4081 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4082 and deprecated_get_next_frame_hack instead of
4083 deprecated_unwind_get_saved_register.
4084
ed183c7c
AC
4085 * mips-tdep.c (mips_dump_tdep): Do not print
4086 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4087
f0e7d0e8
AC
4088 * frame.c (get_frame_register): New function.
4089 (frame_unwind_register_signed): New function.
4090 (get_frame_register_signed): New function.
4091 (frame_unwind_register_unsigned): New function.
4092 (get_frame_register_unsigned): New function.
4093 * frame.h: Add comments on naming schema.
4094 (get_frame_register, frame_unwind_register_signed): Declare.
4095 (get_frame_register_signed, get_frame_register_signed): Declare.
4096 (frame_unwind_register_unsigned): Declare.
4097 (get_frame_register_unsigned): Declare.
4098
2224d941
TR
40992003-06-20 Theodore A. Roth <troth@openavr.org>
4100
4101 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4102
8619218d
TR
41032003-06-20 Theodore A. Roth <troth@openavr.org>
4104
4105 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4106 (avr_read_sp): Ditto.
4107
0b1b50c0
DJ
41082003-06-20 Daniel Jacobowitz <drow@mvista.com>
4109
4110 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4111 * config/arm/nm-linux.h: Likewise.
4112 * config/arm/tm-linux.h: Likewise.
4113 * config/ia64/nm-linux.h: Likewise.
4114 * config/ia64/tm-ia64.h: Likewise.
4115 * config/s390/tm-linux.h: Likewise.
4116 * config/s390/tm-s390.h: Likewise.
4117 * s390-nat.c: Likewise.
4118 * s390-tdep.c: Likewise.
4119
4120 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4121 * config/ia64/linux.mt: Likewise.
4122 * config/m68k/linux.mh: Likewise.
4123 * config/mips/linux.mt: Likewise.
4124 * config/powerpc/linux.mh: Likewise.
4125 * config/sh/linux.mt: Likewise.
4126
c8c18e65
KW
41272003-06-19 Kris Warkentin <kewarken@qnx.com>
4128
4129 * solib.c (solib_open): Change tests for whether to search
4130 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4131 comments.
4132
dcccef2e
TR
41332003-06-19 Theodore A. Roth <troth@openavr.org>
4134
4135 * avr-tdep.c (avr_frame_address): Delete function.
4136 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4137 set_gdbarch_frame_args_address.
4138
5861a190
AC
41392003-06-19 Andrew Cagney <cagney@redhat.com>
4140
4141 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4142 (REGISTER_CONVERT_FROM_TYPE): Delete.
4143 (mips_register_convert_to_type): Delete declaration.
4144 (mips_register_convert_from_type): Delete declaration.
4145 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4146 kernel/.
4147
0274a8ce
MS
41482003-06-19 Michael Snyder <msnyder@redhat.com>
4149
4150 * linux-nat.h: New file.
4151 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4152 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4153 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4154 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4155 (linux_make_note_section): Iterate over lwps instead of threads.
4156 (linux_do_thread_registers): Use lwp instead of merged pid.
4157 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4158 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4159 Add dependency on linux_nat_h.
4160
adf5f719
TR
41612003-06-19 Theodore A. Roth <troth@openavr.org>
4162
4163 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4164
6766a268
DJ
41652003-06-19 Daniel Jacobowitz <drow@mvista.com>
4166
4167 * varobj.c (get_type, get_target_type): Use check_typedef.
4168
1171114a
DJ
41692003-06-19 Daniel Jacobowitz <drow@mvista.com>
4170
4171 * breakpoint.c (insert_catchpoint): Call internal_error.
4172
adcf68a2
TR
41732003-06-19 Theodore A. Roth <troth@openavr.org>
4174
4175 * avr-tdep.c (avr_push_dummy_code): Delete function.
4176 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4177
ea67f13b
DJ
41782003-06-19 Daniel Jacobowitz <drow@mvista.com>
4179
4180 * arch-utils.c (default_prepare_to_proceed): Remove.
4181 (generic_prepare_to_proceed): Remove.
4182 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4183 (generic_prepare_to_proceed): Remove prototype.
4184 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4185 * gdbarch.c: Regenerate.
4186 * gdbarch.h: Regenerate.
4187 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4188 * hppah-nat.c (hppa_switched_threads): Remove.
4189 * infrun.c (prepare_to_proceed): New static function, copied from
4190 generic_prepare_to_proceed. Remove select_it argument.
4191 (proceed): Call prepare_to_proceed.
4192 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4193 variables.
4194 (ptrace_wait): Don't set the removed variables.
4195 (hppa_switched_threads): Remove.
4196 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4197 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4198 (lin_lwp_prepare_to_proceed): Remove prototype.
4199 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4200 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4201
4add8633
TR
42022003-06-18 Theodore A. Roth <troth@openavr.org>
4203
4204 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4205 trad-frame.h.
4206 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4207 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4208 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4209 (AVR_PROLOGUE_*): Enumerate prologue types.
4210 (struct frame_extra_info): Remove.
4211 (struct avr_unwind_cache): Define.
4212 (avr_write_sp): Delete function.
4213 (avr_read_fp): Ditto.
4214 (avr_init_extra_frame_info): Ditto.
4215 (avr_pop_frame): Ditto.
4216 (avr_frame_saved_pc): Ditto.
4217 (avr_saved_pc_after_call): Ditto.
4218 (avr_push_return_address): Ditto.
4219 (avr_frame_chain): Ditto.
4220 (avr_store_struct_return): Ditto.
4221 (avr_push_arguments): Ditto.
4222 (avr_scan_prologue): Update comments. Changed to set up the info for
4223 cache unwinding. Now returns end of prologue PC.
4224 (avr_skip_prologue): Better handling of functions lacking a prologue
4225 by using avr_scan_prologue.
4226 (avr_scan_arg_moves): New function.
4227 (avr_saved_regs_unwinder): Ditto.
4228 (avr_frame_unwind_cache): Ditto.
4229 (avr_unwind_pc): Ditto.
4230 (avr_frame_this_id): Ditto.
4231 (avr_frame_prev_register): Ditto.
4232 (avr_frame_p): Ditto.
4233 (avr_frame_base_address ): Ditto.
4234 (avr_unwind_dummy_id): Ditto.
4235 (avr_push_dummy_code): Ditto.
4236 (push_stack_item): Ditto.
4237 (pop_stack_item): Ditto.
4238 (avr_push_dummy_call): Ditto.
4239 (struct stack_item): Define.
4240 (avr_frame_unwind): Declare structure.
4241 (avr_frame_base): Ditto.
4242 (avr_gdbarch_init): Remove calls to
4243 set_gdbarch_deprecated_init_frame_pc,
4244 set_gdbarch_deprecated_target_read_fp,
4245 set_gdbarch_deprecated_dummy_write_sp,
4246 set_gdbarch_deprecated_fp_regnum,
4247 set_gdbarch_deprecated_push_arguments,
4248 set_gdbarch_deprecated_push_return_address,
4249 set_gdbarch_deprecated_pop_frame,
4250 set_gdbarch_deprecated_store_struct_return,
4251 set_gdbarch_deprecated_frame_init_saved_regs,
4252 set_gdbarch_deprecated_init_extra_frame_info,
4253 set_gdbarch_deprecated_frame_chain,
4254 set_gdbarch_deprecated_frame_saved_pc,
4255 set_gdbarch_deprecated_saved_pc_after_call.
4256 Add calls to set_gdbarch_push_dummy_call,
4257 set_gdbarch_push_dummy_code,
4258 frame_unwind_append_predicate,
4259 frame_base_set_default,
4260 set_gdbarch_unwind_dummy_id,
4261 set_gdbarch_unwind_pc.
4262 Wrap a long line.
4263
7be04a68
MS
42642003-06-18 Corinna Vinschen <vinschen@redhat.com>
4265
4266 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4267 registers for H8/300S.
4268 (h8300_print_registers_info): Ditto.
8ffd9b1b 4269 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4270
ae087d01
DJ
42712003-06-18 Daniel Jacobowitz <drow@mvista.com>
4272
4273 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4274 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4275 (lin_lwp_wait): Likewise. Update comments.
4276 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4277 (pull_pid_from_list, linux_record_stopped_pid): New.
4278
07d8f827
SC
42792003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4280
4281 * ada-lang.c (scan_discrim_bound): Name first argument.
4282 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4283 declared by ALL_BLOCK_SYMBOLS.
4284
7cb47b14
SC
42852003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4286
4287 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4288 ("regcache.h"): Include it.
4289 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4290
6ad8ae5c
DJ
42912003-06-17 Daniel Jacobowitz <drow@mvista.com>
4292
4293 * NEWS: Mention gdbserver detach change and "disconnect" command.
4294 * infcmd.c (disconnect_command): New function.
4295 (_initialize_infcmd): Add ``disconnect'' command.
4296 * remote.c (remote_async_detach): Delete.
4297 (remote_detach): Merge remote_async_detach.
4298 (remote_disconnect): New.
4299 (init_remote_ops): Set to_disconnect.
4300 (init_remote_cisco_ops): Likewise.
4301 (init_remote_async_ops): Likewise. Use remote_detach.
4302 * target.c (cleanup_target): Default to_disconnect.
4303 (update_current_target): Inherit to_disconnect.
4304 (target_disconnect, debug_to_disconnect): New functions.
4305 (setup_target_debug): Set to_disconnect.
4306 * target.h (struct target_ops): Add to_disconnect.
4307 (target_disconnect): Add prototype.
4308
687595f9
DJ
43092003-06-17 Daniel Jacobowitz <drow@mvista.com>
4310
4311 * breakpoint.c (insert_catchpoint): New function.
4312 (insert_breakpoints): Use catch_exceptions to call
4313 insert_catchpoint. Disable catchpoints if they fail to insert.
4314
29239a8f
DJ
43152003-06-17 Daniel Jacobowitz <drow@mvista.com>
4316
4317 * symfile.c (reread_symbols): Clear sym_private.
4318
2cdf3c63
AC
43192003-06-17 Andrew Cagney <cagney@redhat.com>
4320
4321 * trad-frame.h (struct frame_info): Add opaque declaration.
4322 * remote-fileio.h (struct cmd_list_element): Add opaque
4323 declaration.
4324 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4325 comments.
4326
cf0e1e0d
DJ
43272003-06-17 Daniel Jacobowitz <drow@mvista.com>
4328
4329 * remote.c (remote_prepare_to_store): Replace call to
4330 deprecated_read_register_bytes with multiple regcache_raw_read
4331 calls.
4332
192cdb19
KW
43332003-06-17 Kris Warkentin <kewarken@qnx.com>
4334
4335 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4336 (nto_find_and_open_solib): Likewise.
4337 (nto_init_solib_absolute_prefix): Likewise.
4338 (_initialize_nto_tdep): Fix indentation.
4339
89929b45
KW
43402003-06-17 Kris Warkentin <kewarken@qnx.com>
4341
4342 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4343
46019f27
KW
43442003-06-17 Kris Warkentin <kewarken@qnx.com>
4345
4346 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4347
1a38736e
JB
43482003-06-17 Jim Blandy <jimb@redhat.com>
4349
4350 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4351
3605c34a
TR
43522003-06-16 Theodore A. Roth <troth@openavr.org>
4353
4354 * avr-tdep.c (avr_extract_return_value): New function.
4355 (avr_gdbarch_init): Set extract_return_value method.
4356
870b3035
AC
43572003-06-16 Andrew Cagney <cagney@redhat.com>
4358
4359 * frame.h (deprecated_get_next_frame_hack): Declare.
4360 * frame.c (legacy_saved_regs_prev_register): Only require
4361 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4362 there are always saved regs.
4363 (deprecated_generic_get_saved_register): Do not require
4364 DEPRECATED_FRAME_INIT_SAVED_REGS.
4365 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4366 use frame ID unwind instead.
4367 (deprecated_get_next_frame_hack): New function.
4368
63d47a7d
CV
43692003-06-16 Corinna Vinschen <vinschen@redhat.com>
4370
4371 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4372 (h8300_push_dummy_call): ...this function. Some minor optimization.
4373 (h8300_push_return_address): Remove.
4374 (h8300_gdbarch_init): Remove calls to
4375 set_gdbarch_deprecated_dummy_write_sp,
4376 set_gdbarch_deprecated_push_arguments and
4377 set_gdbarch_deprecated_push_return_address.
4378 Add call to set_gdbarch_push_dummy_call.
4379
4bb1dc5e
CV
43802003-06-16 Corinna Vinschen <vinschen@redhat.com>
4381
4382 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4383 (E_PSEUDO_EXR_REGNUM): Ditto.
4384 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4385 registers into safe registers.
4bb1dc5e
CV
4386 (h8300_skip_prologue): Check for stm instruction to push registers
4387 used for register variables onto stack.
4388 (gdb_print_insn_h8300): Remove.
4389 (h8300_examine_prologue): Add a comment.
4390 (h8300_register_name): Take pseudo registers into account.
4391 (h8300s_register_name): Ditto.
4392 (h8300sx_register_name): Ditto.
4393 (h8300_print_register): Ditto.
4394 (h8300_print_registers_info): Define "nice" printing order.
4395 (h8300_saved_pc_after_call): Take pseudo registers into account.
4396 (h8300_register_type): Ditto. Return type used for remote connection
4397 when requesting real CCR or EXR register, return actual type when
4398 requesting pseudo CCR or EXR.
4399 (h8300_pseudo_register_read): New function.
4400 (h8300_pseudo_register_write): Ditto.
4401 (h8300_dbg_reg_to_regnum): Ditto.
4402 (h8300s_dbg_reg_to_regnum): Ditto.
4403 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4404 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4405 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4406 set_gdbarch_print_insn architecture dependent.
4407 Call set_gdbarch_pseudo_register_read and
4408 set_gdbarch_pseudo_register_write.
4409 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4410
a59fe496
AC
44112003-06-16 Andrew Cagney <cagney@redhat.com>
4412
4413 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4414 * gdbarch.h, gdbarch.c: Re-generate.
4415 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4416 * s390-tdep.c (s390_gdbarch_init): Update.
4417 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4418 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4419 * mips-tdep.c (mips_gdbarch_init): Update.
4420 * mcore-tdep.c (mcore_gdbarch_init): Update.
4421 * cris-tdep.c (cris_gdbarch_init): Update.
4422 * infcall.c (call_function_by_hand): Update.
4423 * ia64-tdep.c (ia64_push_arguments): Update comment.
4424 * frame.c (legacy_get_prev_frame): Do not assume
4425 SAVE_DUMMY_FRAME_TOS_P.
4426 * dummy-frame.c (find_dummy_frame): Update comment.
4427
6f4e5a41
AC
44282003-06-16 Andrew Cagney <cagney@redhat.com>
4429
4430 * regcache.c (do_cooked_read): Do not use register_valid_p.
4431
72fab697
TR
44322003-06-15 Theodore A. Roth <troth@openavr.org>
4433
4434 * avr-tdep.c (avr_register_type): Remove a blank line.
4435 (avr_scan_prologue): Correct some comments.
4436
e3d8b004
TR
44372003-06-15 Theodore A. Roth <troth@openavr.org>
4438
4439 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4440 prologue types.
8ffd9b1b 4441 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4442 option.
4443 Add code to scan -mcall-prologues for mega devices.
4444
866b76ea
TR
44452003-06-15 Theodore A. Roth <troth@openavr.org>
4446
4447 * avr-tdep.c (avr_register_byte): Delete function.
4448 (avr_register_raw_size): Delete function.
4449 (avr_register_virtual_size): Delete function.
4450 (avr_register_virtual_type): Delete function.
4451 (avr_register_type): New function.
4452 (avr_address_to_pointer): Remove unused code.
4453 (avr_read_fp): Need to read FP as two separate bytes due to change to
4454 avr_register_type() usage.
4455 (avr_gdbarch_init): Don't set deprecated_register_size.
4456 Don't set deprecated_register_bytes.
4457 Don't set deprecated_register_byte.
4458 Don't set deprecated_register_raw_size.
4459 Don't set deprecated_max_register_raw_size.
4460 Don't set deprecated_register_virtual_size.
4461 Don't set deprecated_max_register_virtual_size.
4462 Don't set deprecated_register_virtual_type.
4463 Set register_type method.
4464
3993f6b1
DJ
44652003-06-15 Daniel Jacobowitz <drow@mvista.com>
4466
4467 * Makefile.in (linux-nat.o): Add rule.
4468 * linux-nat.c: New file.
4469 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4470 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4471 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4472 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4473 * config/arm/linux.mh (NATDEPFILES): Likewise.
4474 * config/i386/linux.mh (NATDEPFILES): Likewise.
4475 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4476 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4477 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4478 * config/mips/linux.mh (NATDEPFILES): Likewise.
4479 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4480 * config/s390/s390.mh (NATDEPFILES): Likewise.
4481 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4482
786a90bb
MK
44832003-06-15 Mark Kettenis <kettenis@gnu.org>
4484
4485 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4486 replace out-of-date comment.
4487
3bd3f01e
AC
44882003-06-15 Andrew Cagney <cagney@redhat.com>
4489
4490 * rdi-share/host.h (Fail): Change to a varargs function.
4491 * remote-rdi.c (Fail): Update.
8ffd9b1b 4492
de5b9bb9
MK
44932003-06-15 Mark Kettenis <kettenis@gnu.org>
4494
4495 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4496 (i386_convert_register_p, i386_register_to_value,
4497 i386_register_from_value): Handle types longer than 8 bytes.
4498
d532c08f
MK
44992003-06-15 Mark Kettenis <kettenis@gnu.org>
4500
4501 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4502 Move floating-point code to new function in i387-tdep.c.
4503 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4504 New functions containing code moved here from i386-tdep.c.
4505 * i387-tdep.h: Add opaque declaration for `struct type'.
4506 (i387_register_to_value, i387_value_to_register): New prototypes.
4507 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4508 (x86_64_init_abi): Set convert_register_p, register_to_value and
4509 value_to_register here.
8ffd9b1b 4510
42c466d7
AC
45112003-06-14 Andrew Cagney <cagney@redhat.com>
4512
4513 * mips-tdep.c (mips_register_to_value): Make static.
4514 (mips_value_to_register): Make static.
4515 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4516 * ia64-tdep.c (ia64_register_raw_size): Make static.
4517 (ia64_register_virtual_size): Make static.
4518 (ia64_register_byte): Make static.
4519 * i387-tdep.c: Include "i387-tdep.h".
4520 (print_387_control_word): Delete function.
4521 (print_387_status_word): Delete function.
4522 (print_387_status_bits): Delete function.
4523 (print_387_control_bits): Delete function.
4524 * Makefile.in (i387-tdep.o): Update dependencies.
4525 * rdi-share/host.h (Fail): Declare.
4526 * remote-rdi.c (Fail): Update to match declaration.
4527
2a9cda49
AC
45282003-06-14 Andrew Cagney <cagney@redhat.com>
4529
4530 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4531 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4532 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4533 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4534 * README: Delete reference to remote-array.
4535 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4536 (remote-array.o): Delete target.
4537 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4538 * remote-array.c: Delete file.
4539
ff2e87ac
AC
45402003-06-14 Andrew Cagney <cagney@redhat.com>
4541 Mark Kettenis <kettenis@gnu.org>
4542
4543 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4544 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4545 parameter with "frame".
4546 * gdbarch.h, gdbarch.c: Re-generate.
4547 * frame.h (put_frame_register): Declare.
4548 * frame.c (put_frame_register): New function.
4549 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4550 (legacy_register_to_value): Rewrite, use "frame" to get the
4551 register value.
4552 (legacy_value_to_register): Rewrite, use "frame" to find the
4553 register's location before storing.
4554 * arch-utils.h (legacy_convert_register_p): Update.
4555 (legacy_register_to_value, legacy_value_to_register): Update.
4556 * findvar.c (value_from_register): Rewrite, eliminate use of
4557 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4558 "frame" to REGISTER_TO_VALUE.
4559 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4560 lval_reg_frame_relative + lval_register branch of the switch. Do
4561 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4562 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4563 I386_EDI_REGNUM): New defines.
4564 (i386_next_regnum, i386_convert_register_p,
4565 i386_register_to_value, i386_value_to_register): New functions.
4566 (i386_register_convertible, i386_register_convert_to_virtual,
4567 i386_convert_to_raw): Remove functions.
4568 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4569 value_to_register instead of register_convertible,
4570 register_convert_to_virtual and register_convert_to_raw.
4571 * mips-tdep.c (mips_convert_register_p): New function.
4572 (mips_value_to_register): Replace mips_register_convert_from_type.
4573 (mips_register_to_value): Replace mips_register_convert_to_type.
4574 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4575 register_to_value.
4576 * alpha-tdep.c (alpha_convert_register_p): Update.
4577 (alpha_value_to_register): Update, store the register.
4578 (alpha_register_to_value): Update, fetch the register.
4579
98be1e77
TR
45802003-06-14 Theodore A. Roth <troth@openavr.org>
4581
4582 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4583 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4584 Don't set deprecated_call_dummy_words.
4585 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4586 Don't set remote_translate_xfer_address.
4587 (avr_io_reg_read_command): Remove commented out debug printf.
4588 Wrap a long line.
4589
57bc6122
TR
45902003-06-14 Theodore A. Roth <troth@openavr.org>
4591
4592 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4593 causes gdb to seg fault.
4594
eb01fc62
DJ
45952003-06-14 Daniel Jacobowitz <drow@mvista.com>
4596
4597 * sparc-nat.c (fetch_inferior_registers): Correct
4598 a reference to "registers".
4599
3b3e6bee
DJ
46002003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4601
4602 * Makefile.in (exc_request_U_h): Define
4603 (exc_request_S_h): Likewise.
4604 (msg_reply_S_h): Likewise.
4605 (msg_U_h): Likewise.
4606 (notify_S_h): Likewise.
4607 (process_reply_S_h): Likewise.
4608 (gnu-nat.o): Depend on gdb_obstack_h
4609 * gnu-nat.c: Include "gdb_obstack.h".
4610
b8de8283
AC
46112003-06-13 Andrew Cagney <cagney@redhat.com>
4612
4613 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4614 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4615
f3be58bc
AC
46162003-06-13 Andrew Cagney <cagney@redhat.com>
4617
4618 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4619 when deprecated REGISTER macros can be deleted.
4620 * gdbarch.h, gdbarch.c: Re-generate.
4621
4c0122c8
JB
46222003-06-13 Jim Blandy <jimb@redhat.com>
4623
4624 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4625 Linux entry point symbols for _dl_debug_state, too.
4626
3e210248
AC
46272003-06-13 Andrew Cagney <cagney@redhat.com>
4628
4629 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4630 available, do not use the FP register, and always save the TOS.
4631 * dummy-frame.c (dummy_frame_this_id): Do not assert
4632 SAVE_DUMMY_FRAME_TOS.
4633 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4634 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4635 (i386_push_dummy_call): Add 8 to the returned SP.
4636 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4637 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4638 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4639 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4640 (x86_64_push_dummy_call): Return "sp + 16".
4641 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4642 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4643 save_dummy_frame_tos.
4644
0b65af49
JB
46452003-06-13 Jim Blandy <jimb@redhat.com>
4646
4647 * frv-tdep.c (frv_use_struct_convention): Delete static
4648 declaration for function deleted in my change of 2003-06-12.
4649
4ea2465e
TR
46502003-06-13 Theodore A. Roth <troth@openavr.org>
4651
4652 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4653 (avr_pointer_to_address): Shift code addrs left 1 bit.
4654 (avr_convert_from_func_ptr_addr): Delete function since operation is
4655 better handled by avr_address_to_pointer and avr_pointer_to_address.
4656 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4657
1581182a
MK
46582003-06-13 Mark Kettenis <kettenis@gnu.org>
4659
4660 From Kelley Cook <kelleycook@wideopenwest.com>:
4661 * configure.host: Accept i[34567]86 variants.
4662 * configure.tgt: Likewise.
4663 * nlm/configure.in: Likewise.
4664 * nlm/configure: Regenerated.
4665
7aa1783e
RE
46662003-06-13 Richard Earnshaw <rearnsha@arm.com>
4667
4668 * arm-tdep.c (solib-svr4.h): Dont' include it.
4669 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4670 * arm-linux-tdep.c: ... here. Make static.
4671 (arm_linux_init_abi): Register it.
4672 (solib-svr4.h): Include it.
4673 * Makefile.in: Update dependencies.
4674 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4675 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4676
0261a0d0
CV
46772003-06-13 Corinna Vinschen <vinschen@redhat.com>
4678
4679 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4680 indicate registers used for return values.
4681 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4682 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4683 members.
4684 (h8300_init_extra_frame_info): Ditto.
4685 (h8300_frame_locals_address): Removed.
4686 (h8300_frame_args_address): Removed.
4687 (h8300_extract_return_value): Use new regcache structure. Only care
4688 for 16 bit CPUs.
4689 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4690 (h8300_store_return_value): Use new regcache structure. Only care
4691 for 16 bit CPUs.
4692 (h8300h_store_return_value): Same function for 32 bit CPUs.
4693 (h8300_store_struct_return): Removed.
4694 (h8300_extract_struct_value_address): Use new regcache structure.
4695 (h8300h_extract_struct_value_address): Removed.
4696 (h8300_push_dummy_code): New function.
4697 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4698 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4699 set_gdbarch_store_return_value architecture dependent.
4700 Call set_gdbarch_push_dummy_code and
4701 set_gdbarch_extract_struct_value_address.
4702 Remove calls to set_gdbarch_frame_args_address,
4703 set_gdbarch_frame_locals_address,
4704 set_gdbarch_deprecated_store_struct_return,
4705 set_gdbarch_deprecated_extract_return_value,
4706 set_gdbarch_deprecated_extract_struct_value_address,
4707 set_gdbarch_deprecated_call_dummy_words and
4708 set_gdbarch_deprecated_sizeof_call_dummy_words.
4709
055c394a
CV
47102003-06-13 Corinna Vinschen <vinschen@redhat.com>
4711
4712 * h8300-tdep.c (h8300_register_byte): Remove.
4713 (h8300h_register_byte): Remove.
4714 (h8300_register_virtual_type): Remove. Substitute by...
4715 (h8300_register_type): New function.
4716 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4717 (h8300h_extract_struct_value_address): Ditto.
4718 (h8300_gdbarch_init): Drop calls to
4719 set_gdbarch_deprecated_register_byte and
4720 set_gdbarch_deprecated_register_virtual_type.
4721 Add call to set_gdbarch_register_type.
4722
9c04cab7
AC
47232003-06-13 Andrew Cagney <cagney@redhat.com>
4724
4725 * gdbarch.sh: Update comments on registers.
4726 (deprecated_register_byte): Rename register_byte.
4727 (deprecated_register_raw_size): Rename register_raw_size.
4728 (deprecated_register_virtual_size): Rename register_virtual_size.
4729 (deprecated_register_virtual_type): Rename register_virtual_type.
4730 * gdbarch.h, gdbarch.c: Re-generate.
4731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4732 * vax-tdep.c (vax_gdbarch_init): Update.
4733 * v850-tdep.c (v850_gdbarch_init): Update.
4734 * sparc-tdep.c (sparc_gdbarch_init): Update.
4735 * sh-tdep.c (sh_gdbarch_init): Update.
4736 * s390-tdep.c (s390_gdbarch_init): Update.
4737 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4738 * ns32k-tdep.c: Update.
4739 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4740 * mips-tdep.c (mips_gdbarch_init): Update.
4741 * mcore-tdep.c (mcore_gdbarch_init): Update.
4742 * m68k-tdep.c (m68k_gdbarch_init): Update.
4743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4744 * ia64-tdep.c (ia64_gdbarch_init): Update.
4745 * hppa-tdep.c (hppa_gdbarch_init): Update.
4746 * h8300-tdep.c (h8300_gdbarch_init): Update.
4747 * frv-tdep.c (frv_gdbarch_init): Update.
4748 * cris-tdep.c (cris_gdbarch_init): Update.
4749 * avr-tdep.c (avr_gdbarch_init): Update.
4750 * alpha-tdep.c (alpha_gdbarch_init): Update.
4751 * arm-tdep.c (arm_gdbarch_init): Update.
4752
b060cbea
AC
47532003-06-13 Andrew Cagney <cagney@redhat.com>
4754
4755 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4756 mips_o32_use_struct_convention with always_use_struct_convention.
4757
0fc9922a
DC
47582003-06-12 David Carlton <carlton@kealia.com>
4759
4760 * cp-namespace.c (cp_set_block_scope): Comment out
4761 processing_has_namespace_info branch.
4762
1fd35568
JB
47632003-06-12 Jim Blandy <jimb@redhat.com>
4764
f470a70a
JB
4765 Recognize and skip 64-bit PowerPC Linux linkage functions.
4766 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4767 insn_pattern, insns_match_pattern, d_field, ds_field): New
4768 functions, macros, and types for working with PPC instructions.
4769 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4770 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4771 ppc64_skip_trampoline_code): New functions, variables, and macros
4772 for recognizing and skipping linkage functions.
4773 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4774 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4775
49ff75ad
JB
4776 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4777 register offsets for both the 32- and 64-bit interfaces.
4778
bd918c83
JB
4779 Actually finish the job started by my change of 2003-05-29.
4780 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4781 other #definition of this.
4782 (ppc_linux_skip_trampoline_code): Remove declaration.
4783 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4784 static.
4785 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4786 method for GDBARCH.
4787
4788 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4789 'long' on ppc64-*-linux*.
4790
f8c59253
JB
4791 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4792 isn't #defined, assume the register doesn't exist: act as if
4793 tdep->ppc_mq_regnum were -1.
4794
8fbb30b1
JB
4795 * configure.host, configure.tgt: Add entries for
4796 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4797 powerpc/linux.mt.
4798 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4799 New files.
4800
1fd35568
JB
4801 * arch-utils.c (always_use_struct_convention): New function.
4802 * arch-utils.h (always_use_struct_convention): New prototype.
4803 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4804 (alpha_gdbarch_init): Register always_use_struct_convention,
4805 instead of alpha_use_struct_convention.
4806 * cris-tdep.c (cris_use_struct_convention): Delete.
4807 (cris_gdbarch_init): Register always_use_struct_convention,
4808 instead of cris_use_struct_convention.
4809 * frv-tdep.c (frv_use_struct_convention): Delete.
4810 (frv_gdbarch_init): Register always_use_struct_convention,
4811 instead of frv_use_struct_convention.
4812 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4813 (h8300_gdbarch_init): Register always_use_struct_convention,
4814 instead of h8300_use_struct_convention.
e3305dd9 4815 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4816 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4817 instead of mips_o32_use_struct_convention.
4818
e14e6e9c
AC
48192003-06-12 Andrew Cagney <cagney@redhat.com>
4820
4821 * wince.c: Include "mips-tdep.h".
4822 * mips-tdep.h (mips_next_pc): Declare.
4823 * mcore-tdep.c: Make more local functions static.
4824 * Makefile.in (wince.o): Update dependencies.
4825
2335f48e
DC
48262003-06-12 David Carlton <carlton@kealia.com>
4827
4828 * symtab.c (lookup_symbol_aux_minsyms): Replace
4829 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4830 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4831 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4832 SYMBOL_NATURAL_NAME.
4833
f70a7d61
AS
48342003-06-12 Andreas Schwab <schwab@suse.de>
4835
4836 * Makefile.in (tuiDisassem.o): Update dependencies.
4837
b6429628
DC
48382003-06-12 David Carlton <carlton@bactrian.org>
4839
4840 * symtab.h: Delete declaration of make_symbol_overload_list.
4841 Add declaration of lookup_partial_symbol.
4842 * symtab.c (remove_params): Move to cp-support.c.
4843 (overload_list_add_symbol, make_symbol_overload_list)
4844 (sym_return_val_size, sym_return_val_index): Ditto.
4845 (lookup_partial_symbol): Make extern.
4846 * cp-support.h: Add declaration of make_symbol_overload_list.
4847 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4848 symtab.h, and block.h.
4849 (remove_params): Move here from symtab.c.
4850 (overload_list_add_symbol, make_symbol_overload_list)
4851 (sym_return_val_size, sym_return_val_index): Ditto.
4852 * valops.c: Include cp-support.h.
4853 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4854 frame_h, and block_h.
4855 (valops.o): Depend on cp_support_h.
4856
084edea5
CV
48572003-06-12 Corinna Vinschen <vinschen@redhat.com>
4858
4859 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4860 substitute by NUM_REGS throughout.
4861 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4862 (h8300s_register_name): New function for H8S registers.
4863 (h8300sx_register_name): Ditto for H8SX registers.
4864 (h8300_print_register): Revise register printing, avoid depending
4865 on 32 bit long.
0261a0d0 4866 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4867 (h8300h_register_byte): New function for any other architecture.
4868 (h8300_register_raw_size): Remove.
4869 (h8300_register_virtual_type): Revise to return actually useful
4870 type.
4871 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4872 (h8300h_extract_struct_value_address): New function for any other
4873 architecture.
4874 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4875 set_gdbarch_register_name, set_gdbarch_register_byte,
4876 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4877 Remove calls to set_gdbarch_deprecated_register_size,
4878 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4879 set_gdbarch_deprecated_max_register_raw_size,
4880 set_gdbarch_register_virtual_size and
4881 set_gdbarch_deprecated_max_register_virtual_size entirely.
4882 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4883 set_gdbarch_long_double_bit.
4884
06194148
JJ
48852003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4886
8ffd9b1b
AJ
4887 * doublest.c (convert_doublest_to_floatformat): When dealing
4888 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4889 processing a full 32 bits of mantissa.
4890
de4f826b
DC
48912003-06-11 David Carlton <carlton@bactrian.org>
4892
4893 * dictionary.h: New.
4894 * dictionary.c: New.
4895 * block.h: Add opaque declaration for struct dictionary.
4896 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4897 'sym' members.
4898 (BLOCK_DICT): New macro.
4899 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4900 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4901 BLOCK_SHOULD_SORT.
4902 (ALL_BLOCK_SYMBOLS): Update definition.
4903 * Makefile.in (SFILES): Add dictionary.c.
4904 (dictionary_h): New.
4905 (COMMON_OBS): Add dictionary.o.
4906 (dictionary.o): New.
4907 (ada-lang.o): Depend on dictionary_h.
4908 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4909 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4910 (mi-cmd-stack.o): Ditto.
4911 (gdbtk-cmds.o): Update dependencies.
4912 (gdbtk-stack.o): Ditto.
4913 * ada-lang.c: Include dictionary.h.
4914 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4915 (fill_in_ada_prototype, debug_print_block): Ditto.
4916 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4917 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4918 'is_sorted'.
4919 * mdebugread.c: Include dictionary.h.
4920 (struct parse_stack): Delete 'maxsyms' member.
4921 (parse_symbol): Update calls to new_block. Delete calls to
4922 shrink_block. Use dictionary methods.
4923 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4924 Update calls to new_symtab. Don't maintain maxsyms data.
4925 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4926 (add_symbol): Just call dict_add_symbol.
4927 (new_symtab): Delete 'maxsyms' argument.
4928 (new_symtab): Update calls to new_block.
4929 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4930 (shrink_block): Delete function.
4931 (fixup_sigtramp): Update call to new_block. Add symbol via
4932 dict_add_symbol.
4933 * jv-lang.c: Include dictionary.h.
4934 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4935 appropriately. Set class_symtab->free_func. Make sure the
4936 blockvector is big enough to hold two blocks.
4937 (add_class_symtab_symbol): Use dictionary methods.
4938 (free_class_block): New function.
4939 (type_from_class): Replace explicit iteration by
4940 ALL_BLOCK_SYMBOLS.
4941 * symtab.h (struct symtab): Replace 'free_ptr' method by
4942 'free_func'.
4943 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4944 sort_symtab_syms.
4945 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4946 sort_symtab_syms.
4947 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4948 Include dictionary.h.
4949 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4950 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4951 sort_symtab_syms.
4952 * objfiles.c: Include dictionary.h.
4953 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4954 * buildsym.c: Include dictionary.h.
4955 (finish_block): Use dictionary methods.
4956 (end_symtab): Set free_func to NULL, not free_ptr.
4957 * tracepoint.c: Include dictionary.h.
4958 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4959 (scope_info): Ditto.
4960 * stack.c: Include dictionary.h.
4961 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4962 (print_block_frame_labels, print_frame_arg_vars)
4963 (print_frame_args): Ditto.
4964 * symmisc.c (free_symtab_block): Use dictionary methods.
4965 (dump_symtab): Ditto.
4966 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4967 Include dictionary.h.
4968 * symfile.h: Delete declarations of sort_block_syms,
4969 sort_symtab_syms.
4970 * symfile.c (sort_block_syms): Delete.
4971 (sort_symtab_syms): Delete.
4972 * symtab.c: Include dictionary.h.
4973 (lookup_block_symbol): Use dictionary iterators.
4974 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4975 (search_symbols, make_symbol_completion_list): Ditto.
4976 (make_symbol_overload_list): Ditto.
4977 * valops.c (value_of_local): Use dict_empty.
4978 Include dictionary.h.
4979
a31f978c
JB
49802003-06-11 J. Brobecker <brobecker@gnat.com>
4981
4982 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4983
526e70c0
DC
49842003-06-11 David Carlton <carlton@bactrian.org>
4985
4986 * block.h (BLOCK_SHOULD_SORT): Delete.
4987 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4988 blocks.
4989 * ada-lang.c (ada_add_block_symbols): Ditto.
4990 * symfile.c (sort_block_syms): Delete.
4991 (sort_symtab_syms): Ditto.
4992 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4993 declarations.
4994 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4995 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4996 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4997 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4998 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4999 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5000 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5001
33c08150
JJ
50022003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5003
8ffd9b1b 5004 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5005 bits to 128.
5006
781a750d
AC
50072003-06-11 Andrew Cagney <cagney@redhat.com>
5008
5009 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5010 REGISTER_CONVERTIBLE.
5011 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5012 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5013 * gdbarch.h, gdbarch.c: Re-generate.
5014 * arch-utils.h (deprecated_register_convertible_not): Rename
5015 generic_register_convertible_not.
5016 * arch-utils.c (deprecated_register_convertible_not): Rename
5017 generic_register_convertible.
5018 (legacy_convert_register_p, legacy_register_to_value): Update.
5019 * sh-tdep.c (sh64_push_arguments): Update.
5020 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5021 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5022 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5023 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5024 * arch-utils.c (legacy_value_to_register): Update.
5025 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5026 (rs6000_register_convert_to_raw): Make parameter "from" const.
5027 * mips-tdep.c (mips_gdbarch_init): Update.
5028 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5029 * infcmd.c (default_print_registers_info): Update.
5030 * ia64-tdep.c (ia64_gdbarch_init): Update.
5031 (ia64_register_convert_to_raw): Make parameter "from" const.
5032 * i386-tdep.c (i386_gdbarch_init): Update.
5033 (i386_register_convert_to_raw): Update.
5034
cd90e54f
AC
50352003-06-11 Andrew Cagney <cagney@redhat.com>
5036
5037 * remote-fileio.c: Include "remote-fileio.h".
5038 * Makefile.in (remote-fileio.o): Update dependencies.
5039 (remote_fileio_h): Fix typo.
5040
a78f21af
AC
50412003-06-11 Andrew Cagney <cagney@redhat.com>
5042
5043 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5044 (xstormy16_save_dummy_frame_tos): Make static.
5045 (_initialize_xstormy16_tdep): Add declaration.
5046 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5047 * v850-tdep.c: Make local functions static.
5048 (_initialize_v850_tdep): Add declaration.
5049 * sparc-tdep.c: Make local functions static.
5050 (_initialize_sparc_tdep): Add declaration.
5051 * sh-tdep.c: Make local functions static.
5052 (_initialize_sh_tdep): Add declaration.
5053 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5054 * s390-tdep.c: Make local functions static.
5055 (_initialize_s390_tdep): Add declaration.
5056 * dbxread.c (find_stab_function_addr): Make static.
5057 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5058 * ocd.c (_initialize_remote_ocd): Add declaration.
5059 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5060 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5061 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5062 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5063 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5064 * remote-array.c (_initialize_array): Add declaration.
5065 (_initialize_remote_monitors): Add declaration.
5066 * remote-mips.c: Make local functions static.
5067 (_initialize_remote_mips): Add declaration.
5068 * mcore-tdep.c: Make all local functions static.
5069 (_initialize_mcore_tdep): Add declaration.
5070 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5071 * abug-rom.c (_initialize_abug_rom): Add declaration.
5072 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5073 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5074 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5075 * remote-est.c (_initialize_est): Add declaration.
5076 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5077 (m68hc11_call_dummy_address): Make static.
5078 * ia64-tdep.c: Make local functions static.
5079 (_initialize_ia64_tdep): Add declaration.
5080 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5081 * monitor.c (monitor_wait_filter): Make static.
5082 (_initialize_remote_monitors): Add declaration.
5083 * remote-hms.c (_initialize_remote_hms): Add declaration.
5084 * remote-e7000.c (fetch_regs_from_dump): Make static.
5085 (expect_n): Make static.
5086 (_initialize_remote_e7000): Add declaration.
5087 * ser-e7kpc.c: Always include "defs.h".
5088 (_initialize_ser_e7000pc): Add declaration.
5089 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5090 * cris-tdep.c: Make all but one function static.
5091 (_initialize_cris_tdep): Add declaration.
5092 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5093 * solib.c (update_solib_list): Make static.
5094 (_initialize_solib): Add declaration.
5095 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5096 (_initialize_avr_tdep): Add declaration.
5097 * remote-rdi.c (voiddummy): Make static.
5098 (_initialize_remote_rdi): Add declaration.
5099 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5100 * remote-rdp.c (send_rdp): Make static.
5101 (_initialize_remote_rdp): Add declaration.
5102 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5103
cbcdb1f5
CV
51042003-06-11 Corinna Vinschen <vinschen@redhat.com>
5105
5106 * remote-fileio.c: Make ari happy.
5107
a191ea8d
JB
51082003-06-10 J. Brobecker <brobecker@gnat.com>
5109
5110 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5111 fetching the trailing bytes of the buffer we are about to write.
5112
0ef75e11
AC
51132003-06-10 Andrew Cagney <cagney@redhat.com>
5114
5115 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5116 * Makefile.in (remote-fileio.o): Update dependencies.
5117 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5118 include <setjmp.h>, or <sys/types.h> conditional on USG.
5119 (remote_fio_jmp_buf): Delete global variable.
5120
449092f6 51212003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5122 Martin M. Hunt <hunt@redhat.com>
449092f6 5123
559fa028
AC
5124 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5125 (SFILES): Add remote-fileio.c.
5126 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5127 dependencies for building remote.o.
449092f6
CV
5128 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5129 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5130 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5131 static storage class.
5132 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5133 'F' packet.
5134 (_initialize_remote): Call initialize_remote_fileio().
5135 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5136 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5137 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5138 (captured_main): Initialize new ui_files.
5139 * ui-file.c: Add read and fgets input functions.
5140 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5141 (null_file_read): New function.
5142 (ui_file_read): New function.
5143 (set_ui_file_read): New function.
5144 (stdio_file_read): New function.
5145 * ui-file.h: New type ui_file_read_ftype.
5146 (set_ui_file_read): Declare.
5147 (ui_file_read): Declare.
5148
248de703
AC
51492003-06-09 Andrew Cagney <cagney@redhat.com>
5150
5151 * frame.h (deprecated_unwind_get_saved_register): Rename
5152 generic_unwind_get_saved_register, update comments.
5153 * mips-tdep.c (mips_get_saved_register): Update.
5154 * frame.c (deprecated_unwind_get_saved_register): Update.
5155
0ed8aa57
AC
51562003-06-09 Andrew Cagney <cagney@redhat.com>
5157
5158 * vax-tdep.c (vax_frame_locals_address): Delete function.
5159 (vax_gdbarch_init): Do not set frame_locals_address.
5160 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5161 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5162 * s390-tdep.c (s390_frame_args_address): Delete function.
5163 (s390_gdbarch_init): Do not set frame_args_address or
5164 frame_locals_address.
5165 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5166 (ns32k_gdbarch_init): Do not set frame_locals_address.
5167 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5168 (hppa_frame_locals_address): Delete function.
5169 (hppa_gdbarch_init): Do not set frame_args_address, or
5170 frame_locals_address.
5171 * arm-tdep.c (arm_frame_args_address): Delete.
5172 (arm_frame_locals_address): Delete.
5173 (arm_gdbarch_init): Do not set frame_args_address, or
5174 frame_locals_address.
5175
983a287a
AC
51762003-06-09 Andrew Cagney <cagney@redhat.com>
5177
5178 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5179 * gdbarch.h, gdbarch.c: Re-generate.
5180 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5181 * arch-utils.c (frame_num_args_unknown): Delete function.
5182 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5183 (frame_info): Use FRAME_NUM_ARGS_P.
5184 * arm-tdep.c (arm_frame_num_args): Delete function.
5185 (arm_gdbarch_init): Do not set frame_num_args.
5186 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5187 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5188 (hppa_gdbarch_init): Do not set frame_num_args.
5189 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5191 frame_num_args to default frame_num_args_unknown.
5192 * v850-tdep.c (v850_gdbarch_init): Ditto.
5193 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5194 * sh-tdep.c (sh_gdbarch_init): Ditto.
5195 * s390-tdep.c (s390_gdbarch_init): Ditto.
5196 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5197 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5198 * mips-tdep.c (mips_gdbarch_init): Ditto.
5199 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5200 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5202 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5203 * i386-tdep.c (i386_gdbarch_init): Ditto.
5204 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5205 * frv-tdep.c (frv_gdbarch_init): Ditto.
5206 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5207 * cris-tdep.c (cris_gdbarch_init): Ditto.
5208 * avr-tdep.c (avr_gdbarch_init): Ditto.
5209 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5210
8d3b0994
AC
52112003-06-09 Andrew Cagney <cagney@redhat.com>
5212
5213 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5214 (print_frame_args): Moved to "stack.c".
5215 * stack.c: Include "gdb_assert.h".
5216 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5217 (print_frame_args): Moved from "printcmd.c".
5218 * frame.h (print_frame_args): Delete declaration.
5219 * Makefile.in (stack.o): Update dependencies.
5220
25e3a86b
AC
52212003-06-08 Andrew Cagney <cagney@redhat.com>
5222
5223 * frame.c (get_prev_frame): Remove reference to
5224 frame_args_address_correct in comments.
5225 * frame-base.c (default_frame_args_address): Delete code
5226 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5227 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5228 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5229 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5230 (vax_frame_args_address_correct): Delete declaration.
5231
a9e5fdc2
AC
52322003-06-08 Andrew Cagney <cagney@redhat.com>
5233
5234 * gdbarch.sh (UNWIND_SP): Add.
5235 * gdbarch.h, gdbarch.c: Re-generate.
5236 * frame.c (frame_sp_unwind): New function.
5237 (get_frame_sp): New function.
5238 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5239 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5240 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5241 value.
5242 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5243 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5244
8983bd83
AC
52452003-06-08 Andrew Cagney <cagney@redhat.com>
5246
7fec2c59
AC
5247 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5248 REMOTE_BREAKPOINT.
5249 * remote.c: Update.
5250 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5251 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5252 * config/m68k/tm-sun3.h: Update.
5253 * config/m68k/tm-m68klynx.h: Update.
5254 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5255
8983bd83
AC
5256 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5257 trad_frame". Update comments.
5258 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5259 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5260 (trad_frame_register_value, trad_frame_prev_register): Update.
5261
b9362cc7
AC
52622003-06-08 Andrew Cagney <cagney@redhat.com>
5263
5264 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5265 from GCC's acinclude.m4.
5266 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5267 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5268 * main.c (error_init): Delete declaration.
5269 * defs.h (error_init): Declare.
5270 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5271 (rs6000_convert_from_func_ptr_addr): Make static.
5272 (_initialize_rs6000_tdep): Add declaration.
5273 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5274 (show_commands, set_verbose, show_history): Delete declaration.
5275 * top.h (set_verbose): Add declaration.
5276 (show_history, set_history, show_commands): Add declaration.
5277 (do_restore_instream_cleanup): Add declaration.
5278 * objc-lang.c (specialcmp): Make static.
5279 (print_object_command): Make static.
5280 (find_objc_msgsend): Make static.
5281 (find_objc_msgcall_submethod_helper): Make static.
5282 (find_objc_msgcall_submethod): Make static.
5283 (_initialize_objc_language): Add declaration.
5284 (find_implementation_from_class): Make static.
5285 (find_implementation): Make static.
5286 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5287 * objc-lang.h (lookup_struct_typedef): Add declaration.
5288 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5289 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5290 (do_restore_user_call_depth): Make static.
5291 (do_restore_instream_cleanup): Delete declaration.
5292 (dont_repeat): Delete declaration.
5293 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5294 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5295 * reggroups.c (_initialize_reggroup): Add declaration.
5296 * cp-support.c (_initialize_cp_support): Add declaration.
5297 * cp-abi.c (_initialize_cp_abi): Add declaration.
5298 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5299 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5300 (_initialize_gnu_v3_abi): Add declaration.
5301 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5302 (_initialize_gnu_v2_abi): Add declaration.
5303 * frame-base.c (_initialize_frame_base): Add declaration.
5304 * doublest.c (floatformat_from_length): Make static.
5305 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5306 * frame.c (create_sentinel_frame): Make static.
5307 (_initialize_frame): Add declaration.
5308 * top.c (do_catch_errors): Make static.
5309 (gdb_rl_operate_and_get_next_completion): Make static.
5310 * typeprint.c: Include "typeprint.h".
5311 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5312 (sentinel_frame_this_id): Make static.
5313 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5314 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5315 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5316 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5317 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5318 * maint.c (maintenance_print_architecture): Make static.
5319 * signals/signals.c (_initialize_signals): Add declaration.
5320 * std-regs.c (_initialize_frame_reg): Add declaration.
5321 * jv-exp.y (push_variable): ISO C definition.
5322 (push_qualified_expression_name): Ditto.
5323 * memattr.c (_initialize_mem): Add declaration.
5324 * remote.c (remote_check_watch_resources): Make static.
5325 (remote_stopped_by_watchpoint): Make static.
5326 (remote_stopped_data_address): Make static.
5327 * d10v-tdep.c (nr_dmap_regs): Make static.
5328 (a0_regnum): Make static.
5329 (d10v_frame_unwind_cache): Make static.
5330 (d10v_frame_p): Make static.
5331 * osabi.c (show_osabi): Make static.
5332 (_initialize_gdb_osabi): Add extern declaration.
5333 * gdbtypes.c (make_qualified_type): Make static.
5334 (safe_parse_type): Make static.
5335 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5336 * macrotab.c (macro_bcache_free): Make static.
5337 * interps.c (interp_set_quiet): Make static.
5338 (interpreter_exec_cmd): Make static.
5339 * stack.h (select_frame_command): New file.
5340 * stack.c: Include "stack.h".
5341 (select_frame_command_wrapper): Delete function.
5342 (select_frame_command): Make global.
5343 * infcall.c: Include "infcall.h".
5344 * linespec.c: Include "linespec.h".
5345 * symfile.c (sections_overlap): Make static.
5346 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5347 * charset.c (_initialize_charset): Add missing prototype.
5348 * regcache.c (init_legacy_regcache_descr): Make static.
5349 (do_regcache_xfree): Make static.
5350 (regcache_xfer_part): Make static.
5351 (_initialize_regcache): Add missing prototype.
5352 * breakpoint.c (parse_breakpoint_sals): Make static.
5353 (breakpoint_sals_to_pc): Make static.
5354 * interps.h (clear_interpreter_hooks): ISO C declaration.
5355 * Makefile.in (stack_h): Define.
5356 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5357 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5358
a0f267c7
AC
53592003-06-08 Andrew Cagney <cagney@redhat.com>
5360
5361 * Makefile.in (d10v-tdep.o): Update dependencies.
5362 (SFILES): Add trad-frame.c.
5363 (trad_frame_h): Define.
5364 (COMMON_OBS): Add trad-frame.o.
5365 (trad-frame.o): Specify dependencies.
5366 * d10v-tdep.c: Include "trad-frame.h".
5367 (saved_regs_unwinder): Delete function.
5368 (d10v_frame_prev_register): Use trad_frame_prev_register.
5369 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5370 trad_frame", delete "regs" and "prev_sp".
5371 (prologue_find_regs): Use trad-frame.
5372 * trad-frame.h, trad-frame.c: New files.
5373
4538b4f4
MK
53742003-06-08 Mark Kettenis <kettenis@gnu.org>
5375
5376 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5377
a0273b2f
AF
53782003-06-07 Adam Fedor <fedor@gnu.org>
5379
5380 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5381 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5382 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5383 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5384 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5385 Use it.
5386
3a6c3343
AC
53872003-06-07 Andrew Cagney <cagney@redhat.com>
5388
5389 * symfile.h: Re-indent, clean up comments.
5390
b46e02f6
AC
53912003-06-07 Andrew Cagney <cagney@redhat.com>
5392
5393 * inferior.h (deprecated_write_sp): Replace
5394 generic_target_write_sp.
5395 * regcache.c (deprecated_write_sp): Replace
5396 generic_target_write_sp.
5397 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5398 * vax-tdep.c (vax_gdbarch_init): Update.
5399 * v850-tdep.c (v850_gdbarch_init): Update.
5400 * sparc-tdep.c (sparc_gdbarch_init): Update.
5401 * sh-tdep.c (sh_gdbarch_init): Update.
5402 * s390-tdep.c (s390_gdbarch_init): Update.
5403 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5404 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5405 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5406 * mcore-tdep.c (mcore_gdbarch_init): Update.
5407 * m68k-tdep.c (m68k_gdbarch_init): Update.
5408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5409 * ia64-tdep.c (ia64_gdbarch_init): Update.
5410 * h8300-tdep.c (h8300_gdbarch_init): Update.
5411 * frv-tdep.c (frv_gdbarch_init): Update.
5412 * cris-tdep.c (cris_gdbarch_init): Update.
5413 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5414
a42e117c
AC
54152003-06-07 Andrew Cagney <cagney@redhat.com>
5416
5417 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5418 Assert that PC_REGNUM is valid.
5419 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5420
bd1ce8ba
AC
54212003-06-07 Andrew Cagney <cagney@redhat.com>
5422
5423 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5424 * gdbarch.h, gdbarch.c: Regenerate.
5425 * mn10300-tdep.c: Include "gdb_assert.h".
5426 (mn10300_read_fp): New function.
5427 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5428 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5429 * ia64-tdep.c: Include "gdb_assert.h".
5430 (ia64_read_fp): New function.
5431 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5432 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5433 * regcache.c (generic_target_read_sp): Delete function.
5434 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5435 * inferior.h (generic_target_read_sp): Delete declaration.
5436 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5437 generic_target_read_sp.
5438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5439 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5440 * sh-tdep.c (sh_gdbarch_init): Ditto.
5441 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5442 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5443
ec5cbaec
AC
54442003-06-07 Andrew Cagney <cagney@redhat.com>
5445
5446 * gdbarch.sh: Comment each field of startup_gdbarch.
5447 * gdbarch.h, gdbarch.c: Re-generate.
5448
cde9ea48
AC
54492003-06-07 Andrew Cagney <cagney@redhat.com>
5450
5451 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5452 * gdbarch.h, gdbarch.c: Re-generate.
5453 * regcache.c: Update comments on read_pc et.al.
5454 (generic_target_read_pc): Delete function.
5455 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5456 * inferior.h (generic_target_read_pc): Delete declaration.
5457 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5458 generic_target_read_pc.
5459 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5460 * sh-tdep.c (sh_gdbarch_init): Ditto.
5461 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5463
9a90a780
AC
54642003-06-07 Andrew Cagney <cagney@redhat.com>
5465
5466 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5467 "index" with "special_local_sect". Use strcmp instead of STREQ.
5468 Append period to coments.
5469
a39a16c4
MM
54702003-06-06 Mark Mitchell <mark@codesourcery.com>
5471
5472 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5473 (elfstab_offset_sections): Likewise.
5474 * gdb-stabs.h (stab_section_info): Likewise.
5475 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5476 * objfiles.c (objfile_relocate): Likewise.
5477 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5478 * remote.c (get_offsets): Likewise.
5479 (remote_cisco_objfile_relocate): Likewise.
5480 * somread.c (som_symfile_offsets): Likewise.
5481 * symfile.c (alloc_section_addr_info): New function.
5482 (build_section_addr_info_from_section_tab): Use it.
5483 (free_section_addr_info): Adjust.
5484 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5485 (syms_from_objfile): Allocate local_addr dynamically.
5486 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5487 dynamically.
5488 (add_symbol_file_command): Allocate sect_opts dynamically.
5489 (reread_symbols): Avoid use of SECT_OFF_MAX.
5490 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5491 (alloc_section_addr_info): Declare it.
5492 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5493 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5494 dynamically.
5495 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5496
20c6c2f8
AC
54972003-06-06 Andrew Cagney <cagney@redhat.com>
5498
5499 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5500 (d10v_frame_unwind_cache): Do not set "return_pc".
5501
884a26c8
MS
55022003-06-06 Michael Snyder <msnyder@redhat.com>
5503
5504 * h8300-tdep.c: Make tidy (long lines).
5505
088ce440
ML
55062003-06-06 Michal Ludvig <mludvig@suse.cz>
5507
8ffd9b1b 5508 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5509 to regcache_collect().
5510
7d773d96
JB
55112003-06-05 J. Brobecker <brobecker@gnat.com>
5512
5513 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5514 pc_in_sigtramp multiarch method.
5515 (hppa_hpux_som_init_abi): Use it.
5516 (hppa_hpux_elf_init_abi): Likewise.
5517 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5518 macro has been multiarched.
5519 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5520 macro here, as hppa64 isn't multiarched yet.
5521
1df6926e
AC
55222003-06-05 Andrew Cagney <cagney@redhat.com>
5523
5524 * Makefile.in (value_h): Add $(frame_h).
5525 * value.h: Include "frame.h".
5526 (struct value): Replace "frame_addr" with "frame_id".
5527 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5528 * values.c (allocate_value): Use VALUE_FRAME_ID.
5529 (value_copy): Use VALUE_FRAME_ID.
5530 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5531 * valops.c (value_assign): Update. Use frame_find_by_id.
5532
6b53acc6
ML
55332003-06-05 Michal Ludvig <mludvig@suse.cz>
5534
5535 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5536 in each pass.
5537
4d9850d3
JJ
55382003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5539
5540 * thread-db.c (check_event): For create/death event breakpoints,
5541 loop through all messages to ensure that we read the message
5542 corresponding to the breakpoint we are at.
5543
8efca6ba
MS
55442003-06-04 Michael Snyder <msnyder@redhat.com>
5545
5546 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5547
0912c7f2
MK
55482003-06-04 Mark Kettenis <kettenis@gnu.org>
5549
5550 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5551 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5552 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5553 when handling .eh_frame sections.
5554
4e370325
JB
55552003-06-04 J. Brobecker <brobecker@gnat.com>
5556
5557 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5558 prepare_to_proceed procedure instead of the hppa-specific one.
5559 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5560
b757528f 55612003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5562
b757528f
JJ
5563 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5564 * config.in: Regenerated.
5565 * configure.in: Add test for syscall function and check for
5566 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5567 * configure: Regenerated.
5568 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5569 <sys/syscall.h>.
5570 (kill_lwp): New function that uses tkill syscall or
5571 uses kill, depending on whether threading model is nptl or not.
5572 All callers of kill() changed to use kill_lwp().
5573 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5574 see if all threads have already exited in the nptl model.
5575 (stop_and_resume_callback): New callback function used by the
5576 lin_lwp_wait thread exit handling code.
5577 (stop_wait_callback): Check for threads already having exited and
5578 delete such threads fromt the lwp list when discovered.
5579 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5580
b757528f
JJ
5581 Roland McGrath <roland@redhat.com>
5582 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5583 nptl libthread_db.
5584
087779b1
RH
55852003-06-03 Richard Henderson <rth@redhat.com>
5586
b21fd293
RH
5587 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5588 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5589 (alpha_sigtramp_frame_prev_register): Likewise.
5590 (alpha_heuristic_frame_prev_register): Likewise.
5591 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5592
8ffd9b1b 5593 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5594 alpha-specific register id names.
5595 (alpha_mdebug_frame_unwind_cache): Likewise.
5596 (alpha_mdebug_frame_prev_register): Likewise.
5597
baa490c4
RH
55982003-06-03 Richard Henderson <rth@redhat.com>
5599
5600 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5601 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5602 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5603 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5604 unwind routines.
5605 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5606 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5607 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5608
5609 * alpha-linux-tdep.c: Remove unnecessary includes.
5610 * Makefile.in (alpha-linux-tdep.o): Update.
5611
56122003-06-03 Richard Henderson <rth@redhat.com>
5613
5614 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5615 (alphabsd_fill_fpreg): Likewise.
5616
f534e522
JB
56172003-06-03 J. Brobecker <brobecker@gnat.com>
5618
5619 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5620 references to struct frame_info fields by calls to the equivalent
5621 accessors. Necessary now that frame_info is opaque.
5622
4035536b
JB
56232003-06-03 J. Brobecker <brobecker@gnat.com>
5624
5625 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5626 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5627 structure, field no longer exists.
5628
0bd79c5c
JB
56292003-06-03 J. Brobecker <brobecker@gnat.com>
5630
5631 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5632 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5633
37bb6d9f
JB
56342003-06-03 J. Brobecker <brobecker@gnat.com>
5635
5636 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5637 references to struct frame_info fields by calls to the equivalent
5638 accessors. Necessary now that frame_info is opaque.
5639
852ee05c
JB
56402003-06-03 J. Brobecker <brobecker@gnat.com>
5641
5642 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5643 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5644 structure, field no longer exists.
5645
7d58c67d
TR
56462003-06-03 Theodore A. Roth <troth@openavr.org>
5647
8ffd9b1b 5648 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5649 accumulation of the size of all registers instead of blindly using
5650 DEPRECATED_REGISTER_BYTES.
5651
0a48e7e8
MS
56522003-06-03 Michael Snyder <msnyder@redhat.com>
5653
5654 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5655 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5656 for h8300sx.
5657
9798ab0d
JB
56582003-06-03 J. Brobecker <brobecker@gnat.com>
5659
5660 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5661 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5662
00b037e2
AC
56632003-06-03 Andrew Cagney <cagney@redhat.com>
5664
5665 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5666 (sparc_convert_to_raw): Delete function.
5667 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5668 register_convert_to_virtual.
5669
043b2f77
JJ
56702003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5671
5672 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5673 layer if not dealing with a statically-linked threaded program.
5674
f43caff8
KW
56752003-06-03 Kris Warkentin <kewarken@qnx.com>
5676
5677 * solib.c (solib_open): Update comment to reflect actual search order.
5678
ae1e7417
AC
56792003-06-03 Andrew Cagney <cagney@redhat.com>
5680
5681 * frame.c (get_frame_memory_signed): New function.
5682 (get_frame_memory, get_frame_memory_unsigned): New function.
5683 (get_frame_arch): New function.
5684 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5685 (get_frame_memory, get_frame_unsigned_memory): Declare.
5686 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5687 get_frame_memory_unsigned and get_frame_arch.
5688 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5689
cb123844
RG
56902003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5691
5692 * MAINTAINERS (write after approval): Add myself.
5693
1bb792e9
JB
56942003-06-03 Jim Blandy <jimb@redhat.com>
5695
5696 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5697 elements of gregset_t are 64 bits each, but access registers
5698 are still 32 bits, so they're packed two per gregset_t
5699 element. Unpack/pack them properly.
5700
aee8d8ba
DC
57012003-06-02 David Carlton <carlton@bactrian.org>
5702
5703 * linespec.c (find_methods): Break out code into
5704 add_matching_methods and add_constructors.
5705 (add_matching_methods): New.
5706 (add_constructors): Ditto.
5707
bf7488d2
AC
57082003-06-02 Andrew Cagney <cagney@redhat.com>
5709
bf7488d2
AC
5710 * sparc-tdep.c (sparc_print_registers): Delete call to
5711 REGISTER_CONVERTIBLE.
5712 (sparc_gdbarch_init): Do not set register_convertible.
5713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5714 * frv-tdep.c (frv_gdbarch_init): Ditto.
5715 * cris-tdep.c (cris_gdbarch_init): Ditto.
5716
adedef68
EZ
57172003-06-02 Elena Zannoni <ezannoni@redhat.com>
5718
8ffd9b1b 5719 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5720 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5721 (syms_from_objfile): Ditto.
5722
650fcc91
AS
57232003-06-03 Andreas Schwab <schwab@suse.de>
5724
5725 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5726 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5727
df4a182b
RH
57282003-06-02 Richard Henderson <rth@redhat.com>
5729
5730 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5731 a member of all_reggroup.
5732
c483c494
RH
57332003-06-02 Richard Henderson <rth@redhat.com>
5734
5735 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5736 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5737 (alpha_lds, alpha_sts): New.
5738 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5739 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5740 restructure and fail for type sizes other than 4 or 8.
5741 (alpha_value_to_register): Similarly.
5742 (alpha_extract_return_value): Use alpha_sts.
5743 (alpha_store_return_value): Use alpha_lds.
5744 (alpha_gdbarch_init): Update hooks.
5745
b38b6be2
RH
57462003-06-02 Richard Henderson <rth@redhat.com>
5747
5748 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5749 regnum identifiers.
5750 (alpha_sigtramp_register_address): Likewise.
5751
98a8e1e5
RH
57522003-06-02 Richard Henderson <rth@redhat.com>
5753
5754 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5755 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5756 * alpha-tdep.h: Declare them.
5757
5758 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5759 Remove zerobuf. Don't error on UNIQUE.
5760 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5761 (ALPHA_REGSET_UNIQUE): Provide default.
5762 (supply_gregset): Use alpha_supply_int_regs.
5763 (fill_gregset): Use alpha_fill_int_regs.
5764 (supply_fpregset): Use alpha_supply_fp_regs.
5765 (fill_fpregset): Use alpha_fill_fp_regs.
5766 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5767 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5768 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5769 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5770 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5771 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5772
67dfac52
RH
57732003-06-02 Richard Henderson <rth@redhat.com>
5774
f75d70cc
RH
5775 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5776
67dfac52
RH
5777 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5778 (alpha_store_return_value): Likewise.
5779
0cf566ec
DC
57802003-06-02 David Carlton <carlton@math.stanford.edu>
5781
5782 * block.c (contained_in): Add 'const' to arguments.
5783 (block_function): Ditto.
5784 * block.h: Update declarations for block_function and
5785 contained_in.
5786
cdef89d0
DC
57872003-06-02 David Carlton <carlton@math.stanford.edu>
5788
5789 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5790 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5791 * p-valprint.c (pascal_val_print): Ditto.
5792 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5793
72667056
RH
57942003-06-02 Richard Henderson <rth@redhat.com>
5795
98a8e1e5
RH
5796 * alpha-tdep.c (alpha_push_dummy_call): Use
5797 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5798
8ffd9b1b 5799 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5800 sign-extension of 32-bit values.
5801 (alpha_store_return_value): Similarly.
0ede8eca 5802
98a8e1e5
RH
5803 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5804 (alpha_extract_return_value): Likewise.
5805 (alpha_store_return_value): Likewise.
7b5e1cb3 5806
98a8e1e5
RH
5807 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5808 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5809
98a8e1e5
RH
5810 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5811 (alpha_extract_struct_value_address): Likewise.
5812 (alpha_store_return_value): Likewise.
5813 (alpha_store_struct_return): Remove.
5814 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5815
98a8e1e5
RH
5816 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5817 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5818 macros where appropriate.
5819 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5820 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5821
98a8e1e5
RH
5822 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5823 for SP, GP; void_func_ptr for PC; non-language-specific types
5824 for all others.
5825 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5826
6dd77b81
RH
58272003-06-02 Richard Henderson <rth@redhat.com>
5828
5829 * top.h (lim_at_start): Declare.
5830 * main.c (captured_main): Set it.
5831 * top.c (lim_at_start): Define.
5832 (command_loop): Use it instead of &environ.
5833 * event-top.c (command_handler): Likewise.
5834
f4dbdb54
JT
58352003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5836
5837 * mipsnbsd-tdep.c: Update copyright years.
5838 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5839
8f285956
RH
58402003-06-01 Richard Henderson <rth@redhat.com>
5841
98a8e1e5
RH
5842 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5843 (alpha-linux-tdep.o): Update dependencies.
5844 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5845 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5846
615967cb
RH
58472003-06-01 Richard Henderson <rth@redhat.com>
5848
98a8e1e5
RH
5849 * alpha-tdep.c (alpha_register_reggroup_p): New.
5850 (alpha_gdbarch_init): Register it.
615967cb 5851
b59661bd
AC
58522003-06-02 Andrew Cagney <cagney@redhat.com>
5853
5854 * dwarfread.c: Eliminate "register"
5855 (decode_die_type): Eliminate assignment within "if".
5856 (struct_type, decode_array_element_type): Ditto.
5857 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5858 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5859 (decode_modified_type, completedieinfo): Ditto.
5860 * block.c: Eliminate "register".
5861 (blockvector_for_pc_sect): Eliminate assignment within "if".
5862 * cp-support.h (struct symbol): Opaque declaration.
5863 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5864
5ef165c2
RH
58652003-06-01 Richard Henderson <rth@redhat.com>
5866
98a8e1e5
RH
5867 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5868 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5869
143985b7
AF
58702003-06-01 Adam Fedor <fedor@gnu.org>
5871
5872 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5873 * gdbarch.[ch]: Regenerate.
5874 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5875 (hppa_gdbarch_init): Set it in the gdbarch vector.
5876 * i386-tdep.c (i386_fetch_pointer_argument): New
5877 (i386_gdbarch_init): Set it into gdbarch.
5878 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5879 (rs6000_gdbarch_init): Set it in gdbarch.
5880 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5881 (sparc_gdbarch_init): Set it in gdbarch.
5882
ae0167b9
AC
58832003-06-01 Andrew Cagney <cagney@redhat.com>
5884
7c0b4a20
AC
5885 * defs.h (extract_address): Delete declaration.
5886 * findvar.c (extract_address): Delete function.
5887 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5888 extract_address with the inline equivalent,
5889 extract_unsigned_integer.
5890 (xstormy16_extract_struct_value_address): Ditto.
5891 (xstormy16_pointer_to_address): Ditto.
5892 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5893 * v850-tdep.c (v850_push_arguments): Ditto.
5894 (v850_extract_return_value): Ditto.
5895 (v850_extract_struct_value_address): Ditto.
5896 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5897 (sparcnbsd_get_longjmp_target_64): Ditto.
5898 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5899 (get_longjmp_target): Ditto.
5900 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5901 (sh64_extract_struct_value_address): Ditto.
5902 (sh_push_arguments): Ditto.
5903 (sh64_push_arguments): Ditto.
5904 * remote-vxsparc.c (vx_read_register): Ditto.
5905 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5906 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5907 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5908 * mipsv4-nat.c (get_longjmp_target): Ditto.
5909 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5910 * mips-nat.c (get_longjmp_target): Ditto.
5911 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5912 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5913 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5914 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5915 * irix5-nat.c (get_longjmp_target): Ditto.
5916 * irix4-nat.c (get_longjmp_target): Ditto.
5917 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5918 (ia64_push_arguments): Ditto.
5919 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5920 * h8300-tdep.c (h8300_push_arguments): Ditto.
5921 (h8300_store_return_value): Ditto.
5922 (h8300_extract_struct_value_address): Ditto.
5923 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5924 (frv_push_arguments): Ditto.
5925 * avr-tdep.c (avr_pointer_to_address): Ditto.
5926 (avr_push_arguments): Ditto.
5927 * arm-tdep.c (arm_push_dummy_call): Ditto.
5928 (arm_get_longjmp_target): Ditto.
5929 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5930 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5931 (alpha_get_longjmp_target): Ditto.
5932
ae0167b9
AC
5933 * solib-irix.c (extract_mips_address): Inline extract_address,
5934 replacing it with extract_signed_integer.
5935 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5936 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5937 (first_link_map_member, open_symbol_file_object): Ditto.
5938 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5939 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5940 (LM_NEXT, LM_NAME): Ditto.
5941
44d88583
RH
59422003-06-01 Richard Henderson <rth@redhat.com>
5943
98a8e1e5
RH
5944 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5945 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5946 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5947 (alpha_cannot_store_register): Likewise.
5948 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5949 * alpha-nat.c (supply_gregset): Likewise.
5950 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5951
310e9b6a
AC
59522003-06-01 Andrew Cagney <cagney@redhat.com>
5953
5954 * infcall.c (call_function_by_hand): Update comment on
5955 DEPRECATED_DUMMY_WRITE_SP.
5956
5957 * mips-tdep.c (mips_gdbarch_init): Do not set
5958 deprecated_dummy_write_sp.
5959 (mips_eabi_push_dummy_call): Set the SP register.
5960 (mips_o64_push_dummy_call): Set the SP register.
5961 (mips_o32_push_dummy_call): Set the SP register.
5962 (mips_n32n64_push_dummy_call): Set the SP register.
5963
5ab84872
RH
59642003-06-01 Richard Henderson <rth@redhat.com>
5965
98a8e1e5
RH
5966 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5967 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5968 (supply_gregset): Likewise.
5969 * alpha-tdep.c (alpha_store_return_value): Likewise.
5970 (alpha_get_longjmp_target): Likewise.
5971 (alpha_register_name): Constify array.
5972 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5973 deprecated_register_size, deprecated_register_bytes,
5974 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5975 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5976 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5977
09cc52fd
RH
59782003-06-01 Richard Henderson <rth@redhat.com>
5979
5980 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5981 from arg_reg_buffer to regcache to avoid double conversion.
5982
c7f16359
MK
59832003-06-01 Mark Kettenis <kettenis@gnu.org>
5984
5985 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5986 SP_REGNUM.
5987 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5988 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5989
7131cb6e
RH
59902003-06-01 Richard Henderson <rth@redhat.com>
5991
98a8e1e5
RH
5992 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5993 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5994
f3e0f90b
RH
59952003-06-01 Richard Henderson <rth@redhat.com>
5996
98a8e1e5
RH
5997 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5998 not overlapping PC_REGNUM.
f3e0f90b 5999
c88e30c0
RH
60002003-06-01 Richard Henderson <rth@redhat.com>
6001
98a8e1e5
RH
6002 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6003 alpha_push_arguments. Don't dump argument register data to
6004 the target stack. Fix float and 128-bit long double semantics.
6005 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6006 (alpha_fix_call_dummy): Remove.
6007 (alpha_call_dummy_words): Remove.
6008 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6009
f1a559ae
RH
60102003-06-01 Richard Henderson <rth@redhat.com>
6011
6012 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6013
5e045346
AC
60142003-06-01 Andrew Cagney <cagney@redhat.com>
6015
95404a3e
AC
6016 * mips-tdep.c (is_mips16_addr): New function.
6017 (make_mips16_addr, unmake_mips16_addr): New functions.
6018 (pc_is_mips16, mips_fetch_instruction): Use.
6019 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6020 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6021 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6022 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6023 TARGET_MIPS.
6024 * config/mips/tm-mips.h: Update copyright.
6025 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6026 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6027 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6028 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6029 (TM_PRINT_INSN_MACH): Delete.
6030 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6031
5e045346
AC
6032 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6033 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6034 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6035 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6036 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6037 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6038 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6039 mips*-*-riscos* and mips*-*-sysv* onto mips.
6040 * config/mips/mips64.mt: New file.
6041 * config/mips/mips.mt: New file.
6042 * config/mips/littlemips.mt: Delete file.
6043 * config/mips/decstation.mt: Delete file.
6044 * config/mips/vr4300el.mt: Delete file.
6045 * config/mips/vr5000el.mt: Delete file.
6046 * config/mips/vr5000.mt: Delete file.
6047 * config/mips/vr4100.mt: Delete file.
6048 * config/mips/vr4xxxel.mt: Delete file.
6049 * config/mips/vr4300.mt: Delete file.
6050 * config/mips/vr4xxx.mt: Delete file.
6051 * config/mips/bigmips.mt: Delete file.
6052 * config/mips/bigmips64.mt: Delete file.
6053 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6054 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6055 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6056 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6057 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6058 "tm-bigmips.h".
6059 * config/mips/tm-irix3.h: Ditto.
6060 * config/mips/tm-mipsv4.h: Ditto.
6061 * config/mips/tm-embed.h: Ditto.
6062 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6063 "tm-bigmips64.h".
6064 * config/mips/tm-vr5000el.h: Delete file.
6065 * config/mips/tm-tx39l.h: Delete file.
6066 * config/mips/tm-vr4300el.h: Delete file.
6067 * config/mips/tm-vr4xxxel.h: Delete file.
6068 * config/mips/tm-vr4300.h: Delete file.
6069 * config/mips/tm-vr4100.h: Delete file.
6070 * config/mips/tm-vr4xxx.h: Delete file.
6071 * config/mips/tm-vr5000.h: Delete file.
6072 * config/mips/tm-embedl64.h: Delete file.
6073 * config/mips/tm-embedl.h: Delete file.
6074 * config/mips/tm-embed64.h: Delete file.
6075 * config/mips/tm-bigmips64.h: Delete file.
6076 * config/mips/tm-bigmips.h: Delete file.
6077
2473a4a9
MK
60782003-06-01 Mark Kettenis <kettenis@gnu.org>
6079
97a5b208
MK
6080 Fix gdb/1216.
6081 * shnbsd-nat.c: Include "sh-tdep.h".
6082
2473a4a9
MK
6083 From Richard Henderson <rth@redhat.com>:
6084 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6085
e0f7ec59
AC
60862003-05-31 Andrew Cagney <cagney@redhat.com>
6087
6088 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6089 forward declaration.
6090 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6091 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6092 (mips_find_saved_regs): Use set_reg_offset.
6093 (mips_frame_init_saved_regs): Delete function.
6094 (mips_pop_frame): Call mips_find_saved_regs instead of
6095 DEPRECATED_FRAME_INIT_SAVED_REGS.
6096
68dcc709
AC
60972003-05-31 Andrew Cagney <cagney@redhat.com>
6098
6099 * mips-tdep.c (mips_gdbarch_init): Do not set
6100 deprecated_max_register_raw_size, register_virtual_size, and
6101 deprecated_max_register_virtual_size.
6102
cfc14b3a
MK
61032003-05-31 Mark Kettenis <kettenis@gnu.org>
6104
6405b0a6
MK
6105 * i386-tdep.c: Include "dwarf2-frame.h".
6106 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6107 * Makefile.in (i386-tdep.o): Update dependencies.
6108
cfc14b3a
MK
6109 * dwarf2-frame.c, dwarf2-frame.h: New files.
6110 * Makefile.in (SFILES): Add dwarf2-frame.c.
6111 (dwarf2_frame_h): Define.
6112 (COMMON_OBS): Add dwarf2-frame.o.
6113 (dwarf2-frame.o): Add dependencies.
6114
6a2751d2
AJ
61152003-05-31 Andreas Jaeger <aj@suse.de>
6116
6117 * x86-64-linux-nat.c: Fix comment.
6118
1c3545ae
MK
61192003-05-31 Mark Kettenis <kettenis@gnu.org>
6120
10f93086
MK
6121 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6122 function signature.
6123
1c3545ae
MK
6124 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6125 have a sigcontext_addr handler.
6126 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6127 sigcontext_addr handler.
6128
e11c53d2
AC
61292003-05-31 Andrew Cagney <cagney@redhat.com>
6130
6131 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6132 (print_fp_register_row): Replace do_fp_register_row.
6133 (mips_print_fp_register): Add "file" and "frame" parameters.
6134 (mips_print_register): Add "file" and "frame" parameters.
6135 (mips_print_registers_info): Replace mips_do_registers_info.
6136 (mips_gdbarch_init): Set print_registers_info instead of
6137 deprecated_do_registers_info.
6138 (mips_read_fp_register_single): Add "frame" parameter.
6139 (mips_read_fp_register_double): Add "frame" parameter.
6140
a3386186
MK
61412003-05-31 Mark Kettenis <kettenis@gnu.org>
6142
70913449
MK
6143 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6144 Fixes a bug where GDB would print the wrong register names for
6145 targets without SSE.
6146
2b5e0749
MK
6147 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6148 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6149 registers.
6150
6151 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6152 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6153 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6154 TDEP->sc_sp_offset.
6155
a3386186
MK
6156 From Michal Ludvig <mludvig@suse.cz>:
6157 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6158 and `sc_num_regs'.
6159 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6160 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6161 I386_ST0_REGNUM): Move here from...
6162 * i386-tdep.c: ... here.
6163 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6164 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6165 registers if possible.
6166 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6167 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6168 Remove variables.
6169 (i386bsd_sc_reg_offset): New variable.
6170 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6171 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6172 TDEP->sc_sp_offset.
6173 (i386fbsd_sc_reg_offset): New variable.
6174 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6175 TDEP->sc_num_regs.
6176 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6177 variables.
6178 (i386fbsd4_sc_reg_offset): New variable.
6179 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6180 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6181 TDEP->sc_sp_offset.
6182 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6183 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6184 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6185 Remove variables.
6186 (i386nbsd_sc_reg_offset): New variable.
6187 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6188 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6189 TDEP->sc_sp_offset.
6190 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6191 Remove variables.
6192 (i386obsd_sc_reg_offset): New variable.
6193 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6194 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6195 TDEP->sc_sp_offset.
6196 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6197 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6198 for frame pointer offset in `struct sigcontext'.
6199
25ab4790
AC
62002003-05-31 Andrew Cagney <cagney@redhat.com>
6201
6202 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6203 architecture methods call_dummy_words, sizeof_call_dummy_words,
6204 push_return_address, store_struct_return, and fix_call_dummy. Set
6205 push_dummy_call instead of deprecated_push_arguments.
6206 (mips_store_struct_return): Delete function.
6207 (mips_fix_call_dummy): Delete function.
6208 (mips_push_return_address): Delete function.
6209 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6210 RA_REGNUM and T9_REGNUM.
6211 (mips_n32n64_push_dummy_call): Ditto for
6212 mips_n32n64_push_arguments.
6213 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6214 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6215
6a65450a
AC
62162003-05-31 Andrew Cagney <cagney@redhat.com>
6217
6218 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6219 "dummy_addr" to "bp_addr".
6220 * infcall.c (call_function_by_hand): Pass "funaddr" to
6221 gdbarch_push_dummy_call.
6222 * gdbarch.h, gdbarch.c: Re-generate.
6223 * i386-tdep.c (i386_push_dummy_call): Update.
6224 * arm-tdep.c (arm_push_dummy_call): Update.
6225 * d10v-tdep.c (d10v_push_dummy_call): Update.
6226
c4f35dd8
MK
62272003-05-31 Mark Kettenis <kettenis@gnu.org>
6228
6229 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6230 variable declarations.
6231 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6232 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6233 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6234 x86_64_init_frame_pc, x86_64_init_frame_pc,
6235 x86_64_function_has_prologue): Remove prototypes.
6236 (X86_64_NUM_GREGS): New define.
6237 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6238 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6239 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6240 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6241 XMM1_REGNUM): Remove defines.
6242 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6243 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6244 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6245 X86_64_XMM1_REGNUM): New defines.
6246 (struct x86_64_register_info): Renamed from `struct
6247 register_info'. Remove `size' member.
6248 (x86_64_register_info_table): Remove variable.
6249 (x86_64_register_info): New variable.
6250 (X86_64_NUM_REGS): New define.
6251 (X86_64_NUM_GREGS): Remove define.
6252 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6253 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6254 Remove variables.
6255 (x86_54_dwarf2_reg_to_regnum): Remove function.
6256 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6257 (x86_64_dwarf_reg_to_regnum): New function.
6258 (x86_64_register_name): Rewrite.
6259 (x86_64_register_raw_size): Remove function.
6260 (x86_64_register_byte_table): Remove variable.
6261 (x86_64_register_byte): Remove function.
6262 (x86_64_register_virtual_type): Remove function.
6263 (x86_64_register_type): New function.
6264 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6265 x86_64_register_convert_to_raw): Remove functions.
6266 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6267 (x86_64_use_struct_convention): Make static. Adjust for renamed
6268 defines.
6269 (x86_64_frame_init_saved_regs): Remove function.
6270 (x86_64_push_arguments): Make static. Change to accept a regcache
6271 as argument.
6272 (x86_64_store_return_value, x86_64_extract_return_value): Make
6273 static. Rewrite based on i386 counterparts.
6274 (x86_64_push_dummy_call): New function.
6275 (X86_64_NUM_SAVED_REGS): New define.
6276 (x86_64_register_number): Remove function.
6277 (x86_64_store_struct_return): Remove function.
6278 (x86_64_frameless_function_invocation,
6279 x86_64_function_has_prologue): Remove functions.
6280 (PROLOG_BUFSIZE): Remove define.
6281 (struct x86_64_frame_cache): New structure.
6282 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6283 x86_64_frame_cache, x86_64_frame_this_id,
6284 x86_64_frame_prev_register, x86_64_frame_p,
6285 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6286 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6287 functions.
6288 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6289 variables.
6290 (x86_64_skip_prologue): Rewrite in terms of
6291 x86_64_analyze_prologue.
6292 (x86_64_frame_base_address): New function.
6293 (x86_64_frame_base): New variable.
6294 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6295 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6296 set deprecated_fp_regnum, deprecated_register_size,
6297 deprecated_register_bytes, register_raw_size, register_byte,
6298 register_virtual_type, register_convertiable,
6299 register_convert_to_virtual, convert_to_raw,
6300 deprecated_get_saved_register, deprecated_target_read_fp,
6301 deprecated_push_arguments, deprecated_push_return_address,
6302 deprecated_pop_frame, deprecated_store_struct_return,
6303 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6304 frameless_function_invocation, deprecated_frame_saved_pc,
6305 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6306 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6307 deprecated_init_frame_pc and virtual_frame_pointer. Call
6308 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6309 and x86_64_frame_p. Call frame_base_set_default to register
6310 x86_64_frame_base.
6311 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6312 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6313 (_initialize_x86_64_tdep): Remove function.
6314 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6315 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6316 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6317 define.
6318 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6319 (x86_64_linux_sigcontext_addr): Rewrite.
6320 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6321 x86_64_linux_frame_saved_pc): Remove functions.
6322 (x86_64_linux_pc_in_sigtramp): Renamed from
6323 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6324 trampoline.
6325 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6326 Remove_functions.
6327 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6328 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6329 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6330 (x86_64_regmap): Rename to regmap.
6331 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6332 x86_64_num_gregs.
6333 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6334 x86_64_regmap.
6335 (x86_64_fxsave_offset): Remove function.
6336 (supply_fpregset): Simply call x86_64_supply_fxsave.
6337 (fill_fpregset): Simply call x86_64_fill_fxsave.
6338 (fetch_inferior_registers, store_inferior_registers): Avoid
6339 asignment in if-statement.
6340 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6341 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6342 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6343 (fetch_core_registers): Remove function.
6344 (linux_elf_core_fns): Remove.
6345 (offsetoff): Don't define.
6346 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6347 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6348 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6349 add core-regset.o.
6350 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6351 protection against multiple includes instead of NM_X86_64_h. Add
6352 various comments. Include "config/nm-linux.h". Don't include
6353 <signal.h>.
6354 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6355 GET_THREAD_SIGNALS): Remove defines.
6356 (x86_64_register_u_addr, kernel_u_size,
6357 lin_thread_get_thread_signals): Remove prototypes.
6358 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6359 [HAVE_LINK_H]: Don't include "solib.h".
6360 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6361 * config/i386/tm-x86-64linux.h: Fix comments.
6362 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6363 x86-64-tdep.o): Update dependencies.
6364
c25083af
AC
63652003-05-30 Andrew Cagney <cagney@redhat.com>
6366
c8f55a7b
AC
6367 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6368 Change parameter type to a "struct regcache *".
6369
c25083af
AC
6370 * gdbarch.sh: Regardless of the multi-arch level, always define
6371 the macro when not already defined.
6372 * gdbarch.h, gdbarch.c: Re-generate.
6373
fbe586ae
RH
63742003-05-30 Richard Henderson <rth@redhat.com>
6375
6376 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6377 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6378 (alpha_mdebug_frame_this_id): Likewise.
6379 (alpha_mdebug_frame_prev_register): Likewise.
6380 (alpha_mdebug_frame_base_address): Likewise.
6381 (alpha_mdebug_frame_locals_address): Likewise.
6382 (alpha_mdebug_frame_args_address): Likewise.
6383 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6384 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6385 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6386 loop increment.
6387 (alpha_heuristic_frame_this_id): Make static.
6388 (alpha_heuristic_frame_prev_register): Likewise.
6389 (alpha_heuristic_frame_base_address): Likewise.
6390 * alpha-tdep.h: Update.
6391
acd5c798
MK
63922003-05-30 Mark Kettenis <kettenis@gnu.org>
6393
6394 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6395 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6396 defenitions.
6397 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6398 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6399 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6400 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6401 I386_ST0_REGNUM): New defines.
6402 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6403 codestream_get): Remove define.
6404 (codestream_next_addr, condestream_addr, condestream_buf,
6405 codestream_off, codestream_cnt): Remove variables.
6406 (codestream_fill, codestream_seek, codestream_read): Remove
6407 functions.
6408 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6409 functionality.
6410 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6411 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6412 i386_frame_saved_pc, i386_saved_pc_after_call,
6413 i386_frame_num_args, i386_frame_init_saved_regs,
6414 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6415 i386_push_arguments): Remove functions.
6416 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6417 functionality. Use i386_analyze_prologue instead of
6418 i386_get_frame_setup.
6419 (I386_NUM_SAVED_REGS): New define.
6420 (struct i386_frame_cache): New structure.
6421 (i386_alloc_frame_cache, i386_analyze_struct_return,
6422 i386_skip_probe, i386_analyze_frame_setup,
6423 i386_analyze_register_saves, i386_analyze_prologue,
6424 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6425 i386_frame_prev_register, i386_sigtramp_frame_cache,
6426 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6427 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6428 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6429 New functions.
6430 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6431 New variables.
6432 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6433 I386_EAX_REGNUM and I386_EDX_REGNUM.
6434 (i386_extract_return_value, i386_store_return_value): Use
6435 I386_ST0_REGNUM where appropriate.
6436 (i386_extract_struct_value_address): Rewrite to use extract_address.
6437 (i386_svr4_pc_in_sigtramp): Add comment.
6438 (i386_svr4_sigcontext_addr): Rewrite.
6439 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6440 TDEP->sc_sp_offset.
6441 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6442 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6443 of new defines. Set push_dummy_call, don't set
6444 deprecated_push_arguments, deprecated_push_return_address,
6445 deprecated_pop_frame. Don't set parm_boundary. Don't set
6446 deprecated_frame_chain, deprecated_frame_saved_pc,
6447 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6448 save_dummy_frame_tos, unwind_pc. Call
6449 frame_unwind_append_predicate and frame_base_set_default. Don't
6450 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6451 Don't set frameless_function_invocation. Don't set
6452 deprecated_register_bytes, deprecated_register_size,
6453 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6454 * i386-linux-tdep.c: Fix formatting in some comments.
6455 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6456 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6457 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6458 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6459 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6460 redundant parentheses.
6461 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6462 (i386_linux_sigcontext_addr): Use it. Rewrite.
6463 (find_minsym_and_objfile): Change name of second argument.
6464 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6465 changed. Use frame_pc_unwind instead of
6466 DEPRECATED_SAVED_PC_AFTER_CALL.
6467 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6468 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6469 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6470 unwinder.
6471 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6472 "dummy-frame.h".
6473 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6474 (_initialize_i386_cygwin_tdep): New prototype.
6475 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6476 deprecated_frame_chain_valid.
6477 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6478 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6479 Rely on the SVR4 defaults.
6480 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6481 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6482
c89b70f1
AC
64832003-05-30 Andrew Cagney <cagney@redhat.com>
6484
6485 * infcall.c (call_function_by_hand): Always call
6486 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6487
85b32d22
RH
64882003-05-30 Richard Henderson <rth@redhat.com>
6489
c89b70f1
AC
6490 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6491 increment.
85b32d22 6492
bfe51b1e
JB
64932003-05-29 Jim Blandy <jimb@redhat.com>
6494
6495 Use gdbarch methods for solib stuff on PowerPC Linux.
6496 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6497 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6498 show through.
6499 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6500 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6501 giving the same effect as the #definitions above.
6502
1abf022c
AF
65032003-05-29 Adam Fedor <fedor@gnu.org>
6504
6505 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6506 (find_implementation_from_class): Replace it with the standard
6507 case i.e. do nothing.
6508
d2427a71
RH
65092003-05-29 Richard Henderson <rth@redhat.com>
6510
6511 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6512 (alpha_linux_sigtramp_offset): Use it. Make static.
6513 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6514 update for new frame model.
6515 * alpha-mdebug-tdep.c: New file.
6516 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6517 (alpha_osf1_init_abi): Install it.
6518 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6519 (linked_proc_desc_table): Remove.
6520 (alpha_frame_past_sigtramp_frame): Remove.
6521 (alpha_dynamic_sigtramp_offset): Remove.
6522 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6523 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6524 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6525 (push_sigtramp_desc): Remove.
6526 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6527 (alpha_cannot_store_register): Likewise.
6528 (alpha_sigcontext_addr): Remove.
6529 (alpha_find_saved_regs): Remove.
6530 (alpha_frame_init_saved_regs): Remove.
6531 (alpha_init_frame_pc_first): Remove.
6532 (read_next_frame_reg): Remove.
6533 (alpha_frame_saved_pc): Remove.
6534 (alpha_saved_pc_after_call): Remove.
6535 (temp_proc_desc, temp_saved_regs): Remove.
6536 (alpha_about_to_return): Remove.
6537 (cached_proc_desc): Remove.
6538 (alpha_frame_chain): Remove.
6539 (alpha_print_extra_frame_info): Remove.
6540 (alpha_init_extra_frame_info): Remove.
6541 (alpha_frame_locals_address): Remove.
6542 (alpha_frame_args_address): Remove.
6543 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6544 (alpha_push_dummy_frame): Remove.
6545 (alpha_pop_frame): Remove.
6546 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6547 (alpha_read_insn): New.
6548 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6549 for different insn encodings.
6550 (alpha_in_lenient_prologue): Remove.
6551 (struct alpha_sigtramp_unwind_cache): New.
6552 (alpha_sigtramp_frame_unwind_cache): New.
6553 (alpha_sigtramp_register_address): New.
6554 (alpha_sigtramp_frame_this_id): New.
6555 (alpha_sigtramp_frame_prev_register): New.
6556 (alpha_sigtramp_frame_unwind): New.
6557 (alpha_sigtramp_frame_p): New.
6558 (struct alpha_heuristic_unwind_cache): New.
6559 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6560 don't count nop insns that occur between functions.
6561 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6562 heuristic_proc_desc, but without the mdebug wrapping.
6563 (alpha_heuristic_frame_this_id): New.
6564 (alpha_heuristic_frame_prev_register): New.
6565 (alpha_heuristic_frame_unwind): New.
6566 (alpha_heuristic_frame_p): New.
6567 (alpha_heuristic_frame_base_address): New.
6568 (alpha_heuristic_frame_base): New.
6569 (alpha_unwind_dummy_id): New.
6570 (alpha_unwind_pc): New.
6571 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6572 frame related deprecated initializations; install replacements.
6573 (alpha_dump_tdep): Remove.
6574 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6575 (alpha_read_insn, alpha_after_prologue,
6576 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6577 alpha_heuristic_frame_prev_register,
6578 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6579 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6580 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6581 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6582
93ec1121
AC
65832003-05-29 Andrew Cagney <cagney@redhat.com>
6584
6585 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6586 dependant on the availability of ASSERT_FUNCTION.
6587 (ASSERT_FUNCTION): Do not define when there is no function name.
6588
98f08d3d
KB
65892003-05-29 Kevin Buettner <kevinb@redhat.com>
6590
6591 From Jimi X <jimix@watson.ibm.com>:
6592 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6593
0897f59b
JB
65942003-05-28 Jim Blandy <jimb@redhat.com>
6595
6596 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6597 argument to ptrace to int; the system headers should give it the
6598 right type, and pointers don't fit in ints on powerpc64-*-*.
6599
14898363
L
66002003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6601
6602 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6603 DW_TAG_catch_block.
6604
a7a48797
EZ
66052003-05-26 Elena Zannoni <ezannoni@redhat.com>
6606
6607 * stabsread.c (dbx_lookup_type): Make static.
6608 (read_type): Ditto.
6609 (add_undefined_type): Ditto.
6610 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6611 not export.
6612
f5479e9c
EZ
66132003-05-26 Elena Zannoni <ezannoni@redhat.com>
6614
6615 * hpread.c (hpread_has_name): Make static.
6616 (hpread_psymtab_to_symtab): Ditto.
6617 (file_exists): Ditto.
6618 (hpread_call_pxdb): Ditto.
6619 (hpread_pxdb_needed): Ditto.
6620 (hpread_quick_traverse): Ditto.
6621 (hpread_get_header): Ditto.
6622 (hpread_get_lntt): Ditto.
6623 (hpread_get_slt): Ditto.
6624 (class_of): Ditto.
6625
eb2e12d7
AS
66262003-05-25 Andreas Schwab <schwab@suse.de>
6627
78bf922a
AS
6628 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6629 stack_align and deprecated_extra_stack_alignment_needed.
6630 (m68k_stack_align): Delete.
6631
eb2e12d7
AS
6632 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6633 (m68k_register_virtual_size): Likewise.
6634 (altos_skip_prologue): Remove obsolete function.
6635 (isi_frame_num_args): Likewise.
6636 (news_frame_num_args): Likewise.
6637 (m68k_fix_call_dummy): Make static.
6638 (m68k_push_dummy_frame): Likewise.
6639 (m68k_pop_frame): Likewise.
6640 (m68k_skip_prologue): Likewise.
6641 (m68k_frame_init_saved_regs): Likewise.
6642 (m68k_saved_pc_after_call): Likewise.
6643 (m68k_get_longjmp_target): Make multi-arch.
6644 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6645 structure. Register m68k_get_longjmp_target if enabled.
6646 * m68k-tdep.h (struct gdbarch_tdep): Define.
6647 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6648
6649 * Makefile.in (config.status): Also depend on configure.tgt
6650 and configure.host.
6651 (m68klinux-tdep.o): Update dependencies.
6652 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6653 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6654 (M68K_LINUX_JB_PC): Define.
6655 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6656 and take additional parameter.
6657 (m68k_linux_sigtramp_saved_pc): Update.
6658 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6659 m68k_linux_pc_in_sigtramp, in_plt_section,
6660 find_solib_trampoline_target.
6661 * config/m68k/tm-linux.h: Don't include any tm headers.
6662 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6663 (JB_ELEMENT_SIZE): Likewise.
6664 (JB_PC): Likewise.
6665 (GET_LONGJMP_TARGET): Likewise.
6666 (IN_SIGTRAMP): Likewise.
6667 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6668
eb2c22dc
MK
66692003-05-25 Mark Kettenis <kettenis@gnu.org>
6670
6671 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6672 (sparc32_push_arguments): Re-implement by calling
6673 sparc32_do_push_arguments.
6674
44b7b84e
MK
66752003-05-25 Mark Kettenis <kettenis@gnu.org>
6676
6677 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6678 SPARC_O1_REGNUM): New defines.
6679 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6680 (sparc32_store_return_value): New function.
6681 (sparc_extract_struct_value_address): Rewrite to operate on a
6682 regcache.
6683 (sparc_gdbarch_init): Don't set
6684 deprecated_extract_struct_value_address. Set
6685 extract_struct_value_address instead. Don't set
6686 deprecated_extract_return_value and deprecated_store_return_value
6687 for 32-bit targets. Set extract_return_value and
6688 store_return_value instead.
6689 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6690 DEPRECTAED_EXTRACT_RETURN_VALUE,
6691 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6692 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6693 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6694 (sparc_store_return_value): Remove prototype.
6695 (sparc32_store_return_value): New prototype.
6696 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6697 Adjust prototypes.
6698
f6ad61e3
MK
66992003-05-24 Mark Kettenis <kettenis@gnu.org>
6700
6701 * sparcnbsd-tdep.c: Include "gdb_string.h".
6702
b276f1bb
AC
67032003-05-23 Andrew Cagney <cagney@redhat.com>
6704
6705 * p-valprint.c (pascal_val_print): Replace extract_address with
6706 the inline equivalent extract_unsigned_integer.
6707 * jv-valprint.c (java_value_print): Ditto.
6708 * ada-valprint.c (ada_val_print_1): Ditto.
6709 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6710
e76c5fcc
TR
67112003-05-23 Theodore A. Roth <troth@openavr.org>
6712
6713 * blockframe.c (frameless_look_for_prologue): Remove unused
6714 after_prologue variable.
6715
2cdd89cb
MK
67162003-05-23 Mark Kettenis <kettenis@gnu.org>
6717
6718 * blockframe.c (get_pc_function_start): Rewrite to avoid
6719 asignments in if-statements.
6720
182d43bc
EZ
67212003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6722
6723 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6724 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6725 files, don't relocate absolute symbols (and do use mst_abs).
6726
e8f3fcdd
AC
67272003-05-23 Andrew Cagney <cagney@redhat.com>
6728
6729 * objc-lang.c: Include "gdb_assert.h".
6730 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6731 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6732 (gdb_check, gdb_check_fatal): Delete functions.
6733 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6734 gdb_assert.
6735 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6736 * Makefile.in (objc-lang.o): Update dependencies.
6737
3c23e6fb
ILT
67382003-05-22 Ian Lance Taylor <ian@airs.com>
6739
6740 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6741 with fprintf_filtered, not fprintf_unfiltered.
6742
af1342ab
AC
67432003-05-22 Andrew Cagney <cagney@redhat.com>
6744
6745 * stack.c (frame_info): Inline extract_address, replacing it with
6746 extract_unsigned_integer.
6747 * findvar.c (unsigned_pointer_to_address): Ditto.
6748 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6749 * dwarf2expr.c (dwarf2_read_address): Ditto.
6750 * frame.c (frame_pc_unwind): Update comment.
6751 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6752
47e242ec
JJ
67532003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6754
6755 * infptrace.c (detach): Call print_sys_errmsg rather than
6756 perror_with_name to issue warning message when errno is non-zero
6757 after calling ptrace detach.
6758
e2ac8128
JB
67592003-05-21 J. Brobecker <brobecker@gnat.com>
6760
6761 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6762 macro definitions from here...
6763 * hppa-tdep.c: ...to there.
6764
92b3541e
KB
67652003-05-20 Kevin Buettner <kevinb@redhat.com>
6766
6767 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6768 register_ptrace_addr(). Fix all callers.
6769
55809acb
AS
67702003-05-21 Andreas Schwab <schwab@suse.de>
6771
6772 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6773 dependencies.
6774 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6775 end.
6776 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6777 (_initialize_m68k_linux_tdep): New function.
6778 (m68k_linux_frame_saved_pc): Make static.
6779 (m68k_linux_extract_return_value): Likewise.
6780 (m68k_linux_store_return_value): Likewise.
6781 (m68k_linux_extract_struct_value_address): Likewise.
6782 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6783 Remove.
6784 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6785 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6786 (DEPRECATED_FRAME_SAVED_PC): Remove.
6787
0fbc10f7
KW
67882003-05-20 Kris Warkentin <kewarken@qnx.com>
6789
6790 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6791 regset numbering rather than our own.
6792
58da2eb2
DC
67932003-05-19 David Carlton <carlton@bactrian.org>
6794
6795 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6796
1fcb5155
DC
67972003-05-19 David Carlton <carlton@bactrian.org>
6798
6799 Partial fix for PR c++/827.
6800 * cp-support.h: Include symtab.h.
6801 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6802 * cp-namespace.c: Update contributors.
6803 (cp_lookup_symbol_nonlocal): New.
6804 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6805 (lookup_symbol_file): Ditto.
6806 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6807 * block.h: Declare block_scope, block_using, block_global_block.
6808 * block.c (block_scope): New.
6809 (block_using, block_global_block): Ditto.
6810 * Makefile.in (cp_support_h): Depend on symtab_h.
6811 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6812
5f9a71c3
DC
68132003-05-19 David Carlton <carlton@bactrian.org>
6814
6815 * language.h (struct language_defn): Add 'la_value_of_this'
6816 and 'la_lookup_symbol_nonlocal' members.
6817 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6818 lookup_symbol_static, lookup_symbol_global,
6819 lookup_symbol_aux_block.
6820 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6821 if we should search fields of this and how to do static/global
6822 lookup.
6823 (lookup_symbol_aux_block): Make extern.
6824 (basic_lookup_symbol_nonlocal): New.
6825 (lookup_symbol_static, lookup_symbol_global): Ditto.
6826 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6827 'la_lookup_symbol_nonlocal' members.
6828 * c-lang.c (c_language_defn, cplus_language_defn)
6829 (asm_language_defn, minimal_language_defn): Ditto.
6830 * jv-lang.c (java_language_defn): Ditto.
6831 * language.c (unknown_language_defn, auto_language_defn)
6832 (local_language_defn): Ditto.
6833 * m2-lang.c (m2_language_defn): Ditto.
6834 * objc-lang.c (objc_language_defn): Ditto.
6835 * scm-lang.c (scm_language_defn): Ditto.
6836 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6837 * p-lang.c (pascal_language_defn): Ditto for both.
6838 * Makefile.in (f-lang.o): Depend on value_h.
6839 (p-lang.o): Ditto.
6840
89a9d1b1
DC
68412003-05-19 David Carlton <carlton@bactrian.org>
6842
6843 * block.h: Declare block_static_block.
6844 * block.c (block_static_block): New.
6845 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6846 lookup_symbol_aux_local, calling block_static_block instead.
6847 (lookup_symbol_aux_local): Delete 'static_block' argument.
6848
eed3f8ab
DC
68492003-05-19 David Carlton <carlton@bactrian.org>
6850
6851 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6852
a09d8bda
ML
68532003-05-19 Michal Ludvig <mludvig@suse.cz>
6854
6855 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6856 register numbers mapping.
6857
69636828
AF
68582003-05-18 Adam Fedor <fedor@gnu.org>
6859
6860 * symtab.c (completion_list_objc_symbol): New function.
6861 (make_symbol_completion_list): Use it to add ObjC symbols
6862 when looking though the list.
6863 (language_search_unquoted_string): New function.
6864 (make_file_symbol_completion_list): Use it.
6865
55baeb84
AS
68662003-05-18 Andreas Schwab <schwab@suse.de>
6867
d0b45d99
AS
6868 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6869 dependencies.
6870 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6871 as m68k_linux_extract_return_value.
6872 (DEPRECATED_STORE_RETURN_VALUE): Define as
6873 m68k_linux_store_return_value.
6874 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6875 m68k_linux_extract_struct_value_address.
6876 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6877 get_next_frame, get_frame_base, get_frame_pc.
6878 (m68k_linux_frame_saved_pc): Use get_frame_base.
6879 (m68k_linux_extract_return_value): New function.
6880 (m68k_linux_store_return_value): New function.
6881 (m68k_linux_extract_struct_value_address): New function.
6882 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6883
55baeb84
AS
6884 * c-exp.y (typebase): Remove duplicate occurence of
6885 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6886 of lookup_signed_typename.
55baeb84 6887
b6b08ebf
MK
68882003-05-18 Mark Kettenis <kettenis@gnu.org>
6889
6890 * dwarf2loc.c (find_location_expression): Change type of second
6891 argument to `size_t *'.
6892 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6893 for size variable.
6894
5ad1c190
DC
68952003-05-18 David Carlton <carlton@bactrian.org>
6896
6897 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6898 'linkage_name'. Add comment.
6899 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6900 'linkage_name'.
6901 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6902 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6903 (lookup_block_symbol): Ditto.
6904
b8b527c5
AC
69052003-05-16 Andrew Cagney <cagney@redhat.com>
6906
6907 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6908 * gdbarch.h, gdbarch.c: Re-generate.
6909 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6910 * TODO (REGISTER_BYTES): Delete reference.
6911 * alpha-tdep.c (alpha_gdbarch_init): Update.
6912 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6913 * x86-64-tdep.c (x86_64_init_abi): Update.
6914 * vax-tdep.c (vax_gdbarch_init): Update.
6915 * v850-tdep.c (v850_gdbarch_init): Update.
6916 * sparc-tdep.c (sparc_gdbarch_init): Update.
6917 * sh-tdep.c (sh_gdbarch_init): Update.
6918 * s390-tdep.c (s390_gdbarch_init): Update.
6919 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6920 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6921 (ns32k_gdbarch_init_32382): Update.
6922 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6923 * mcore-tdep.c (mcore_gdbarch_init): Update.
6924 * m68k-tdep.c (m68k_gdbarch_init): Update.
6925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6926 * ia64-tdep.c (ia64_gdbarch_init): Update.
6927 * i386-tdep.c (i386_gdbarch_init): Update.
6928 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6929 * hppa-tdep.c (hppa_gdbarch_init): Update.
6930 * h8300-tdep.c (h8300_gdbarch_init): Update.
6931 * frv-tdep.c (frv_gdbarch_init): Update.
6932 * cris-tdep.c (cris_gdbarch_init): Update.
6933 * avr-tdep.c (avr_gdbarch_init): Update.
6934 * arm-tdep.c (arm_gdbarch_init): Update.
6935 * sparc-tdep.c (sparc_pop_frame): Update.
6936 * rs6000-tdep.c (rs6000_pop_frame): Update.
6937 * remote.c (init_remote_state): Update.
6938 (remote_prepare_to_store): Update.
6939 * remote-vx.c (vx_prepare_to_store): Update.
6940 * remote-sds.c (sds_fetch_registers): Update.
6941 (sds_prepare_to_store): Update.
6942 * remote-array.c: Update.
6943 * regcache.c (init_legacy_regcache_descr): Update.
6944 (init_regcache_descr): Update.
6945 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6946 (mips_o64_extract_return_value): Update.
6947 * irix5-nat.c (fetch_core_registers): Update.
6948 * irix4-nat.c (fetch_core_registers): Update.
6949 * i386-tdep.h: Update.
6950 * hppa-tdep.c (pa_do_registers_info): Update.
6951 (pa_do_strcat_registers_info): Update.
6952 * cris-tdep.c (cris_register_bytes_ok): Update.
6953 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6954 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6955 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6956 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6957 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6958 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6959 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6960 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6961 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6962 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6963 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6964 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6965 (REGISTER_BYTES_OK): Update.
6966 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6967 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6968
ee2842e2
ILT
69692003-05-16 Ian Lance Taylor <ian@airs.com>
6970
6971 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6972 (vax_print_insn, print_insn_arg): Remove static functions.
6973 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6974 print_insn_vax from opcodes library.
6975 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6976
973177d3
AC
69772003-05-15 Andrew Cagney <cagney@redhat.com>
6978
aaab4dba
AC
6979 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6980 * target.h (memory_breakpoint_from_pc): Delete declaration.
6981 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6982 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6983 * monitor.c (monitor_insert_breakpoint): Use
6984 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6985 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6986 * gdbarch.h, gdbarch.c: Re-generate.
6987 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6988 (sparc_gdbarch_init): Set breakpoint_from_pc to
6989 sparc_breakpoint_from_pc.
6990 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6991 (BREAKPOINT_FROM_PC): Define.
6992 (sparc_breakpoint_from_pc): Declare.
6993 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6994 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6995 (BREAKPOINT_FROM_PC): Define.
6996 (BREAKPOINT): Delete macro.
6997 * target.h: Update comment.
6998 * s390-tdep.c (s390_gdbarch_init): Update comments.
6999 * remote.c: Update comments.
7000 * remote-mips.c: Update comments.
7001 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7002 * mem-break.c: Update comment.
7003 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7004 (ia64_memory_insert_breakpoint): Update.
7005 * config/sparc/tm-sparc.h: Update comment.
7006 * config/pa/tm-hppa64.h: Update comment.
7007 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7008 (rs6000_breakpoint_from_pc): Update.
7009 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7010 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7011 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7012 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7013 (mips_breakpoint_from_pc): Update.
7014 (mips_dump_tdep): Update.
7015
e06963ff
AC
7016 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7017 * minsyms.c (lookup_minimal_symbol): Inline
7018 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7019
973177d3
AC
7020 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7021 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7022 * p-lang.c (pascal_printstr): Ditto.
7023 * objc-lang.c (objc_printstr): Ditto.
7024 * m2-lang.c (m2_printstr): Ditto.
7025 * jv-valprint.c (java_print_value_fields): Ditto.
7026 * f-lang.c (f_printstr): Ditto.
7027 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7028 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7029 for repeat_count_threshold.
7030 * Makefile.in (cp-valprint.o): Update dependencies.
7031
5ea2bd7f 70322003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7033
5ea2bd7f
JJ
7034 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7035 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7036 they start with mov r2,r12. Support skipping over indirect stores
7037 of the input registers. Upon hitting a non-nop branch instruction
7038 or predicated instruction, bail out by setting lim_pc to the current
7039 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7040 beyond our calculated value and we have trust_limit set,
7041 use the lim_pc value.
7042
cc8c88f3
AC
70432003-05-15 Andrew Cagney <cagney@redhat.com>
7044
7045 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7046 generic_find_dummy_frame.
7047 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7048 (deprecated_generic_find_dummy_frame): Update.
7049 (deprecated_read_register_dummy): Update.
7050 * frame.c (deprecated_generic_get_saved_register): Update.
7051
909cd28e
TR
70522003-05-15 Theodore A. Roth <troth@openavr.org>
7053
7054 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7055 (avr_gdbarch_init): Set breakpoint_from_pc method.
7056
b923b08d
AC
70572003-05-15 Andrew Cagney <cagney@redhat.com>
7058
7059 * regcache.c (build_regcache): Set deprecated_register_valid
7060 directly.
7061 (deprecated_grub_regcache_for_register_valid): Delete function.
7062 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7063 declaration.
7064
ae2f03ac 70652003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7066
7067 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7068 * symtab.c (lookup_symbol_aux): Delete calls to
7069 lookup_symbol_aux_minsyms.
7070 (lookup_symbol_aux_minsyms): Comment out function and
7071 prototype. Delete lookup by mangled name.
ae2f03ac 7072
18ec9831
KB
70732003-05-14 Kevin Buettner <kevinb@redhat.com>
7074
7075 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7076 correctly indicate an empty stack and ``stack_allocated'' to the
7077 indicate the number of elements initially allocated.
7078 (dwarf_expr_grow_stack): Simplify method for computing new
7079 stack size. Don't loop infinitely if ``stack_len'' is zero.
7080 (execute_stack_op): Move ``ctx->in_reg'' initialization
7081 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7082 be used in conjuction with DW_OP_piece. Revise error message
7083 accordingly.
7084
de18ac1f
TR
70852003-05-14 Theodore A. Roth <troth@openavr.org>
7086
7087 * MAINTAINERS: Update my email address.
7088 * avr-tdep.c: Ditto.
7089
176620f1
EZ
70902003-05-14 Elena Zannoni <ezannoni@redhat.com>
7091
7092 * symtab.h (enum domain_enum): Rename from namespace_enum.
7093 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7094 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7095 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7096 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7097 TYPES_NAMESPACE, METHODS_NAMESPACE.
7098 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7099 (struct symbol, struct partial_symbol): Rename field
7100 'namespace_enum namespace' to 'domain_enum domain'.
7101 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7102 Delete old define kludge for namespace.
7103
7104 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7105 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7106 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7107 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7108 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7109 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7110 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7111 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7112 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7113 occurrences of the above.
7114
b7f31508
ILT
71152003-05-14 Ian Lance Taylor <ian@airs.com>
7116
7117 * Makefile.in (install-only): Use $(SHELL) when running
7118 mkinstalldirs.
7119
2fdbdd39
ILT
71202003-05-13 Ian Lance Taylor <ian@airs.com>
7121
a208d82c
ILT
7122 * MAINTAINERS (write after approval): Add myself.
7123
2fdbdd39
ILT
7124 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7125 second and third arguments.
7126 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7127 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7128
fbd9dcd3
AC
71292003-05-13 Andrew Cagney <cagney@redhat.com>
7130
7131 * defs.h (store_address): Delete declaration.
7132 findvar.c (store_address): Delete function.
7133 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7134 store_unsigned_integer.
7135 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7136 * v850-tdep.c (v850_push_arguments): Ditto.
7137 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7138 * sh-tdep.c (sh64_get_saved_register): Ditto.
7139 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7140 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7141 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7142 (mips_get_saved_register): Ditto.
7143 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7144 (find_func_descr, ia64_push_arguments): Ditto.
7145 * i386-tdep.c (i386_push_arguments): Ditto.
7146 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7147 * frv-tdep.c (frv_push_arguments): Ditto.
7148 * frame.c (legacy_saved_regs_prev_register): Ditto.
7149 (deprecated_generic_get_saved_register): Ditto.
7150 * findvar.c (unsigned_address_to_pointer): Ditto.
7151 * dwarf2read.c (dwarf2_const_value): Ditto.
7152 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7153 * alpha-tdep.c (alpha_push_arguments): Ditto.
7154
6760f9e6
JB
71552003-05-12 J. Brobecker <brobecker@gnat.com>
7156
7157 * NEWS: Mention that the hppa-hpux port has been partially
7158 multiarched (32bit ABIT only, so far).
7159
30e221b4
AC
71602003-05-11 Andrew Cagney <cagney@redhat.com>
7161
7162 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7163 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7164 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7165 sim/testsuite/sim/arm/misaligned2.ms, and
7166 sim/testsuite/sim/arm/misaligned3.ms.
7167 * disasm.h (struct ui_file): Add opaque struct declaration.
7168 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7169 * frame.h (struct ui_file): Ditto.
7170
dea7f9ba
MK
71712003-05-11 Mark Kettenis <kettenis@gnu.org>
7172
7173 * value.h: Pretty print.
7174
01986c48
MK
71752003-05-10 Mark Kettenis <kettenis@gnu.org>
7176
7177 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7178
123a958e
AC
71792003-05-08 Andrew Cagney <cagney@redhat.com>
7180
7181 * regcache.h (max_register_size): Delete declaration.
7182 * regcache.c (max_register_size): Delete function.
7183 (struct regcache_descr): Delete field "max_register_size".
7184 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7185 registers fit in MAX_REGISTER_SIZE.
7186 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7187 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7188 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7189 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7190 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7191 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7192 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7193 * dve3900-rom.c, hppa-tdep.c: Ditto.
7194
eb294659
DC
71952003-05-08 David Carlton <carlton@math.stanford.edu>
7196
7197 * valops.c (push_word): Fix typo.
7198
d9d9c31f
AC
71992003-05-08 Andrew Cagney <cagney@redhat.com>
7200
7201 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7202 * gdbarch.h: Re-generate.
7203 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7204 (legacy_max_register_raw_size): Delete declaration.
7205 * regcache.c (legacy_max_register_raw_size): Delete function.
7206 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7207 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7208 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7209 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7210 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7211 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7212 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7213 * findvar.c, dwarf2cfi.c: Ditto.
7214
22540ece
AC
72152003-05-08 Andrew Cagney <cagney@redhat.com>
7216
7217 * mips-tdep.c (read_signed_register): New function, moved to here
7218 from "regcache.c".
7219 (read_signed_register_pid): Ditto.
7220 * regcache.c (read_signed_register_pid): Delete function, moved to
7221 "mips-tdep.c".
7222 (read_signed_register): Ditto.
7223 * regcache.h (read_signed_register): Delete declaration.
7224 (read_signed_register_pid): Delete declaration.
7225
0c92afe8
AC
72262003-05-08 Andrew Cagney <cagney@redhat.com>
7227
7228 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7229 * gdbarch.h: Re-generate.
7230 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7231 (legacy_max_register_virtual_size): Delete declaration.
7232 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7233 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7234 * tracepoint.c (memrange_sortmerge): Ditto.
7235 * sparc-tdep.c (sparc_print_registers): Ditto.
7236 * regcache.c (legacy_max_register_virtual_size): Delete function.
7237
6037b830
JB
72382002-05-08 J. Brobecker <brobecker@gnat.com>
7239
7240 * fork-child.c (escape_bang_in_quoted_argument): New function.
7241 (fork_inferior): Escape '!' characters in quoted arguments
7242 only when needed.
7243
5d62c8b1
JB
72442003-05-08 J. Brobecker <brobecker@gnat.com>
7245
7246 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7247 the language of the CU is not currently supported by GDB.
7248
20a0e81d
JB
72492003-05-08 J. Brobecker <brobecker@gnat.com>
7250
7251 * defs.h (language): Add language_minimal enum value.
7252 * c-lang.c (minimal_language_defn): New language definition.
7253 (_initialize_c_language): Add the new minimal language to the list
7254 of languages known to GDB.
7255
710ee10a
KB
72562003-05-08 Kevin Buettner <kevinb@redhat.com>
7257
7258 * frame.c (get_frame_type): Don't attempt to lazily initialize
7259 frame's unwinder for legacy frames.
7260
1750fa04
AC
72612003-05-07 Andrew Cagney <cagney@redhat.com>
7262
7263 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7264 and "regcache" parameters.
7265 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7266
ddf9f258 72672003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7268
7269 * dwarf2read.c (dwarf_decode_lines): Only use output of
7270 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7271 the current address.
7272
87767c29
AC
72732003-05-07 Andrew Cagney <cagney@redhat.com>
7274
7275 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7276 code.
7277
5e7b2f39
JB
72782003-05-07 Jim Blandy <jimb@redhat.com>
7279
7280 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7281 'maint info symtabs' and 'maint info psymtabs'.
7282 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7283 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7284 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7285 Declarations updated.
7286 * maint.c (maintenance_list_command): Delete.
7287 (_initialize_maint_cmds): Update calls to add_cmd.
7288 * gdbcmd.h (maintenancelistlist): Delete declaration.
7289 * cli/cli-cmds.c (maintenancelistlist): Delete.
7290 (init_cmd_lists): Don't initialize it.
7291 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7292
f6684c31
AC
72932003-05-07 Andrew Cagney <cagney@redhat.com>
7294
7295 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7296 "regcache".
7297 (d10v_print_registers_info): Update.
7298 (d10v_dmap_register, d10v_imap_register): Delete functions.
7299 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7300 and "imap_register".
7301 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7302 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7303 * arch-utils.c (generic_remote_translate_xfer_address): Add
7304 "regcache" and "gdbarch" parameters.
7305 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7306 parameter. Change class to multi-arch.
7307 * gdbarch.h, gdbarch.c: Re-generate.
7308 * remote.c (remote_xfer_memory): Use
7309 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7310
e4846b08
JJ
73112003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7312
7313 * infrun.c (prev_pc): Move declaration ahead of proceed().
7314 (proceed): Refresh prev_pc value before resuming.
7315 (stop_stepping): Remove code to refresh prev_pc.
7316
6b71b8ac
KW
73172003-05-06 Kris Warkentin <kewarken@qnx.com>
7318
7319 * nto-tdep.c: Removed stray comment.
7320
47979a4b
KW
73212003-05-06 Kris Warkentin <kewarken@qnx.com>
7322
7323 * i386-nto-tdep.c: Fix old K&R function definitions.
7324 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7325 Also change add_show_from_set() call to add_setshow_cmd().
7326 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7327
00905d52
AC
73282003-05-05 Andrew Cagney <cagney@redhat.com>
7329
7330 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7331 (fprint_dummy_frames): New function.
7332 (maintenance_print_dummy_frames): New function.
7333 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7334 * frame.c (fprint_frame_id): Make global.
7335 * frame.h (fprint_frame_id): Declare.
7336 * Makefile.in (dummy-frame.o): Update dependencies.
7337
b1e29e33
AC
73382003-05-05 Andrew Cagney <cagney@redhat.com>
7339
7340 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7341 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7342 SIZEOF_CALL_DUMMY_WORDS.
7343 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7344 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7345 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7346 CALL_DUMMY_BREAKPOINT_OFFSET.
7347 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7348 CALL_DUMMY_START_OFFSET.
7349 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7350 * gdbarch.h, gdbarch.c: Re-generate.
7351 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7352 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7353 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7354 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7355 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7356 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7357 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7358 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7359 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7360 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7361 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7362 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7363 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7364 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7365 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7366
73672003-05-05 Kris Warkentin <kewarken@qnx.com>
7368
7369 * configure.tgt: Add i[3456]86-*-nto*.
7370 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7371 * nto-tdep.c: New file. Neutrino target support routines.
7372 * nto-tdep.h: New file. Neutrino target header.
7373 * config/tm-qnxnto.h: New file.
7374 * config/i386/i386nto.mt: New file.
7375 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7376
0ce3d317
AC
73772003-05-04 Andrew Cagney <cagney@redhat.com>
7378
7379 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7380 (load_infrun_state): Ditto.
7381 (struct thread_info): Drop "prev_func_name" field.
7382 * thread.c (load_infrun_state): Update.
7383 (save_infrun_state): Update.
7384 * infrun.c (prev_func_name): Delete variable.
7385 (init_wait_for_inferior): Do not clear prev_func_name.
7386 (stop_stepping, keep_going, context_switch): Do not swap
7387 prev_func_name.
7388 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7389 instead of PC_IN_SIGTRAMP.
7390
46654a5b
AC
73912003-05-04 Andrew Cagney <cagney@redhat.com>
7392
7393 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7394 REGISTER_BYTE with register_offset_hack.
7395 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7396 that REGISTER_BYTE is consistent with the regcache.
7397 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7398 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7399
14b08c1b
MK
74002003-05-04 Mark Kettenis <kettenis@gnu.org>
7401
04c8243f
MK
7402 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7403 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7404
14b08c1b
MK
7405 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7406
c7a11e01
JB
74072003-05-03 J. Brobecker <brobecker@gnat.com>
7408
7409 From Thierry Schneider <tpschneider1@yahoo.com>
7410 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7411 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7412 (mi-cmd-symbol.o): Add rule.
7413
7043d8dc
AC
74142003-05-03 Andrew Cagney <cagney@redhat.com>
7415
7416 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7417 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7418 * gdbarch.h, gdbarch.c: Re-generate.
7419 * d10v-tdep.c (d10v_push_dummy_code): New function.
7420 (d10v_gdbarch_init): Set push_dummy_code.
7421 * infcall.c (legacy_push_dummy_code): New function.
7422 (generic_push_dummy_code): New function.
7423 (push_dummy_code): New function.
7424 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7425 instead of dummy_addr, to push_dummy_call. Move call to
7426 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7427 switch.
7428 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7429
92bf2b80
AC
74302003-05-03 Andrew Cagney <cagney@redhat.com>
7431
7432 * disasm.h (print_insn): Declare.
7433 * disasm.c (init_gdb_disassemble_info): New function.
7434 (gdb_disassembly): Call init_gdb_disassemble_info.
7435 (gdb_print_insn): New function.
7436 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7437 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7438 * mcore-tdep.c: Include "disasm.h"
7439 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7440 * d10v-tdep.c: Include "disasm.h".
7441 (display_trace): Call gdb_print_insn, instead of print_insn.
7442 (print_insn): Delete function.
7443 * printcmd.c: Include "disasm.h".
7444 (print_insn): Delete function.
7445 (print_formatted): Call gdb_print_insn, instead of print_insn.
7446 * Makefile.in (printcmd.o): Update dependencies.
7447 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7448
27d94c49
AC
74492003-05-02 Andrew Cagney <cagney@redhat.com>
7450
82de1e5b
AC
7451 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7452 PC_REGNUM, re-indent.
7453 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7454 PC_REGNUM isn't set.
7455
27d94c49
AC
7456 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7457 * gdbarch.h, gdbarch.c: Re-generate.
7458 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7459 register_virtual_size, pc_regnum, or register_bytes.
7460 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7461 (d10v_register_type): Use D10V_PC_REGNUM.
7462 (d10v_print_registers_info, d10v_read_pc): Ditto.
7463 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7464 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7465
a9c0dc7f
DC
74662003-05-02 David Carlton <carlton@bactrian.org>
7467
7468 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7469 the name with mstrsave.
7470
e33d66ec
EZ
74712003-05-02 Elena Zannoni <ezannoni@redhat.com>
7472
7473 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7474 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7475 (host_charset_name, target_charset_name): New vars for use by
7476 set/show commands.
7477 (host_charset_enum, target_charset_enum): New enums for set/show
7478 commands.
7479 (set_charset_sfunc, set_host_charset_sfunc,
7480 set_target_charset_sfunc): New functions.
7481 (set_host_charset, set_target_charset): Make static.
7482 (list_charsets, set_host_charset_command,
7483 set_target_charset_command): Delete functions.
7484 (show_charset_command): Rewrite as....
7485 (show_charset): Hook this up with the set/show command mechanism.
7486 (_initialize_charset): Change names of charsets to match the
7487 set/show enums. Use host_charset_name and target_charset_name.
7488 Use set/show mechanism for charset, host-charset, target-charset
7489 commands. Do not make 'show host-charset' and 'show
7490 target-charset' be aliases of 'show charset'.
7491
7492 * charset.h (set_host_charset, set_target_charset): Don't export,
7493 they are not used outside the file.
7494
2b6fd0d8
AC
74952003-05-01 Andrew Cagney <cagney@redhat.com>
7496
7497 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7498 (gdb_disassembly): Make "di" non static, always initialize and
7499 cleanup. Always use dis_asm_read_memory.
7500 (gdb_dis_asm_read_memory): Delete function.
7501
6ae2f580
AC
75022003-05-01 Andrew Cagney <cagney@redhat.com>
7503
7504 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7505 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7506
810ecf9f
AC
75072003-04-30 Andrew Cagney <cagney@redhat.com>
7508
7509 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7510 "tm_print_insn_info".
7511 (TARGET_PRINT_INSN_INFO): Delete macro.
7512 (dis_asm_read_memory): Delete function declaration.
7513 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7514 (tm_print_insn_info): Delete variable definition.
7515 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7516 * gdbarch.h, gdbarch.c: Re-generate.
7517 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7518 "deprecated_tm_print_insn_info".
7519 * mcore-tdep.c (mcore_dump_insn): Ditto.
7520 * mips-tdep.c (mips_gdbarch_init): Ditto.
7521 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7522 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7523 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7524 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7525 instead of TARGET_PRINT_INSN_INFO, add comment.
7526 * s390-tdep.c (s390_get_frame_info): Instead of
7527 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7528 (s390_check_function_end, s390_is_sigreturn): Ditto.
7529 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7530 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7531 * disasm.c: Include "gdbcore.h".
7532 (_initialize_disasm): New function, initialize
7533 "deprecated_tm_print_insn_info".
7534 (deprecated_tm_print_insn_info): New variable.
7535 (dis_asm_read_memory): Moved from "corefile.c", made static.
7536 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7537 * Makefile.in (disasm.o): Update dependencies.
7538
07020390
AC
75392003-04-30 Andrew Cagney <cagney@redhat.com>
7540
7541 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7542
a9fa03de
AF
75432003-04-29 Adam Fedor <fedor@gnu.org>
7544
7545 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7546 * infcall.c (find_function_addr): Make non-static.
7547 * infcall.h (find_function_addr): Declare.
7548 * Makefile.in (eval.o): Update dependencies.
7549
1bae87b9
AF
75502003-04-28 Adam Fedor <fedor@gnu.org>
7551
7552 * symtab.c (symbol_find_demangled_name): Check for and demangle
7553 ObjC symbols.
7554 (symbol_init_demangled_name): Init for language_objc as well.
7555
0ba6dca9
AC
75562003-04-28 Andrew Cagney <cagney@redhat.com>
7557
7558 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7559 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7560 * gdbarch.h, gdbarch.c: Re-generate.
7561 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7562 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7563 * inferior.h (deprecated_read_fp): Rename read_fp.
7564 (generic_target_read_fp): Delete declaration.
7565 * regcache.c (generic_target_read_fp): Delete function.
7566 (deprecated_read_fp): Replace read_fp, use
7567 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7568 * d10v-tdep.c (d10v_read_fp): Delete function.
7569 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7570
7571 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7572 deprecated_target_read_fp to generic_target_read_fp.
7573 * sh-tdep.c (sh_gdbarch_init): Ditto.
7574 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7575 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7576 * frv-tdep.c (frv_gdbarch_init): Ditto.
7577
7578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7579 deprecated_fp_regnum.
7580 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7581 * vax-tdep.c (vax_gdbarch_init): Ditto.
7582 * v850-tdep.c (v850_gdbarch_init): Ditto.
7583 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7584 * sh-tdep.c (sh_gdbarch_init): Ditto.
7585 * s390-tdep.c (s390_gdbarch_init): Ditto.
7586 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7587 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7588 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7589 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7590 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7591 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7592 * i386-tdep.c (i386_gdbarch_init): Ditto.
7593 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7594 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7595 * frv-tdep.c (frv_gdbarch_init): Ditto.
7596 * cris-tdep.c (cris_gdbarch_init): Ditto.
7597 * avr-tdep.c (avr_gdbarch_init): Ditto.
7598 * arm-tdep.c (arm_gdbarch_init): Ditto.
7599 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7600
7601 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7602 * v850-tdep.c (v850_gdbarch_init): Ditto.
7603 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7604 * sh-tdep.c (sh_gdbarch_init): Ditto.
7605 * s390-tdep.c (s390_gdbarch_init): Ditto.
7606 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7607 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7608 * mips-tdep.c (mips_gdbarch_init): Ditto.
7609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7610 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7611 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7612 * frv-tdep.c (frv_gdbarch_init): Ditto.
7613 * avr-tdep.c (avr_gdbarch_init): Ditto.
7614 * arm-tdep.c (arm_gdbarch_init): Ditto.
7615
7616 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7617 DEPRECATED_FP_REGNUM.
7618 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7619 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7620 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7621 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7622 (sparc32_register_virtual_type): Ditto.
7623 * sh-tdep.c (sh64_frame_chain): Ditto.
7624 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7625 (sh_nofp_frame_init_saved_regs): Ditto.
7626 (sh64_nofp_frame_init_saved_regs): Ditto.
7627 (sh_fp_frame_init_saved_regs): Ditto.
7628 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7629 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7630 * procfs.c (procfs_fetch_registers): Ditto.
7631 (procfs_store_registers): Ditto.
7632 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7633 (store_inferior_registers, fetch_core_registers): Ditto.
7634 (fetch_kcore_registers, clear_regs): Ditto.
7635 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7636 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7637 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7638 * nlm/i386.c (do_status): Ditto.
7639 * mipsv4-nat.c (supply_gregset): Ditto.
7640 * mips-tdep.c: Ditto for comments.
7641 * mips-nat.c (fetch_inferior_registers): Ditto.
7642 (store_inferior_registers, fetch_core_registers): Ditto.
7643 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7644 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7645 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7646 (i386_do_pop_frame, i386_register_type): Ditto.
7647 * hppa-tdep.c (hppa_frame_chain): Ditto.
7648 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7649 (hppa_pop_frame, hppa_read_fp): Ditto.
7650 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7651 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7652 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7653 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7654 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7655 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7656 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7657 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7658 * blockframe.c: Ditto for comments.
7659 * arch-utils.h: Ditto for comments.
7660 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7661 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7662 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7663 * alpha-tdep.h: Ditto for comments.
7664 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7665 (alpha_cannot_store_register): Ditto.
7666 (alpha_push_dummy_frame): Ditto.
7667 * alpha-nat.c (supply_gregset): Ditto.
7668
7669 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7670 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7671 * config/sparc/tm-sparc.h: Update comment.
7672
7673 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7674 deprecated_read_fp instead of TARGET_READ_FP.
7675 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7676 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7677 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7678 deprecated_read_fp instead of read_fp.
7679 * s390-tdep.c (s390_push_arguments): Ditto.
7680 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7681 * frame.h: Ditto in comments.
7682 * frame.c (legacy_get_prev_frame): Ditto.
7683 * dummy-frame.c (dummy_frame_this_id): Ditto.
7684 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7685
d7a27068
AC
76862003-04-28 Andrew Cagney <cagney@redhat.com>
7687
7688 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7689 * gdbarch.h, gdbarch.c: Re-generate.
7690 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7691 * vax-tdep.c (_initialize_vax_tdep): Update.
7692 * v850-tdep.c (_initialize_v850_tdep): Update.
7693 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7694 * s390-tdep.c (_initialize_s390_tdep): Update.
7695 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7696 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7697 * mips-tdep.c (_initialize_mips_tdep): Update.
7698 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7699 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7700 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7701 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7702 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7703 * frv-tdep.c (_initialize_frv_tdep): Update.
7704 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7705 (_initialize_cris_tdep): Update.
7706 * arch-utils.c (legacy_print_insn): Update.
7707 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7708
d2630e69
AF
77092003-04-26 Adam Fedor <fedor@gnu.org>
7710
7711 * linespec.c (decode_objc): New function to decode ObjC calls
7712 (decode_line_1): Check for ObjC calls (using decode_objc)
7713 * Makefile (linespec.o): Update dependencies.
7714
3086aeae
DJ
77152003-04-26 Daniel Jacobowitz <drow@mvista.com>
7716
7717 * breakpoint.h (struct breakpoint_ops): New.
7718 (struct breakpoint): Add ops member.
7719
7720 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7721 (mention): Use new breakpoint ops member.
7722 (set_raw_breakpoint): Initialize ops field to NULL.
7723 (print_exception_catchpoint, print_one_exception_catchpoint)
7724 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7725 (gnu_v3_exception_catchpoint_ops): New.
7726 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7727
1fbec6c3
AF
77282003-04-25 Adam Fedor <fedor@gnu.org>
7729
7730 * Makefile.in (COMMON_OBS): Add objc-lang.o
7731
0ef21242
AC
77322003-04-25 Andrew Cagney <cagney@redhat.com>
7733
7734 * d10v-tdep.c (print_insn): Delete function.
7735 (display_trace): Use TARGET_PRINT_INSN.
7736 (_initialize_d10v_tdep): Do not set tm_print_insn.
7737 (d10v_gdbarch_init): Set print_insn.
7738
f75493ed
AC
77392003-04-25 Andrew Cagney <cagney@redhat.com>
7740
7741 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7742 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7743 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7744 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7745 (nr_dmap_regs, a0_regnum): ... new functions.
7746 (d10v_print_registers_info): Use a0_regnum, use register_size.
7747 (d10v_register_byte): Delete function.
7748 (d10v_register_raw_size): Delete function.
7749 (d10v_register_type): Use a0_regnum.
7750 (d10v_print_registers_info): Use a0_regnum.
7751 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7752 (d10v_gdbarch_init): Do not set register_byte or
7753 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7754 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7755 extract_address.
7756 (trace_command): Use XCALLOC.
7757 (print_insn): Delete reference to tm_print_insn.
7758 (saved_regs_unwinder): Use store_unsigned_integer instead of
7759 store_address.
7760 * frame.h (FRAME_OBSTACK_CALLOC): Define
7761
2202b100
DC
77622003-04-25 David Carlton <carlton@bactrian.org>
7763
7764 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7765
4e45ca2e
AF
77662003-04-24 Adam Fedor <fedor@gnu.org>
7767
7768 * objc-lang.c: Include "valprint.h"
7769 * Makefile.in (objc-lang.o): Update dependencies.
7770
93de3e7f
AF
77712003-04-24 Adam Fedor <fedor@gnu.org>
7772
8ffd9b1b 7773 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7774 architecture dependant compilation and mark as unimplemented
7775 (until they get put in the gdbarch vector).
7776
0f20eeea
DC
77772003-04-23 David Carlton <carlton@bactrian.org>
7778
7779 * cp-support.c (cp_find_first_component): Accept 'operator' in
7780 more locations.
7781
74cfe982
AC
77822003-04-23 Andrew Cagney <cagney@redhat.com>
7783
7784 * infcall.c (call_function_by_hand): Eliminate redundant
7785 indentation. Move "saved_async" and "old_cleanups" to where they
7786 are needed.
8ffd9b1b 7787
52557533
AC
77882003-04-23 Andrew Cagney <cagney@redhat.com>
7789
7790 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7791 and "buffer". Move the "name" code to where it is needed.
7792
158775de
AC
77932003-04-23 Andrew Cagney <cagney@redhat.com>
7794
7795 * infcall.c (call_function_by_hand): Move variables "start_sp",
7796 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7797 code to ON_STACK switch branch.
8ffd9b1b 7798
ebc7896c
AC
77992003-04-23 Andrew Cagney <cagney@redhat.com>
7800
7801 * infcall.c (call_function_by_hand): Make declaration of "i",
7802 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7803 lint.
7804
d727590f
AC
78052003-04-23 Andrew Cagney <cagney@redhat.com>
7806
7807 * infcall.c (call_function_by_hand): Delete variable
7808 "n_method_args". Localize "param_type"'s declaration to the loop
7809 that it is used. Reinstate code assigning to said variable -
7810 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7811 Rationalize code using "param_type".
7812
d585e13a
AC
78132003-04-22 Andrew Cagney <cagney@redhat.com>
7814
7815 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7816 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7817 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7818 to DEPRECATED_PUSH_RETURN_ADDRESS.
7819
051caad9
KB
78202003-04-22 Kevin Buettner <kevinb@redhat.com>
7821
7822 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7823 on the DWARF2 register number prior to fetching a register.
7824
77296879
JB
78252003-04-22 J. Brobecker <brobecker@gnat.com>
7826
7827 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7828 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7829 this macro was always set to 0.
77296879
JB
7830 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7831 considering the fact that this macro was always set to 0.
7832 * hppa-tdep.h (hppa_store_return_value): Likewise.
7833 (hppa_extract_return_value): Likewise.
7834
4252f1df
JB
78352003-04-22 J. Brobecker <brobecker@gnat.com>
7836
7837 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7838 the hppa-pro target only.
7839
14604c6b
JB
78402003-04-21 J. Brobecker <brobecker@gnat.com>
7841
7842 Ongoing multi-arch conversion effort for HP/UX:
7843 * config/pa/tm-hppa.h: Move all macro that are no longer
7844 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7845 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7846
77eb01d1
JB
78472003-04-21 J. Brobecker <brobecker@gnat.com>
7848
7849 * config/pa/tm-hppa.h: Obsolete a section that was only used
7850 for hppa-pro.
7851
61995b3b
JB
78522003-04-21 J. Brobecker <brobecker@gnat.com>
7853
7854 Ongoing multi-arch conversion for HP/UX.
7855 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7856 if already defined (allows hppa64 to stay non-multiarched for now).
7857 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7858
4aa79dcc
AC
78592003-04-21 Andrew Cagney <cagney@redhat.com>
7860
7861 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7862
0f751ff2
AC
78632003-04-21 Andrew Cagney <cagney@redhat.com>
7864
7865 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7866 "i386_num_mmx_regs".
7867
04714b91
AC
78682003-04-21 Andrew Cagney <cagney@redhat.com>
7869
7870 * infcall.c: New file.
7871 * infcall.h: New file.
7872 * valarith.c: Include "infcall.h".
7873 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7874 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7875 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7876 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7877 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7878 (SFILES): Add "infcall.c"
7879 (COMMON_OBS): Add "infcall.o".
7880 (infcall.o): Specify dependencies.
7881 * value.h (call_function_by_hand): Delete declaration.
7882 * inferior.h (run_stack_dummy): Delete declaration.
7883 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7884 (run_stack_dummy): Move to "infcall.c", merged into
7885 call_function_by_hand.
7886 * valops.c (call_function_by_hand): Moved to "infcall.c".
7887 (find_function_addr, value_arg_coerce): Ditto.
7888 (unwindonsignal_p, coerce_float_to_double): Ditto.
7889 (_initialize_valops): Move "set/show coerce-float-to-double", and
7890 "set/show unwindonsignal" commands to "infcall.c".
7891 * v850-tdep.c, target.h: Update comments.
7892 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7893 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7894 (sh64_init_extra_frame_info): Update comments.
7895 * mn10300-tdep.c: Update comments.
7896 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7897 * config/sparc/tm-sparc.h: Update comments.
7898 * breakpoint.h: Update comments.
7899 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7900 * arm-tdep.c: Update comment.
7901
f9d3c2a8
MK
79022003-04-19 Mark Kettenis <kettenis@gnu.org>
7903
c40e1eab
MK
7904 * i386-tdep.c (i386_num_register_names): New variable.
7905 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7906 (MM0_REGNUM): Remove redundant parentheses in define.
7907 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7908 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7909 i386_mxcsr_regnum_p): Remove redundant parentheses.
7910 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7911
94ea66b3
MK
7912 * i386-tdep.c (i386_extract_return_value,
7913 i386_store_return_value): Correct check for availability of
7914 floating-point registers.
7915
54299a1d
MK
7916 * i386-tdep.c (i386_frame_num_args): Remove function.
7917 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7918
c86c27af
MK
7919 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7920 mmx_regnum_to_fp_regnum. Adjust all callers.
7921
f9d3c2a8
MK
7922 * i386-tdep.c (i386_get_longjmp_target): Use
7923 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7924 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7925 extract_address.
7926
94ba74a9
MK
79272003-04-19 Mark Kettenis <kettenis@gnu.org>
7928
7929 * core-regset.c: Update comments to reflect reality. Re-order
7930 includes.
7931 (fetch_core_registers): Use switch instead of if. Remove
7932 redundant prototype.
7933
4074e13c
JB
79342003-04-18 Jim Blandy <jimb@redhat.com>
7935
7936 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7937 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7938
e3ab4aba
RH
79392003-04-17 Richard Henderson <rth@redhat.com>
7940
7941 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7942
627bf7c1
EZ
79432003-04-17 Michael Snyder <msnyder@redhat.com>
7944 Karen Bennet <bennet@redhat.com>
7945
7946 Committed by Elena Zannoni <ezannoni@redhat.com>
7947 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7948
514621a9
EZ
79492003-04-17 Elena Zannoni <ezannoni@redhat.com>
7950
7951 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7952 value if the return type is void.
514621a9 7953
b4acd559
JJ
79542003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7955
7956 * thread-db.c: Reindented.
8ffd9b1b 7957
530b167e 79582003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7959
7960 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7961 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7962 as types.
7963
0a48e7e8
MS
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
8ffd9b1b 7987
ab9fe00e
KB
79882003-04-16 Kevin Buettner <kevinb@redhat.com>
7989
610a3745 7990 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7991 the size of ``long double'' to 16, instead of 8.
7992
e64a344c
MK
79932003-04-16 Mark Kettenis <kettenis@gnu.org>
7994
7995 * i386-linux-nat.c: Add some whitespace to make things more
7996 readable.
7997 (fetch_register, store_register, fetch_inferior_registers,
7998 store_inferior_registers): Get rid of assignment in if-statement.
7999 (store_register): Fix typo in error message.
8000
25d41031
AC
80012003-04-16 Andrew Cagney <cagney@redhat.com>
8002
8003 * utils.c (xmmalloc): Always allocate something, matches
8004 libiberty/xmalloc's semantics.
8005 (xmrealloc, xmcalloc): Ditto.
8006
c50901fd
AC
80072003-04-16 Andrew Cagney <cagney@redhat.com>
8008
8009 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8010 update comments.
8011 (get_frame_type): Initialize unwind and type when needed.
8012 (get_frame_id, frame_register_unwind): Ditto.
8013
f81824a9
AC
80142003-04-16 Andrew Cagney <cagney@redhat.com>
8015
8016 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8017 obsolete.
8018 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8019 * sparcl-stub.c: Obsolete file.
8020 * config/sparc/tm-sparclet.h: Obsolete file.
8021 * sparclet-stub.c: Obsolete file.
8022 * sparclet-rom.c: Obsolete file.
8023 * sparcl-tdep.c: Obsolete file.
8024 * config/sparc/tm-sparclite.h: Obsolete file.
8025 * config/sparc/sparclite.mt: Obsolete file.
8026 * config/sparc/sparclet.mt: Obsolete file.
8027 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8028 sparc86x-*-* obsolete.
8029
9219021c
DC
80302003-04-15 David Carlton <carlton@math.stanford.edu>
8031
8032 * Makefile.in (SFILES): Add cp-namespace.c.
8033 (COMMON_OBS): Add cp-namespace.o.
8034 (block.o): Depend on gdb_obstack_h and cp_support_h.
8035 (buildsym.o): Depend on cp_support_h.
8036 (cp-namespace.o): New.
8037 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8038 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8039 (dwarf2read.o): Depend on cp_support_h.
8040 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8041 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8042 processing_current_namespace.
8043 (read_namespace): Update processing_current_namespace; check for
8044 anonymous namespaces.
8045 (dwarf2_name): New function.
8046 (dwarf2_extension): Ditto.
8047 * cp-support.h: Update copyright, contributors.
8048 Add inclusion guards.
8049 Add opaque declaration for structs obstack, block, symbol.
8050 (struct using_direct): New struct.
8051 Add declarations for cp_find_first_component,
8052 cp_entire_prefix_len, processing_has_namespace_info,
8053 processing_current_namespace, cp_is_anonymous,
8054 cp_add_using_directive, cp_initialize_namespace,
8055 cp_finalize_namespace, cp_set_block_scope,
8056 cp_scan_for_anonymous_namespaces.
8057 * cp-namespace.c: New file.
8058 * cp-support.c: Update copyright.
8059 Include ctype.h, gdb_assert.h, gdbcmd.h.
8060 New variable maint_cplus_cmd_list.
8061 (cp_find_first_component): New function.
8062 (cp_entire_prefix_len, maint_cplus_command)
8063 (first_component_command, _initialize_cp_support): Ditto.
8064 * buildsym.c: Include cp-support.h.
8065 New variable using_list.
8066 (add_symbol_to_list): Check for anonymous namespaces.
8067 (finish_block): Set block's scope.
8068 (start_symtab): Initialize C++ namespace support.
8069 (end_symtab): Finalize C++ namespace support.
8070 * block.h: Add opaque declarations for structs
8071 block_namespace_info, using_direct, and obstack.
8072 Add declarations for block_set_scope and block_set_using.
8073 (struct block): Add 'language_specific' member.
8074 (BLOCK_NAMESPACE): New macro.
8075 * block.c: Include gdb_obstack.h and cp-support.h.
8076 (struct block_namespace_info): New struct.
8077 (block_set_scope): New function.
8078 (block_set_using, block_initialize_namespace): Ditto.
8079
d5a921c9
KB
80802003-04-14 Kevin Buettner <kevinb@redhat.com>
8081
8082 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8083 (locate_base): Return early if there aren't any link map offsets.
8084 (svr4_solib_create_inferior_hook): Warn if shared library support
8085 is unavailable.
8086
d2a52b27
DC
80872003-04-14 David Carlton <carlton@math.stanford.edu>
8088
8089 * symtab.c (symbol_set_names): Add prefix when storing Java names
8090 in hash table. Fix for PR java/1039.
8091
980cae7a
DC
80922003-04-14 David Carlton <carlton@math.stanford.edu>
8093
8094 * symtab.c (symbol_set_names): Rename 'name' arg to
8095 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8096 * symtab.h: Change 'name' argument in declaration of
8097 symbol_set_names to 'linkage_name'.
8098 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8099
e227b13c
AC
81002003-04-14 Andrew Cagney <cagney@redhat.com>
8101
8102 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8103 return the fully sign-extended register value.
8104 (get_frame_pointer): Ditto.
8105 (mips_pop_frame): Initialize "proc_desc" after checking for a
8106 dummy frame.
8107
36712a20
AC
81082003-04-14 Andrew Cagney <cagney@redhat.com>
8109
8110 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8111 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8112 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8113 (mips_push_register): Delete function.
8114 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8115 PUSH_FP_REGNUM.
8116
44ea7b70
JB
81172003-04-14 Jim Blandy <jimb@redhat.com>
8118
8119 * symmisc.c: #include "gdb_regex.h".
8120 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8121 functions.
8122 * maint.c (maintenance_list_command): New function.
8123 (_initialize_maint_cmds): Register the above as commands.
8124 * symtab.h (maintenance_list_symtabs,
8125 maintenance_list_psymtabs): New declarations.
8126 * cli/cli-cmds.c (maintenancelistlist): New variable.
8127 (init_cmd_lists): Initialize it.
8128 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8129 * gdbcmd.h (maintenancelistlist): New declaration.
8130 * Makefile.in (symmisc.o): Update dependencies.
8131
2d0c7962
EZ
81322003-04-14 Elena Zannoni <ezannoni@redhat.com>
8133
8134 * s390-nat.c: Include asm/types.h for addr_t.
8135
1947a811
CV
81362003-04-14 Corinna Vinschen <vinschen@redhat.com>
8137
8138 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8139 actually incoming type.
8140
adb616d7
AC
81412003-04-13 Andrew Cagney <cagney@redhat.com>
8142
8143 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8144 get_next_frame and get_frame_saved_regs.
8145
9b5e151c
AC
81462003-04-13 Andrew Cagney <cagney@redhat.com>
8147
8148 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8149 of gdbarch_num_regs.
8150
ef6e7e13
AC
81512003-04-13 Andrew Cagney <cagney@redhat.com>
8152
8153 * frame.h: Mention what replaced what in "struct frame_info".
8154 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8155 deprecated_update_frame_base_hack and
8156 deprecated_update_frame_pc_hack.
8157 * hppa-tdep.c: Ditto.
8158
61fbb938
DJ
81592003-04-13 Daniel Jacobowitz <drow@mvista.com>
8160
8161 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8162 to read_reg and update its comment. Remove regnum member.
8163 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8164 Don't call read_reg when setting in_reg. Call read_reg to get
8165 the frame base if it's in a register. Return the register number
8166 on the stack instead of in the context. Remove extra arguments
8167 to read_reg.
8168 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8169 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8170 the register number on the expression stack.
8171 (needs_frame_read_reg): Remove extra arguments.
8172
0d53c4c4
DJ
81732003-04-13 Daniel Jacobowitz <drow@mvista.com>
8174
8175 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8176 made non-static.
8177 (execute_stack_op): All callers updated.
8178 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8179 * dwarf2loc.c (find_location_expression): New function.
8180 (dwarf_expr_frame_base): Call it.
8181 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8182 (dwarf2_tracepoint_var_ref): New function, broken out from
8183 locexpr_tracepoint_var_ref.
8184 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8185 Make static.
8186 (loclist_read_variable, loclist_read_needs_frame): New functions.
8187 (loclist_describe_location, loclist_tracepoint_var_ref): New
8188 functions.
8189 (dwarf2_loclist_funcs): New struct location_funcs.
8190 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8191 (struct dwarf2_locexpr_baton): Add comments.
8192 (dwarf2_loclist_funcs): New extern.
8193 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8194 base_address and base_known.
8195 (dwarf_loc_buffer): New variable.
8196 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8197 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8198 (dwarf2_has_info): Initialize dwarf_loc_offset.
8199 (dwarf2_build_psymtabs): Read in .debug_loc.
8200 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8201 DWARF_LOC_SIZE.
8202 (psymtab_to_symtab_1): Likewise. Move base address calculation
8203 here, from...
8204 (dwarf2_get_pc_bounds): ... here. Use the base address from
8205 cu_header.
8206 (dwarf2_symbol_mark_computed): Handle location lists.
8207
6aca59a3
DJ
82082003-04-13 Daniel Jacobowitz <drow@mvista.com>
8209
8210 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8211 if the linkage name demangled successfully.
8212
aca1fcd0
MK
82132003-04-13 Mark Kettenis <kettenis@gnu.org>
8214
97095916
MK
8215 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8216 disassmbly_flavour): Removed.
8217
aca1fcd0
MK
8218 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8219
562a961f
MK
82202003-04-13 Mark Kettenis <kettenis@gnu.org>
8221
8222 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8223
bd013d54
AC
82242003-04-12 Andrew Cagney <cagney@redhat.com>
8225
8226 * frame.h (struct frame_info): Move definition from here ...
8227 * frame.c (struct frame_info): ... to here.
8228
167ef8b1
AC
82292003-04-12 Andrew Cagney <cagney@redhat.com>
8230
8231 * gdbthread.h (save_infrun_state): Delete parameter
8232 "prev_func_start".
8233 (struct thread_info): Delete field "prev_func_start".
8234 (load_infrun_state): Ditto.
8235 * thread.c (load_infrun_state, save_infrun_state): Update.
8236 * infrun.c (prev_func_start): Delete variable.
8237 (context_switch, init_wait_for_inferior): Update.
8238 (stop_stepping, keep_going): Update.
8239
da3331ec
AC
82402003-04-12 Andrew Cagney <cagney@redhat.com>
8241
8242 * gdbarch.sh: Add missing opaque declarations.
8243 * gdbarch.h: Regnerate.
8244 * symtab.h: Add missing opaque declarations.
8245 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8246 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8247 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8248 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8249 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8250 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8251 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8252 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8253 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8254 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8255 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8256 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8257 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8258
18adea3f
AC
82592003-04-11 Andrew Cagney <cagney@redhat.com>
8260
8261 * frame.c (get_frame_id): Return this frame's "id".
8262 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8263 function start.
8264 (legacy_saved_regs_this_id): Replace function body with
8265 internal-error.
8266 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8267 FRAME_OBSTACK_ZALLOC.
8268 (create_new_frame): Mark the frame ID as valid.
8269
2252e863
AO
82702003-04-11 Alexandre Oliva <aoliva@redhat.com>
8271
8272 * Makefile.in (libbfd_h): Added missing setting.
8273 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8274 according to the selected ABI.
8275
a8245ab8
JJ
82762003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8277
8278 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8279
6913c89a
AC
82802003-04-11 Andrew Cagney <cagney@redhat.com>
8281
8282 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8283 SAVED_PC_AFTER_CALL.
8284 * gdbarch.h, gdbarch.c: Regenerate.
8285 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8286 * x86-64-tdep.c (x86_64_init_abi): Update.
8287 * vax-tdep.c (vax_gdbarch_init): Update.
8288 * v850-tdep.c (v850_gdbarch_init): Update.
8289 * sparc-tdep.c (sparc_gdbarch_init): Update.
8290 * sh-tdep.c (sh_gdbarch_init): Update.
8291 * s390-tdep.c (s390_gdbarch_init): Update.
8292 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8293 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8294 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8295 * mips-tdep.c (mips_gdbarch_init): Update.
8296 * mcore-tdep.c (mcore_gdbarch_init): Update.
8297 * m68k-tdep.c (m68k_gdbarch_init): Update.
8298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8299 * ia64-tdep.c (ia64_gdbarch_init): Update.
8300 (ia64_saved_pc_after_call): Update declaration.
8301 * i386ly-tdep.c (i386lynx_init_abi): Update.
8302 * i386-tdep.c (i386_gdbarch_init): Update.
8303 * hppa-tdep.c (hppa_gdbarch_init): Update.
8304 * h8300-tdep.c (h8300_gdbarch_init): Update.
8305 * frv-tdep.c (frv_gdbarch_init): Update.
8306 * cris-tdep.c (cris_gdbarch_init): Update.
8307 * avr-tdep.c (avr_gdbarch_init): Update.
8308 * arm-tdep.c (arm_gdbarch_init): Update.
8309 * alpha-tdep.c (alpha_gdbarch_init): Update.
8310 * ns32knbsd-nat.c (frame_num_args): Update.
8311 * ns32k-tdep.c (umax_frame_num_args): Update.
8312 * mips-tdep.c (mips_init_frame_pc_first): Update.
8313 * infrun.c (step_over_function): Update.
8314 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8315 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8316 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8317 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8318 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8319 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8320 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8321 * arch-utils.c (init_frame_pc_default): Update.
8322 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8323 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8324 declaration.
8ffd9b1b 8325
38edeab8
AC
83262003-04-11 Andrew Cagney <cagney@redhat.com>
8327
8328 * i387-tdep.c: Update copyright.
8329 (i387_to_double): Delete function.
8330 (double_to_i387): Delete function.
8331
81f8a206
AC
83322003-04-10 Andrew Cagney <cagney@redhat.com>
8333
8334 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8335 frame's function's address. Simplify.
8336 (d10v_frame_unwind_cache): Check that the frame's function is
8337 non-zero.
8338
6e691f7a
JB
83392003-04-10 Jim Blandy <jimb@redhat.com>
8340
8341 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8342 call to set_gdbarch_deprecated_push_arguments.
8343
7f78e237
AC
83442003-04-10 Andrew Cagney <cagney@redhat.com>
8345
8346 * frame.c (fprint_frame_id): New function.
8347 (fprint_frame_type, fprint_frame): New function.
8348 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8349 (create_sentinel_frame, get_frame_id): Ditto.
8350 (frame_id_p, frame_id_eq): Ditto.
8351 (frame_id_inner, create_new_frame): Ditto.
8352 (legacy_get_prev_frame, get_prev_frame): Ditto.
8353 (deprecated_update_frame_pc_hack): Ditto.
8354 (frame_register_unwind): Ditto.
8355 (deprecated_update_frame_base_hack): Ditto.
8356
f870b49b
CV
83572003-04-10 Corinna Vinschen <vinschen@redhat.com>
8358
8359 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8360 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8361 frame_chain function.
8362 * Makefile.in: Add dependencies due to above change.
8363
7c86889b
CV
83642003-04-10 Corinna Vinschen <vinschen@redhat.com>
8365
8366 * blockframe.c (legacy_frame_chain_valid): Move call to
8367 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8368 inside_entry_file.
8369
d0a55772
AC
83702003-04-09 Andrew Cagney <cagney@redhat.com>
8371
8372 * frame.h (struct frame_id): Replace "pc" and "base" with
8373 "stack_addr" and "code_addr". Update comments.
8374 (frame_id_build): Update parameter names and comment.
8375 (struct frame_info): Replace "id_p" and "id" with "this_id".
8376 * dummy-frame.c (dummy_frame_this_id): Update.
8377 * breakpoint.c (print_one_breakpoint): Update.
8378 * frame.c (get_frame_id): Update.
8379 (get_frame_base, frame_id_build): Update.
8380 (create_sentinel_frame, legacy_get_prev_frame): Update.
8381 (deprecated_update_frame_base_hack): Update.
8382 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8383 (frame_id_inner): Ditto.
8384
ac16bf07
AC
83852003-04-09 Andrew Cagney <cagney@redhat.com>
8386
8387 * defs.h (gdb_print_host_address): Make "addr" parameter a
8388 pointer constant.
8389 * utils.c (gdb_print_host_address): Update.
8390
366cfc9e
KB
83912003-04-09 Kevin Buettner <kevinb@redhat.com>
8392
8393 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8394 register number for R0 is 0.
8395
cd983b5c
JB
83962003-04-09 J. Brobecker <brobecker@gnat.com>
8397
8398 * frame.h (struct gdbarch): Add opaque structure definition
8399 to avoid a compilation warning on LynxOS 4.0.
8400
d1340264
AC
84012003-04-09 Andrew Cagney <cagney@redhat.com>
8402
8403 * frame.h (struct frame_info): Delete field "pc". Replace
8404 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8405 structure.
8406 * frame.c (frame_pc_unwind): Update.
8407 (create_sentinel_frame): Do not set "pc".
8408 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8409 (get_frame_pc): Call frame_pc_unwind.
8410 (deprecated_update_frame_pc_hack): Update.
8411 (create_new_frame): Use "pc" not "->pc".
8412
90a6fffb
AC
84132003-04-09 Andrew Cagney <cagney@redhat.com>
8414
8415 * frame.c (get_frame_id): Eliminate code updating "frame".
8416 (legacy_get_prev_frame): Ditto.
8417 (get_frame_base): Return id.base directly.
8418 (deprecated_update_frame_base_hack): Update "id.base".
8419 * frame.h (struct frame_info): Delete field "frame".
8420
2fbce691
AC
84212003-04-09 Andrew Cagney <cagney@redhat.com>
8422
8423 * NEWS: Mention that the "Sequent family" is obsolete.
8424 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8425 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8426 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8427 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8428 * config/i386/tm-ptx4.h: Obsolete file.
8429 * config/i386/tm-ptx.h: Obsolete file.
8430 * symm-tdep.c: Obsolete file.
8431 * config/i386/symmetry.mt: Obsolete file.
8432 * config/i386/tm-symmetry.h: Obsolete file.
8433 * symm-nat.c: Obsolete file.
8434 * config/i386/nm-symmetry.h: Obsolete file.
8435 * config/i386/xm-symmetry.h: Obsolete file.
8436 * config/i386/symmetry.mh: Obsolete file.
8437 * config/i386/nm-ptx4.h: Obsolete file.
8438 * config/i386/ptx4.mh: Obsolete file.
8439 * config/i386/ptx.mt: Obsolete file.
8440 * config/i386/ptx.mh: Obsolete file.
8441 * config/i386/xm-ptx4.h: Obsolete file.
8442 * config/i386/xm-ptx.h: Obsolete file.
8443
78c43945
AC
84442003-04-09 Andrew Cagney <cagney@redhat.com>
8445
8446 Obsolete mips*-*-mach3*.
8447 * NEWS: Mention that mips*-*-mach3* is obsolete.
8448 * m3-nat.c: Obsolete file.
8449 * config/nm-m3.h: Obsolete file.
8450 * config/mips/tm-mipsm3.h: Obsolete file.
8451 * config/mips/mipsm3.mt: Obsolete file.
8452 * config/mips/mipsm3.mh: Obsolete file.
8453 * config/mips/xm-mipsm3.h: Obsolete file.
8454 * mipsm3-nat.c: Obsolete file.
8455 * configure.host: Obsolete mips-dec-mach3*.
8456 * configure.tgt: Obsolete mips*-*-mach3*.
8457
f1908289
AC
84582003-04-09 Andrew Cagney <cagney@redhat.com>
8459
8460 * doublest.h: Update copyright.
8461 (deprecated_store_floating, deprecated_extract_floating): Rename
8462 store_floating and extract_floating. Update comments.
8463 * doublest.c: Update copyright.
8464 (extract_floating_by_length): Replace extract_floating.
8465 (store_floating_by_length): Replace store_floating.
8466 (deprecated_extract_floating): New function.
8467 (deprecated_store_floating): New function.
8468 (extract_typed_floating): Call extract_floating_by_length.
8469 (store_typed_floating): Call store_floating_by_length.
8470 * x86-64-tdep.c (x86_64_store_return_value): Update.
8471 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8472 (sh64_extract_return_value): Update.
8473 (sh_sh4_register_convert_to_virtual): Update.
8474 (sh_sh64_register_convert_to_virtual): Update.
8475 (sh_sh4_register_convert_to_raw): Update.
8476 (sh_sh64_register_convert_to_raw): Update.
8477 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8478 (rs6000_register_convert_to_raw): Update.
8479 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8480 (ia64_register_convert_to_raw): Update.
8481 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8482 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8483 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8484 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8485 (alpha_register_convert_to_raw): Update.
8486
4443bd83
AC
84872003-04-08 Andrew Cagney <cagney@redhat.com>
8488
8489 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8490 * gdbarch.h, gdbarch.c: Re-generate.
8491 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8492 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8493 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8494 conditionally, use frame_pc_unwind as an alternative. Add
8495 comments.
8496 * arch-utils.c (init_frame_pc_default): Only call
8497 SAVED_PC_AFTER_CALL when available.
8498
c0236d92
EZ
84992003-04-08 Elena Zannoni <ezannoni@redhat.com>
8500
fbe586ae 8501 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8502 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8503 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8504 (start_remote): Ditto.
8505 (handle_inferior_event): Ditto.
8506 (save_inferior_status): Ditto.
8507 (restore_inferior_status): Ditto.
8508 * infcmd.c (attach_command): Ditto.
8509 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8510 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8511 * alpha-tdep.c (heuristic_proc_start): Ditto.
8512 * mips-tdep.c (heuristic_proc_start): Ditto.
8513 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8514 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8515 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8516 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8517 * remote-vx.c (vx_create_inferior): Ditto.
8518
85192003-04-08 Elena Zannoni <ezannoni@redhat.com>
8520
8521 * infrun.c (stop_soon_quietly): Make it an enum, to better
8522 override the default behavior of handle_inferior_event.
8523 (clear_proceed_status): Update uses of stop_soon_quietly to
8524 reflect that it is now an enum.
8525 (start_remote): Ditto.
8526 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8527 is set to handle the new GNU/Linux kernel behavior for
8528 attach/sigstop. Update uses of stop_soon_quietly.
8529 * inferior.h (enum stop_kind): New enum.
8530 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8531 Reset normal handle_inferior_event behavior, afterwards.
8532 * fork-child.c (startup_inferior): Update.
8533 * alpha-tdep.c (heuristic_proc_start): Update.
8534 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8535 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8536 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8537 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8538 * remote-vx.c (vx_create_inferior): Update.
8539 * mips-tdep.c (heuristic_proc_start): Update.
8540
1211bce3
EZ
85412003-04-07 Elena Zannoni <ezannoni@redhat.com>
8542
8543 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8544 be freed more than once, causing wild memory corruptions.
1211bce3 8545 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8546 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8547 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8548 with the "core" target.
1211bce3 8549
f0ef6b29
KB
85502003-04-07 Kevin Buettner <kevinb@redhat.com>
8551
8552 * mips-tdep.c (mips_print_fp_register): New function, created from
8553 do_fp_register_row(). Registers are now (also) printed as hex.
8554 Only one register is printed per row.
8555 (mips_print_register, do_fp_register_row): Print floating point
8556 registers with mips_print_fp_register().
8557
8cf71652
AC
85582003-04-06 Andrew Cagney <cagney@redhat.com>
8559
5e488a7b
AC
8560 * valprint.h (inspect_it): Add extern declaration.
8561 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8562 (selectors_info, classes_info): Ditto.
8563 (find_objc_msgcall): Fix indentation.
8564 (objc_printstr): Delete extern declarations.
8565
8cf71652
AC
8566 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8567
e6ba3bc9
AC
85682003-04-06 Andrew Cagney <cagney@redhat.com>
8569
8570 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8571 Update comment.
8572 * frame.c (legacy_saved_regs_this_id): Update.
8573 (legacy_get_prev_frame): Update.
8574 * xstormy16-tdep.c: Update comment.
8575 * sparc-tdep.c (sparc_frame_chain): Update comment.
8576 * blockframe.c (legacy_frame_chain_valid): Update.
8577
55e1d7e7
AC
85782003-04-06 Andrew Cagney <cagney@redhat.com>
8579
996179ee
AC
8580 * valprint.c (val_print_type_code_int): Delete #ifdef
8581 PRINT_TYPELESS_INTEGER code.
8582
55e1d7e7
AC
8583 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8584 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8585 multi-arch definition.
8586 * gdbarch.h: Re-generate.
8587
43bd9a9e
AC
85882003-04-05 Andrew Cagney <cagney@redhat.com>
8589
8590 Eliminate FRAME_FIND_SAVED_REGS.
8591 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8592 Change FSR parameter to a pointer.
8593 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8594 Assume FSR parameter is a pointer.
8595 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8596 Make fsr a pointer.
8597 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8598 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8599 saved_regs a pointer.
8600 (hppa_frame_saved_pc): Ditto.
8601 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8602 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8603 pointer.
8604 (restore_pc_queue): Make fsr a pointer.
8605 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8606 (hppa_frame_chain): Make saved_regs a pointer, call
8607 hppa_frame_init_saved_regs.
8608 * sparc-tdep.c: Include "gdb_assert.h".
8609 (sparc_frame_find_saved_regs): Replace internal_error with
8610 gdb_assert.
8611 * remote-vxsparc.c (vx_read_register): Delete reference to
8612 FRAME_FIND_SAVED_REGS.
8613 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8614 * gdbarch.h: Regenerate.
8615 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8616 (deprecated_get_frame_saved_regs): Delete declaration.
8617 (struct frame_saved_regs): Delete definition.
8618 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8619 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8620 (hppa_frame_find_saved_regs): Delete declaration.
8621 (FRAME_FIND_SAVED_REGS): Delete macro.
8622 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8623 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8624 FRAME_FIND_SAVED_REGS in comment.
8625
be41e9f4
AC
86262003-04-05 Andrew Cagney <cagney@redhat.com>
8627
8628 * frame.c (frame_func_unwind, get_frame_func): New functions.
8629 * frame.h (get_frame_func, frame_func_unwind): Declare.
8630 (struct frame_info): Add field "prev_func" for caching the
8631 previous frame's function address.
8632 * arm-tdep.c (arm_frameless_function_invocation): Combine
8633 get_pc_function_start and get_frame_pc into get_frame_func.
8634 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8635 (sh64_nofp_frame_init_saved_regs): Ditto.
8636 * s390-tdep.c (s390_function_start): Ditto.
8637 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8638 (rs6000_frameless_function_invocation): Ditto.
8639 (rs6000_frame_saved_pc): Ditto.
8640 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8641 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8642 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8643 (i386_frame_init_saved_regs): Ditto.
8644 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8645 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8646 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8647 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8648 * blockframe.c (frameless_look_for_prologue): Ditto.
8649
a01dd7cc
AC
86502003-04-05 Andrew Cagney <cagney@redhat.com>
8651
8652 * frame.c (legacy_get_prev_frame): Link prev to next at the
8653 function start. Update comments.
8654
5e5592e6
AC
86552003-04-05 Andrew Cagney <cagney@redhat.com>
8656
8657 * frame.c (get_frame_id): Update comment.
8658 (legacy_get_prev_frame): Update comment.
8659 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8660 * gdbarch.h: Regenerate.
8661 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8662 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8663
6fba5002
AC
86642003-04-05 Andrew Cagney <cagney@redhat.com>
8665
8666 * stack.c (print_frame_info): Use get_frame_pc.
8667
7df05f2b
AC
86682003-04-04 Andrew Cagney <cagney@redhat.com>
8669
8670 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8671 the frame's type from the unwinder.
8672 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8673 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8674 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8675 (get_frame_base_address): Use get_frame_type.
8676 (get_frame_locals_address, get_frame_args_address): Ditto.
8677 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8678 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8679 (struct frame_info): Add comment explaining why the frame contains
8680 a "type" field.
8681 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8682 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8683 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8684 NORMAL_FRAME.
8685 * frame-unwind.h: Include "frame.h".
8686 (struct frame_unwind): Add "type" field.
8687 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8688
11889732
AC
86892003-04-04 Andrew Cagney <cagney@redhat.com>
8690
8691 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8692 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8693 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8694 get_frame_base.
8695 (d10v_unwind_dummy_id): Use frame_id_build.
8696 * frame.c (find_frame_sal): Use get_frame_pc.
8697 (create_new_frame): Use deprecated_update_frame_pc_hack and
8698 deprecated_update_frame_base_hack.
8699 (create_sentinel_frame): Add comment about ->pc going away.
8700 (get_prev_frame): Add comment about ->pc going away.
8701 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8702 frame_id_build, deprecated_update_frame_pc_hack and
8703 deprecated_update_frame_base_hack.
8704 (select_frame): Use get_frame_pc.
8705 (legacy_saved_regs_this_id): Use frame_id_build.
8706
50c46a0d
EZ
87072003-04-04 Elena Zannoni <ezannoni@redhat.com>
8708
fbe586ae
RH
8709 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8710 signed integer case.
8711 (classify_argument): Handle enumerations and references.
50c46a0d 8712
50bbdbd9
AC
87132003-04-04 Andrew Cagney <cagney@redhat.com>
8714
8715 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8716 ID to NULL.
8717
36018d2e
AF
87182003-04-01 Adam Fedor <fedor@gnu.org>
8719
8720 * gdb/objc-lang.c (selectors_info): Replace calls to
8721 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8722 SYMBOL_NATURAL_NAME.
8723 (classes_info, find_methods): Likewise.
8724
35cec841
KB
87252003-04-03 Kevin Buettner <kevinb@redhat.com>
8726
8727 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8728 ``mach'' to the value determined by bfd_default_set_arch_mach().
8729
43136899
BR
87302003-04-02 Bob Rossi <bob_rossi@cox.net>
8731
8732 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8733 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8734 (mi-cmd-file.o): Update dependencies.
8735
040b99fd
KB
87362003-04-01 Kevin Buettner <kevinb@redhat.com>
8737
8738 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8739 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8740
9a3d7dfd
AF
87412003-04-01 Adam Fedor <fedor@gnu.org>
8742
8743 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8744 * language.h (struct language_defn): Add la_demangle.
8745 (language_demangle): Declare.
8746 * language.c (language_demangle): New function.
8747 (unk_lang_demangle): Likewise.
8748 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8749 Add ukn_lang_demangle.
9a3d7dfd 8750 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8751 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8752 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8753 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8754 * jv-lang.c (java_demangle): New function
8755 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8756 * objc-lang.c (objc_demangle): Add options argument
8757 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8758 * maint.c (maintenance_demangle): Replace switch with
8759 call to language_demangle.
8760 * utils.c (fprintf_symbol_filtered): Likewise.
8761
5e074003
AC
87622003-04-01 Andrew Cagney <cagney@redhat.com>
8763
8764 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8765 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8766 PRINT_TYPELESS_INTEGER.
8767 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8768 PUSH_RETURN_ADDRESS.
8769
270cb5d6
AC
87702003-04-01 Andrew Cagney <cagney@redhat.com>
8771
8772 * Makefile.in (d10v-tdep.o): Update dependencies.
8773 * d10v-tdep.c: Include "frame-base.h".
8774 (d10v_frame_unwind): Make constant.
8775 (d10v_frame_base_address): New function.
8776 (d10v_frame_base): New variable.
8777 (d10v_gdbarch_init): Set frame_base default.
8778 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8779 comment for base.
8780 (d10v_frame_unwind_cache): Set and use "prev_sp".
8781 (d10v_frame_this_id): Use the previous frame's inner most stack
8782 address and this frame's func address for the frame ID. Use
8783 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8784
6bfb3e36
AC
87852003-04-01 Andrew Cagney <cagney@redhat.com>
8786
8787 * frame.h (get_frame_locals_address, get_frame_args_address):
8788 Refer to the base address, instead of the address of the first
8789 local or parameter.
8ffd9b1b 8790
da62e633
AC
87912003-04-01 Andrew Cagney <cagney@redhat.com>
8792
8793 Add frame debug info addresses:
8794 * frame-base.c: New file.
8795 * frame-base.h: New file.
8796 * frame.h (struct frame_base): Add opaque declaration.
8797 (get_frame_base): Update comment.
8798 (get_frame_base_address): Declare.
8799 (get_frame_locals_address): Declare.
8800 (get_frame_args_address): Declare.
8801 (struct frame_info): Add "base" and "base_cache". Update
8802 comments on the unwinder.
8803 * frame.c: Include "frame-base.h".
8804 (get_frame_locals_address): New function.
8805 (get_frame_base_address): New function.
8806 (get_frame_args_address): New function.
8807 * findvar.c (read_var_value): Use get_frame_locals_address and
8808 get_frame_args_address.
8809 * stack.c (frame_info): Use get_frame_locals_address and
8810 get_frame_args_address.
8811 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8812 moved to "frame-base.c".
8813 * printcmd.c (print_frame_nameless_args): Ditto.
8814 * symtab.h (address_class): Update comments.
8815 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8816 get_frame_base_address.
8817 * dwarf2expr.c (execute_stack_op): Ditto.
8818 * Makefile.in (frame_base_h): Define.
8819 (frame.o): Update dependencies.
8820 (frame-base.o): Add dependencies.
8821 (SFILES): Add frame-base.c.
8822 (COMMON_OBS): Add frame-base.o.
8823
3d30e9c2
AC
88242003-04-01 Andrew Cagney <cagney@redhat.com>
8825
8826 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8827 CALL_DUMMY_LENGTH): Ditto.
8828 * gdbarch.c: Re-generate.
8829 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8830 (CALL_DUMMY_LENGTH): Delete macro.
8831 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8832 * arm-tdep.c (arm_gdbarch_init): Ditto.
8833 * avr-tdep.c (avr_gdbarch_init): Ditto.
8834 * cris-tdep.c (cris_gdbarch_init): Ditto.
8835 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8836 * frv-tdep.c (frv_gdbarch_init): Ditto.
8837 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8838 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8839 * i386-tdep.c (i386_gdbarch_init): Ditto.
8840 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8841 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8842 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8843 * mips-tdep.c (mips_gdbarch_init): Ditto.
8844 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8845 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8846 * s390-tdep.c (s390_gdbarch_init): Ditto.
8847 * sh-tdep.c (sh_gdbarch_init): Ditto.
8848 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8849 * v850-tdep.c (v850_gdbarch_init): Ditto.
8850 * vax-tdep.c (vax_gdbarch_init): Ditto.
8851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8852
ce0c7262
CV
88532003-04-01 Corinna Vinschen <vinschen@redhat.com>
8854
8855 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8856
73dd234f
AC
88572003-04-01 Andrew Cagney <cagney@redhat.com>
8858
8859 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8860 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8861 * gdbarch.h, gdbarch.c: Re-generate.
8862 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8863 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8864 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8865 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8866 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8867 * infcmd.c (run_stack_dummy): Simplify assuming
8868 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8869 * infrun.c (handle_inferior_event): Ditto.
8870 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8871 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8872 * arm-tdep.c (arm_gdbarch_init): Ditto.
8873 * avr-tdep.c (avr_gdbarch_init): Ditto.
8874 * cris-tdep.c (cris_gdbarch_init): Ditto.
8875 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8876 * frv-tdep.c (frv_gdbarch_init): Ditto.
8877 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8878 * i386-tdep.c (i386_gdbarch_init): Ditto.
8879 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8881 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8882 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8883 * mips-tdep.c (mips_gdbarch_init): Ditto.
8884 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8885 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8886 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8887 * s390-tdep.c (s390_gdbarch_init): Ditto.
8888 * sh-tdep.c (sh_gdbarch_init): Ditto.
8889 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8890 * v850-tdep.c (v850_gdbarch_init): Ditto.
8891 * vax-tdep.c (vax_gdbarch_init): Ditto.
8892 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8893
97606a13
DJ
88942003-04-01 Daniel Jacobowitz <drow@mvista.com>
8895
8896 * symfile.c (symfile_relocate_debug_section): Update call to
8897 bfd_simple_get_relocated_section_contents.
8898
e8ab51f7
AC
88992003-03-31 Andrew Cagney <cagney@redhat.com>
8900
8901 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8902 * gdbarch.h, gdbarch.c: Regenerate.
8903 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8904 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8905 available.
8906 * frame.h (generic_fix_call_dummy): Delete declaration.
8907 * dummy-frame.h: Update comment.
8908 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8909 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8910 fix_call_dummy.
8911 * sh-tdep.c (sh_gdbarch_init): Ditto.
8912 * s390-tdep.c (s390_gdbarch_init): Ditto.
8913 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8914 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8916 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8917 * i386-tdep.c (i386_gdbarch_init): Ditto.
8918 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8919 * frv-tdep.c (frv_gdbarch_init): Ditto.
8920 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8921 * cris-tdep.c (cris_gdbarch_init): Ditto.
8922 * avr-tdep.c (avr_gdbarch_init): Ditto.
8923 * arm-tdep.c (arm_gdbarch_init): Ditto.
8924
018d1b48
JB
89252003-03-31 J. Brobecker <brobecker@gnat.com>
8926
8927 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8928 (INIT_FRAME_AP): Likewise.
8929 (EXTRA_FRAME_INFO): Likewise.
8930
e9a2674e
AC
89312003-03-31 Andrew Cagney <cagney@redhat.com>
8932
8933 * gdbarch.sh: Include "symfile.h".
8934 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8935 * gdbarch.h, gdbarch.c: Re-generate.
8936 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8938 call_dummy_address, the default is at entry_point_address.
8939 * v850-tdep.c (v850_gdbarch_init): Ditto.
8940 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8941 * sh-tdep.c (sh_gdbarch_init): Ditto.
8942 * s390-tdep.c (s390_gdbarch_init): Ditto.
8943 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8944 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8945 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8946 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8947 * i386-tdep.c (i386_gdbarch_init): Ditto.
8948 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8949 * frv-tdep.c (frv_gdbarch_init): Ditto.
8950 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8951 * cris-tdep.c (cris_gdbarch_init): Ditto.
8952 * arm-tdep.c (arm_gdbarch_init): Ditto.
8953
e8a8712a
AC
89542003-03-31 Andrew Cagney <cagney@redhat.com>
8955
8956 * gdbarch.sh (CALL_DUMMY_P): Delete.
8957 * gdbarch.h, gdbarch.c: Re-generate.
8958 * inferior.h (CALL_DUMMY_P): Delete macro.
8959 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8960 * vax-tdep.c (vax_gdbarch_init): Update.
8961 * v850-tdep.c (v850_gdbarch_init): Update.
8962 * sparc-tdep.c (sparc_gdbarch_init): Update.
8963 * sh-tdep.c (sh_gdbarch_init): Update.
8964 * s390-tdep.c (s390_gdbarch_init): Update.
8965 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8966 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8967 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8968 * mips-tdep.c (mips_gdbarch_init): Update.
8969 * mcore-tdep.c (mcore_gdbarch_init): Update.
8970 * m68k-tdep.c (m68k_gdbarch_init): Update.
8971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8972 * ia64-tdep.c (ia64_gdbarch_init): Update.
8973 * i386-tdep.c (i386_gdbarch_init): Update.
8974 * h8300-tdep.c (h8300_gdbarch_init): Update.
8975 * frv-tdep.c (frv_gdbarch_init): Update.
8976 * d10v-tdep.c (d10v_gdbarch_init): Update.
8977 * cris-tdep.c (cris_gdbarch_init): Update.
8978 * breakpoint.c (deprecated_frame_in_dummy): Update.
8979 * avr-tdep.c (avr_gdbarch_init): Update.
8980 * alpha-tdep.c (alpha_gdbarch_init): Update.
8981 * arm-tdep.c (arm_gdbarch_init): Update.
8982 * dummy-frame.c (dummy_frame_this_id): Update comments.
8983 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8984 * frame.c (legacy_get_prev_frame): Ditto.
8985 * valops.c (call_function_by_hand): Delete function.
8986 (hand_function_call): Rename to call_function_by_hand
8987
ed234cf8
AC
89882003-03-30 Andrew Cagney <cagney@redhat.com>
8989
8990 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8991 * value.h (struct value): Update comment.
ed234cf8 8992
06c77151
AC
89932003-03-30 Andrew Cagney <cagney@redhat.com>
8994
6c2b5168
AC
8995 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8996 D10V_FP_REGNUM.
8997 (d10v_gdbarch_init): Do not set fp_regnum.
8998
06c77151
AC
8999 * frame.c (get_frame_base): Force ID initialization.
9000 (get_prev_frame): Move computation of the frame ID from here ...
9001 (get_frame_id): ... to here.
9002 (legacy_get_prev_frame): Mark the frame ID as valid.
9003 * frame.h (struct frame_info): Add field "id_p".
9004
97a1a11c
MK
90052003-03-30 Mark Kettenis <kettenis@gnu.org>
9006
9007 * i386-tdep.c (i386_store_struct_return): Removed.
9008 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9009
6c0e89ed
AC
90102003-03-30 Andrew Cagney <cagney@redhat.com>
9011
9012 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9013 * gdbarch.h, gdbarch.c: Regenerate.
9014 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9015 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9016 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9017 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9018 * i386-tdep.c (i386_gdbarch_init): Ditto.
9019 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9020 * cris-tdep.c (cris_gdbarch_init): Ditto.
9021 * vax-tdep.c (vax_gdbarch_init): Ditto.
9022 * s390-tdep.c (s390_gdbarch_init): Ditto.
9023 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9024 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9025 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9026 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9027 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9028 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9029 * sparc-tdep.c (sparc_gdbarch_init): Update.
9030 * sh-tdep.c (sh_gdbarch_init): Update.
9031 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9032 * mips-tdep.c (mips_gdbarch_init): Update.
9033 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9034 * ia64-tdep.c (ia64_gdbarch_init): Update.
9035 * frv-tdep.c (frv_gdbarch_init): Update.
9036 * avr-tdep.c (avr_gdbarch_init): Update.
9037 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9038 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9039 instead of when push_dummy_call is not available.
8ffd9b1b 9040
f7dd6af2
AC
90412003-03-30 Andrew Cagney <cagney@redhat.com>
9042
9043 * infttrace.c: Include "gdbthread.h".
9044 (parent_attach_all): Fix function signature.
9045 (call_ptrace): Update call.
9046 * Makefile.in (infttrace.o): Update dependencies.
9047
28f617b3
AC
90482003-03-30 Andrew Cagney <cagney@redhat.com>
9049
9050 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9051 PUSH_RETURN_ADDRESS.
9052 * gdbarch.h, gdbarch.c: Regenerate.
9053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9054 * x86-64-tdep.c (x86_64_init_abi): Update.
9055 * v850-tdep.c (v850_gdbarch_init): Update.
9056 * sparc-tdep.c (sparc_gdbarch_init): Update.
9057 * sh-tdep.c (sh_gdbarch_init): Update.
9058 * s390-tdep.c (s390_gdbarch_init): Update.
9059 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9060 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9061 * mips-tdep.c (mips_gdbarch_init): Update.
9062 * mcore-tdep.c (mcore_gdbarch_init): Update.
9063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9064 * ia64-tdep.c (ia64_gdbarch_init): Update.
9065 * i386-tdep.c (i386_gdbarch_init): Update.
9066 * h8300-tdep.c (h8300_gdbarch_init): Update.
9067 * frv-tdep.c (frv_gdbarch_init): Update.
9068 * cris-tdep.c (cris_gdbarch_init): Update.
9069 * avr-tdep.c (avr_gdbarch_init): Update.
9070 * arm-tdep.c (arm_gdbarch_init): Update.
9071 * valops.c (hand_function_call): Update.
9072
4d628cd7
AC
90732003-03-29 Andrew Cagney <cagney@redhat.com>
9074
9075 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9076 sizeof_call_dummy_words.
9077 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9078 define.
9079 * gdbarch.h: Regenerate.
8ffd9b1b 9080
65e82032
AC
90812003-03-29 Andrew Cagney <cagney@redhat.com>
9082
9083 * infttrace.h: New file.
9084 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9085 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9086 (hpread_read_doc_function_type): Detect an initialized type1.
9087 (hpread_quick_traverse): Initialize mod_name_string.
9088 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9089 (som_solib_get_solib_by_pc): Declare.
9090 (so_lib_thread_start_addr): Declare.
9091 (no_shared_libraries): Declare.
9092 * somread.c (init_import_symbols): Make static. Add forward
9093 declaration.
9094 * config/pa/nm-hppah.h: Include "infttrace.h" for
9095 parent_attach_all.
9096 (hppa_insert_hw_watchpoint): Declare.
9097 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9098 * hppah-nat.c: Include "gdb_string.h".
9099 (parent_attach_all): Delete extern declaration, moved to
9100 "infttrace.h".
9101 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9102 int.
9103 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9104 * Makefile.in (infttrace_h): Define.
9105 (hpread.o): Update dependencies.
9106 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9107 * hppa-hpux-tdep.c: Include "gdb_string.h".
9108 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9109 * infrun.c (handle_inferior_event): Always initialize
9110 stepped_after_stopped_by_watchpoint. Add default and remove
9111 fallthrough in switch statement.
9112 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9113 parameter to int.
9114 (hppa_remove_hw_watchpoint): Ditto.
9115
2c3bbe77
AC
91162003-03-29 Andrew Cagney <cagney@redhat.com>
9117
9118 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9119 offset.
9120
2dd604e7
RE
91212003-03-29 Richard Earnshaw <rearnsha@arm.com>
9122
9123 * arm-tdep.c (arm_push_arguments): Delete.
9124 (struct stack_item): New type.
9125 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9126 (arm_store_struct_return): Delte.
9127 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9128 arm_push_arguments or arm_store_struct_return.
9129
e8933a55
AC
91302003-03-28 Andrew Cagney <cagney@redhat.com>
9131
9132 * Makefile.in (d10v-tdep.o): Update dependencies.
9133 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9134 * d10v-tdep.c: Include "remote.h".
9135 (target_resume_hook): Delete extern declaration.
9136 (target_wait_loop_hook): Ditto.
9137 (tdisassemble_command): Eliminate assignment in "if" conditional.
9138 (d10v_ts2_register_sim_regno): Eliminate call to
9139 legacy_register_sim_regno.
9140 (d10v_ts3_register_sim_regno): Ditto.
9141
6949171e
JJ
91422003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9143
9144 * thread.c: Reindented.
9145 * lin-lwp.c: Ditto.
9146 * linux-proc.c: Ditto.
9147
98c7071f
BR
91482003-03-28 Bob Rossi <bob_rossi@cox.net>
9149
fbe586ae 9150 * MAINTAINERS (write after approval): Add myself.
98c7071f 9151
5edc9ca6
TR
91522003-03-27 Theodore A. Roth <troth@openavr.org>
9153
9154 * objc-exp.y: Add missing semi-colons.
9155
378bfd1b
AC
91562003-03-27 Andrew Cagney <cagney@redhat.com>
9157
9158 * regcache.c (write_sp): Delete function and references.
9159 * inferior.h (write_sp): Delete declaration.
9160 * valops.c (hand_function_call): Replace write_sp with
9161 TARGET_WRITE_SP.
9162 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9163 (sparc_pop_frame): Ditto.
8ffd9b1b 9164
56056df7
AC
91652003-03-27 Andrew Cagney <cagney@redhat.com>
9166
9167 * NEWS: Mention removal of support for hppa*-*-bsd* and
9168 hppa*-*-osf* natives, and hppa*-*-pro* target.
9169 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9170 * config/pa/xm-pa.h: Obsolete file.
9171 * config/pa/xm-hppab.h: Obsolete file.
9172 * config/pa/nm-hppab.h: Obsolete file.
9173 * config/pa/tm-hppab.h: Obsolete file.
9174 * config/pa/tm-hppao.h: Obsolete file.
9175 * config/pa/nm-hppao.h: Obsolete file.
9176 * config/pa/tm-pro.h: Obsolete file.
9177 * config/pa/hppaosf.mt: Obsolete file.
9178 * config/pa/hppaosf.mh: Obsolete file.
9179 * config/pa/hppapro.mt: Obsolete file.
9180 * config/pa/hppabsd.mt: Obsolete file.
9181 * config/pa/hppabsd.mh: Obsolete file.
9182 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9183 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9184 hppa*-*-osf*.
9185
5873a88d
AC
91862003-03-27 Andrew Cagney <cagney@redhat.com>
9187
9188 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9189 push_arguments. Don't set push_return_address or write_sp.
9190 (d10v_push_dummy_call): Replace d10v_push_arguments.
9191 (d10v_push_return_address, d10v_write_sp): Delete function,
9192 handled by push_dummy_call.
9193
b81774d8
AC
91942003-03-26 Andrew Cagney <cagney@redhat.com>
9195
9196 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9197 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9198 regcache and dummy_addr parameters.
9199 * gdbarch.h, gdbarch.c: Re-generate.
9200 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9201 available; assume it will handle stack alignment and return
9202 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9203 legacy_push_arguments.
9204 (legacy_push_arguments): Rename default_push_arguments.
9205 * value.h (legacy_push_arguments): Rename default_push_arguments.
9206 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9207 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9208 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9209 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9210 * config/i386/tm-symmetry.h: Update.
9211 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9212 * x86-64-tdep.c (x86_64_init_abi): Update.
9213 * v850-tdep.c (v850_gdbarch_init): Update.
9214 * sparc-tdep.c (sparc_gdbarch_init): Update.
9215 * sh-tdep.c (sh_gdbarch_init): Update.
9216 * s390-tdep.c (s390_gdbarch_init): Update.
9217 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9218 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9219 * mips-tdep.c (mips_gdbarch_init): Update.
9220 * mcore-tdep.c (mcore_gdbarch_init): Update.
9221 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9222 * ia64-tdep.c (ia64_gdbarch_init): Update.
9223 * i386-tdep.c (i386_gdbarch_init): Update.
9224 * hppa-tdep.c (hppa_gdbarch_init): Update.
9225 * h8300-tdep.c (h8300_gdbarch_init): Update.
9226 * frv-tdep.c (frv_gdbarch_init): Update.
9227 * d10v-tdep.c (d10v_gdbarch_init): Update.
9228 * cris-tdep.c (cris_gdbarch_init): Update.
9229 * avr-tdep.c (avr_gdbarch_init): Update.
9230 * arm-tdep.c (arm_gdbarch_init): Update.
9231 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9232 * alpha-tdep.c (alpha_gdbarch_init): Update.
9233
f541410f
DJ
92342003-03-26 Daniel Jacobowitz <drow@mvista.com>
9235
9236 * signals/signals.c (do_target_signal_to_host): Correct realtime
9237 signal range test.
9238
69f567ae
DJ
92392003-03-26 Daniel Jacobowitz <drow@mvista.com>
9240
9241 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9242 (struct sal_chain, map_catch_names): Remove.
9243 (catch_exception_command_1): Don't call
9244 handle_gnu_4_16_catch_command.
9245
d5d14a5a
DJ
92462003-03-26 Daniel Jacobowitz <drow@mvista.com>
9247
9248 From Mark Dettinger <dettinge@de.ibm.com>:
9249 * dwarf2cfi.c (read_2u): Increment pointer by two.
9250
bdd73e22
DJ
92512003-03-26 Daniel Jacobowitz <drow@mvista.com>
9252
9253 * signals/signals.c: Fix typos in last change.
9254
960cb555
DJ
92552003-03-26 Daniel Jacobowitz <drow@mvista.com>
9256
9257 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9258 not already defined. Use __SIGRTMIN if available.
9259 (target_signal_from_host): Remove SIGRTMIN block.
9260 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9261 the signal is within the realtime range.
9262
f636b87d
AF
92632003-03-25 Adam Fedor <fedor@gnu.org>
9264
9265 * Makefile.in (infrun.o): Add $(language_h)
9266 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9267 for language specific trampolines.
9268 * language.h (struct language_defn): Add skip_trampoline.
9269 (skip_language_trampoline): Declare.
9270 * language.c (unk_lang_trampoline, skip_language_trampoline):
9271 New functions.
9272 (unknown_language_defn, auto_language_defn, local_language_defn):
9273 Add ukn_lang_trampoline.
9274 * ada-lang.c (ada_language_defn): Add NULL for language
9275 specific skip_trampoline.
9276 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9277 scm-lang.c: Likewise.
9278 * objc-lang.c (objc_skip_trampoline): New function.
9279 (objc_language_defn): Add objc_skip_trampoline.
9280
28f617b3 92812003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9282
9283 * frame.c (get_prev_frame): Delay validating a frame's ID -
9284 non-NULL, didn't go backwards - until an attempt to unwind it to
9285 the previous frame.
9286
f933a9c5
AC
92872003-03-25 Andrew Cagney <cagney@redhat.com>
9288
9289 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9290 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9291 * gdbarch.h, gdbarch.c: Re-generate.
9292 * config/sparc/tm-sparc.h
9293 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9294 * sparc-tdep.c (sparc_gdbarch_init): Set
9295 deprecated_extra_stack_alignment_needed.
9296 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9298 extra_stack_alignment_needed.
9299 * v850-tdep.c (v850_gdbarch_init): Ditto.
9300 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9301 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9302 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9303 * cris-tdep.c (cris_gdbarch_init): Ditto.
9304 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9305 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9306
4183d812
AC
93072003-03-25 Andrew Cagney <cagney@redhat.com>
9308
9309 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9310 STORE_STRUCT_RETURN.
9311 * gdbarch.h, gdbarch.c: Regenerate.
9312 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9313 (d10v_push_arguments): Set the struct return register.
9314 (d10v_gdbarch_init): Update.
9315 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9316 * x86-64-tdep.c (x86_64_init_abi): Update.
9317 * vax-tdep.c (vax_gdbarch_init): Update.
9318 * v850-tdep.c (v850_gdbarch_init): Update.
9319 * sparc-tdep.c (sparc_gdbarch_init): Update.
9320 * sh-tdep.c (sh_gdbarch_init): Update.
9321 * s390-tdep.c (s390_gdbarch_init): Update.
9322 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9323 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9324 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9325 * mips-tdep.c (mips_gdbarch_init): Update.
9326 * mcore-tdep.c (mcore_gdbarch_init): Update.
9327 * m68k-tdep.c (m68k_gdbarch_init): Update.
9328 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9329 * ia64-tdep.c (ia64_gdbarch_init): Update.
9330 * i386-tdep.c (i386_gdbarch_init): Update.
9331 * hppa-tdep.c (hppa_gdbarch_init): Update.
9332 * h8300-tdep.c (h8300_gdbarch_init): Update.
9333 * frv-tdep.c (frv_gdbarch_init): Update.
9334 * cris-tdep.c (cris_gdbarch_init): Update.
9335 * avr-tdep.c (avr_gdbarch_init): Update.
9336 * arm-tdep.c (arm_gdbarch_init): Update.
9337 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9338
1bf6d5cc
AC
93392003-03-25 Andrew Cagney <cagney@redhat.com>
9340
9341 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9342 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9343 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9344 * gdbarch.h, gdbarch.c: Regenerate.
9345 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9346 call_dummy_stack_adjust_p.
9347 * vax-tdep.c (vax_gdbarch_init): Ditto.
9348 * v850-tdep.c (v850_gdbarch_init): Ditto.
9349 * sh-tdep.c (sh_gdbarch_init): Ditto.
9350 * s390-tdep.c (s390_gdbarch_init): Ditto.
9351 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9352 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9353 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9354 * mips-tdep.c (mips_gdbarch_init): Ditto.
9355 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9356 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9358 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9359 * i386-tdep.c (i386_gdbarch_init): Ditto.
9360 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9361 * frv-tdep.c (frv_gdbarch_init): Ditto.
9362 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9363 * cris-tdep.c (cris_gdbarch_init): Ditto.
9364 * avr-tdep.c (avr_gdbarch_init): Ditto.
9365 * arm-tdep.c (arm_gdbarch_init): Ditto.
9366 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9367 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9368 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9369 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9370 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9371 call_dummy_stack_adjust_p.
9372 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9373 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9374 * sparc-tdep.c (sparc32_push_arguments): Update.
9375 * valops.c (hand_function_call): Update.
9376
71c08af0
CV
93772003-03-25 Corinna Vinschen <vinschen@redhat.com>
9378
9379 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9380 set_gdbarch_char_signed.
9381
30757f90
RE
93822003-03-25 Richard Earnshaw <rearnsha@arm.com>
9383
9384 PR cli/548
9385 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9386
03d48a7d
RE
93872003-03-25 Richard Earnshaw <rearnsha@arm.com>
9388
9389 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9390 (_initialize_arm_tdep): Don't set tm_print_insn.
9391
2cf6873c
AF
93922003-03-24 Adam Fedor <fedor@gnu.org>
9393
9394 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9395 * objc-lang.h: Add multiple inclusion protection.
9396 (start_msglist, add_msglist, end_msglist): Additional declarations.
9397
17c0759e
RE
93982003-03-24 Richard Earnshaw <rearnsha@arm.com>
9399
9400 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9401 value was renamed to ARM_FLOAT_SOFT_FPA.
9402
618ce49f
AC
94032003-03-23 Andrew Cagney <cagney@redhat.com>
9404
9405 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9406 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9407 * gdbarch.h, gdbarch.c: Regenerate.
9408 * valops.c (hand_function_call): Update.
9409 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9410 * frame.c (legacy_saved_regs_this_id): Update.
9411 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9412 * dummy-frame.h: Update.
9413 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9414 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9415 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9416 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9417 * config/m68k/tm-sun3.h: Update.
9418 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9420 * x86-64-tdep.c (x86_64_init_abi): Update.
9421 * vax-tdep.c (vax_gdbarch_init): Update.
9422 * v850-tdep.c (v850_gdbarch_init): Update.
9423 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9424 * sh-tdep.c (sh_gdbarch_init): Update.
9425 * s390-tdep.c (s390_gdbarch_init): Update.
9426 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9427 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9428 (frame_get_saved_regs): Update.
9429 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9430 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9431 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9432 * mips-tdep.c (mips_gdbarch_init): Update.
9433 * mcore-tdep.c (mcore_gdbarch_init): Update.
9434 * m68k-tdep.c (m68k_gdbarch_init): Update.
9435 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9436 * ia64-tdep.c (ia64_gdbarch_init): Update.
9437 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9438 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9439 (i386_interix_back_one_frame): Update.
9440 * hppa-tdep.c (hppa_gdbarch_init): Update.
9441 (hppa_init_extra_frame_info): Update.
9442 * h8300-tdep.c (h8300_gdbarch_init): Update.
9443 * frv-tdep.c (frv_gdbarch_init): Update.
9444 * cris-tdep.c (cris_gdbarch_init): Update.
9445 * avr-tdep.c (avr_gdbarch_init): Update.
9446 * arm-tdep.c (arm_gdbarch_init): Update.
9447 * alpha-tdep.c (alpha_gdbarch_init): Update.
9448
fd50bc42
RE
94492003-03-22 Richard Earnshaw <rearnsha@arm.com>
9450
9451 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9452 (arm_get_fp_model): Declare.
9453 * arm-tdep.c (fp_model_strings): New string array.
9454 (arm_fp_model, current_fp_model): New variables.
9455 (arm_get_fp_model): New function.
9456 (arm_set_fp): New function.
9457 (set_fp_model_sfunc): New function.
9458 (show_fp_model): New function.
9459 (_initialize_arm_tdep): Add new command to set/show the FPU.
9460 (arm_extract_return_value): Use arm_get_fp_model.
9461 (arm_store_return_value): Likewise.
9462 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9463 to initialize the floating-point data types.
9464 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9465 model is FPA.
9466
26304000
RE
94672003-03-22 Richard Earnshaw <rearnsha@arm.com>
9468
9469 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9470 the current setting of each value.
9471 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9472 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9473 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9474 commands and add new version as subcommands of "set/show arm".
9475
afd7eef0
RE
94762003-03-22 Richard Earnshaw <rearnsha@arm.com>
9477
9478 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9479 (set_arm_command, show_arm_command): New functions.
9480 (_initialize_arm_tdep): Add them.
9481 (num_disassembly_options): Renamed from num_flavor_options.
9482 (valid_disassembly_styles): Renamed from valid_flavors.
9483 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9484 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9485 set_disassembly_flavor_sfunc.
9486 (set_disassembly_style): Renamed from set_disassembly_flavor.
9487 (arm_othernames): Updated.
9488 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9489 command. Add "set/show arm disassembly" commands. Deprecate
9490 "othernames" command.
9491
299a7944
RE
94922003-03-22 Richard Earnshaw <rearnsha@arm.com>
9493
9494 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9495 (arm-tdep.o): Depend on elf_arm_h.
9496
c1dac9e6
RE
94972003-03-22 Richard Earnshaw <rearnsha@arm.com>
9498
9499 * Makefile.in (coff_internal_h): Define.
9500 (arm-tdep.o): Update dependencies.
9501
2702d96c
RE
95022003-03-22 Richard Earnshaw <rearnsha@arm.com>
9503
9504 * arm-tdep.c (prologue_cache): Delete.
9505 (check_prologue_cache, save_prologue_cache): Delete.
9506 (arm_scan_prologue): Don't check or update the prologue_cache.
9507 (arm_gdb_arch_init): Don't initialize it.
9508 (_initialize_arm_tdep): Likewise.
9509
27d5d74b
SC
95102003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9511
9512 * MAINTAINERS (tui): Maintainer of tui code.
9513
1762d96d
CV
95142003-03-21 Corinna Vinschen <vinschen@redhat.com>
9515
9516 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9517 (i386-cygwin-tdep.o): Add dependencies.
9518 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9519 * i386-cygwin-tdep.c: New file.
9520 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9521 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9522
4c2e2391
AC
95232003-03-20 Andrew Cagney <cagney@redhat.com>
9524
f20d38b7
AC
9525 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9526 (handle_inferior_event): Remove code calling
9527 DYNAMIC_TRAMPOLINE_NEXTPC.
9528
0022b738
AC
9529 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9530 already has a full path.
9531
864dbc90
AC
9532 * main.c (gdb_main): Return 1.
9533 (captured_main): Call error to report an invalid interpreter.
9534
4c2e2391
AC
9535 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9536 * alpha-osf1-tdep.c: Include "gdb_string.h".
9537
5ef7553b
JB
95382003-03-19 J. Brobecker <brobecker@gnat.com>
9539
9540 Continuing work to convert the hppa targets to multiarch partial.
9541
9542 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9543 method, now that hppa_push_dummy_frame has a conformant prototype.
9544 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9545 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9546 for the switch to multiarch partial.
9547
7bde8967
KB
95482003-03-19 Kevin Buettner <kevinb@redhat.com>
9549
9550 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9551 when iss is issNull.
9552
b006a9e9
KB
95532003-03-18 Kevin Buettner <kevinb@redhat.com>
9554
9555 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9556 NUM_REGS bounds check.
9557
5e2e9765
KB
95582003-03-18 Kevin Buettner <kevinb@redhat.com>
9559
9560 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9561 * mips-tdep.c (gdb_assert.h): Include.
9562 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9563 (mips_register_name): Handle integer registers explicitly. Add
9564 bounds checking.
9565 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9566 (mips_lsi33k_reg_names): Don't list integer registers; they're
9567 handled by mips_register_name() now.
9568 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9569 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9570 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9571 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9572 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9573
a2867626
AC
95742003-03-18 Andrew Cagney <cagney@redhat.com>
9575
9576 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9577 a void pointer.
9578 * gdbtypes.h (print_scalar_formatted): Update declaration.
9579 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9580
06600e06
JB
95812003-03-18 J. Brobecker <brobecker@gnat.com>
9582
9583 * infrun.c (observer.h): Add #include.
9584 (normal_stop): Add call to observer_notify_normal_stop.
9585 * Makefile.in (infrun.o): Add dependency on observer.h.
9586
7daf4f5b
JB
95872003-03-18 J. Brobecker <brobecker@gnat.com>
9588
9589 Continuing work to convert the hppa targets to multiarch partial.
9590 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9591 parameter. Reformat comment.
9592 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9593 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9594 to match new profile.
9595
3371ccc0
JB
95962003-03-18 J. Brobecker <brobecker@gnat.com>
9597
9598 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9599 appear to be working in any case.
9600
4fbe891e
JB
96012003-03-18 J. Brobecker <brobecker@gnat.com>
9602
9603 * observer.c (observer_test_first_observer): New static variable.
9604 (observer_test_second_observer): Likewise.
9605 (observer_test_third_observer): Likewise.
9606 (observer_test_first_notification_function): New static function.
9607 (observer_test_second_notification_function): Likewise.
9608 (observer_test_third_notification_function): Likewise.
9609
a7ff40e7
JB
96102003-03-17 J. Brobecker <brobecker@gnat.com>
9611
9612 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9613 * somsolib.c (gdb_assert.h): Likewise.
9614 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9615 (somsolib.o): Likewise.
9616
26ca4152
AC
96172003-03-17 Andrew Cagney <cagney@redhat.com>
9618
9619 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9620 BFD. Simplify setting of di.endian.
9621
0a613259
AC
96222003-03-17 Andrew Cagney <cagney@redhat.com>
9623
9624 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9625 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9626
9627 From Elena Zannoni <ezannoni@redhat.com>
9628 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9629 vector and floating-point parameters.
9630 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9631 convention.
9632 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9633
1132738f
FN
96342003-03-17 Fernando Nasser <fnasser@redhat.com>
9635
9636 * MAINTAINERS: Remove my name from several maintainership roles.
9637
6dc42492
AC
96382003-03-17 Andrew Cagney <cagney@redhat.com>
9639
9640 Fix frame off-by-one bug.
9641 * frame-unwind.h (frame_this_id_ftype): Replace
9642 frame_unwind_id_ftype.
9643 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9644 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9645 with "prev_register".
9646 * frame-unwind.c (frame_unwind_find_by_pc): Return
9647 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9648 comment.
9649 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9650 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9651 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9652 (dummy_frame_unwind): Update.
9653 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9654 sentinel_frame_register_unwind.
9655 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9656 (sentinel_frame_unwinder): Update.
9657 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9658 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9659 * frame.c (create_sentinel_frame): Update. Initialize
9660 "prologue_cache" instead of "unwind_cache".
9661 (frame_register_unwind): Call this frame's prev_register with the
9662 next frame and this frame's prologue cache.
9663 (get_prev_frame): Simplify. Always call prev frame's this_id with
9664 this frame and prev frame's prologue cache. Document that this
9665 call is shifted one to the left when compared to the
9666 frame_register_unwind call.
9667 (legacy_saved_regs_prev_register): Replace
9668 frame_saved_regs_register_unwind.
9669 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9670 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9671 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9672 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9673 (d10v_frame_unwind): Update.
9674 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9675 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9676 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9677 "saved_regs" with "this_saved_regs".
9678
efd710d6
AC
96792003-03-16 Andrew Cagney <cagney@redhat.com>
9680
9681 * frame.c (frame_pop): Don't call target_store_registers. Fix
9682 problem reported by Mark Kettenis.
9683
4e259f09
MK
96842003-03-16 Mark Kettenis <kettenis@gnu.org>
9685
9686 * i386-tdep.c (i386_register_type): Renamed from
9687 i386_register_virtual_type. Adjust function signature.
9688 (i386_gdbarch_init): Set register_type instead of
9689 deprecated_max_register_raw_size,
9690 deprecated_max_register_virtual_size and register_virtual_type.
9691
055bb976
AC
96922003-03-14 Andrew Cagney <cagney@redhat.com>
9693
9694 * frame.c (get_prev_frame): When a legacy frame, always call
9695 legacy_get_prev_frame. Simplify unwind code using assumption that
9696 the unwinder is new.
9697 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9698 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9699 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9700
ac2adee5
AC
97012003-03-14 Andrew Cagney <cagney@redhat.com>
9702
9703 * frame.c (get_saved_register): Delete function.
9704 * frame.h (get_saved_register): Delete declaration.
9705 * xstormy16-tdep.c: Update comment.
9706 * regcache.h: Update comments.
9707 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9708 get_saved_register and extract_address, use
9709 frame_read_unsigned_register.
9710 (sparc_frame_saved_pc): Ditto.
9711 (sparc_get_saved_register): Instead of get_saved_register, use
9712 frame_register.
9713 (sparc_pop_frame): Ditto.
9714 * findvar.c: Update comments.
9715 (value_of_register): Call frame_register instead of
9716 get_saved_register.
9717 (value_from_register): Ditto.
9718 * config/sparc/tm-sparc.h: Update comment.
9719 * breakpoint.c: Update comment.
9720
129c1cd6
AC
97212003-03-14 Andrew Cagney <cagney@redhat.com>
9722
9723 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9724 GET_SAVED_REGISTER.
9725 * gdbarch.h, gdbarch.c: Re-generate.
9726 * frame.h: Update comments.
9727 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9728 * x86-64-tdep.c (x86_64_init_abi): Update.
9729 * sparc-tdep.c (sparc_gdbarch_init): Update.
9730 * sh-tdep.c (sh_gdbarch_init): Update.
9731 * mips-tdep.c (mips_gdbarch_init): Update.
9732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9733 * cris-tdep.c (cris_gdbarch_init): Update.
9734 * ia64-tdep.c (ia64_gdbarch_init): Update.
9735 * frame.c (frame_register): Update.
9736 (get_saved_register): Update.
9737 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9738
749b82f6
AC
97392003-03-13 Andrew Cagney <cagney@redhat.com>
9740
9741 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9742 * gdbarch.h, gdbarch.c: Regenerate.
9743 * valops.c (hand_function_call): Update comment.
9744 * stack.c (return_command): Update comment.
9745 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9746 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9748 * x86-64-tdep.c (x86_64_init_abi): Update.
9749 * vax-tdep.c (vax_gdbarch_init): Update.
9750 * v850-tdep.c (v850_gdbarch_init): Update.
9751 * sparc-tdep.c (sparc_gdbarch_init): Update.
9752 * sh-tdep.c (sh_gdbarch_init): Update.
9753 * s390-tdep.c (s390_gdbarch_init): Update.
9754 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9755 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9756 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9757 * mips-tdep.c (mips_gdbarch_init): Update.
9758 * mcore-tdep.c (mcore_gdbarch_init): Update.
9759 * m68k-tdep.c (m68k_gdbarch_init): Update.
9760 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9761 * ia64-tdep.c (ia64_gdbarch_init): Update.
9762 * i386-tdep.c (i386_gdbarch_init): Update.
9763 * hppa-tdep.c (hppa_gdbarch_init): Update.
9764 * h8300-tdep.c (h8300_gdbarch_init): Update.
9765 * frv-tdep.c (frv_gdbarch_init): Update.
9766 * cris-tdep.c (cris_gdbarch_init): Update.
9767 * avr-tdep.c (avr_gdbarch_init): Update.
9768 * arm-tdep.c (arm_gdbarch_init): Update.
9769 * alpha-tdep.c (alpha_gdbarch_init): Update.
9770
1594fa56
AC
97712003-03-13 Andrew Cagney <cagney@redhat.com>
9772
9773 * frame.c (legacy_frame_p): New function.
9774 (get_prev_frame): Use legacy_frame_p.
9775 * frame.h (legacy_frame_p): Declare.
9776
7717fda3
V
97772003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9778
fbe586ae 9779 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9780 listing corrected.
9781
0c67cbe9
V
97822003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9783
fbe586ae 9784 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9785
03febf99
AC
97862003-03-12 Andrew Cagney <cagney@redhat.com>
9787
9788 * frame.c (get_prev_frame): Rename the frame parameter to
9789 "this_frame".
9790 (get_next_frame, legacy_get_prev_frame): Ditto.
9791
0a1e1ca1
AC
97922003-03-12 Andrew Cagney <cagney@redhat.com>
9793
9794 * frame.c (get_current_frame): Check target_has_registers before
9795 checking target_has_stack.
9796 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9797 instead of deprecated_selected_frame.
9798 * findvar.c (value_of_register): Pass "frame", not
9799 deprecated_selected_frame, to value_of_builtin_reg.
9800
a66a9c23
AC
98012003-03-12 Andrew Cagney <cagney@redhat.com>
9802
9803 * regcache.c (regcache_cooked_write_signed): New function.
9804 (regcache_cooked_write_unsigned): New function.
9805 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9806 (regcache_cooked_read_signed): Fix regnum in range assertion.
9807 * regcache.h (regcache_cooked_write_signed): Declare.
9808 (regcache_cooked_write_unsigned): Declare.
9809
8bedc050
AC
98102003-03-12 Andrew Cagney <cagney@redhat.com>
9811
9812 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9813 * gdbarch.h, gdbarch.c: Re-generate.
9814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9815 * x86-64-tdep.h: Update.
9816 * x86-64-tdep.c (x86_64_init_abi): Update.
9817 * v850-tdep.c (v850_gdbarch_init): Update.
9818 * sparc-tdep.c (sparc_gdbarch_init): Update.
9819 * sh-tdep.c (sh_gdbarch_init): Update.
9820 * s390-tdep.c (s390_gdbarch_init): Update.
9821 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9822 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9823 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9824 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9825 * mips-tdep.c (mips_gdbarch_init): Update.
9826 * mcore-tdep.c (mcore_gdbarch_init): Update.
9827 * m68k-tdep.c (m68k_gdbarch_init): Update.
9828 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9829 * ia64-tdep.c (ia64_gdbarch_init): Update.
9830 * i386-tdep.c (i386_gdbarch_init): Update.
9831 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9832 * hppa-tdep.c (hppa_gdbarch_init): Update.
9833 * h8300-tdep.c (h8300_gdbarch_init): Update.
9834 * frv-tdep.c (frv_gdbarch_init): Update.
9835 * cris-tdep.c (cris_gdbarch_init): Update.
9836 * avr-tdep.c (avr_gdbarch_init): Update.
9837 * arm-tdep.c (arm_gdbarch_init): Update.
9838 * alpha-tdep.c (alpha_gdbarch_init): Update.
9839 * sh-tdep.c (sh_init_extra_frame_info): Update.
9840 (sh64_init_extra_frame_info): Update.
9841 * ns32knbsd-nat.c (frame_num_args): Update.
9842 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9843 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9844 (xstormy16_frame_chain_valid): Update.
9845 * vax-tdep.c (vax_saved_pc_after_call): Update.
9846 * v850-tdep.c (v850_frame_chain): Update.
9847 (v850_pop_frame): Update.
9848 (v850_init_extra_frame_info): Update.
9849 * sparc-tdep.c (setup_arbitrary_frame): Update.
9850 * ns32k-tdep.c (umax_frame_num_args): Update.
9851 * s390-tdep.c (s390_pop_frame_regular): Update.
9852 * mn10300-tdep.c (mn10300_frame_chain): Update.
9853 (mn10300_pop_frame_regular): Update.
9854 (mn10300_init_extra_frame_info): Update.
9855 * mips-tdep.c (mips_init_frame_pc_first): Update.
9856 (mips_frame_chain): Update.
9857 (mips_pop_frame): Update.
9858 * mcore-tdep.c (mcore_frame_chain): Update.
9859 (mcore_pop_frame): Update.
9860 (mcore_init_extra_frame_info): Update.
9861 * arch-utils.c (init_frame_pc_default): Update.
9862 * m68k-tdep.c (isi_frame_num_args): Update.
9863 (delta68_frame_num_args): Update.
9864 (news_frame_num_args): Update.
9865 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9866 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9867 (alpha_frame_chain): Update.
9868 (alpha_pop_frame): Update.
9869 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9870 (hppa_init_extra_frame_info): Update.
9871 (hppa_frame_chain): Update.
9872 (hppa_frame_chain_valid): Update.
9873 * cris-tdep.c (cris_init_extra_frame_info): Update.
9874 * avr-tdep.c (avr_init_extra_frame_info): Update.
9875 * arm-tdep.c (arm_frame_chain_valid): Update.
9876 (arm_init_extra_frame_info): Update.
9877 (arm_pop_frame): Update.
9878 * frame.c (frame_pc_unwind): Update.
9879 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9880 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9881 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9882 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9883 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9884 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9885
7a25a7c1
AC
98862003-03-12 Andrew Cagney <cagney@redhat.com>
9887
9888 Eliminate the need for POP_FRAME.
9889 * frame.c (do_frame_unwind_register): New function.
9890 (frame_pop): When no POP_FRAME, pop the frame using register
9891 unwind and a scratch regcache.
9892 (frame_saved_regs_pop): Delete function.
9893 (trad_frame_unwinder): Update.
9894 * d10v-tdep.c (d10v_frame_pop): Delete function.
9895 (d10v_frame_unwind): Update.
9896 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9897 (sentinel_frame_unwinder): Update.
9898 * dummy-frame.c (dummy_frame_pop): Delete function.
9899 (dummy_frame_unwind): Update.
9900 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9901 (struct frame_unwind): Update.
9902
2f38ef89
KB
99032003-03-11 Kevin Buettner <kevinb@redhat.com>
9904
9905 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9906 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9907 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9908 Do range checks on register number obtained from debugging info.
9909 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9910 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9911 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9912 mapping function.
9913 (do_fp_register_row): Fix typo which caused double type to be
9914 used when attempting to unpack a float.
9915
552f4abf
JB
99162003-03-11 J. Brobecker <brobecker@gnat.com>
9917
9918 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9919
e0d2ae16
AC
99202003-03-11 Andrew Cagney <cagney@redhat.com>
9921
9922 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9923 frame. Problem found by Corinna Vinschen.
9924
ddbfdd06
PM
99252003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9926
9927 * doublest.c (floatformat_from_length): Accept also
9928 the real size of 'long double' type.
9929
088b2ddc 99302003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9931
088b2ddc 9932 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9933 * breakpoint.c (bpstat_copy): Copy the command lines as well
9934 as the old value, to match what is freed in bpstat_clear.
9935
f56f77c1
DC
99362003-03-10 David Carlton <carlton@math.stanford.edu>
9937
9938 * minsyms.c (add_minsym_to_hash_table): Replace
9939 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9940 (compare_minimal_symbols, compact_minimal_symbols)
9941 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9942 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9943 of DEPRECATED_SYMBOL_MATCHES_NAME.
9944 (lookup_minimal_symbol_solib_trampoline): Ditto.
9945
5602984a
AC
99462003-03-10 Andrew Cagney <cagney@redhat.com>
9947
9948 * regcache.h (regcache_cooked_read_ftype): Define.
9949 (regcache_save, regcache_restore): Add a cooked_read parameter.
9950 * regcache.c (regcache_save, regcache_restore): Update.
9951 (do_cooked_read): New function.
9952 (regcache_cpy): Pass do_cooked_read to regcache_save and
9953 regcache_restore.
9954
8bedc050
AC
99552003-03-10 Andrew Cagney <cagney@redhat.com>
9956
9957 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9958 * gdbarch.h, gdbarch.c: Re-generate.
9959 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9960 * x86-64-tdep.h: Update.
9961 * x86-64-tdep.c (x86_64_init_abi): Update.
9962 * v850-tdep.c (v850_gdbarch_init): Update.
9963 * sparc-tdep.c (sparc_gdbarch_init): Update.
9964 * sh-tdep.c (sh_gdbarch_init): Update.
9965 * s390-tdep.c (s390_gdbarch_init): Update.
9966 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9967 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9968 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9969 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9970 * mips-tdep.c (mips_gdbarch_init): Update.
9971 * mcore-tdep.c (mcore_gdbarch_init): Update.
9972 * m68k-tdep.c (m68k_gdbarch_init): Update.
9973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9974 * ia64-tdep.c (ia64_gdbarch_init): Update.
9975 * i386-tdep.c (i386_gdbarch_init): Update.
9976 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9977 * hppa-tdep.c (hppa_gdbarch_init): Update.
9978 * h8300-tdep.c (h8300_gdbarch_init): Update.
9979 * frv-tdep.c (frv_gdbarch_init): Update.
9980 * cris-tdep.c (cris_gdbarch_init): Update.
9981 * avr-tdep.c (avr_gdbarch_init): Update.
9982 * arm-tdep.c (arm_gdbarch_init): Update.
9983 * alpha-tdep.c (alpha_gdbarch_init): Update.
9984 * sh-tdep.c (sh_init_extra_frame_info): Update.
9985 (sh64_init_extra_frame_info): Update.
9986 * ns32knbsd-nat.c (frame_num_args): Update.
9987 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9988 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9989 (xstormy16_frame_chain_valid): Update.
9990 * vax-tdep.c (vax_saved_pc_after_call): Update.
9991 * v850-tdep.c (v850_frame_chain): Update.
9992 (v850_pop_frame): Update.
9993 (v850_init_extra_frame_info): Update.
9994 * sparc-tdep.c (setup_arbitrary_frame): Update.
9995 * ns32k-tdep.c (umax_frame_num_args): Update.
9996 * s390-tdep.c (s390_pop_frame_regular): Update.
9997 * mn10300-tdep.c (mn10300_frame_chain): Update.
9998 (mn10300_pop_frame_regular): Update.
9999 (mn10300_init_extra_frame_info): Update.
10000 * mips-tdep.c (mips_init_frame_pc_first): Update.
10001 (mips_frame_chain): Update.
10002 (mips_pop_frame): Update.
10003 * mcore-tdep.c (mcore_frame_chain): Update.
10004 (mcore_pop_frame): Update.
10005 (mcore_init_extra_frame_info): Update.
10006 * arch-utils.c (init_frame_pc_default): Update.
10007 * m68k-tdep.c (isi_frame_num_args): Update.
10008 (delta68_frame_num_args): Update.
10009 (news_frame_num_args): Update.
10010 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10011 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10012 (alpha_frame_chain): Update.
10013 (alpha_pop_frame): Update.
10014 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10015 (hppa_init_extra_frame_info): Update.
10016 (hppa_frame_chain): Update.
10017 (hppa_frame_chain_valid): Update.
10018 * cris-tdep.c (cris_init_extra_frame_info): Update.
10019 * avr-tdep.c (avr_init_extra_frame_info): Update.
10020 * arm-tdep.c (arm_frame_chain_valid): Update.
10021 (arm_init_extra_frame_info): Update.
10022 (arm_pop_frame): Update.
10023 * frame.c (frame_pc_unwind): Update.
10024 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10025 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10026 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10027 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10028 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10029 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10030
12cc2063
AC
100312003-03-10 Andrew Cagney <cagney@redhat.com>
10032
10033 * gdbarch.sh (gdbarch_unwind_pc): New method.
10034 * gdbarch.h, gdbarch.c: Regenerate.
10035 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10036 but use read_pc and FRAME_SAVED_PC as fall backs.
10037 (frame_saved_regs_pc_unwind): Delete function.
10038 (trad_frame_unwinder): Update.
10039 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10040 (struct frame_unwind): Update.
10041 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10042 (dummy_frame_unwind): Update.
10043 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10044 (sentinel_frame_unwinder): Update.
10045 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10046 (d10v_frame_unwind): Update.
10047 (d10v_unwind_pc): New function.
10048 (d10v_gdbarch_init): Set unwind_pc.
10049
ef840a37
AC
100502003-03-10 Andrew Cagney <cagney@redhat.com>
10051
a2ce2e56
AC
10052 * gdbarch.h: Re-generate.
10053
ef840a37
AC
10054 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10055 PC.
10056 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10057 the PC register.
10058
08f3424b
MK
100592003-03-08 Mark Kettenis <kettenis@gnu.org>
10060
10061 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10062
1248ede2
AC
100632003-03-08 Andrew Cagney <cagney@redhat.com>
10064
10065 * cli-out.c: Update copyright.
10066 (cli_out_data): Define typedef. Use instead of ui_out_data.
10067
f49bacc8
AC
100682003-03-08 Andrew Cagney <cagney@redhat.com>
10069
10070 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10071 the result.
10072
9b05f993
AC
100732003-03-07 Andrew Cagney <cagney@redhat.com>
10074
10075 * gdbarch.sh: Don't generate two macro definitions when an
10076 undefined macro taking no arguments.
10077 * gdbarch.h: Regenerate.
8ffd9b1b 10078
166f4c7b
ML
100792002-03-07 Michal Ludvig <mludvig@suse.cz>
10080
10081 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10082 (x86_64_unwind_dummy_id): New functions.
10083 (x86_64_init_abi): Register these two new functions.
10084
6d686a84
ML
100852003-03-07 Michal Ludvig <mludvig@suse.cz>
10086
10087 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10088 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10089 separate function.
10090 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10091
6314f104
AC
100922003-03-05 Andrew Cagney <cagney@redhat.com>
10093
10094 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10095 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10096 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10097 to use unwind_dummy_id when a dummy frame.
10098 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10099 predicate.
10100 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10101
ceea5145
AC
101022003-03-05 Andrew Cagney <cagney@redhat.com>
10103
10104 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10105 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10106 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10107 values.
10108
0d843116
AC
101092003-03-05 Andrew Cagney <cagney@redhat.com>
10110
10111 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10112 (struct d10v_unwind_cache): Delete field "frameless". Replace
10113 "next_addr" with "sp_offset". Add "r11_offset".
10114 (d10v_frame_unwind_cache): Update.
10115 (prologue_find_regs): Update. When "mv r11, sp", save the
10116 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10117 RN was saved in r11_offset.
10118
b2579786
AC
101192003-03-05 Andrew Cagney <cagney@redhat.com>
10120
10121 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10122 cached PC value in the next frame.
10123
218e5956
AC
101242003-03-05 Andrew Cagney <cagney@redhat.com>
10125
10126 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10127 "id_unwind_cache" with "id".
10128 (frame_id_unwind): Delete declaration.
10129 * frame.c (frame_id_unwind): Delete function.
10130 (get_prev_frame): Call the frame id unwind method directly. Store
10131 the returned next frame's ID value in NEXT_FRAME. Note that there
10132 is a problem with the wrong unwind ID being called with the wrong
10133 unwind cache.
10134
ed363b1b
DJ
101352003-03-05 Daniel Jacobowitz <drow@mvista.com>
10136
10137 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10138
fe1f4a5e
DJ
101392003-03-05 James Ingham <jingham@apple.com>
10140 Daniel Jacobowitz <drow@mvista.com>
10141
10142 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10143 (auto_cp_abi): New variable.
10144 (current_cp_abi, num_cp_abis): Make static.
10145 (CP_ABI_MAX): Define.
10146 (cp_abis): Turn into an array.
10147 (value_virtual_fn_field): Fix formatting.
10148 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10149 takes a pointer.
10150 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10151 (list_cp_abis, _initialize_cp_abi): New functions.
10152 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10153 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10154 switch_to_cp_abi. Update prototype for register_cp_abi.
10155 * Makefile.in (cp-abi.o): Update dependencies.
10156 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10157 instead of switch_to_cp_abi.
10158 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10159 register_cp_abi.
10160 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10161 register_cp_abi.
10162 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10163
e4adbba9
DJ
101642003-03-05 Daniel Jacobowitz <drow@mvista.com>
10165
10166 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10167 * dwarf2loc.c: Include "regcache.h".
10168 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10169 register_size.
10170 * Makefile.in (dwarf2loc.o): Update dependencies.
10171
91ccbfc1
TR
101722003-03-04 Theodore A. Roth <troth@openavr.org>
10173
10174 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10175 number of io registers reported by remote target is not a multiple of
10176 step.
10177
3d4e8fd2
DC
101782003-03-04 David Carlton <carlton@math.stanford.edu>
10179
10180 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10181 (lookup_symbol_aux_psymtabs): Update call to
10182 lookup_partial_symbol.
10183 (lookup_transparent_type, find_main_psymtab)
10184 (make_symbol_overload_list): Ditto.
10185
ed42d87b
KH
101862003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10187
10188 * MAINTAINERS (Write after approval): Update my email address.
10189
a0ed5532
AC
101902003-03-03 Andrew Cagney <cagney@redhat.com>
10191
10192 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10193 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10194 predicate. Replace MAX_REGISTER_RAW_SIZE.
10195 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10196 MAX_REGISTER_VIRTUAL_SIZE.
10197 * regcache.c (legacy_max_register_raw_size): New function.
10198 (legacy_max_register_virtual_size): New function.
10199 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10200 (MAX_REGISTER_RAW_SIZE): Define.
10201 (legacy_max_register_raw_size): Declare.
10202 (legacy_max_register_virtual_size): Declare.
10203 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10204 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10205 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10206 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10207 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10208 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10209 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10210 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10211 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10213 * vax-tdep.c (vax_gdbarch_init): Update.
10214 * v850-tdep.c (v850_gdbarch_init): Update.
10215 * sparc-tdep.c (sparc_gdbarch_init): Update.
10216 * sh-tdep.c (sh_gdbarch_init): Update.
10217 * s390-tdep.c (s390_gdbarch_init): Update.
10218 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10219 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10220 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10221 * mips-tdep.c (mips_gdbarch_init): Update.
10222 * mcore-tdep.c (mcore_gdbarch_init): Update.
10223 * m68k-tdep.c (m68k_gdbarch_init): Update.
10224 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10225 * ia64-tdep.c (ia64_gdbarch_init): Update.
10226 * i386-tdep.c (i386_gdbarch_init): Update.
10227 * hppa-tdep.c (hppa_gdbarch_init): Update.
10228 * h8300-tdep.c (h8300_gdbarch_init): Update.
10229 * frv-tdep.c (frv_gdbarch_init): Update.
10230 * cris-tdep.c (cris_gdbarch_init): Update.
10231 * avr-tdep.c (avr_gdbarch_init): Update.
10232 * arm-tdep.c (arm_gdbarch_init): Update.
10233 * alpha-tdep.c (alpha_gdbarch_init): Update.
10234 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10235 max_register_raw_size or max_register_virtual_size.
10236
8e437497
DC
102372003-03-03 David Carlton <carlton@math.stanford.edu>
10238
10239 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10240 SYMBOL_MATCHES_NAME, add comment.
10241 (SYMBOL_MATCHES_NATURAL_NAME): New.
10242 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10243 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10244 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10245 * symtab.c (lookup_partial_symbol): Use
10246 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10247 unhelpful comment.
10248 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10249 SYMBOL_MATCHES_NAME.
10250 Fix for PR c++/33.
10251
25120b0d
DC
102522003-03-03 David Carlton <carlton@math.stanford.edu>
10253
10254 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10255 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10256 by regexp matching against SYMBOL_NATURAL_NAME.
10257
78a11fb4
DC
102582003-03-03 David Carlton <carlton@math.stanford.edu>
10259
10260 * linespec.c (find_method): Extract code into collect_methods.
10261 (collect_methods): New.
10262
645dd519
MK
102632003-03-02 Mark Kettenis <kettenis@gnu.org>
10264
b4700d91
MK
10265 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10266 get_frame_base.
10267
645dd519
MK
10268 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10269 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10270
0aa7e1aa
SC
102712003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10272
8ffd9b1b 10273 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10274 and not regnum when summing the size of all registers up to regnum.
10275
f30ee0bc
AC
102762003-03-01 Andrew Cagney <cagney@redhat.com>
10277
10278 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10279 FRAME_INIT_SAVED_REGS.
10280 * gdbarch.h, gdbarch.c: Regenerate.
10281 * stack.c (frame_info): Update.
10282 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10283 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10284 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10285 * ns32k-tdep.c (ns32k_pop_frame): Update.
10286 * mips-tdep.c (mips_pop_frame): Update.
10287 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10288 * ia64-tdep.c (ia64_frame_chain): Update.
10289 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10290 (ia64_frameless_function_invocation): Update.
10291 (ia64_init_extra_frame_info): Update.
10292 (ia64_pop_frame_regular): Update.
10293 * frame.h (struct frame_info): Update comment.
10294 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10295 * frame.c (frame_saved_regs_register_unwind): Update.
10296 (frame_saved_regs_register_unwind): Update.
10297 (deprecated_generic_get_saved_register): Update.
10298 * cris-tdep.c: Update comment.
10299 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10300 Rename macro.
10301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10302 * x86-64-tdep.c (x86_64_init_abi): Update.
10303 * vax-tdep.c (vax_gdbarch_init): Update.
10304 * v850-tdep.c (v850_gdbarch_init): Update.
10305 * sparc-tdep.c (sparc_gdbarch_init): Update.
10306 * sh-tdep.c (sh_gdbarch_init): Update.
10307 * s390-tdep.c (s390_gdbarch_init): Update.
10308 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10309 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10310 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10311 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10312 * mips-tdep.c (mips_gdbarch_init): Update.
10313 * mcore-tdep.c (mcore_gdbarch_init): Update.
10314 * m68k-tdep.c (m68k_gdbarch_init): Update.
10315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10316 * ia64-tdep.c (ia64_gdbarch_init): Update.
10317 * i386-tdep.c (i386_gdbarch_init): Update.
10318 * frv-tdep.c (frv_gdbarch_init): Update.
10319 * avr-tdep.c (avr_gdbarch_init): Update.
10320 * arm-tdep.c (arm_gdbarch_init): Update.
10321 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10322
42fa7c0f
AC
103232003-03-01 Andrew Cagney <cagney@redhat.com>
10324
10325 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10326 option enum and switch. When no windows, set the interpreter to
10327 INTERP_CONSOLE.
8ffd9b1b 10328
49c7e338
AC
103292003-03-01 Andrew Cagney <cagney@redhat.com>
10330
10331 * main.c (captured_main): Replace magic option characters with an
10332 enum.
10333
e9582e71
AC
103342003-03-01 Andrew Cagney <cagney@redhat.com>
10335
10336 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10337 INIT_EXTRA_FRAME_INFO.
10338 * gdbarch.h, gdbarch.c: Regenerate.
10339 * arm-tdep.c: Update comments.
10340 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10341 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10342 * frame.h, avr-tdep.c: Ditto.
10343 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10344 (create_new_frame, legacy_get_prev_frame): Ditto.
10345 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10346 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10347 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10348 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10349 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10350 * v850-tdep.c (v850_gdbarch_init): Ditto.
10351 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10352 * sh-tdep.c (sh_gdbarch_init): Ditto.
10353 * s390-tdep.c (s390_gdbarch_init): Ditto.
10354 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10355 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10356 * mips-tdep.c (mips_gdbarch_init): Ditto.
10357 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10359 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10360 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10361 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10362 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10363 * frv-tdep.c (frv_gdbarch_init): Ditto.
10364 * cris-tdep.c (cris_gdbarch_init): Ditto.
10365 * avr-tdep.c (avr_gdbarch_init): Ditto.
10366 * arm-tdep.c (arm_gdbarch_init): Ditto.
10367 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10368 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10369
35cac7cf
AC
103702003-03-01 Andrew Cagney <cagney@redhat.com>
10371
10372 * gdbarch.sh (register_type): New function with predicate.
10373 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10374 * gdbarch.h, gdbarch.c: Re-generate.
10375 * arch-utils.c (generic_register_byte): Use generic_register_size.
10376 (generic_register_size): When available, use
10377 gdbarch_register_type.
10378 * regcache.c (init_regcache_descr): When available, initialize the
10379 register type array using gdbarch_register_type. If the
10380 architecture supplies gdbarch_register_type, do not use the legacy
10381 regcache layout.
10382 * d10v-tdep.c (d10v_register_type): Replace
10383 d10v_register_virtual_type.
10384 (d10v_gdbarch_init): Set register_type instead of
10385 register_virtual_type.
10386
7b83296f
AC
103872003-03-01 Andrew Cagney <cagney@redhat.com>
10388
10389 * Makefile.in (ax-gdb.o): Update dependencies.
10390 * ax-gdb.c: Include "regcache.h".
10391 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10392 * findvar.c (value_of_register): Ditto.
10393 * infcmd.c (default_print_registers_info): Ditto.
10394
eadc1c87
MK
103952003-03-01 Mark Kettenis <kettenis@gnu.org>
10396
10397 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10398 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10399
14143612
MK
104002003-03-01 Mark Kettenis <kettenis@gnu.org>
10401
10402 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10403 of STREQ.
10404
a55cc764
DJ
104052003-02-28 Daniel Jacobowitz <drow@mvista.com>
10406
10407 * Makefile.in (dwarf2loc.o): Update dependencies.
10408 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10409 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10410 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10411 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10412 (locexpr_tracepoint_var_ref): New function.
10413 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10414
08a617da
AC
104152003-02-28 Andrew Cagney <cagney@redhat.com>
10416
10417 * regcache.c (register_size): New function.
10418 * regcache.h (register_size): Declare
10419 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10420 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10421
4224873a
DC
104222003-02-28 David Carlton <carlton@math.stanford.edu>
10423
10424 * linespec.c (decode_compound): Extract code into find_method.
10425 (find_method): New.
10426
ccdc5d7f
JB
104272003-02-28 J. Brobecker <brobecker@gnat.com>
10428
10429 * Makefile.in: Add rules to build and link in observer.o.
10430
974e8ced
JB
104312003-02-27 J. Brobecker <brobecker@gnat.com>
10432
10433 * observer.c: Minor comments edits.
10434
7a28f973
JB
104352003-02-27 J. Brobecker <brobecker@gnat.com>
10436
10437 * observer.h, observer.c: New file.
10438
27cddce2
AC
104392003-02-27 Andrew Cagney <cagney@redhat.com>
10440
10441 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10442
b94a41a1
SC
104432003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10444
10445 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10446 (M6812_OP_STS_EXT): Likewise.
10447 (m6811_prologue): Use the above to recognize prologue.
10448 (m6812_prologue): Likewise.
10449
c8be8951
DC
104502003-02-27 David Carlton <carlton@math.stanford.edu>
10451
10452 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10453 SYMBOL_PRINT_NAME.
10454 (compare_psymbols): Ditto.
10455 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10456
d05bb1fc
MS
104572003-02-27 Michael Snyder <msnyder@redhat.com>
10458
4e845cd3
MS
10459 * f-lang.c (build_fortran_types): New function.
10460 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10461 * doublest.c (extract_floating): Fix warning text.
10462
f3824013
AC
104632003-02-27 Andrew Cagney <cagney@redhat.com>
10464
10465 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10466 predicate. Replaces PUSH_DUMMY_FRAME.
10467 * gdbarch.h, gdbarch.c: Regnerate.
10468 * valops.c (hand_function_call): Update. Call
10469 generic_push_dummy_frame directly.
10470 * vax-tdep.c (vax_gdbarch_init): Update.
10471 * sparc-tdep.c (sparc_gdbarch_init): Update.
10472 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10473 * m68k-tdep.c (m68k_gdbarch_init): Update.
10474 * hppa-tdep.c (hppa_gdbarch_init): Update.
10475 * alpha-tdep.c (alpha_gdbarch_init): Update.
10476 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10477 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10478 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10479 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10480 push_dummy_frame to generic_push_dummy_frame.
10481 * v850-tdep.c (v850_gdbarch_init): Ditto.
10482 * sh-tdep.c (sh_gdbarch_init): Ditto.
10483 * s390-tdep.c (s390_gdbarch_init): Ditto.
10484 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10485 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10486 * mips-tdep.c (mips_gdbarch_init): Ditto.
10487 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10489 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10490 * i386-tdep.c (i386_gdbarch_init): Ditto.
10491 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10492 * frv-tdep.c (frv_gdbarch_init): Ditto.
10493 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10494 * cris-tdep.c (cris_gdbarch_init): Ditto.
10495 * avr-tdep.c (avr_gdbarch_init): Ditto.
10496 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10497
ad188201
KB
104982003-02-26 Kevin Buettner <kevinb@redhat.com>
10499
10500 * mips-tdep.c (show_mips_abi): New function.
10501 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10502 command ``show mips abi''.
10503
6b37567a 105042003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10505
6b37567a 10506 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10507 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10508 more sline entries have been seen for the function.
10509
d3e0a5bf
MC
105102003-02-26 Michael Chastain <mec@shout.net>
10511
10512 * configure: Regenerate with autoconf 000227.
10513
18972eea
MC
105142003-02-26 Michael Chastain <mec@shout.net>
10515
10516 Close PR build/660.
10517 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10518 for old libc5/glibc.
10519 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10520
0bbde931
KW
105212003-02-26 Kris Warkentin <kewarken@qnx.com>
10522
10523 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10524 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10525
27ca5dad
MC
105262003-02-26 Michael Chastain <mec@shout.net>
10527
10528 * configure.in: New variable HAVE_UINTPTR_T.
10529 * configure, config.in: Regenerated.
10530
6f88d630
DJ
105312003-02-26 Daniel Jacobowitz <drow@mvista.com>
10532
10533 Fix PR build/1097.
10534 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10535
b14185ce
AC
105362003-02-25 Andrew Cagney <cagney@redhat.com>
10537
10538 * frame.c (get_prev_frame): Add comment on check for
10539 inside_entry_func. Only check for inside_entry_file when not a
10540 dummy and not a sentinel. Check that the new frame is not inner
10541 to the old frame.
10542
ac2bd0a9
AC
105432003-02-25 Andrew Cagney <cagney@redhat.com>
10544
10545 * frame.c (frame_debug): New variable.
10546 (_initialize_frame): Add "set/show debug frame" command.
10547 (get_prev_frame): When frame_debug, print reason why unwind
10548 failed.
10549
b18a0fd2
MC
105502003-02-25 Michael Chastain <mec@shout.net>
10551
10552 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10553 to avoid uintptr_t definition problems.
10554
22abf04a
DC
105552003-02-25 David Carlton <carlton@math.stanford.edu>
10556
10557 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10558 (SYMBOL_LINKAGE_NAME): Ditto.
10559 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10560 SYMBOL_LINKAGE_NAME.
10561 (struct general_symbol_info): Expand comment.
10562 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10563 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10564 (SYMBOL_MATCHES_REGEXP): Ditto.
10565 * symtab.c (symbol_natural_name): New function.
10566 * objfiles.h: Replace all uses of SYMBOL_NAME by
10567 DEPRECATED_SYMBOL_NAME.
10568 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10569 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10570 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10571 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10572 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10573 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10574 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10575 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10576 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10577 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10578 * ada-exp.y: Ditto.
10579 * ada-exp.y: Update copyright.
10580 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10581 * cp-valprint.c: Ditto.
10582
1a5848f6
JJ
105832003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10584
10585 * infptrace.c (detach): Do not flag error if ptrace detach fails
10586 and errno is set to ESRCH.
10587
7343d46a
AC
105882003-02-24 Andrew Cagney <cagney@redhat.com>
10589
10590 * infptrace.c (udot_info): Change type of udot_off to long. Use
10591 paddr when printing udot_off's value.
10592
49fa1dc2
DC
105932003-02-24 David Carlton <carlton@math.stanford.edu>
10594
10595 * symtab.c (make_symbol_overload_list): Only read in partial
10596 symtabs containing a matching partial symbol.
10597
0fe19209
DC
105982003-02-24 David Carlton <carlton@math.stanford.edu>
10599
10600 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10601 do the comparison, not strcmp.
10602 * symfile.c (compare_psymbols): Ditto.
10603 * defs.h: Declare strcmp_iw_ordered.
10604 * utils.c (strcmp_iw_ordered): New function.
10605
8e3ee7b5
JB
106062003-02-24 Jim Blandy <jimb@redhat.com>
10607
10608 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10609 support, shared libs): Remove my name from here, to better reflect
10610 reality.
10611
7df1a324
KW
106122003-02-24 Kris Warkentin <kewarken@qnx.com>
10613
10614 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10615 (target_ops): Add to_have_continuable_watchpoint.
10616 * target.c (update_current_target): Add INHERIT line for
10617 to_have_continuable_watchpoint.
10618 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10619 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10620 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10621 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10622
d1c76907
EZ
106232003-02-24 Elena Zannoni <ezannoni@redhat.com>
10624
10625 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10626 maintainership.
10627
2610b0bf
KW
106282003-02-24 Kris Warkentin <kewarken@qnx.com>
10629
f46169db
KW
10630 * solib.c (solib_open): Call target defined search function after
10631 failing with solib-search-path.
10632 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10633 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10634
9a3c34fe
KW
106352003-02-24 Kris Warkentin <kewarken@qnx.com>
10636
f46169db 10637 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10638
2417dd25
SC
106392003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10640
10641 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10642
b631436b
SC
106432003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10644
10645 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10646 (m68hc11_add_reggroups): New function.
10647 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10648 (m68hc11_gdbarch_init): Install the reggroups.
10649 (_initialize_m68hc11_tdep): Initialize them.
10650
0aa8c1e4
JW
106512003-02-21 James E Wilson <wilson@tuliptree.org>
10652
10653 * MAINTAINERS: Update my email address.
10654
50ceaba5
DC
106552003-02-21 David Carlton <carlton@math.stanford.edu>
10656
10657 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10658
4c2df51b
DJ
106592003-02-21 Daniel Jacobowitz <drow@mvista.com>
10660
10661 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10662 * symtab.h: Add opaque declarations of struct axs_value and
10663 struct agent_expr.
10664 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10665 (struct location_funcs): New type.
10666 (struct symbol): Add "loc" to aux_value.
10667 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10668 * dwarf2read.c: Include "dwarf2expr.h".
10669 (dwarf2_symbol_mark_computed): New function.
10670 (read_func_scope): Use it.
10671 (var_decode_location): New function.
10672 (new_symbol): Use it.
10673 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10674
10675 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10676 (dwarf2expr_h, dwarf2loc_h): New variables.
10677 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10678 (dwarf2expr.o, dwarf2loc.o): New rules.
10679 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10680 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10681 LOC_COMPUTED_ARG.
10682 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10683 * m2-exp.y (yylex): Likewise.
10684 * printcmd.c (address_info, print_frame_args): Likewise.
10685 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10686 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10687 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10688 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10689 * symtab.c (lookup_block_symbol): Likewise.
10690
5784d15e
AF
106912003-02-20 Adam Fedor <fedor@gnu.org>
10692
10693 * symtab.h: Remove objc_specific struct
10694 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10695 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10696 Have language_objc use cplus_specific struct.
10697
d4cad8db
TT
106982003-02-20 Tom Tromey <tromey@redhat.com>
10699
10700 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10701 TYPE_NAME, when printing a String value. PR java/1075.
10702
2f9a90b4
AF
107032003-02-20 Adam Fedor <fedor@gnu.org>
10704
d38074a8 10705 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10706 * objc-lang.c (find_methods): Make static.
2f9a90b4 10707
6f17862b
CF
107082003-02-20 Christopher Faylor <cgf@redhat.com>
10709
10710 * win32-nat.c (get_image_name): Check return value from
10711 ReadProcessMemory.
10712 (child_xfer_memory): Ditto.
10713
715d1656
AO
107142003-02-20 Alexandre Oliva <aoliva@redhat.com>
10715
10716 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10717 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10718 '${exec_prefix}' (in addition to the expansion thereof) as
10719 relocatable.
10720 * configure: Rebuilt.
10721
b1262a02
DC
107222003-02-20 David Carlton <carlton@math.stanford.edu>
10723
10724 * symtab.c (search_symbols): Revert the search_symbols part of my
10725 2002-12-23 patch. Add comment.
10726
7134143f
DJ
107272002-02-20 Daniel Jacobowitz <drow@mvista.com>
10728
10729 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10730 * dbxread.c (elfstab_build_psymtabs): Don't call
10731 install_minimal_symbols.
10732 (stabsect_build_psymtabs): Likewise.
10733 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10734 earlier.
10735 * somread.c (som_symfile_read): Call install_minimal_symbols
10736 and do_cleanups earlier.
10737 * nlmread.c (nlm_symfile_read): Likewise.
10738 * mdebugread.c (elfmdebug_build_psymtabs): Call
10739 install_minimal_symbols and make appropriate cleanups.
10740
cf466558
KB
107412003-02-20 Kevin Buettner <kevinb@redhat.com>
10742
10743 * solib.c (reload_shared_libraries): New function.
10744 (_initialize_solib): Add callbacks for ``set solib-search-path''
10745 and ``set solib-absolute-prefix''.
10746
de5ad195
DC
107472003-02-20 David Carlton <carlton@math.stanford.edu>
10748
10749 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10750 expand comment.
10751 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10752 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10753 * ada-typeprint.c (ada_typedef_print): Ditto.
10754 * ax-gdb.c (gen_var_ref): Ditto.
10755 * breakpoint.c (print_one_breakpoint): Ditto.
10756 * buildsym.c (finish_block): Ditto.
10757 * c-valprint.c (c_val_print): Ditto.
10758 * expprint.c (print_subexp): Ditto.
10759 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10760 * infcmd.c (jump_command): Ditto.
10761 * linespec.c (decode_line_2, decode_compound): Ditto.
10762 * maint.c (maintenance_translate_address): Ditto.
10763 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10764 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10765 Ditto.
8ffd9b1b
AJ
10766 * p-valprint.c (pascal_val_print): Ditto.
10767 * stabsread.c (define_symbol): Ditto.
de5ad195 10768 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10769 (print_frame_arg_vars, return_command): Ditto.
10770 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10771 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10772 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10773 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10774 (rbreak_command): Ditto.
10775 * tracepoint.c (tracepoints_info): Ditto.
10776 * typeprint.c (typedef_print): Ditto.
10777 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10778 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10779 * ada-typeprint.c: Update Copyright.
10780 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10781 * tracepoint.c, cli/cli-cmds.c: Ditto.
10782
f796e4be
KB
107832003-02-20 Kevin Buettner <kevinb@redhat.com>
10784
10785 * frame.c (generic_unwind_get_saved_register): Make non-static.
10786 * frame.h (generic_unwind_get_saved_register): Declare.
10787 * mips-tdep.c (read_next_frame_reg): Fetch register from
10788 current regcache when frame is NULL.
10789 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10790 that must be NULL.
10791 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10792 instead of frame_register_unwind().
10793
836cc9f4
AC
107942003-02-20 Andrew Cagney <ac131313@redhat.com>
10795
10796 * remote-sim.c (gdbsim_insert_breakpoint)
10797 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10798 code.
10799
501eef12
AC
108002003-02-20 Andrew Cagney <ac131313@redhat.com>
10801
10802 * remote.c (_initialize_remote): Add commands "set/show remote
10803 hardware-watchpoint-limit" and "set/show remote
10804 hardware-breakpoint-limit".
10805 (remote_hw_watchpoint_limit): Initialize to -1.
10806 (remote_hw_breakpoint_limit): Ditto.
10807 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10808
1b6bc7e0
CF
108092003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10810
10811 * coff-pe-read.c: New file - support reading of minimal symbols from a
10812 portable executable using the export table.
10813 * coff-pe-read.h: New file.
10814 * coffread.c: Include coff-pe-read.h.
10815 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10816 debugging symbols found.
10817 * Makefile.in (SFILES): Add coff-pe-read.o.
10818 (coff_pe_read_h): Define.
10819 (COMMON_OBS): Add coff-pe-read.o.
10820 (coffread.o): Add coff_pe_read_h dependency.
10821 (coff-pe-read.o): New target.
10822
fe898f56
DC
108232003-02-19 David Carlton <carlton@math.stanford.edu>
10824
10825 * Makefile.in (SFILES): Add block.c.
10826 (block_h): New.
10827 (COMMON_OBS): Add block.o.
10828 (block.o): New.
10829 (x86-64-tdep.o): Add $(block_h).
10830 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10831 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10832 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10833 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10834 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10835 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10836 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10837 * value.h: Add opaque declaration for struct block.
10838 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10839 * ada-lang.h: Ditto.
10840 * x86-64-tdep.c: #include "block.h"
10841 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10842 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10843 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10844 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10845 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10846 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10847 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10848 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10849 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10850 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10851 * symtab.c (block_function): Ditto.
10852 (contained_in): Ditto.
10853 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10854 block.h. Add opaque declaration for struct block.
10855 * symtab.h: Move block_function and contained_in declarations to
10856 block.h. Add opaque declarations for struct block, struct
10857 blockvector.
10858 (struct block): Move to block.h.
10859 (struct blockvector): Ditto.
10860 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10861 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10862 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10863 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10864 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10865 Ditto.
10866 * block.c: New file.
10867 * block.h: New file.
10868
173345b5
TR
108692003-02-19 Theodore A. Roth <troth@openavr.org>
10870
10871 * avr-tdep.c (avr_extract_return_value): Remove function.
10872 (avr_store_return_value): Remove function.
10873 (avr_extract_struct_value_address): Remove function.
10874 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10875
338ef23d
AC
108762003-02-19 Andrew Cagney <ac131313@redhat.com>
10877
10878 * rs6000-tdep.c: Include "gdb_assert.h".
10879 (registers_e500): Add "acc" and "spefscr".
10880 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10881 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10882 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10883 really is "r0".
10884 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10885
5412f5f3
KS
108862003-02-18 Keith Seitz <keiths@redhat.com>
10887
10888 * Makefile.in: Add gdbtk-interps.c.
10889
881324eb
KB
108902003-02-18 Kevin Buettner <kevinb@redhat.com>
10891
10892 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10893 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10894
6a2f5abf
AC
108952003-02-18 Andrew Cagney <cagney@redhat.com>
10896
10897 * symtab.h (struct objfile): Add opaque declaration.
10898
54c7009d
EZ
108992003-02-18 Elena Zannoni <ezannoni@redhat.com>
10900
10901 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10902 * dbxread.c (process_one_symbol): Use last_function_start rather
10903 than function_start_offset to find the real beginning of the
10904 current function. The latter is just the text section offset on
10905 some systems, the former is always the real function start.
54c7009d 10906
7ee6d7eb
AC
109072003-02-17 Andrew Cagney <cagney@redhat.com>
10908
10909 * configure.in: Revert ${target} != ${host}.
10910
2846da9b
AC
109112003-02-17 Andrew Cagney <ac131313@redhat.com>
10912
10913 * configure.in (Makefile): Use the test ${target} != ${host},
10914 instead of the absence of the "nm.h" file, to determine of the
10915 configuration non-native.
10916 * configure: Regenerate.
8ffd9b1b 10917
3b27aeea
EZ
109182003-02-14 Elena Zannoni <ezannoni@redhat.com>
10919
fbe586ae 10920 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10921
10922 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10923 conditionalize tui_active test.
10924 (lookup_cmd_1): Ditto.
10925
b0b1c2c0
MK
109262003-02-14 Mark Kettenis <kettenis@gnu.org>
10927
10928 * configure.in: Add check for _etext.
10929 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10930 available.
10931 * config.in, configure: regenerated.
10932
8f05cde5
DJ
109332003-02-14 Daniel Jacobowitz <drow@mvista.com>
10934
10935 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10936
021e7609
AC
109372003-02-14 Andrew Cagney <ac131313@redhat.com>
10938
10939 * main.c (tui_version): Delete variable.
10940 (captured_main): When --tui, set interpreter_p to "tui" instead of
10941 enabling tui_version.
10942 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10943 tui_version.
10944 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10945 * cli/cli-cmds.c (disassemble_command): Ditto.
10946 * defs.h (tui_version): Delete declaration.
10947 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10948 (tui-interp.o): Add rules.
10949 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10950
e325dcec
CF
109512003-02-14 Christopher Faylor <cgf@redhat.com>
10952
36ffb041 10953 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10954 just-loaded dll.
10955
c4f90d87
JM
109562003-02-12 Jason Molenda (jmolenda@apple.com)
10957
fbe586ae
RH
10958 * symmisc.c (print_objfile_statistics): Include information about
10959 the number of psymtabs and symtabs in each object file.
c4f90d87 10960
e46e5ccd
KS
109612003-02-13 Keith R Seitz <keiths@redhat.com>
10962
10963 * main.h (struct captured_main_args): Add interpreter_p.
10964 * main.c (captured_main): Initialize interpreter_p from context.
10965 * gdb.c (main): Set interpreter_p argument.
10966 * Makefile.in (gdb.o): Add dependency for interps.h.
10967
fe97fe9c
AC
109682003-02-12 Andrew Cagney <ac131313@redhat.com>
10969
10970 * event-top.c (cli_command_loop): Delete declaration.
10971 (_initialize_event_loop): Delete function setting event_loop_hook.
10972 * event-top.h (cli_command_loop): Declare. Update copyright.
10973 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10974 * interps.c (current_interp_command_loop): When event_loop_p, call
10975 cli_command_loop.
10976
1cdac4ef
AC
109772003-02-12 Andrew Cagney <ac131313@redhat.com>
10978
10979 * interps.h (interp_command_loop_ftype): Change return type to
10980 void.
10981
48037ead
ML
109822003-02-12 Michal Ludvig <mludvig@suse.cz>
10983
10984 * x86-64-tdep.c (x86_64_extract_return_value)
10985 (x86_64_store_return_value): Use regcache instead of regbuf.
10986 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10987 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10988
033afc63
AC
109892003-02-11 Andrew Cagney <ac131313@redhat.com>
10990
10991 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10992 * aclocal.m4: Regenerate.
10993 * configure: Regenerate.
10994
10995 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10996 TCL_LD_SEARCH_FLAGS.
10997
40d02bca
ML
109982003-02-10 Michal Ludvig <mludvig@suse.cz>
10999
11000 * dwarf2cfi.c: Reindented.
11001
11308a41
AC
110022003-02-09 Andrew Cagney <ac131313@redhat.com>
11003
11004 * interps.c (clear_interpreter_hooks): Convert function definition
11005 to ISO C.
11006
e1c1c0f6
DC
110072003-02-07 David Carlton <carlton@math.stanford.edu>
11008
11009 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11010
ab5d3da6
KB
110112003-02-07 Kevin Buettner <kevinb@redhat.com>
11012
11013 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11014 (struct type): ...to here.
11015 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11016 field.
11017 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11018 (replace_type): Set length on all type variants for a given type.
11019
b8a92b82
AC
110202003-02-07 Andrew Cagney <ac131313@redhat.com>
11021
11022 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11023 <sys/stat.h>.
11024 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11025
5cb316ef
AC
110262003-02-06 Andrew Cagney <ac131313@redhat.com>
11027
2555fe1a
AC
11028 * Makefile.in (symm-nat.o): Update dependencies.
11029 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11030 (lynx-nat.o, ia64-linux-nat.): Ditto.
11031 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11032 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11033 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11034
44270758
AC
11035 * Makefile.in (inflow_h): Define.
11036 (procfs.o, inflow.o, procfs.o): Update dependencies.
11037 * inftarg.c (child_stop): Delete extern declaration of
11038 inferior_process_group. Include "inflow.h".
11039 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11040 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11041 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11042 (our_process_group, inferior_process_group): Extern declarations.
11043
df8f7274
AC
11044 * procfs.c: Include "gdb_assert.h".
11045
5cb316ef
AC
11046 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11047 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11048 * jv-typeprint.c (java_type_print_base): Ditto.
11049 * typeprint.c (typedef_print): Eliminate STREQ.
11050 * cli/cli-script.c (define_command, define_command): Ditto.
11051 * main.c (captured_main): Ditto.
11052 * values.c (lookup_internalvar): Ditto.
11053 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11054 within `if' conditional.
11055 * linespec.c (decode_line_2): Ditto.
11056 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11057 (bfd_openw_with_cleanup): Ditto.
11058
2a28ccea
MK
110592003-02-07 Mark Kettenis <kettenis@gnu.org>
11060
11061 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11062 legacy_extract_return_value and store_return_value to
11063 legacy_return_value.
11064
786b8124
CF
110652003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11066
11067 * win32-nat.c (get_relocated_section_addrs): New function. Find
11068 section load addresses for symbol handling in relocated DLLs.
11069 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11070
b871e4ec
FF
110712003-02-05 Fred Fish <fnf@intrinsity.com>
11072
11073 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11074 '=' and '!='.
11075 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11076 with '&' and '=='.
11077 (angel_RDI_info): Ditto.
11078 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11079 with '&' and '!='.
11080 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11081
4389a95a 110822003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11083 Keith Seitz <keiths@redhat.com>
11084 Elena Zannoni <ezannoni@redhat.com>
11085 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11086
11087 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11088 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11089 (SUBDIR_MI_OBS): Add "mi-interp.o".
11090 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11091 (SFILES): Add "interps.c".
11092 (COMMON_OBS): Add "interps.o".
11093 (interps_h, mi_main_h): Define.
11094 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11095 (mi-main.o, main.o, event-top.o): Update dependencies.
11096 * cli/cli-interp.c: New file.
11097 * interps.h, interps.c: New files.
11098 * top.c: (gdb_init): Don't install the default interpreter, handed
11099 by captured_main.
11100 * main.c: Include "interps.h".
11101 (interpreter_p): Note that it should malloc'ed.
11102 (captured_command_loop): Call current_interp_command_loop.
11103 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11104 xfree and xstrdup when updating interpreter_p. Install the
11105 default interpreter. Add hack to stop mi1's copyright notice
11106 being encoded.
11107 * event-top.h (gdb_setup_readline): Declare.
11108 (gdb_disable_readline): Declare.
11109 * event-top.c: Include "interps.h".
11110 (display_gdb_prompt): Call current_interp_display_prompt_p.
11111 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11112 gdb_stdlog, and gdb_stdtarg.
11113 (_initialize_event_loop): Don't call gdb_setup_readline.
11114 * cli-out.c (cli_out_set_stream): New function.
11115 * cli-out.h (cli_out_set_stream): Declare.
11116
ff3b5810
MK
111172003-02-06 Mark Kettenis <kettenis@gnu.org>
11118
11119 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11120 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11121 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11122 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11123 config/i386/i386v42mp.mt: Removed.
11124
5b729aa5
MK
111252003-02-05 Mark Kettenis <kettenis@gnu.org>
11126
11127 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11128 GDB_OSABI_SOLARIS.
11129
8cc15142
MC
111302003-02-05 Michael Chastain <mec@shout.net>
11131
11132 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11133 2.12.1 and earlier versions.
11134
5aa5d4b9
AC
111352003-02-05 Andrew Cagney <ac131313@redhat.com>
11136
11137 Remove orphaned hosts, targets and files.
11138 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11139 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11140 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11141 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11142 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11143 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11144 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11145 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11146 * config/sparc/tm-sp64sim.h: Delete.
11147 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11148 hosts.
11149 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11150 mips*-dec-mach3* targets.
11151
b68767c1
MC
111522003-02-04 Michael Chastain <mec@shout.net>
11153
11154 * NEWS: Fix typo: sepcifying -> specifying.
11155
5ae7ca1d
MC
111562003-02-04 Michael Chastain <mec@shout.net>
11157
11158 * dwarfread.c: Add documentation on the state of dwarf-1,
11159 looking towards obsoletion.
11160
d08a4280
MC
111612003-02-03 Michael Chastain <mec@shout.net>
11162
11163 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11164 gdb/testsuite/gdb.c++/pr-1023.exp.
11165
e9be73e4
AC
111662003-02-04 Andrew Cagney <ac131313@redhat.com>
11167
11168 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11169 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11170
11171 * utils.c (init_page_info): Delete reference to MPW in comments.
11172 * main.c (captured_main): Delete #ifdef MPW.
11173
05d57f6f
AC
111742003-02-04 Andrew Cagney <ac131313@redhat.com>
11175
8ffd9b1b 11176 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11177 * monitor.c (monitor_expect): Obsolete reference to m32r.
11178 * configure.tgt: Mark m32r-*-elf* as obsolete.
11179 * MAINTAINERS: Mark m32k as obsolete.
11180 * m32r-rom.c: Obsolete file.
11181 * config/m32r/m32r.mt: Obsolete file.
11182 * config/m32r/tm-m32r.h: Obsolete file.
11183 * m32r-stub.c: Obsolete file.
11184 * m32r-tdep.c: Obsolete file.
11185
8b0e5691
AC
111862003-02-04 Andrew Cagney <ac131313@redhat.com>
11187
11188 * NEWS: Mention that the z8k-zilog-none is obsolete.
11189 * MAINTAINERS: Mark z8k as obsolete.
11190 * configure.tgt: Obsolete the z8k-*-coff* target.
11191 * config/z8k/z8k.mt: Obsolete file.
11192 * config/z8k/tm-z8k.h: Obsolete file.
11193 * z8k-tdep.c: Obsolete file.
11194
67f16606
AC
111952003-02-04 Andrew Cagney <ac131313@redhat.com>
11196
11197 * NEWS: Mention that the mn10200-elf is obsolete.
11198 * configure.tgt: Obsolete mn10200-*-* target.
11199 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11200 mention that the mn10200 is obsolete.
11201 * breakpoint.h: Ditto.
11202 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11203 * config/mn10200/mn10200.mt: Obsolete file.
11204 * config/mn10200/tm-mn10200.h: Obsolete file.
11205 * mn10200-tdep.c: Obsolete file.
11206
fd2299bd
AC
112072003-02-04 Andrew Cagney <ac131313@redhat.com>
11208
11209 * MAINTAINERS: Mark h8500 as obsolete.
11210 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11211 * findvar.c (value_from_register): Ditto.
11212 * h8500-tdep.c: Mark file as obsolete.
11213 * config/h8500/h8500.mt: Ditto.
11214 * config/h8500/tm-h8500.h: Ditto.
11215 * NEWS: Mention that h8500 is obsolete.
11216
eb9a305d
DC
112172003-02-04 David Carlton <carlton@math.stanford.edu>
11218
11219 * objfiles.c (allocate_objfile): Always set name. Add comment at
11220 start of function.
11221 * jv-lang.c (get_dynamics_objfile): Add comment.
11222
406fc7fb
DC
112232003-02-04 David Carlton <carlton@math.stanford.edu>
11224
11225 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11226 * printcmd.c (build_address_symbolic): Replace uses of
11227 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11228 SYMBOL_NAME, and asm_demangle.
11229 Update copyright.
11230
93d91629
DC
112312003-02-04 David Carlton <carlton@math.stanford.edu>
11232
11233 * linespec.c (decode_compound): Extract code into
11234 lookup_prefix_sym.
11235 (lookup_prefix_sym): New function.
11236
1c5cb38e
DC
112372003-02-04 David Carlton <carlton@math.stanford.edu>
11238
11239 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11240 FLOAT_COERCION_BADNESS.
11241 * gdbtypes.c (rank_one_type): Replace all uses of
11242 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11243
0cf824c9
JB
112442003-02-04 Jim Blandy <jimb@redhat.com>
11245
11246 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11247 section, let dwarf_macinfo_section point to it, not
11248 dwarf_loc_section.
11249
a2d356b0
DJ
112502003-02-04 Daniel Jacobowitz <drow@mvista.com>
11251
11252 Pointed out by Anton Blanchard <anton@samba.org>.
11253 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11254 (ppc_linux_at_sigtramp_return_path): Use it.
11255
2de7ced7
DJ
112562003-02-04 Daniel Jacobowitz <drow@mvista.com>
11257
11258 * defs.h (streq): Add prototype.
11259 * utils.c (streq): New function.
11260
11261 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11262 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11263 * mdebugread.c (new_symbol): Likewise.
11264 * stabsread.c (define_symbol): Likewise.
11265 * coffread.c (process_coff_symbol): Likewise.
11266 * dwarfread.c (new_symbol): Likewise.
11267
11268 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11269 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11270 here.
11271 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11272 SYMBOL_INIT_DEMANGLED_NAME.
11273 * objfiles.c: Include "hashtab.h".
11274 (allocate_objfile): Call htab_set_functions_ex for the
11275 demangled_names_hash.
11276 (free_objfile): Call htab_delete for the demangled_names_hash.
11277 * objfiles.h (struct htab): Add declaration.
11278 (struct objfile): Add demangled_names_hash.
11279 * symfile.c: Include "hashtab.h".
11280 (reread_symbols): Call htab_delete for the demangled_names_hash.
11281 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11282 SYMBOL_NAME in the bcache.
11283 * symtab.c: Include "hashtab.h". Update comments.
11284 (create_demangled_names_hash, symbol_set_names): New functions.
11285 (symbol_find_demangled_name): New function, broken out from
11286 symbol_init_demangled_names.
11287 (symbol_init_demangled_names): Use it.
11288 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11289 (SYMBOL_SET_NAMES): New macro.
11290 (symbol_set_names): Add prototype.
11291
15831452
JB
112922003-02-03 Jim Blandy <jimb@redhat.com>
11293
11294 Use a single, consistent representation for an empty minimal
11295 symbol table in an objfile.
11296 * objfiles.c (terminate_minimal_symbol_table): New function.
11297 (allocate_objfile): Call it.
11298 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11299 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11300 non-NULL.
15831452
JB
11301 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11302 objfile has minimal symbols, compare minimal_symbol_count to zero,
11303 instead of comparing msymbols with NULL.
11304 * objfiles.c (have_minimal_symbols): Same.
11305 * solib-sunos.c (solib_add_common_symbols): Call
11306 terminate_minimal_symbol_table.
11307 * symfile.c (reread_symbols): Same.
8ffd9b1b 11308
ffc65945
KB
113092003-02-03 Kevin Buettner <kevinb@redhat.com>
11310
11311 * s390-tdep.c (s390_address_class_type_flags)
11312 (s390_address_class_type_flags_to_name)
11313 (s390_address_class_name_to_type_flags): New functions.
11314 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11315 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11316
f211c6d4
MS
113172003-02-03 Michael Snyder <msnyder@redhat.com>
11318
11319 * arm-tdep.c: Fix spell-o in comment.
11320
659b0389
ML
113212003-02-03 Michal Ludvig <mludvig@suse.cz>
11322
11323 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11324 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11325 error messages to contain BFD filename.
659b0389 11326
3b31d625
EZ
113272003-02-02 Elena Zannoni <ezannoni@redhat.com>
11328
997b089a 11329 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11330 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11331 (do_mixed_source_and_assembly): Use
11332 make_cleanup_ui_out_tuple_begin_end and
11333 make_cleanup_ui_out_tuple_begin_end.
11334 (do_mixed_source_and_assembly): Ditto.
11335 * thread.c (do_captured_list_thread_ids): Ditto.
11336 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11337 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11338 ui_out_tuple_end): Delete prototypes.
11339 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11340 ui_out_list_end, ui_out_tuple_end): Delete.
11341
11342 From Kevin Buettner <kevinb@redhat.com>:
11343 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11344 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11345 (do_cleanup_table_end): New functions.
11346 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11347 Use cleanups to invoke_ui_out_tuple_end().
11348 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11349 * cli/cli-setshow.c (cmd_show_list): Use
11350 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11351
5b181d62
AC
113522003-02-02 Andrew Cagney <ac131313@redhat.com>
11353
11354 * frame.c (frame_unwind_register): New function.
11355 (frame_unwind_unsigned_register): Use.
11356 (frame_unwind_signed_register): Use.
11357 (frame_read_register): New function.
11358 * frame.h (frame_unwind_register): Declare.
11359 (frame_read_register): Declare.
11360
11361 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11362 and frame_unwind_register instead of read_memory, write_register
11363 and deprecated_write_register_bytes.
11364
5f601589
AC
113652003-02-02 Andrew Cagney <ac131313@redhat.com>
11366
11367 * frame.h: Note that namelen can be negative.
11368 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11369 NAME's length.
11370
11371 * NEWS: Mention that the d10v's `regs' command is deprecated.
11372 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11373 (d10v_print_registers_info): New function.
11374 (show_regs): Call d10v_print_registers_info.
11375 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11376
6a3fe0a4
MK
113772003-02-02 Mark Kettenis <kettenis@gnu.org>
11378
11379 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11380 lost in the previous patch.
11381
075559bc
AC
113822003-02-01 Andrew Cagney <ac131313@redhat.com>
11383
11384 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11385 * stack.c (print_frame_info_base): Output complete FRAME tuple
11386 for synthesized frames.
075559bc 11387
6789195b
AC
113882003-02-02 Andrew Cagney <ac131313@redhat.com>
11389
11390 * mips-nat.c (zerobuf): Delete.
11391 (fetch_inferior_registers): Alloc local zerobuf.
11392 (fetch_core_registers): Alloc local zerobuf.
11393 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11394 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11395 * thread-db.c (thread_db_store_registers): Ditto.
11396 * sh-tdep.c (sh_do_register): Ditto.
11397 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11398 * remote-sim.c (gdbsim_store_register): Ditto.
11399 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11400 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11401 * monitor.c (monitor_supply_register): Ditto.
11402 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11403 * mips-nat.c (fetch_inferior_registers): Ditto.
11404 * m68klinux-nat.c (fetch_register): Ditto.
11405 * lynx-nat.c (fetch_inferior_registers): Ditto.
11406 (fetch_inferior_registers): Ditto.
11407 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11408 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11409 (hpux_thread_store_registers): Ditto.
11410 * hppah-nat.c (fetch_register): Ditto.
11411 * hppab-nat.c (fetch_register): Ditto.
11412 * hppa-tdep.c (pa_register_look_aside): Ditto.
11413 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11414 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11415
e669114a
AC
114162003-02-01 Andrew Cagney <ac131313@redhat.com>
11417
11418 * gdbarch.sh: Explictly specify all method levels. When a
11419 variable with an empty level, provide a non-multi-arch default.
11420 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11421 * gdbarch.h: Re-generate.
11422 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11423 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11424
9a043c1d
AC
114252003-02-01 Andrew Cagney <ac131313@redhat.com>
11426
11427 * defs.h (host_pointer_to_address): Delete declaration.
11428 (address_to_host_pointer): Delete declaration.
11429 * utils.c (host_pointer_to_address): Delete function.
11430 (address_to_host_pointer): Delete function.
11431 * procfs.c (procfs_address_to_host_pointer): New function.
11432 * procfs.c (proc_set_watchpoint): Use.
11433 (procfs_can_use_hw_breakpoint): Update comments.
11434 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11435 (som_solib_add): Use.
11436 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11437 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11438
7ca9f392
AC
114392003-02-01 Andrew Cagney <ac131313@redhat.com>
11440
94bbfd30
AC
11441 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11442 strlen d_name.
11443
7ca9f392
AC
11444 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11445 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11446 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11447 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11448 (define_symbol): Update.
11449 * symfile.c (generic_load): Remove references to nindy.
11450 * symtab.c: Remove references to nindy.
11451
31a85ea2
AC
114522003-02-01 Andrew Cagney <ac131313@redhat.com>
11453
11454 * infcmd.c (print_float_info): Delete code conditional on
11455 FLOAT_INFO.
11456 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11457 * config/m68k/nm-apollo68b.h: Ditto.
11458 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11459 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11460 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11461
f6e85fc8
MK
114622003-02-01 Mark Kettenis <kettenis@gnu.org>
11463
6015b6a0
MK
11464 * config/i386/tm-i386os9k.h: Removed.
11465
f7a30bdf
MK
11466 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11467 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11468 they're identical to i[3456]86-*-sysv* now.
11469 * config/i386/i386v32.mh: Removed.
11470 * config/i386/xm-i386v32.h: Removed.
11471 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11472
28d52111
MK
11473 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11474
4d3f6bce
MK
11475 * config/i386/i386dgux.mh: Removed.
11476 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11477
f6e85fc8
MK
11478 * configure.in: Fix typo.
11479 * configure: Regenerated.
11480
53955967
DC
114812003-01-31 David Carlton <carlton@math.stanford.edu>
11482
11483 * dwarf2read.c (dwarf2_locate_sections): Set
11484 dwarf_ranges_section.
11485
b1364885
AC
114862003-01-31 Andrew Cagney <ac131313@redhat.com>
11487
8dbb1c65
AC
11488 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11489 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11490
8731e58e
AC
11491 * utils.c: Re-indent.
11492
b1364885
AC
11493 * config/djgpp/fnchange.lst: Delete nindy files.
11494 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11495 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11496 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11497 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11498 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11499 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11500 * Makefile.in (init.c): Remove nindy references.
11501 (saber_gdb): Delete rule.
11502 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11503 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11504 and a68v-nat.c.
11505 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11506 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11507 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11508 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11509 nindy-share/stop.h.
11510 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11511 * saber.suppress: Delete file.
11512
086df311
DJ
115132003-01-31 Daniel Jacobowitz <drow@mvista.com>
11514
11515 * dbxread.c (stabs_data): New static variable.
11516 (fill_symbuf): Support an in-memory buffer for stabs data.
11517 (stabs_seek): New function.
11518 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11519 (read_ofile_symtab): Use stabs_seek.
11520 (elfstab_build_psymtabs): Take an asection* instead of
11521 an offset and size. Relocate the stabs data if necessary.
11522 Save the section* for dbx_psymtab_to_symtab.
11523 * dwarf2read.c: Add section variables for each debug section.
11524 (dwarf2_locate_sections): Fill them in.
11525 (dwarf2_read_section): Take an asection* argument.
11526 Relocate the section contents if necessary.
11527 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11528 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11529 it to dwarf2_read_section.
11530 (dwarf2_build_frame_info): Update callers.
11531 * elfread.c (elf_symfile_read): Update call to
11532 elfstab_build_psymtabs.
11533 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11534 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11535 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11536 * symfile.c (symfile_dummy_outputs): New function.
11537 (symfile_relocate_debug_section): New function.
11538 * symfile.h (symfile_relocate_debug_section): Add prototype.
11539
87d1b352
RH
115402003-01-31 Richard Henderson <rth@redhat.com>
11541
11542 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11543 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11544 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11545 * alpha-tdep.c (alpha_register_name): Add "unique".
11546 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11547 (ALPHA_UNIQUE_REGNUM): New.
11548 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11549
c48861fb
AC
115502003-01-31 Andrew Cagney <ac131313@redhat.com>
11551
11552 * README: Remove reference to Ericsson 1800 monitor.
11553 * Makefile.in (remote-es.o): Delete rule.
11554 (ALLDEPFILES): Delete remote-es.c.
11555 * remote-es.c: Delete file.
11556 * config/m68k/es1800.mt: Delete file.
11557 * config/djgpp/fnchange.lst: Update.
11558 * configure.tgt: Delete m68*-ericsson-* target.
11559
d764a824
AF
115602003-01-31 Adam Fedor <fedor@gnu.org>
11561
11562 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11563 Remove duplicate/shadowing variable of same name.
11564
fe36c4f4
JB
115652003-01-30 Jim Blandy <jimb@redhat.com>
11566
11567 * symfile.c (find_separate_debug_file): Assert that the objfile's
11568 directory name we compute ends with a slash, and then assume that
11569 that's so everywhere we use it.
11570
cb741690
DJ
115712003-01-30 Daniel Jacobowitz <drow@mvista.com>
11572
11573 * valops.c (value_assign): Flush frame cache after stores to memory
11574 also.
11575
96ee5227
AC
115762003-01-30 Andrew Cagney <ac131313@redhat.com>
11577
11578 * Makefile.in (mon960-rom.o): Delete rule.
11579 * mon960-rom.c: Delete file.
11580
7f6104a9
AC
115812003-01-30 Andrew Cagney <ac131313@redhat.com>
11582
11583 * d10v-tdep.c: Include "frame-unwind.h".
11584 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11585 list.
11586 (next_addr, uses_frame): Delete.
11587 (struct d10v_unwind_cache): Define.
11588 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11589 Use info instead of next_addr and uses_frame globals.
11590 (d10v_frame_init_saved_regs): Delete function.
11591 (d10v_init_extra_frame_info): Delete function.
11592 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11593 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11594 init_frame_pc or frame_saved_pc.
11595 (d10v_pop_frame): Delete function.
11596 (do_d10v_pop_frame): Delete function.
11597 (d10v_frame_chain): Delete function.
11598 (d10v_frame_chain_valid): Delete function.
11599 (d10v_frame_pc_unwind): New function.
11600 (d10v_frame_id_unwind): New function.
11601 (saved_regs_unwinder): New function.
11602 (d10v_frame_register_unwind): New function.
11603 (d10v_frame_pop): New function.
11604 (d10v_frame_unwind): New variable.
11605 (d10v_frame_p): New function.
11606 (d10v_frame_saved_pc): Delete function.
11607 * Makefile.in (d10v-tdep.o): Update dependencies.
11608
cad2e848
JB
116092003-01-30 J. Brobecker <brobecker@gnat.com>
11610
11611 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11612 causing some regressions due to a change in the default value
11613 for this macro.
11614
af34e669
DJ
116152003-01-29 Richard Henderson <rth@redhat.com>
11616 Elena Zannoni <ezannoni@redhat.com>
11617 Daniel Jacobowitz <drow@mvista.com>
11618
11619 Fix PR gdb/961.
8ffd9b1b 11620 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11621 variables.
11622 (RANGES_SECTION): New.
11623 (dwarf_ranges_buffer): New variable.
11624 (struct comp_unit_head): Add member "die".
11625 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11626 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11627 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11628 (dwarf2_locate_sections): Likewise.
11629 (dwarf2_build_psymtabs): Read .debug_ranges.
11630 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11631 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11632 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11633 Look for DW_AT_ranges and return the bounding box.
11634
baa93fa6
CF
116352003-01-29 Brian Ford <ford@vss.fsi.com>
11636
11637 * win32-nat.c (cygwin_pid): Removed as unused.
11638 (child_attach): Try fall back to Cygwin pid.
11639
c63f977f
JB
116402003-01-29 Jim Blandy <jimb@redhat.com>
11641
11642 * objfiles.h (struct objfile): Doc fix.
11643
d62d1979
AC
116442003-01-29 Andrew Cagney <ac131313@redhat.com>
11645
11646 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11647 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11648 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11649 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11650 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11651 (FRAME_SAVED_PC): Change to a function with predicate.
11652 * gdbarch.h, gdbarch.c: Re-generate.
11653
1ae18a04
AC
116542003-01-28 Andrew Cagney <ac131313@redhat.com>
11655
52287340
AC
11656 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11657
1ae18a04
AC
11658 * complaints.c (complain): Delete function.
11659 * complaints.h (struct deprecated_complaint): Delete definition.
11660 (complain): Delete declaration.
11661
f2c16bd6
KB
116622003-01-28 Kevin Buettner <kevinb@redhat.com>
11663
11664 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11665 dummy frames.
11666
a94dd1fd
AC
116672003-01-27 Andrew Cagney <ac131313@redhat.com>
11668
11669 * sentinel-frame.h, sentinel-frame.c: New files.
11670 * Makefile.in (frame.o): Update dependencies.
11671 (SFILES): Add sentinel-frame.c.
11672 (sentinel_frame_h): Define.
11673 (COMMON_OBS): Add sentinel-frame.o.
11674 (sentinel-frame.o): Specify dependencies.
11675 * frame.c: Include "sentinel-frame.h".
11676 (frame_register_unwind): Rewrite assuming that there is always a a
11677 ->next frame.
11678 (frame_register, generic_unwind_get_saved_register): Ditto.
11679 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11680 (create_sentinel_frame, unwind_to_current_frame): New functions.
11681 (get_current_frame): Rewrite using create_sentinel_frame and
11682 unwind_to_current_frame. When possible, always create a frame.
11683 (create_new_frame): Set next to the sentinel frame.
11684 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11685 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11686 ID cache when necessary.
11687 (frame_saved_regs_id_unwind): Use frame_relative_level.
11688 (deprecated_generic_get_saved_register): Use frame_relative_level,
11689 get_frame_saved_regs, get_frame_pc, get_frame_base and
11690 get_next_frame.
11691 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11692 frame_register.
11693
5378adc4
DJ
116942003-01-27 Daniel Jacobowitz <drow@mvista.com>
11695
11696 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11697
51ee2ddc
DJ
116982003-01-27 Daniel Jacobowitz <drow@mvista.com>
11699
11700 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11701 (maintenance_set_profile_cmd): Use error () instead of warning ().
11702
d9feb4e7
DJ
117032003-01-27 Daniel Jacobowitz <drow@mvista.com>
11704
11705 * configure.in: Check that -pg works if using --enable-profiling.
11706 Check for monstartup and _mcleanup regardless of --enable-profiling.
11707 * maint.c: Check for monstartup and _mcleanup before using them.
11708 * config.in: Regenerated.
11709 * configure: Regenerated.
11710
2d188dd3
NC
117112003-01-24 Nick Clifton <nickc@redhat.com>
11712
11713 * Add sh2e support:
11714
11715 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11716
11717 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11718 (sh2e_show_regs): New.
11719 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11720 * config/sh/tm-sh.h: Added sh2e to comments.
11721
cb3c37b2
JB
117222003-01-23 Jim Blandy <jimb@redhat.com>
11723
11724 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11725 symbols found)" message here; we haven't checked for a separate
11726 debug info file yet, so we don't know yet.
11727 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11728 we've looked everywhere. Also, there's no need to print a special
11729 message when we're loading the separate debug info file: the one
11730 symbol_file_add prints is fine.
11731
5b5d99cf
JB
117322003-01-23 Alexander Larsson <alexl@redhat.com>
11733 Jim Blandy <jimb@redhat.com>
11734
11735 Add support for executables whose debug info has been separated
11736 out into a separate file, leaving only a link behind.
11737 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11738 and separate_debug_objfile_backlink.
11739 (put_objfile_before): New declaration.
11740 * symfile.c: #include "filenames.h".
11741 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11742 debug info in a separate file, read that, too. Save the addrs
11743 argument, so we can use it again to read the separated debug info;
11744 syms_from_objfile modifies the table we pass it.
11745 (reread_symbols): After re-reading an objfile, call
11746 reread_separate_symbols to refresh its separate debug info
11747 objfile, if it has one.
11748 (reread_separate_symbols, find_separate_debug_file,
11749 get_debug_link_info, separate_debug_file_exists): New functions.
11750 (debug_file_directory): New global var.
11751 (_initialize_symfile): Initialize debug_file_directory, and
11752 provide the new `set debug-file-directory' command to let the user
11753 change it.
11754 * objfiles.c (free_objfile): If this objfile has its debug info in
11755 a separate objfile, free that one too. If this is itself a
11756 separate debug info objfile, clear our parent's backlink.
11757 (put_objfile_before): New function.
11758 * utils.c (gnu_debuglink_crc32): New function.
11759 * defs.h (gnu_debuglink_crc32): New declaration.
11760 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11761 * configure.in: Handle --with-separate-debug-dir config option.
11762 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11763 * acconfig.h (DEBUGDIR): New macro.
11764 * configure, aclocal.m4, config.in: Regenerated.
11765
7e8580c1
JB
117662003-01-22 Jim Blandy <jimb@redhat.com>
11767
7904e09f
JB
11768 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11769 like the old symbol_file_add, but taking new arguments: you can
11770 now pass in either a `struct section_addr_info' list to say where
11771 each section is loaded, or a `struct section_offsets' table. Pass
11772 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11773 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11774 with the appropriate quiescent values for the new arguments.
11775
7e8580c1
JB
11776 * symfile.c: #include "gdb_assert.h".
11777 (syms_from_objfile): Add the ability to pass in a section offset
11778 table directly, as an alternative to the section_addr_info table.
11779 Document arguments better.
11780 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11781 * symfile.h (syms_from_objfile): Update declaration.
11782 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11783 syms_from_objfile.
11784 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11785
d28f9cdf
DJ
117862003-01-22 Daniel Jacobowitz <drow@mvista.com>
11787
11788 Original patch by Tom Tromey <tromey@cygnus.com> and
11789 Jason Molenda <jmolenda@apple.com>.
11790 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11791 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11792 * NEWS: Mention profiling.
11793 * configure.in (--enable-gdbtk): Fix typo.
11794 (--enable-profiling): New. Set PROFILE_CFLAGS.
11795 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11796 Fill in function.
11797 (profiling_state): New variable.
11798 (mcleanup_wrapper): New function.
11799 (_initialize_maint): Remove NOTYET, fix call to
11800 add_setshow_boolean_cmd for "maint set profile".
11801 * configure: Regenerated.
11802
df21e465
MH
118032003-01-21 Martin M. Hunt <hunt@redhat.com>
11804
11805 * Makefile.in (install-gdbtk): Install PNG images too.
11806
73c1f219
AC
118072003-01-21 Andrew Cagney <ac131313@redhat.com>
11808
11809 * exec.c (text_start): Delete global variable.
11810 (exec_file_attach): Make text_start local to the function.
11811 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11812 * valops.c (hand_function_call): Delete code that handles
11813 BEFORE_TEXT_END and AFTER_TEXT_END.
11814 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11815 of CALL_DUMMY_LOCATION.
11816 * gdbarch.c: Regenerate.
11817 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11818 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11819 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11820 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11821 (text_end): Delete extern declaration.
11822
eb4f72c5
AC
118232003-01-21 Andrew Cagney <ac131313@redhat.com>
11824
11825 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11826 * blockframe.c (backtrace_below_main): Move to "frame.c".
11827 (frame_chain_valid): Delete check for backtrace_below_main.
11828 (_initialize_blockframe): Delete initialization, move ``set
11829 backtrace-below-main'' command to "frame.c".
11830 (do_flush_frames_sfunc): Delete function.
11831 * frame.c: Include "command.h" and "gdbcmd.h".
11832 (frame_type_from_pc): New function.
11833 (create_new_frame): Use frame_type_from_pc.
11834 (legacy_get_prev_frame): New function.
11835 (get_prev_frame): Rewrite. When an old style frame, call
11836 legacy_get_prev_frame. Otherwize, unwind the PC first.
11837 (_initialize_frame): Add ``set backtrace-below-main'' command.
11838 * Makefile.in (frame.o): Update dependencies.
11839
778ce8cc
AC
118402003-01-19 Andrew Cagney <ac131313@redhat.com>
11841
11842 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11843 DEPRECATED_REGISTERS_INFO.
11844
01c193c8
AC
118452003-01-19 Andrew Cagney <ac131313@redhat.com>
11846
11847 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11848 Maintainers'. Update `Various Maintainers'.
11849
dedc2a2b
AC
118502003-01-19 Andrew Cagney <ac131313@redhat.com>
11851
11852 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11853 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11854 Suppress actual parameters when `-'.
11855 * gdbarch.h, gdbarch.c: Regenerate.
11856
b7261c70
AC
118572003-01-19 Andrew Cagney <ac131313@redhat.com>
11858
11859 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11860 code handling dummy frames.
11861
dbe9fe58
AC
118622003-01-19 Andrew Cagney <ac131313@redhat.com>
11863
11864 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11865 (struct frame_unwind): Add field pop.
11866 * frame.h (frame_pop): Declare.
11867 * frame.c (frame_saved_regs_pop): New function.
11868 (trad_frame_unwinder): Add frame_saved_regs_pop.
11869 (frame_pop): New function.
11870 * dummy-frame.c (dummy_frame_pop): New function.
11871 (discard_innermost_dummy): New function.
11872 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11873 (dummy_frame_unwind): Add dummy_frame_pop.
11874 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11875 * valops.c (hand_function_call): Ditto.
11876 * stack.c (return_command): Ditto.
11877
570b8f7c
AC
118782003-01-18 Andrew Cagney <ac131313@redhat.com>
11879
11880 * cris-tdep.c: Fix function declaration indentation.
11881 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11882 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11883 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11884 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11885 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11886 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11887
118882003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11889
11890 * README (Unpacking and Installation -- quick overview):
11891 Warn against ".../gdb-5.3/gdb/configure".
11892
494cca16
AC
118932003-01-18 Andrew Cagney <ac131313@redhat.com>
11894
11895 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11896 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11897 (struct frame_unwind): Declare opaque.
11898 (dummy_frame_p): Declare function.
11899 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11900 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11901 * dummy-frame.c: Include "frame-unwind.h".
11902 (dummy_frame_p): New function.
11903 (dummy_frame_unwind): New variable.
11904 * frame.c: Include "frame-unwind.h".
11905 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11906 to use the new unwind field.
11907 (set_unwind_by_pc): Delete function.
11908 (create_new_frame, get_prev_frame): Set unwind field using
11909 frame_unwind_find_by_pc.
11910 (trad_frame_unwind, trad_frame_unwinder): New variables.
11911 * frame.h (trad_frame_unwind): Declare variable.
11912 (frame_id_unwind_ftype): Delete declaration.
11913 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11914 (struct frame_unwind): Declare opaque.
11915 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11916 register_unwind with a single unwind pointer.
11917 * frame-unwind.h, frame-unwind.c: New files.
11918 * Makefile.in (SFILES): Add frame-unwind.c.
11919 (frame_unwind_h): Define.
11920 (COMMON_OBS): Add frame-unwind.o.
11921 (frame-unwind.o): Specify dependencies.
11922 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11923
4efb68b1
AC
119242003-01-18 Andrew Cagney <ac131313@redhat.com>
11925
11926 * ada-valprint.c: Eliminate PTR.
11927 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11928 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11929 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11930 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11931 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11932 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11933 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11934
a84d24ee
AC
119352003-01-17 Andrew Cagney <ac131313@redhat.com>
11936
762f08a3
AC
11937 * main.c (captured_main): Don't use PTR.
11938 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11939 * gdbtypes.c (lookup_primitive_typename): Ditto.
11940 (lookup_struct_elt_type): Ditto.
11941 * f-valprint.c (info_common_command): Ditto.
11942 (list_all_visible_commons): Ditto.
11943 * jv-typeprint.c (java_type_print_base): Ditto.
11944
a84d24ee
AC
11945 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11946 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11947 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11948 i386-interix-nat.c and i386-interix-tdep.c. Rename
11949 m68klinux-nat.c and m68klinux-tdep.c. Rename
11950 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11951 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11952 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11953 * main.c (captured_main): Use xfree, not free.
11954
c170fb60
AC
119552003-01-16 Andrew Cagney <ac131313@redhat.com>
11956
11957 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11958 ID back using a parameter.
11959 * frame.c (frame_id_unwind): Update call.
11960 (frame_saved_regs_id_unwind): Update.
11961 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11962 * dummy-frame.h (struct frame_id): Add opaque declaration.
11963 (dummy_frame_id_unwind): Update declaration.
11964
867f3898
AC
119652003-01-15 Andrew Cagney <ac131313@redhat.com>
11966
11967 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11968
40622be8 119692003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11970
40622be8 11971 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11972
ae66c1fc
EZ
119732003-01-14 Elena Zannoni <ezannoni@redhat.com>
11974
997b089a 11975 Fix PR gdb/898
ae66c1fc
EZ
11976 * breakpoint.c (until_break_command): Add new argument. Use it to
11977 decide whether to stop only at the current frame or not.
11978 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11979 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11980 call.
11981 (advance_command): New function.
11982 (_initialize_infcmd): Update help string for 'until' command.
11983 Add new 'advance' command.
11984
a04257e6
DC
119852003-01-14 David Carlton <carlton@math.stanford.edu>
11986
11987 * linespec.c (decode_line_1): Normalize comments.
11988 (set_flags): Ditto.
11989 (locate_first_half): Ditto.
11990 (decode_compound): Ditto.
11991 (symtab_from_filename): Ditto.
11992 (decode_all_digits): Ditto.
11993 (decode_dollar): Ditto.
11994 (find_methods): Ditto.
11995 (find_toplevel_char): Ditto.
11996
1bac305b
AC
119972003-01-13 Andrew Cagney <ac131313@redhat.com>
11998
11999 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12000 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12001 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12002 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12003 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12004 * language.c, language.h, m32r-tdep.c: Update copyright.
12005 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12006 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12007 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12008 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12009 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12010 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12011
25caa7a8
EZ
120122003-01-13 Elena Zannoni <ezannoni@redhat.com>
12013
12014 * stabsread.h (process_later, resolve_cfront_continuation):
12015 Obsolete.
12016 Update copyright years.
12017 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12018 Update copyright year.
12019 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12020 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12021 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12022 Update copyright year.
12023 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12024 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12025 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12026 (parse_partial_symbols): Obsolete cfront support.
12027 * stabsread.c
12028 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12029 macros.
12030 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12031 read_cfront_baseclasses, read_cfront_member_functions,
12032 resolve_cfront_continuation,read_cfront_static_fields,
12033 copy_cfront_struct_fields): Obsolete functions.
12034 (define_symbol, read_one_struct_field): Obsolete cfront support.
12035 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12036 Update Copyright year.
12037
7789c6f5
EZ
120382003-01-13 Elena Zannoni <ezannoni@redhat.com>
12039
12040 * stack.c (print_frame_info, print_stack_frame_base_stub,
12041 print_stack_frame_base, show_and_print_stack_frame_stub,
12042 show_and_print_stack_frame, print_only_stack_frame_stub,
12043 print_only_stack_frame): Delete functions.
12044 (print_stack_frame_stub): Call print_frame_info instead of
12045 print_frame_info_base.
12046 (print_frame_info_base): Rename to print_frame_info.
12047 (backtrace_command_1): Call print_frame_info, instead of
12048 print_frame_info_base.
12049 (current_frame_command): Call print_stack_frame, instead of
12050 print_only_stack_frame.
12051 (frame_command): Call print_stack_frame, instead of
12052 show_and_print_stack_frame.
12053 (up_command): Ditto.
12054 (down_command): Ditto.
12055 * frame.h (print_only_stack_frame): Delete prototype.
12056 * infrun.c (normal_stop): Call print_stack_frame, instead of
12057 show_and_print_stack_frame.
12058 * thread.c (info_threads_command): Call print_stack_frame, instead
12059 of print_only_stack_frame.
12060
3f5a3016
AC
120612003-01-13 Andrew Cagney <ac131313@redhat.com>
12062
d99ba314
AC
12063 * README (Graphical interface to GDB): Update URL. Point at
12064 gdb/links/.
12065
3f5a3016
AC
12066 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12067 version match.
12068
083ae935
DJ
120692003-01-13 Daniel Jacobowitz <drow@mvista.com>
12070
12071 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12072 lines.
12073
5365276c
DJ
120742003-01-13 Daniel Jacobowitz <drow@mvista.com>
12075
12076 * thread-db.c (attach_thread): Prototype.
12077 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12078 thread information (ti), and valid flags (th_valid, ti_valid).
12079 (attach_thread): Move target_pid_to_str call to after the thread
12080 is added to GDB's list. Initialize the cache.
12081 (thread_get_info_callback, thread_db_map_id2thr)
12082 (thread_db_get_info): New functions.
12083 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12084 (thread_db_store_registers, thread_db_thread_alive)
12085 (thread_db_get_thread_local_address): Use them.
12086 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12087 of calling error() for threads in unknown state.
12088
12089 (clear_lwpid_callback): New function.
12090 (thread_db_resume): Use it to clear the cache.
12091
9fc30b6b
DJ
120922003-01-13 Daniel Jacobowitz <drow@mvista.com>
12093
12094 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12095 (resume_callback): Remove dead code.
12096
8f871025
AC
120972003-01-13 Andrew Cagney <ac131313@redhat.com>
12098
12099 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12100 predicate.
12101 * gdbarch.h, gdbarch.c: Regenerate.
12102 * stack.c (frame_info): Only initialize the saved registers when
12103 FRAME_INIT_SAVED_REGS_P.
12104 * frame.c (frame_saved_regs_register_unwind): Assert
12105 FRAME_INIT_SAVED_REGS_P.
12106 (deprecated_generic_get_saved_register): Ditto.
12107
3f565f1e
DJ
121082003-01-13 Daniel Jacobowitz <drow@mvista.com>
12109
12110 * source.c (openp): Squelch warning about "filename".
12111
072b1022
DJ
121122003-01-13 Daniel Jacobowitz <drow@mvista.com>
12113
12114 * source.c (openp): If the file does not exist don't necessarily
12115 search the path.
12116
973ccf8b
DJ
121172003-01-13 Daniel Jacobowitz <drow@mvista.com>
12118
12119 Fix PR gdb/872.
12120 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12121 (integer_types_same_name_p): New function.
12122 (rank_one_type): Use it.
12123 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12124
030292b7
DJ
121252003-01-13 Daniel Jacobowitz <drow@mvista.com>
12126
12127 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12128 variables.
12129 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12130 * configure.in: Add --with-sysroot.
12131 * configure: Regenerated.
12132 * main.c (gdb_sysroot): New variable.
12133 (captured_main): Initialize gdb_sysroot.
12134 * defs.h (gdb_sysroot): New extern declaration.
12135 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12136
afb5d334
MC
121372003-01-12 Michael Chastain <mec@shout.net>
12138
12139 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12140
751ceeb4
MC
121412003-01-12 Michael Chastain <mec@shout.net>
12142
12143 * top.c (print_gdb_version): Bump copyright year to 2003.
12144
94cd26f8
DC
121452003-01-12 David Carlton <carlton@bactrian.org>
12146
12147 * linespec.c (symtab_from_filename): Rename variable 's' to
12148 'file_symtab'.
12149
1ce79225
AC
121502003-01-12 Andrew Cagney <ac131313@redhat.com>
12151
12152 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12153 dummy frame.
12154 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12155
fa1fd571
AC
121562003-01-12 Andrew Cagney <ac131313@redhat.com>
12157
12158 * d10v-tdep.c: Include "gdb_assert.h".
12159 (d10v_store_return_value): Rewrite to match current interface.
12160 (d10v_extract_struct_value_address): Ditto.
12161 (d10v_extract_return_value): Ditto.
12162 (d10v_gdbarch_init): Set store_restore_value,
12163 extract_struct_value_address and extract_return_value.
12164
68b8d23e
JB
121652003-01-12 J. Brobecker <brobecker@gnat.com>
12166
12167 * hpread.c (set_namestring): New procedure replacing the
12168 SET_NAMESTRING macro.
12169 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12170 by calls to set_namestring.
12171
121722003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12173
12174 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12175 a compilation warning.
12176 (hpread_process_one_debug_symbol): Likewise.
12177
88d262ca
DC
121782003-01-10 David Carlton <carlton@math.stanford.edu>
12179
12180 * linespec.c (decode_line_1): Rename variable 's' to
12181 'file_symtab'.
12182 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12183 (decode_dollar): Ditto.
12184 (decode_variable): Ditto.
12185 (symbol_found): Ditto.
12186
86669319
MC
121872003-01-09 Michael Chastain <mec@shout.net>
12188
12189 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12190
616a9dc4
CV
121912003-01-07 Corinna Vinschen <vinschen@redhat.com>
12192
12193 * win32-nat.c (set_process_privilege): New function.
12194 (child_attach): Call set_process_privilege() to enable the
12195 SE_DEBUG_NAME user privilege if available in process token.
12196
3269bcfa
JB
121972003-01-10 J. Brobecker <brobecker@gnat.com>
12198
12199 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12200 compilation error in the previous revision.
12201
2b0ee454
DC
122022003-01-09 David Carlton <carlton@math.stanford.edu>
12203
12204 * linespec.c: Update copyright.
12205
b3ba1b44
DJ
122062003-01-09 Daniel Jacobowitz <drow@mvista.com>
12207
12208 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12209 than inferior_ptid.
12210 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12211
4ef3f3be
AC
122122003-01-09 Andrew Cagney <ac131313@redhat.com>
12213
479ab5a0
AC
12214 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12215 Update comments.
12216 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12217 (frame_saved_regs_zalloc): Update.
12218 (frame_saved_regs_register_unwind): Update.
12219 (create_new_frame): Update.
12220 (get_prev_frame): Update.
12221 (frame_extra_info_zalloc): Update.
12222 (deprecated_get_frame_saved_regs): Update.
12223 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12224 * cris-tdep.c: Update comment.
12225
bde58177
AC
12226 * somsolib.h: Fix function indentation.
12227 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12228 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12229 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12230 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12231 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12232
4ef3f3be
AC
12233 * infrun.c (follow_fork): Use ISO C definition.
12234 * expprint.c (print_subexp): Use xfree instead of free.
12235 * charset.c: Include "gdb_string.h" instead of <string.h>.
12236 (register_iconv_charsets): Use ISO C definition.
12237 (host_charset, target_charset): Ditto.
12238 * Makefile.in (charset.o): Update dependencies.
12239 (mi-cmd-env.o): Update dependencies.
12240
1c615f7a
AC
122412003-01-08 Andrew Cagney <cagney@redhat.com>
12242
12243 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12244 get_frame_base.
12245
c9a1dc08
AC
122462003-01-08 Andrew Cagney <ac131313@redhat.com>
12247
12248 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12249 build directories. Save edited gdb output in Mbuild.log. If a
12250 build fails, remove any final GDB executable.
12251
dbad9d94
AC
122522003-01-08 Andrew Cagney <ac131313@redhat.com>
12253
12254 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12255 replacing hex constants with function names and stripping leading
12256 file name directory prefixes.
12257
8d357cca
AC
122582003-01-08 Andrew Cagney <cagney@redhat.com>
12259
12260 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12261 get_frame_base.
12262
bca02a8a
DC
122632003-01-08 David Carlton <carlton@math.stanford.edu>
12264
12265 * linespec.c (decode_line_1): Move code into decode_variable.
12266 (decode_variable): New function.
12267
7f8ab3a0
AC
122682003-01-08 Andrew Cagney <ac131313@redhat.com>
12269
12270 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12271
7b5849cc
AC
122722003-01-08 Andrew Cagney <cagney@redhat.com>
12273
12274 * cris-tdep.c (cris_frame_init_saved_regs): Use
12275 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12276 saved_regs buffer.
12277 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12278 (sh64_nofp_frame_init_saved_regs): Ditto.
12279 (sh_fp_frame_init_saved_regs): Ditto.
12280 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12281 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12282 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12283 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12284
72a5efb3
DJ
122852003-01-08 Daniel Jacobowitz <drow@mvista.com>
12286
12287 * minsyms.c (lookup_minimal_symbol): Update comment.
12288 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12289 (lookup_minimal_symbol_solib_trampoline): Likewise.
12290
11c02a10
AC
122912003-01-08 Andrew Cagney <cagney@redhat.com>
12292
aab3ea25
AC
12293 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12294 frame_relative_level.
12295
da50a4b7
AC
12296 * alpha-tdep.c: Use get_frame_extra_info.
12297 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12298 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12299 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12300 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12301
11c02a10
AC
12302 * alpha-tdep.c: Use get_next_frame.
12303 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12304 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12305 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12306 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12307 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12308 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12309 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12310
1e2330ba
AC
123112003-01-07 Andrew Cagney <cagney@redhat.com>
12312
12313 * alpha-tdep.c: Use get_frame_base.
12314 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12315 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12316 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12317 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12318 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12319 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12320 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12321 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12322
2d75187b
AC
123232003-01-07 Andrew Cagney <cagney@redhat.com>
12324
12325 * frame.c (deprecated_get_frame_context): New function.
12326 (deprecated_set_frame_context): New function.
12327 * frame.h (deprecated_get_frame_context): Declare.
12328 (deprecated_set_frame_context): Declare.
12329 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12330 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12331
483d36b2
AC
123322003-01-07 Andrew Cagney <cagney@redhat.com>
12333
12334 * frame.c (deprecated_set_frame_next_hack): New function.
12335 (deprecated_set_frame_prev_hack): New function.
12336 * frame.h (deprecated_set_frame_next_hack): Declare.
12337 (deprecated_set_frame_prev_hack): Declare.
12338 * mcore-tdep.c (analyze_dummy_frame): Use
12339 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12340 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12341
14e91ac5
DC
123422003-01-07 David Carlton <carlton@math.stanford.edu>
12343
12344 * linespec.c (decode_line_1): Move code into decode_dollar.
12345 (decode_dollar): New function.
12346
b0c6b05c
AC
123472003-01-07 Andrew Cagney <cagney@redhat.com>
12348
12349 * arm-tdep.c (arm_init_extra_frame_info): Use
12350 deprecated_update_frame_base_hack.
12351 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12352 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12353 (fix_frame_pointer): Ditto.
12354 (mn10300_analyze_prologue): Ditto.
12355
a00a19e9
AC
123562003-01-07 Andrew Cagney <cagney@redhat.com>
12357
12358 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12359 extra_info using frame_extra_info_zalloc.
12360 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12361 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12362 (sh64_init_extra_frame_info): Ditto.
12363 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12364 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12365 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12366 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12367 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12368 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12369 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12370 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12371 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12372 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12373 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12374 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12375
12376 * mn10300-tdep.c (analyze_dummy_frame): Use
12377 deprecated_set_frame_extra_info_hack.
12378 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12379
1fb4c65b
JB
123802003-01-07 J. Brobecker <brobecker@gnat.com>
12381
12382 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12383 class is not scText. These do not define "real" procedures.
12384 (parse_partial_symbols): Likewise.
12385
9fe7d6bf
MS
123862003-01-06 Michael Snyder <msnyder@redhat.com>
12387
12388 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12389
f6c609c4
AC
123902003-01-06 Andrew Cagney <ac131313@redhat.com>
12391
12392 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12393 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12394 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12395 deprecated_frame_xmalloc_with_cleanup.
12396 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12397 deprecated_frame_xmalloc.
12398 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12399 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12400
d995ff4b
AC
124012003-01-06 Andrew Cagney <cagney@redhat.com>
12402
84dc46cb
AC
12403 * x86-64-linux-tdep.c: Include "osabi.h".
12404 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12405
d995ff4b
AC
12406 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12407
66140c26
AC
124082003-01-06 Andrew Cagney <cagney@redhat.com>
12409
12410 * MAINTAINERS (Target Instruction Set Architectures): Update
12411 arm-elf. Can be built with -Werror, has been multiarched.
12412
12413 * value.h (unpack_long): Make buffer parameter constant.
12414 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12415 * scm-lang.h (scm_parse): Ditto.
12416 * defs.h (extract_typed_address, extract_address): Ditto.
12417 (extract_long_unsigned_integer): Ditto.
12418 * inferior.h (unsigned_pointer_to_address): Ditto.
12419 (signed_pointer_to_address): Ditto.
12420 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12421 * gdbarch.h, gdbarch.c: Regenerate.
12422 * findvar.c (extract_long_unsigned_integer): Update.
12423 (extract_address): Update.
12424 (extract_typed_address): Update.
12425 (unsigned_pointer_to_address): Update.
12426 * values.c (unpack_long): Update.
12427 (unpack_double): Update.
12428 (unpack_pointer): Update.
12429 (unpack_field_as_long): Update.
12430 * d10v-tdep.c (d10v_pointer_to_address): Update.
12431 * avr-tdep.c (avr_pointer_to_address): Update.
12432 * scm-lang.c (scm_unpack): Update.
12433 * findvar.c (signed_pointer_to_address): Update.
12434
b089b3da
ML
124352003-01-06 Michal Ludvig <mludvig@suse.cz>
12436
8ffd9b1b 12437 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12438 since it is in i386-tdep.c.
12439
aff87235
JB
124402003-01-06 J. Brobecker <brobecker@gnat.com>
12441
12442 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12443 failure introduced in the previous change.
12444
34f5e845
MC
124452003-01-05 Michael Chastain <mec@shout.net>
12446
12447 * README: Remove references to deleted remote-*.c files:
12448 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12449 remote-nrom.c, remote-os9k.c, remote-udi.c.
12450
28bcfd30
MK
124512003-01-05 Mark Kettenis <kettenis@gnu.org>
12452
12453 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12454 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12455 i386_get_longjmp_target.
12456
15a5b3ee
AC
124572003-01-05 Andrew Cagney <ac131313@redhat.com>
12458
12459 * arm-tdep.c (prologue_cache): Change to a pointer.
12460 (_initialize_arm_tdep): Allocate prologue_cache.
12461 (check_prologue_cache): Update.
12462 (save_prologue_cache): Update.
12463 (arm_gdbarch_init): Update.
12464
c263362b
DJ
124652003-01-04 Daniel Jacobowitz <drow@mvista.com>
12466
12467 * stabsread.c (update_method_name_from_physname): Call complaint()
12468 instead of error.
12469
51603483
DJ
124702003-01-04 Daniel Jacobowitz <drow@mvista.com>
12471
12472 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12473 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12474 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12475
12476 * blockframe.c: Include "gdbcmd.h" and "command.h".
12477 (backtrace_below_main): New variable.
12478 (file_frame_chain_valid, func_frame_chain_valid)
12479 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12480 (generic_func_frame_chain_valid): Remove functions.
12481 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12482 (_initialize_blockframe): New function.
12483 * Makefile.in (blockframe.o): Update dependencies.
12484 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12485 comment. Call frame_chain_valid ().
12486 * frame.h: Remove old prototypes. Add prototype for
12487 frame_chain_valid and update comments to match.
12488 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12489 Remove old comment.
12490 * gdbarch.h: Regenerated.
12491 * gdbarch.c: Regenerated.
12492
12493 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12494 set_gdbarch_frame_chain_valid.
12495 * avr-tdep.c (avr_gdbarch_init): Likewise.
12496 * cris-tdep.c (cris_gdbarch_init): Likewise.
12497 * frv-tdep.c (frv_gdbarch_init): Likewise.
12498 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12499 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12500 (i386_nw_init_abi): Likewise.
12501 (i386_gdbarch_init): Likewise.
12502 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12504 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12505 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12506 * mips-tdep.c (mips_gdbarch_init): Likewise.
12507 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12508 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12509 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12510 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12511 * s390-tdep.c (s390_gdbarch_init): Likewise.
12512 * sh-tdep.c (sh_gdbarch_init): Likewise.
12513 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12514 * v850-tdep.c (v850_gdbarch_init): Likewise.
12515 * vax-tdep.c (vax_gdbarch_init): Likewise.
12516 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12517
12518 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12519 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12520 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12521 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12522 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12523 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12524 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12525 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12526
b00a8037
DJ
125272002-01-04 Daniel Jacobowitz <drow@mvista.com>
12528
12529 * Makefile.in (acconfig_h): Remove incorrect macro.
12530 (config_h): Define.
12531 (osabi.o): Update dependencies.
12532 * configure.tgt: Set gdb_osabi based on target triplet.
12533 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12534 * configure: Regenerated.
12535 * config.in: Regenerated.
12536 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12537 (GDB_OSABI_DEFAULT): Define if not already defined.
12538 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12539 (set_osabi_string): New variables.
12540 (gdbarch_register_osabi): Add new OS ABI to
12541 gdb_osabi_available_names.
12542 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12543 (set_osabi, show_osabi): New functions.
12544 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12545
4be87837
DJ
125462003-01-04 Daniel Jacobowitz <drow@mvista.com>
12547
12548 * arch-utils.c (gdbarch_info_init): Set osabi to
12549 GDB_OSABI_UNINITIALIZED.
12550 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12551 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12552 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12553 * gdbarch.c: Regenerated.
12554 * gdbarch.h: Regenerated.
12555 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12556 there's no BFD.
12557 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12558 * osabi.h (enum gdb_osabi): Move to defs.h.
12559 (gdbarch_init_osabi): Update prototype.
12560 * defs.h (enum gdb_osabi): Moved here.
12561 * Makefile.in: Update dependencies.
12562
12563 * alpha-tdep.h: Don't include "osabi.h".
12564 (struct gdbarch_tdep): Remove osabi member.
12565 * alpha-tdep.c: Include "osabi.h".
12566 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12567 iterate over arches. Update call to gdbarch_init_osabi.
12568 (alpha_dump_tdep): Don't dump osabi.
12569 * alpha-linux-tdep.c: Include "osabi.h".
12570 * alpha-osf1-tdep.c: Include "osabi.h".
12571 * alphafbsd-tdep.c: Include "osabi.h".
12572 * alphanbsd-tdep.c: Include "osabi.h".
12573
12574 * arm-tdep.h: Don't include "osabi.h".
12575 (struct gdbarch_tdep): Remove osabi member.
12576 * arm-tdep.c: Include "osabi.h".
12577 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12578 iterate over arches. Update call to gdbarch_init_osabi.
12579 (arm_dump_tdep): Don't dump osabi.
12580 * arm-linux-tdep.c: Include "osabi.h".
12581 * armnbsd-tdep.c: Include "osabi.h".
12582
12583 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12584 Update call to gdbarch_init_osabi.
12585
12586 * i386-tdep.h: Don't include "osabi.h".
12587 (struct gdbarch_tdep): Remove osabi member.
12588 * i386-tdep.c: Include "osabi.h".
12589 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12590 iterate over arches. Update call to gdbarch_init_osabi.
12591 (i386_dump_tdep): Don't dump osabi.
12592 * i386-linux-tdep.c: Include "osabi.h".
12593 * i386-sol2-tdep.c: Include "osabi.h".
12594 * i386bsd-tdep.c: Include "osabi.h".
12595 * i386gnu-tdep.c: Include "osabi.h".
12596 * i386ly-tdep.c: Include "osabi.h".
12597 * i386nbsd-tdep.c: Include "osabi.h".
12598 * i386obsd-tdep.c: Include "osabi.h".
12599
12600 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12601 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12602 check osabi when iterating over arches. Update call to
12603 gdbarch_init_osabi.
12604 (mips_dump_tdep): Don't dump osabi.
12605
12606 * ns32k-tdep.h: Don't include "osabi.h".
12607 (struct gdbarch_tdep): Remove.
12608 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12609 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12610 allocate tdep. Update call to gdbarch_init_osabi.
12611 (ns32k_dump_tdep): Remove.
12612 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12613 * ns32knbsd-tdep.c: Include "osabi.h".
12614
12615 * ppc-tdep.h: Don't include "osabi.h".
12616 (struct gdbarch_tdep): Remove osabi member.
12617 * rs6000-tdep.c: Include "osabi.h".
12618 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12619 osabi when iterating over arches. Update call to
12620 gdbarch_init_osabi.
12621 (rs6000_dump_tdep): Don't dump osabi.
12622 * ppc-linux-tdep.c: Include "osabi.h".
12623 * ppcnbsd-tdep.c: Include "osabi.h".
12624
12625 * sh-tdep.h: Don't include "osabi.h".
12626 (struct gdbarch_tdep): Remove osabi member.
12627 * sh-tdep.c: Include "osabi.h".
12628 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12629 iterate over arches. Update call to gdbarch_init_osabi.
12630 (sh_dump_tdep): Don't dump osabi.
12631 * shnbsd-tdep.c: Include "osabi.h".
12632
12633 * sparc-tdep.c: Include "osabi.h".
12634 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12635 iterate over arches. Update call to gdbarch_init_osabi.
12636 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12637 tdep structure.
12638
12639 * vax-tdep.h: Don't include "osabi.h".
12640 (struct gdbarch_tdep): Remove.
12641 * vax-tdep.c: Include "osabi.h".
12642 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12643 iterate over arches. Don't allocate tdep. Update call
12644 to gdbarch_init_osabi.
12645 (vax_dump_tdep): Remove.
12646 (_initialize_vax_tdep): Update call to gdbarch_register.
12647
a881cf8e
DJ
126482003-01-04 Daniel Jacobowitz <drow@mvista.com>
12649
12650 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12651 entirely.
12652 (breakpoint_re_set_one): Don't fetch the value for a disabled
12653 watchpoint.
12654
1e698235
DJ
126552003-01-04 Daniel Jacobowitz <drow@mvista.com>
12656
12657 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12658 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12659 (COERCE_FLOAT_TO_DOUBLE): Remove.
12660 * gdbarch.c: Regenerate.
12661 * gdbarch.h: Regenerate.
12662 * Makefile.in: Remove value_h from gdbarch_h.
12663 * valops.c (coerce_float_to_double): New variable.
12664 (default_coerce_float_to_double): Remove.
12665 (standard_coerce_float_to_double): Remove.
12666 (value_arg_coerce): Use coerce_float_to_double.
12667 (_initialize_valops): Add "set coerce-float-to-double".
12668 * value.h (default_coerce_float_to_double): Remove prototype.
12669 (standard_coerce_float_to_double): Remove prototype.
12670
12671 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12672 prototyped.
12673 * mdebugread.c (parse_symbol): Likewise.
12674 * stabsread.c (define_symbol): Mark all functions as prototyped.
12675
12676 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12677 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12678 set_gdbarch_coerce_float_to_double.
12679 * arm-tdep.c (arm_gdbarch_init): Likewise.
12680 * frv-tdep.c (frv_gdbarch_init): Likewise.
12681 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12682 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12683 * mips-tdep.c (mips_gdbarch_init): Likewise.
12684 (mips_coerce_float_to_double): Remove.
12685 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12686 (rs6000_coerce_float_to_double): Remove.
12687 * s390-tdep.c (s390_gdbarch_init): Likewise.
12688 * sh-tdep.c (sh_gdbarch_init): Likewise.
12689 (sh_coerce_float_to_double): Remove.
12690 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12691 (sparc_coerce_float_to_double): Remove.
12692 * v850-tdep.c (v850_gdbarch_init): Likewise.
12693 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12694 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12695 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12696 (hppa_coerce_float_to_double): Remove prototype.
12697 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12698
f436a26a
DJ
126992003-01-04 Daniel Jacobowitz <drow@mvista.com>
12700
12701 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12702
248f8055
DJ
127032003-01-04 Daniel Jacobowitz <drow@mvista.com>
12704
12705 Suggested by Stewart Brown <sb24@avaya.com>:
12706 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12707 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12708 (c_type_print_varspec_suffix): Likewise.
12709
72cfdc76
MK
127102003-01-04 Mark Kettenis <kettenis@gnu.org>
12711
bfd260bb
MK
12712 * configure.in: Don't set and AC_SUBST SUBDIRS.
12713 * configure: Regenerated.
12714
72cfdc76
MK
12715 * configure.in: Remove code dealing with shared libraries.
12716 * Makefile.in: Remove HLDFLAGS and HLDENV.
12717 * configure: Regenerated.
12718
c8b8a898
AC
127192003-01-04 Andrew Cagney <ac131313@redhat.com>
12720
12721 * frame.c (deprecated_frame_xmalloc): New function.
12722 (deprecated_set_frame_saved_regs_hack): New function.
12723 (deprecated_set_frame_extra_info_hack): New function.
12724 * frame.h (deprecated_frame_xmalloc): Declare.
12725 (deprecated_set_frame_saved_regs_hack): Declare.
12726 (deprecated_set_frame_extra_info_hack): Declare.
12727
14abd0fb
MK
127282003-01-04 Mark Kettenis <kettenis@gnu.org>
12729
8ee53726
MK
12730 * configure.in: Move code that provides the --enable-gdbtk option
12731 right after the code that handles the --enable-tui option, and
12732 polish it somewhat.
12733 * configure: Regenerated.
12734
14abd0fb
MK
12735 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12736 AC_CHECK_FUNCS and remove the old check for pread64.
12737 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12738 * acconfig.h (_GNU_SOURCE): Add.
12739 (HAVE_PREAD64): Remove.
12740 * configure, aclocal.m4, config.in: Regenerated.
12741
b2fb4676
AC
127422003-01-03 Andrew Cagney <ac131313@redhat.com>
12743
12744 * alpha-tdep.c: Use get_frame_saved_regs.
12745 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12746 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12747 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12748 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12749 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12750
8dcde887
MK
127512003-01-03 Mark Kettenis <kettenis@gnu.org>
12752
12753 * configure.in: Remove all use of the SUBDIRS variable; add
12754 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12755 code providing the --enable-multi-ice option, and move it right in
12756 front of the code that checks whether gdbserver is supported.
12757 Polish that too.
12758 * configure: Regenerated.
12759 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12760 @SUBDIRS@.
12761
8ccd593b
AC
127622003-01-03 Andrew Cagney <cagney@redhat.com>
12763
12764 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12765 * avr-tdep.c, cris-tdep.c: Ditto.
12766 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12767 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12768
91151a06
MK
127692003-01-03 Mark Kettenis <kettenis@gnu.org>
12770
12771 * configure.in: Remove --enable-netrom option.
12772 * configure: Regenerated.
12773
8fe84d01
MK
127742003-01-03 Mark Kettenis <kettenis@gnu.org>
12775
12776 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12777 declaration for `struct re_pattern_buffer' instead.
12778 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12779
f0394be6
JB
127802003-01-03 J. Brobecker <brobecker@gnat.com>
12781
12782 * mdebugread.c (parse_symbol): Count until the stEnd matching
12783 the structure name.
12784
27e9bf90
MK
127852003-01-02 Mark Kettenis <kettenis@gnu.org>
12786
93d331ba
MK
12787 * configure.in: Remove --with-cpu option.
12788 subscripts. Remove evil changequotes here.
12789 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12790 * config.in, configure: Regenerated.
8ffd9b1b 12791
27e9bf90
MK
12792 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12793 * configure.in: Cleanup section that sources GDB and BFD configure
12794 subscripts. Remove evil changequotes here.
12795 * config.in, configure: Regenerated.
12796
50abf9e5
AC
127972003-01-02 Andrew Cagney <ac131313@redhat.com>
12798
12799 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12800 frame accessor methods.
12801 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12802 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12803 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12804 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12805 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12806 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12807 * z8k-tdep.c: Ditto.
8ffd9b1b 12808
287c1a40
MK
128092003-01-02 Mark Kettenis <kettenis@gnu.org>
12810
f5dbc56d
MK
12811 * configure.in: Remove UI_OUT configuration code.
12812 * ada-lang.c: Update assuming UI_OUT is always true.
12813 * Makefile.in (UIOUT_CFLAGS): Remove.
12814 * configure: Regenerated.
12815 * TODO: Remove blurb about elimination of -DUI_OUT.
12816
627af7ea
MK
12817 * configure.in: Move code that provides the --enable-gdbcli,
12818 --enable-gdbmi options right before the code that handles the
12819 --enable-tui option. Polish a bit.
12820 * configure: Regenerated.
12821
06825bd1
MK
12822 * configure.in: Rewrite check for GNU regex and the
12823 --without-included regex option, and move it into the "Checks for
12824 library functions" section. This makes us use the system regex
12825 again by default on systems with version 2 of the GNU C library.
12826 This was apparently broken.
12827 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12828 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12829 * config.in, configure: Regenerated.
12830
287c1a40
MK
12831 * configure.in: Move code that provides the --enable-tui option
12832 before the "Checks for libraries" section. Polish the code
12833 somewhat and set need_curses to yes if we build the TUI. Rewrite
12834 code that looks for a library providing termcap functionality to
12835 match more closely what's done in the Readline library, and move
12836 it into to the "Checks for libraries" section.
12837 * configure: Regenerated.
12838 * Makefile.in (TERMCAP): Remove variable.
12839 * config/i386/go32.mh (TERMCAP): Remove variable.
12840
684e56bf
AC
128412003-01-02 Andrew Cagney <ac131313@redhat.com>
12842
12843 * MAINTAINERS: Mention gdb_mbuild.sh.
12844 * gdb_mbuild.sh: Rewrite.
12845
e1ea1d75
MK
128462003-01-02 Mark Kettenis <kettenis@gnu.org>
12847
12848 * configure.in: Fix typo in last change.
12849 * config.in, configure: Regenerated.
12850
1b831c93
AC
128512003-01-02 Andrew Cagney <ac131313@redhat.com>
12852
12853 * valarith.c (value_binop): Delete obsolete code and comments.
12854 * configure.host: Ditto.
12855 * buildsym.h (make_blockvector): Ditto.
12856 * buildsym.c (make_blockvector): Ditto.
12857 * defs.h (enum language): Ditto.
12858 (chill_demangle): Ditto.
12859 * elfread.c (elf_symtab_read): Ditto.
12860 * dwarfread.c (CHILL_PRODUCER): Ditto.
12861 (set_cu_language): Ditto.
12862 (handle_producer): Ditto.
12863 * expprint.c (print_subexp): Ditto.
12864 * gdbtypes.c (chill_varying_type): Ditto.
12865 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12866 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12867 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12868 (chill_varying_type): Ditto.
12869 * language.h (_LANG_chill): Ditto.
12870 * language.c (binop_result_type, integral_type): Ditto.
12871 (character_type, string_type, structured_type): Ditto.
12872 (lang_bool_type, binop_type_check): Ditto.
12873 * stabsread.h (os9k_stabs): Ditto.
12874 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12875 (define_symbol, read_type, read_struct_fields): Ditto.
12876 (read_array_type, read_enum_type, read_huge_number): Ditto.
12877 (read_range_type, start_stabs): Ditto.
12878 * symfile.c (init_filename_language_table): Ditto.
12879 (add_psymbol_with_dem_name_to_list): Ditto.
12880 * symtab.c (symbol_init_language_specific): Ditto.
12881 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12882 * symtab.h (struct general_symbol_info): Ditto.
12883 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12884 * typeprint.c (typedef_print): Ditto.
12885 * utils.c (fprintf_symbol_filtered): Ditto.
12886 * valops.c (value_cast, search_struct_field, value_slice): Delete
12887 obsolete code.
12888 (varying_to_slice): Delete function.
12889 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12890 (varying_to_slice): Delete declaration.
12891 * MAINTAINERS: Update.
12892
8bb2c122
MK
128932003-01-02 Mark Kettenis <kettenis@gnu.org>
12894
97bf5e38
MK
12895 * configure.in: Reorganize "Checks for library functions section"
12896 a bit. Remove check for `btowc' and `isascii' functions.
12897 * configure: Regenerated.
12898
5ee754fc
MK
12899 * acconfig.h (_MSE_INT_H): Remove.
12900 * configure.in: Create "Checks for header files" section, and move
12901 appropriate tests there. Don't check for objlist.h, wchar.h,
12902 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12903 misdetection fix. Also add "Checks for types", "Checks for
12904 compiler characteristics" and "Checks for library functions"
12905 sections.
12906 * config.in, configure: Regenerated.
12907
8bb2c122
MK
12908 * configure.in: Create "Checks for programs" section, and move
12909 appropriate tests there.
12910
9a156167
MK
129112003-01-01 Mark Kettenis <kettenis@gnu.org>
12912
12913 * configure.in: Create "Checks for libraries" section, and move
12914 appropriate tests there. Cleanup check for wctype in libw. Use
12915 AC_SEARCH_LIBS to see whether we need libsocket.
12916 * configure: Regenerated.
12917
a80e2bcb 12918For older changes see ChangeLog-2002
c906108c
SS
12919\f
12920Local Variables:
12921mode: change-log
12922left-margin: 8
12923fill-column: 74
12924version-control: never
12925End:
This page took 1.275197 seconds and 4 git commands to generate.