daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
76897487
KB
12003-10-13 Kevin Buettner <kevinb@redhat.com>
2
3 * breakpoint.h (struct breakpoint): Add new member
4 ``requested_address''.
5 * breakpoint.c (breakpoint_adjustment_warning)
6 (adjust_breakpoint_address): New static functions.
7 (print_it_typical): Issue warning if breakpoint's address is different
8 from its requested address.
9 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
10 (breakpoint_re_set_one): Set breakpoint's
11 ``requested_address'' field. Set ``address'' field to the
12 result of calling adjust_breakpoint_address() on the requested
13 address.
14
a1131521
KB
152003-10-13 Kevin Buettner <kevinb@redhat.com>
16
17 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
18 * gdbarch.h, gdbarch.c: Regenerate.
19
6ce6d90f
MK
202003-10-11 Mark Kettenis <kettenis@gnu.org>
21
155c1d33
MK
22 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
23 TDEP->sc_num_regs.
24
8a96bc77
MK
25 * i386fbsd-tdep.c: New file.
26 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
27 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
28 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
29 i386bsd-tdep.c.
30 (_initialize_i386fbsd_tdep): New function.
31 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
32 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
33 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
34 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
35 TDEP->sc_num_regs.
36 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
37 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
38 to initialize TDEP->sc_num_regs.
39 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
40 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
41 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
42 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
43 FreeBSD ELF OS/ABI's here.
44 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
45 (i386fbsd-tdep.o): New target.
46 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
47 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
48
477f40d1
MK
49 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
50 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
51 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
52 in initialization of TDEP->sc_num_regs.
53
c6b33596
MK
54 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
55 (x86_64_init_abi): Initialize regset_from_core_section if
56 appropriate.
57
8446b36a
MK
58 * i386-tdep.c (i386_regset_from_core_section): New function.
59 (i386_gdbarch_init): Initialize regset_from_core_section if
60 appropriate.
61 * i386-tdep.h (i386_regset_from_core_section): New declaration.
62
c783cbd6
MK
63 * i386-tdep.h (struct regset): Declare opaque.
64
6ce6d90f
MK
65 * gdbarch.sh (regset_from_core_section): New method.
66 (struct regset): Declare opaque.
67 * gdbarch.c, gdbarch.h: Regenerated.
68
b98ed7be
AM
692003-10-11 Alan Modra <amodra@bigpond.net.au>
70
71 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
72 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
73 Correct test for pc within section.
74
f6214256
MK
752003-10-11 Mark Kettenis <kettenis@gnu.org>
76
77 * gdbarch.sh: Remove trailing whitepsace from comments.
78
a8f4cde1
RM
792003-10-08 Roland McGrath <roland@redhat.com>
80
81 * gcore.c (make_mem_sec): Function removed, folded into ...
82 (gcore_create_callback): ... here. To omit a section, clear its
83 SEC_LOAD bit rather than zeroing its size.
84 Omit read-only sections only if they correspond to a known disk file.
85 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
86
74276724
MS
872003-10-10 Michael Snyder <msnyder@redhat.com>
88
89 * d10v-tdep.c: Fix typo in comment.
90
e754ae69
AC
912003-10-10 Andrew Cagney <cagney@redhat.com>
92
93 * rs6000-tdep.c (e500_store_return_value): Delete function.
94 (e500_extract_return_value): Delete function.
95 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
96 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
97 "ppc_sysv_abi_restore_return_value" where applicable.
98 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
99 (ppc_sysv_abi_extract_return_value): Declare.
100 (ppc_sysv_abi_broken_store_return_value): Declare.
101 (ppc_sysv_abi_broken_extract_return_value): Declare.
102 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
103 * ppc-sysv-tdep.c (return_value_convention): Move definition to
104 start of file.
105 (do_ppc_sysv_return_value): New function.
106 (ppc_sysv_abi_extract_return_value): New function.
107 (ppc_sysv_abi_store_return_value): New function.
108 (ppc_sysv_abi_broken_extract_return_value): New function.
109 (ppc_sysv_abi_broken_store_return_value): New function.
110 (ppc_sysv_abi_use_struct_convention): Call
111 do_ppc_sysv_return_value.
112
8d4ce20a
JB
1132003-10-10 J. Brobecker <brobecker@gnat.com>
114
115 * blockframe.c (inside_main_func): No longer use symbol_lookup()
116 to lookup the main function symbol.
117
afce3d2a
CV
1182003-10-10 Corinna Vinschen <vinschen@redhat.com>
119
120 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
121 types correctly.
122 (sh_push_dummy_call_fpu): Fix argument passing rules.
123 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
124 float types.
125 (sh3e_sh4_store_return_value): Ditto.
126
7fe958be
EZ
1272003-10-10 Elena Zannoni <ezannoni@redhat.com>
128
129 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
130 comment.
131
3f997a97
CV
1322003-10-10 Corinna Vinschen <vinschen@redhat.com>
133
134 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
135 more readable code. Accomodate passing of bitfields.
136
8be9034a
AC
1372003-10-10 Andrew Cagney <cagney@redhat.com>
138
139 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
140 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
141 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
142 * ppc-sysv-tdep.c: Include "gdb_assert.h".
143 (ppc64_sysv_abi_push_dummy_call): New function.
144 (ppc64_sysv_abi_broken_push_dummy_call): New function.
145 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
146 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
147
85a453d5
KI
1482003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
149
150 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
151 * README: Ditto.
152 * d10v-tdep.c: Ditto.
153 * h8300-tdep.c: Ditto.
154 * remote-e7000.c: Ditto.
155 * remote-hms.c: Ditto.
156 * ser-e7kpc.c: Ditto.
157 * sh-stub.c: Ditto.
158 * sh-tdep.c: Ditto.
159 * sh-tdep.h: Ditto.
160 * sh3-rom.c: Ditto.
161 * sh64-tdep.c: Ditto.
162 * top.c: Ditto.
163 * wince.c: Ditto.
164 * config/d10v/d10v.mt: Ditto.
165 * config/sh/embed.mt: Ditto.
166 * config/sh/linux.mt: Ditto.
167 * config/sh/tm-linux.h: Ditto.
168 * config/sh/tm-sh.h: Ditto.
169 * config/sh/wince.mt: Ditto.
170
221c12ff
AC
1712003-10-09 Andrew Cagney <cagney@redhat.com>
172
173 * ppc-tdep.h (struct type): Declare opaque.
174 * x86-64-tdep.h (struct regcache): Declare opaque.
175 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
176 coding style.
177
ef5200c1
AC
1782003-10-09 Andrew Cagney <cagney@redhat.com>
179
180 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
181 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
182 (SOFTWARE_SINGLE_STEP_P): Ditto.
183 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
184 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
185 (SOFTWARE_SINGLE_STEP_P): Ditto.
186 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
187 software_single_step to rs6000_software_single_step.
a8f4cde1 188
9644bbdd
AC
1892003-10-09 Andrew Cagney <cagney@redhat.com>
190
191 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
192
db72fa6b
MS
1932003-10-09 Michael Snyder <msnyder@redhat.com>
194
f3efb16c
MS
195 * frame.h: Fix typo in comment.
196 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
197 * d10v-tdep.c: Random whitespace/comment tweaks.
198
9a5cef92
EZ
1992003-10-09 Elena Zannoni <ezannoni@redhat.com>
200
201 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 202 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 203 on stack.
a8f4cde1 204
9a5cef92
EZ
205 Based on input by Stephen Clarke (stephen.clarke@superh.com):
206 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
207 in detail.
a8f4cde1 208
0f317a0c
DJ
2092003-10-09 Daniel Jacobowitz <drow@mvista.com>
210
211 * remote-mips.c (mips_initialize): Remove unneeded call to
212 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
213
bbab2f46
DJ
2142003-10-09 Daniel Jacobowitz <drow@mvista.com>
215
216 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
217 a memory pointer.
218
550950b8
JJ
2192003-10-08 Jeff Johnston <jjohnstn@redhat.com>
220
221 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
222 for any lwp we resume.
223 (running_callback): Add lwps that have pending status events
224 against them to be considered running.
225
15c69bc7
KI
2262003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
227
228 * m32r-tdep.c : Include "dis-asm.h".
229 * Makefile.in (m32r-tdep.o): Update dependencies.
230
51065942
JB
2312003-10-06 J. Brobecker <brobecker@gnat.com>
232
233 * completer.h (get_gdb_completer_word_break_characters): Delete.
234 * completer.c: include language.h.
235 (gdb_completer_word_break_characters): Delete.
236 (get_gdb_completer_word_break_characters): Delete.
237 (location_completer): Use the word break characters of the current
238 language.
239 (complete_line): Likewise.
240 (line_completion_function): Likewise.
241 (skip_quoted_chars): Likewise.
242 * Makefile.in (completer.o): Add dependency on language.h.
243 * top.c (init_main): Set the readline word break characters
244 to GDB's default word break characters.
245
6084f43a
JB
2462003-10-06 J. Brobecker <brobecker@gnat.com>
247
248 * language.h (language_defn): new field, la_word_break_characters.
249 * language.c (unknown_language_defn): Set new field to
250 default_word_break_characters.
251 (auto_language_defn): Likewise.
252 (local_language_defn): Likewise.
253 * ada-lang.c (ada_language_defn): Likewise.
254 * c-lang.c (c_language_defn): Likewise.
255 (cplus_language_defn): Likewise.
256 (asm_language_defn): Likewise.
257 (minimal_language_defn): Likewise.
258 * f-lang.c (f_language_defn): Likewise.
259 * jv-lang.c (java_language_defn): Likewise.
260 * m2-lang.c (m2_language_defn): Likewise.
261 * objc-lang.c (objc_language_defn): Likewise.
262 * p-lang.c (pascal_language_defn): Likewise.
263 * scm-lang.c (scm_language_defn): Likewise.
264
944fcfab
AC
2652003-10-06 Andrew Cagney <cagney@redhat.com>
266
267 * ppc-sysv-tdep.c: Re-indent.
268
9f0a5303
JB
2692003-10-06 J. Brobecker <brobecker@gnat.com>
270
271 * language.h (default_word_break_characters): Add prototype.
272 * language.c (default_word_break_characters): New function.
273
7270b6ed
AS
2742003-10-06 Andreas Schwab <schwab@suse.de>
275
276 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
277 with %eax.
278
a5d61f66
AC
2792003-10-06 Andrew Cagney <cagney@redhat.com>
280
281 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
282 "h8500-tdep.c".
283 (z8k-tdep.o): Delete custom build rule.
284
28a86f5c
AC
2852003-10-06 Andrew Cagney <cagney@redhat.com>
286
1bfd8a83
AC
287 * Makefile.in: Update all dependencies.
288
17144ef8
AC
289 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
290 No longer list PA as as obsolete candidate. List m32r as
291 broken instead of obsolete.
a8f4cde1 292
a5679ae5
AC
293 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
294 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
295 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
296 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
297 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
298 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
299 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
300 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
301 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
302 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
303 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
304 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
305 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
306 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
307 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
308 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
309 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
310 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
311 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
312 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
313 * config/z8k/z8k.mt: Ditto.
314
4a8269c0
AC
315 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
316 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
317 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
318 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
319 sparclite were removed.
320 * configure.host, configure.tgt: Remove corresponding tuples.
321
41989fcd
AC
322 * breakpoint.c, breakpoint.h: Remove obsolete code.
323 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
324 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
325 * stabsread.h, xcoffread.c: Ditto.
326
28a86f5c
AC
327 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
328 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
329 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
330 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
331
4efdaa0d
DL
3322003-10-06 David Lecomber <dsl@sources.redhat.com>
333
334 * f-valprint.c: Reformatting
335
ae53de43
MK
3362003-10-06 Mark Kettenis <kettenis@gnu.org>
337
a8bb57e7
MK
338 * x86-64-tdep.c: Remove duplicate comment.
339
ae53de43
MK
340 * x86-64-tdep.c (x86_64_store_return_value): Don't use
341 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
342 names for return values. This fixes a bug since we looked at %rbx
343 instead of %rdx.
344
473f17b0
MK
3452003-10-05 Mark Kettenis <kettenis@gnu.org>
346
2c261fae
MK
347 * x86-64-tdep.c: Include "regset.h".
348
473f17b0
MK
349 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
350 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
351 sizeof_fpregset.
352 * i386-tdep.c: Include "regset.h".
353 (i386_supply_gregset): New function.
354 (i386_supply_fpregset): New function.
355 (i386_gdbarch_init): Initialze register set-related members of
356 TDEP.
357 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
358 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
359
afd48b75
AC
3602003-10-03 Andrew Cagney <cagney@redhat.com>
361
362 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
363 set extract_return_value, store_return_value and
364 use_struct_convention to ppc64_sysv_abi_extract_return_value,
365 ppc64_sysv_abi_store_return_value and
366 ppc64_sysv_abi_use_struct_convention.
367 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
368 (ppc64_sysv_abi_store_return_value): Declare.
369 (ppc64_sysv_abi_use_struct_convention): Declare.
370 * ppc-sysv-tdep.c (enum return_value_convention): Define.
371 (ppc64_sysv_abi_extract_return_value): New function.
372 (ppc64_sysv_abi_store_return_value): New function.
373 (ppc64_sysv_abi_use_struct_convention): New function.
374 (ppc64_sysv_abi_return_value): New function.
375
9b540880
AC
3762003-10-03 Andrew Cagney <cagney@redhat.com>
377
378 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
379 convert a descriptor to a function when it's in the ".opd"
380 section.
381
8748518b
CV
3822003-10-03 Corinna Vinschen <vinschen@redhat.com>
383
384 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
385 reg_size to keep GCC silent.
386
0fd85043
CV
3872003-10-03 Corinna Vinschen <vinschen@redhat.com>
388
389 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
390 base for DW_EH_PE_textrel encodings.
391 (read_encoded_value): Add a DW_EH_PE_textrel case.
392 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
393 section.
394
37b517aa
MK
3952003-10-03 Mark Kettenis <kettenis@gnu.org>
396
397 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
398
12c266ea
AC
3992003-10-02 Andrew Cagney <cagney@redhat.com>
400
401 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
402 REGISTER_RAW_SIZE.
403 * gdbarch.h, gdbarch.c: Re-generate.
404 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
405 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
406 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
407 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
408 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
409 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
410 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
411 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
412 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
413 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
414 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
415 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
416 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
417 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
418 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
419 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 420
78ba4af6
JB
4212003-10-02 Jim Blandy <jimb@redhat.com>
422
423 * dwarf2read.c (struct die_info): Doc fix.
424
617daa0e
CV
4252003-10-02 Corinna Vinschen <vinschen@redhat.com>
426
427 * sh-tdep.c: Running thru gdb_indent.sh.
428
e5e33cd9
CV
4292003-10-02 Corinna Vinschen <vinschen@redhat.com>
430
431 * sh-tdep.c (sh_justify_value_in_reg): New function.
432 (sh_stack_allocsize): Ditto.
433 (flt_argreg_array): New array used for floating point argument
434 passing.
435 (sh_init_flt_argreg): New function.
a8f4cde1 436 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
437 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
438 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
439 Fix argument passing strategy.
440 (sh_push_dummy_call_nofpu): Ditto.
441
5fe830e4
AC
4422003-10-01 Andrew Cagney <cagney@redhat.com>
443
444 * value.h (register_value_being_returned): Declare. Replace
445 "value_being_returned".
446 * infcall.c (call_function_by_hand): Use
447 register_value_being_returned.
448 * infcmd.c (print_return_value): Call
449 "register_value_being_returned", handle struct return locally.
450 * values.c (register_value_being_returned): New function. Replace
451 "value_being_returned".
a8f4cde1 452
5fe830e4 4532003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
454
455 * linux-proc.c (linux_do_registers): New function.
456 (linux_make_note_section): Use linux_do_registers in case of
457 single threaded inferior programs.
458
64f395bf
AC
4592003-10-01 Andrew Cagney <cagney@redhat.com>
460
461 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
462 use STRUCT_ADDR. When not using "struct return convention", pass
463 "0" to "value_being_returned". Add FIXMEs.
464 * infcmd.c (print_return_value): Pass an explicit 0/1 to
465 value_being_returned. Add comments.
466 * values.c (value_being_returned): Add fixme.
467 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
468 (hppa_value_returned_from_stack): Add FIXME.
469
639d11d3
DC
4702003-09-30 David Carlton <carlton@kealia.com>
471
472 * dwarf2read.c (struct die_info): Add 'parent' field; replace
473 'has_children' and 'next' by 'child' and 'sibling'.
474 (read_comp_unit): Rework algorithm, breaking body into
475 read_die_and_children and read_die_and_siblings.
476 (read_die_and_children, read_die_and_siblings): New.
477 (read_full_die): Add 'has_children' argument; set it instead of
478 the die's 'has_children' field. Minor formatting cleanup.
479 (free_die_list): Use die->child and die->sibling instead of
480 die->next.
481 (dump_die_list): Ditto.
482 (sibling_die): Use die->sibling.
483 (psymtab_to_symtab_1): Use die's 'child' field in place of its
484 'has_children' and 'next' fields.
a8f4cde1
RM
485 (process_die, read_file_scope, read_func_scope)
486 (read_lexical_block_scope, read_structure_scope)
487 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
488 (read_namespace, read_subroutine_type, dump_die): Ditto.
489
5bffac25
AC
4902003-09-30 Andrew Cagney <cagney@redhat.com>
491
492 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
493 to 224, not 220.
494
f30992d4
AC
4952003-09-30 Andrew Cagney <cagney@redhat.com>
496
497 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
498 REGISTER_VIRTUAL_SIZE.
499 * gdbarch.h, gdbarch.c: Regenerate.
500 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
501 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
502 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
503
2e092625
AC
5042003-09-29 Andrew Cagney <cagney@redhat.com>
505
506 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
507 DEPRECATED_REGISTER_VIRTUAL_TYPE.
508 * gdbarch.h, gdbarch.c: Regenerate.
509 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
510 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
511
512 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
513 * remote-vxmips.c (vx_read_register): Ditto.
514 * remote-vx68.c (vx_read_register): Ditto.
515 * gnu-nat.c (inf_validate_procs): Ditto.
516
7a5dd6ee
JB
5172003-09-29 J. Brobecker <brobecker@gnat.com>
518
519 * infcall.c (call_function_by_hand): Fix build failure
520 introduced in the previous change to this file.
521
1fe43d45
AC
5222003-09-29 Andrew Cagney <cagney@redhat.com>
523
524 * NEWS: Mention Objective-C.
525
e28a332c
JG
5262003-09-29 Jerome Guitton <guitton@act-europe.fr>
527
528 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
529 test if the register has been saved on the stack.
530 (arm_scan_prologue_cache): When analysing the instruction
531 "str lr, [sp, #-4]", save the address where lr has been stored.
532
9ff63c35
AC
5332003-09-28 Andrew Cagney <cagney@redhat.com>
534
7f5f525d
AC
535 * frame.c (frame_read_unsigned_register): Delete function.
536 * frame.h (frame_read_unsigned_register): Delete declaration.
537 * sparc-tdep.c (sparc_init_extra_frame_info): Use
538 get_frame_register_unsigned.
539 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
540 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
541 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 542
7f5f525d
AC
543 * frame.h (frame_read_register): Delete declaration.
544 * frame.c (frame_read_register): Delete function.
545 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
546 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
547 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
548 * mips-tdep.c (mips_register_to_value): Ditto.
549 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
550 * d10v-tdep.c (d10v_print_registers_info): Ditto.
551
552 * frame.c (frame_read_signed_register): Delete function.
553 (frame_read_unsigned_register): Update comments.
554 * frame.h (frame_read_signed_register): Delete declaration.
555 * h8300-tdep.c (h8300_print_register): Use
556 get_frame_register_signed.
557 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
558
9ff63c35
AC
559 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
560 Rename VALUE_RETURNED_FROM_STACK.
561 * infcmd.c (print_return_value): Update.
562 * infcall.c (call_function_by_hand): Update.
563
41d041d6
MK
5642003-09-28 Mark Kettenis <kettenis@gnu.org>
565
566 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
567 regcache argument and reverse the order of the other two
568 arguments. Remove local regcache variable. Determine
569 architecture from REGCACHE. Update comments.
570 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
571 reverse the order of the other two arguments. Remove local
572 regcache variable. Determine architecture from REGCACHE. Update
573 comments.
574 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
575 prototypes. Update comments.
576 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
577 comment.
578 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
579 Update.
580 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
581 * i386-interix-nat.c (supply_fpregset): Update.
582 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
583 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
584 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
585 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
586 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
587 Update.
588 * i386obsd-tdep.c (fetch_core_registers): Update.
589 * i386v4-nat.c (supply_fpregset): Update.
590 * x86-64-linux-nat.c (supply_fpregset): Update.
591 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 592
1cb97e17
MK
5932003-09-27 Mark Kettenis <kettenis@gnu.org>
594
5716833c
MK
595 * i386-tdep.h: Put opaque declarations in alphabetical
596 order. Remove spurious whitespace.
597 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
598 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
599 * i386-tdep.c (MM0_REGNUM): Remove define.
600 (i386_mmx_regnum_p): Add gdbarch argument.
601 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
602 Rewrite using new macro definitions for FPU/SSE registers.
603 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
604 definitions from i387-tdep.h.
605 (i386_register_name): Update.
606 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
607 new macro definitions for FPU/SSE registers.
608 (i386_extract_return_value): Determine whether floating-point
609 registers are present by examining REGCACHE's architecture.
610 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
611 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
612 FPU/SSE registers.
613 (i386_register_type): Update.
614 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
615 definitions for FPU registers. Use REGCACHE's architecture to
616 determine the appropriate register numbers.
617 (i386_pseudo_register_read, i386_pseudo_register_write,
618 i386_register_reggroup_p): Update.
619 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
620 TDEP->mm0_regnum.
621 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
622 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
623 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
624 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
625 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
626 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
627 *' to `void *'.
628 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
629 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
630 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
631 definitions for FPU/SSE registers.
632 (FXSAVE_MXCSR_ADDR): New define.
633 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
634 TDEP->mm0_regnum.
635 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
636 (I387_ST0_REGNUM): Define.
637
41d35cb0
MK
638 * regcache.h (get_regcache_arch): New prototype.
639 * regcache.c (get_regcache_arch): New function.
640
54e74f72
MK
641 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
642 whitespace.
643
1cb97e17
MK
644 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
645 Initialize using ARRAY_SIZE.
646
0968aa8c
AC
6472003-09-27 Andrew Cagney <cagney@redhat.com>
648
649 * arch-utils.c (deprecated_init_frame_pc_default): Rename
650 "init_frame_pc_default".
651 * arch-utils.h (deprecated_init_frame_pc_default): Update.
652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
653 * vax-tdep.c (vax_gdbarch_init): Update.
654 * v850-tdep.c (v850_gdbarch_init): Update.
655 * sh64-tdep.c (sh64_gdbarch_init): Update.
656 * s390-tdep.c (s390_gdbarch_init): Update.
657 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
658 * mcore-tdep.c (mcore_gdbarch_init): Update.
659 * h8300-tdep.c (h8300_gdbarch_init): Update.
660 * cris-tdep.c (cris_gdbarch_init): Update.
661 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
662
54c84734
MK
6632003-09-26 Mark Kettenis <kettenis@gnu.org>
664
665 * regset.h: New file.
666 * Makefile.in (regset_h): Add.
667
1b1d3794
AC
6682003-09-25 Andrew Cagney <cagney@redhat.com>
669
670 * frame.h (deprecated_frame_saved_regs): Rename
671 get_frame_saved_regs.
672 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
673 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
674 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
675 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
676 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
677
e6beb428
AC
6782003-09-25 Andrew Cagney <cagney@redhat.com>
679
680 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
681 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
682 and Java.
683 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
684 arm*-*-* do not use the new frame code.
685
710122da
DC
6862003-09-25 David Carlton <carlton@kealia.com>
687
688 * c-exp.y: Remove 'register' declarations.
689 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
690
79c2c32d
DC
6912003-09-25 David Carlton <carlton@kealia.com>
692
693 * c-exp.y: Include cp-support.h. Add qualified_type.
694 (yylex): Delete nested type hack; add comments.
695 * cp-namespace.c (cp_lookup_nested_type): New function.
696 * cp-support.h: Declare cp_lookup_nested_type.
697 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
698 instead of value_struct_elt_for_reference.
699 * valops.c: Include cp-support.h.
700 (value_aggregate_elt): New function.
701 (value_namespace_elt): Ditto.
702 (value_struct_elt_for_reference): Make static.
703 * value.h: Delete declaration of value_struct_elt_for_reference;
704 add declaration for value_aggregate_elt.
705 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
706 (valops.o): Ditto.
707
898c62f5
DJ
7082003-09-25 Daniel Jacobowitz <drow@mvista.com>
709
710 * stack.c: Include "reggroups.h".
711 (frame_info): Only display registers in all_reggroup.
712 * Makefile.in (stack.o): Update dependencies.
713
28cd8767
JG
7142003-09-25 Jerome Guitton <guitton@act-europe.fr>
715
716 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
717 "add ip, sp #n" in the prologue.
718 (arm_scan_prologue): Ditto.
719
a4ab2b5d
JG
7202003-09-25 Jerome Guitton <guitton@act-europe.fr>
721
722 * MAINTAINERS (write after approval): Add myself.
723
3f244638
AS
7242003-09-25 Andreas Schwab <schwab@suse.de>
725
726 * m68k-tdep.c: Include "dwarf2-frame.h".
727 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
728 * Makefile.in (m68k-tdep.o): Update dependencies.
729
1c0159e0
CV
7302003-09-25 Corinna Vinschen <vinschen@redhat.com>
731
732 * sh-tdep.c (struct frame_extra_info): Remove.
733 (struct sh_frame_cache): New structure.
734 (GET_SOURCE_REG): New macro extracting source register of an opcode.
735 (GET_TARGET_REG): Ditto but target register.
736 (GET_PUSHED_REG): Remove.
737 (IS_MOV_ARG_TO_REG): New macro.
738 (IS_MOV_ARG_TO_IND_R14): New macro.
739 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
740 (IS_MOVW_PCREL_TO_REG): New macro.
741 (IS_MOVL_PCREL_TO_REG): New macro.
742 (IS_SUB_REG_FROM_SP): New macro.
743 (IS_ARG_MOV): Remove.
744 (IS_MOV_TO_R14): Remove.
745 (IS_RESTORE_FP): New macro.
746 (IS_RTS): New macro.
747 (IS_LDS): New macro.
748 (IS_MOV_FP_SP): New macro.
749 (IS_ADD_REG_TO_FP): New macro.
750 (IS_ADD_IMM_FP): New macro.
751 (sh_skip_prologue_hard_way): Remove.
752 (sh_saved_pc_after_call): Remove.
753 (sh_frame_chain): Remove.
754 (sh_find_callers_reg): Remove.
a8f4cde1 755 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
756 (sh_fp_frame_init_saved_regs): Remove.
757 (sh_init_extra_frame_info): Remove.
758 (sh_analyze_prologue): New function.
759 (sh_skip_prologue): Remove deprecated code. Rely on new function
760 sh_analyze_prologue when after_prologue fails.
761 (sh_frame_saved_pc): Remove.
762 (sh_alloc_frame_cache): New function.
763 (sh_frame_cache): Ditto.
764 (sh_frame_prev_register): Ditto.
765 (sh_frame_this_id): Ditto.
766 (sh_frame_unwind): New structure defining the heuristic frame
767 sniffer interface.
768 (sh_frame_sniffer): New function.
769 (sh_unwind_sp): Ditto.
770 (sh_unwind_pc): Ditto.
771 (sh_unwind_dummy_id): Ditto.
772 (sh_frame_base_address): Ditto.
773 (sh_frame_base): New structure defining new frame base code.
774 (sh_in_function_epilogue_p): New function.
775 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
776 code and to call all new code instead. Initialize dwarf2 and
777 heuristic frame sniffer.
778
5f9769d1
PH
7792003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
780
a8f4cde1
RM
781 * parser-defs.h (struct exp_descriptor): New definition, containing
782 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
783 evaluating expressions.
784 (exp_descriptor_standard): Declare new variable.
785 (print_subexp): Make global and declare here (from expprint.c).
786 (dump_subexp): Ditto.
787 (dump_subexp_body_standard): Declare.
788 (operator_length_standard): Declare.
789 (op_name_standard): Declare.
790 (print_subexp): Declare.
791 (print_subexp_standard): Declare.
792
793 * language.h (struct language_defn): Add la_exp_desc field to hold
794 pointer to table for language-specific operators.
795 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
796
797 * parse.c (operator_length): Move most code to new
5f9769d1 798 operator_length_standard function. Use language-specific information.
a8f4cde1 799 (operator_length_standard): New function taking most code from
5f9769d1
PH
800 operator_length.
801 (exp_descriptor_standard): New constant.
a8f4cde1
RM
802
803 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 804 and OP_EXTENDED_LAST.
a8f4cde1
RM
805
806 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
807 Make global; remove static declaration.
808 Move most code to print_subexp_standard.
a8f4cde1 809 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
810 print_subexp.
811 (op_name): Add expression to argument signature.
a8f4cde1 812 Use langauge-specific op_name.
5f9769d1
PH
813 Move most code to op_name_standard.
814 (op_name_standard): New function, containing code formerly in op_name.
815 (dump_subexp): Use new version of op_name function.
816 Use language-specific dump_subexp_body, and move most existing code to
817 dump_subexp_body_standard.
818 (dump_raw_expression): Use new op_name interface.
819 (dump_subexp_body): Move most code to dump_subexp_body_standard.
820 (dump_subexp_body_standard): New function, containing code formerly
821 in dump_subexp_body.
a8f4cde1 822
5f9769d1
PH
823 * language.c (unknown_language): Add default la_exp_desc field and
824 remove evaluate_exp field.
825 (auto_language): Ditto.
826 (local_language): Ditto.
827 * f-lang.c (f_language_defn): Ditto.
828 * c-lang.c (c_language_defn): Ditto.
829 (cplus_language_defn): Ditto.
830 (asm_language_defn): Ditto.
831 (minimal_language_defn): Ditto.
832 * p-lang.c (pascal_language_defn): Ditto.
833 * m2-lang.c (m2_language_defn): Ditto.
834 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
835
836 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
837 Java-specific expression evaluator.
838 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
839 field.
a8f4cde1 840 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
841 Scheme-specific expression evaluator.
842 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
843 field.
844 * objc-lang.c (print_object_command): Take evaluate_exp from the
845 la_exp_desc field.
a8f4cde1 846
5f9769d1 847 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
848
849 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
850 la_exp_desc's type.
851 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 852
24daaebc
PH
8532003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
854
855 * parser-defs.h (operator_length): Declare.
a8f4cde1 856
24daaebc
PH
857 * parse.c (length_of_subexp): Use operator_length to get operator
858 lengths and arities for operators.
859 Move most code to new operator_length function.
a8f4cde1 860 (operator_length): New function absorbing most code from
24daaebc
PH
861 length_of_subexp.
862 (prefixify_subexp): Remove large case and use operator_length instead.
863 (parse_exp_1): Use renamings:
a8f4cde1 864 dump_prefix_expression => dump_raw_expression and
24daaebc 865 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 866
24daaebc
PH
867 * expression.h (dump_prefix_expression): Rename to ...
868 (dump_raw_expression): New name.
869 (dump_postfix_expression): Rename to ...
870 (dump_prefix_expression): New name.
a8f4cde1 871
24daaebc
PH
872 * expprint.c (dump_subexp): Make global. Add comment.
873 Move most existing code to dump_subexp_body.
874 (dump_subexp_body): New function.
875 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 876 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
877 work before the expression is prefixified.
878 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 879 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 880 that's what it does.
a8f4cde1 881 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
882 prefixified expression.
883 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 884
8c2957c4
JB
8852003-09-22 Jim Blandy <jimb@redhat.com>
886
887 * dwarf2read.c (read_array_type): When building the type for an
888 array of unspecified length, make sure to choose the upper bound
889 so that the array's total length comes out to be zero --- that's
890 how we represent such arrays.
891
592e3010
MC
8922003-09-22 Michael Chastain <mec@shout.net>
893
894 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
895
365c70b1
JJ
8962003-09-22 Jeff Johnston <jjohnstn@redhat.com>
897
898 * top.c (quit_force): Fix indirect call to quit_target so
899 a struct qt_args pointer is passed.
900
5d6eb653
AC
9012003-09-22 Andrew Cagney <cagney@redhat.com>
902
903 * arch-utils.h (init_frame_pc_noop): Delete declaration.
904 * arch-utils.c (init_frame_pc_noop): Delete function.
905 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
906 "init_frame_pc".
907 * mips-tdep.c (mips_gdbarch_init): Ditto.
908 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
909 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
910 declaration.
911 (DEPRECATED_INIT_FRAME_PC): Delete macro.
912 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
913 declaration.
914 (DEPRECATED_INIT_FRAME_PC): Delete macro.
915
b222a67f
AG
9162003-09-22 Anthony Green <green@redhat.com>
917
918 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
919 declaration.
920
d5b5ac79
AC
9212003-09-20 Andrew Cagney <cagney@redhat.com>
922
deafb061
AC
923 * breakpoint.c: Eliminate ARGSUSED.
924 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
925 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
926 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
927 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
928 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
929 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
930 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
931 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
932 * wince.c, remote-vx.c: Ditto.
933
d5b5ac79
AC
934 * cli/cli-script.c: Remove "register" attributes.
935 * config/pa/tm-hppa.h: Ditto.
936 * cli/cli-decode.c: Ditto.
937 * cli/cli-cmds.c: Ditto.
938
c6316faa
AC
9392003-09-19 Andrew Cagney <cagney@redhat.com>
940
941 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
942 DEPRECATED_NPC_REGNUM.
943 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
944
f4f99b11
CF
9452003-09-19 Christopher Faylor <cgf@redhat.com>
946
947 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
948
1708f284
JB
9492003-09-19 Jim Blandy <jimb@redhat.com>
950
951 * macrotab.c (macro_include): Use the correct comparison to find
952 the appropriate place for this inclusion in the list.
953
b9fbf434
AC
9542003-09-19 Andrew Cagney <cagney@redhat.com>
955
956 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
957 (DEPRECATED_HPUX_TEXT_END): Define.
958 (deprecated_hpux_text_end): Declare.
959 (struct target_ops): Declare opaque.
960 * hppah-nat.c (text_end): Make static.
961 (deprecated_hpux_text_end): New function.
962 * exec.c (text_end): Delete global variable.
963 (NEED_TEXT_START_END): Do not define.
964 (exec_file_attach): Replace code computing "text_end" code with
965 call to DEPRECATED_HPUX_TEXT_END.
966
5b03f266
AC
9672003-09-19 Andrew Cagney <cagney@redhat.com>
968
969 * utils.c (align_up, align_down): New functions.
970 * defs.h (align_up, align_down): Declare.
971 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
972 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
973 and "align_down".
974 (round_up, round_down): Delete functions.
975 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
976 "align_down".
977 (ROUND_DOWN, ROUND_UP): Delete macros.
978 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
979 * h8300-tdep.c: Replace "round_up" and "round_down" with
980 "align_up" and "align_down".
981 (round_up, round_down): Delete macros.
982 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
983 "align_down".
984 (ROUND_UP, ROUND_DOWN): Delete macros.
985
51db5742
JB
9862003-09-18 J. Brobecker <brobecker@gnat.com>
987
988 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
989 hard-coded constant. Use the proper machine name instead.
990
77949794
AC
9912003-09-17 Andrew Cagney <cagney@redhat.com>
992
993 * sparc-tdep.c (legacy_register_name): Delete function.
994 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
995 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
996 * infcmd.c (gdb_register_name): Delete variable.
997 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
998 REGISTER_NAME and "tm.h".
999 * gdbarch.h, gdbarch.c: Regenerate.
1000 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1001 REGISTER_NAMES in comments.
1002 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1003 * m68klinux-nat.c (regmap): Ditto.
1004
b55c33cc
JB
10052003-09-17 Jim Blandy <jimb@redhat.com>
1006
1007 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1008
957e27ac
AC
10092003-09-17 Andrew Cagney <cagney@redhat.com>
1010
1011 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1012 (ppcnbsd_init_abi): Set "use_struct_convention" to
1013 "ppcnbsd_use_struct_convention".
1014
192cb3d4
MK
10152003-09-17 Mark Kettenis <kettenis@gnu.org>
1016
1017 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1018 * gdbarch.h, gdbarch.c: Regenerate.
1019 (stabs_argument_has_addr): New architecture method.
1020 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1021 * arch-utils.c: Include "buildsym.h".
1022 (default_stabs_argument_has_addr): New function.
1023 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1024 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1025
efe59759
AC
10262003-09-17 Andrew Cagney <cagney@redhat.com>
1027
1028 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1029 * gdbarch.h, gdbarch.c: Regenerate.
1030 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1031 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1032 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1033 * sparcnbsd-tdep.c: Update.
a8f4cde1 1034
62700349
AC
10352003-09-17 Andrew Cagney <cagney@redhat.com>
1036
1037 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1038 * gdbarch.h, gdbarch.c: Regenerate.
1039 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1040 * d10v-tdep.c, frame.c: Update.
1041 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1042 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1043 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1044 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1045 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1046 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1047 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1048 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1049 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1050 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1051 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1052 * config/pa/nm-hppah.h: Update.
1053
b9ff3018
AC
10542003-09-16 Andrew Cagney <cagney@redhat.com>
1055
1056 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1057 "use_struct_convention" to "ppc_linux_use_struct_convention".
1058 (ppc_linux_use_struct_convention): New function.
1059 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1060 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1061 "rs6000_use_struct_convention".
1062 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1063 declaration.
1064 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1065 Delete function.
1066
aa1ee363
AC
10672003-09-16 Andrew Cagney <cagney@redhat.com>
1068
1069 * buildsym.c: Remove more occurances of "register".
1070 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1071 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1072 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1073 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1074 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1075 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1076 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1077 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1078
f2ea0907
CV
10792003-09-16 Corinna Vinschen <vinschen@redhat.com>
1080
1081 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1082 numbers to enumeration values.
1083 * sh-tdep.c: Accomodate above change.
1084 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1085 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1086 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1087 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1088 (IS_FPUSH): Rename from IS_FMOV.
1089 (sh_extract_struct_value_address): Remove useless comment.
1090 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1091 instead of own local values.
1092 (sh_dump_tdep): Remove.
1093 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1094 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1095
1c704f11
AC
10962003-09-15 Andrew Cagney <cagney@redhat.com>
1097
1098 * doublest.c (convert_floatformat_to_doublest): No longer need to
1099 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1100
ac79b88b
DJ
11012003-09-15 Daniel Jacobowitz <drow@mvista.com>
1102
1103 * values.c (unpack_double): Call floatformat_is_valid.
1104
1c671366
MK
11052003-09-15 Mark Kettenis <kettenis@gnu.org>
1106
de5227fb
MK
1107 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1108 ps_strings into a long.
1109
1c671366
MK
1110 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1111 _initialize_am64fbsd_nat.
1112
a604369a
KB
11132003-09-15 Kevin Buettner <kevinb@redhat.com>
1114
1115 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1116 associated with DW_AT_ranges attribute is out of bounds.
1117
b3cacbee
DL
11182003-09-15 David Lecomber <dsl@sources.redhat.com>
1119
1120 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1121
d0f37bb2
MC
11222003-09-14 Michael Chastain <mec@shout.net>
1123
1124 * config/m68k/nm-apollo68v.h: Delete.
1125 * config/m68k/xm-apollo68v.h: Delete.
1126
69517000
AC
11272003-09-14 Andrew Cagney <cagney@redhat.com>
1128
1129 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1130 * dcache.c: Update copyrights and descriptions.
1131 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1132
ef8b349d
AC
11332003-09-14 Andrew Cagney <cagney@redhat.com>
1134
1135 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1136 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1137
52f0bd74
AC
11382003-09-14 Andrew Cagney <cagney@redhat.com>
1139
1140 * alpha-nat.c: Remove some occurances of "register".
1141 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1142 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1143 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1144 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1145 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1146 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1147 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1148 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1149 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1150 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1151 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1152 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1153 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1154 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1155 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1156 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1157 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1158 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1159 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1160 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1161 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1162 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1163
4a4b3fed
AC
11642003-09-13 Andrew Cagney <cagney@redhat.com>
1165
1166 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1167 * ppc-tdep.h (struct regcache): Declare opaque.
1168 * objfiles.h (struct objfile_data): Declare opaque.
1169 * cp-support.h (struct objfile): Declare opaque.
1170 * linux-nat.h (target_waitstatus): Declare opaque.
1171
2110b94f
MK
11722003-09-14 Mark Kettenis <kettenis@gnu.org>
1173
1c671366
MK
1174 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1175 (stabs_argument_has_addr): New architecture method.
1176 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1177 * arch-utils.c: Include "buildsym.h".
1178 (default_stabs_argument_has_addr): New function.
1179 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1180 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1181
2110b94f
MK
1182 * cris-tdep.c (cris_gdbarch_init): Set
1183 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1184 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1185 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1186 * mips-tdep.c (mips_gdbarch_init): Likewise.
1187 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1188 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1189
48436ce6
AC
11902003-09-13 Andrew Cagney <cagney@redhat.com>
1191
1192 * values.c (using_struct_return): Delete "function" and "funcaddr"
1193 parameters.
1194 * value.h (using_struct_return): Update declaration.
1195 * infcmd.c (finish_command_continuation): Update.
1196 (finish_command): Update.
1197 * infcall.c (call_function_by_hand): Update.
1198 * eval.c (evaluate_subexp_standard): Update.
1199
403d9909
CF
12002003-09-13 Christopher Faylor <cgf@redhat.com>
1201
1202 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1203 SSE registers since gdb will not operate correctly without this.
1204 Restore include file ordering munged in previous change.
1205 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1206
ebf7d56b
MK
12072003-09-13 Mark Kettenis <kettenis@gnu.org>
1208
8e823e25
MK
1209 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1210 REG_STRUCT_HAS_ADDR.
1211 * gdbarch.c, gdbarch.h: Updated.
1212 * infcall.c (call_function_by_hand): Update.
1213 * stabsread.c (define_symbol): Updated.
a8f4cde1 1214
ebf7d56b
MK
1215 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1216
d3f13f72
CF
12172003-09-12 Christopher Faylor <cgf@redhat.com>
1218
1219 * win32-nat.c: Reorganize so that defines used by target headers are
1220 actually defined by the system headers.
1221 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1222 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1223
14f75137
JB
12242003-09-12 Jim Blandy <jimb@redhat.com>
1225
d646061f
JB
1226 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1227 the file has no .data, .bss, or .rodata sections. Instead wait
1228 until we see a variable alleged to live in one of those sections.
1229
2a13f9bc
JB
1230 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1231 .bss section, presume that any variables we find live in the
1232 .rodata section.
1233
4f49b26b
JB
1234 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1235 offsets for global and static variables.
1236
14f75137
JB
1237 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1238 symbol types are, by definition, in the .data section, so it is
1239 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1240 If there is no .data section, there should be no N_DATA or N_DATA
1241 | N_EXT symbols.
1242
212c460c
MK
12432003-09-12 Mark Kettenis <kettenis@gnu.org>
1244
1245 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1246 (amd64fbsd_sigcontext_addr): Rewrite.
1247 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1248 with correct values.
1249 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1250 (amd64fbsd_init_abi): Fix typo.
1251
68856ea3
AC
12522003-09-12 Andrew Cagney <cagney@redhat.com>
1253
1254 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1255 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1256
627b3ba2
AC
12572003-09-12 Andrew Cagney <cagney@redhat.com>
1258
1259 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1260 "entry_file_highpc". Update comments.
1261 * defs.h (deprecated_inside_entry_file): Rename
1262 "inside_entry_file".
1263 * blockframe.c (deprecated_inside_entry_file): Rename
1264 "inside_entry_file".
1265 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1266 * vax-tdep.c (vax_frame_chain): Update.
1267 * sh64-tdep.c (sh64_frame_chain): Update.
1268 * sh-tdep.c (sh_frame_chain): Update.
1269 * rs6000-tdep.c (rs6000_frame_chain): Update.
1270 * ns32k-tdep.c (ns32k_frame_chain): Update.
1271 * mips-tdep.c (mips_frame_chain): Update.
1272 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1273 * m32r-tdep.c (m32r_frame_this_id): Update.
1274 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1275 * frv-tdep.c (frv_frame_this_id): Update.
1276 * d10v-tdep.c (d10v_frame_this_id): Update.
1277 * cris-tdep.c (cris_frame_chain): Update.
1278 * blockframe.c (legacy_frame_chain_valid): Update.
1279 * avr-tdep.c (avr_frame_this_id): Update.
1280 * arm-tdep.c (arm_prologue_this_id): Update.
1281 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1282 * objfiles.c (objfile_relocate): Update.
1283 * mipsread.c (mipscoff_symfile_read): Update.
1284 (mipscoff_symfile_read): Update.
1285 * mdebugread.c (parse_partial_symbols): Update.
1286 * dwarfread.c (read_file_scope): Update.
1287 * dwarf2read.c (read_file_scope): Update.
1288 * dbxread.c (read_dbx_symtab): Update.
1289 (read_dbx_symtab): Update.
1290 * coffread.c (complete_symtab): Update.
1291
b0abbc58
JJ
12922003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1293
1294 * top.c (quit_target): New static helper function.
1295 (quit_force): Moved code to quit_target(). Call quit_target()
1296 via catch_errors() to catch errors during quit.
1297
a1632d59
DC
12982003-09-11 David Carlton <carlton@kealia.com>
1299
1300 * buildsym.c (finish_block): Use allocate_block to allocate the
1301 block.
1302 * mdebugread.c (new_block): Add FIXME.
1303
5c4e30ca
DC
13042003-09-11 David Carlton <carlton@kealia.com>
1305
1306 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1307 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1308 (recursive_dump_type): Ditto.
1309 * printcmd.c (print_formatted): Ditto.
1310 * typeprint.c (print_type_scalar): Ditto.
1311 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1312 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1313 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1314 maint_cplus_cmd_list.
1315 * cp-support.c: Make maint_cplus_cmd_list extern.
1316 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1317 command.h.
1318 (lookup_symbol_file): Look in possible namespace blocks when
1319 appropriate.
1320 (initialize_namespace_symtab): New.
1321 (get_possible_namespace_block, free_namespace_block)
1322 (check_possible_namespace_symbols)
1323 (check_possible_namespace_symbols_loop)
1324 (check_one_possible_namespace_symbol)
1325 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1326 (_initialize_cp_namespace): Ditto.
1327 * block.h: Declare allocate_block.
1328 * block.c (allocate_block): New.
1329 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1330 allocate_block.
1331 * symfile.h: Update declaration of add_psymbol_to_list.
1332 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1333 question.
1334 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1335 scan_partial_symbols_call.
1336 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1337 helper functions.
1338 (add_partial_symbol): If necessary, scan mangled names for names
1339 of namespaces.
1340 (add_partial_namespace): Add NAMESPACE argument; generate partial
1341 symbols associated to namespaces.
1342 (add_partial_enumeration): Add NAMESPACE argument.
1343 (new_symbol): Allow namespace syms.
1344 (read_namespace): Generate namespace syms.
1345 * objfiles.h: Add opaque declaration of struct symtab.
1346 (struct objfile): Add cp_namespace_symtab member.
1347 * objfiles.c (allocate_objfile): Set
1348 objfile->cp_namespace_symtab.
1349 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1350 dictionary_h, command_h.
1351
33a7c2fc
AC
13522003-09-11 Andrew Cagney <cagney@redhat.com>
1353
1354 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1355 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1356 near the function's end.
1357 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1358 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1359 regcache_raw_write_signed to set SP_REGNUM.
1360
63cd24fe
EZ
13612003-09-11 Elena Zannoni <ezannoni@redhat.com>
1362
1363 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1364 orig_addrs is set up properly.
1365
f27dd7fd
AC
13662003-09-11 Andrew Cagney <cagney@redhat.com>
1367
1368 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1369 * gdbarch.h, gdbarch.c: Re-generate.
1370 * infcall.c (call_function_by_hand): Update.
1371 * hppa-tdep.c (hppa_push_arguments): Update.
1372 * ada-lang.c (place_on_stack): Update.
1373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1374 * sparc-tdep.c (sparc_gdbarch_init): Update.
1375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1376 * hppa-tdep.c (hppa_gdbarch_init): Update.
1377 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1378 stack_align.
1379
f630a401
DJ
13802003-09-11 Daniel Jacobowitz <drow@mvista.com>
1381
1382 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1383 register do need a frame.
1384
0ddabb4c
AC
13852003-09-11 Andrew Cagney <cagney@redhat.com>
1386
1387 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1388 buildable since GDB 5.0.
1389 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1390 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1391 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1392 * irix4-nat.c: Delete file.
1393 * config/mips/irix4.mh: Delete file.
1394 * config/mips/irix3.mh: Delete file.
1395 * config/mips/irix3.mt: Delete file.
1396 * config/mips/tm-irix3.h: Delete file.
1397 * config/mips/nm-irix3.h: Delete file.
1398 * config/mips/xm-irix3.h: Delete file.
1399 * config/mips/nm-irix4.h: Delete file.
1400 * config/mips/xm-irix4.h: Delete file.
1401 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1402
fde2cceb
JB
14032003-09-10 J. Brobecker <brobecker@gnat.com>
1404
1405 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1406 * Makefile.in (hppa-tdep.o): Update dependencies.
1407
66f667f5
JW
14082003-09-10 James E Wilson <wilson@specifixinc.com>
1409
ef5fd69f
JW
1410 * MAINTAINERS: Change my e-mail address. Move to paper trail
1411 section.
66f667f5 1412
53e8aaea
KB
14132003-09-10 Kevin Buettner <kevinb@redhat.com>
1414
1415 * MAINTAINERS (frv): New ISA entry.
1416
dcc6aaff
KB
14172003-09-10 Kevin Buettner <kevinb@redhat.com>
1418
1419 * frv-tdep.c (dis-asm.h): Include.
1420 * Makefile.in (frv-tdep.o): Update dependencies.
1421
932644f0
JJ
14222003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1423
1424 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1425 Fix typo for high range of floating registers.
1426
91c24f0a
DC
14272003-09-09 David Carlton <carlton@kealia.com>
1428
1429 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1430 highpc initialization here out of scan_partial_symbols.
1431 (scan_partial_symbols): Restructure into a recursive version,
1432 calling add_partial_namespace and add_partial_enumeration when
1433 appropriate.
1434 (add_partial_namespace): New.
1435 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1436
c9263853
AC
14372003-09-09 Andrew Cagney <cagney@redhat.com>
1438
e56a0ecc
AC
1439 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1440 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1441 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1442 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1443
794a477a
AC
1444 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1445 (rs6000_push_dummy_call): Set the "TOC" register.
1446
c9263853
AC
1447 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1448 methods "max_register_raw_size", "max_register_virtual_size" or
1449 "register_virtual_size".
1450
afa7d0b2
ILT
14512003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1452
1453 * MAINTAINERS: Update my e-mail address.
1454
7a41266b
AC
14552003-09-09 Andrew Cagney <cagney@redhat.com>
1456
1457 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1458 (rs6000_push_dummy_call): Store the struct return address.
1459 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1460
77b2b6d4
AC
14612003-09-09 Andrew Cagney <cagney@redhat.com>
1462
1463 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1464 "ppc_sysv_abi_push_arguments".
1465 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1466 "ppc_sysv_abi_push_arguments".
1467 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1468 instead of "push_arguments".
1469 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1470
e8a7b686
AC
14712003-09-09 Andrew Cagney <cagney@redhat.com>
1472
1473 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1474 instead of CALL_DUMMY_ADDRESS.
1475
f86f5ca3
PH
14762003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1477
1478 * p-lang.c: Eliminate "register".
1479 * c-lang.c: Ditto.
1480 * expprint.c: Ditto.
1481 * f-lang.c: Ditto.
1482 * jv-lang.c: Ditto.
1483 * language.c: Ditto.
1484 * m2-lang.c: Ditto.
1485 * parse.c: Ditto.
1486 * scm-lang.c: Ditto.
1487 * objc-lang.c: Ditto.
1488
83ee270e
NC
14892003-09-09 Nick Clifton <nickc@redhat.com>
1490
1491 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1492
a89aa300
AC
14932003-09-04 Andrew Cagney <cagney@redhat.com>
1494
1495 * avr-tdep.c: Include "dis-asm.h".
1496 * cris-tdep.c: Include "dis-asm.h".
1497 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1498 instead of corresponding typedef.
1499 * h8300-tdep.c: Include "dis-asm.h".
1500 * ia64-tdep.c: Include "dis-asm.h".
1501 * i386-tdep.c: Include "dis-asm.h".
1502 (i386_print_insn): Use "struct disassemble_info" instead of
1503 corresponding typedef.
1504 * m68k-tdep.c: Include "dis-asm.h".
1505 * mcore-tdep.c: Include "dis-asm.h".
1506 * mips-tdep.c: Include "dis-asm.h".
1507 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1508 instead of corresponding typedef.
1509 * ns32k-tdep.c: Include "dis-asm.h".
1510 * s390-tdep.c: Include "dis-asm.h".
1511 * sparc-tdep.c: Include "dis-asm.h".
1512 * vax-tdep.c: Include "dis-asm.h".
1513 * v850-tdep.c: Include "dis-asm.h".
1514 * mn10300-tdep.c: Include "dis-asm.h".
1515 * rs6000-tdep.c: Include "dis-asm.h".
1516 * xstormy16-tdep.c: Include "dis-asm.h".
1517 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1518 print_insn_xstormy16.
1519 * Makefile.in (v850-tdep.o): Update dependencies.
1520 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1521 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1522 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1523 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1524 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1525 (gdbarch_h): Remove $(dis_asm_h).
1526 * disasm.c: Include "dis-asm.h".
1527 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1528 corresponding typedef.
1529 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1530 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1531 * gdbarch.sh: Do not include "dis-asm.h".
1532 (struct disassemble_info): Declare opaque.
1533 (TARGET_PRINT_INSN): Update declaration.
1534 * gdbarch.h, gdbarch.c: Re-generate.
1535
88a82a65
AC
15362003-09-08 Andrew Cagney <cagney@redhat.com>
1537
1538 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1539 CALL_DUMMY_ADDRESS, change to a predicate.
1540 * gdbarch.h, gdbarch.c: Re-generate.
1541 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1542 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1543 * infcall.c (call_function_by_hand): Ditto.
1544 * sparc-tdep.c (sparc_push_return_address): Ditto.
1545 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1546 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1547 CALL_DUMMY_ADDRESS with entry_point_address.
1548 * v850-tdep.c (v850_push_return_address): Ditto.
1549 * s390-tdep.c (s390_push_return_address): Ditto.
1550 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1551 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1552 * mcore-tdep.c (mcore_push_return_address): Ditto.
1553 * cris-tdep.c (cris_push_return_address): Ditto.
1554 * arm-tdep.c (arm_push_return_address): Ditto.
1555
3e2c4033
AC
15562003-09-08 Andrew Cagney <cagney@redhat.com>
1557
1558 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1559 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1560 and REG_UNMODIFIED to REG_SAME_VALUE.
1561 (execute_cfa_program): Update.
1562 (dwarf2_frame_cache): Update. Initialize table to
1563 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1564 location.
1565 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1566
39efb398
AC
15672003-09-08 Andrew Cagney <cagney@redhat.com>
1568
1569 * gnu-nat.c: Remove "inline" function attribute.
1570 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1571
f5cb5aca
KB
15722003-09-08 Kevin Buettner <kevinb@redhat.com>
1573
1574 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1575 target.
1576
1cb761c7
KB
15772003-09-08 Kevin Buettner <kevinb@redhat.com>
1578
1579 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1580 (frame_extra_info): Rename this struct to frv_unwind_cache.
1581 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1582 Add fields ``prev_sp'' and ``base''.
1583 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1584 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1585 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1586 Delete.
1587 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1588 Revise all callers. Fill in the unwind cache argument and make
1589 other adjustments to account for new frame mechanisms.
1590 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1591 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1592 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1593 (frv_frame_unwind, frv_frame_base): New structs.
1594 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1595 additional arguments expected by this method and adjust function
1596 body accordingly.
1597 (frv_gdbarch_init): Remove calls to the following functions:
1598 set_gdbarch_deprecated_init_frame_pc(),
1599 set_gdbarch_deprecated_saved_pc_after_call(),
1600 set_gdbarch_deprecated_frame_chain(),
1601 set_gdbarch_deprecated_frame_saved_pc(),
1602 set_gdbarch_deprecated_frame_init_saved_regs(),
1603 set_gdbarch_deprecated_push_arguments(),
1604 set_gdbarch_deprecated_push_return_address(),
1605 set_gdbarch_deprecated_pop_frame(),
1606 set_gdbarch_deprecated_call_dummy_words(),
1607 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1608 set_gdbarch_deprecated_init_extra_frame_info(),
1609 set_gdbarch_deprecated_dummy_write_sp(), and
1610 set_gdbarch_deprecated_pc_in_call_dummy().
1611 Add calls to the following functions:
1612 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1613 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1614 frame_base_set_default().
1615 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 1616
68f6cf99
MK
16172003-09-09 Mark Kettenis <kettenis@gnu.org>
1618
1619 * dwarf2-frame.c (read_encoded_value): Add support for
1620 DW_EH_PE_aligned encoding.
1621
73b65bb0
DJ
16222003-09-08 Daniel Jacobowitz <drow@mvista.com>
1623
1624 * infrun.c (normal_stop): Don't print a message if the inferior
1625 has exited.
1626
7c8a5605
JB
16272003-09-08 Jim Blandy <jimb@redhat.com>
1628
1629 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1630 * dbxread.c: #include "gdb_assert.h".
1631 (read_dbx_symtab): If the objfile has no .data section, use the
1632 section index for the .bss section instead.
1633
7dd88986
DJ
16342003-09-08 Daniel Jacobowitz <drow@mvista.com>
1635
1636 * frame.c (deprecated_safe_get_selected_frame): New function.
1637 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1638 * findvar.c (read_var_value): Call it.
1639
55ff77ac
CV
16402003-09-08 Corinna Vinschen <vinschen@redhat.com>
1641
1642 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1643 (sh64-tdep.o): Add dependencies.
1644 * configure.tgt: Add FIXME to sh-*-linux*.
1645 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1646 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 1647 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
1648 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1649 * sh64-tdep.c: New file, containing all sh64 related code from
1650 sh-tdep.c.
1651 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1652 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 1653 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
1654 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1655 * config/sh/wince.mt (TDEPFILES): Ditto.
1656
bfb39158
DJ
16572003-09-07 Daniel Jacobowitz <drow@mvista.com>
1658
1659 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1660 (stop_wait_callback): Handle !lp->signalled also.
1661 (lin_lwp_has_pending, flush_callback): New functions.
1662 (lin_lwp_wait): Call flush_callback.
1663 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1664 (linux_proc_pending_signals): New function.
1665 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1666
9407de8e
DJ
16672003-09-07 Daniel Jacobowitz <drow@mvista.com>
1668
1669 From Nick Kelsey <nickk@ubicom.com>:
1670 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1671 when the stop PC is at the beginning of a function also.
1672
2ef47cd0
DJ
16732003-09-06 Daniel Jacobowitz <drow@mvista.com>
1674
1675 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1676 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1677
6f4492c8
MK
16782003-09-06 Mark Kettenis <kettenis@gnu.org>
1679
1680 * sol-thread.c: Include "gdb_string.h".
1681
d3420b2f
MK
16822003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1683
1684 * gcore.c: Reorder include files in alphabetical order. Include
1685 "gdb_assert.h". Various coding style fixes.
1686 (derive_stack_segment, derive_heap_segment): Replace check for
1687 non-null BOTTOM and TOP with gdb_assert.
1688 (derive_heap_segment): Replace check for successful creation of
1689 ZERO with gdb_assert.
1690 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1691
5220ea4c
AC
16922003-09-04 Andrew Cagney <cagney@redhat.com>
1693
1694 * thread-db.c (verbose_dlsym): New function.
1695 (thread_db_load): Use verbose_dlsym
1696 (thread_db_new_objfile): Print that libthread_db was loaded, and
1697 that thread debugging was enabled.
1698
6e8c2c06
AC
16992003-09-04 Andrew Cagney <cagney@redhat.com>
1700
1701 * configure.tgt: Add "mips64*-*-*" target. Delete
1702 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1703 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1704 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1705 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1706 mips*-sony-*, and mips64*-*-elf* targets.
1707 * config/mips/embedl.mt: Delete file.
1708 * config/mips/embedl64.mt: Delete file.
1709 * config/mips/mips.mt: Delete file.
1710 * config/mips/mips64.mt: Delete file.
1711 * config/mips/tm-embed.h: Delete file.
1712 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1713 * config/mips/embed64.mt: Delete out-of-date comment.
1714
3a3bc038
AC
17152003-09-04 Andrew Cagney <cagney@redhat.com>
1716
1717 * hppa-tdep.c (hppa_gdbarch_init): Set
1718 "have_nonsteppable_watchpoint".
1719 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1720 * mips-tdep.c (mips_dump_tdep): Do not print
1721 HAVE_NONSTEPPABLE_WATCHPOINT.
1722 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1723 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1724 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1725 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1726
a957e642
CV
17272003-09-04 Corinna Vinschen <vinschen@redhat.com>
1728
1729 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1730 unused code. Add comment.
1731
a6fbcf2f
CV
17322003-09-04 Corinna Vinschen <vinschen@redhat.com>
1733
1734 * breakpoint.c (watchpoint_check): Check for pc being in an
1735 epilogue if watchpoint frame couldn't be found.
1736
c14a44d5
AC
17372003-09-04 Andrew Cagney <cagney@redhat.com>
1738
1739 * Makefile.in: Re-generate all dependencies.
1740
f6c40618
AC
17412003-09-03 Andrew Cagney <cagney@redhat.com>
1742
1743 * arch-utils.h (legacy_print_insn): Delete declaration.
1744 * arch-utils.c (legacy_print_insn): Delete function.
1745 * disasm.c (deprecated_tm_print_insn_info): Delete.
1746 (_initialize_disasm): Delete function, contained code initializing
1747 deprecated_tm_print_insn_info.
1748 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1749 (deprecated_tm_print_insn_info): Delete.
1750 (TARGET_PRINT_INSN): Do not provide a default.
1751 * gdbarch.h, gdbarch.c: Re-generate.
1752
242e8be5
AC
17532003-09-03 Andrew Cagney <cagney@redhat.com>
1754
1755 * disasm.c (fprintf_disasm): New function.
1756 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1757 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1758 reverts 2003-08-14 change.
1759 (_initialize_disasm): Call "init_disassemble_info", instead of
1760 INIT_DISASSEMBLE_INFO_NO_ARCH.
1761
3ffc3dda
MS
17622003-09-03 Michael Snyder <msnyder@redhat.com>
1763
1764 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1765
52d16ba8
AC
17662003-09-03 Andrew Cagney <cagney@redhat.com>
1767
1768 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1769 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1770 * symfile.c (syms_from_objfile): Update.
1771 (reread_symbols): `Update
1772 * exec.c (exec_file_attach): Update.
1773 (exec_file_attach): Update.
1774 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1775 2003-08-29 change.
1776 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1777
eb5492fa
DJ
17782003-09-03 Daniel Jacobowitz <drow@mvista.com>
1779
1780 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1781 trad-frame.h.
1782 (arm_get_cache): Delete macro.
1783 (struct arm_prologue_cache): Update comments. Make saved_regs into
1784 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1785 to prev_sp.
1786 (thumb_scan_prologue): Update for cache changes. Don't call
1787 DEPRECATED_PC_IN_CALL_DUMMY.
1788 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1789 argument and use it in desperation search for our prologue. Do not
1790 search past the specified PC.
1791 (arm_make_prologue_cache): Simplify.
1792
1793 (arm_prologue_this_id, arm_prologue_prev_register)
1794 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1795 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1796 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1797 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1798 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1799
1800 (arm_frame_chain_valid, arm_find_callers_reg)
1801 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1802 (arm_pop_frame): Delete obsolete methods.
1803 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1804
1805 (arm_gdbarch_init): Update for new frame methods. Register prologue
1806 and sigtramp unwinders. Set the default frame base method.
1807
1808 * Makefile.in (arm-tdep.o): Update dependencies.
1809 * varobj.c (find_frame_addr_in_frame_chain): Call
1810 get_frame_base_address.
1811 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1812
24de872b
DJ
18132003-09-03 Daniel Jacobowitz <drow@mvista.com>
1814
1815 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1816 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1817 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1818 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1819 Take NEXT_FRAME and CACHE arguments. Call
1820 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1821 Set unwound_pc in CACHE instead of modifying the frame argument.
1822 Don't bother checking the frame type when looking for sigtramp
1823 frames.
1824 (arm_make_prologue_cache, arm_frame_chain)
1825 (arm_init_extra_frame_info): New functions.
1826
9b8d791a
DJ
18272003-09-03 Daniel Jacobowitz <drow@mvista.com>
1828
1829 * arm-tdep.c (arm_get_cache): Define.
1830 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1831 unwound_sp, unwound_pc, and saved_regs.
1832 (thumb_scan_prologue): Take a cache instead of the frame.
1833 (arm_scan_prologue): Likewise.
1834 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1835 instead of a temporary frame.
1836 (arm_init_extra_frame_info): Allocate and use a cache.
1837 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1838
7ee3275f
AC
18392003-09-03 Andrew Cagney <cagney@redhat.com>
1840
1841 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1842 * config/mips/wince.mt (TM_CLIBS): Ditto.
1843 * config/sh/wince.mt (TM_CLIBS): Ditto.
1844 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1845 * config/sparc/sp64.mt (CC): Delete.
1846
57b29be7
AC
18472003-09-03 Andrew Cagney <cagney@redhat.com>
1848
1849 * defs.h: Do not include "arch-utils.h".
1850 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1851 GDB_MULTI_ARCH_PURE.
1852 * configure.in (GDB_MULTI_ARCH): Do not define.
1853 * configure, config.in: Regenerate.
1854 * configure.tgt: Do not set variable "gdb_multi_arch".
1855 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1856 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1857 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1858 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1859 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1860 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1861 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1862 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1863 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1864 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1865 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1866 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1867 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1868 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1869 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1870 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1871 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1872 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 1873
12e035e2
MC
18742003-08-30 Michael Chastain <mec@shout.net>
1875
1876 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1877 * config/m68k/nm-hp300hpux.h: Delete.
1878 * config/m68k/tm-hp300hpux.h: Delete.
1879 * config/m68k/xm-hp300hpux.h: Delete.
1880 * config/m68k/xm-hp300bsd.h: Delete.
1881 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1882 tm-hp300hpux.h, xm-hp300hpux.h.
1883 * somsolib.c: Remove comment about hp300 shared libraries.
1884
bda34dc2
MK
18852003-08-31 Mark Kettenis <kettenis@gnu.org>
1886
5bca7895
MK
1887 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1888 Only define PTRACE_GET_THREAD_AREA is not already defined.
1889 Various style fixes in code and comments and some additional
1890 spelling fixes in comments. Move after functions dealing with
1891 debug registers.
1892 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1893 Fix coding-style.
1894
bda34dc2
MK
1895 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1896 frame_unwind_register_unsigned instead of
1897 frame_unwind_unsigned_register.
1898
c890192f
MK
18992003-08-30 Mark Kettenis <kettenis@gnu.org>
1900
1901 * configure.in: Search for gethostbyname in libnsl.
1902 * configure: Regenerated.
1903
60fac5b8
MK
19042003-08-29 Mark Kettenis <kettenis@gnu.org>
1905
e294916c
MK
1906 * configure.in: Remove redundant AC_MSG_RESULT in check for
1907 uintptr_t in stdint.h.
1908 * configure: Regenerated.
1909
c40d267a
MK
1910 * amd64-nat.h (struct regcache): Add opaque declaration.
1911
60fac5b8
MK
1912 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1913 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1914 Change "register array" to "register cache" in comments.
1915 (x86_64_linux_gregset64_reg_offset): New variable.
1916 (GETREGS_SUPPLIES): Remove macro.
1917 (supply_gregset): Call amd64_supply_native_gregset instead of
1918 x86_64_linux_supply_gregset.
1919 (fill_gregset): Rename `regno' to `regnum'. Call
1920 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1921 (store_regs): Rename `regno' to `regnum'.
1922 (store_fpregs): Rename `regno' to `regnum'.
1923 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1924 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1925 Reorganize function a bit.
1926 (store_inferior_registers): Rename `regno' to `regnum'. Use
1927 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1928 Reorganize function a bit.
1929 (_initialize_x86_64_linux_nat): New function.
1930 * config/i386/x86-64linux.mh.
1931
546143b6
AC
19322003-08-29 Andrew Cagney <cagney@redhat.com>
1933
1934 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1935 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1936 (target_remove_watchpoint): Delete macro.
1937 (target_insert_watchpoint): Delete macro.
1938 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1939 (remote_mips_stopped_by_watchpoint): Delete declaration.
1940 (remote_mips_remove_watchpoint): Delete declaration.
1941 (remote_mips_set_watchpoint): Delete declaration.
1942 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1943 * remote-mips.c (_initialize_remote_mips): Set
1944 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1945 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1946 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1947 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1948 (mips_stopped_by_watchpoint): Rename
1949 remote_mips_stopped_by_watchpoint.
1950 (mips_can_hardware_watchpoint): Rename
1951 remote_mips_can_use_hardware_watchpoint, update function
1952 signature.
1953
7bace51b
MK
19542003-08-29 Mark Kettenis <kettenis@gnu.org>
1955
b0f5c6f2
MK
1956 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1957 USER_DS. We haven't given them a register number yet.
1958
2a6d284d
MK
1959 * amd64-nat.h: New file.
1960 * amd64-nat.c: New file.
1961 * amd64fbsd-nat.c: Include "amd64-nat.h".
1962 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1963 (amd64fbsd32_r_reg_offset): New variable.
1964 (supply_gregset): Simply call amd64_supply_native_gregset.
1965 (fill_gregset): Rename `regno' to `regnum'. Simply call
1966 amd64_collect_native_gregset.
1967 (fill_fpregset): Rename `regno' to `regnum'.
1968 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1969 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1970 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1971 `fpregset_t'. Call amd64_supply_native_gregset instead of
1972 supply_gregset. Call x86_64_supply_fxsave instead of
1973 supply_fpregset.
1974 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1975 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1976 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1977 `fpregset_t'. Call amd64_collect_native_gregset instead of
1978 fill_gregset. Call x86_64_collect_fxsave instead of
1979 fill_fpregset.
1980 (_initialize_am64fbsd_nat): Initialize
1981 amd64_native_gregset32_reg_offset and
1982 amd64_native_gregset64_reg_offset.
1983 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1984
a16d75cc
MK
1985 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1986 null pointer. Fix typo in comment.
1987
7bace51b
MK
1988 * regcache.c (supply_register): Reimplement to call
1989 regcache_raw_supply.
1990 (regcache_collect): Reimplement by calling regcache_raw_collect.
1991
9a661b68
MK
19922003-08-28 Mark Kettenis <kettenis@gnu.org>
1993
1994 * regcache.c (register_buffer): Consitify first argument.
1995 (regcache_raw_supply, regcache_raw_collect): New
1996 functions.
1997
e94cc8fa
DJ
19982003-08-28 Daniel Jacobowitz <drow@mvista.com>
1999
2000 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2001 by Nathan J. Williams.
2002
c64bd0ce
DJ
20032003-08-28 Daniel Jacobowitz <drow@mvista.com>
2004
2005 * lin-lwp.c (wait_lwp): New function, copied from
2006 stop_wait_callback. Clean up.
2007 (stop_wait_callback): Use wait_lwp.
2008
e5ab0dce
AC
20092003-08-28 Andrew Cagney <cagney@redhat.com>
2010
2011 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2012 flavour and disassembler options.
2013 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2014 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2015 deprecated_tm_print_insn_info.
a8f4cde1 2016
a788de9b
AC
20172003-08-27 Andrew Cagney <cagney@redhat.com>
2018
2019 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2020 Use target_read_memory.
2021 (s390_get_frame_info): Update. Do not reference
2022 deprecated_tm_print_insn_info.
2023 (s390_check_function_end, s390_is_sigreturn): Ditto.
2024
36482093
AC
20252003-08-27 Andrew Cagney <cagney@redhat.com>
2026
2027 * Makefile.in (cris-tdep.o): Update dependencies.
2028 * cris-tdep.c: Include "gdb_assert.h".
2029 (cris_gdbarch_init): Set print_insn.
2030 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2031 (cris_delayed_get_disassembler): Simplify, directly call the
2032 disassembler returned by cris_get_disassembler.
2033 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2034 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2035 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2036 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2037 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2038 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2039 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2040 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2041 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2042 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2043 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2044 (gdb_print_insn_sparc): Delete function.
2045 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2046 deprecated_tm_print_insn_info.
2047 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2048 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2049 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2051 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2052 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2053 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2054 (s390_gdbarch_init): Set print_insn.
2055
0285512f
AC
20562003-08-27 Andrew Cagney <cagney@redhat.com>
2057
2058 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2059 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2060 * infcall.c (call_function_by_hand): Convert the entry point
2061 address into a code address.
2062
cdcd5552
AC
20632003-08-27 Andrew Cagney <cagney@redhat.com>
2064
2065 * dsrec.c: Include "gdb_string.h".
2066 * Makefile.in (dsrec.o): Update dependencies.
2067
e85cddad
MC
20682003-08-27 Michael Chastain <mec@shout.net>
2069
2070 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2071
8bbfbb23
AC
20722003-08-27 Andrew Cagney <cagney@redhat.com>
2073
2074 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2075 (alpha_osf1_init_abi): Do not set call_dummy_address.
2076
ba058b66
DC
20772003-08-27 David Carlton <carlton@kealia.com>
2078
2079 From Randolph Chung <tausq@debian.org>:
2080 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2081 compiles with -Wformat-nonliteral -Werror.
2082
87f84c9d
JB
20832003-08-26 Jim Blandy <jimb@redhat.com>
2084
2085 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2086 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2087 bfd_lookup_symbol, since we only want symbols in code sections.
2088 (look_for_base): Pass zero as the SECT_FLAGS argument to
2089 bfd_lookup_symbol, since we're not concerned about which section
2090 the symbol is in.
2091
102d615a
JJ
20922003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2093
2094 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2095 we are frameless or the return address register is already known.
102d615a 2096
cc7ad3ea
AC
20972003-08-26 Andrew Cagney <cagney@redhat.com>
2098
2099 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2100 in size. Add comments.
2101
af8b88dd
JJ
21022003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2103
2104 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2105 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2106
e0a4f5a1
JM
21072003-08-26 Jason Merrill <jason@redhat.com>
2108
2109 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2110 case out of #ifdef MIPS block.
2111
4ae9ee8e
DJ
21122003-08-25 Daniel Jacobowitz <drow@mvista.com>
2113
2114 PR java/1322
2115 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2116 available before calling SECT_OFF_TEXT.
3c164570 2117 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2118
004d836a
JJ
21192003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2120
a8f4cde1 2121 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2122 bof, and nat0-nat127 as pseudo-registers.
2123 (ia64_frame_cache): New struct used to cache frame info.
2124 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2125 register grouping so registers without names are still saved and
004d836a 2126 restored.
a8f4cde1 2127 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2128 pseudo values.
2129 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2130 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2131 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2132 ia64_frame_cache.
2133 (examine_prologue): Change prototype to add next_frame pointer.
2134 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2135 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2136 alloc insn and if equal, mark as not frameless. At end of routine,
2137 if not frameless, calculate registers for the previous frame and store
2138 in the cache, if a cache is provided.
2139 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2140 and pass 0 for next_frame.
2141 (ia64_store_return_value): Change to use convert_typed_floating()
2142 instead of calling ia64_convert_to_raw().
2143 (ia64_extract_return_value): Change to use convert_typed_floating()
2144 instead of calling ia64_convert_to_virtual().
2145 (ia64_frame_cache): New routine to support new frame model.
2146 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2147 (ia64_frame_sniffer): Ditto.
2148 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2149 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2150 (ia64_sigtramp_frame_prev_register): Ditto.
2151 (ia64_sigtramp_frame_sniffer): Ditto.
2152 (ia64_frame_base_address): Ditto.
2153 (ia64_extract_struct_value_address): Change to issue error message.
2154 (ia64_frame_align): New routine to align sp.
2155 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2156 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2157 ia64_push_dummy_call().
2158 (ia64_push_return_address): Ditto.
2159 (ia64_unwind_dummy_id): New function.
2160 (ia64_unwind_pc): Ditto.
2161 (ia64_convert_register_p): Ditto.
2162 (ia64_register_to_value): Ditto.
2163 (ia64_value_to_register): Ditto.
2164 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2165 (ia64_register_byte, ia64_register_raw_size): Ditto.
2166 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2167 (ia64_saved_pc_after_call): Ditto.
2168 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2169 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2170 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2171 (ia64_register_convert_to_raw): Ditto.
2172 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2173 (ia64_init_extra_frame_info): Ditto.
2174 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2175 (ia64_gdbarch_init): Remove registering of deprecated functions that
2176 are no longer used. Add registration of new gdbarch functions.
2177 Remove registering deprecated_write_sp. Replace
2178 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2179 Delete set_gdbarch_deprecated_register_convertible(),
2180 set_gdbarch_deprecated_register_convert_to_virtual(), and
2181 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2182 set_gdbarch_deprecated_register_size(),
2183 set_gdbarch_deprecated_register_bytes(),
2184 set_gdbarch_pcregnum(),
2185 set_gdbarch_deprecated_register_byte(),
2186 set_gdbarch_deprecated_register_raw_size(),
2187 set_gdbarch_deprecated_max_register_raw_size(),
2188 set_gdbarch_deprecated_register_virtual_size(),
2189 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2190 Replace set_gdbarch_deprecated_extract_return_value() with
2191 set_gdbarch_extract_return_value(). Remove calls to:
2192 set_gdbarch_deprecated_saved_pc_after_call();
2193 set_gdbarch_deprecated_frame_chain(),
2194 set_gdbarch_deprecated_frame_saved_pc(),
2195 set_gdbarch_deprecated_frame_init_saved_regs(),
2196 set_gdbarch_deprecated_get_saved_register(),
2197 set_gdbarch_deprecated_call_dummy_words(),
2198 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2199 set_gdbarch_deprecated_init_extra_frame_info(),
2200 set_gdbarch_deprecated_frame_args_address(),
2201 set_gdbarch_deprecated_frame_locals_address(),
2202 and set_gdbarch_deprecated_dummy_write_sp().
2203 Add set_gdbarch_convert_register_p(),
2204 set_gdbarch_register_to_value(),
2205 set_gdbarch_value_to_register(),
2206 set_gdbarch_push_dummy_call(),
2207 set_gdbarch_frame_align(),
2208 set_gdbarch_unwind_dummy_id(),
2209 set_gdbarch_unwind_pc(),
2210 frame_unwind_append_sniffer(),
2211 frame_unwind_append_sniffer(),
2212 and frame_base_set_default().
2213
aede7613
CD
22142003-08-25 Chris Demetriou <cgd@broadcom.com>
2215
2216 * configure.tgt: Document need for special "mipsisa64" handling.
2217 (mipsisa64*-*-linux64): Handle as target linux64.
2218 (mipsisa64*-*-*): Handle as target embed64.
2219
43c3a82e
MC
22202003-08-18 Michael Chastain <mec@shout.net>
2221
2222 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2223 objfile bug.
2224
6564f77d
MK
22252003-08-24 Mark Kettenis <kettenis@gnu.org>
2226
2de139ba
MK
2227 * i387-tdep.h: Update copyright date.
2228 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2229
6564f77d
MK
2230 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2231 CFLAGS games to reflect reality.
2232
42cf1509
AC
22332003-08-24 Andrew Cagney <cagney@redhat.com>
2234
2235 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2236 GDB_MULTI_ARCH is always non-zero.
2237 * osabi.c (_initialize_gdb_osabi): Ditto.
2238 (gdbarch_init_osabi): Ditto.
2239 * sparc-tdep.c: Ditto for #if code.
2240
0485f6ad
MK
22412003-08-23 Mark Kettenis <kettenis@gnu.org>
2242
2243 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2244 Update comments.
2245 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2246 comments.
2247 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2248 x86_64_supply_fxsave.
2249 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2250 x86_64_supply_fxsave.
2251 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2252 x86_64_supply_fxsave.
2253
c7716133
AJ
22542003-08-23 Andreas Jaeger <aj@suse.de>
2255
2256 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2257 i387_supply_fxsave.
2258
ed504bdf
MK
22592003-08-23 Mark Kettenis <kettenis@gnu.org>
2260
2261 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2262 i387_supply_register.
2263 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2264 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2265 i387_supply_fsave.
2266 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2267 i387_supply_fxsave.
2268 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2269 i387_supply_fsave.
2270 * i386bsd-nat.c (supply_fpregset): Adjust call to
2271 i387_supply_fsave.
2272 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2273 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2274 supply_fpregset.
2275 (store_inferior_registers): Remove extraneous whitespace. Call
2276 i387_fill_fsave instead of fill_fpregset.
2277 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2278 (supply_fpregset): Likewise.
2279 * i386v4-nat.c (supply_fpregset): Adjust call to
2280 i387_supply_fsave.
2281 * i386-interix-nat.c (supply_fpregset): Adjust call to
2282 i387_supply_fsave.
2283 * i386-linux-nat.c (supply_fpregset): Adjust call to
2284 i387_supply_fsave.
2285 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2286 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2287 i387supply_fsave and i387_supply_fxsave.
2288 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2289 Incorporate code from `i387_supply_register.
2290 (i387_supply_register): Remove.
2291 (i387_supply_fxsave): Add `regnum' argument.
2292 Update comments.
2293 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2294 prototype.
2295 (i387_supply_register): remove prototype.
2296 Update comments.
a8f4cde1 2297
4be5d520
MC
22982003-08-22 Michael Chastain <mec@shout.net>
2299
2300 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2301 Add lines for files in gdb/testsuite/gdb.cp/* that are
2302 still not 8.3 unique.
2303
7ed85d26
DJ
23042003-08-22 Daniel Jacobowitz <drow@mvista.com>
2305
2306 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2307 TYPE_VPTR_FIELDNO is valid.
2308
eb0d3137
MK
23092003-08-19 Mark Kettenis <kettenis@gnu.org>
2310
2311 * utils.c (set_width_command): Remove prototypes.
2312 (set_screen_size): New prototype.
2313 (init_page_info): Simplify by fetching the screen size from
2314 Readline. Call set_screen_size.
2315 (set_screen_size): New function.
2316 (set_width): Add missing whitespace in comment.
2317 (set_width_command): Call set_screen_size.
2318 (set_height_command): New function.
2319 (initialize_utils): Fix formatting. Make "set height" command
2320 call set_height_command. Remove redundant code that turns off
2321 pagination if output isn't a terminal. Remove redundant call to
2322 set_width_command.
a8f4cde1 2323
7e6d0ac8
MK
23242003-08-22 Mark Kettenis <kettenis@gnu.org>
2325
3567a8ea
MK
2326 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2327 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2328 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2329 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2330 `case' keyword.
2331 (sparc64_register_info): Give the reister with number
2332 SPARC64_STATE_REGNUM a name.
2333 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2334 %asi and %ccr.
2335 (sparc64_push_dummy_call): Take BIAS into account when checking
2336 stcak alignment.
2337 (sparc_software_single_step): Remove assertions that check whether
2338 NPC and NNPC were zero.
2339 (sparc_supply_rwindow): Make public. Merge functionality with
2340 sparc64_supply_rwindow.
2341 (sparc_fill_rwindow): Make public. Merge functionality with
2342 sparc64_fill_rwindow.
2343 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2344 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2345 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2346 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2347 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2348
7e6d0ac8
MK
2349 * reggroups.c: Add whitespace after declarations of local
2350 variables in functions.
2351
72e5f484
MC
23522003-08-21 Michael Chastain <mec@shout.net>
2353
2354 * gdbtypes.h: Change array bound type from an int to enum.
2355
435ac228
AC
23562003-08-21 Andrew Cagney <cagney@redhat.com>
2357
2358 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2359 * config/sparc/tm-sparc.h: Ditto.
2360 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2361 unconditionally.
2362 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2363
0d0e1a63
MK
23642003-07-13 Mark Kettenis <kettenis@gnu.org>
2365
2366 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2367 (register_objfile_data, set_objfile_data, objfile_data): New
2368 prototypes.
2369 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2370 prototypes.
2371 (allocate_objfile): Call objfile_alloc_data.
2372 (free_objfile): Call objfile_free_data.
2373 (struct objfile_data): New.
2374 (struct objfile_data_registration): New.
2375 (struct objfile_data_registry): New.
2376 (objfile_data_registry): New variable.
2377 (register_objfile_data): New function.
2378 (objfile_alloc_data, objfile_free_data): New functions.
2379 (set_objfile_data, objfile_data): New functions.
2380 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2381 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2382 (_initialize_dwarf2_frame): New function and prototype.
2383
d90cf509
AC
23842003-08-21 Andrew Cagney <cagney@redhat.com>
2385
2386 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2387 a specific architecture.
2388 * arch-utils.h (set_architecture_from_arch_mach): Delete
2389 declaration.
2390 (target_architecture_hook): Delete declaration.
2391 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2392 (default_float_format): Assume GDB_MULTI_ARCH.
2393 (default_double_format): Assume GDB_MULTI_ARCH.
2394 (set_endian_from_file): Delete function.
2395 (arch_ok): Delete function.
2396 (set_arch): Delete function.
2397 (set_architecture_from_arch_mach): Delete function.
2398 (set_architecture_from_file): Delete function.
2399 (set_architecture): Assume GDB_MULTI_ARCH.
2400 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2401
8b39fe56
MK
24022003-08-21 Mark Kettenis <kettenis@gnu.org>
2403
2404 Rewrite FreeBSD/sparc64 native configuration.
2405 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2406 * sparc64fbsd-nat.c: New file.
2407 * sparc64fbsd-tdep.c: New file.
2408 * sparc64-tdep.c sparc64-tdep.h: New files.
2409 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2410 sparc64fbsd-tdep.o): New dependencies.
2411 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2412 and sparc64fbsd-tdep.c.
2413 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2414 * config/sparc/fbsd.mh: Remove copyright notice.
2415 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2416 sparcbsd-nat.o.
2417 * config/sparc/fbsd.mt: Remove copyright notice.
2418 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2419 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2420 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2421 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2422 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2423 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2424 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2425 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2426 "sparc/tm-sp64.h".
2427 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2428 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2429
a7f19c79
MC
24302003-08-21 Michael Chastain <mec@shout.net>
2431
2432 * symtab.h: Add doco on the space critical structures and
2433 some measurements of space usage.
2434
da08ea5b
MS
24352003-08-21 Michael Snyder <msnyder@redhat.com>
2436
2437 * tracepoint.c (trace_dump_command): Trace break address
2438 is subject to DECR_PC_AFTER_BREAK.
2439 (set_traceframe_context): Make "trace_line" an int.
2440 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 2441
6df2bf50
MS
24422003-08-20 Michael Snyder <msnyder@redhat.com>
2443
2444 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
2445 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2446 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 2447 argument passing.
a8f4cde1 2448 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
2449 functions, replace sh_push_dummy_call.
2450 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2451
0955bbf0
MC
24522003-08-20 Michael Chastain <mec@shout.net>
2453
2454 * gdbtypes.h (struct main_type): Rearrange to save space.
2455
260a4188
MS
24562003-08-20 Michael Snyder <msnyder@redhat.com>
2457
2458 * trad-frame.c: Comment typo fix.
2459
8baa6f92
KB
24602003-08-20 Michael Snyder <msnyder@redhat.com>
2461 Kevin Buettner <kevinb@redhat.com>
2462
2463 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2464 (frv_frame_init_saved_regs): Add declaration.
2465 (frame_extra_info): Add new field ``saved_regs''.
2466 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2467 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2468 Update frame related code.
2469 (frv_extract_struct_value_address): Adjust formatting.
2470 * Makefile.in (frv-tdep.o): Update dependencies.
2471 * config/frv/tm-frv.h (target_insert_watchpoint)
2472 (target_remove_watchpoint, target_insert_hw_breakpoint)
2473 (target_remove_hw_breakpoint): Delete these macros.
2474 (remote_insert_watchpoint, remote_remove_watchpoint)
2475 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2476 these declarations.
2477
87193939
MC
24782003-08-20 Michael Chastain <mec@shout.net>
2479
2480 * defs.h (ENUM_BITFIELD): New macro.
2481 * symtab.h (ENUM_BITFIELD): Use it.
2482 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2483
062103ba
SA
24842003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2485
2486 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 2487
8b148df9
AC
24882003-08-18 Andrew Cagney <cagney@redhat.com>
2489
2490 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2491 * gdbarch.h, gdbarch.c: Re-generate.
2492 * infcall.c (call_function_by_hand): Adjust the SP by
2493 frame_red_zone_size before allocating any stack space.
2494 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2495 * x86-64-tdep.c (x86_64_frame_align): New function.
2496 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2497
2498 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2499 Remove code adjusting SP so that it skips over the Red Zone.
2500
954a4db8
MK
25012003-08-18 Mark Kettenis <kettenis@gnu.org>
2502
2503 * NEWS (New native configurations): Mention FreeBSD/amd64.
2504
1a241548
AC
25052003-08-18 Andrew Cagney <cagney@redhat.com>
2506
2507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2508 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2509 "m68k_frame_p".
2510 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2511
f82b2acd
MK
25122003-08-18 Mark Kettenis <kettenis@gnu.org>
2513
2514 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2515
4056d258
ML
25162003-08-18 Michal Ludvig <mludvig@suse.cz>
2517
2518 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2519 Define.
2520 * i386-linux-nat.c: Include "linux-nat.h".
2521 (child_post_startup_inferior): New function.
a8f4cde1 2522
99ab4326
MK
25232003-08-18 Mark Kettenis <kettenis@gnu.org>
2524
2525 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2526 at the start of a frameless function. This probably fixes PR
2527 backtrace/1338.
2528
c8d5f0d6
MC
25292003-08-17 Michael Chastain <mec@shout.net>
2530
2531 * symfile.c (find_sym_fns): Remove special case for apollo target.
2532
9016a515
DJ
25332003-08-17 Daniel Jacobowitz <drow@mvista.com>
2534
2535 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2536 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2537 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2538 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2539 (linux_supports_tracevforkdone): New function.
2540 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2541 TRACEVFORKDONE.
2542 (child_follow_fork): Handle vfork.
2543 (linux_handle_extended_wait): Likewise. Also handle exec.
2544 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2545 * NEWS: Mention fork tracing.
2546
c538c11c
DJ
25472003-08-17 Daniel Jacobowitz <drow@mvista.com>
2548
2549 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2550
4de4c07c
DJ
25512003-08-17 Daniel Jacobowitz <drow@mvista.com>
2552
2553 * Makefile.in (i386-linux-nat.o): Update dependencies.
2554 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2555 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2556 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2557 * i386-linux-nat.c: Include "linux-nat.h".
2558 (child_post_startup_inferior): New function.
2559 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2560 * infptrace.c (kill_inferior): Wrap in #ifdef.
2561 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2562 attaching to each LWP.
2563 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2564 (init_lin_lwp_ops): Fill in some more operations.
2565 * linux-nat.h (linux_enable_event_reporting)
2566 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2567 prototypes.
2568 * linux-nat.c (linux_enable_event_reporting): New function.
2569 (child_post_attach, linux_child_post_startup_inferior)
2570 (child_post_startup_inferior, child_follow_fork)
2571 (linux_handle_extended_wait, kill_inferior): New functions.
2572
7996bcec
AC
25732003-08-16 Andrew Cagney <cagney@redhat.com>
2574
2575 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2576 * gdbarch.h, gdbarch.c: Re-generate.
2577
3d48a7a0
MK
25782003-08-16 Mark Kettenis <kettenis@gnu.org>
2579
2580 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2581
7989c619
AC
25822003-08-16 Andrew Cagney <cagney@redhat.com>
2583
2584 * NEWS: Mention that "set prompt-escape-char" was deleted.
2585 * top.c (get_prompt_1): Delete function.
2586 (gdb_prompt_escape):
2587 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2588 prompt-escape-char" command.
2589 (MAX_PROMPT_SIZE): Delete macro.
2590 (get_prompt): Simplify, do not call get_prompt_1.
2591
07978cd8
AC
25922003-08-16 Andrew Cagney <cagney@redhat.com>
2593
2594 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2595 -Werror. -Wformat-nonliteral problems.
2596
3ff7cf9e
JB
25972003-08-15 J. Brobecker <brobecker@gnat.com>
2598
2599 Further multiarching work mostly for hppa64-*-hpux11:
2600 * hppa-tdep.h: New file.
2601 * hppa-tdep.c: #include hppa-tdep.c.
2602 (hppa32_num_regs): Renamed from hppa_num_regs.
2603 (hppa64_num_regs): New constant.
2604 (hppa64_call_dummy_breakpoint_offset): New constant.
2605 (hppa32_call_dummy_length): New constant.
2606 (hppa64_call_dummy_length): New constant.
2607 (hppa32_stack_align): Make name 32bit explicit.
2608 (hppa32_register_virtual_type): Likewise.
2609 (hppa32_extract_return_value): Likewise.
2610 (hppa32_use_struct_convention): Likewise.
2611 (hppa32_store_return_value): Likewise.
2612 (hppa64_register_virtual_type): New function.
2613 (hppa64_extract_return_value): New function.
2614 (hppa64_use_struct_convention): New function.
2615 (hppa64_store_return_value): New function.
2616 (hppa_frame_locals_address): Remove declaration, function does
2617 not exist anymore.
2618 (hppa_register_byte): Add support for PA64 ABI.
2619 (hppa_gdbarch_init): Add support for PA64 ABI.
2620 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2621 Make name 32bit explicit.
2622 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2623 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2624 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2625 (hppa64_hpux_frame_base_before_sigtramp): New function.
2626 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2627 * config/pa/tm-hppa64.h: Remove macros that are no longer
2628 necessary now that the gdbarch vector is properly setup.
a8f4cde1 2629 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
2630 * config/pa/tm-hppah.h: Update function calls in macros
2631 following the function renaming in hppa-hpux-tdep.c.
2632 * Makefile.in (hppa_tdep_h): New variable.
2633 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2634
5d05ca6d
MS
26352003-08-14 Michael Snyder <msnyder@redhat.com>
2636
2637 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2638
37ba2569
JB
26392003-08-13 J. Brobecker <brobecker@gnat.com>
2640
2641 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2642 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2643 routine.
2644
aed7f26a
MS
26452003-08-13 Michael Snyder <msnyder@redhat.com>
2646
2647 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2648 (frv_saved_pc_after_call): Use deprecated ftype.
2649 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2650 (frv_remote_translate_xfer_address): Remove.
2651 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2652
752d4ac1
JB
26532003-08-13 J. Brobecker <brobecker@gnat.com>
2654
2655 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2656 initialization after the common gdbarch initialization, not before.
2657
1426ac1d
JB
26582003-08-13 J. Brobecker <brobecker@gnat.com>
2659
2660 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2661 (ADDR_BITS_REMOVE): Remove, redundant.
2662
b6fbdd1d
JB
26632003-08-13 J. Brobecker <brobecker@gnat.com>
2664
2665 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2666 gdbarch method to clear the 2 low bits of text addresses.
2667
44160db3
AC
26682003-08-12 Andrew Cagney <cagney@redhat.com>
2669
2670 * Makefile.in (dsrec.o): Update dependencies.
2671 * dsrec.c: Include "gdb_assert.h".
2672 (make_srec): Use snprintf instead of sprintf, use a literal format
2673 string.
2674
bcf7d3ca
AC
26752003-08-12 Andrew Cagney <cagney@redhat.com>
2676
2677 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2678 FRAME_OBSTACK_ZALLOC.
2679
49ed40de
KB
26802003-08-12 Kevin Buettner <kevinb@redhat.com>
2681
2682 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2683 SSE registers.
2684
b246147c
MK
26852003-08-10 Mark Kettenis <kettenis@gnu.org>
2686
2687 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2688 amd64fbsd_sc_reg_offset): Add extern declarations.
2689 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2690 declarations.
2691
d95fdc0d
BE
26922003-08-11 Ben Elliston <bje@wasabisystems.com>
2693
2694 * MAINTAINERS (write after approval): Update my mail address.
2695
cf6a0e73
AC
26962003-08-10 Andrew Cagney <cagney@redhat.com>
2697
2698 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2699
f837910f
MK
27002003-08-10 Mark Kettenis <kettenis@gnu.org>
2701
e2dbbd2d
MK
2702 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2703 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2704 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2705 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2706 i386bsd_sc_reg_offset): Add extern declarations.
2707 * i386obsd-nat.c: Include "i386-tdep.h"
2708 (_initialize_i386obsd_nat): Remove extern declarations.
2709 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2710 declarations.
2711 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2712 declarations.
2713
f837910f
MK
2714 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2715 instead of frame_read_register.
2716 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2717 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2718 SP_REGNUM.
2719 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2720 instead of frame_unwind_unsigned_register. Use
2721 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2722 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2723 instead of read_register. Use builtin_type_void_data_ptr instead
2724 of builtin_type_void_func_ptr when extracting the address of the
2725 jmp_buf.
2726 (i386_extract_return_value, i386_store_return_value,
2727 i386_pseudo_register_read, i386_pseudo_register_write): Use
2728 register_size instead REGISTER_RAW_SIZE.
2729
edcf254d
AC
27302003-08-10 Andrew Cagney <cagney@redhat.com>
2731
2732 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2733 sprintf. Make "name" constant.
2734
26604a34
MK
27352003-08-10 Mark Kettenis <kettenis@gnu.org>
2736
192285c6
MK
2737 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2738 instead of frame_read_register.
f837910f
MK
2739 (i387_print_float_info): Use get_frame_register and
2740 get_frame_register_unsigned instead of frame_register_read.
192285c6 2741
f0925262
MK
2742 * i386fbsd-nat.c: Include "i386-tdep.h".
2743 (child_resume): Make `eflags' an ULONGEST. Use
2744 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2745 instead of register_read and register_write.
2746
a144416f
MK
2747 * i386bsd-nat.c (fetch_inferior_registers,
2748 store_inferior_registers): Don't use && at the end of a line.
2749 (_initialize_i386bsd_nat): Fix typo.
2750
fec74868
MK
2751 * frame.c (_initialize_frame): Add missing backslash.
2752
87232496
MK
2753 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2754 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2755 and supply_register instead of manipulating the register buffer
2756 directly.
2757
c9b9de0b
MK
2758 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2759 * config/i386/nm-i386sol2.h
2760 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2761
26604a34
MK
2762 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2763 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2764 instructions that GCC likes to mingle into the prologue. Fixes
2765 gdb/1253 and gdb/1255.
2766
25d29d70
AC
27672003-08-09 Andrew Cagney <cagney@redhat.com>
2768
2769 Fix GDB PR cli/926.
2770 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2771 * command.h (add_setshow_uinteger_cmd): Declare.
2772 * frame.c (set_backtrace_cmd): New function.
2773 (show_backtrace_cmd): New function.
2774 * frame.c (_initialize_frame): Replace "set/show
2775 backtrace-below-main" with "set/show backtrace past-main". Add
2776 command "set/show backtrace limit".
2777 (backtrace_past_main): Rename "backtrace_below_main".
2778 (backtrace_limit): New variable.
2779 (get_prev_frame): Update. Check the backtrace_limit.
2780
9ebf4acf
AC
27812003-08-09 Andrew Cagney <cagney@redhat.com>
2782
2783 * defs.h (xstrprintf): Declare.
2784 * utils.c (xstrprintf): New function.
2785 * breakpoint.c (insert_breakpoints): Replace sprintf and
2786 non-literal format strings, with xstrprintf and cleanups.
2787 (delete_breakpoint,breakpoint_re_set): Ditto.
2788 (commands_command, insert_breakpoints): Ditto.
2789 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2790 (break_at_finish_command_1): Ditto.
2791
3771659b
AC
27922003-08-09 Andrew Cagney <cagney@redhat.com>
2793
2794 * MAINTAINERS (language support): List Adam Fedor as Objective C
2795 maintainer.
2796
b4263afa
JB
27972003-08-08 J. Brobecker <brobecker@gnat.com>
2798
2799 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2800 are now multiarched.
2801
d84defb1
JB
28022003-08-08 J. Brobecker <brobecker@gnat.com>
2803
2804 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2805 longer necessary now that hppa64 is partially multiarch'ed.
2806
f786f615
AC
28072003-08-08 Andrew Cagney <cagney@redhat.com>
2808
2809 * interps.c (interp_set): Check for a NULL "old_interp".
2810
c938e9b0
L
28112003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2812
2813 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2814 (install-only): Support DESTDIR.
2815 (uninstall): Likewise.
2816 (install-gdbtk): Likewise.
2817
9a146a11
EZ
28182003-08-08 Elena Zannoni <ezannoni@redhat.com>
2819
2820 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2821 contains something meaningful at all times.
2822
2823Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2824
62599e99 2825 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2826
56296155
BC
2827Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2828
62599e99 2829 * MAINTAINERS (write after approval): Added self.
56296155 2830
9710e734
AC
28312003-08-07 Andrew Cagney <cagney@redhat.com>
2832
2833 * inferior.h (AT_SYMBOL): Define.
2834 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2835 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2836 * mips-tdep.c (mips_call_dummy_address): Delete function.
2837 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2838 set call_dummy_address.
2839
98b3ab73
AC
28402003-08-07 Andrew Cagney <cagney@redhat.com>
2841
2842 * language.c (op_error): Delete function.
2843 (binop_type_check): Delete function.
2844 * language.h (type_op_error, range_op_error): Delete macros.
2845 (op_error): Delete declaration.
2846
2fcf52f0
AC
28472003-08-07 Andrew Cagney <cagney@redhat.com>
2848
2849 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2850
abd4220e 28512003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2852
abd4220e 2853 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2854 (x86_64_push_arguments): Skip the red zone.
abd4220e 2855
9dd5f34f
AC
28562003-08-05 Andrew Cagney <cagney@redhat.com>
2857
2858 * reggroups.c (reggroup_next): Check for the final entry.
2859
e5e78edc
AC
28602003-08-04 Andrew Cagney <cagney@redhat.com>
2861
ab4e3d93
AC
2862 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2863 * cli/cli-script.c (define_command): Call query directly, instead
2864 of passing it a buffer.
2865 * ocd.c (ocd_error): Pass error a constant format string.
2866 * remote-mips.c (mips_error): Use fputs_filtered.
2867
1062ca82
AC
2868 * solib-svr4.c (_initialize_svr4_solib): Update
2869 register_gdbarch_data call.
2870 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2871
fcc1c85c
AC
2872 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2873 (register_gdbarch_data): Delete "free" parameter. Update
2874 comments.
2875 * gdbarch.h, gdbarch.c: Re-generate.
2876 * reggroups.c (_initialize_reggroup): Update.
2877 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2878 * frame-base.c (_initialize_frame_base): Update.
2879 * frame-unwind.c (_initialize_frame_unwind): Update.
2880 * user-regs.c (_initialize_user_regs): Update.
2881 * remote.c (_initialize_remote): Update.
2882 * regcache.c (_initialize_regcache): Update.
2883
116f06ea
AC
2884 * regcache.c (xfree_regcache_descr): Delete function.
2885 (_initialize_regcache): Update call to register_gdbarch_data.
2886 (init_regcache_descr, init_legacy_regcache_descr): Use
2887 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2888
e5e78edc
AC
2889 * remote.c (free_remote_state): Delete function.
2890 (_initialize_remote): Update register_gdbarch_data.
2891 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2892 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2893
6c7d17ba
AC
28942003-08-04 Andrew Cagney <cagney@redhat.com>
2895
2896 * reggroups.c (struct reggroup_el): Define.
2897 (struct reggroups): Delete field "nr_group". Replace array
2898 "group" with a "first" to "last" linked list.
2899 (reggroups_init): Update. Allocate using gdbarch's obstack.
2900 (reggroups_free): Delete function.
2901 (add_group): Update. Add "el" parameter.
2902 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2903 (default_groups): Update.
2904 (reggroup_next): Replace reggroups.
2905 (reggroups_dump): Update.
2906 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2907 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2908 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2909
89b7795b
DJ
29102003-08-04 Daniel Jacobowitz <drow@mvista.com>
2911
2912 * Makefile.in (tui-interp.o): Update dependencies.
2913
306d9ac5
DC
29142003-08-04 David Carlton <carlton@kealia.com>
2915
2916 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2917 to internal_error call.
2918 * source.c (forward_search_command): Add "%s" format argument.
2919 (reverse_search_command): Ditto.
2920 * top.c (quit_confirm): Ditto.
2921 * cli/cli-setshow.c (do_setshow_command): Ditto.
2922 * cp-valprint.c (cp_print_class_method): Replace
2923 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2924 (cp_print_class_member): Ditto.
2925 * event-top.c (command_line_handler): Ditto.
2926 * linux-proc.c (linux_info_proc_cmd): Ditto.
2927 * p-typeprint.c (pascal_type_print_base): Ditto.
2928 * p-valprint.c (pascal_object_print_class_method): Ditto.
2929 (pascal_object_print_class_member): Ditto.
2930 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2931 * remote.c (remote_cisco_section_offsets): Ditto.
2932 * top.c (command_line_input): Ditto.
2933 * utils.c (vwarning,error_stream,quit): Ditto.
2934 * valprint.c (print_floating,print_binary_chars)
2935 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2936
57bfe177
AC
29372003-08-04 Andrew Cagney <cagney@redhat.com>
2938
2939 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2940
e546b999
AC
29412003-08-02 Andrew Cagney <cagney@redhat.com>
2942
2943 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2944 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2945 amd64fbsd-nat.c.
2946
91092ee5
AC
29472003-08-02 Andrew Cagney <cagney@redhat.com>
2948
2949 * Makefile.in: Update all dependencies and definitions.
2950
889f28e2
AF
29512003-08-02 Adam Fedor <fedor@gnu.org>
2952
2953 * linespec.c (is_objc_method_format): New function
2954 (decode_line_1, locate_first_half): Use it.
2955 Fixes PR objc/1298
2956
880bc914
AC
29572003-08-01 Andrew Cagney <cagney@redhat.com>
2958
2959 * NEWS: Mention that m32r is multi-arch.
2960 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2961 * configure.tgt: Recognize m32r-*-*.
2962 * config/m32r/tm-m32r.h: Delete file.
2963 * config/m32r/m32r.mt: New file.
a8f4cde1 2964 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
2965 gethostname succeeds, in order to avoid a compilation
2966 warning.
2967 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2968 compiler warning.
2969
19f59343
MS
29702003-08-01 Michael Snyder <msnyder@redhat.com>
2971
2972 * sh-tdep.c (sh_frame_align): New gdbarch method.
2973 (sh_gdbarch_init): Set up frame_align method.
2974
4e7d7511
MS
29752003-07-31 Michael Snyder <msnyder@redhat.com>
2976
2977 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2978 which is already covered by the new frames infrastructure.
2979
63022984
AC
29802003-07-31 Andrew Cagney <cagney@redhat.com>
2981
2982 * user-regs.c (struct user_reg): Add "next" link.
2983 (struct user_regs): Replace "user" with "first" and "last" links.
2984 (append_user_reg): Add pre-allocated "reg" parameter.
2985 (builtin_user_regs): Provide initial value for "last".
2986 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2987 (user_regs_init): Allocate memory from the gdbarch obstack.
2988 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2989 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2990 linked list.
2991 (usernum_to_user_reg): New function.
2992 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2993 (value_of_user_reg): Use usernum_to_user_reg.
2994 (user_regs_free): Delete function.
2995 (_initialize_user_regs): Update register_gdbarch_data call.
2996
7cf6e574
DJ
29972003-07-31 Daniel Jacobowitz <drow@mvista.com>
2998
2999 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3000
c48a845b
MS
30012003-07-30 Michael Snyder <msnyder@redhat.com>
3002
4e7d7511 3003 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 3004 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
3005 value_being_returned.
3006 * infcmd.c (print_return_value): Pass zero as struct_addr.
3007 * values.c (value_being_returned): If struct_addr is passed,
3008 use it instead of trying to recover it from the inferior.
3009
f0d8db19
KB
30102003-07-30 Kevin Buettner <kevinb@redhat.com>
3011
3012 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3013 the prologue analyzer won't need to attempt to extract the pc
3014 value from the woefully incomplete dummy frame.
3015 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3016 possible. Disable code which modifies the frame.
3017
e5c113a1
AC
30182003-07-28 Andrew Cagney <cagney@redhat.com>
3019
3020 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3021 to level 2.
3022 (annotate_breakpoints_table, annotate_record): Ditto.
3023 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3024 (annotate_field_name_end, annotate_field_value): Ditto.
3025 (annotate_field_end, annotate_frame_source_begin): Ditto.
3026 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3027 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3028 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3029 (annotate_frame_address_end, annotate_frame_address): Ditto.
3030 (annotate_frame_args, annotate_frame_end): Ditto.
3031 (annotate_frame_where, annotate_arg_begin): Ditto.
3032 (annotate_arg_name_end, annotate_arg_value): Ditto.
3033 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3034 (annotate_function_call, annotate_signal_name): Ditto.
3035 (annotate_signal_string, annotate_signal_name_end): Ditto.
3036 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3037 (annotate_value_begin, annotate_value_history_value): Ditto.
3038 (annotate_value_history_end, annotate_value_end): Ditto.
3039 (annotate_display_begin, annotate_display_number_end): Ditto.
3040 (annotate_display_format, annotate_display_expression): Ditto.
3041 (annotate_display_expression_end, annotate_display_value): Ditto.
3042 (annotate_display_end, annotate_array_section_begin): Ditto.
3043 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3044 (annotate_elt, annotate_array_section_end): Ditto.
3045
bb1db049
AC
30462003-07-28 Andrew Cagney <cagney@redhat.com>
3047
3048 * regcache.c (struct regcache_descr): Update comments on
3049 nr_raw_registers.
3050 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3051 sizeof_raw_register_valid_p.
3052 (init_regcache_descr): Set nr_raw_registers and
3053 sizeof_raw_register_valid_p before calling
3054 init_legacy_regcache_descr.
3055
20e6603c
AC
30562003-07-28 Andrew Cagney <cagney@redhat.com>
3057
3058 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3059 MOD NUM_REGS.
3060
db742940
DJ
30612003-07-28 Daniel Jacobowitz <drow@mvista.com>
3062
3063 * thread.c (info_threads_command): Use get_selected_frame ().
3064 Check that there is at least one non-sentinel frame.
3065
ce7f4371
SC
30662003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3067
3068 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3069 (m68hc11_pop_frame): Remove.
3070 (m68hc11_frame_saved_pc): Remove.
3071 (m68hc11_frame_chain): Remove.
3072 (m68hc11_frame_init_saved_regs): Remove.
3073 (m68hc11_init_extra_frame_info): Remove.
3074 (m68hc11_store_struct_return): Remove.
3075 (m68hc11_saved_pc_after_call): Remove.
3076
1ea653ae
SC
30772003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3078
3079 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3080 frame unwind information.
3081 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3082 and adapted for frame unwinding.
3083 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3084 (m68hc11_unwind_pc): New function.
3085 (m68hc11_frame_unwind_cache): New function to analyze frames.
3086 (m68hc11_frame_this_id): New function to create new frame struct.
3087 (m68hc11_frame_prev_register): New function to unwind a register from
3088 the frame.
3089 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3090 (m68hc11_frame_p): New function for the above.
3091 (m68hc11_frame_base_address): New function to return fp of frame.
3092 (m68hc11_frame_args_address): Update for frame.
3093 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3094 (m68hc11_unwind_sp): New function.
3095 (m68hc11_unwind_dummy_id): New function.
3096 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3097 calls.
3098
c8a7f6ac
SC
30992003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3100
3101 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3102 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3103 when we are beyond the current pc.
3104
3dc990bf
SC
31052003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3106
3107 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3108 from m68hc11_push_arguments.
3109 (m68hc11_push_arguments): Remove.
3110 (m68hc11_push_return_address): Remove.
3111 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3112 handlers; remove deprecated_extra_stack_alignment_needed.
3113
222e5d1d
AC
31142003-07-27 Andrew Cagney <cagney@redhat.com>
3115
3116 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3117 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3118 REAL_PC and not the pointer.
3119 * hppa-hpux-tdep.c: Include frame.h
3120
a7e9a47e
AC
31212003-07-27 Andrew Cagney <cagney@redhat.com>
3122
3123 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3124 GDB_MULTI_ACH_PARTIAL.
3125
7e3dd49e
AC
31262003-07-27 Andrew Cagney <cagney@redhat.com>
3127
3128 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3129 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3130 operator at start and not end of line.
3131 (decode_prologue): Ditto.
3132 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3133 frame_unwind_register_unsigned instead of
3134 frame_unwind_unsigned_register.
3135 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3136 read_register.
3137 (m32r_push_dummy_call): Use register_size instead of
3138 REGISTER_RAW_SIZE.
3139 (m32r_frame_sniffer): Replace m32r_frame_p.
3140 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3141 * m32r-rom.c (report_transfer_performance): Delete extern
3142 declaration.
3143 (m32r_load, m32r_upload_command): Use print_transfer_performance
3144 instead of report_transfer_performance.
3145 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3146 / add_show_from_set.
3147
0880807f
AC
31482003-07-26 Andrew Cagney <cagney@redhat.com>
3149
3150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3151 store_return_value and extract_struct_value_address.
3152
64ae9269
DJ
31532003-07-26 Daniel Jacobowitz <drow@mvista.com>
3154
3155 PR c++/1267
3156 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3157 NULL, default to the section containing PC.
3158
e286caf2
SC
31592003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3160
3161 * NEWS: Mention "regs" deprecated for m68hc11 too.
3162
3163 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3164 (m68hc11_print_register): New function to print out one register.
3165 (m68hc11_print_registers_info): New function to print registers.
3166 (show_regs): Deprecate and use the above.
3167 (m68hc11_gdbarch_init): Install the print_registers_info.
3168
705b278b
JJ
31692003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3170
3171 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3172 that we have a SIGTRAP before returning non-zero.
3173
63cd4198
EZ
31742003-07-23 Michal Ludvig <mludvig@suse.cz>
3175 Elena Zannoni <ezannoni@redhat.com>
3176
a8f4cde1 3177 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3178 find_function_start_sal() returns empty record.
3179
6926787d
AS
31802003-07-23 Andreas Schwab <schwab@suse.de>
3181
3182 * ia64-tdep.c (ia64_print_insn): New function.
3183 (ia64_gdbarch_init): Set print_insn to it.
3184 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3185 deprecated_tm_print_insn_info.
3186
708cc1b6
MS
31872003-07-22 Michael Snyder <msnyder@redhat.com>
3188
3189 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3190 handle 8-bit returns (long long).
3191 (h8300h_extract_return_value): Ditto.
3192 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3193
aebd7893
AC
31942003-07-22 Andrew Cagney <cagney@redhat.com>
3195
3196 * gdbarch.c Include "gdb_obstack.h".
3197 (struct gdbarch): Add an "obstack".
3198 (alloc_gdbarch_data): Allocate the gdbarch data using
3199 GDBARCH_OBSTACK_CALLOC.
3200 (free_gdbarch_data): Delete function.
3201 (gdbarch_obstack_zalloc): New function.
3202 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3203 Assert that the architecture is not initialized.
3204 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3205 vector from the obstack.
3206 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3207 architecture obstack.
3208 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3209 (set_gdbarch_data): Assert that the data is not initialized.
3210 (struct gdbarch_data): Delete member "free".
3211 (register_gdbarch_data): Do not initialize "free".
3212 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3213
153721e6
AC
32142003-07-22 Andrew Cagney <cagney@redhat.com>
3215
3216 * configure.in (build_warnings): Add -Wformat-nonliteral.
3217 * configure: Re-generate.
3218
c193f044 32192003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3220
3221 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3222
c3228f12
EZ
32232003-07-22 Elena Zannoni <ezannoni@redhat.com>
3224
3225 * findvar.c (read_var_value): Remove case for thread local storage
3226 variables. It is now entirely handled by the dwarf2 location
3227 expression code.
3228 * printcmd.c (address_info): Ditto.
3229 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3230 enumeration value.
3231 (struct symbol): Remove objfile field, which was used by
3232 LOC_THREAD_LOCAL_STATIC only.
3233 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3234 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3235 usage of objfile pointer.
3236 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3237 thread local variables.
3238 Add include of objfiles.h.
3239 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3240 storage variables.
3241 * Makefile.in (dwarf2loc.o): Update dependencies.
3242
aef9bcd2
AC
32432003-07-22 Andrew Cagney <cagney@redhat.com>
3244
3245 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3246 get_frame_base.
3247 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3248 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3249 (struct value): Add opaque declaration.
3250 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3251
d95a8903
AC
32522003-07-21 Andrew Cagney <cagney@redhat.com>
3253
3254 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3255 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3256
4db73d49
SC
32572003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3258
a8f4cde1 3259 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3260 regcache_cooked_read_unsigned instead of read_register.
3261 (m68hc11_saved_pc_after_call): Likewise.
3262 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3263 instead of write_register.
3264 (m68hc11_register_type): New function.
3265 (m68hc11_register_virtual_type): Remove.
3266 (m68hc11_store_return_value): Convert to use the regcache.
3267 (m68hc11_extract_struct_value_address): Likewise.
3268 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3269 m68hc11_register_type; undeprecate store_return_value and
3270 extract_struct_value_address.
3271
ef2b8fcd
SC
32722003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3273
3274 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3275 and translate to use regcache.
3276 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3277
625b0b97
AC
32782003-07-18 Andrew Cagney <cagney@redhat.com>
3279
3280 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3281 * gdbarch.h, gdbarch.c: Re-generate.
3282 * i386-tdep.c (i386_gdbarch_init): Do not set
3283 DWARF2_BUILD_FRAME_INFO.
3284 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3285 unconditionally.
3286 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3287 DWARF2_BUILD_FRAME_INFO.
3288
22b0d388
AC
32892003-07-18 Andrew Cagney <cagney@redhat.com>
3290
3291 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3292 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3293
1ce5d6dd
AC
32942003-07-18 Andrew Cagney <cagney@redhat.com>
3295
3296 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3297 frame_unwind_address_in_block, instead of frame_pc_unwind.
3298 (dwarf2_frame_cache): Ditto.
3299
e6e5e94c
AC
33002003-07-18 Andrew Cagney <cagney@redhat.com>
3301
3302 * user-regs.h (struct gdbarch): Declare opaque.
3303 * ui-out.h (struct ui_file): Declare opaque.
3304 * dwarf2-frame.h (struct frame_info): Declare opaque.
3305
5483d879
KW
33062003-07-18 Kris Warkentin <kewarken@qnx.com>
3307
3308 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3309 #include "...".
3310 (procfs_meminfo): Change strerror to safe_strerror.
3311 (procfs_can_run): Remove K&R badness.
3312
278a7cf7
MS
33132003-07-17 Michael Snyder <msnyder@redhat.com>
3314
3315 * remote-sim.c: Comment typo fix.
3316
606e3b82
AC
33172003-07-17 Andrew Cagney <cagney@redhat.com>
3318
3319 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3320 configure.
3321 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3322 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3323 GDB_MULTI_ARCH_PARTIAL.
3324
c43af07c
EZ
33252003-07-17 Elena Zannoni <ezannoni@redhat.com>
3326
3327 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3328 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3329 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3330
3b85b0f1
TR
33312003-07-16 Theodore A. Roth <troth@openavr.org>
3332
3333 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3334 found.
3335 (avr_frame_unwind_cache): Don't unwind FP for main.
3336 Update a comment.
3337 Save the computed prev_sp.
3338 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 3339 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
3340 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3341
336d1bba
AC
33422003-07-16 Andrew Cagney <cagney@redhat.com>
3343
3344 * frame-base.h (frame_base_p_ftype): Delete definition.
3345 (frame_base_append_predicate): Delete declaration.
3346 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3347 (frame_unwind_append_predicate): Delete declaration.
3348 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3349 (append_predicate): Delete parameter "p".
3350 (frame_unwind_append_predicate): Delete function.
3351 (frame_unwind_append_sniffer): Update call to append_predicate.
3352 (frame_unwind_free): Delete function.
3353 (_initialize_frame_unwind): Pass NULL as "free" to
3354 register_gdbarch_data.
3355 (frame_unwind_init): Append the dummy_frame_sniffer.
3356 (frame_unwind_find_by_frame): Simplify.
3357 * frame-base.c (struct frame_base_table): Delete field "p".
3358 (append_predicate): Delete parameter "p".
3359 (frame_base_append_predicate): Delete function.
3360 (frame_base_append_sniffer): Update call to append_predicate.
3361 (frame_base_free): Delete function.
3362 (frame_base_find_by_frame): Simplify.
3363 (_initialize_frame_base): Pass NULL as "free" to
3364 register_gdbarch_data.
3365 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3366 (x86_64_sigtramp_frame_sniffer): Replace
3367 "x86_64_sigtramp_frame_p".
3368 (x86_64_init_abi): Set the frame unwind sniffers.
3369 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3370 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3371 (m68k_gdbarch_init): Set the frame unwind sniffers.
3372 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3373 "i386_sigtramp_frame_p".
3374 (i386_frame_sniffer): Replace "i386_frame_p".
3375 (i386_gdbarch_init): Set the frame unwind sniffers.
3376 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3377 (avr_gdbarch_init): Set the frame unwind sniffers.
3378 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3379 "alpha_sigtramp_frame_p"
3380 (alpha_heuristic_frame_sniffer): Replace
3381 "alpha_heuristic_frame_p".
3382 (alpha_gdbarch_init): Set the frame unwind sniffers.
3383 (alpha_dwarf2_init_abi): Ditto.
3384 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3385 "alpha_debug_frame_p".
3386 (alpha_mdebug_frame_base_sniffer): Replace
3387 "alpha_mdebug_frame_base_p".
3388 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3389 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3390 (d10v_gdbarch_init): Set the frame unwind sniffer.
3391 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3392 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3393 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3394 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3395 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3396 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3397
48db5a3c
CV
33982003-07-16 Michael Snyder <msnyder@redhat.com>
3399
3400 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3401 should go thru sh_dsp_register_sim_regno, else the dsp regs
3402 will not get the right values.
3403
34042003-07-16 Corinna Vinschen <vinschen@redhat.com>
3405
3406 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3407 deprecated_store_floating by call to store_typed_floating.
3408 (sh_sh4_register_convert_to_raw): Substitute call to
3409 deprecated_extract_floating by call to extract_typed_floating.
3410
34112003-07-16 Corinna Vinschen <vinschen@redhat.com>
3412
3413 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3414
34152003-07-16 Corinna Vinschen <vinschen@redhat.com>
3416
3417 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3418 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3419 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3420 as possible.
3421 (do_pseudo_register): Remove.
3422 (sh_push_dummy_code): New function.
3423 (sh64_store_struct_return): Rename from sh_store_struct_return.
3424 Only called for sh64 now.
3425 (sh_extract_struct_value_address): Regcache'ify.
3426 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3427 and accomodate new tasks.
3428 (sh64_push_return_address): Rename from sh_push_return_address.
3429 Only called for sh64 now.
3430 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3431 Regcache'ify.
3432 (sh3e_sh4_extract_return_value): Regcache'ify.
3433 (sh_default_store_return_value): Ditto.
3434 (sh3e_sh4_store_return_value): Ditto.
3435 (sh_default_register_byte): Remove.
3436 (sh_sh4_register_byte): Remove.
3437 (sh_default_register_raw_size): Remove.
3438 (sh_sh4_register_raw_size): Remove.
3439 (sh_register_virtual_size): Remove.
3440 (sh_sh3e_register_virtual_type): Remove.
3441 (sh_sh3e_register_type): New function.
3442 (sh_sh4_register_virtual_type): Remove.
3443 (sh_sh4_register_type): New function.
3444 (sh_default_register_virtual_type): Remove.
3445 (sh_default_register_type): New function.
3446 (do_fv_register_info): Add parameters to accomodate call from
3447 sh_print_registers_info.
3448 (do_dr_register_info): Ditto.
3449 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3450 Add parameters to accomodate call from sh_print_registers_info.
3451 (sh_do_fp_register): Ditto.
3452 (sh64_do_pseudo_register): Call do_dr_register_info,
3453 do_fv_register_info and sh_do_fp_register with default parameters.
3454 (sh_do_register): Add parameters to accomodate call from
3455 sh_print_registers_info.
3456 (sh_print_register): Ditto.
3457 (sh_print_registers_info): Rename from sh_do_registers_info.
3458 Add parameters to be used as gdbarch_print_registers_info
3459 implementation. Accomodate removed do_pseudo_register function
3460 pointer.
3461 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3462 function pointer. Call sh_print_register with default parameters.
3463 (sh64_do_registers_info): Call sh_print_registers_info instead of
3464 sh_do_registers_info.
3465 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3466 detection of deprecated vs. non-deprecated functionality.
3467 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3468 function pointer assignments by direct function calls.
3469
e8a89fe2
AC
34702003-07-15 Andrew Cagney <cagney@redhat.com>
3471
3472 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3473 (frame_register_unwind, create_new_frame): Ditto.
3474 (legacy_get_prev_frame, get_frame_type): Ditto.
3475 (get_frame_base_address): Use frame_base_find_by_frame.
3476 (get_frame_locals_address): Use frame_base_find_by_frame.
3477 (get_frame_args_address): Use frame_base_find_by_frame.
3478 * frame-base.h (frame_base_sniffer_ftype): Declare.
3479 (frame_base_append_sniffer): Declare.
3480 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3481 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3482 (frame_base_append_sniffer): New function.
3483 (frame_base_append_predicate): Add a NULL sniffer.
3484 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3485 (struct frame_base_table): Add "sniffer".
3486 (frame_base_free): Free the "sniffer" table.
3487 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3488 (frame_unwind_append_sniffer): Declare.
3489 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3490 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3491 (struct frame_unwind_table): Add "sniffer", delete "middle".
3492 (append_predicate): Add "sniffer" parameter, append the sniffer.
3493 (frame_unwind_init): Update append_predicate call.
3494 (frame_unwind_append_sniffer): New function.
3495 (frame_unwind_append_predicate): Update append_predicate call.
3496 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3497
0714963c
AC
34982003-07-15 Andrew Cagney <cagney@redhat.com>
3499
3500 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3501 before code inhibiting repeated unwind attempts. Add to
3502 commentary on that test's problems.
3503 * blockframe.c (inside_main_func): Look for "main" in the minimal
3504 symbol table.
3505 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3506 identical.
3507
d9170e22
AC
35082003-07-15 Andrew Cagney <cagney@redhat.com>
3509
3510 * complaints.c (struct explanation): Define.
3511 (struct complaints): Change type of "explanation" to "struct
3512 explanation".
3513 (symfile_explanations): Convert to a "struct explanation" table.
3514 (vcomplaint): Update.
3515
eba29c8c
ML
35162003-07-15 Michal Ludvig <mludvig@suse.cz>
3517
3518 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 3519 (supply_gregset, fill_gregset): Call
eba29c8c
ML
3520 x86_64_linux_(fill,supply)_gregset functions.
3521 * x86-64-linux-tdep.c (USER_*): New defines.
3522 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3523 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3524 New functions.
3525 (fetch_core_registers): Ditto.
3526 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3527 * x86-64-linux-tdep.h: New file.
3528 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3529 and core-regset.o.
3530 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3531
68cc0bfb
MK
35322003-07-13 Mark Kettenis <kettenis@gnu.org>
3533
88a115f7
MK
3534 * x86-64-tdep.c (x86_64_store_return_value): Use
3535 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3536
68cc0bfb
MK
3537 * configure.host: Add x86_64-*-freebsd*.
3538 * configure.tgt: Add x86_64-*-freebsd*.
3539 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3540 * amd64fbsd-nat.c: New file.
3541 * amd64fbsd-tdep.c: New file.
3542 * config/i386/nm-fbsd64.h: New file.
3543 * config/i386/fbsd64.mh: New file.
3544 * config/i386/fbsd64.mt: New file.
3545
138e7be5
MK
35462003-07-11 Mark Kettenis <kettenis@gnu.org>
3547
3548 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3549 `sc_regs_offset' and `sc_fpregs_offset'.
3550 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3551 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3552 (alpha_sigtramp_register_address): Rewrite to use new members of
3553 `struct gdbarch_tdep'.
3554 (alpha_gdbarch_init): Initialize new members of struct
3555 gdbarch_tdep'.
3556 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3557 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3558 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3559 (alphafbsd_pc_in_sigtramp): Implement.
3560 (alphafbsd_sigtramp_offset): New function.
3561 (alphafbsd_sigcontext_addr): New function.
3562 (alphafbsd_init_abi): Initialize signal trampoline related members
3563 of `struct gdbarch_tdep'.
3564 (_initialize_alphafbsd_tdep): Add prototype.
3565
95303a68
TR
35662003-07-11 Theodore A. Roth <troth@openavr.org>
3567
ba292e4c
TR
3568 * Makefile.in (install-only): Quote sed expression when generating
3569 transformed_name.
95303a68 3570
6896c0c7
RH
35712003-07-11 Richard Henderson <rth@redhat.com>
3572
3573 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3574 * dwarf2-frame.c: Include complaints.h.
3575 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3576 variable initialization; return NULL on error.
3577 (decode_frame_entry): New.
3578
8edd5d01
AC
35792003-07-11 Andrew Cagney <cagney@redhat.com>
3580
c4a09524
AC
3581 * frame.h (frame_address_in_block): Delete declaration.
3582 * blockframe.c (frame_address_in_block): Delete function.
3583 (get_frame_block): Use get_frame_address_in_block.
3584 (block_innermost_frame): Ditto.
3585 * stack.c (print_frame, backtrace_command_1): Ditto.
3586
8edd5d01
AC
3587 * frame.h (get_frame_address_in_block): Declare.
3588 (frame_unwind_address_in_block): Declare.
3589 * frame.c (frame_unwind_address_in_block): New function.
3590 (get_frame_address_in_block): New function.
3591
f7968451
AC
35922003-07-10 Andrew Cagney <cagney@redhat.com>
3593
3594 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3595 pre-default. Note: re-generate has no effect.
a8f4cde1 3596
ae99b398
AC
35972003-07-10 Andrew Cagney <cagney@redhat.com>
3598
3599 * gdbarch.sh: When a variable, but not a function, compare against
3600 0. Fix problem in previous patch.
3601 * gdbarch.c: Re-generate.
a8f4cde1 3602
956ac328
AC
36032003-07-10 Andrew Cagney <cagney@redhat.com>
3604
3605 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3606 functions against NULL, not 0.
3607 * gdbarch.c: Re-generate.
a8f4cde1 3608
287c3240
FF
36092003-07-10 Fred Fish <fnf@ninemoons.com>
3610
3611 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3612 null string instead of a null pointer.
3613 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3614
32f63c4b
MS
36152003-07-09 Michael Snyder <msnyder@redhat.com>
3616
3617 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3618
402ecd56
MK
36192003-07-09 Mark Kettenis <kettenis@gnu.org>
3620
3621 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3622 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3623 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3624 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3625 * x86-64-tdep.c: ... from here.
3626
c481dac7
AS
36272003-07-09 Andreas Schwab <schwab@suse.de>
3628
3629 * m68k-tdep.h (enum struct_return): Define.
3630 (struct gdbarch_tdep): Add struct_return.
3631 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3632 bytes are padded to the right, not to the left. Pass struct value
3633 address in register %a1, not on stack.
3634 (m68k_use_struct_convention): New function.
3635 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3636 struct_return in tdep to pcc_struct_return.
3637 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3638 reg_struct_return.
3639
a8f4cde1 36402003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 3641
a8f4cde1 3642 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 3643
96a4ee76
AC
36442003-07-09 Andrew Cagney <cagney@redhat.com>
3645
3646 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3647 Add comments about the checks.
3648
1517c6d1
AC
36492003-07-08 Andrew Cagney <cagney@redhat.com>
3650
3651 * Makefile.in: Make dependency section headers consistent.
3652 (config_h): Move to $BUILD headers section.
3653 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3654 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3655 (ada-exp.tab.c): Move to YACC/LEX section.
3656 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3657 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3658
dc5dd1eb
KW
36592003-07-08 Kris Warkentin <kewarken@qnx.com>
3660
3661 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3662 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3663 of strerror with safe_strerror, use ISO C function definitions,
3664 and replace instances of sprintf with snprintf.
dc5dd1eb 3665
612dde91
AC
36662003-07-07 Andrew Cagney <cagney@redhat.com>
3667
3668 * frame.c (get_prev_frame): Enable check for identical frames.
3669 Update comments. Update error messages.
3670
492c11d3
JB
36712003-07-07 Joel Brobecker <brobecker@gnat.com>
3672
3673 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3674
376a5a49
JB
36752003-07-07 Joel Brobecker <brobecker@gnat.com>
3676
3677 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3678 sort_symtab_syms, no longer necessary.
3679
22b4a9ad
JB
36802003-07-07 Joel Brobecker <brobecker@gnat.com>
3681
3682 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3683
5bbcb741
JB
36842003-07-07 Joel Brobecker <brobecker@gnat.com>
3685
3686 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3687 (mips_register_byte): Likewise.
3688
c139e7d9
DJ
36892003-07-07 Daniel Jacobowitz <drow@mvista.com>
3690
3691 * Makefile.in (sparc_tdep_h): New.
3692 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3693 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3694 * sparc-linux-nat.c: Include "sparc-tdep.h".
3695 * sparc-nat.c: Likewise.
3696 * sparc-tdep.c: Likewise.
3697 * sparc64nbsd-nat.c: Likewise.
3698 * sparcnbsd-nat.c: Likewise.
3699 * sparcnbsd-tdep.c: Likewise.
3700 * sparc-tdep.h: New file.
3701 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3702 and sparc_npc_regnum.
3703
fd8f87c5
DJ
37042003-07-07 Daniel Jacobowitz <drow@mvista.com>
3705
3706 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3707 (mips_linux_cannot_store_register): List supported instead of
3708 unsupported registers.
3709
13adf674
DJ
37102003-07-07 Daniel Jacobowitz <drow@mvista.com>
3711
3712 * disasm.c (dump_insns): Separate instructions from addresses.
3713
8de307e0
AS
37142003-07-07 Andreas Schwab <schwab@suse.de>
3715
3716 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3717 dependencies.
3718 * m68k-tdep.c (NUM_FREGS): Delete.
3719 (SIG_PC_FP_OFFSET): Delete.
3720 (TARGET_M68K): Delete.
3721 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3722 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3723 P_MOVEL_SP, P_MOVEML_SP): Define.
3724 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3725 P_TRAP): Delete.
3726 (m68k_register_raw_size): Delete.
3727 (m68k_register_virtual_size): Delete.
3728 (m68k_register_type): Renamed from m68k_register_virtual_type and
3729 add gdbarch argument.
3730 (m68k_store_struct_return): Delete.
3731 (m68k_deprecated_extract_return_value): Delete.
3732 (m68k_deprecated_extract_struct_value_address): Delete.
3733 (m68k_frame_chain): Delete.
3734 (m68k_frame_saved_pc): Delete.
3735 (m68k_fix_call_dummy): Delete.
3736 (m68k_push_dummy_frame): Delete.
3737 (m68k_pop_frame): Delete.
3738 (m68k_extract_return_value): New function.
3739 (m68k_store_return_value): Rewrite using regcache.
3740 (m68k_extract_struct_value_address): Rewrite using regcache.
3741 (m68k_push_dummy_call): New function.
3742 (struct m68k_frame_cache): Define.
3743 (m68k_alloc_frame_cache): New function.
3744 (m68k_analyze_frame_setup): New function.
3745 (m68k_analyze_register_saves): New function.
3746 (m68k_analyze_prologue): New function.
3747 (m68k_skip_prologue): Rewrite using above functions.
3748 (m68k_unwind_pc): New function.
3749 (m68k_frame_cache): New function.
3750 (m68k_frame_this_id): New function.
3751 (m68k_frame_prev_register): New function.
3752 (m68k_frame_unwind): New variable.
3753 (m68k_frame_p): New function.
3754 (m68k_sigtramp_frame_cache): New function.
3755 (m68k_sigtramp_frame_this_id): New function.
3756 (m68k_sigtramp_frame_prev_register): New function.
3757 (m68k_sigtramp_frame_unwind): New variable.
3758 (m68k_sigtramp_frame_p): New function.
3759 (m68k_frame_base_address): New function.
3760 (m68k_frame_base): New function.
3761 (m68k_unwind_dummy_id): New function.
3762 (fill_gregset): Use regcache_collect.
3763 (fill_fpregset): Likewise.
3764 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3765 defined.
3766 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3767 deprecated_init_frame_pc, deprecated_store_struct_return,
3768 deprecated_extract_return_value, deprecated_store_return_value,
3769 deprecated_frame_chain, deprecated_frame_saved_pc,
3770 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3771 deprecated_register_virtual_size,
3772 deprecated_max_register_raw_size,
3773 deprecated_max_register_virtual_size,
3774 deprecated_register_virtual_type, deprecated_register_size,
3775 deprecated_register_byte, deprecated_register_bytes,
3776 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3777 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3778 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3779 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3780 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3781 deprecated_push_dummy_frame, deprecated_pop_frame,
3782 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3783 only if SYSCALL_TRAP is defined. Set extract_return_value,
3784 store_return_value, extract_struct_value_address, register_type,
3785 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3786 predicates.
3787 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3788 M68K_MAX_REGISTER_SIZE): Define.
3789 (struct m68k_sigtramp_info): Define.
3790 (struct gdbarch_tdep): Add get_sigtramp_info.
3791 * m68klinux-nat.c (fetch_register): Use register_size instead of
3792 REGISTER_RAW_SIZE. Don't put assignment in if.
3793 (store_register): Likewise.
3794 (fetch_inferior_registers): Likewise.
3795 (store_inferior_registers): Likewise.
3796 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3797 (m68k_linux_frame_saved_pc): Delete.
3798 (m68k_linux_sigcontext_reg_offset,
3799 m68k_linux_ucontext_reg_offset): Define.
3800 (m68k_linux_get_sigtramp_info): New function.
3801 (m68k_linux_extract_return_value): Rewrite using regcache.
3802 (m68k_linux_store_return_value): Likewise.
3803 (m68k_linux_extract_struct_value_address): Likewise.
3804 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3805 Don't set deprecated_frame_saved_pc,
3806 deprecated_extract_return_value, deprecated_store_return_value,
3807 deprecated_extract_struct_value_address. Set
3808 extract_return_value, store_return_value,
3809 extract_struct_value_address.
3810
eb8bc282
AC
38112003-07-07 Andrew Cagney <cagney@redhat.com>
3812
3813 * expprint.c: Include "user-regs.h" instead of "frame.h".
3814 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3815 frame_map_regnum_to_name.
3816 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3817 (frame_map_name_to_regnum): Simplify, call
3818 user_reg_map_name_to_regnum.
3819 (frame_map_regnum_to_name): Simplify, call
3820 user_reg_map_regnum_to_name.
3821 (frame_register_unwind): Update.
3822 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3823 (_initialize_frame_reg): Call user_reg_add_builtin.
3824 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3825 (value_of_register): Use value_of_user_reg.
3826 * eval.c (evaluate_subexp_standard): Update.
3827 * parse.c (write_dollar_variable): Update.
3828 * d10v-tdep.c (d10v_print_registers_info): Update.
3829 * infcmd.c (registers_info): Update.
3830 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3831 (builtin_regs_h): Delete macro.
3832 (user_regs_h): Define.
3833 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3834 (builtin-regs.o): Delete target.
3835 (user-regs.o): Specify dependencies.
3836 (expprint.o): Update dependencies.
3837 (findvar.o): Update dependencies.
3838 (frame.o): Update dependencies.
3839 (std-regs.o): Update dependencies.
3840
9f476a01
CF
38412003-07-06 Christopher Faylor <cgf@redhat.com>
3842
3843 * win32-nat.c (solib_symbols_add): Use one variable for all section
3844 address stuff. Pass variable rather than address of variable to
3845 safe_symbol_file_add.
3846
a731b831
AS
38472003-07-06 Andreas Schwab <schwab@suse.de>
3848
3849 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3850
9f83329d
JB
38512003-07-04 Joel Brobecker <brobecker@gnat.com>
3852
3853 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3854
27e28cc5
KW
38552003-07-04 Kris Warkentin <kewarken@qnx.com>
3856
3857 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3858
38592003-07-04 Kris Warkentin <kewarken@qnx.com>
3860
3861 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3862 * config/i386/nto.mh: New file.
3863 * config/i386/nm-nto.h: New file.
3864 * configure.host: Add i[3456]86-*-nto*.
3865
100f2e98
JB
38662003-07-03 Joel Brobecker <brobecker@gnat.com>
3867
3868 * remote-vx.c (vx_add_symbols): Fix compilation error.
3869
e23457df
AC
38702003-07-03 Andrew Cagney <cagney@redhat.com>
3871
3872 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3873 * gdbarch.h, gdbarch.c: Re-generate.
3874 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3875 (legacy_register_name): Declare.
3876 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3877 (REGISTER_NAME): Define.
3878 * sparc-tdep.c (legacy_register_name): New function.
3879 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3880 (REGISTER_NAME): Define.
3881 (hppa64_register_name): Declare.
3882 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3883 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3884 (hppa64_register_name): New function.
3885 (hppa_register_name): New function.
3886 * arch-utils.c (legacy_register_name): Delete.
3887 * arch-utils.h (legacy_register_name): Delete.
3888
38caaeec
DJ
38892003-07-03 Daniel Jacobowitz <drow@mvista.com>
3890
3891 * cli/cli-interp.c (cli_interpreter_resume): Update the
3892 cli_uiout's stream to gdb_stdout.
3893
dadd712e
AC
38942003-07-03 Andrew Cagney <cagney@redhat.com>
3895
3896 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3897 predicate.
3898 * gdbarch.h, gdbarch.c: Re-generate.
3899 * regcache.c (init_regcache_descr): Use legacy code when either
3900 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3901
c7f1390e
DJ
39022003-07-02 Daniel Jacobowitz <drow@mvista.com>
3903
3904 * NEWS: Move "set logging" entry into GDB 6.0 section.
3905
4bc8c588
JB
39062003-07-02 Jim Blandy <jimb@redhat.com>
3907
a9dd42f1
JB
3908 * s390-tdep.c (struct frame_extra_info): new member:
3909 'stack_bought_valid'.
3910 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3911 initialize fextra_info->stack_bought.
3912 (s390_frameless_function_invocation): Don't trust the value of
3913 fextra_info_ptr->stack_bought unless
3914 fextra_info->stack_bought_valid is set.
3915
4bc8c588
JB
3916 New S390 prologue analyzer.
3917 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3918 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3919 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3920 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3921 compute_x_addr, s390_on_stack, s390_store,
3922 s390_get_signal_frame_info): New functions.
3923 (S390_NUM_SPILL_SLOTS): New macro.
3924 (s390_get_frame_info): Rewritten.
3925 (is_arg_reg): Deleted.
3926
3927 Break out the decoding of S/390 instructions into separate
3928 functions, to make it more legible, and easier to check
3929 against the spec.
3930 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3931 is_rx, is_rxe): New functions.
3932 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3933 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3934 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3935 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3936 enums for opcode values. (Is this an improvement?)
3937
fd13a04a
AC
39382003-07-02 Andrew Cagney <cagney@redhat.com>
3939
3940 * i386-tdep.c: Revert change committed as part of trad-frame code
3941 below.
3942
3f8091c1
DJ
39432003-07-02 Daniel Jacobowitz <drow@mvista.com>
3944
3945 * breakpoint.c (insert_catchpoint): Make static.
3946
8dd5115e
AS
39472003-07-02 Andreas Schwab <schwab@suse.de>
3948
3949 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3950 former ia64_push_arguments and ia64_push_return_address, and use
3951 regcache functions instead of read/write_register.
3952 (ia64_gdbarch_init): Set push_dummy_call instead of
3953 deprecated_push_arguments and deprecated_push_return_address.
3954
a2229c23
AJ
39552003-07-01 Andreas Jaeger <aj@suse.de>
3956
3957 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3958 before the call.
3959 Set %rax only to number of SSE registers used.
3960
3b3850e8
AC
39612003-07-01 Andrew Cagney <cagney@redhat.com>
3962
3963 * trad-frame.h: Update comments, a -1 .addr is reserved.
3964 (trad_frame_value_p, trad_frame_addr_p): Declare.
3965 (trad_frame_reg_p): Declare.
3966 (trad_frame_set_value): Rename trad_frame_register_value.
3967 (trad_frame_set_unknown): Declare.
3968 * trad-frame.c (trad_frame_realreg_p): New function.
3969 (trad_frame_addr_p, trad_frame_value_p): New function.
3970 (trad_frame_set_unknown): New function.
3971 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3972 (trad_frame_prev_register): Use trad_frame_realreg_p,
3973 trad_frame_addr_p and trad_frame_value_p.
3974 (trad_frame_set_value): Rename trad_frame_register_value.
3975 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3976 and trad_frame_set_value.
a2229c23 3977
4d819d0e
JB
39782003-06-30 Jim Blandy <jimb@redhat.com>
3979
3980 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3981 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3982 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3983 for 16 registers, and then 32 more bytes.
3984 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3985 New macros.
3986 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3987 Move up in the file, since it's now used by is_simple_arg.
3988 (is_simple_arg): Don't assume registers are four bytes long.
3989 Exclude all double arguments. Extended floats are not simple
3990 args.
3991 (is_power_of_two): New function.
3992 (pass_by_copy_ref): Call is_power_of_two, and check that the
3993 length fits in a register, rather than listing all the acceptable
3994 sizes. Extended floats are not passed by reference.
3995 (s390_push_arguments): Don't assume registers are four bytes long.
3996 Reserve an argument register to point to the buffer for structures
3997 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3998 S390_STACK_FRAME_OVERHEAD.
3999
1ad828f1
AS
40002003-06-30 Andreas Schwab <schwab@suse.de>
4001
4002 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4003 format error message.
4004
39b00981
JB
40052003-06-30 Joel Brobecker <brobecker@gnat.com>
4006
4007 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4008
b2a7f303
DC
40092003-06-30 David Carlton <carlton@kealia.com>
4010
4011 Band-aid for PR c++/1245.
4012 * Makefile.in (cp-support.o): Depend on complaints_h.
4013 * cp-support.c: Include complaints.h. Add declaration for
4014 find_last_component.
4015 (cp_find_first_component): Separate code into
4016 cp_find_first_component_aux.
4017 (cp_find_first_component_aux): Call demangled_name_complaint.
4018 (demangled_name_complaint): New.
4019
a257b5bb
AC
40202003-06-30 Andrew Cagney <cagney@redhat.com>
4021
4022 * remote.c (remote_write_bytes): Explicitly compute and then use
4023 the payload size. Update comments to reflect. Fixes problem of
4024 GDB not sending small packets as found by Fred Fish.
4025
0a2cfde4
AC
40262003-06-30 Andrew Cagney <cagney@redhat.com>
4027
4028 * remote.c (remote_async_wait): Fix -Wformat problem.
4029
3fcb8548
AC
40302003-06-29 Andrew Cagney <cagney@redhat.com>
4031
4032 * remote.c (remote_wait): Call error, and not warning, when the
4033 packet is corrupt.
4034 (remote_async_wait): Ditto.
4035
9f9970a3
DJ
40362003-06-29 Daniel Jacobowitz <drow@mvista.com>
4037
4038 * sparc-tdep.c (sparc_y_regnum): Make external again.
4039
83a8ccca
DJ
40402003-06-29 Daniel Jacobowitz <drow@mvista.com>
4041
4042 * cli/cli-logging.c (pop_output_files): Add void to function
4043 definition.
4044
d2cf594a
AC
40452003-06-29 Andrew Cagney <cagney@redhat.com>
4046
4047 * frame.c (frame_register_unwind): Use unsigned char when dumping
4048 the buffer contents.
4049
0fac0b41
DJ
40502003-06-28 Daniel Jacobowitz <drow@mvista.com>
4051
4052 * cli/cli-logging.c: New file.
4053 * cli-out.c (struct ui_out_data): Add original_stream.
4054 (cli_redirect): New function.
4055 (cli_ui_out_impl): Add cli_redirect.
4056 (cli_out_new): Initialize original_stream.
4057 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4058 (uo_redirect, ui_out_redirect): New.
4059 * ui-out.h (struct ui_out_impl): Add redirect member.
4060 (redirect_ftype): New.
4061 (ui_out_redirect): Add prototype.
4062 * Makefile.in: Add rules for cli-logging.c.
4063 * NEWS: Mention "set logging".
4064
88a07d7c
EZ
40652003-06-27 Elena Zannoni <ezannoni@redhat.com>
4066
4067 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4068
4eb58876
AC
40692003-06-27 Andrew Cagney <cagney@redhat.com>
4070
4071 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4072 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4073 * avr-tdep.c (avr_call_dummy_address): Delete function.
4074 (avr_gdbarch_init): Do not set call_dummy_address.
4075
1549f619
EZ
40762003-06-27 Elena Zannoni <ezannoni@redhat.com>
4077
4078 * symfile.c (syms_from_objfile): Move variables to inner block.
4079 Move the checks for the non-mainline case a bit earlier to avoid
4080 doing some useless computations.
4081
3cb3398d
EZ
40822003-06-27 Elena Zannoni <ezannoni@redhat.com>
4083
4084 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4085
3799ccc6
EZ
40862003-06-26 Elena Zannoni <ezannoni@redhat.com>
4087
4088 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4089 sections.
4090
ce1f6491
MC
40912003-06-26 Michael Chastain <mec@shout.net>
4092
4093 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4094 gdb/testsuite/gdb.c++/pr-1210.exp.
4095
d958dfd0
AC
40962003-06-26 Andrew Cagney <cagney@redhat.com>
4097
4098 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4099 altivec_expression.h and altivec_registers.h.
4100
d31431ed
AC
41012003-06-26 Andrew Cagney <cagney@redhat.com>
4102
4103 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4104 info->mach when MIPS16. Patch suggested by Fred Fish.
4105
714b1282
AC
41062003-06-26 Andrew Cagney <cagney@redhat.com>
4107
4108 * utils.c (internal_vproblem): Print the problem to a reason
4109 buffer and then pass to query. Make the msg variable more local.
4110
42efa47a
AC
41112003-06-26 Andrew Cagney <cagney@redhat.com>
4112
4113 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4114 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4115 * gdbarch.h, gdbarch.c: Re-generate.
4116 * frame-base.c (default_frame_args_address): Update. Use
4117 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4118 not available.
4119 (default_frame_locals_address): Ditto for
4120 DEPRECATED_FRAME_LOCALS_ADDRESS.
4121 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4122 (vax_frame_num_args): Update.
4123 (vax_gdbarch_init): Update.
4124 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4125 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4126 * mcore-tdep.c (mcore_gdbarch_init): Update.
4127 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4128 * ia64-tdep.c (ia64_gdbarch_init): Update.
4129 * symtab.h (address_class): Update comments.
4130 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4131 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4132 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4133 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4134 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4135 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4136 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4137 * alpha-mdebug-tdep.c: Update.
4138 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4139
8ffd9b1b
AJ
41402003-06-26 Andreas Jaeger <aj@suse.de>
4141
4142 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4143 of SSE registers so that varargs functions work. Rework handling
4144 of passing arguments on the stack.
4145 (x86_64_store_return_value): Return double and float values in SSE
4146 register.
4147
e8ac10a6
MC
41482003-06-24 Michael Chastain <mec@shout.net>
4149
4150 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4151 the "constructor breakpoints ignored" bug.
4152
986af8e6
DC
41532003-06-25 David Carlton <carlton@kealia.com>
4154
4155 * MAINTAINERS: Update e-mail address.
4156
d64558a5
JB
41572003-06-24 Jim Blandy <jimb@redhat.com>
4158
e538d2d7
JB
4159 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4160
02631ec0
JB
4161 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4162 function.
4163 (ppc_linux_init_abi): Register it as the
4164 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4165
e716d87a
JB
4166 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4167 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4168 method.
4169
d64558a5
JB
4170 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4171 (ppc64_standard_linkage_target): Use it.
4172
449a5da4
AC
41732003-06-23 Andrew Cagney <cagney@redhat.com>
4174
4175 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4176 for 0 "int0" and 4 "int32" sized registers.
4177 * gdbtypes.c (builtin_type_int0): Define.
4178 (build_gdbtypes): Initialize builtin_type_int0.
4179 * gdbtypes.h (builtin_type_int0): Declare.
4180
b2a02dda
SC
41812003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4182
4183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4184 as characters are unsigned.
4185
fba3138e
DJ
41862003-06-22 Daniel Jacobowitz <drow@mvista.com>
4187
4188 PR gdb/1179
4189 * dwarfread.c (struct_type): Skip static fields without crashing.
4190
f6c8180b
AC
41912003-06-22 Andrew Cagney <cagney@redhat.com>
4192
4193 GDB 6.0 branch created.
f2c06f52
AC
4194 * README: Update.
4195 * PROBLEMS: Update. Empty.
4196 * NEWS: Update.
f6c8180b 4197
ae822768
DJ
41982003-06-22 Daniel Jacobowitz <drow@mvista.com>
4199
4200 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4201 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4202
261de166
AC
42032003-06-22 Andrew Cagney <cagney@redhat.com>
4204
4205 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4206 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4207 Velikov.
4208
30e94205
DJ
42092003-06-22 Daniel Jacobowitz <drow@mvista.com>
4210
4211 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4212 compilers.
4213
9e14d721
DJ
42142003-06-21 Daniel Jacobowitz <drow@mvista.com>
4215
4216 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4217 argument of val_print.
4218 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4219 to the address argument of baseclass_offset or target_read_memory.
4220 Do add it to the argument of cp_print_value_fields.
4221
a4b8ebc8
AC
42222003-06-21 Andrew Cagney <cagney@redhat.com>
4223
4224 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4225 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4226 instead of 0..NUM_REGS.
4227 (mips_register_reggroup_p): New function.
4228 (mips_pseudo_register_write): New function.
4229 (mips_pseudo_register_read): New function.
4230 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4231 based on the register's type.
4232 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4233 cooked.
4234 (mips_get_saved_register): Simplify. Assert that REGNO is a
4235 pseudo / cooked.
4236 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4237 (mips_register_type): Replace mips_register_virtual_type. Map
4238 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4239 when available.
4240 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4241 that the register is cooked / virtual.
4242 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4243 Only get the extra info when needed.
4244 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4245 (mips32_heuristic_proc_desc): Fetch the cooked register.
4246 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4247 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4248 (mips_print_register): Use gdbarch_register_type, instead of
4249 REGISTER_VIRTUAL_TYPE.
4250 (print_gp_register_row): Use gdbarch_register_type, instead of
4251 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4252 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4253 Print the pseudo / cooked registers.
4254 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4255 Print the pseudo / cooked registers.
4256 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4257 REG_NUM is pseudo / cooked.
4258 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4259 (mips_n32n64_xfer_return_value): Ditto.
4260 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4261 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4262 (mips_register_sim_regno): New function.
4263 (mips_gdbarch_init): Set deprecated_register_byte,
4264 register_group_p, pseudo_register_write, pseudo_register_read,
4265 register_sim_regno, and num_pseudo_regs. Set register_type,
4266 instead of register_virtual_type.
4267 * Makefile.in (mips-tdep.o): Update dependencies.
4268 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4269 REGISTER_VIRTUAL_TYPE.
4270 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4271 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4272 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4273 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4274 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4275
325ed089
DJ
42762003-06-21 Daniel Jacobowitz <drow@mvista.com>
4277
4278 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4279 * cli/cli-cmds.c: Include "gdb_vfork.h".
4280 (shell_escape): Use vfork.
4281
f0e7d0e8
AC
42822003-06-21 Andrew Cagney <cagney@redhat.com>
4283
c57bb9fa
AC
4284 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4285 32 bit floating-point register saves.
4286
6e51443a
AC
4287 * frame.h (deprecated_unwind_get_saved_register): Delete.
4288 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4289 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4290 and deprecated_get_next_frame_hack instead of
4291 deprecated_unwind_get_saved_register.
4292
ed183c7c
AC
4293 * mips-tdep.c (mips_dump_tdep): Do not print
4294 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4295
f0e7d0e8
AC
4296 * frame.c (get_frame_register): New function.
4297 (frame_unwind_register_signed): New function.
4298 (get_frame_register_signed): New function.
4299 (frame_unwind_register_unsigned): New function.
4300 (get_frame_register_unsigned): New function.
4301 * frame.h: Add comments on naming schema.
4302 (get_frame_register, frame_unwind_register_signed): Declare.
4303 (get_frame_register_signed, get_frame_register_signed): Declare.
4304 (frame_unwind_register_unsigned): Declare.
4305 (get_frame_register_unsigned): Declare.
4306
2224d941
TR
43072003-06-20 Theodore A. Roth <troth@openavr.org>
4308
4309 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4310
8619218d
TR
43112003-06-20 Theodore A. Roth <troth@openavr.org>
4312
4313 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4314 (avr_read_sp): Ditto.
4315
0b1b50c0
DJ
43162003-06-20 Daniel Jacobowitz <drow@mvista.com>
4317
4318 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4319 * config/arm/nm-linux.h: Likewise.
4320 * config/arm/tm-linux.h: Likewise.
4321 * config/ia64/nm-linux.h: Likewise.
4322 * config/ia64/tm-ia64.h: Likewise.
4323 * config/s390/tm-linux.h: Likewise.
4324 * config/s390/tm-s390.h: Likewise.
4325 * s390-nat.c: Likewise.
4326 * s390-tdep.c: Likewise.
4327
4328 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4329 * config/ia64/linux.mt: Likewise.
4330 * config/m68k/linux.mh: Likewise.
4331 * config/mips/linux.mt: Likewise.
4332 * config/powerpc/linux.mh: Likewise.
4333 * config/sh/linux.mt: Likewise.
4334
c8c18e65
KW
43352003-06-19 Kris Warkentin <kewarken@qnx.com>
4336
4337 * solib.c (solib_open): Change tests for whether to search
4338 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4339 comments.
4340
dcccef2e
TR
43412003-06-19 Theodore A. Roth <troth@openavr.org>
4342
4343 * avr-tdep.c (avr_frame_address): Delete function.
4344 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4345 set_gdbarch_frame_args_address.
4346
5861a190
AC
43472003-06-19 Andrew Cagney <cagney@redhat.com>
4348
4349 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4350 (REGISTER_CONVERT_FROM_TYPE): Delete.
4351 (mips_register_convert_to_type): Delete declaration.
4352 (mips_register_convert_from_type): Delete declaration.
4353 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4354 kernel/.
4355
0274a8ce
MS
43562003-06-19 Michael Snyder <msnyder@redhat.com>
4357
4358 * linux-nat.h: New file.
4359 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4360 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4361 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4362 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4363 (linux_make_note_section): Iterate over lwps instead of threads.
4364 (linux_do_thread_registers): Use lwp instead of merged pid.
4365 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4366 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4367 Add dependency on linux_nat_h.
4368
adf5f719
TR
43692003-06-19 Theodore A. Roth <troth@openavr.org>
4370
4371 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4372
6766a268
DJ
43732003-06-19 Daniel Jacobowitz <drow@mvista.com>
4374
4375 * varobj.c (get_type, get_target_type): Use check_typedef.
4376
1171114a
DJ
43772003-06-19 Daniel Jacobowitz <drow@mvista.com>
4378
4379 * breakpoint.c (insert_catchpoint): Call internal_error.
4380
adcf68a2
TR
43812003-06-19 Theodore A. Roth <troth@openavr.org>
4382
4383 * avr-tdep.c (avr_push_dummy_code): Delete function.
4384 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4385
ea67f13b
DJ
43862003-06-19 Daniel Jacobowitz <drow@mvista.com>
4387
4388 * arch-utils.c (default_prepare_to_proceed): Remove.
4389 (generic_prepare_to_proceed): Remove.
4390 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4391 (generic_prepare_to_proceed): Remove prototype.
4392 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4393 * gdbarch.c: Regenerate.
4394 * gdbarch.h: Regenerate.
4395 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4396 * hppah-nat.c (hppa_switched_threads): Remove.
4397 * infrun.c (prepare_to_proceed): New static function, copied from
4398 generic_prepare_to_proceed. Remove select_it argument.
4399 (proceed): Call prepare_to_proceed.
4400 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4401 variables.
4402 (ptrace_wait): Don't set the removed variables.
4403 (hppa_switched_threads): Remove.
4404 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4405 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4406 (lin_lwp_prepare_to_proceed): Remove prototype.
4407 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4408 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4409
4add8633
TR
44102003-06-18 Theodore A. Roth <troth@openavr.org>
4411
4412 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4413 trad-frame.h.
4414 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4415 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4416 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4417 (AVR_PROLOGUE_*): Enumerate prologue types.
4418 (struct frame_extra_info): Remove.
4419 (struct avr_unwind_cache): Define.
4420 (avr_write_sp): Delete function.
4421 (avr_read_fp): Ditto.
4422 (avr_init_extra_frame_info): Ditto.
4423 (avr_pop_frame): Ditto.
4424 (avr_frame_saved_pc): Ditto.
4425 (avr_saved_pc_after_call): Ditto.
4426 (avr_push_return_address): Ditto.
4427 (avr_frame_chain): Ditto.
4428 (avr_store_struct_return): Ditto.
4429 (avr_push_arguments): Ditto.
4430 (avr_scan_prologue): Update comments. Changed to set up the info for
4431 cache unwinding. Now returns end of prologue PC.
4432 (avr_skip_prologue): Better handling of functions lacking a prologue
4433 by using avr_scan_prologue.
4434 (avr_scan_arg_moves): New function.
4435 (avr_saved_regs_unwinder): Ditto.
4436 (avr_frame_unwind_cache): Ditto.
4437 (avr_unwind_pc): Ditto.
4438 (avr_frame_this_id): Ditto.
4439 (avr_frame_prev_register): Ditto.
4440 (avr_frame_p): Ditto.
4441 (avr_frame_base_address ): Ditto.
4442 (avr_unwind_dummy_id): Ditto.
4443 (avr_push_dummy_code): Ditto.
4444 (push_stack_item): Ditto.
4445 (pop_stack_item): Ditto.
4446 (avr_push_dummy_call): Ditto.
4447 (struct stack_item): Define.
4448 (avr_frame_unwind): Declare structure.
4449 (avr_frame_base): Ditto.
4450 (avr_gdbarch_init): Remove calls to
4451 set_gdbarch_deprecated_init_frame_pc,
4452 set_gdbarch_deprecated_target_read_fp,
4453 set_gdbarch_deprecated_dummy_write_sp,
4454 set_gdbarch_deprecated_fp_regnum,
4455 set_gdbarch_deprecated_push_arguments,
4456 set_gdbarch_deprecated_push_return_address,
4457 set_gdbarch_deprecated_pop_frame,
4458 set_gdbarch_deprecated_store_struct_return,
4459 set_gdbarch_deprecated_frame_init_saved_regs,
4460 set_gdbarch_deprecated_init_extra_frame_info,
4461 set_gdbarch_deprecated_frame_chain,
4462 set_gdbarch_deprecated_frame_saved_pc,
4463 set_gdbarch_deprecated_saved_pc_after_call.
4464 Add calls to set_gdbarch_push_dummy_call,
4465 set_gdbarch_push_dummy_code,
4466 frame_unwind_append_predicate,
4467 frame_base_set_default,
4468 set_gdbarch_unwind_dummy_id,
4469 set_gdbarch_unwind_pc.
4470 Wrap a long line.
4471
7be04a68
MS
44722003-06-18 Corinna Vinschen <vinschen@redhat.com>
4473
4474 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4475 registers for H8/300S.
4476 (h8300_print_registers_info): Ditto.
8ffd9b1b 4477 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4478
ae087d01
DJ
44792003-06-18 Daniel Jacobowitz <drow@mvista.com>
4480
4481 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4482 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4483 (lin_lwp_wait): Likewise. Update comments.
4484 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4485 (pull_pid_from_list, linux_record_stopped_pid): New.
4486
07d8f827
SC
44872003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4488
4489 * ada-lang.c (scan_discrim_bound): Name first argument.
4490 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4491 declared by ALL_BLOCK_SYMBOLS.
4492
7cb47b14
SC
44932003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4494
4495 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4496 ("regcache.h"): Include it.
4497 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4498
6ad8ae5c
DJ
44992003-06-17 Daniel Jacobowitz <drow@mvista.com>
4500
4501 * NEWS: Mention gdbserver detach change and "disconnect" command.
4502 * infcmd.c (disconnect_command): New function.
4503 (_initialize_infcmd): Add ``disconnect'' command.
4504 * remote.c (remote_async_detach): Delete.
4505 (remote_detach): Merge remote_async_detach.
4506 (remote_disconnect): New.
4507 (init_remote_ops): Set to_disconnect.
4508 (init_remote_cisco_ops): Likewise.
4509 (init_remote_async_ops): Likewise. Use remote_detach.
4510 * target.c (cleanup_target): Default to_disconnect.
4511 (update_current_target): Inherit to_disconnect.
4512 (target_disconnect, debug_to_disconnect): New functions.
4513 (setup_target_debug): Set to_disconnect.
4514 * target.h (struct target_ops): Add to_disconnect.
4515 (target_disconnect): Add prototype.
4516
687595f9
DJ
45172003-06-17 Daniel Jacobowitz <drow@mvista.com>
4518
4519 * breakpoint.c (insert_catchpoint): New function.
4520 (insert_breakpoints): Use catch_exceptions to call
4521 insert_catchpoint. Disable catchpoints if they fail to insert.
4522
29239a8f
DJ
45232003-06-17 Daniel Jacobowitz <drow@mvista.com>
4524
4525 * symfile.c (reread_symbols): Clear sym_private.
4526
2cdf3c63
AC
45272003-06-17 Andrew Cagney <cagney@redhat.com>
4528
4529 * trad-frame.h (struct frame_info): Add opaque declaration.
4530 * remote-fileio.h (struct cmd_list_element): Add opaque
4531 declaration.
4532 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4533 comments.
4534
cf0e1e0d
DJ
45352003-06-17 Daniel Jacobowitz <drow@mvista.com>
4536
4537 * remote.c (remote_prepare_to_store): Replace call to
4538 deprecated_read_register_bytes with multiple regcache_raw_read
4539 calls.
4540
192cdb19
KW
45412003-06-17 Kris Warkentin <kewarken@qnx.com>
4542
4543 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4544 (nto_find_and_open_solib): Likewise.
4545 (nto_init_solib_absolute_prefix): Likewise.
4546 (_initialize_nto_tdep): Fix indentation.
4547
89929b45
KW
45482003-06-17 Kris Warkentin <kewarken@qnx.com>
4549
4550 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4551
46019f27
KW
45522003-06-17 Kris Warkentin <kewarken@qnx.com>
4553
4554 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4555
1a38736e
JB
45562003-06-17 Jim Blandy <jimb@redhat.com>
4557
4558 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4559
3605c34a
TR
45602003-06-16 Theodore A. Roth <troth@openavr.org>
4561
4562 * avr-tdep.c (avr_extract_return_value): New function.
4563 (avr_gdbarch_init): Set extract_return_value method.
4564
870b3035
AC
45652003-06-16 Andrew Cagney <cagney@redhat.com>
4566
4567 * frame.h (deprecated_get_next_frame_hack): Declare.
4568 * frame.c (legacy_saved_regs_prev_register): Only require
4569 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4570 there are always saved regs.
4571 (deprecated_generic_get_saved_register): Do not require
4572 DEPRECATED_FRAME_INIT_SAVED_REGS.
4573 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4574 use frame ID unwind instead.
4575 (deprecated_get_next_frame_hack): New function.
4576
63d47a7d
CV
45772003-06-16 Corinna Vinschen <vinschen@redhat.com>
4578
4579 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4580 (h8300_push_dummy_call): ...this function. Some minor optimization.
4581 (h8300_push_return_address): Remove.
4582 (h8300_gdbarch_init): Remove calls to
4583 set_gdbarch_deprecated_dummy_write_sp,
4584 set_gdbarch_deprecated_push_arguments and
4585 set_gdbarch_deprecated_push_return_address.
4586 Add call to set_gdbarch_push_dummy_call.
4587
4bb1dc5e
CV
45882003-06-16 Corinna Vinschen <vinschen@redhat.com>
4589
4590 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4591 (E_PSEUDO_EXR_REGNUM): Ditto.
4592 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4593 registers into safe registers.
4bb1dc5e
CV
4594 (h8300_skip_prologue): Check for stm instruction to push registers
4595 used for register variables onto stack.
4596 (gdb_print_insn_h8300): Remove.
4597 (h8300_examine_prologue): Add a comment.
4598 (h8300_register_name): Take pseudo registers into account.
4599 (h8300s_register_name): Ditto.
4600 (h8300sx_register_name): Ditto.
4601 (h8300_print_register): Ditto.
4602 (h8300_print_registers_info): Define "nice" printing order.
4603 (h8300_saved_pc_after_call): Take pseudo registers into account.
4604 (h8300_register_type): Ditto. Return type used for remote connection
4605 when requesting real CCR or EXR register, return actual type when
4606 requesting pseudo CCR or EXR.
4607 (h8300_pseudo_register_read): New function.
4608 (h8300_pseudo_register_write): Ditto.
4609 (h8300_dbg_reg_to_regnum): Ditto.
4610 (h8300s_dbg_reg_to_regnum): Ditto.
4611 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4612 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4613 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4614 set_gdbarch_print_insn architecture dependent.
4615 Call set_gdbarch_pseudo_register_read and
4616 set_gdbarch_pseudo_register_write.
4617 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4618
a59fe496
AC
46192003-06-16 Andrew Cagney <cagney@redhat.com>
4620
4621 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4622 * gdbarch.h, gdbarch.c: Re-generate.
4623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4624 * s390-tdep.c (s390_gdbarch_init): Update.
4625 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4626 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4627 * mips-tdep.c (mips_gdbarch_init): Update.
4628 * mcore-tdep.c (mcore_gdbarch_init): Update.
4629 * cris-tdep.c (cris_gdbarch_init): Update.
4630 * infcall.c (call_function_by_hand): Update.
4631 * ia64-tdep.c (ia64_push_arguments): Update comment.
4632 * frame.c (legacy_get_prev_frame): Do not assume
4633 SAVE_DUMMY_FRAME_TOS_P.
4634 * dummy-frame.c (find_dummy_frame): Update comment.
4635
6f4e5a41
AC
46362003-06-16 Andrew Cagney <cagney@redhat.com>
4637
4638 * regcache.c (do_cooked_read): Do not use register_valid_p.
4639
72fab697
TR
46402003-06-15 Theodore A. Roth <troth@openavr.org>
4641
4642 * avr-tdep.c (avr_register_type): Remove a blank line.
4643 (avr_scan_prologue): Correct some comments.
4644
e3d8b004
TR
46452003-06-15 Theodore A. Roth <troth@openavr.org>
4646
4647 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4648 prologue types.
8ffd9b1b 4649 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4650 option.
4651 Add code to scan -mcall-prologues for mega devices.
4652
866b76ea
TR
46532003-06-15 Theodore A. Roth <troth@openavr.org>
4654
4655 * avr-tdep.c (avr_register_byte): Delete function.
4656 (avr_register_raw_size): Delete function.
4657 (avr_register_virtual_size): Delete function.
4658 (avr_register_virtual_type): Delete function.
4659 (avr_register_type): New function.
4660 (avr_address_to_pointer): Remove unused code.
4661 (avr_read_fp): Need to read FP as two separate bytes due to change to
4662 avr_register_type() usage.
4663 (avr_gdbarch_init): Don't set deprecated_register_size.
4664 Don't set deprecated_register_bytes.
4665 Don't set deprecated_register_byte.
4666 Don't set deprecated_register_raw_size.
4667 Don't set deprecated_max_register_raw_size.
4668 Don't set deprecated_register_virtual_size.
4669 Don't set deprecated_max_register_virtual_size.
4670 Don't set deprecated_register_virtual_type.
4671 Set register_type method.
4672
3993f6b1
DJ
46732003-06-15 Daniel Jacobowitz <drow@mvista.com>
4674
4675 * Makefile.in (linux-nat.o): Add rule.
4676 * linux-nat.c: New file.
4677 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4678 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4679 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4680 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4681 * config/arm/linux.mh (NATDEPFILES): Likewise.
4682 * config/i386/linux.mh (NATDEPFILES): Likewise.
4683 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4684 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4685 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4686 * config/mips/linux.mh (NATDEPFILES): Likewise.
4687 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4688 * config/s390/s390.mh (NATDEPFILES): Likewise.
4689 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4690
786a90bb
MK
46912003-06-15 Mark Kettenis <kettenis@gnu.org>
4692
4693 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4694 replace out-of-date comment.
4695
3bd3f01e
AC
46962003-06-15 Andrew Cagney <cagney@redhat.com>
4697
4698 * rdi-share/host.h (Fail): Change to a varargs function.
4699 * remote-rdi.c (Fail): Update.
8ffd9b1b 4700
de5b9bb9
MK
47012003-06-15 Mark Kettenis <kettenis@gnu.org>
4702
4703 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4704 (i386_convert_register_p, i386_register_to_value,
4705 i386_register_from_value): Handle types longer than 8 bytes.
4706
d532c08f
MK
47072003-06-15 Mark Kettenis <kettenis@gnu.org>
4708
4709 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4710 Move floating-point code to new function in i387-tdep.c.
4711 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4712 New functions containing code moved here from i386-tdep.c.
4713 * i387-tdep.h: Add opaque declaration for `struct type'.
4714 (i387_register_to_value, i387_value_to_register): New prototypes.
4715 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4716 (x86_64_init_abi): Set convert_register_p, register_to_value and
4717 value_to_register here.
8ffd9b1b 4718
42c466d7
AC
47192003-06-14 Andrew Cagney <cagney@redhat.com>
4720
4721 * mips-tdep.c (mips_register_to_value): Make static.
4722 (mips_value_to_register): Make static.
4723 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4724 * ia64-tdep.c (ia64_register_raw_size): Make static.
4725 (ia64_register_virtual_size): Make static.
4726 (ia64_register_byte): Make static.
4727 * i387-tdep.c: Include "i387-tdep.h".
4728 (print_387_control_word): Delete function.
4729 (print_387_status_word): Delete function.
4730 (print_387_status_bits): Delete function.
4731 (print_387_control_bits): Delete function.
4732 * Makefile.in (i387-tdep.o): Update dependencies.
4733 * rdi-share/host.h (Fail): Declare.
4734 * remote-rdi.c (Fail): Update to match declaration.
4735
2a9cda49
AC
47362003-06-14 Andrew Cagney <cagney@redhat.com>
4737
4738 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4739 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4740 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4741 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4742 * README: Delete reference to remote-array.
4743 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4744 (remote-array.o): Delete target.
4745 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4746 * remote-array.c: Delete file.
4747
ff2e87ac
AC
47482003-06-14 Andrew Cagney <cagney@redhat.com>
4749 Mark Kettenis <kettenis@gnu.org>
4750
4751 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4752 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4753 parameter with "frame".
4754 * gdbarch.h, gdbarch.c: Re-generate.
4755 * frame.h (put_frame_register): Declare.
4756 * frame.c (put_frame_register): New function.
4757 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4758 (legacy_register_to_value): Rewrite, use "frame" to get the
4759 register value.
4760 (legacy_value_to_register): Rewrite, use "frame" to find the
4761 register's location before storing.
4762 * arch-utils.h (legacy_convert_register_p): Update.
4763 (legacy_register_to_value, legacy_value_to_register): Update.
4764 * findvar.c (value_from_register): Rewrite, eliminate use of
4765 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4766 "frame" to REGISTER_TO_VALUE.
4767 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4768 lval_reg_frame_relative + lval_register branch of the switch. Do
4769 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4770 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4771 I386_EDI_REGNUM): New defines.
4772 (i386_next_regnum, i386_convert_register_p,
4773 i386_register_to_value, i386_value_to_register): New functions.
4774 (i386_register_convertible, i386_register_convert_to_virtual,
4775 i386_convert_to_raw): Remove functions.
4776 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4777 value_to_register instead of register_convertible,
4778 register_convert_to_virtual and register_convert_to_raw.
4779 * mips-tdep.c (mips_convert_register_p): New function.
4780 (mips_value_to_register): Replace mips_register_convert_from_type.
4781 (mips_register_to_value): Replace mips_register_convert_to_type.
4782 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4783 register_to_value.
4784 * alpha-tdep.c (alpha_convert_register_p): Update.
4785 (alpha_value_to_register): Update, store the register.
4786 (alpha_register_to_value): Update, fetch the register.
4787
98be1e77
TR
47882003-06-14 Theodore A. Roth <troth@openavr.org>
4789
4790 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4791 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4792 Don't set deprecated_call_dummy_words.
4793 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4794 Don't set remote_translate_xfer_address.
4795 (avr_io_reg_read_command): Remove commented out debug printf.
4796 Wrap a long line.
4797
57bc6122
TR
47982003-06-14 Theodore A. Roth <troth@openavr.org>
4799
4800 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4801 causes gdb to seg fault.
4802
eb01fc62
DJ
48032003-06-14 Daniel Jacobowitz <drow@mvista.com>
4804
4805 * sparc-nat.c (fetch_inferior_registers): Correct
4806 a reference to "registers".
4807
3b3e6bee
DJ
48082003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4809
4810 * Makefile.in (exc_request_U_h): Define
4811 (exc_request_S_h): Likewise.
4812 (msg_reply_S_h): Likewise.
4813 (msg_U_h): Likewise.
4814 (notify_S_h): Likewise.
4815 (process_reply_S_h): Likewise.
4816 (gnu-nat.o): Depend on gdb_obstack_h
4817 * gnu-nat.c: Include "gdb_obstack.h".
4818
b8de8283
AC
48192003-06-13 Andrew Cagney <cagney@redhat.com>
4820
4821 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4822 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4823
f3be58bc
AC
48242003-06-13 Andrew Cagney <cagney@redhat.com>
4825
4826 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4827 when deprecated REGISTER macros can be deleted.
4828 * gdbarch.h, gdbarch.c: Re-generate.
4829
4c0122c8
JB
48302003-06-13 Jim Blandy <jimb@redhat.com>
4831
4832 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4833 Linux entry point symbols for _dl_debug_state, too.
4834
3e210248
AC
48352003-06-13 Andrew Cagney <cagney@redhat.com>
4836
4837 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4838 available, do not use the FP register, and always save the TOS.
4839 * dummy-frame.c (dummy_frame_this_id): Do not assert
4840 SAVE_DUMMY_FRAME_TOS.
4841 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4842 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4843 (i386_push_dummy_call): Add 8 to the returned SP.
4844 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4845 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4846 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4847 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4848 (x86_64_push_dummy_call): Return "sp + 16".
4849 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4850 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4851 save_dummy_frame_tos.
4852
0b65af49
JB
48532003-06-13 Jim Blandy <jimb@redhat.com>
4854
4855 * frv-tdep.c (frv_use_struct_convention): Delete static
4856 declaration for function deleted in my change of 2003-06-12.
4857
4ea2465e
TR
48582003-06-13 Theodore A. Roth <troth@openavr.org>
4859
4860 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4861 (avr_pointer_to_address): Shift code addrs left 1 bit.
4862 (avr_convert_from_func_ptr_addr): Delete function since operation is
4863 better handled by avr_address_to_pointer and avr_pointer_to_address.
4864 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4865
1581182a
MK
48662003-06-13 Mark Kettenis <kettenis@gnu.org>
4867
4868 From Kelley Cook <kelleycook@wideopenwest.com>:
4869 * configure.host: Accept i[34567]86 variants.
4870 * configure.tgt: Likewise.
4871 * nlm/configure.in: Likewise.
4872 * nlm/configure: Regenerated.
4873
7aa1783e
RE
48742003-06-13 Richard Earnshaw <rearnsha@arm.com>
4875
4876 * arm-tdep.c (solib-svr4.h): Dont' include it.
4877 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4878 * arm-linux-tdep.c: ... here. Make static.
4879 (arm_linux_init_abi): Register it.
4880 (solib-svr4.h): Include it.
4881 * Makefile.in: Update dependencies.
4882 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4883 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4884
0261a0d0
CV
48852003-06-13 Corinna Vinschen <vinschen@redhat.com>
4886
4887 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4888 indicate registers used for return values.
4889 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4890 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4891 members.
4892 (h8300_init_extra_frame_info): Ditto.
4893 (h8300_frame_locals_address): Removed.
4894 (h8300_frame_args_address): Removed.
4895 (h8300_extract_return_value): Use new regcache structure. Only care
4896 for 16 bit CPUs.
4897 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4898 (h8300_store_return_value): Use new regcache structure. Only care
4899 for 16 bit CPUs.
4900 (h8300h_store_return_value): Same function for 32 bit CPUs.
4901 (h8300_store_struct_return): Removed.
4902 (h8300_extract_struct_value_address): Use new regcache structure.
4903 (h8300h_extract_struct_value_address): Removed.
4904 (h8300_push_dummy_code): New function.
4905 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4906 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4907 set_gdbarch_store_return_value architecture dependent.
4908 Call set_gdbarch_push_dummy_code and
4909 set_gdbarch_extract_struct_value_address.
4910 Remove calls to set_gdbarch_frame_args_address,
4911 set_gdbarch_frame_locals_address,
4912 set_gdbarch_deprecated_store_struct_return,
4913 set_gdbarch_deprecated_extract_return_value,
4914 set_gdbarch_deprecated_extract_struct_value_address,
4915 set_gdbarch_deprecated_call_dummy_words and
4916 set_gdbarch_deprecated_sizeof_call_dummy_words.
4917
055c394a
CV
49182003-06-13 Corinna Vinschen <vinschen@redhat.com>
4919
4920 * h8300-tdep.c (h8300_register_byte): Remove.
4921 (h8300h_register_byte): Remove.
4922 (h8300_register_virtual_type): Remove. Substitute by...
4923 (h8300_register_type): New function.
4924 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4925 (h8300h_extract_struct_value_address): Ditto.
4926 (h8300_gdbarch_init): Drop calls to
4927 set_gdbarch_deprecated_register_byte and
4928 set_gdbarch_deprecated_register_virtual_type.
4929 Add call to set_gdbarch_register_type.
4930
9c04cab7
AC
49312003-06-13 Andrew Cagney <cagney@redhat.com>
4932
4933 * gdbarch.sh: Update comments on registers.
4934 (deprecated_register_byte): Rename register_byte.
4935 (deprecated_register_raw_size): Rename register_raw_size.
4936 (deprecated_register_virtual_size): Rename register_virtual_size.
4937 (deprecated_register_virtual_type): Rename register_virtual_type.
4938 * gdbarch.h, gdbarch.c: Re-generate.
4939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4940 * vax-tdep.c (vax_gdbarch_init): Update.
4941 * v850-tdep.c (v850_gdbarch_init): Update.
4942 * sparc-tdep.c (sparc_gdbarch_init): Update.
4943 * sh-tdep.c (sh_gdbarch_init): Update.
4944 * s390-tdep.c (s390_gdbarch_init): Update.
4945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4946 * ns32k-tdep.c: Update.
4947 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4948 * mips-tdep.c (mips_gdbarch_init): Update.
4949 * mcore-tdep.c (mcore_gdbarch_init): Update.
4950 * m68k-tdep.c (m68k_gdbarch_init): Update.
4951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4952 * ia64-tdep.c (ia64_gdbarch_init): Update.
4953 * hppa-tdep.c (hppa_gdbarch_init): Update.
4954 * h8300-tdep.c (h8300_gdbarch_init): Update.
4955 * frv-tdep.c (frv_gdbarch_init): Update.
4956 * cris-tdep.c (cris_gdbarch_init): Update.
4957 * avr-tdep.c (avr_gdbarch_init): Update.
4958 * alpha-tdep.c (alpha_gdbarch_init): Update.
4959 * arm-tdep.c (arm_gdbarch_init): Update.
4960
b060cbea
AC
49612003-06-13 Andrew Cagney <cagney@redhat.com>
4962
4963 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4964 mips_o32_use_struct_convention with always_use_struct_convention.
4965
0fc9922a
DC
49662003-06-12 David Carlton <carlton@kealia.com>
4967
4968 * cp-namespace.c (cp_set_block_scope): Comment out
4969 processing_has_namespace_info branch.
4970
1fd35568
JB
49712003-06-12 Jim Blandy <jimb@redhat.com>
4972
f470a70a
JB
4973 Recognize and skip 64-bit PowerPC Linux linkage functions.
4974 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4975 insn_pattern, insns_match_pattern, d_field, ds_field): New
4976 functions, macros, and types for working with PPC instructions.
4977 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4978 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4979 ppc64_skip_trampoline_code): New functions, variables, and macros
4980 for recognizing and skipping linkage functions.
4981 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4982 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4983
49ff75ad
JB
4984 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4985 register offsets for both the 32- and 64-bit interfaces.
4986
bd918c83
JB
4987 Actually finish the job started by my change of 2003-05-29.
4988 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4989 other #definition of this.
4990 (ppc_linux_skip_trampoline_code): Remove declaration.
4991 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4992 static.
4993 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4994 method for GDBARCH.
4995
4996 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4997 'long' on ppc64-*-linux*.
4998
f8c59253
JB
4999 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5000 isn't #defined, assume the register doesn't exist: act as if
5001 tdep->ppc_mq_regnum were -1.
5002
8fbb30b1
JB
5003 * configure.host, configure.tgt: Add entries for
5004 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5005 powerpc/linux.mt.
5006 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5007 New files.
5008
1fd35568
JB
5009 * arch-utils.c (always_use_struct_convention): New function.
5010 * arch-utils.h (always_use_struct_convention): New prototype.
5011 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5012 (alpha_gdbarch_init): Register always_use_struct_convention,
5013 instead of alpha_use_struct_convention.
5014 * cris-tdep.c (cris_use_struct_convention): Delete.
5015 (cris_gdbarch_init): Register always_use_struct_convention,
5016 instead of cris_use_struct_convention.
5017 * frv-tdep.c (frv_use_struct_convention): Delete.
5018 (frv_gdbarch_init): Register always_use_struct_convention,
5019 instead of frv_use_struct_convention.
5020 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5021 (h8300_gdbarch_init): Register always_use_struct_convention,
5022 instead of h8300_use_struct_convention.
e3305dd9 5023 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5024 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5025 instead of mips_o32_use_struct_convention.
5026
e14e6e9c
AC
50272003-06-12 Andrew Cagney <cagney@redhat.com>
5028
5029 * wince.c: Include "mips-tdep.h".
5030 * mips-tdep.h (mips_next_pc): Declare.
5031 * mcore-tdep.c: Make more local functions static.
5032 * Makefile.in (wince.o): Update dependencies.
5033
2335f48e
DC
50342003-06-12 David Carlton <carlton@kealia.com>
5035
5036 * symtab.c (lookup_symbol_aux_minsyms): Replace
5037 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5038 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5039 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5040 SYMBOL_NATURAL_NAME.
5041
f70a7d61
AS
50422003-06-12 Andreas Schwab <schwab@suse.de>
5043
5044 * Makefile.in (tuiDisassem.o): Update dependencies.
5045
b6429628
DC
50462003-06-12 David Carlton <carlton@bactrian.org>
5047
5048 * symtab.h: Delete declaration of make_symbol_overload_list.
5049 Add declaration of lookup_partial_symbol.
5050 * symtab.c (remove_params): Move to cp-support.c.
5051 (overload_list_add_symbol, make_symbol_overload_list)
5052 (sym_return_val_size, sym_return_val_index): Ditto.
5053 (lookup_partial_symbol): Make extern.
5054 * cp-support.h: Add declaration of make_symbol_overload_list.
5055 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5056 symtab.h, and block.h.
5057 (remove_params): Move here from symtab.c.
5058 (overload_list_add_symbol, make_symbol_overload_list)
5059 (sym_return_val_size, sym_return_val_index): Ditto.
5060 * valops.c: Include cp-support.h.
5061 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5062 frame_h, and block_h.
5063 (valops.o): Depend on cp_support_h.
5064
084edea5
CV
50652003-06-12 Corinna Vinschen <vinschen@redhat.com>
5066
5067 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5068 substitute by NUM_REGS throughout.
5069 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5070 (h8300s_register_name): New function for H8S registers.
5071 (h8300sx_register_name): Ditto for H8SX registers.
5072 (h8300_print_register): Revise register printing, avoid depending
5073 on 32 bit long.
0261a0d0 5074 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5075 (h8300h_register_byte): New function for any other architecture.
5076 (h8300_register_raw_size): Remove.
5077 (h8300_register_virtual_type): Revise to return actually useful
5078 type.
5079 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5080 (h8300h_extract_struct_value_address): New function for any other
5081 architecture.
5082 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5083 set_gdbarch_register_name, set_gdbarch_register_byte,
5084 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5085 Remove calls to set_gdbarch_deprecated_register_size,
5086 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5087 set_gdbarch_deprecated_max_register_raw_size,
5088 set_gdbarch_register_virtual_size and
5089 set_gdbarch_deprecated_max_register_virtual_size entirely.
5090 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5091 set_gdbarch_long_double_bit.
5092
06194148
JJ
50932003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5094
8ffd9b1b
AJ
5095 * doublest.c (convert_doublest_to_floatformat): When dealing
5096 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5097 processing a full 32 bits of mantissa.
5098
de4f826b
DC
50992003-06-11 David Carlton <carlton@bactrian.org>
5100
5101 * dictionary.h: New.
5102 * dictionary.c: New.
5103 * block.h: Add opaque declaration for struct dictionary.
5104 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5105 'sym' members.
5106 (BLOCK_DICT): New macro.
5107 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5108 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5109 BLOCK_SHOULD_SORT.
5110 (ALL_BLOCK_SYMBOLS): Update definition.
5111 * Makefile.in (SFILES): Add dictionary.c.
5112 (dictionary_h): New.
5113 (COMMON_OBS): Add dictionary.o.
5114 (dictionary.o): New.
5115 (ada-lang.o): Depend on dictionary_h.
5116 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5117 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5118 (mi-cmd-stack.o): Ditto.
5119 (gdbtk-cmds.o): Update dependencies.
5120 (gdbtk-stack.o): Ditto.
5121 * ada-lang.c: Include dictionary.h.
5122 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5123 (fill_in_ada_prototype, debug_print_block): Ditto.
5124 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5125 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5126 'is_sorted'.
5127 * mdebugread.c: Include dictionary.h.
5128 (struct parse_stack): Delete 'maxsyms' member.
5129 (parse_symbol): Update calls to new_block. Delete calls to
5130 shrink_block. Use dictionary methods.
5131 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5132 Update calls to new_symtab. Don't maintain maxsyms data.
5133 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5134 (add_symbol): Just call dict_add_symbol.
5135 (new_symtab): Delete 'maxsyms' argument.
5136 (new_symtab): Update calls to new_block.
5137 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5138 (shrink_block): Delete function.
5139 (fixup_sigtramp): Update call to new_block. Add symbol via
5140 dict_add_symbol.
5141 * jv-lang.c: Include dictionary.h.
5142 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5143 appropriately. Set class_symtab->free_func. Make sure the
5144 blockvector is big enough to hold two blocks.
5145 (add_class_symtab_symbol): Use dictionary methods.
5146 (free_class_block): New function.
5147 (type_from_class): Replace explicit iteration by
5148 ALL_BLOCK_SYMBOLS.
5149 * symtab.h (struct symtab): Replace 'free_ptr' method by
5150 'free_func'.
5151 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5152 sort_symtab_syms.
5153 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5154 sort_symtab_syms.
5155 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5156 Include dictionary.h.
5157 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5158 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5159 sort_symtab_syms.
5160 * objfiles.c: Include dictionary.h.
5161 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5162 * buildsym.c: Include dictionary.h.
5163 (finish_block): Use dictionary methods.
5164 (end_symtab): Set free_func to NULL, not free_ptr.
5165 * tracepoint.c: Include dictionary.h.
5166 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5167 (scope_info): Ditto.
5168 * stack.c: Include dictionary.h.
5169 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5170 (print_block_frame_labels, print_frame_arg_vars)
5171 (print_frame_args): Ditto.
5172 * symmisc.c (free_symtab_block): Use dictionary methods.
5173 (dump_symtab): Ditto.
5174 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5175 Include dictionary.h.
5176 * symfile.h: Delete declarations of sort_block_syms,
5177 sort_symtab_syms.
5178 * symfile.c (sort_block_syms): Delete.
5179 (sort_symtab_syms): Delete.
5180 * symtab.c: Include dictionary.h.
5181 (lookup_block_symbol): Use dictionary iterators.
5182 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5183 (search_symbols, make_symbol_completion_list): Ditto.
5184 (make_symbol_overload_list): Ditto.
5185 * valops.c (value_of_local): Use dict_empty.
5186 Include dictionary.h.
5187
a31f978c
JB
51882003-06-11 J. Brobecker <brobecker@gnat.com>
5189
5190 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5191
526e70c0
DC
51922003-06-11 David Carlton <carlton@bactrian.org>
5193
5194 * block.h (BLOCK_SHOULD_SORT): Delete.
5195 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5196 blocks.
5197 * ada-lang.c (ada_add_block_symbols): Ditto.
5198 * symfile.c (sort_block_syms): Delete.
5199 (sort_symtab_syms): Ditto.
5200 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5201 declarations.
5202 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5203 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5204 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5205 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5206 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5207 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5208 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5209
33c08150
JJ
52102003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5211
8ffd9b1b 5212 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5213 bits to 128.
5214
781a750d
AC
52152003-06-11 Andrew Cagney <cagney@redhat.com>
5216
5217 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5218 REGISTER_CONVERTIBLE.
5219 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5220 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5221 * gdbarch.h, gdbarch.c: Re-generate.
5222 * arch-utils.h (deprecated_register_convertible_not): Rename
5223 generic_register_convertible_not.
5224 * arch-utils.c (deprecated_register_convertible_not): Rename
5225 generic_register_convertible.
5226 (legacy_convert_register_p, legacy_register_to_value): Update.
5227 * sh-tdep.c (sh64_push_arguments): Update.
5228 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5229 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5230 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5231 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5232 * arch-utils.c (legacy_value_to_register): Update.
5233 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5234 (rs6000_register_convert_to_raw): Make parameter "from" const.
5235 * mips-tdep.c (mips_gdbarch_init): Update.
5236 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5237 * infcmd.c (default_print_registers_info): Update.
5238 * ia64-tdep.c (ia64_gdbarch_init): Update.
5239 (ia64_register_convert_to_raw): Make parameter "from" const.
5240 * i386-tdep.c (i386_gdbarch_init): Update.
5241 (i386_register_convert_to_raw): Update.
5242
cd90e54f
AC
52432003-06-11 Andrew Cagney <cagney@redhat.com>
5244
5245 * remote-fileio.c: Include "remote-fileio.h".
5246 * Makefile.in (remote-fileio.o): Update dependencies.
5247 (remote_fileio_h): Fix typo.
5248
a78f21af
AC
52492003-06-11 Andrew Cagney <cagney@redhat.com>
5250
5251 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5252 (xstormy16_save_dummy_frame_tos): Make static.
5253 (_initialize_xstormy16_tdep): Add declaration.
5254 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5255 * v850-tdep.c: Make local functions static.
5256 (_initialize_v850_tdep): Add declaration.
5257 * sparc-tdep.c: Make local functions static.
5258 (_initialize_sparc_tdep): Add declaration.
5259 * sh-tdep.c: Make local functions static.
5260 (_initialize_sh_tdep): Add declaration.
5261 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5262 * s390-tdep.c: Make local functions static.
5263 (_initialize_s390_tdep): Add declaration.
5264 * dbxread.c (find_stab_function_addr): Make static.
5265 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5266 * ocd.c (_initialize_remote_ocd): Add declaration.
5267 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5268 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5269 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5270 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5271 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5272 * remote-array.c (_initialize_array): Add declaration.
5273 (_initialize_remote_monitors): Add declaration.
5274 * remote-mips.c: Make local functions static.
5275 (_initialize_remote_mips): Add declaration.
5276 * mcore-tdep.c: Make all local functions static.
5277 (_initialize_mcore_tdep): Add declaration.
5278 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5279 * abug-rom.c (_initialize_abug_rom): Add declaration.
5280 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5281 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5282 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5283 * remote-est.c (_initialize_est): Add declaration.
5284 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5285 (m68hc11_call_dummy_address): Make static.
5286 * ia64-tdep.c: Make local functions static.
5287 (_initialize_ia64_tdep): Add declaration.
5288 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5289 * monitor.c (monitor_wait_filter): Make static.
5290 (_initialize_remote_monitors): Add declaration.
5291 * remote-hms.c (_initialize_remote_hms): Add declaration.
5292 * remote-e7000.c (fetch_regs_from_dump): Make static.
5293 (expect_n): Make static.
5294 (_initialize_remote_e7000): Add declaration.
5295 * ser-e7kpc.c: Always include "defs.h".
5296 (_initialize_ser_e7000pc): Add declaration.
5297 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5298 * cris-tdep.c: Make all but one function static.
5299 (_initialize_cris_tdep): Add declaration.
5300 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5301 * solib.c (update_solib_list): Make static.
5302 (_initialize_solib): Add declaration.
5303 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5304 (_initialize_avr_tdep): Add declaration.
5305 * remote-rdi.c (voiddummy): Make static.
5306 (_initialize_remote_rdi): Add declaration.
5307 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5308 * remote-rdp.c (send_rdp): Make static.
5309 (_initialize_remote_rdp): Add declaration.
5310 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5311
cbcdb1f5
CV
53122003-06-11 Corinna Vinschen <vinschen@redhat.com>
5313
5314 * remote-fileio.c: Make ari happy.
5315
a191ea8d
JB
53162003-06-10 J. Brobecker <brobecker@gnat.com>
5317
5318 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5319 fetching the trailing bytes of the buffer we are about to write.
5320
0ef75e11
AC
53212003-06-10 Andrew Cagney <cagney@redhat.com>
5322
5323 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5324 * Makefile.in (remote-fileio.o): Update dependencies.
5325 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5326 include <setjmp.h>, or <sys/types.h> conditional on USG.
5327 (remote_fio_jmp_buf): Delete global variable.
5328
449092f6 53292003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5330 Martin M. Hunt <hunt@redhat.com>
449092f6 5331
559fa028
AC
5332 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5333 (SFILES): Add remote-fileio.c.
5334 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5335 dependencies for building remote.o.
449092f6
CV
5336 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5337 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5338 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5339 static storage class.
5340 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5341 'F' packet.
5342 (_initialize_remote): Call initialize_remote_fileio().
5343 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5344 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5345 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5346 (captured_main): Initialize new ui_files.
5347 * ui-file.c: Add read and fgets input functions.
5348 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5349 (null_file_read): New function.
5350 (ui_file_read): New function.
5351 (set_ui_file_read): New function.
5352 (stdio_file_read): New function.
5353 * ui-file.h: New type ui_file_read_ftype.
5354 (set_ui_file_read): Declare.
5355 (ui_file_read): Declare.
5356
248de703
AC
53572003-06-09 Andrew Cagney <cagney@redhat.com>
5358
5359 * frame.h (deprecated_unwind_get_saved_register): Rename
5360 generic_unwind_get_saved_register, update comments.
5361 * mips-tdep.c (mips_get_saved_register): Update.
5362 * frame.c (deprecated_unwind_get_saved_register): Update.
5363
0ed8aa57
AC
53642003-06-09 Andrew Cagney <cagney@redhat.com>
5365
5366 * vax-tdep.c (vax_frame_locals_address): Delete function.
5367 (vax_gdbarch_init): Do not set frame_locals_address.
5368 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5369 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5370 * s390-tdep.c (s390_frame_args_address): Delete function.
5371 (s390_gdbarch_init): Do not set frame_args_address or
5372 frame_locals_address.
5373 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5374 (ns32k_gdbarch_init): Do not set frame_locals_address.
5375 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5376 (hppa_frame_locals_address): Delete function.
5377 (hppa_gdbarch_init): Do not set frame_args_address, or
5378 frame_locals_address.
5379 * arm-tdep.c (arm_frame_args_address): Delete.
5380 (arm_frame_locals_address): Delete.
5381 (arm_gdbarch_init): Do not set frame_args_address, or
5382 frame_locals_address.
5383
983a287a
AC
53842003-06-09 Andrew Cagney <cagney@redhat.com>
5385
5386 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5387 * gdbarch.h, gdbarch.c: Re-generate.
5388 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5389 * arch-utils.c (frame_num_args_unknown): Delete function.
5390 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5391 (frame_info): Use FRAME_NUM_ARGS_P.
5392 * arm-tdep.c (arm_frame_num_args): Delete function.
5393 (arm_gdbarch_init): Do not set frame_num_args.
5394 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5395 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5396 (hppa_gdbarch_init): Do not set frame_num_args.
5397 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5399 frame_num_args to default frame_num_args_unknown.
5400 * v850-tdep.c (v850_gdbarch_init): Ditto.
5401 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5402 * sh-tdep.c (sh_gdbarch_init): Ditto.
5403 * s390-tdep.c (s390_gdbarch_init): Ditto.
5404 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5405 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5406 * mips-tdep.c (mips_gdbarch_init): Ditto.
5407 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5408 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5410 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5411 * i386-tdep.c (i386_gdbarch_init): Ditto.
5412 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5413 * frv-tdep.c (frv_gdbarch_init): Ditto.
5414 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5415 * cris-tdep.c (cris_gdbarch_init): Ditto.
5416 * avr-tdep.c (avr_gdbarch_init): Ditto.
5417 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5418
8d3b0994
AC
54192003-06-09 Andrew Cagney <cagney@redhat.com>
5420
5421 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5422 (print_frame_args): Moved to "stack.c".
5423 * stack.c: Include "gdb_assert.h".
5424 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5425 (print_frame_args): Moved from "printcmd.c".
5426 * frame.h (print_frame_args): Delete declaration.
5427 * Makefile.in (stack.o): Update dependencies.
5428
25e3a86b
AC
54292003-06-08 Andrew Cagney <cagney@redhat.com>
5430
5431 * frame.c (get_prev_frame): Remove reference to
5432 frame_args_address_correct in comments.
5433 * frame-base.c (default_frame_args_address): Delete code
5434 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5435 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5436 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5437 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5438 (vax_frame_args_address_correct): Delete declaration.
5439
a9e5fdc2
AC
54402003-06-08 Andrew Cagney <cagney@redhat.com>
5441
5442 * gdbarch.sh (UNWIND_SP): Add.
5443 * gdbarch.h, gdbarch.c: Re-generate.
5444 * frame.c (frame_sp_unwind): New function.
5445 (get_frame_sp): New function.
5446 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5447 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5448 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5449 value.
5450 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5451 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5452
8983bd83
AC
54532003-06-08 Andrew Cagney <cagney@redhat.com>
5454
7fec2c59
AC
5455 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5456 REMOTE_BREAKPOINT.
5457 * remote.c: Update.
5458 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5459 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5460 * config/m68k/tm-sun3.h: Update.
5461 * config/m68k/tm-m68klynx.h: Update.
5462 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5463
8983bd83
AC
5464 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5465 trad_frame". Update comments.
5466 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5467 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5468 (trad_frame_register_value, trad_frame_prev_register): Update.
5469
b9362cc7
AC
54702003-06-08 Andrew Cagney <cagney@redhat.com>
5471
5472 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5473 from GCC's acinclude.m4.
5474 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5475 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5476 * main.c (error_init): Delete declaration.
5477 * defs.h (error_init): Declare.
5478 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5479 (rs6000_convert_from_func_ptr_addr): Make static.
5480 (_initialize_rs6000_tdep): Add declaration.
5481 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5482 (show_commands, set_verbose, show_history): Delete declaration.
5483 * top.h (set_verbose): Add declaration.
5484 (show_history, set_history, show_commands): Add declaration.
5485 (do_restore_instream_cleanup): Add declaration.
5486 * objc-lang.c (specialcmp): Make static.
5487 (print_object_command): Make static.
5488 (find_objc_msgsend): Make static.
5489 (find_objc_msgcall_submethod_helper): Make static.
5490 (find_objc_msgcall_submethod): Make static.
5491 (_initialize_objc_language): Add declaration.
5492 (find_implementation_from_class): Make static.
5493 (find_implementation): Make static.
5494 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5495 * objc-lang.h (lookup_struct_typedef): Add declaration.
5496 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5497 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5498 (do_restore_user_call_depth): Make static.
5499 (do_restore_instream_cleanup): Delete declaration.
5500 (dont_repeat): Delete declaration.
5501 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5502 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5503 * reggroups.c (_initialize_reggroup): Add declaration.
5504 * cp-support.c (_initialize_cp_support): Add declaration.
5505 * cp-abi.c (_initialize_cp_abi): Add declaration.
5506 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5507 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5508 (_initialize_gnu_v3_abi): Add declaration.
5509 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5510 (_initialize_gnu_v2_abi): Add declaration.
5511 * frame-base.c (_initialize_frame_base): Add declaration.
5512 * doublest.c (floatformat_from_length): Make static.
5513 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5514 * frame.c (create_sentinel_frame): Make static.
5515 (_initialize_frame): Add declaration.
5516 * top.c (do_catch_errors): Make static.
5517 (gdb_rl_operate_and_get_next_completion): Make static.
5518 * typeprint.c: Include "typeprint.h".
5519 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5520 (sentinel_frame_this_id): Make static.
5521 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5522 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5523 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5524 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5525 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5526 * maint.c (maintenance_print_architecture): Make static.
5527 * signals/signals.c (_initialize_signals): Add declaration.
5528 * std-regs.c (_initialize_frame_reg): Add declaration.
5529 * jv-exp.y (push_variable): ISO C definition.
5530 (push_qualified_expression_name): Ditto.
5531 * memattr.c (_initialize_mem): Add declaration.
5532 * remote.c (remote_check_watch_resources): Make static.
5533 (remote_stopped_by_watchpoint): Make static.
5534 (remote_stopped_data_address): Make static.
5535 * d10v-tdep.c (nr_dmap_regs): Make static.
5536 (a0_regnum): Make static.
5537 (d10v_frame_unwind_cache): Make static.
5538 (d10v_frame_p): Make static.
5539 * osabi.c (show_osabi): Make static.
5540 (_initialize_gdb_osabi): Add extern declaration.
5541 * gdbtypes.c (make_qualified_type): Make static.
5542 (safe_parse_type): Make static.
5543 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5544 * macrotab.c (macro_bcache_free): Make static.
5545 * interps.c (interp_set_quiet): Make static.
5546 (interpreter_exec_cmd): Make static.
5547 * stack.h (select_frame_command): New file.
5548 * stack.c: Include "stack.h".
5549 (select_frame_command_wrapper): Delete function.
5550 (select_frame_command): Make global.
5551 * infcall.c: Include "infcall.h".
5552 * linespec.c: Include "linespec.h".
5553 * symfile.c (sections_overlap): Make static.
5554 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5555 * charset.c (_initialize_charset): Add missing prototype.
5556 * regcache.c (init_legacy_regcache_descr): Make static.
5557 (do_regcache_xfree): Make static.
5558 (regcache_xfer_part): Make static.
5559 (_initialize_regcache): Add missing prototype.
5560 * breakpoint.c (parse_breakpoint_sals): Make static.
5561 (breakpoint_sals_to_pc): Make static.
5562 * interps.h (clear_interpreter_hooks): ISO C declaration.
5563 * Makefile.in (stack_h): Define.
5564 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5565 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5566
a0f267c7
AC
55672003-06-08 Andrew Cagney <cagney@redhat.com>
5568
5569 * Makefile.in (d10v-tdep.o): Update dependencies.
5570 (SFILES): Add trad-frame.c.
5571 (trad_frame_h): Define.
5572 (COMMON_OBS): Add trad-frame.o.
5573 (trad-frame.o): Specify dependencies.
5574 * d10v-tdep.c: Include "trad-frame.h".
5575 (saved_regs_unwinder): Delete function.
5576 (d10v_frame_prev_register): Use trad_frame_prev_register.
5577 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5578 trad_frame", delete "regs" and "prev_sp".
5579 (prologue_find_regs): Use trad-frame.
5580 * trad-frame.h, trad-frame.c: New files.
5581
4538b4f4
MK
55822003-06-08 Mark Kettenis <kettenis@gnu.org>
5583
5584 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5585
a0273b2f
AF
55862003-06-07 Adam Fedor <fedor@gnu.org>
5587
5588 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5589 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5590 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5591 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5592 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5593 Use it.
5594
3a6c3343
AC
55952003-06-07 Andrew Cagney <cagney@redhat.com>
5596
5597 * symfile.h: Re-indent, clean up comments.
5598
b46e02f6
AC
55992003-06-07 Andrew Cagney <cagney@redhat.com>
5600
5601 * inferior.h (deprecated_write_sp): Replace
5602 generic_target_write_sp.
5603 * regcache.c (deprecated_write_sp): Replace
5604 generic_target_write_sp.
5605 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5606 * vax-tdep.c (vax_gdbarch_init): Update.
5607 * v850-tdep.c (v850_gdbarch_init): Update.
5608 * sparc-tdep.c (sparc_gdbarch_init): Update.
5609 * sh-tdep.c (sh_gdbarch_init): Update.
5610 * s390-tdep.c (s390_gdbarch_init): Update.
5611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5612 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5613 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5614 * mcore-tdep.c (mcore_gdbarch_init): Update.
5615 * m68k-tdep.c (m68k_gdbarch_init): Update.
5616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5617 * ia64-tdep.c (ia64_gdbarch_init): Update.
5618 * h8300-tdep.c (h8300_gdbarch_init): Update.
5619 * frv-tdep.c (frv_gdbarch_init): Update.
5620 * cris-tdep.c (cris_gdbarch_init): Update.
5621 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5622
a42e117c
AC
56232003-06-07 Andrew Cagney <cagney@redhat.com>
5624
5625 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5626 Assert that PC_REGNUM is valid.
5627 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5628
bd1ce8ba
AC
56292003-06-07 Andrew Cagney <cagney@redhat.com>
5630
5631 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5632 * gdbarch.h, gdbarch.c: Regenerate.
5633 * mn10300-tdep.c: Include "gdb_assert.h".
5634 (mn10300_read_fp): New function.
5635 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5636 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5637 * ia64-tdep.c: Include "gdb_assert.h".
5638 (ia64_read_fp): New function.
5639 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5640 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5641 * regcache.c (generic_target_read_sp): Delete function.
5642 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5643 * inferior.h (generic_target_read_sp): Delete declaration.
5644 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5645 generic_target_read_sp.
5646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5647 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5648 * sh-tdep.c (sh_gdbarch_init): Ditto.
5649 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5650 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5651
ec5cbaec
AC
56522003-06-07 Andrew Cagney <cagney@redhat.com>
5653
5654 * gdbarch.sh: Comment each field of startup_gdbarch.
5655 * gdbarch.h, gdbarch.c: Re-generate.
5656
cde9ea48
AC
56572003-06-07 Andrew Cagney <cagney@redhat.com>
5658
5659 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5660 * gdbarch.h, gdbarch.c: Re-generate.
5661 * regcache.c: Update comments on read_pc et.al.
5662 (generic_target_read_pc): Delete function.
5663 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5664 * inferior.h (generic_target_read_pc): Delete declaration.
5665 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5666 generic_target_read_pc.
5667 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5668 * sh-tdep.c (sh_gdbarch_init): Ditto.
5669 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5671
9a90a780
AC
56722003-06-07 Andrew Cagney <cagney@redhat.com>
5673
5674 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5675 "index" with "special_local_sect". Use strcmp instead of STREQ.
5676 Append period to coments.
5677
a39a16c4
MM
56782003-06-06 Mark Mitchell <mark@codesourcery.com>
5679
5680 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5681 (elfstab_offset_sections): Likewise.
5682 * gdb-stabs.h (stab_section_info): Likewise.
5683 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5684 * objfiles.c (objfile_relocate): Likewise.
5685 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5686 * remote.c (get_offsets): Likewise.
5687 (remote_cisco_objfile_relocate): Likewise.
5688 * somread.c (som_symfile_offsets): Likewise.
5689 * symfile.c (alloc_section_addr_info): New function.
5690 (build_section_addr_info_from_section_tab): Use it.
5691 (free_section_addr_info): Adjust.
5692 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5693 (syms_from_objfile): Allocate local_addr dynamically.
5694 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5695 dynamically.
5696 (add_symbol_file_command): Allocate sect_opts dynamically.
5697 (reread_symbols): Avoid use of SECT_OFF_MAX.
5698 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5699 (alloc_section_addr_info): Declare it.
5700 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5701 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5702 dynamically.
5703 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5704
20c6c2f8
AC
57052003-06-06 Andrew Cagney <cagney@redhat.com>
5706
5707 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5708 (d10v_frame_unwind_cache): Do not set "return_pc".
5709
884a26c8
MS
57102003-06-06 Michael Snyder <msnyder@redhat.com>
5711
5712 * h8300-tdep.c: Make tidy (long lines).
5713
088ce440
ML
57142003-06-06 Michal Ludvig <mludvig@suse.cz>
5715
8ffd9b1b 5716 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5717 to regcache_collect().
5718
7d773d96
JB
57192003-06-05 J. Brobecker <brobecker@gnat.com>
5720
5721 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5722 pc_in_sigtramp multiarch method.
5723 (hppa_hpux_som_init_abi): Use it.
5724 (hppa_hpux_elf_init_abi): Likewise.
5725 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5726 macro has been multiarched.
5727 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5728 macro here, as hppa64 isn't multiarched yet.
5729
1df6926e
AC
57302003-06-05 Andrew Cagney <cagney@redhat.com>
5731
5732 * Makefile.in (value_h): Add $(frame_h).
5733 * value.h: Include "frame.h".
5734 (struct value): Replace "frame_addr" with "frame_id".
5735 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5736 * values.c (allocate_value): Use VALUE_FRAME_ID.
5737 (value_copy): Use VALUE_FRAME_ID.
5738 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5739 * valops.c (value_assign): Update. Use frame_find_by_id.
5740
6b53acc6
ML
57412003-06-05 Michal Ludvig <mludvig@suse.cz>
5742
5743 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5744 in each pass.
5745
4d9850d3
JJ
57462003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5747
5748 * thread-db.c (check_event): For create/death event breakpoints,
5749 loop through all messages to ensure that we read the message
5750 corresponding to the breakpoint we are at.
5751
8efca6ba
MS
57522003-06-04 Michael Snyder <msnyder@redhat.com>
5753
5754 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5755
0912c7f2
MK
57562003-06-04 Mark Kettenis <kettenis@gnu.org>
5757
5758 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5759 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5760 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5761 when handling .eh_frame sections.
5762
4e370325
JB
57632003-06-04 J. Brobecker <brobecker@gnat.com>
5764
5765 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5766 prepare_to_proceed procedure instead of the hppa-specific one.
5767 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5768
b757528f 57692003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5770
b757528f
JJ
5771 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5772 * config.in: Regenerated.
5773 * configure.in: Add test for syscall function and check for
5774 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5775 * configure: Regenerated.
5776 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5777 <sys/syscall.h>.
5778 (kill_lwp): New function that uses tkill syscall or
5779 uses kill, depending on whether threading model is nptl or not.
5780 All callers of kill() changed to use kill_lwp().
5781 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5782 see if all threads have already exited in the nptl model.
5783 (stop_and_resume_callback): New callback function used by the
5784 lin_lwp_wait thread exit handling code.
5785 (stop_wait_callback): Check for threads already having exited and
5786 delete such threads fromt the lwp list when discovered.
5787 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5788
b757528f
JJ
5789 Roland McGrath <roland@redhat.com>
5790 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5791 nptl libthread_db.
5792
087779b1
RH
57932003-06-03 Richard Henderson <rth@redhat.com>
5794
b21fd293
RH
5795 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5796 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5797 (alpha_sigtramp_frame_prev_register): Likewise.
5798 (alpha_heuristic_frame_prev_register): Likewise.
5799 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5800
8ffd9b1b 5801 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5802 alpha-specific register id names.
5803 (alpha_mdebug_frame_unwind_cache): Likewise.
5804 (alpha_mdebug_frame_prev_register): Likewise.
5805
baa490c4
RH
58062003-06-03 Richard Henderson <rth@redhat.com>
5807
5808 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5809 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5810 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5811 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5812 unwind routines.
5813 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5814 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5815 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5816
5817 * alpha-linux-tdep.c: Remove unnecessary includes.
5818 * Makefile.in (alpha-linux-tdep.o): Update.
5819
58202003-06-03 Richard Henderson <rth@redhat.com>
5821
5822 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5823 (alphabsd_fill_fpreg): Likewise.
5824
f534e522
JB
58252003-06-03 J. Brobecker <brobecker@gnat.com>
5826
5827 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5828 references to struct frame_info fields by calls to the equivalent
5829 accessors. Necessary now that frame_info is opaque.
5830
4035536b
JB
58312003-06-03 J. Brobecker <brobecker@gnat.com>
5832
5833 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5834 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5835 structure, field no longer exists.
5836
0bd79c5c
JB
58372003-06-03 J. Brobecker <brobecker@gnat.com>
5838
5839 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5840 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5841
37bb6d9f
JB
58422003-06-03 J. Brobecker <brobecker@gnat.com>
5843
5844 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5845 references to struct frame_info fields by calls to the equivalent
5846 accessors. Necessary now that frame_info is opaque.
5847
852ee05c
JB
58482003-06-03 J. Brobecker <brobecker@gnat.com>
5849
5850 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5851 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5852 structure, field no longer exists.
5853
7d58c67d
TR
58542003-06-03 Theodore A. Roth <troth@openavr.org>
5855
8ffd9b1b 5856 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5857 accumulation of the size of all registers instead of blindly using
5858 DEPRECATED_REGISTER_BYTES.
5859
0a48e7e8
MS
58602003-06-03 Michael Snyder <msnyder@redhat.com>
5861
5862 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5863 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5864 for h8300sx.
5865
9798ab0d
JB
58662003-06-03 J. Brobecker <brobecker@gnat.com>
5867
5868 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5869 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5870
00b037e2
AC
58712003-06-03 Andrew Cagney <cagney@redhat.com>
5872
5873 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5874 (sparc_convert_to_raw): Delete function.
5875 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5876 register_convert_to_virtual.
5877
043b2f77
JJ
58782003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5879
5880 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5881 layer if not dealing with a statically-linked threaded program.
5882
f43caff8
KW
58832003-06-03 Kris Warkentin <kewarken@qnx.com>
5884
5885 * solib.c (solib_open): Update comment to reflect actual search order.
5886
ae1e7417
AC
58872003-06-03 Andrew Cagney <cagney@redhat.com>
5888
5889 * frame.c (get_frame_memory_signed): New function.
5890 (get_frame_memory, get_frame_memory_unsigned): New function.
5891 (get_frame_arch): New function.
5892 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5893 (get_frame_memory, get_frame_unsigned_memory): Declare.
5894 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5895 get_frame_memory_unsigned and get_frame_arch.
5896 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5897
cb123844
RG
58982003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5899
5900 * MAINTAINERS (write after approval): Add myself.
5901
1bb792e9
JB
59022003-06-03 Jim Blandy <jimb@redhat.com>
5903
5904 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5905 elements of gregset_t are 64 bits each, but access registers
5906 are still 32 bits, so they're packed two per gregset_t
5907 element. Unpack/pack them properly.
5908
aee8d8ba
DC
59092003-06-02 David Carlton <carlton@bactrian.org>
5910
5911 * linespec.c (find_methods): Break out code into
5912 add_matching_methods and add_constructors.
5913 (add_matching_methods): New.
5914 (add_constructors): Ditto.
5915
bf7488d2
AC
59162003-06-02 Andrew Cagney <cagney@redhat.com>
5917
bf7488d2
AC
5918 * sparc-tdep.c (sparc_print_registers): Delete call to
5919 REGISTER_CONVERTIBLE.
5920 (sparc_gdbarch_init): Do not set register_convertible.
5921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5922 * frv-tdep.c (frv_gdbarch_init): Ditto.
5923 * cris-tdep.c (cris_gdbarch_init): Ditto.
5924
adedef68
EZ
59252003-06-02 Elena Zannoni <ezannoni@redhat.com>
5926
8ffd9b1b 5927 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5928 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5929 (syms_from_objfile): Ditto.
5930
650fcc91
AS
59312003-06-03 Andreas Schwab <schwab@suse.de>
5932
5933 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5934 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5935
df4a182b
RH
59362003-06-02 Richard Henderson <rth@redhat.com>
5937
5938 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5939 a member of all_reggroup.
5940
c483c494
RH
59412003-06-02 Richard Henderson <rth@redhat.com>
5942
5943 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5944 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5945 (alpha_lds, alpha_sts): New.
5946 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5947 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5948 restructure and fail for type sizes other than 4 or 8.
5949 (alpha_value_to_register): Similarly.
5950 (alpha_extract_return_value): Use alpha_sts.
5951 (alpha_store_return_value): Use alpha_lds.
5952 (alpha_gdbarch_init): Update hooks.
5953
b38b6be2
RH
59542003-06-02 Richard Henderson <rth@redhat.com>
5955
5956 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5957 regnum identifiers.
5958 (alpha_sigtramp_register_address): Likewise.
5959
98a8e1e5
RH
59602003-06-02 Richard Henderson <rth@redhat.com>
5961
5962 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5963 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5964 * alpha-tdep.h: Declare them.
5965
5966 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5967 Remove zerobuf. Don't error on UNIQUE.
5968 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5969 (ALPHA_REGSET_UNIQUE): Provide default.
5970 (supply_gregset): Use alpha_supply_int_regs.
5971 (fill_gregset): Use alpha_fill_int_regs.
5972 (supply_fpregset): Use alpha_supply_fp_regs.
5973 (fill_fpregset): Use alpha_fill_fp_regs.
5974 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5975 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5976 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5977 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5978 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5979 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5980
67dfac52
RH
59812003-06-02 Richard Henderson <rth@redhat.com>
5982
f75d70cc
RH
5983 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5984
67dfac52
RH
5985 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5986 (alpha_store_return_value): Likewise.
5987
0cf566ec
DC
59882003-06-02 David Carlton <carlton@math.stanford.edu>
5989
5990 * block.c (contained_in): Add 'const' to arguments.
5991 (block_function): Ditto.
5992 * block.h: Update declarations for block_function and
5993 contained_in.
5994
cdef89d0
DC
59952003-06-02 David Carlton <carlton@math.stanford.edu>
5996
5997 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5998 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5999 * p-valprint.c (pascal_val_print): Ditto.
6000 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6001
72667056
RH
60022003-06-02 Richard Henderson <rth@redhat.com>
6003
98a8e1e5
RH
6004 * alpha-tdep.c (alpha_push_dummy_call): Use
6005 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 6006
8ffd9b1b 6007 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
6008 sign-extension of 32-bit values.
6009 (alpha_store_return_value): Similarly.
0ede8eca 6010
98a8e1e5
RH
6011 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6012 (alpha_extract_return_value): Likewise.
6013 (alpha_store_return_value): Likewise.
7b5e1cb3 6014
98a8e1e5
RH
6015 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6016 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 6017
98a8e1e5
RH
6018 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6019 (alpha_extract_struct_value_address): Likewise.
6020 (alpha_store_return_value): Likewise.
6021 (alpha_store_struct_return): Remove.
6022 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6023
98a8e1e5
RH
6024 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6025 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6026 macros where appropriate.
6027 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6028 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6029
98a8e1e5
RH
6030 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6031 for SP, GP; void_func_ptr for PC; non-language-specific types
6032 for all others.
6033 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6034
6dd77b81
RH
60352003-06-02 Richard Henderson <rth@redhat.com>
6036
6037 * top.h (lim_at_start): Declare.
6038 * main.c (captured_main): Set it.
6039 * top.c (lim_at_start): Define.
6040 (command_loop): Use it instead of &environ.
6041 * event-top.c (command_handler): Likewise.
6042
f4dbdb54
JT
60432003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6044
6045 * mipsnbsd-tdep.c: Update copyright years.
6046 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6047
8f285956
RH
60482003-06-01 Richard Henderson <rth@redhat.com>
6049
98a8e1e5
RH
6050 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6051 (alpha-linux-tdep.o): Update dependencies.
6052 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6053 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6054
615967cb
RH
60552003-06-01 Richard Henderson <rth@redhat.com>
6056
98a8e1e5
RH
6057 * alpha-tdep.c (alpha_register_reggroup_p): New.
6058 (alpha_gdbarch_init): Register it.
615967cb 6059
b59661bd
AC
60602003-06-02 Andrew Cagney <cagney@redhat.com>
6061
6062 * dwarfread.c: Eliminate "register"
6063 (decode_die_type): Eliminate assignment within "if".
6064 (struct_type, decode_array_element_type): Ditto.
6065 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6066 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6067 (decode_modified_type, completedieinfo): Ditto.
6068 * block.c: Eliminate "register".
6069 (blockvector_for_pc_sect): Eliminate assignment within "if".
6070 * cp-support.h (struct symbol): Opaque declaration.
6071 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6072
5ef165c2
RH
60732003-06-01 Richard Henderson <rth@redhat.com>
6074
98a8e1e5
RH
6075 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6076 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6077
143985b7
AF
60782003-06-01 Adam Fedor <fedor@gnu.org>
6079
6080 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6081 * gdbarch.[ch]: Regenerate.
6082 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6083 (hppa_gdbarch_init): Set it in the gdbarch vector.
6084 * i386-tdep.c (i386_fetch_pointer_argument): New
6085 (i386_gdbarch_init): Set it into gdbarch.
6086 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6087 (rs6000_gdbarch_init): Set it in gdbarch.
6088 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6089 (sparc_gdbarch_init): Set it in gdbarch.
6090
ae0167b9
AC
60912003-06-01 Andrew Cagney <cagney@redhat.com>
6092
7c0b4a20
AC
6093 * defs.h (extract_address): Delete declaration.
6094 * findvar.c (extract_address): Delete function.
6095 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6096 extract_address with the inline equivalent,
6097 extract_unsigned_integer.
6098 (xstormy16_extract_struct_value_address): Ditto.
6099 (xstormy16_pointer_to_address): Ditto.
6100 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6101 * v850-tdep.c (v850_push_arguments): Ditto.
6102 (v850_extract_return_value): Ditto.
6103 (v850_extract_struct_value_address): Ditto.
6104 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6105 (sparcnbsd_get_longjmp_target_64): Ditto.
6106 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6107 (get_longjmp_target): Ditto.
6108 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6109 (sh64_extract_struct_value_address): Ditto.
6110 (sh_push_arguments): Ditto.
6111 (sh64_push_arguments): Ditto.
6112 * remote-vxsparc.c (vx_read_register): Ditto.
6113 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6114 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6115 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6116 * mipsv4-nat.c (get_longjmp_target): Ditto.
6117 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6118 * mips-nat.c (get_longjmp_target): Ditto.
6119 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6120 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6121 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6122 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6123 * irix5-nat.c (get_longjmp_target): Ditto.
6124 * irix4-nat.c (get_longjmp_target): Ditto.
6125 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6126 (ia64_push_arguments): Ditto.
6127 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6128 * h8300-tdep.c (h8300_push_arguments): Ditto.
6129 (h8300_store_return_value): Ditto.
6130 (h8300_extract_struct_value_address): Ditto.
6131 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6132 (frv_push_arguments): Ditto.
6133 * avr-tdep.c (avr_pointer_to_address): Ditto.
6134 (avr_push_arguments): Ditto.
6135 * arm-tdep.c (arm_push_dummy_call): Ditto.
6136 (arm_get_longjmp_target): Ditto.
6137 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6138 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6139 (alpha_get_longjmp_target): Ditto.
6140
ae0167b9
AC
6141 * solib-irix.c (extract_mips_address): Inline extract_address,
6142 replacing it with extract_signed_integer.
6143 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6144 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6145 (first_link_map_member, open_symbol_file_object): Ditto.
6146 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6147 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6148 (LM_NEXT, LM_NAME): Ditto.
6149
44d88583
RH
61502003-06-01 Richard Henderson <rth@redhat.com>
6151
98a8e1e5
RH
6152 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6153 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6154 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6155 (alpha_cannot_store_register): Likewise.
6156 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6157 * alpha-nat.c (supply_gregset): Likewise.
6158 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6159
310e9b6a
AC
61602003-06-01 Andrew Cagney <cagney@redhat.com>
6161
6162 * infcall.c (call_function_by_hand): Update comment on
6163 DEPRECATED_DUMMY_WRITE_SP.
6164
6165 * mips-tdep.c (mips_gdbarch_init): Do not set
6166 deprecated_dummy_write_sp.
6167 (mips_eabi_push_dummy_call): Set the SP register.
6168 (mips_o64_push_dummy_call): Set the SP register.
6169 (mips_o32_push_dummy_call): Set the SP register.
6170 (mips_n32n64_push_dummy_call): Set the SP register.
6171
5ab84872
RH
61722003-06-01 Richard Henderson <rth@redhat.com>
6173
98a8e1e5
RH
6174 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6175 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6176 (supply_gregset): Likewise.
6177 * alpha-tdep.c (alpha_store_return_value): Likewise.
6178 (alpha_get_longjmp_target): Likewise.
6179 (alpha_register_name): Constify array.
6180 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6181 deprecated_register_size, deprecated_register_bytes,
6182 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6183 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6184 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6185
09cc52fd
RH
61862003-06-01 Richard Henderson <rth@redhat.com>
6187
6188 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6189 from arg_reg_buffer to regcache to avoid double conversion.
6190
c7f16359
MK
61912003-06-01 Mark Kettenis <kettenis@gnu.org>
6192
6193 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6194 SP_REGNUM.
6195 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6196 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6197
7131cb6e
RH
61982003-06-01 Richard Henderson <rth@redhat.com>
6199
98a8e1e5
RH
6200 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6201 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6202
f3e0f90b
RH
62032003-06-01 Richard Henderson <rth@redhat.com>
6204
98a8e1e5
RH
6205 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6206 not overlapping PC_REGNUM.
f3e0f90b 6207
c88e30c0
RH
62082003-06-01 Richard Henderson <rth@redhat.com>
6209
98a8e1e5
RH
6210 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6211 alpha_push_arguments. Don't dump argument register data to
6212 the target stack. Fix float and 128-bit long double semantics.
6213 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6214 (alpha_fix_call_dummy): Remove.
6215 (alpha_call_dummy_words): Remove.
6216 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6217
f1a559ae
RH
62182003-06-01 Richard Henderson <rth@redhat.com>
6219
6220 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6221
5e045346
AC
62222003-06-01 Andrew Cagney <cagney@redhat.com>
6223
95404a3e
AC
6224 * mips-tdep.c (is_mips16_addr): New function.
6225 (make_mips16_addr, unmake_mips16_addr): New functions.
6226 (pc_is_mips16, mips_fetch_instruction): Use.
6227 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6228 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6229 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6230 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6231 TARGET_MIPS.
6232 * config/mips/tm-mips.h: Update copyright.
6233 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6234 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6235 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6236 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6237 (TM_PRINT_INSN_MACH): Delete.
6238 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6239
5e045346
AC
6240 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6241 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6242 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6243 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6244 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6245 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6246 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6247 mips*-*-riscos* and mips*-*-sysv* onto mips.
6248 * config/mips/mips64.mt: New file.
6249 * config/mips/mips.mt: New file.
6250 * config/mips/littlemips.mt: Delete file.
6251 * config/mips/decstation.mt: Delete file.
6252 * config/mips/vr4300el.mt: Delete file.
6253 * config/mips/vr5000el.mt: Delete file.
6254 * config/mips/vr5000.mt: Delete file.
6255 * config/mips/vr4100.mt: Delete file.
6256 * config/mips/vr4xxxel.mt: Delete file.
6257 * config/mips/vr4300.mt: Delete file.
6258 * config/mips/vr4xxx.mt: Delete file.
6259 * config/mips/bigmips.mt: Delete file.
6260 * config/mips/bigmips64.mt: Delete file.
6261 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6262 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6263 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6264 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6265 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6266 "tm-bigmips.h".
6267 * config/mips/tm-irix3.h: Ditto.
6268 * config/mips/tm-mipsv4.h: Ditto.
6269 * config/mips/tm-embed.h: Ditto.
6270 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6271 "tm-bigmips64.h".
6272 * config/mips/tm-vr5000el.h: Delete file.
6273 * config/mips/tm-tx39l.h: Delete file.
6274 * config/mips/tm-vr4300el.h: Delete file.
6275 * config/mips/tm-vr4xxxel.h: Delete file.
6276 * config/mips/tm-vr4300.h: Delete file.
6277 * config/mips/tm-vr4100.h: Delete file.
6278 * config/mips/tm-vr4xxx.h: Delete file.
6279 * config/mips/tm-vr5000.h: Delete file.
6280 * config/mips/tm-embedl64.h: Delete file.
6281 * config/mips/tm-embedl.h: Delete file.
6282 * config/mips/tm-embed64.h: Delete file.
6283 * config/mips/tm-bigmips64.h: Delete file.
6284 * config/mips/tm-bigmips.h: Delete file.
6285
2473a4a9
MK
62862003-06-01 Mark Kettenis <kettenis@gnu.org>
6287
97a5b208
MK
6288 Fix gdb/1216.
6289 * shnbsd-nat.c: Include "sh-tdep.h".
6290
2473a4a9
MK
6291 From Richard Henderson <rth@redhat.com>:
6292 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6293
e0f7ec59
AC
62942003-05-31 Andrew Cagney <cagney@redhat.com>
6295
6296 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6297 forward declaration.
6298 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6299 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6300 (mips_find_saved_regs): Use set_reg_offset.
6301 (mips_frame_init_saved_regs): Delete function.
6302 (mips_pop_frame): Call mips_find_saved_regs instead of
6303 DEPRECATED_FRAME_INIT_SAVED_REGS.
6304
68dcc709
AC
63052003-05-31 Andrew Cagney <cagney@redhat.com>
6306
6307 * mips-tdep.c (mips_gdbarch_init): Do not set
6308 deprecated_max_register_raw_size, register_virtual_size, and
6309 deprecated_max_register_virtual_size.
6310
cfc14b3a
MK
63112003-05-31 Mark Kettenis <kettenis@gnu.org>
6312
6405b0a6
MK
6313 * i386-tdep.c: Include "dwarf2-frame.h".
6314 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6315 * Makefile.in (i386-tdep.o): Update dependencies.
6316
cfc14b3a
MK
6317 * dwarf2-frame.c, dwarf2-frame.h: New files.
6318 * Makefile.in (SFILES): Add dwarf2-frame.c.
6319 (dwarf2_frame_h): Define.
6320 (COMMON_OBS): Add dwarf2-frame.o.
6321 (dwarf2-frame.o): Add dependencies.
6322
6a2751d2
AJ
63232003-05-31 Andreas Jaeger <aj@suse.de>
6324
6325 * x86-64-linux-nat.c: Fix comment.
6326
1c3545ae
MK
63272003-05-31 Mark Kettenis <kettenis@gnu.org>
6328
10f93086
MK
6329 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6330 function signature.
6331
1c3545ae
MK
6332 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6333 have a sigcontext_addr handler.
6334 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6335 sigcontext_addr handler.
6336
e11c53d2
AC
63372003-05-31 Andrew Cagney <cagney@redhat.com>
6338
6339 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6340 (print_fp_register_row): Replace do_fp_register_row.
6341 (mips_print_fp_register): Add "file" and "frame" parameters.
6342 (mips_print_register): Add "file" and "frame" parameters.
6343 (mips_print_registers_info): Replace mips_do_registers_info.
6344 (mips_gdbarch_init): Set print_registers_info instead of
6345 deprecated_do_registers_info.
6346 (mips_read_fp_register_single): Add "frame" parameter.
6347 (mips_read_fp_register_double): Add "frame" parameter.
6348
a3386186
MK
63492003-05-31 Mark Kettenis <kettenis@gnu.org>
6350
70913449
MK
6351 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6352 Fixes a bug where GDB would print the wrong register names for
6353 targets without SSE.
6354
2b5e0749
MK
6355 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6356 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6357 registers.
6358
6359 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6360 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6361 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6362 TDEP->sc_sp_offset.
6363
a3386186
MK
6364 From Michal Ludvig <mludvig@suse.cz>:
6365 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6366 and `sc_num_regs'.
6367 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6368 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6369 I386_ST0_REGNUM): Move here from...
6370 * i386-tdep.c: ... here.
6371 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6372 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6373 registers if possible.
6374 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6375 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6376 Remove variables.
6377 (i386bsd_sc_reg_offset): New variable.
6378 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6379 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6380 TDEP->sc_sp_offset.
6381 (i386fbsd_sc_reg_offset): New variable.
6382 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6383 TDEP->sc_num_regs.
6384 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6385 variables.
6386 (i386fbsd4_sc_reg_offset): New variable.
6387 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6388 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6389 TDEP->sc_sp_offset.
6390 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6391 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6392 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6393 Remove variables.
6394 (i386nbsd_sc_reg_offset): New variable.
6395 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6396 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6397 TDEP->sc_sp_offset.
6398 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6399 Remove variables.
6400 (i386obsd_sc_reg_offset): New variable.
6401 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6402 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6403 TDEP->sc_sp_offset.
6404 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6405 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6406 for frame pointer offset in `struct sigcontext'.
6407
25ab4790
AC
64082003-05-31 Andrew Cagney <cagney@redhat.com>
6409
6410 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6411 architecture methods call_dummy_words, sizeof_call_dummy_words,
6412 push_return_address, store_struct_return, and fix_call_dummy. Set
6413 push_dummy_call instead of deprecated_push_arguments.
6414 (mips_store_struct_return): Delete function.
6415 (mips_fix_call_dummy): Delete function.
6416 (mips_push_return_address): Delete function.
6417 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6418 RA_REGNUM and T9_REGNUM.
6419 (mips_n32n64_push_dummy_call): Ditto for
6420 mips_n32n64_push_arguments.
6421 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6422 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6423
6a65450a
AC
64242003-05-31 Andrew Cagney <cagney@redhat.com>
6425
6426 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6427 "dummy_addr" to "bp_addr".
6428 * infcall.c (call_function_by_hand): Pass "funaddr" to
6429 gdbarch_push_dummy_call.
6430 * gdbarch.h, gdbarch.c: Re-generate.
6431 * i386-tdep.c (i386_push_dummy_call): Update.
6432 * arm-tdep.c (arm_push_dummy_call): Update.
6433 * d10v-tdep.c (d10v_push_dummy_call): Update.
6434
c4f35dd8
MK
64352003-05-31 Mark Kettenis <kettenis@gnu.org>
6436
6437 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6438 variable declarations.
6439 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6440 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6441 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6442 x86_64_init_frame_pc, x86_64_init_frame_pc,
6443 x86_64_function_has_prologue): Remove prototypes.
6444 (X86_64_NUM_GREGS): New define.
6445 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6446 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6447 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6448 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6449 XMM1_REGNUM): Remove defines.
6450 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6451 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6452 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6453 X86_64_XMM1_REGNUM): New defines.
6454 (struct x86_64_register_info): Renamed from `struct
6455 register_info'. Remove `size' member.
6456 (x86_64_register_info_table): Remove variable.
6457 (x86_64_register_info): New variable.
6458 (X86_64_NUM_REGS): New define.
6459 (X86_64_NUM_GREGS): Remove define.
6460 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6461 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6462 Remove variables.
6463 (x86_54_dwarf2_reg_to_regnum): Remove function.
6464 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6465 (x86_64_dwarf_reg_to_regnum): New function.
6466 (x86_64_register_name): Rewrite.
6467 (x86_64_register_raw_size): Remove function.
6468 (x86_64_register_byte_table): Remove variable.
6469 (x86_64_register_byte): Remove function.
6470 (x86_64_register_virtual_type): Remove function.
6471 (x86_64_register_type): New function.
6472 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6473 x86_64_register_convert_to_raw): Remove functions.
6474 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6475 (x86_64_use_struct_convention): Make static. Adjust for renamed
6476 defines.
6477 (x86_64_frame_init_saved_regs): Remove function.
6478 (x86_64_push_arguments): Make static. Change to accept a regcache
6479 as argument.
6480 (x86_64_store_return_value, x86_64_extract_return_value): Make
6481 static. Rewrite based on i386 counterparts.
6482 (x86_64_push_dummy_call): New function.
6483 (X86_64_NUM_SAVED_REGS): New define.
6484 (x86_64_register_number): Remove function.
6485 (x86_64_store_struct_return): Remove function.
6486 (x86_64_frameless_function_invocation,
6487 x86_64_function_has_prologue): Remove functions.
6488 (PROLOG_BUFSIZE): Remove define.
6489 (struct x86_64_frame_cache): New structure.
6490 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6491 x86_64_frame_cache, x86_64_frame_this_id,
6492 x86_64_frame_prev_register, x86_64_frame_p,
6493 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6494 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6495 functions.
6496 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6497 variables.
6498 (x86_64_skip_prologue): Rewrite in terms of
6499 x86_64_analyze_prologue.
6500 (x86_64_frame_base_address): New function.
6501 (x86_64_frame_base): New variable.
6502 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6503 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6504 set deprecated_fp_regnum, deprecated_register_size,
6505 deprecated_register_bytes, register_raw_size, register_byte,
6506 register_virtual_type, register_convertiable,
6507 register_convert_to_virtual, convert_to_raw,
6508 deprecated_get_saved_register, deprecated_target_read_fp,
6509 deprecated_push_arguments, deprecated_push_return_address,
6510 deprecated_pop_frame, deprecated_store_struct_return,
6511 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6512 frameless_function_invocation, deprecated_frame_saved_pc,
6513 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6514 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6515 deprecated_init_frame_pc and virtual_frame_pointer. Call
6516 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6517 and x86_64_frame_p. Call frame_base_set_default to register
6518 x86_64_frame_base.
6519 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6520 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6521 (_initialize_x86_64_tdep): Remove function.
6522 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6523 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6524 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6525 define.
6526 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6527 (x86_64_linux_sigcontext_addr): Rewrite.
6528 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6529 x86_64_linux_frame_saved_pc): Remove functions.
6530 (x86_64_linux_pc_in_sigtramp): Renamed from
6531 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6532 trampoline.
6533 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6534 Remove_functions.
6535 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6536 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6537 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6538 (x86_64_regmap): Rename to regmap.
6539 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6540 x86_64_num_gregs.
6541 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6542 x86_64_regmap.
6543 (x86_64_fxsave_offset): Remove function.
6544 (supply_fpregset): Simply call x86_64_supply_fxsave.
6545 (fill_fpregset): Simply call x86_64_fill_fxsave.
6546 (fetch_inferior_registers, store_inferior_registers): Avoid
6547 asignment in if-statement.
6548 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6549 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6550 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6551 (fetch_core_registers): Remove function.
6552 (linux_elf_core_fns): Remove.
6553 (offsetoff): Don't define.
6554 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6555 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6556 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6557 add core-regset.o.
6558 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6559 protection against multiple includes instead of NM_X86_64_h. Add
6560 various comments. Include "config/nm-linux.h". Don't include
6561 <signal.h>.
6562 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6563 GET_THREAD_SIGNALS): Remove defines.
6564 (x86_64_register_u_addr, kernel_u_size,
6565 lin_thread_get_thread_signals): Remove prototypes.
6566 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6567 [HAVE_LINK_H]: Don't include "solib.h".
6568 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6569 * config/i386/tm-x86-64linux.h: Fix comments.
6570 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6571 x86-64-tdep.o): Update dependencies.
6572
c25083af
AC
65732003-05-30 Andrew Cagney <cagney@redhat.com>
6574
c8f55a7b
AC
6575 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6576 Change parameter type to a "struct regcache *".
6577
c25083af
AC
6578 * gdbarch.sh: Regardless of the multi-arch level, always define
6579 the macro when not already defined.
6580 * gdbarch.h, gdbarch.c: Re-generate.
6581
fbe586ae
RH
65822003-05-30 Richard Henderson <rth@redhat.com>
6583
6584 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6585 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6586 (alpha_mdebug_frame_this_id): Likewise.
6587 (alpha_mdebug_frame_prev_register): Likewise.
6588 (alpha_mdebug_frame_base_address): Likewise.
6589 (alpha_mdebug_frame_locals_address): Likewise.
6590 (alpha_mdebug_frame_args_address): Likewise.
6591 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6592 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6593 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6594 loop increment.
6595 (alpha_heuristic_frame_this_id): Make static.
6596 (alpha_heuristic_frame_prev_register): Likewise.
6597 (alpha_heuristic_frame_base_address): Likewise.
6598 * alpha-tdep.h: Update.
6599
acd5c798
MK
66002003-05-30 Mark Kettenis <kettenis@gnu.org>
6601
6602 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6603 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6604 defenitions.
6605 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6606 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6607 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6608 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6609 I386_ST0_REGNUM): New defines.
6610 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6611 codestream_get): Remove define.
6612 (codestream_next_addr, condestream_addr, condestream_buf,
6613 codestream_off, codestream_cnt): Remove variables.
6614 (codestream_fill, codestream_seek, codestream_read): Remove
6615 functions.
6616 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6617 functionality.
6618 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6619 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6620 i386_frame_saved_pc, i386_saved_pc_after_call,
6621 i386_frame_num_args, i386_frame_init_saved_regs,
6622 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6623 i386_push_arguments): Remove functions.
6624 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6625 functionality. Use i386_analyze_prologue instead of
6626 i386_get_frame_setup.
6627 (I386_NUM_SAVED_REGS): New define.
6628 (struct i386_frame_cache): New structure.
6629 (i386_alloc_frame_cache, i386_analyze_struct_return,
6630 i386_skip_probe, i386_analyze_frame_setup,
6631 i386_analyze_register_saves, i386_analyze_prologue,
6632 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6633 i386_frame_prev_register, i386_sigtramp_frame_cache,
6634 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6635 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6636 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6637 New functions.
6638 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6639 New variables.
6640 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6641 I386_EAX_REGNUM and I386_EDX_REGNUM.
6642 (i386_extract_return_value, i386_store_return_value): Use
6643 I386_ST0_REGNUM where appropriate.
6644 (i386_extract_struct_value_address): Rewrite to use extract_address.
6645 (i386_svr4_pc_in_sigtramp): Add comment.
6646 (i386_svr4_sigcontext_addr): Rewrite.
6647 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6648 TDEP->sc_sp_offset.
6649 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6650 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6651 of new defines. Set push_dummy_call, don't set
6652 deprecated_push_arguments, deprecated_push_return_address,
6653 deprecated_pop_frame. Don't set parm_boundary. Don't set
6654 deprecated_frame_chain, deprecated_frame_saved_pc,
6655 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6656 save_dummy_frame_tos, unwind_pc. Call
6657 frame_unwind_append_predicate and frame_base_set_default. Don't
6658 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6659 Don't set frameless_function_invocation. Don't set
6660 deprecated_register_bytes, deprecated_register_size,
6661 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6662 * i386-linux-tdep.c: Fix formatting in some comments.
6663 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6664 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6665 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6666 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6667 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6668 redundant parentheses.
6669 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6670 (i386_linux_sigcontext_addr): Use it. Rewrite.
6671 (find_minsym_and_objfile): Change name of second argument.
6672 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6673 changed. Use frame_pc_unwind instead of
6674 DEPRECATED_SAVED_PC_AFTER_CALL.
6675 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6676 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6677 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6678 unwinder.
6679 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6680 "dummy-frame.h".
6681 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6682 (_initialize_i386_cygwin_tdep): New prototype.
6683 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6684 deprecated_frame_chain_valid.
6685 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6686 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6687 Rely on the SVR4 defaults.
6688 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6689 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6690
c89b70f1
AC
66912003-05-30 Andrew Cagney <cagney@redhat.com>
6692
6693 * infcall.c (call_function_by_hand): Always call
6694 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6695
85b32d22
RH
66962003-05-30 Richard Henderson <rth@redhat.com>
6697
c89b70f1
AC
6698 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6699 increment.
85b32d22 6700
bfe51b1e
JB
67012003-05-29 Jim Blandy <jimb@redhat.com>
6702
6703 Use gdbarch methods for solib stuff on PowerPC Linux.
6704 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6705 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6706 show through.
6707 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6708 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6709 giving the same effect as the #definitions above.
6710
1abf022c
AF
67112003-05-29 Adam Fedor <fedor@gnu.org>
6712
6713 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6714 (find_implementation_from_class): Replace it with the standard
6715 case i.e. do nothing.
6716
d2427a71
RH
67172003-05-29 Richard Henderson <rth@redhat.com>
6718
6719 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6720 (alpha_linux_sigtramp_offset): Use it. Make static.
6721 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6722 update for new frame model.
6723 * alpha-mdebug-tdep.c: New file.
6724 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6725 (alpha_osf1_init_abi): Install it.
6726 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6727 (linked_proc_desc_table): Remove.
6728 (alpha_frame_past_sigtramp_frame): Remove.
6729 (alpha_dynamic_sigtramp_offset): Remove.
6730 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6731 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6732 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6733 (push_sigtramp_desc): Remove.
6734 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6735 (alpha_cannot_store_register): Likewise.
6736 (alpha_sigcontext_addr): Remove.
6737 (alpha_find_saved_regs): Remove.
6738 (alpha_frame_init_saved_regs): Remove.
6739 (alpha_init_frame_pc_first): Remove.
6740 (read_next_frame_reg): Remove.
6741 (alpha_frame_saved_pc): Remove.
6742 (alpha_saved_pc_after_call): Remove.
6743 (temp_proc_desc, temp_saved_regs): Remove.
6744 (alpha_about_to_return): Remove.
6745 (cached_proc_desc): Remove.
6746 (alpha_frame_chain): Remove.
6747 (alpha_print_extra_frame_info): Remove.
6748 (alpha_init_extra_frame_info): Remove.
6749 (alpha_frame_locals_address): Remove.
6750 (alpha_frame_args_address): Remove.
6751 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6752 (alpha_push_dummy_frame): Remove.
6753 (alpha_pop_frame): Remove.
6754 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6755 (alpha_read_insn): New.
6756 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6757 for different insn encodings.
6758 (alpha_in_lenient_prologue): Remove.
6759 (struct alpha_sigtramp_unwind_cache): New.
6760 (alpha_sigtramp_frame_unwind_cache): New.
6761 (alpha_sigtramp_register_address): New.
6762 (alpha_sigtramp_frame_this_id): New.
6763 (alpha_sigtramp_frame_prev_register): New.
6764 (alpha_sigtramp_frame_unwind): New.
6765 (alpha_sigtramp_frame_p): New.
6766 (struct alpha_heuristic_unwind_cache): New.
6767 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6768 don't count nop insns that occur between functions.
6769 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6770 heuristic_proc_desc, but without the mdebug wrapping.
6771 (alpha_heuristic_frame_this_id): New.
6772 (alpha_heuristic_frame_prev_register): New.
6773 (alpha_heuristic_frame_unwind): New.
6774 (alpha_heuristic_frame_p): New.
6775 (alpha_heuristic_frame_base_address): New.
6776 (alpha_heuristic_frame_base): New.
6777 (alpha_unwind_dummy_id): New.
6778 (alpha_unwind_pc): New.
6779 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6780 frame related deprecated initializations; install replacements.
6781 (alpha_dump_tdep): Remove.
6782 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6783 (alpha_read_insn, alpha_after_prologue,
6784 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6785 alpha_heuristic_frame_prev_register,
6786 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6787 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6788 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6789 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6790
93ec1121
AC
67912003-05-29 Andrew Cagney <cagney@redhat.com>
6792
6793 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6794 dependant on the availability of ASSERT_FUNCTION.
6795 (ASSERT_FUNCTION): Do not define when there is no function name.
6796
98f08d3d
KB
67972003-05-29 Kevin Buettner <kevinb@redhat.com>
6798
6799 From Jimi X <jimix@watson.ibm.com>:
6800 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6801
0897f59b
JB
68022003-05-28 Jim Blandy <jimb@redhat.com>
6803
6804 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6805 argument to ptrace to int; the system headers should give it the
6806 right type, and pointers don't fit in ints on powerpc64-*-*.
6807
14898363
L
68082003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6809
6810 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6811 DW_TAG_catch_block.
6812
a7a48797
EZ
68132003-05-26 Elena Zannoni <ezannoni@redhat.com>
6814
6815 * stabsread.c (dbx_lookup_type): Make static.
6816 (read_type): Ditto.
6817 (add_undefined_type): Ditto.
6818 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6819 not export.
6820
f5479e9c
EZ
68212003-05-26 Elena Zannoni <ezannoni@redhat.com>
6822
6823 * hpread.c (hpread_has_name): Make static.
6824 (hpread_psymtab_to_symtab): Ditto.
6825 (file_exists): Ditto.
6826 (hpread_call_pxdb): Ditto.
6827 (hpread_pxdb_needed): Ditto.
6828 (hpread_quick_traverse): Ditto.
6829 (hpread_get_header): Ditto.
6830 (hpread_get_lntt): Ditto.
6831 (hpread_get_slt): Ditto.
6832 (class_of): Ditto.
6833
eb2e12d7
AS
68342003-05-25 Andreas Schwab <schwab@suse.de>
6835
78bf922a
AS
6836 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6837 stack_align and deprecated_extra_stack_alignment_needed.
6838 (m68k_stack_align): Delete.
6839
eb2e12d7
AS
6840 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6841 (m68k_register_virtual_size): Likewise.
6842 (altos_skip_prologue): Remove obsolete function.
6843 (isi_frame_num_args): Likewise.
6844 (news_frame_num_args): Likewise.
6845 (m68k_fix_call_dummy): Make static.
6846 (m68k_push_dummy_frame): Likewise.
6847 (m68k_pop_frame): Likewise.
6848 (m68k_skip_prologue): Likewise.
6849 (m68k_frame_init_saved_regs): Likewise.
6850 (m68k_saved_pc_after_call): Likewise.
6851 (m68k_get_longjmp_target): Make multi-arch.
6852 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6853 structure. Register m68k_get_longjmp_target if enabled.
6854 * m68k-tdep.h (struct gdbarch_tdep): Define.
6855 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6856
6857 * Makefile.in (config.status): Also depend on configure.tgt
6858 and configure.host.
6859 (m68klinux-tdep.o): Update dependencies.
6860 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6861 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6862 (M68K_LINUX_JB_PC): Define.
6863 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6864 and take additional parameter.
6865 (m68k_linux_sigtramp_saved_pc): Update.
6866 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6867 m68k_linux_pc_in_sigtramp, in_plt_section,
6868 find_solib_trampoline_target.
6869 * config/m68k/tm-linux.h: Don't include any tm headers.
6870 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6871 (JB_ELEMENT_SIZE): Likewise.
6872 (JB_PC): Likewise.
6873 (GET_LONGJMP_TARGET): Likewise.
6874 (IN_SIGTRAMP): Likewise.
6875 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6876
eb2c22dc
MK
68772003-05-25 Mark Kettenis <kettenis@gnu.org>
6878
6879 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6880 (sparc32_push_arguments): Re-implement by calling
6881 sparc32_do_push_arguments.
6882
44b7b84e
MK
68832003-05-25 Mark Kettenis <kettenis@gnu.org>
6884
6885 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6886 SPARC_O1_REGNUM): New defines.
6887 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6888 (sparc32_store_return_value): New function.
6889 (sparc_extract_struct_value_address): Rewrite to operate on a
6890 regcache.
6891 (sparc_gdbarch_init): Don't set
6892 deprecated_extract_struct_value_address. Set
6893 extract_struct_value_address instead. Don't set
6894 deprecated_extract_return_value and deprecated_store_return_value
6895 for 32-bit targets. Set extract_return_value and
6896 store_return_value instead.
6897 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6898 DEPRECTAED_EXTRACT_RETURN_VALUE,
6899 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6900 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6901 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6902 (sparc_store_return_value): Remove prototype.
6903 (sparc32_store_return_value): New prototype.
6904 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6905 Adjust prototypes.
6906
f6ad61e3
MK
69072003-05-24 Mark Kettenis <kettenis@gnu.org>
6908
6909 * sparcnbsd-tdep.c: Include "gdb_string.h".
6910
b276f1bb
AC
69112003-05-23 Andrew Cagney <cagney@redhat.com>
6912
6913 * p-valprint.c (pascal_val_print): Replace extract_address with
6914 the inline equivalent extract_unsigned_integer.
6915 * jv-valprint.c (java_value_print): Ditto.
6916 * ada-valprint.c (ada_val_print_1): Ditto.
6917 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6918
e76c5fcc
TR
69192003-05-23 Theodore A. Roth <troth@openavr.org>
6920
6921 * blockframe.c (frameless_look_for_prologue): Remove unused
6922 after_prologue variable.
6923
2cdd89cb
MK
69242003-05-23 Mark Kettenis <kettenis@gnu.org>
6925
6926 * blockframe.c (get_pc_function_start): Rewrite to avoid
6927 asignments in if-statements.
6928
182d43bc
EZ
69292003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6930
6931 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6932 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6933 files, don't relocate absolute symbols (and do use mst_abs).
6934
e8f3fcdd
AC
69352003-05-23 Andrew Cagney <cagney@redhat.com>
6936
6937 * objc-lang.c: Include "gdb_assert.h".
6938 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6939 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6940 (gdb_check, gdb_check_fatal): Delete functions.
6941 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6942 gdb_assert.
6943 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6944 * Makefile.in (objc-lang.o): Update dependencies.
6945
3c23e6fb
ILT
69462003-05-22 Ian Lance Taylor <ian@airs.com>
6947
6948 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6949 with fprintf_filtered, not fprintf_unfiltered.
6950
af1342ab
AC
69512003-05-22 Andrew Cagney <cagney@redhat.com>
6952
6953 * stack.c (frame_info): Inline extract_address, replacing it with
6954 extract_unsigned_integer.
6955 * findvar.c (unsigned_pointer_to_address): Ditto.
6956 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6957 * dwarf2expr.c (dwarf2_read_address): Ditto.
6958 * frame.c (frame_pc_unwind): Update comment.
6959 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6960
47e242ec
JJ
69612003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6962
6963 * infptrace.c (detach): Call print_sys_errmsg rather than
6964 perror_with_name to issue warning message when errno is non-zero
6965 after calling ptrace detach.
6966
e2ac8128
JB
69672003-05-21 J. Brobecker <brobecker@gnat.com>
6968
6969 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6970 macro definitions from here...
6971 * hppa-tdep.c: ...to there.
6972
92b3541e
KB
69732003-05-20 Kevin Buettner <kevinb@redhat.com>
6974
6975 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6976 register_ptrace_addr(). Fix all callers.
6977
55809acb
AS
69782003-05-21 Andreas Schwab <schwab@suse.de>
6979
6980 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6981 dependencies.
6982 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6983 end.
6984 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6985 (_initialize_m68k_linux_tdep): New function.
6986 (m68k_linux_frame_saved_pc): Make static.
6987 (m68k_linux_extract_return_value): Likewise.
6988 (m68k_linux_store_return_value): Likewise.
6989 (m68k_linux_extract_struct_value_address): Likewise.
6990 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6991 Remove.
6992 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6993 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6994 (DEPRECATED_FRAME_SAVED_PC): Remove.
6995
0fbc10f7
KW
69962003-05-20 Kris Warkentin <kewarken@qnx.com>
6997
6998 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6999 regset numbering rather than our own.
7000
58da2eb2
DC
70012003-05-19 David Carlton <carlton@bactrian.org>
7002
7003 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7004
1fcb5155
DC
70052003-05-19 David Carlton <carlton@bactrian.org>
7006
7007 Partial fix for PR c++/827.
7008 * cp-support.h: Include symtab.h.
7009 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7010 * cp-namespace.c: Update contributors.
7011 (cp_lookup_symbol_nonlocal): New.
7012 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7013 (lookup_symbol_file): Ditto.
7014 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7015 * block.h: Declare block_scope, block_using, block_global_block.
7016 * block.c (block_scope): New.
7017 (block_using, block_global_block): Ditto.
7018 * Makefile.in (cp_support_h): Depend on symtab_h.
7019 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7020
5f9a71c3
DC
70212003-05-19 David Carlton <carlton@bactrian.org>
7022
7023 * language.h (struct language_defn): Add 'la_value_of_this'
7024 and 'la_lookup_symbol_nonlocal' members.
7025 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7026 lookup_symbol_static, lookup_symbol_global,
7027 lookup_symbol_aux_block.
7028 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7029 if we should search fields of this and how to do static/global
7030 lookup.
7031 (lookup_symbol_aux_block): Make extern.
7032 (basic_lookup_symbol_nonlocal): New.
7033 (lookup_symbol_static, lookup_symbol_global): Ditto.
7034 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7035 'la_lookup_symbol_nonlocal' members.
7036 * c-lang.c (c_language_defn, cplus_language_defn)
7037 (asm_language_defn, minimal_language_defn): Ditto.
7038 * jv-lang.c (java_language_defn): Ditto.
7039 * language.c (unknown_language_defn, auto_language_defn)
7040 (local_language_defn): Ditto.
7041 * m2-lang.c (m2_language_defn): Ditto.
7042 * objc-lang.c (objc_language_defn): Ditto.
7043 * scm-lang.c (scm_language_defn): Ditto.
7044 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7045 * p-lang.c (pascal_language_defn): Ditto for both.
7046 * Makefile.in (f-lang.o): Depend on value_h.
7047 (p-lang.o): Ditto.
7048
89a9d1b1
DC
70492003-05-19 David Carlton <carlton@bactrian.org>
7050
7051 * block.h: Declare block_static_block.
7052 * block.c (block_static_block): New.
7053 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7054 lookup_symbol_aux_local, calling block_static_block instead.
7055 (lookup_symbol_aux_local): Delete 'static_block' argument.
7056
eed3f8ab
DC
70572003-05-19 David Carlton <carlton@bactrian.org>
7058
7059 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7060
a09d8bda
ML
70612003-05-19 Michal Ludvig <mludvig@suse.cz>
7062
7063 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7064 register numbers mapping.
7065
69636828
AF
70662003-05-18 Adam Fedor <fedor@gnu.org>
7067
7068 * symtab.c (completion_list_objc_symbol): New function.
7069 (make_symbol_completion_list): Use it to add ObjC symbols
7070 when looking though the list.
7071 (language_search_unquoted_string): New function.
7072 (make_file_symbol_completion_list): Use it.
7073
55baeb84
AS
70742003-05-18 Andreas Schwab <schwab@suse.de>
7075
d0b45d99
AS
7076 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7077 dependencies.
7078 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7079 as m68k_linux_extract_return_value.
7080 (DEPRECATED_STORE_RETURN_VALUE): Define as
7081 m68k_linux_store_return_value.
7082 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7083 m68k_linux_extract_struct_value_address.
7084 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7085 get_next_frame, get_frame_base, get_frame_pc.
7086 (m68k_linux_frame_saved_pc): Use get_frame_base.
7087 (m68k_linux_extract_return_value): New function.
7088 (m68k_linux_store_return_value): New function.
7089 (m68k_linux_extract_struct_value_address): New function.
7090 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7091
55baeb84
AS
7092 * c-exp.y (typebase): Remove duplicate occurence of
7093 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7094 of lookup_signed_typename.
55baeb84 7095
b6b08ebf
MK
70962003-05-18 Mark Kettenis <kettenis@gnu.org>
7097
7098 * dwarf2loc.c (find_location_expression): Change type of second
7099 argument to `size_t *'.
7100 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7101 for size variable.
7102
5ad1c190
DC
71032003-05-18 David Carlton <carlton@bactrian.org>
7104
7105 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7106 'linkage_name'. Add comment.
7107 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7108 'linkage_name'.
7109 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7110 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7111 (lookup_block_symbol): Ditto.
7112
b8b527c5
AC
71132003-05-16 Andrew Cagney <cagney@redhat.com>
7114
7115 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7116 * gdbarch.h, gdbarch.c: Re-generate.
7117 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7118 * TODO (REGISTER_BYTES): Delete reference.
7119 * alpha-tdep.c (alpha_gdbarch_init): Update.
7120 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7121 * x86-64-tdep.c (x86_64_init_abi): Update.
7122 * vax-tdep.c (vax_gdbarch_init): Update.
7123 * v850-tdep.c (v850_gdbarch_init): Update.
7124 * sparc-tdep.c (sparc_gdbarch_init): Update.
7125 * sh-tdep.c (sh_gdbarch_init): Update.
7126 * s390-tdep.c (s390_gdbarch_init): Update.
7127 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7128 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7129 (ns32k_gdbarch_init_32382): Update.
7130 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7131 * mcore-tdep.c (mcore_gdbarch_init): Update.
7132 * m68k-tdep.c (m68k_gdbarch_init): Update.
7133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7134 * ia64-tdep.c (ia64_gdbarch_init): Update.
7135 * i386-tdep.c (i386_gdbarch_init): Update.
7136 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7137 * hppa-tdep.c (hppa_gdbarch_init): Update.
7138 * h8300-tdep.c (h8300_gdbarch_init): Update.
7139 * frv-tdep.c (frv_gdbarch_init): Update.
7140 * cris-tdep.c (cris_gdbarch_init): Update.
7141 * avr-tdep.c (avr_gdbarch_init): Update.
7142 * arm-tdep.c (arm_gdbarch_init): Update.
7143 * sparc-tdep.c (sparc_pop_frame): Update.
7144 * rs6000-tdep.c (rs6000_pop_frame): Update.
7145 * remote.c (init_remote_state): Update.
7146 (remote_prepare_to_store): Update.
7147 * remote-vx.c (vx_prepare_to_store): Update.
7148 * remote-sds.c (sds_fetch_registers): Update.
7149 (sds_prepare_to_store): Update.
7150 * remote-array.c: Update.
7151 * regcache.c (init_legacy_regcache_descr): Update.
7152 (init_regcache_descr): Update.
7153 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7154 (mips_o64_extract_return_value): Update.
7155 * irix5-nat.c (fetch_core_registers): Update.
7156 * irix4-nat.c (fetch_core_registers): Update.
7157 * i386-tdep.h: Update.
7158 * hppa-tdep.c (pa_do_registers_info): Update.
7159 (pa_do_strcat_registers_info): Update.
7160 * cris-tdep.c (cris_register_bytes_ok): Update.
7161 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7162 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7163 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7164 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7165 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7166 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7167 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7168 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7169 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7170 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7171 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7172 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7173 (REGISTER_BYTES_OK): Update.
7174 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7175 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7176
ee2842e2
ILT
71772003-05-16 Ian Lance Taylor <ian@airs.com>
7178
7179 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7180 (vax_print_insn, print_insn_arg): Remove static functions.
7181 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7182 print_insn_vax from opcodes library.
7183 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7184
973177d3
AC
71852003-05-15 Andrew Cagney <cagney@redhat.com>
7186
aaab4dba
AC
7187 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7188 * target.h (memory_breakpoint_from_pc): Delete declaration.
7189 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7190 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7191 * monitor.c (monitor_insert_breakpoint): Use
7192 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7193 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7194 * gdbarch.h, gdbarch.c: Re-generate.
7195 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7196 (sparc_gdbarch_init): Set breakpoint_from_pc to
7197 sparc_breakpoint_from_pc.
7198 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7199 (BREAKPOINT_FROM_PC): Define.
7200 (sparc_breakpoint_from_pc): Declare.
7201 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7202 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7203 (BREAKPOINT_FROM_PC): Define.
7204 (BREAKPOINT): Delete macro.
7205 * target.h: Update comment.
7206 * s390-tdep.c (s390_gdbarch_init): Update comments.
7207 * remote.c: Update comments.
7208 * remote-mips.c: Update comments.
7209 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7210 * mem-break.c: Update comment.
7211 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7212 (ia64_memory_insert_breakpoint): Update.
7213 * config/sparc/tm-sparc.h: Update comment.
7214 * config/pa/tm-hppa64.h: Update comment.
7215 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7216 (rs6000_breakpoint_from_pc): Update.
7217 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7218 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7219 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7220 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7221 (mips_breakpoint_from_pc): Update.
7222 (mips_dump_tdep): Update.
7223
e06963ff
AC
7224 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7225 * minsyms.c (lookup_minimal_symbol): Inline
7226 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7227
973177d3
AC
7228 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7229 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7230 * p-lang.c (pascal_printstr): Ditto.
7231 * objc-lang.c (objc_printstr): Ditto.
7232 * m2-lang.c (m2_printstr): Ditto.
7233 * jv-valprint.c (java_print_value_fields): Ditto.
7234 * f-lang.c (f_printstr): Ditto.
7235 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7236 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7237 for repeat_count_threshold.
7238 * Makefile.in (cp-valprint.o): Update dependencies.
7239
5ea2bd7f 72402003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7241
5ea2bd7f
JJ
7242 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7243 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7244 they start with mov r2,r12. Support skipping over indirect stores
7245 of the input registers. Upon hitting a non-nop branch instruction
7246 or predicated instruction, bail out by setting lim_pc to the current
7247 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7248 beyond our calculated value and we have trust_limit set,
7249 use the lim_pc value.
7250
cc8c88f3
AC
72512003-05-15 Andrew Cagney <cagney@redhat.com>
7252
7253 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7254 generic_find_dummy_frame.
7255 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7256 (deprecated_generic_find_dummy_frame): Update.
7257 (deprecated_read_register_dummy): Update.
7258 * frame.c (deprecated_generic_get_saved_register): Update.
7259
909cd28e
TR
72602003-05-15 Theodore A. Roth <troth@openavr.org>
7261
7262 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7263 (avr_gdbarch_init): Set breakpoint_from_pc method.
7264
b923b08d
AC
72652003-05-15 Andrew Cagney <cagney@redhat.com>
7266
7267 * regcache.c (build_regcache): Set deprecated_register_valid
7268 directly.
7269 (deprecated_grub_regcache_for_register_valid): Delete function.
7270 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7271 declaration.
7272
ae2f03ac 72732003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7274
7275 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7276 * symtab.c (lookup_symbol_aux): Delete calls to
7277 lookup_symbol_aux_minsyms.
7278 (lookup_symbol_aux_minsyms): Comment out function and
7279 prototype. Delete lookup by mangled name.
ae2f03ac 7280
18ec9831
KB
72812003-05-14 Kevin Buettner <kevinb@redhat.com>
7282
7283 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7284 correctly indicate an empty stack and ``stack_allocated'' to the
7285 indicate the number of elements initially allocated.
7286 (dwarf_expr_grow_stack): Simplify method for computing new
7287 stack size. Don't loop infinitely if ``stack_len'' is zero.
7288 (execute_stack_op): Move ``ctx->in_reg'' initialization
7289 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7290 be used in conjuction with DW_OP_piece. Revise error message
7291 accordingly.
7292
de18ac1f
TR
72932003-05-14 Theodore A. Roth <troth@openavr.org>
7294
7295 * MAINTAINERS: Update my email address.
7296 * avr-tdep.c: Ditto.
7297
176620f1
EZ
72982003-05-14 Elena Zannoni <ezannoni@redhat.com>
7299
7300 * symtab.h (enum domain_enum): Rename from namespace_enum.
7301 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7302 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7303 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7304 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7305 TYPES_NAMESPACE, METHODS_NAMESPACE.
7306 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7307 (struct symbol, struct partial_symbol): Rename field
7308 'namespace_enum namespace' to 'domain_enum domain'.
7309 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7310 Delete old define kludge for namespace.
7311
7312 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7313 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7314 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7315 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7316 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7317 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7318 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7319 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7320 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7321 occurrences of the above.
7322
b7f31508
ILT
73232003-05-14 Ian Lance Taylor <ian@airs.com>
7324
7325 * Makefile.in (install-only): Use $(SHELL) when running
7326 mkinstalldirs.
7327
2fdbdd39
ILT
73282003-05-13 Ian Lance Taylor <ian@airs.com>
7329
a208d82c
ILT
7330 * MAINTAINERS (write after approval): Add myself.
7331
2fdbdd39
ILT
7332 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7333 second and third arguments.
7334 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7335 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7336
fbd9dcd3
AC
73372003-05-13 Andrew Cagney <cagney@redhat.com>
7338
7339 * defs.h (store_address): Delete declaration.
7340 findvar.c (store_address): Delete function.
7341 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7342 store_unsigned_integer.
7343 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7344 * v850-tdep.c (v850_push_arguments): Ditto.
7345 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7346 * sh-tdep.c (sh64_get_saved_register): Ditto.
7347 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7348 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7349 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7350 (mips_get_saved_register): Ditto.
7351 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7352 (find_func_descr, ia64_push_arguments): Ditto.
7353 * i386-tdep.c (i386_push_arguments): Ditto.
7354 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7355 * frv-tdep.c (frv_push_arguments): Ditto.
7356 * frame.c (legacy_saved_regs_prev_register): Ditto.
7357 (deprecated_generic_get_saved_register): Ditto.
7358 * findvar.c (unsigned_address_to_pointer): Ditto.
7359 * dwarf2read.c (dwarf2_const_value): Ditto.
7360 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7361 * alpha-tdep.c (alpha_push_arguments): Ditto.
7362
6760f9e6
JB
73632003-05-12 J. Brobecker <brobecker@gnat.com>
7364
7365 * NEWS: Mention that the hppa-hpux port has been partially
7366 multiarched (32bit ABIT only, so far).
7367
30e221b4
AC
73682003-05-11 Andrew Cagney <cagney@redhat.com>
7369
7370 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7371 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7372 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7373 sim/testsuite/sim/arm/misaligned2.ms, and
7374 sim/testsuite/sim/arm/misaligned3.ms.
7375 * disasm.h (struct ui_file): Add opaque struct declaration.
7376 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7377 * frame.h (struct ui_file): Ditto.
7378
dea7f9ba
MK
73792003-05-11 Mark Kettenis <kettenis@gnu.org>
7380
7381 * value.h: Pretty print.
7382
01986c48
MK
73832003-05-10 Mark Kettenis <kettenis@gnu.org>
7384
7385 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7386
123a958e
AC
73872003-05-08 Andrew Cagney <cagney@redhat.com>
7388
7389 * regcache.h (max_register_size): Delete declaration.
7390 * regcache.c (max_register_size): Delete function.
7391 (struct regcache_descr): Delete field "max_register_size".
7392 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7393 registers fit in MAX_REGISTER_SIZE.
7394 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7395 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7396 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7397 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7398 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7399 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7400 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7401 * dve3900-rom.c, hppa-tdep.c: Ditto.
7402
eb294659
DC
74032003-05-08 David Carlton <carlton@math.stanford.edu>
7404
7405 * valops.c (push_word): Fix typo.
7406
d9d9c31f
AC
74072003-05-08 Andrew Cagney <cagney@redhat.com>
7408
7409 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7410 * gdbarch.h: Re-generate.
7411 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7412 (legacy_max_register_raw_size): Delete declaration.
7413 * regcache.c (legacy_max_register_raw_size): Delete function.
7414 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7415 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7416 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7417 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7418 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7419 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7420 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7421 * findvar.c, dwarf2cfi.c: Ditto.
7422
22540ece
AC
74232003-05-08 Andrew Cagney <cagney@redhat.com>
7424
7425 * mips-tdep.c (read_signed_register): New function, moved to here
7426 from "regcache.c".
7427 (read_signed_register_pid): Ditto.
7428 * regcache.c (read_signed_register_pid): Delete function, moved to
7429 "mips-tdep.c".
7430 (read_signed_register): Ditto.
7431 * regcache.h (read_signed_register): Delete declaration.
7432 (read_signed_register_pid): Delete declaration.
7433
0c92afe8
AC
74342003-05-08 Andrew Cagney <cagney@redhat.com>
7435
7436 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7437 * gdbarch.h: Re-generate.
7438 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7439 (legacy_max_register_virtual_size): Delete declaration.
7440 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7441 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7442 * tracepoint.c (memrange_sortmerge): Ditto.
7443 * sparc-tdep.c (sparc_print_registers): Ditto.
7444 * regcache.c (legacy_max_register_virtual_size): Delete function.
7445
6037b830
JB
74462002-05-08 J. Brobecker <brobecker@gnat.com>
7447
7448 * fork-child.c (escape_bang_in_quoted_argument): New function.
7449 (fork_inferior): Escape '!' characters in quoted arguments
7450 only when needed.
7451
5d62c8b1
JB
74522003-05-08 J. Brobecker <brobecker@gnat.com>
7453
7454 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7455 the language of the CU is not currently supported by GDB.
7456
20a0e81d
JB
74572003-05-08 J. Brobecker <brobecker@gnat.com>
7458
7459 * defs.h (language): Add language_minimal enum value.
7460 * c-lang.c (minimal_language_defn): New language definition.
7461 (_initialize_c_language): Add the new minimal language to the list
7462 of languages known to GDB.
7463
710ee10a
KB
74642003-05-08 Kevin Buettner <kevinb@redhat.com>
7465
7466 * frame.c (get_frame_type): Don't attempt to lazily initialize
7467 frame's unwinder for legacy frames.
7468
1750fa04
AC
74692003-05-07 Andrew Cagney <cagney@redhat.com>
7470
7471 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7472 and "regcache" parameters.
7473 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7474
ddf9f258 74752003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7476
7477 * dwarf2read.c (dwarf_decode_lines): Only use output of
7478 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7479 the current address.
7480
87767c29
AC
74812003-05-07 Andrew Cagney <cagney@redhat.com>
7482
7483 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7484 code.
7485
5e7b2f39
JB
74862003-05-07 Jim Blandy <jimb@redhat.com>
7487
7488 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7489 'maint info symtabs' and 'maint info psymtabs'.
7490 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7491 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7492 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7493 Declarations updated.
7494 * maint.c (maintenance_list_command): Delete.
7495 (_initialize_maint_cmds): Update calls to add_cmd.
7496 * gdbcmd.h (maintenancelistlist): Delete declaration.
7497 * cli/cli-cmds.c (maintenancelistlist): Delete.
7498 (init_cmd_lists): Don't initialize it.
7499 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7500
f6684c31
AC
75012003-05-07 Andrew Cagney <cagney@redhat.com>
7502
7503 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7504 "regcache".
7505 (d10v_print_registers_info): Update.
7506 (d10v_dmap_register, d10v_imap_register): Delete functions.
7507 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7508 and "imap_register".
7509 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7510 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7511 * arch-utils.c (generic_remote_translate_xfer_address): Add
7512 "regcache" and "gdbarch" parameters.
7513 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7514 parameter. Change class to multi-arch.
7515 * gdbarch.h, gdbarch.c: Re-generate.
7516 * remote.c (remote_xfer_memory): Use
7517 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7518
e4846b08
JJ
75192003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7520
7521 * infrun.c (prev_pc): Move declaration ahead of proceed().
7522 (proceed): Refresh prev_pc value before resuming.
7523 (stop_stepping): Remove code to refresh prev_pc.
7524
6b71b8ac
KW
75252003-05-06 Kris Warkentin <kewarken@qnx.com>
7526
7527 * nto-tdep.c: Removed stray comment.
7528
47979a4b
KW
75292003-05-06 Kris Warkentin <kewarken@qnx.com>
7530
7531 * i386-nto-tdep.c: Fix old K&R function definitions.
7532 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7533 Also change add_show_from_set() call to add_setshow_cmd().
7534 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7535
00905d52
AC
75362003-05-05 Andrew Cagney <cagney@redhat.com>
7537
7538 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7539 (fprint_dummy_frames): New function.
7540 (maintenance_print_dummy_frames): New function.
7541 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7542 * frame.c (fprint_frame_id): Make global.
7543 * frame.h (fprint_frame_id): Declare.
7544 * Makefile.in (dummy-frame.o): Update dependencies.
7545
b1e29e33
AC
75462003-05-05 Andrew Cagney <cagney@redhat.com>
7547
7548 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7549 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7550 SIZEOF_CALL_DUMMY_WORDS.
7551 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7552 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7553 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7554 CALL_DUMMY_BREAKPOINT_OFFSET.
7555 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7556 CALL_DUMMY_START_OFFSET.
7557 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7558 * gdbarch.h, gdbarch.c: Re-generate.
7559 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7560 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7561 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7562 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7563 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7564 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7565 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7566 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7567 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7568 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7569 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7570 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7571 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7572 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7573 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7574
75752003-05-05 Kris Warkentin <kewarken@qnx.com>
7576
7577 * configure.tgt: Add i[3456]86-*-nto*.
7578 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7579 * nto-tdep.c: New file. Neutrino target support routines.
7580 * nto-tdep.h: New file. Neutrino target header.
7581 * config/tm-qnxnto.h: New file.
7582 * config/i386/i386nto.mt: New file.
7583 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7584
0ce3d317
AC
75852003-05-04 Andrew Cagney <cagney@redhat.com>
7586
7587 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7588 (load_infrun_state): Ditto.
7589 (struct thread_info): Drop "prev_func_name" field.
7590 * thread.c (load_infrun_state): Update.
7591 (save_infrun_state): Update.
7592 * infrun.c (prev_func_name): Delete variable.
7593 (init_wait_for_inferior): Do not clear prev_func_name.
7594 (stop_stepping, keep_going, context_switch): Do not swap
7595 prev_func_name.
7596 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7597 instead of PC_IN_SIGTRAMP.
7598
46654a5b
AC
75992003-05-04 Andrew Cagney <cagney@redhat.com>
7600
7601 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7602 REGISTER_BYTE with register_offset_hack.
7603 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7604 that REGISTER_BYTE is consistent with the regcache.
7605 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7606 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7607
14b08c1b
MK
76082003-05-04 Mark Kettenis <kettenis@gnu.org>
7609
04c8243f
MK
7610 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7611 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7612
14b08c1b
MK
7613 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7614
c7a11e01
JB
76152003-05-03 J. Brobecker <brobecker@gnat.com>
7616
7617 From Thierry Schneider <tpschneider1@yahoo.com>
7618 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7619 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7620 (mi-cmd-symbol.o): Add rule.
7621
7043d8dc
AC
76222003-05-03 Andrew Cagney <cagney@redhat.com>
7623
7624 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7625 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7626 * gdbarch.h, gdbarch.c: Re-generate.
7627 * d10v-tdep.c (d10v_push_dummy_code): New function.
7628 (d10v_gdbarch_init): Set push_dummy_code.
7629 * infcall.c (legacy_push_dummy_code): New function.
7630 (generic_push_dummy_code): New function.
7631 (push_dummy_code): New function.
7632 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7633 instead of dummy_addr, to push_dummy_call. Move call to
7634 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7635 switch.
7636 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7637
92bf2b80
AC
76382003-05-03 Andrew Cagney <cagney@redhat.com>
7639
7640 * disasm.h (print_insn): Declare.
7641 * disasm.c (init_gdb_disassemble_info): New function.
7642 (gdb_disassembly): Call init_gdb_disassemble_info.
7643 (gdb_print_insn): New function.
7644 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7645 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7646 * mcore-tdep.c: Include "disasm.h"
7647 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7648 * d10v-tdep.c: Include "disasm.h".
7649 (display_trace): Call gdb_print_insn, instead of print_insn.
7650 (print_insn): Delete function.
7651 * printcmd.c: Include "disasm.h".
7652 (print_insn): Delete function.
7653 (print_formatted): Call gdb_print_insn, instead of print_insn.
7654 * Makefile.in (printcmd.o): Update dependencies.
7655 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7656
27d94c49
AC
76572003-05-02 Andrew Cagney <cagney@redhat.com>
7658
82de1e5b
AC
7659 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7660 PC_REGNUM, re-indent.
7661 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7662 PC_REGNUM isn't set.
7663
27d94c49
AC
7664 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7665 * gdbarch.h, gdbarch.c: Re-generate.
7666 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7667 register_virtual_size, pc_regnum, or register_bytes.
7668 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7669 (d10v_register_type): Use D10V_PC_REGNUM.
7670 (d10v_print_registers_info, d10v_read_pc): Ditto.
7671 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7672 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7673
a9c0dc7f
DC
76742003-05-02 David Carlton <carlton@bactrian.org>
7675
7676 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7677 the name with mstrsave.
7678
e33d66ec
EZ
76792003-05-02 Elena Zannoni <ezannoni@redhat.com>
7680
7681 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7682 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7683 (host_charset_name, target_charset_name): New vars for use by
7684 set/show commands.
7685 (host_charset_enum, target_charset_enum): New enums for set/show
7686 commands.
7687 (set_charset_sfunc, set_host_charset_sfunc,
7688 set_target_charset_sfunc): New functions.
7689 (set_host_charset, set_target_charset): Make static.
7690 (list_charsets, set_host_charset_command,
7691 set_target_charset_command): Delete functions.
7692 (show_charset_command): Rewrite as....
7693 (show_charset): Hook this up with the set/show command mechanism.
7694 (_initialize_charset): Change names of charsets to match the
7695 set/show enums. Use host_charset_name and target_charset_name.
7696 Use set/show mechanism for charset, host-charset, target-charset
7697 commands. Do not make 'show host-charset' and 'show
7698 target-charset' be aliases of 'show charset'.
7699
7700 * charset.h (set_host_charset, set_target_charset): Don't export,
7701 they are not used outside the file.
7702
2b6fd0d8
AC
77032003-05-01 Andrew Cagney <cagney@redhat.com>
7704
7705 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7706 (gdb_disassembly): Make "di" non static, always initialize and
7707 cleanup. Always use dis_asm_read_memory.
7708 (gdb_dis_asm_read_memory): Delete function.
7709
6ae2f580
AC
77102003-05-01 Andrew Cagney <cagney@redhat.com>
7711
7712 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7713 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7714
810ecf9f
AC
77152003-04-30 Andrew Cagney <cagney@redhat.com>
7716
7717 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7718 "tm_print_insn_info".
7719 (TARGET_PRINT_INSN_INFO): Delete macro.
7720 (dis_asm_read_memory): Delete function declaration.
7721 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7722 (tm_print_insn_info): Delete variable definition.
7723 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7724 * gdbarch.h, gdbarch.c: Re-generate.
7725 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7726 "deprecated_tm_print_insn_info".
7727 * mcore-tdep.c (mcore_dump_insn): Ditto.
7728 * mips-tdep.c (mips_gdbarch_init): Ditto.
7729 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7730 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7731 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7732 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7733 instead of TARGET_PRINT_INSN_INFO, add comment.
7734 * s390-tdep.c (s390_get_frame_info): Instead of
7735 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7736 (s390_check_function_end, s390_is_sigreturn): Ditto.
7737 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7738 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7739 * disasm.c: Include "gdbcore.h".
7740 (_initialize_disasm): New function, initialize
7741 "deprecated_tm_print_insn_info".
7742 (deprecated_tm_print_insn_info): New variable.
7743 (dis_asm_read_memory): Moved from "corefile.c", made static.
7744 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7745 * Makefile.in (disasm.o): Update dependencies.
7746
07020390
AC
77472003-04-30 Andrew Cagney <cagney@redhat.com>
7748
7749 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7750
a9fa03de
AF
77512003-04-29 Adam Fedor <fedor@gnu.org>
7752
7753 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7754 * infcall.c (find_function_addr): Make non-static.
7755 * infcall.h (find_function_addr): Declare.
7756 * Makefile.in (eval.o): Update dependencies.
7757
1bae87b9
AF
77582003-04-28 Adam Fedor <fedor@gnu.org>
7759
7760 * symtab.c (symbol_find_demangled_name): Check for and demangle
7761 ObjC symbols.
7762 (symbol_init_demangled_name): Init for language_objc as well.
7763
0ba6dca9
AC
77642003-04-28 Andrew Cagney <cagney@redhat.com>
7765
7766 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7767 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7768 * gdbarch.h, gdbarch.c: Re-generate.
7769 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7770 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7771 * inferior.h (deprecated_read_fp): Rename read_fp.
7772 (generic_target_read_fp): Delete declaration.
7773 * regcache.c (generic_target_read_fp): Delete function.
7774 (deprecated_read_fp): Replace read_fp, use
7775 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7776 * d10v-tdep.c (d10v_read_fp): Delete function.
7777 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7778
7779 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7780 deprecated_target_read_fp to generic_target_read_fp.
7781 * sh-tdep.c (sh_gdbarch_init): Ditto.
7782 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7784 * frv-tdep.c (frv_gdbarch_init): Ditto.
7785
7786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7787 deprecated_fp_regnum.
7788 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7789 * vax-tdep.c (vax_gdbarch_init): Ditto.
7790 * v850-tdep.c (v850_gdbarch_init): Ditto.
7791 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7792 * sh-tdep.c (sh_gdbarch_init): Ditto.
7793 * s390-tdep.c (s390_gdbarch_init): Ditto.
7794 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7795 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7796 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7797 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7799 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7800 * i386-tdep.c (i386_gdbarch_init): Ditto.
7801 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7802 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7803 * frv-tdep.c (frv_gdbarch_init): Ditto.
7804 * cris-tdep.c (cris_gdbarch_init): Ditto.
7805 * avr-tdep.c (avr_gdbarch_init): Ditto.
7806 * arm-tdep.c (arm_gdbarch_init): Ditto.
7807 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7808
7809 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7810 * v850-tdep.c (v850_gdbarch_init): Ditto.
7811 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7812 * sh-tdep.c (sh_gdbarch_init): Ditto.
7813 * s390-tdep.c (s390_gdbarch_init): Ditto.
7814 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7815 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7816 * mips-tdep.c (mips_gdbarch_init): Ditto.
7817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7818 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7819 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7820 * frv-tdep.c (frv_gdbarch_init): Ditto.
7821 * avr-tdep.c (avr_gdbarch_init): Ditto.
7822 * arm-tdep.c (arm_gdbarch_init): Ditto.
7823
7824 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7825 DEPRECATED_FP_REGNUM.
7826 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7827 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7828 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7829 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7830 (sparc32_register_virtual_type): Ditto.
7831 * sh-tdep.c (sh64_frame_chain): Ditto.
7832 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7833 (sh_nofp_frame_init_saved_regs): Ditto.
7834 (sh64_nofp_frame_init_saved_regs): Ditto.
7835 (sh_fp_frame_init_saved_regs): Ditto.
7836 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7837 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7838 * procfs.c (procfs_fetch_registers): Ditto.
7839 (procfs_store_registers): Ditto.
7840 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7841 (store_inferior_registers, fetch_core_registers): Ditto.
7842 (fetch_kcore_registers, clear_regs): Ditto.
7843 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7844 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7845 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7846 * nlm/i386.c (do_status): Ditto.
7847 * mipsv4-nat.c (supply_gregset): Ditto.
7848 * mips-tdep.c: Ditto for comments.
7849 * mips-nat.c (fetch_inferior_registers): Ditto.
7850 (store_inferior_registers, fetch_core_registers): Ditto.
7851 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7852 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7853 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7854 (i386_do_pop_frame, i386_register_type): Ditto.
7855 * hppa-tdep.c (hppa_frame_chain): Ditto.
7856 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7857 (hppa_pop_frame, hppa_read_fp): Ditto.
7858 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7859 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7860 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7861 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7862 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7863 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7864 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7865 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7866 * blockframe.c: Ditto for comments.
7867 * arch-utils.h: Ditto for comments.
7868 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7869 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7870 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7871 * alpha-tdep.h: Ditto for comments.
7872 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7873 (alpha_cannot_store_register): Ditto.
7874 (alpha_push_dummy_frame): Ditto.
7875 * alpha-nat.c (supply_gregset): Ditto.
7876
7877 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7878 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7879 * config/sparc/tm-sparc.h: Update comment.
7880
7881 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7882 deprecated_read_fp instead of TARGET_READ_FP.
7883 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7884 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7885 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7886 deprecated_read_fp instead of read_fp.
7887 * s390-tdep.c (s390_push_arguments): Ditto.
7888 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7889 * frame.h: Ditto in comments.
7890 * frame.c (legacy_get_prev_frame): Ditto.
7891 * dummy-frame.c (dummy_frame_this_id): Ditto.
7892 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7893
d7a27068
AC
78942003-04-28 Andrew Cagney <cagney@redhat.com>
7895
7896 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7897 * gdbarch.h, gdbarch.c: Re-generate.
7898 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7899 * vax-tdep.c (_initialize_vax_tdep): Update.
7900 * v850-tdep.c (_initialize_v850_tdep): Update.
7901 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7902 * s390-tdep.c (_initialize_s390_tdep): Update.
7903 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7904 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7905 * mips-tdep.c (_initialize_mips_tdep): Update.
7906 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7907 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7908 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7909 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7910 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7911 * frv-tdep.c (_initialize_frv_tdep): Update.
7912 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7913 (_initialize_cris_tdep): Update.
7914 * arch-utils.c (legacy_print_insn): Update.
7915 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7916
d2630e69
AF
79172003-04-26 Adam Fedor <fedor@gnu.org>
7918
7919 * linespec.c (decode_objc): New function to decode ObjC calls
7920 (decode_line_1): Check for ObjC calls (using decode_objc)
7921 * Makefile (linespec.o): Update dependencies.
7922
3086aeae
DJ
79232003-04-26 Daniel Jacobowitz <drow@mvista.com>
7924
7925 * breakpoint.h (struct breakpoint_ops): New.
7926 (struct breakpoint): Add ops member.
7927
7928 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7929 (mention): Use new breakpoint ops member.
7930 (set_raw_breakpoint): Initialize ops field to NULL.
7931 (print_exception_catchpoint, print_one_exception_catchpoint)
7932 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7933 (gnu_v3_exception_catchpoint_ops): New.
7934 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7935
1fbec6c3
AF
79362003-04-25 Adam Fedor <fedor@gnu.org>
7937
7938 * Makefile.in (COMMON_OBS): Add objc-lang.o
7939
0ef21242
AC
79402003-04-25 Andrew Cagney <cagney@redhat.com>
7941
7942 * d10v-tdep.c (print_insn): Delete function.
7943 (display_trace): Use TARGET_PRINT_INSN.
7944 (_initialize_d10v_tdep): Do not set tm_print_insn.
7945 (d10v_gdbarch_init): Set print_insn.
7946
f75493ed
AC
79472003-04-25 Andrew Cagney <cagney@redhat.com>
7948
7949 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7950 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7951 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7952 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7953 (nr_dmap_regs, a0_regnum): ... new functions.
7954 (d10v_print_registers_info): Use a0_regnum, use register_size.
7955 (d10v_register_byte): Delete function.
7956 (d10v_register_raw_size): Delete function.
7957 (d10v_register_type): Use a0_regnum.
7958 (d10v_print_registers_info): Use a0_regnum.
7959 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7960 (d10v_gdbarch_init): Do not set register_byte or
7961 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7962 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7963 extract_address.
7964 (trace_command): Use XCALLOC.
7965 (print_insn): Delete reference to tm_print_insn.
7966 (saved_regs_unwinder): Use store_unsigned_integer instead of
7967 store_address.
7968 * frame.h (FRAME_OBSTACK_CALLOC): Define
7969
2202b100
DC
79702003-04-25 David Carlton <carlton@bactrian.org>
7971
7972 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7973
4e45ca2e
AF
79742003-04-24 Adam Fedor <fedor@gnu.org>
7975
7976 * objc-lang.c: Include "valprint.h"
7977 * Makefile.in (objc-lang.o): Update dependencies.
7978
93de3e7f
AF
79792003-04-24 Adam Fedor <fedor@gnu.org>
7980
8ffd9b1b 7981 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7982 architecture dependant compilation and mark as unimplemented
7983 (until they get put in the gdbarch vector).
7984
0f20eeea
DC
79852003-04-23 David Carlton <carlton@bactrian.org>
7986
7987 * cp-support.c (cp_find_first_component): Accept 'operator' in
7988 more locations.
7989
74cfe982
AC
79902003-04-23 Andrew Cagney <cagney@redhat.com>
7991
7992 * infcall.c (call_function_by_hand): Eliminate redundant
7993 indentation. Move "saved_async" and "old_cleanups" to where they
7994 are needed.
8ffd9b1b 7995
52557533
AC
79962003-04-23 Andrew Cagney <cagney@redhat.com>
7997
7998 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7999 and "buffer". Move the "name" code to where it is needed.
8000
158775de
AC
80012003-04-23 Andrew Cagney <cagney@redhat.com>
8002
8003 * infcall.c (call_function_by_hand): Move variables "start_sp",
8004 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8005 code to ON_STACK switch branch.
8ffd9b1b 8006
ebc7896c
AC
80072003-04-23 Andrew Cagney <cagney@redhat.com>
8008
8009 * infcall.c (call_function_by_hand): Make declaration of "i",
8010 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8011 lint.
8012
d727590f
AC
80132003-04-23 Andrew Cagney <cagney@redhat.com>
8014
8015 * infcall.c (call_function_by_hand): Delete variable
8016 "n_method_args". Localize "param_type"'s declaration to the loop
8017 that it is used. Reinstate code assigning to said variable -
8018 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8019 Rationalize code using "param_type".
8020
d585e13a
AC
80212003-04-22 Andrew Cagney <cagney@redhat.com>
8022
8023 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8024 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8025 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8026 to DEPRECATED_PUSH_RETURN_ADDRESS.
8027
051caad9
KB
80282003-04-22 Kevin Buettner <kevinb@redhat.com>
8029
8030 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8031 on the DWARF2 register number prior to fetching a register.
8032
77296879
JB
80332003-04-22 J. Brobecker <brobecker@gnat.com>
8034
8035 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8036 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8037 this macro was always set to 0.
77296879
JB
8038 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8039 considering the fact that this macro was always set to 0.
8040 * hppa-tdep.h (hppa_store_return_value): Likewise.
8041 (hppa_extract_return_value): Likewise.
8042
4252f1df
JB
80432003-04-22 J. Brobecker <brobecker@gnat.com>
8044
8045 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8046 the hppa-pro target only.
8047
14604c6b
JB
80482003-04-21 J. Brobecker <brobecker@gnat.com>
8049
8050 Ongoing multi-arch conversion effort for HP/UX:
8051 * config/pa/tm-hppa.h: Move all macro that are no longer
8052 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8053 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8054
77eb01d1
JB
80552003-04-21 J. Brobecker <brobecker@gnat.com>
8056
8057 * config/pa/tm-hppa.h: Obsolete a section that was only used
8058 for hppa-pro.
8059
61995b3b
JB
80602003-04-21 J. Brobecker <brobecker@gnat.com>
8061
8062 Ongoing multi-arch conversion for HP/UX.
8063 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8064 if already defined (allows hppa64 to stay non-multiarched for now).
8065 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8066
4aa79dcc
AC
80672003-04-21 Andrew Cagney <cagney@redhat.com>
8068
8069 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8070
0f751ff2
AC
80712003-04-21 Andrew Cagney <cagney@redhat.com>
8072
8073 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8074 "i386_num_mmx_regs".
8075
04714b91
AC
80762003-04-21 Andrew Cagney <cagney@redhat.com>
8077
8078 * infcall.c: New file.
8079 * infcall.h: New file.
8080 * valarith.c: Include "infcall.h".
8081 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8082 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8083 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8084 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8085 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8086 (SFILES): Add "infcall.c"
8087 (COMMON_OBS): Add "infcall.o".
8088 (infcall.o): Specify dependencies.
8089 * value.h (call_function_by_hand): Delete declaration.
8090 * inferior.h (run_stack_dummy): Delete declaration.
8091 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8092 (run_stack_dummy): Move to "infcall.c", merged into
8093 call_function_by_hand.
8094 * valops.c (call_function_by_hand): Moved to "infcall.c".
8095 (find_function_addr, value_arg_coerce): Ditto.
8096 (unwindonsignal_p, coerce_float_to_double): Ditto.
8097 (_initialize_valops): Move "set/show coerce-float-to-double", and
8098 "set/show unwindonsignal" commands to "infcall.c".
8099 * v850-tdep.c, target.h: Update comments.
8100 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8101 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8102 (sh64_init_extra_frame_info): Update comments.
8103 * mn10300-tdep.c: Update comments.
8104 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8105 * config/sparc/tm-sparc.h: Update comments.
8106 * breakpoint.h: Update comments.
8107 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8108 * arm-tdep.c: Update comment.
8109
f9d3c2a8
MK
81102003-04-19 Mark Kettenis <kettenis@gnu.org>
8111
c40e1eab
MK
8112 * i386-tdep.c (i386_num_register_names): New variable.
8113 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8114 (MM0_REGNUM): Remove redundant parentheses in define.
8115 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8116 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8117 i386_mxcsr_regnum_p): Remove redundant parentheses.
8118 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8119
94ea66b3
MK
8120 * i386-tdep.c (i386_extract_return_value,
8121 i386_store_return_value): Correct check for availability of
8122 floating-point registers.
8123
54299a1d
MK
8124 * i386-tdep.c (i386_frame_num_args): Remove function.
8125 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8126
c86c27af
MK
8127 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8128 mmx_regnum_to_fp_regnum. Adjust all callers.
8129
f9d3c2a8
MK
8130 * i386-tdep.c (i386_get_longjmp_target): Use
8131 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8132 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8133 extract_address.
8134
94ba74a9
MK
81352003-04-19 Mark Kettenis <kettenis@gnu.org>
8136
8137 * core-regset.c: Update comments to reflect reality. Re-order
8138 includes.
8139 (fetch_core_registers): Use switch instead of if. Remove
8140 redundant prototype.
8141
4074e13c
JB
81422003-04-18 Jim Blandy <jimb@redhat.com>
8143
8144 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8145 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8146
e3ab4aba
RH
81472003-04-17 Richard Henderson <rth@redhat.com>
8148
8149 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8150
627bf7c1
EZ
81512003-04-17 Michael Snyder <msnyder@redhat.com>
8152 Karen Bennet <bennet@redhat.com>
8153
8154 Committed by Elena Zannoni <ezannoni@redhat.com>
8155 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8156
514621a9
EZ
81572003-04-17 Elena Zannoni <ezannoni@redhat.com>
8158
8159 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8160 value if the return type is void.
514621a9 8161
b4acd559
JJ
81622003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8163
8164 * thread-db.c: Reindented.
8ffd9b1b 8165
530b167e 81662003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8167
8168 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8169 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8170 as types.
8171
0a48e7e8
MS
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8ffd9b1b 8195
ab9fe00e
KB
81962003-04-16 Kevin Buettner <kevinb@redhat.com>
8197
610a3745 8198 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8199 the size of ``long double'' to 16, instead of 8.
8200
e64a344c
MK
82012003-04-16 Mark Kettenis <kettenis@gnu.org>
8202
8203 * i386-linux-nat.c: Add some whitespace to make things more
8204 readable.
8205 (fetch_register, store_register, fetch_inferior_registers,
8206 store_inferior_registers): Get rid of assignment in if-statement.
8207 (store_register): Fix typo in error message.
8208
25d41031
AC
82092003-04-16 Andrew Cagney <cagney@redhat.com>
8210
8211 * utils.c (xmmalloc): Always allocate something, matches
8212 libiberty/xmalloc's semantics.
8213 (xmrealloc, xmcalloc): Ditto.
8214
c50901fd
AC
82152003-04-16 Andrew Cagney <cagney@redhat.com>
8216
8217 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8218 update comments.
8219 (get_frame_type): Initialize unwind and type when needed.
8220 (get_frame_id, frame_register_unwind): Ditto.
8221
f81824a9
AC
82222003-04-16 Andrew Cagney <cagney@redhat.com>
8223
8224 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8225 obsolete.
8226 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8227 * sparcl-stub.c: Obsolete file.
8228 * config/sparc/tm-sparclet.h: Obsolete file.
8229 * sparclet-stub.c: Obsolete file.
8230 * sparclet-rom.c: Obsolete file.
8231 * sparcl-tdep.c: Obsolete file.
8232 * config/sparc/tm-sparclite.h: Obsolete file.
8233 * config/sparc/sparclite.mt: Obsolete file.
8234 * config/sparc/sparclet.mt: Obsolete file.
8235 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8236 sparc86x-*-* obsolete.
8237
9219021c
DC
82382003-04-15 David Carlton <carlton@math.stanford.edu>
8239
8240 * Makefile.in (SFILES): Add cp-namespace.c.
8241 (COMMON_OBS): Add cp-namespace.o.
8242 (block.o): Depend on gdb_obstack_h and cp_support_h.
8243 (buildsym.o): Depend on cp_support_h.
8244 (cp-namespace.o): New.
8245 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8246 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8247 (dwarf2read.o): Depend on cp_support_h.
8248 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8249 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8250 processing_current_namespace.
8251 (read_namespace): Update processing_current_namespace; check for
8252 anonymous namespaces.
8253 (dwarf2_name): New function.
8254 (dwarf2_extension): Ditto.
8255 * cp-support.h: Update copyright, contributors.
8256 Add inclusion guards.
8257 Add opaque declaration for structs obstack, block, symbol.
8258 (struct using_direct): New struct.
8259 Add declarations for cp_find_first_component,
8260 cp_entire_prefix_len, processing_has_namespace_info,
8261 processing_current_namespace, cp_is_anonymous,
8262 cp_add_using_directive, cp_initialize_namespace,
8263 cp_finalize_namespace, cp_set_block_scope,
8264 cp_scan_for_anonymous_namespaces.
8265 * cp-namespace.c: New file.
8266 * cp-support.c: Update copyright.
8267 Include ctype.h, gdb_assert.h, gdbcmd.h.
8268 New variable maint_cplus_cmd_list.
8269 (cp_find_first_component): New function.
8270 (cp_entire_prefix_len, maint_cplus_command)
8271 (first_component_command, _initialize_cp_support): Ditto.
8272 * buildsym.c: Include cp-support.h.
8273 New variable using_list.
8274 (add_symbol_to_list): Check for anonymous namespaces.
8275 (finish_block): Set block's scope.
8276 (start_symtab): Initialize C++ namespace support.
8277 (end_symtab): Finalize C++ namespace support.
8278 * block.h: Add opaque declarations for structs
8279 block_namespace_info, using_direct, and obstack.
8280 Add declarations for block_set_scope and block_set_using.
8281 (struct block): Add 'language_specific' member.
8282 (BLOCK_NAMESPACE): New macro.
8283 * block.c: Include gdb_obstack.h and cp-support.h.
8284 (struct block_namespace_info): New struct.
8285 (block_set_scope): New function.
8286 (block_set_using, block_initialize_namespace): Ditto.
8287
d5a921c9
KB
82882003-04-14 Kevin Buettner <kevinb@redhat.com>
8289
8290 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8291 (locate_base): Return early if there aren't any link map offsets.
8292 (svr4_solib_create_inferior_hook): Warn if shared library support
8293 is unavailable.
8294
d2a52b27
DC
82952003-04-14 David Carlton <carlton@math.stanford.edu>
8296
8297 * symtab.c (symbol_set_names): Add prefix when storing Java names
8298 in hash table. Fix for PR java/1039.
8299
980cae7a
DC
83002003-04-14 David Carlton <carlton@math.stanford.edu>
8301
8302 * symtab.c (symbol_set_names): Rename 'name' arg to
8303 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8304 * symtab.h: Change 'name' argument in declaration of
8305 symbol_set_names to 'linkage_name'.
8306 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8307
e227b13c
AC
83082003-04-14 Andrew Cagney <cagney@redhat.com>
8309
8310 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8311 return the fully sign-extended register value.
8312 (get_frame_pointer): Ditto.
8313 (mips_pop_frame): Initialize "proc_desc" after checking for a
8314 dummy frame.
8315
36712a20
AC
83162003-04-14 Andrew Cagney <cagney@redhat.com>
8317
8318 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8319 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8320 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8321 (mips_push_register): Delete function.
8322 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8323 PUSH_FP_REGNUM.
8324
44ea7b70
JB
83252003-04-14 Jim Blandy <jimb@redhat.com>
8326
8327 * symmisc.c: #include "gdb_regex.h".
8328 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8329 functions.
8330 * maint.c (maintenance_list_command): New function.
8331 (_initialize_maint_cmds): Register the above as commands.
8332 * symtab.h (maintenance_list_symtabs,
8333 maintenance_list_psymtabs): New declarations.
8334 * cli/cli-cmds.c (maintenancelistlist): New variable.
8335 (init_cmd_lists): Initialize it.
8336 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8337 * gdbcmd.h (maintenancelistlist): New declaration.
8338 * Makefile.in (symmisc.o): Update dependencies.
8339
2d0c7962
EZ
83402003-04-14 Elena Zannoni <ezannoni@redhat.com>
8341
8342 * s390-nat.c: Include asm/types.h for addr_t.
8343
1947a811
CV
83442003-04-14 Corinna Vinschen <vinschen@redhat.com>
8345
8346 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8347 actually incoming type.
8348
adb616d7
AC
83492003-04-13 Andrew Cagney <cagney@redhat.com>
8350
8351 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8352 get_next_frame and get_frame_saved_regs.
8353
9b5e151c
AC
83542003-04-13 Andrew Cagney <cagney@redhat.com>
8355
8356 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8357 of gdbarch_num_regs.
8358
ef6e7e13
AC
83592003-04-13 Andrew Cagney <cagney@redhat.com>
8360
8361 * frame.h: Mention what replaced what in "struct frame_info".
8362 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8363 deprecated_update_frame_base_hack and
8364 deprecated_update_frame_pc_hack.
8365 * hppa-tdep.c: Ditto.
8366
61fbb938
DJ
83672003-04-13 Daniel Jacobowitz <drow@mvista.com>
8368
8369 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8370 to read_reg and update its comment. Remove regnum member.
8371 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8372 Don't call read_reg when setting in_reg. Call read_reg to get
8373 the frame base if it's in a register. Return the register number
8374 on the stack instead of in the context. Remove extra arguments
8375 to read_reg.
8376 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8377 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8378 the register number on the expression stack.
8379 (needs_frame_read_reg): Remove extra arguments.
8380
0d53c4c4
DJ
83812003-04-13 Daniel Jacobowitz <drow@mvista.com>
8382
8383 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8384 made non-static.
8385 (execute_stack_op): All callers updated.
8386 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8387 * dwarf2loc.c (find_location_expression): New function.
8388 (dwarf_expr_frame_base): Call it.
8389 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8390 (dwarf2_tracepoint_var_ref): New function, broken out from
8391 locexpr_tracepoint_var_ref.
8392 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8393 Make static.
8394 (loclist_read_variable, loclist_read_needs_frame): New functions.
8395 (loclist_describe_location, loclist_tracepoint_var_ref): New
8396 functions.
8397 (dwarf2_loclist_funcs): New struct location_funcs.
8398 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8399 (struct dwarf2_locexpr_baton): Add comments.
8400 (dwarf2_loclist_funcs): New extern.
8401 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8402 base_address and base_known.
8403 (dwarf_loc_buffer): New variable.
8404 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8405 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8406 (dwarf2_has_info): Initialize dwarf_loc_offset.
8407 (dwarf2_build_psymtabs): Read in .debug_loc.
8408 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8409 DWARF_LOC_SIZE.
8410 (psymtab_to_symtab_1): Likewise. Move base address calculation
8411 here, from...
8412 (dwarf2_get_pc_bounds): ... here. Use the base address from
8413 cu_header.
8414 (dwarf2_symbol_mark_computed): Handle location lists.
8415
6aca59a3
DJ
84162003-04-13 Daniel Jacobowitz <drow@mvista.com>
8417
8418 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8419 if the linkage name demangled successfully.
8420
aca1fcd0
MK
84212003-04-13 Mark Kettenis <kettenis@gnu.org>
8422
97095916
MK
8423 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8424 disassmbly_flavour): Removed.
8425
aca1fcd0
MK
8426 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8427
562a961f
MK
84282003-04-13 Mark Kettenis <kettenis@gnu.org>
8429
8430 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8431
bd013d54
AC
84322003-04-12 Andrew Cagney <cagney@redhat.com>
8433
8434 * frame.h (struct frame_info): Move definition from here ...
8435 * frame.c (struct frame_info): ... to here.
8436
167ef8b1
AC
84372003-04-12 Andrew Cagney <cagney@redhat.com>
8438
8439 * gdbthread.h (save_infrun_state): Delete parameter
8440 "prev_func_start".
8441 (struct thread_info): Delete field "prev_func_start".
8442 (load_infrun_state): Ditto.
8443 * thread.c (load_infrun_state, save_infrun_state): Update.
8444 * infrun.c (prev_func_start): Delete variable.
8445 (context_switch, init_wait_for_inferior): Update.
8446 (stop_stepping, keep_going): Update.
8447
da3331ec
AC
84482003-04-12 Andrew Cagney <cagney@redhat.com>
8449
8450 * gdbarch.sh: Add missing opaque declarations.
8451 * gdbarch.h: Regnerate.
8452 * symtab.h: Add missing opaque declarations.
8453 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8454 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8455 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8456 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8457 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8458 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8459 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8460 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8461 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8462 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8463 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8464 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8465 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8466
18adea3f
AC
84672003-04-11 Andrew Cagney <cagney@redhat.com>
8468
8469 * frame.c (get_frame_id): Return this frame's "id".
8470 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8471 function start.
8472 (legacy_saved_regs_this_id): Replace function body with
8473 internal-error.
8474 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8475 FRAME_OBSTACK_ZALLOC.
8476 (create_new_frame): Mark the frame ID as valid.
8477
2252e863
AO
84782003-04-11 Alexandre Oliva <aoliva@redhat.com>
8479
8480 * Makefile.in (libbfd_h): Added missing setting.
8481 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8482 according to the selected ABI.
8483
a8245ab8
JJ
84842003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8485
8486 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8487
6913c89a
AC
84882003-04-11 Andrew Cagney <cagney@redhat.com>
8489
8490 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8491 SAVED_PC_AFTER_CALL.
8492 * gdbarch.h, gdbarch.c: Regenerate.
8493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8494 * x86-64-tdep.c (x86_64_init_abi): Update.
8495 * vax-tdep.c (vax_gdbarch_init): Update.
8496 * v850-tdep.c (v850_gdbarch_init): Update.
8497 * sparc-tdep.c (sparc_gdbarch_init): Update.
8498 * sh-tdep.c (sh_gdbarch_init): Update.
8499 * s390-tdep.c (s390_gdbarch_init): Update.
8500 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8501 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8502 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8503 * mips-tdep.c (mips_gdbarch_init): Update.
8504 * mcore-tdep.c (mcore_gdbarch_init): Update.
8505 * m68k-tdep.c (m68k_gdbarch_init): Update.
8506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8507 * ia64-tdep.c (ia64_gdbarch_init): Update.
8508 (ia64_saved_pc_after_call): Update declaration.
8509 * i386ly-tdep.c (i386lynx_init_abi): Update.
8510 * i386-tdep.c (i386_gdbarch_init): Update.
8511 * hppa-tdep.c (hppa_gdbarch_init): Update.
8512 * h8300-tdep.c (h8300_gdbarch_init): Update.
8513 * frv-tdep.c (frv_gdbarch_init): Update.
8514 * cris-tdep.c (cris_gdbarch_init): Update.
8515 * avr-tdep.c (avr_gdbarch_init): Update.
8516 * arm-tdep.c (arm_gdbarch_init): Update.
8517 * alpha-tdep.c (alpha_gdbarch_init): Update.
8518 * ns32knbsd-nat.c (frame_num_args): Update.
8519 * ns32k-tdep.c (umax_frame_num_args): Update.
8520 * mips-tdep.c (mips_init_frame_pc_first): Update.
8521 * infrun.c (step_over_function): Update.
8522 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8523 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8524 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8525 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8526 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8527 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8528 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8529 * arch-utils.c (init_frame_pc_default): Update.
8530 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8531 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8532 declaration.
8ffd9b1b 8533
38edeab8
AC
85342003-04-11 Andrew Cagney <cagney@redhat.com>
8535
8536 * i387-tdep.c: Update copyright.
8537 (i387_to_double): Delete function.
8538 (double_to_i387): Delete function.
8539
81f8a206
AC
85402003-04-10 Andrew Cagney <cagney@redhat.com>
8541
8542 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8543 frame's function's address. Simplify.
8544 (d10v_frame_unwind_cache): Check that the frame's function is
8545 non-zero.
8546
6e691f7a
JB
85472003-04-10 Jim Blandy <jimb@redhat.com>
8548
8549 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8550 call to set_gdbarch_deprecated_push_arguments.
8551
7f78e237
AC
85522003-04-10 Andrew Cagney <cagney@redhat.com>
8553
8554 * frame.c (fprint_frame_id): New function.
8555 (fprint_frame_type, fprint_frame): New function.
8556 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8557 (create_sentinel_frame, get_frame_id): Ditto.
8558 (frame_id_p, frame_id_eq): Ditto.
8559 (frame_id_inner, create_new_frame): Ditto.
8560 (legacy_get_prev_frame, get_prev_frame): Ditto.
8561 (deprecated_update_frame_pc_hack): Ditto.
8562 (frame_register_unwind): Ditto.
8563 (deprecated_update_frame_base_hack): Ditto.
8564
f870b49b
CV
85652003-04-10 Corinna Vinschen <vinschen@redhat.com>
8566
8567 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8568 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8569 frame_chain function.
8570 * Makefile.in: Add dependencies due to above change.
8571
7c86889b
CV
85722003-04-10 Corinna Vinschen <vinschen@redhat.com>
8573
8574 * blockframe.c (legacy_frame_chain_valid): Move call to
8575 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8576 inside_entry_file.
8577
d0a55772
AC
85782003-04-09 Andrew Cagney <cagney@redhat.com>
8579
8580 * frame.h (struct frame_id): Replace "pc" and "base" with
8581 "stack_addr" and "code_addr". Update comments.
8582 (frame_id_build): Update parameter names and comment.
8583 (struct frame_info): Replace "id_p" and "id" with "this_id".
8584 * dummy-frame.c (dummy_frame_this_id): Update.
8585 * breakpoint.c (print_one_breakpoint): Update.
8586 * frame.c (get_frame_id): Update.
8587 (get_frame_base, frame_id_build): Update.
8588 (create_sentinel_frame, legacy_get_prev_frame): Update.
8589 (deprecated_update_frame_base_hack): Update.
8590 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8591 (frame_id_inner): Ditto.
8592
ac16bf07
AC
85932003-04-09 Andrew Cagney <cagney@redhat.com>
8594
8595 * defs.h (gdb_print_host_address): Make "addr" parameter a
8596 pointer constant.
8597 * utils.c (gdb_print_host_address): Update.
8598
366cfc9e
KB
85992003-04-09 Kevin Buettner <kevinb@redhat.com>
8600
8601 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8602 register number for R0 is 0.
8603
cd983b5c
JB
86042003-04-09 J. Brobecker <brobecker@gnat.com>
8605
8606 * frame.h (struct gdbarch): Add opaque structure definition
8607 to avoid a compilation warning on LynxOS 4.0.
8608
d1340264
AC
86092003-04-09 Andrew Cagney <cagney@redhat.com>
8610
8611 * frame.h (struct frame_info): Delete field "pc". Replace
8612 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8613 structure.
8614 * frame.c (frame_pc_unwind): Update.
8615 (create_sentinel_frame): Do not set "pc".
8616 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8617 (get_frame_pc): Call frame_pc_unwind.
8618 (deprecated_update_frame_pc_hack): Update.
8619 (create_new_frame): Use "pc" not "->pc".
8620
90a6fffb
AC
86212003-04-09 Andrew Cagney <cagney@redhat.com>
8622
8623 * frame.c (get_frame_id): Eliminate code updating "frame".
8624 (legacy_get_prev_frame): Ditto.
8625 (get_frame_base): Return id.base directly.
8626 (deprecated_update_frame_base_hack): Update "id.base".
8627 * frame.h (struct frame_info): Delete field "frame".
8628
2fbce691
AC
86292003-04-09 Andrew Cagney <cagney@redhat.com>
8630
8631 * NEWS: Mention that the "Sequent family" is obsolete.
8632 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8633 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8634 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8635 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8636 * config/i386/tm-ptx4.h: Obsolete file.
8637 * config/i386/tm-ptx.h: Obsolete file.
8638 * symm-tdep.c: Obsolete file.
8639 * config/i386/symmetry.mt: Obsolete file.
8640 * config/i386/tm-symmetry.h: Obsolete file.
8641 * symm-nat.c: Obsolete file.
8642 * config/i386/nm-symmetry.h: Obsolete file.
8643 * config/i386/xm-symmetry.h: Obsolete file.
8644 * config/i386/symmetry.mh: Obsolete file.
8645 * config/i386/nm-ptx4.h: Obsolete file.
8646 * config/i386/ptx4.mh: Obsolete file.
8647 * config/i386/ptx.mt: Obsolete file.
8648 * config/i386/ptx.mh: Obsolete file.
8649 * config/i386/xm-ptx4.h: Obsolete file.
8650 * config/i386/xm-ptx.h: Obsolete file.
8651
78c43945
AC
86522003-04-09 Andrew Cagney <cagney@redhat.com>
8653
8654 Obsolete mips*-*-mach3*.
8655 * NEWS: Mention that mips*-*-mach3* is obsolete.
8656 * m3-nat.c: Obsolete file.
8657 * config/nm-m3.h: Obsolete file.
8658 * config/mips/tm-mipsm3.h: Obsolete file.
8659 * config/mips/mipsm3.mt: Obsolete file.
8660 * config/mips/mipsm3.mh: Obsolete file.
8661 * config/mips/xm-mipsm3.h: Obsolete file.
8662 * mipsm3-nat.c: Obsolete file.
8663 * configure.host: Obsolete mips-dec-mach3*.
8664 * configure.tgt: Obsolete mips*-*-mach3*.
8665
f1908289
AC
86662003-04-09 Andrew Cagney <cagney@redhat.com>
8667
8668 * doublest.h: Update copyright.
8669 (deprecated_store_floating, deprecated_extract_floating): Rename
8670 store_floating and extract_floating. Update comments.
8671 * doublest.c: Update copyright.
8672 (extract_floating_by_length): Replace extract_floating.
8673 (store_floating_by_length): Replace store_floating.
8674 (deprecated_extract_floating): New function.
8675 (deprecated_store_floating): New function.
8676 (extract_typed_floating): Call extract_floating_by_length.
8677 (store_typed_floating): Call store_floating_by_length.
8678 * x86-64-tdep.c (x86_64_store_return_value): Update.
8679 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8680 (sh64_extract_return_value): Update.
8681 (sh_sh4_register_convert_to_virtual): Update.
8682 (sh_sh64_register_convert_to_virtual): Update.
8683 (sh_sh4_register_convert_to_raw): Update.
8684 (sh_sh64_register_convert_to_raw): Update.
8685 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8686 (rs6000_register_convert_to_raw): Update.
8687 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8688 (ia64_register_convert_to_raw): Update.
8689 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8690 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8691 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8692 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8693 (alpha_register_convert_to_raw): Update.
8694
4443bd83
AC
86952003-04-08 Andrew Cagney <cagney@redhat.com>
8696
8697 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8698 * gdbarch.h, gdbarch.c: Re-generate.
8699 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8700 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8701 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8702 conditionally, use frame_pc_unwind as an alternative. Add
8703 comments.
8704 * arch-utils.c (init_frame_pc_default): Only call
8705 SAVED_PC_AFTER_CALL when available.
8706
c0236d92
EZ
87072003-04-08 Elena Zannoni <ezannoni@redhat.com>
8708
fbe586ae 8709 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8710 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8711 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8712 (start_remote): Ditto.
8713 (handle_inferior_event): Ditto.
8714 (save_inferior_status): Ditto.
8715 (restore_inferior_status): Ditto.
8716 * infcmd.c (attach_command): Ditto.
8717 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8718 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8719 * alpha-tdep.c (heuristic_proc_start): Ditto.
8720 * mips-tdep.c (heuristic_proc_start): Ditto.
8721 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8722 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8723 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8724 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8725 * remote-vx.c (vx_create_inferior): Ditto.
8726
87272003-04-08 Elena Zannoni <ezannoni@redhat.com>
8728
8729 * infrun.c (stop_soon_quietly): Make it an enum, to better
8730 override the default behavior of handle_inferior_event.
8731 (clear_proceed_status): Update uses of stop_soon_quietly to
8732 reflect that it is now an enum.
8733 (start_remote): Ditto.
8734 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8735 is set to handle the new GNU/Linux kernel behavior for
8736 attach/sigstop. Update uses of stop_soon_quietly.
8737 * inferior.h (enum stop_kind): New enum.
8738 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8739 Reset normal handle_inferior_event behavior, afterwards.
8740 * fork-child.c (startup_inferior): Update.
8741 * alpha-tdep.c (heuristic_proc_start): Update.
8742 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8743 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8744 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8745 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8746 * remote-vx.c (vx_create_inferior): Update.
8747 * mips-tdep.c (heuristic_proc_start): Update.
8748
1211bce3
EZ
87492003-04-07 Elena Zannoni <ezannoni@redhat.com>
8750
8751 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8752 be freed more than once, causing wild memory corruptions.
1211bce3 8753 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8754 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8755 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8756 with the "core" target.
1211bce3 8757
f0ef6b29
KB
87582003-04-07 Kevin Buettner <kevinb@redhat.com>
8759
8760 * mips-tdep.c (mips_print_fp_register): New function, created from
8761 do_fp_register_row(). Registers are now (also) printed as hex.
8762 Only one register is printed per row.
8763 (mips_print_register, do_fp_register_row): Print floating point
8764 registers with mips_print_fp_register().
8765
8cf71652
AC
87662003-04-06 Andrew Cagney <cagney@redhat.com>
8767
5e488a7b
AC
8768 * valprint.h (inspect_it): Add extern declaration.
8769 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8770 (selectors_info, classes_info): Ditto.
8771 (find_objc_msgcall): Fix indentation.
8772 (objc_printstr): Delete extern declarations.
8773
8cf71652
AC
8774 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8775
e6ba3bc9
AC
87762003-04-06 Andrew Cagney <cagney@redhat.com>
8777
8778 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8779 Update comment.
8780 * frame.c (legacy_saved_regs_this_id): Update.
8781 (legacy_get_prev_frame): Update.
8782 * xstormy16-tdep.c: Update comment.
8783 * sparc-tdep.c (sparc_frame_chain): Update comment.
8784 * blockframe.c (legacy_frame_chain_valid): Update.
8785
55e1d7e7
AC
87862003-04-06 Andrew Cagney <cagney@redhat.com>
8787
996179ee
AC
8788 * valprint.c (val_print_type_code_int): Delete #ifdef
8789 PRINT_TYPELESS_INTEGER code.
8790
55e1d7e7
AC
8791 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8792 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8793 multi-arch definition.
8794 * gdbarch.h: Re-generate.
8795
43bd9a9e
AC
87962003-04-05 Andrew Cagney <cagney@redhat.com>
8797
8798 Eliminate FRAME_FIND_SAVED_REGS.
8799 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8800 Change FSR parameter to a pointer.
8801 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8802 Assume FSR parameter is a pointer.
8803 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8804 Make fsr a pointer.
8805 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8806 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8807 saved_regs a pointer.
8808 (hppa_frame_saved_pc): Ditto.
8809 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8810 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8811 pointer.
8812 (restore_pc_queue): Make fsr a pointer.
8813 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8814 (hppa_frame_chain): Make saved_regs a pointer, call
8815 hppa_frame_init_saved_regs.
8816 * sparc-tdep.c: Include "gdb_assert.h".
8817 (sparc_frame_find_saved_regs): Replace internal_error with
8818 gdb_assert.
8819 * remote-vxsparc.c (vx_read_register): Delete reference to
8820 FRAME_FIND_SAVED_REGS.
8821 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8822 * gdbarch.h: Regenerate.
8823 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8824 (deprecated_get_frame_saved_regs): Delete declaration.
8825 (struct frame_saved_regs): Delete definition.
8826 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8827 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8828 (hppa_frame_find_saved_regs): Delete declaration.
8829 (FRAME_FIND_SAVED_REGS): Delete macro.
8830 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8831 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8832 FRAME_FIND_SAVED_REGS in comment.
8833
be41e9f4
AC
88342003-04-05 Andrew Cagney <cagney@redhat.com>
8835
8836 * frame.c (frame_func_unwind, get_frame_func): New functions.
8837 * frame.h (get_frame_func, frame_func_unwind): Declare.
8838 (struct frame_info): Add field "prev_func" for caching the
8839 previous frame's function address.
8840 * arm-tdep.c (arm_frameless_function_invocation): Combine
8841 get_pc_function_start and get_frame_pc into get_frame_func.
8842 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8843 (sh64_nofp_frame_init_saved_regs): Ditto.
8844 * s390-tdep.c (s390_function_start): Ditto.
8845 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8846 (rs6000_frameless_function_invocation): Ditto.
8847 (rs6000_frame_saved_pc): Ditto.
8848 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8849 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8850 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8851 (i386_frame_init_saved_regs): Ditto.
8852 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8853 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8854 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8855 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8856 * blockframe.c (frameless_look_for_prologue): Ditto.
8857
a01dd7cc
AC
88582003-04-05 Andrew Cagney <cagney@redhat.com>
8859
8860 * frame.c (legacy_get_prev_frame): Link prev to next at the
8861 function start. Update comments.
8862
5e5592e6
AC
88632003-04-05 Andrew Cagney <cagney@redhat.com>
8864
8865 * frame.c (get_frame_id): Update comment.
8866 (legacy_get_prev_frame): Update comment.
8867 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8868 * gdbarch.h: Regenerate.
8869 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8870 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8871
6fba5002
AC
88722003-04-05 Andrew Cagney <cagney@redhat.com>
8873
8874 * stack.c (print_frame_info): Use get_frame_pc.
8875
7df05f2b
AC
88762003-04-04 Andrew Cagney <cagney@redhat.com>
8877
8878 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8879 the frame's type from the unwinder.
8880 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8881 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8882 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8883 (get_frame_base_address): Use get_frame_type.
8884 (get_frame_locals_address, get_frame_args_address): Ditto.
8885 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8886 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8887 (struct frame_info): Add comment explaining why the frame contains
8888 a "type" field.
8889 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8890 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8891 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8892 NORMAL_FRAME.
8893 * frame-unwind.h: Include "frame.h".
8894 (struct frame_unwind): Add "type" field.
8895 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8896
11889732
AC
88972003-04-04 Andrew Cagney <cagney@redhat.com>
8898
8899 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8900 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8901 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8902 get_frame_base.
8903 (d10v_unwind_dummy_id): Use frame_id_build.
8904 * frame.c (find_frame_sal): Use get_frame_pc.
8905 (create_new_frame): Use deprecated_update_frame_pc_hack and
8906 deprecated_update_frame_base_hack.
8907 (create_sentinel_frame): Add comment about ->pc going away.
8908 (get_prev_frame): Add comment about ->pc going away.
8909 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8910 frame_id_build, deprecated_update_frame_pc_hack and
8911 deprecated_update_frame_base_hack.
8912 (select_frame): Use get_frame_pc.
8913 (legacy_saved_regs_this_id): Use frame_id_build.
8914
50c46a0d
EZ
89152003-04-04 Elena Zannoni <ezannoni@redhat.com>
8916
fbe586ae
RH
8917 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8918 signed integer case.
8919 (classify_argument): Handle enumerations and references.
50c46a0d 8920
50bbdbd9
AC
89212003-04-04 Andrew Cagney <cagney@redhat.com>
8922
8923 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8924 ID to NULL.
8925
36018d2e
AF
89262003-04-01 Adam Fedor <fedor@gnu.org>
8927
8928 * gdb/objc-lang.c (selectors_info): Replace calls to
8929 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8930 SYMBOL_NATURAL_NAME.
8931 (classes_info, find_methods): Likewise.
8932
35cec841
KB
89332003-04-03 Kevin Buettner <kevinb@redhat.com>
8934
8935 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8936 ``mach'' to the value determined by bfd_default_set_arch_mach().
8937
43136899
BR
89382003-04-02 Bob Rossi <bob_rossi@cox.net>
8939
8940 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8941 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8942 (mi-cmd-file.o): Update dependencies.
8943
040b99fd
KB
89442003-04-01 Kevin Buettner <kevinb@redhat.com>
8945
8946 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8947 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8948
9a3d7dfd
AF
89492003-04-01 Adam Fedor <fedor@gnu.org>
8950
8951 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8952 * language.h (struct language_defn): Add la_demangle.
8953 (language_demangle): Declare.
8954 * language.c (language_demangle): New function.
8955 (unk_lang_demangle): Likewise.
8956 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8957 Add ukn_lang_demangle.
9a3d7dfd 8958 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8959 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8960 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8961 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8962 * jv-lang.c (java_demangle): New function
8963 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8964 * objc-lang.c (objc_demangle): Add options argument
8965 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8966 * maint.c (maintenance_demangle): Replace switch with
8967 call to language_demangle.
8968 * utils.c (fprintf_symbol_filtered): Likewise.
8969
5e074003
AC
89702003-04-01 Andrew Cagney <cagney@redhat.com>
8971
8972 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8973 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8974 PRINT_TYPELESS_INTEGER.
8975 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8976 PUSH_RETURN_ADDRESS.
8977
270cb5d6
AC
89782003-04-01 Andrew Cagney <cagney@redhat.com>
8979
8980 * Makefile.in (d10v-tdep.o): Update dependencies.
8981 * d10v-tdep.c: Include "frame-base.h".
8982 (d10v_frame_unwind): Make constant.
8983 (d10v_frame_base_address): New function.
8984 (d10v_frame_base): New variable.
8985 (d10v_gdbarch_init): Set frame_base default.
8986 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8987 comment for base.
8988 (d10v_frame_unwind_cache): Set and use "prev_sp".
8989 (d10v_frame_this_id): Use the previous frame's inner most stack
8990 address and this frame's func address for the frame ID. Use
8991 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8992
6bfb3e36
AC
89932003-04-01 Andrew Cagney <cagney@redhat.com>
8994
8995 * frame.h (get_frame_locals_address, get_frame_args_address):
8996 Refer to the base address, instead of the address of the first
8997 local or parameter.
8ffd9b1b 8998
da62e633
AC
89992003-04-01 Andrew Cagney <cagney@redhat.com>
9000
9001 Add frame debug info addresses:
9002 * frame-base.c: New file.
9003 * frame-base.h: New file.
9004 * frame.h (struct frame_base): Add opaque declaration.
9005 (get_frame_base): Update comment.
9006 (get_frame_base_address): Declare.
9007 (get_frame_locals_address): Declare.
9008 (get_frame_args_address): Declare.
9009 (struct frame_info): Add "base" and "base_cache". Update
9010 comments on the unwinder.
9011 * frame.c: Include "frame-base.h".
9012 (get_frame_locals_address): New function.
9013 (get_frame_base_address): New function.
9014 (get_frame_args_address): New function.
9015 * findvar.c (read_var_value): Use get_frame_locals_address and
9016 get_frame_args_address.
9017 * stack.c (frame_info): Use get_frame_locals_address and
9018 get_frame_args_address.
9019 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9020 moved to "frame-base.c".
9021 * printcmd.c (print_frame_nameless_args): Ditto.
9022 * symtab.h (address_class): Update comments.
9023 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9024 get_frame_base_address.
9025 * dwarf2expr.c (execute_stack_op): Ditto.
9026 * Makefile.in (frame_base_h): Define.
9027 (frame.o): Update dependencies.
9028 (frame-base.o): Add dependencies.
9029 (SFILES): Add frame-base.c.
9030 (COMMON_OBS): Add frame-base.o.
9031
3d30e9c2
AC
90322003-04-01 Andrew Cagney <cagney@redhat.com>
9033
9034 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9035 CALL_DUMMY_LENGTH): Ditto.
9036 * gdbarch.c: Re-generate.
9037 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9038 (CALL_DUMMY_LENGTH): Delete macro.
9039 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9040 * arm-tdep.c (arm_gdbarch_init): Ditto.
9041 * avr-tdep.c (avr_gdbarch_init): Ditto.
9042 * cris-tdep.c (cris_gdbarch_init): Ditto.
9043 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9044 * frv-tdep.c (frv_gdbarch_init): Ditto.
9045 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9046 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9047 * i386-tdep.c (i386_gdbarch_init): Ditto.
9048 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9050 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9051 * mips-tdep.c (mips_gdbarch_init): Ditto.
9052 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9053 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9054 * s390-tdep.c (s390_gdbarch_init): Ditto.
9055 * sh-tdep.c (sh_gdbarch_init): Ditto.
9056 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9057 * v850-tdep.c (v850_gdbarch_init): Ditto.
9058 * vax-tdep.c (vax_gdbarch_init): Ditto.
9059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9060
ce0c7262
CV
90612003-04-01 Corinna Vinschen <vinschen@redhat.com>
9062
9063 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9064
73dd234f
AC
90652003-04-01 Andrew Cagney <cagney@redhat.com>
9066
9067 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9068 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9069 * gdbarch.h, gdbarch.c: Re-generate.
9070 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9071 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9072 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9073 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9074 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9075 * infcmd.c (run_stack_dummy): Simplify assuming
9076 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9077 * infrun.c (handle_inferior_event): Ditto.
9078 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9079 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9080 * arm-tdep.c (arm_gdbarch_init): Ditto.
9081 * avr-tdep.c (avr_gdbarch_init): Ditto.
9082 * cris-tdep.c (cris_gdbarch_init): Ditto.
9083 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9084 * frv-tdep.c (frv_gdbarch_init): Ditto.
9085 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9086 * i386-tdep.c (i386_gdbarch_init): Ditto.
9087 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9089 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9090 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9091 * mips-tdep.c (mips_gdbarch_init): Ditto.
9092 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9093 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9094 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9095 * s390-tdep.c (s390_gdbarch_init): Ditto.
9096 * sh-tdep.c (sh_gdbarch_init): Ditto.
9097 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9098 * v850-tdep.c (v850_gdbarch_init): Ditto.
9099 * vax-tdep.c (vax_gdbarch_init): Ditto.
9100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9101
97606a13
DJ
91022003-04-01 Daniel Jacobowitz <drow@mvista.com>
9103
9104 * symfile.c (symfile_relocate_debug_section): Update call to
9105 bfd_simple_get_relocated_section_contents.
9106
e8ab51f7
AC
91072003-03-31 Andrew Cagney <cagney@redhat.com>
9108
9109 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9110 * gdbarch.h, gdbarch.c: Regenerate.
9111 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9112 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9113 available.
9114 * frame.h (generic_fix_call_dummy): Delete declaration.
9115 * dummy-frame.h: Update comment.
9116 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9118 fix_call_dummy.
9119 * sh-tdep.c (sh_gdbarch_init): Ditto.
9120 * s390-tdep.c (s390_gdbarch_init): Ditto.
9121 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9122 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9124 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9125 * i386-tdep.c (i386_gdbarch_init): Ditto.
9126 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9127 * frv-tdep.c (frv_gdbarch_init): Ditto.
9128 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9129 * cris-tdep.c (cris_gdbarch_init): Ditto.
9130 * avr-tdep.c (avr_gdbarch_init): Ditto.
9131 * arm-tdep.c (arm_gdbarch_init): Ditto.
9132
018d1b48
JB
91332003-03-31 J. Brobecker <brobecker@gnat.com>
9134
9135 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9136 (INIT_FRAME_AP): Likewise.
9137 (EXTRA_FRAME_INFO): Likewise.
9138
e9a2674e
AC
91392003-03-31 Andrew Cagney <cagney@redhat.com>
9140
9141 * gdbarch.sh: Include "symfile.h".
9142 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9143 * gdbarch.h, gdbarch.c: Re-generate.
9144 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9146 call_dummy_address, the default is at entry_point_address.
9147 * v850-tdep.c (v850_gdbarch_init): Ditto.
9148 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9149 * sh-tdep.c (sh_gdbarch_init): Ditto.
9150 * s390-tdep.c (s390_gdbarch_init): Ditto.
9151 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9152 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9153 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9154 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9155 * i386-tdep.c (i386_gdbarch_init): Ditto.
9156 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9157 * frv-tdep.c (frv_gdbarch_init): Ditto.
9158 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9159 * cris-tdep.c (cris_gdbarch_init): Ditto.
9160 * arm-tdep.c (arm_gdbarch_init): Ditto.
9161
e8a8712a
AC
91622003-03-31 Andrew Cagney <cagney@redhat.com>
9163
9164 * gdbarch.sh (CALL_DUMMY_P): Delete.
9165 * gdbarch.h, gdbarch.c: Re-generate.
9166 * inferior.h (CALL_DUMMY_P): Delete macro.
9167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9168 * vax-tdep.c (vax_gdbarch_init): Update.
9169 * v850-tdep.c (v850_gdbarch_init): Update.
9170 * sparc-tdep.c (sparc_gdbarch_init): Update.
9171 * sh-tdep.c (sh_gdbarch_init): Update.
9172 * s390-tdep.c (s390_gdbarch_init): Update.
9173 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9174 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9175 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9176 * mips-tdep.c (mips_gdbarch_init): Update.
9177 * mcore-tdep.c (mcore_gdbarch_init): Update.
9178 * m68k-tdep.c (m68k_gdbarch_init): Update.
9179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9180 * ia64-tdep.c (ia64_gdbarch_init): Update.
9181 * i386-tdep.c (i386_gdbarch_init): Update.
9182 * h8300-tdep.c (h8300_gdbarch_init): Update.
9183 * frv-tdep.c (frv_gdbarch_init): Update.
9184 * d10v-tdep.c (d10v_gdbarch_init): Update.
9185 * cris-tdep.c (cris_gdbarch_init): Update.
9186 * breakpoint.c (deprecated_frame_in_dummy): Update.
9187 * avr-tdep.c (avr_gdbarch_init): Update.
9188 * alpha-tdep.c (alpha_gdbarch_init): Update.
9189 * arm-tdep.c (arm_gdbarch_init): Update.
9190 * dummy-frame.c (dummy_frame_this_id): Update comments.
9191 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9192 * frame.c (legacy_get_prev_frame): Ditto.
9193 * valops.c (call_function_by_hand): Delete function.
9194 (hand_function_call): Rename to call_function_by_hand
9195
ed234cf8
AC
91962003-03-30 Andrew Cagney <cagney@redhat.com>
9197
9198 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9199 * value.h (struct value): Update comment.
ed234cf8 9200
06c77151
AC
92012003-03-30 Andrew Cagney <cagney@redhat.com>
9202
6c2b5168
AC
9203 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9204 D10V_FP_REGNUM.
9205 (d10v_gdbarch_init): Do not set fp_regnum.
9206
06c77151
AC
9207 * frame.c (get_frame_base): Force ID initialization.
9208 (get_prev_frame): Move computation of the frame ID from here ...
9209 (get_frame_id): ... to here.
9210 (legacy_get_prev_frame): Mark the frame ID as valid.
9211 * frame.h (struct frame_info): Add field "id_p".
9212
97a1a11c
MK
92132003-03-30 Mark Kettenis <kettenis@gnu.org>
9214
9215 * i386-tdep.c (i386_store_struct_return): Removed.
9216 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9217
6c0e89ed
AC
92182003-03-30 Andrew Cagney <cagney@redhat.com>
9219
9220 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9221 * gdbarch.h, gdbarch.c: Regenerate.
9222 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9223 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9224 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9225 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9226 * i386-tdep.c (i386_gdbarch_init): Ditto.
9227 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9228 * cris-tdep.c (cris_gdbarch_init): Ditto.
9229 * vax-tdep.c (vax_gdbarch_init): Ditto.
9230 * s390-tdep.c (s390_gdbarch_init): Ditto.
9231 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9232 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9233 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9234 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9235 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9236 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9237 * sparc-tdep.c (sparc_gdbarch_init): Update.
9238 * sh-tdep.c (sh_gdbarch_init): Update.
9239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9240 * mips-tdep.c (mips_gdbarch_init): Update.
9241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9242 * ia64-tdep.c (ia64_gdbarch_init): Update.
9243 * frv-tdep.c (frv_gdbarch_init): Update.
9244 * avr-tdep.c (avr_gdbarch_init): Update.
9245 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9246 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9247 instead of when push_dummy_call is not available.
8ffd9b1b 9248
f7dd6af2
AC
92492003-03-30 Andrew Cagney <cagney@redhat.com>
9250
9251 * infttrace.c: Include "gdbthread.h".
9252 (parent_attach_all): Fix function signature.
9253 (call_ptrace): Update call.
9254 * Makefile.in (infttrace.o): Update dependencies.
9255
28f617b3
AC
92562003-03-30 Andrew Cagney <cagney@redhat.com>
9257
9258 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9259 PUSH_RETURN_ADDRESS.
9260 * gdbarch.h, gdbarch.c: Regenerate.
9261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9262 * x86-64-tdep.c (x86_64_init_abi): Update.
9263 * v850-tdep.c (v850_gdbarch_init): Update.
9264 * sparc-tdep.c (sparc_gdbarch_init): Update.
9265 * sh-tdep.c (sh_gdbarch_init): Update.
9266 * s390-tdep.c (s390_gdbarch_init): Update.
9267 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9268 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9269 * mips-tdep.c (mips_gdbarch_init): Update.
9270 * mcore-tdep.c (mcore_gdbarch_init): Update.
9271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9272 * ia64-tdep.c (ia64_gdbarch_init): Update.
9273 * i386-tdep.c (i386_gdbarch_init): Update.
9274 * h8300-tdep.c (h8300_gdbarch_init): Update.
9275 * frv-tdep.c (frv_gdbarch_init): Update.
9276 * cris-tdep.c (cris_gdbarch_init): Update.
9277 * avr-tdep.c (avr_gdbarch_init): Update.
9278 * arm-tdep.c (arm_gdbarch_init): Update.
9279 * valops.c (hand_function_call): Update.
9280
4d628cd7
AC
92812003-03-29 Andrew Cagney <cagney@redhat.com>
9282
9283 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9284 sizeof_call_dummy_words.
9285 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9286 define.
9287 * gdbarch.h: Regenerate.
8ffd9b1b 9288
65e82032
AC
92892003-03-29 Andrew Cagney <cagney@redhat.com>
9290
9291 * infttrace.h: New file.
9292 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9293 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9294 (hpread_read_doc_function_type): Detect an initialized type1.
9295 (hpread_quick_traverse): Initialize mod_name_string.
9296 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9297 (som_solib_get_solib_by_pc): Declare.
9298 (so_lib_thread_start_addr): Declare.
9299 (no_shared_libraries): Declare.
9300 * somread.c (init_import_symbols): Make static. Add forward
9301 declaration.
9302 * config/pa/nm-hppah.h: Include "infttrace.h" for
9303 parent_attach_all.
9304 (hppa_insert_hw_watchpoint): Declare.
9305 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9306 * hppah-nat.c: Include "gdb_string.h".
9307 (parent_attach_all): Delete extern declaration, moved to
9308 "infttrace.h".
9309 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9310 int.
9311 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9312 * Makefile.in (infttrace_h): Define.
9313 (hpread.o): Update dependencies.
9314 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9315 * hppa-hpux-tdep.c: Include "gdb_string.h".
9316 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9317 * infrun.c (handle_inferior_event): Always initialize
9318 stepped_after_stopped_by_watchpoint. Add default and remove
9319 fallthrough in switch statement.
9320 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9321 parameter to int.
9322 (hppa_remove_hw_watchpoint): Ditto.
9323
2c3bbe77
AC
93242003-03-29 Andrew Cagney <cagney@redhat.com>
9325
9326 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9327 offset.
9328
2dd604e7
RE
93292003-03-29 Richard Earnshaw <rearnsha@arm.com>
9330
9331 * arm-tdep.c (arm_push_arguments): Delete.
9332 (struct stack_item): New type.
9333 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9334 (arm_store_struct_return): Delte.
9335 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9336 arm_push_arguments or arm_store_struct_return.
9337
e8933a55
AC
93382003-03-28 Andrew Cagney <cagney@redhat.com>
9339
9340 * Makefile.in (d10v-tdep.o): Update dependencies.
9341 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9342 * d10v-tdep.c: Include "remote.h".
9343 (target_resume_hook): Delete extern declaration.
9344 (target_wait_loop_hook): Ditto.
9345 (tdisassemble_command): Eliminate assignment in "if" conditional.
9346 (d10v_ts2_register_sim_regno): Eliminate call to
9347 legacy_register_sim_regno.
9348 (d10v_ts3_register_sim_regno): Ditto.
9349
6949171e
JJ
93502003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9351
9352 * thread.c: Reindented.
9353 * lin-lwp.c: Ditto.
9354 * linux-proc.c: Ditto.
9355
98c7071f
BR
93562003-03-28 Bob Rossi <bob_rossi@cox.net>
9357
fbe586ae 9358 * MAINTAINERS (write after approval): Add myself.
98c7071f 9359
5edc9ca6
TR
93602003-03-27 Theodore A. Roth <troth@openavr.org>
9361
9362 * objc-exp.y: Add missing semi-colons.
9363
378bfd1b
AC
93642003-03-27 Andrew Cagney <cagney@redhat.com>
9365
9366 * regcache.c (write_sp): Delete function and references.
9367 * inferior.h (write_sp): Delete declaration.
9368 * valops.c (hand_function_call): Replace write_sp with
9369 TARGET_WRITE_SP.
9370 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9371 (sparc_pop_frame): Ditto.
8ffd9b1b 9372
56056df7
AC
93732003-03-27 Andrew Cagney <cagney@redhat.com>
9374
9375 * NEWS: Mention removal of support for hppa*-*-bsd* and
9376 hppa*-*-osf* natives, and hppa*-*-pro* target.
9377 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9378 * config/pa/xm-pa.h: Obsolete file.
9379 * config/pa/xm-hppab.h: Obsolete file.
9380 * config/pa/nm-hppab.h: Obsolete file.
9381 * config/pa/tm-hppab.h: Obsolete file.
9382 * config/pa/tm-hppao.h: Obsolete file.
9383 * config/pa/nm-hppao.h: Obsolete file.
9384 * config/pa/tm-pro.h: Obsolete file.
9385 * config/pa/hppaosf.mt: Obsolete file.
9386 * config/pa/hppaosf.mh: Obsolete file.
9387 * config/pa/hppapro.mt: Obsolete file.
9388 * config/pa/hppabsd.mt: Obsolete file.
9389 * config/pa/hppabsd.mh: Obsolete file.
9390 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9391 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9392 hppa*-*-osf*.
9393
5873a88d
AC
93942003-03-27 Andrew Cagney <cagney@redhat.com>
9395
9396 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9397 push_arguments. Don't set push_return_address or write_sp.
9398 (d10v_push_dummy_call): Replace d10v_push_arguments.
9399 (d10v_push_return_address, d10v_write_sp): Delete function,
9400 handled by push_dummy_call.
9401
b81774d8
AC
94022003-03-26 Andrew Cagney <cagney@redhat.com>
9403
9404 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9405 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9406 regcache and dummy_addr parameters.
9407 * gdbarch.h, gdbarch.c: Re-generate.
9408 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9409 available; assume it will handle stack alignment and return
9410 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9411 legacy_push_arguments.
9412 (legacy_push_arguments): Rename default_push_arguments.
9413 * value.h (legacy_push_arguments): Rename default_push_arguments.
9414 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9415 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9416 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9417 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9418 * config/i386/tm-symmetry.h: Update.
9419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9420 * x86-64-tdep.c (x86_64_init_abi): Update.
9421 * v850-tdep.c (v850_gdbarch_init): Update.
9422 * sparc-tdep.c (sparc_gdbarch_init): Update.
9423 * sh-tdep.c (sh_gdbarch_init): Update.
9424 * s390-tdep.c (s390_gdbarch_init): Update.
9425 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9426 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9427 * mips-tdep.c (mips_gdbarch_init): Update.
9428 * mcore-tdep.c (mcore_gdbarch_init): Update.
9429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9430 * ia64-tdep.c (ia64_gdbarch_init): Update.
9431 * i386-tdep.c (i386_gdbarch_init): Update.
9432 * hppa-tdep.c (hppa_gdbarch_init): Update.
9433 * h8300-tdep.c (h8300_gdbarch_init): Update.
9434 * frv-tdep.c (frv_gdbarch_init): Update.
9435 * d10v-tdep.c (d10v_gdbarch_init): Update.
9436 * cris-tdep.c (cris_gdbarch_init): Update.
9437 * avr-tdep.c (avr_gdbarch_init): Update.
9438 * arm-tdep.c (arm_gdbarch_init): Update.
9439 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9440 * alpha-tdep.c (alpha_gdbarch_init): Update.
9441
f541410f
DJ
94422003-03-26 Daniel Jacobowitz <drow@mvista.com>
9443
9444 * signals/signals.c (do_target_signal_to_host): Correct realtime
9445 signal range test.
9446
69f567ae
DJ
94472003-03-26 Daniel Jacobowitz <drow@mvista.com>
9448
9449 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9450 (struct sal_chain, map_catch_names): Remove.
9451 (catch_exception_command_1): Don't call
9452 handle_gnu_4_16_catch_command.
9453
d5d14a5a
DJ
94542003-03-26 Daniel Jacobowitz <drow@mvista.com>
9455
9456 From Mark Dettinger <dettinge@de.ibm.com>:
9457 * dwarf2cfi.c (read_2u): Increment pointer by two.
9458
bdd73e22
DJ
94592003-03-26 Daniel Jacobowitz <drow@mvista.com>
9460
9461 * signals/signals.c: Fix typos in last change.
9462
960cb555
DJ
94632003-03-26 Daniel Jacobowitz <drow@mvista.com>
9464
9465 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9466 not already defined. Use __SIGRTMIN if available.
9467 (target_signal_from_host): Remove SIGRTMIN block.
9468 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9469 the signal is within the realtime range.
9470
f636b87d
AF
94712003-03-25 Adam Fedor <fedor@gnu.org>
9472
9473 * Makefile.in (infrun.o): Add $(language_h)
9474 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9475 for language specific trampolines.
9476 * language.h (struct language_defn): Add skip_trampoline.
9477 (skip_language_trampoline): Declare.
9478 * language.c (unk_lang_trampoline, skip_language_trampoline):
9479 New functions.
9480 (unknown_language_defn, auto_language_defn, local_language_defn):
9481 Add ukn_lang_trampoline.
9482 * ada-lang.c (ada_language_defn): Add NULL for language
9483 specific skip_trampoline.
9484 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9485 scm-lang.c: Likewise.
9486 * objc-lang.c (objc_skip_trampoline): New function.
9487 (objc_language_defn): Add objc_skip_trampoline.
9488
28f617b3 94892003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9490
9491 * frame.c (get_prev_frame): Delay validating a frame's ID -
9492 non-NULL, didn't go backwards - until an attempt to unwind it to
9493 the previous frame.
9494
f933a9c5
AC
94952003-03-25 Andrew Cagney <cagney@redhat.com>
9496
9497 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9498 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9499 * gdbarch.h, gdbarch.c: Re-generate.
9500 * config/sparc/tm-sparc.h
9501 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9502 * sparc-tdep.c (sparc_gdbarch_init): Set
9503 deprecated_extra_stack_alignment_needed.
9504 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9506 extra_stack_alignment_needed.
9507 * v850-tdep.c (v850_gdbarch_init): Ditto.
9508 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9509 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9510 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9511 * cris-tdep.c (cris_gdbarch_init): Ditto.
9512 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9514
4183d812
AC
95152003-03-25 Andrew Cagney <cagney@redhat.com>
9516
9517 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9518 STORE_STRUCT_RETURN.
9519 * gdbarch.h, gdbarch.c: Regenerate.
9520 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9521 (d10v_push_arguments): Set the struct return register.
9522 (d10v_gdbarch_init): Update.
9523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9524 * x86-64-tdep.c (x86_64_init_abi): Update.
9525 * vax-tdep.c (vax_gdbarch_init): Update.
9526 * v850-tdep.c (v850_gdbarch_init): Update.
9527 * sparc-tdep.c (sparc_gdbarch_init): Update.
9528 * sh-tdep.c (sh_gdbarch_init): Update.
9529 * s390-tdep.c (s390_gdbarch_init): Update.
9530 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9531 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9532 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9533 * mips-tdep.c (mips_gdbarch_init): Update.
9534 * mcore-tdep.c (mcore_gdbarch_init): Update.
9535 * m68k-tdep.c (m68k_gdbarch_init): Update.
9536 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9537 * ia64-tdep.c (ia64_gdbarch_init): Update.
9538 * i386-tdep.c (i386_gdbarch_init): Update.
9539 * hppa-tdep.c (hppa_gdbarch_init): Update.
9540 * h8300-tdep.c (h8300_gdbarch_init): Update.
9541 * frv-tdep.c (frv_gdbarch_init): Update.
9542 * cris-tdep.c (cris_gdbarch_init): Update.
9543 * avr-tdep.c (avr_gdbarch_init): Update.
9544 * arm-tdep.c (arm_gdbarch_init): Update.
9545 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9546
1bf6d5cc
AC
95472003-03-25 Andrew Cagney <cagney@redhat.com>
9548
9549 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9550 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9551 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9552 * gdbarch.h, gdbarch.c: Regenerate.
9553 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9554 call_dummy_stack_adjust_p.
9555 * vax-tdep.c (vax_gdbarch_init): Ditto.
9556 * v850-tdep.c (v850_gdbarch_init): Ditto.
9557 * sh-tdep.c (sh_gdbarch_init): Ditto.
9558 * s390-tdep.c (s390_gdbarch_init): Ditto.
9559 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9560 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9561 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9562 * mips-tdep.c (mips_gdbarch_init): Ditto.
9563 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9564 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9565 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9566 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9567 * i386-tdep.c (i386_gdbarch_init): Ditto.
9568 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9569 * frv-tdep.c (frv_gdbarch_init): Ditto.
9570 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9571 * cris-tdep.c (cris_gdbarch_init): Ditto.
9572 * avr-tdep.c (avr_gdbarch_init): Ditto.
9573 * arm-tdep.c (arm_gdbarch_init): Ditto.
9574 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9575 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9576 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9577 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9578 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9579 call_dummy_stack_adjust_p.
9580 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9581 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9582 * sparc-tdep.c (sparc32_push_arguments): Update.
9583 * valops.c (hand_function_call): Update.
9584
71c08af0
CV
95852003-03-25 Corinna Vinschen <vinschen@redhat.com>
9586
9587 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9588 set_gdbarch_char_signed.
9589
30757f90
RE
95902003-03-25 Richard Earnshaw <rearnsha@arm.com>
9591
9592 PR cli/548
9593 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9594
03d48a7d
RE
95952003-03-25 Richard Earnshaw <rearnsha@arm.com>
9596
9597 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9598 (_initialize_arm_tdep): Don't set tm_print_insn.
9599
2cf6873c
AF
96002003-03-24 Adam Fedor <fedor@gnu.org>
9601
9602 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9603 * objc-lang.h: Add multiple inclusion protection.
9604 (start_msglist, add_msglist, end_msglist): Additional declarations.
9605
17c0759e
RE
96062003-03-24 Richard Earnshaw <rearnsha@arm.com>
9607
9608 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9609 value was renamed to ARM_FLOAT_SOFT_FPA.
9610
618ce49f
AC
96112003-03-23 Andrew Cagney <cagney@redhat.com>
9612
9613 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9614 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9615 * gdbarch.h, gdbarch.c: Regenerate.
9616 * valops.c (hand_function_call): Update.
9617 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9618 * frame.c (legacy_saved_regs_this_id): Update.
9619 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9620 * dummy-frame.h: Update.
9621 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9622 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9623 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9624 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9625 * config/m68k/tm-sun3.h: Update.
9626 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9627 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9628 * x86-64-tdep.c (x86_64_init_abi): Update.
9629 * vax-tdep.c (vax_gdbarch_init): Update.
9630 * v850-tdep.c (v850_gdbarch_init): Update.
9631 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9632 * sh-tdep.c (sh_gdbarch_init): Update.
9633 * s390-tdep.c (s390_gdbarch_init): Update.
9634 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9635 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9636 (frame_get_saved_regs): Update.
9637 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9638 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9639 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9640 * mips-tdep.c (mips_gdbarch_init): Update.
9641 * mcore-tdep.c (mcore_gdbarch_init): Update.
9642 * m68k-tdep.c (m68k_gdbarch_init): Update.
9643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9644 * ia64-tdep.c (ia64_gdbarch_init): Update.
9645 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9646 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9647 (i386_interix_back_one_frame): Update.
9648 * hppa-tdep.c (hppa_gdbarch_init): Update.
9649 (hppa_init_extra_frame_info): Update.
9650 * h8300-tdep.c (h8300_gdbarch_init): Update.
9651 * frv-tdep.c (frv_gdbarch_init): Update.
9652 * cris-tdep.c (cris_gdbarch_init): Update.
9653 * avr-tdep.c (avr_gdbarch_init): Update.
9654 * arm-tdep.c (arm_gdbarch_init): Update.
9655 * alpha-tdep.c (alpha_gdbarch_init): Update.
9656
fd50bc42
RE
96572003-03-22 Richard Earnshaw <rearnsha@arm.com>
9658
9659 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9660 (arm_get_fp_model): Declare.
9661 * arm-tdep.c (fp_model_strings): New string array.
9662 (arm_fp_model, current_fp_model): New variables.
9663 (arm_get_fp_model): New function.
9664 (arm_set_fp): New function.
9665 (set_fp_model_sfunc): New function.
9666 (show_fp_model): New function.
9667 (_initialize_arm_tdep): Add new command to set/show the FPU.
9668 (arm_extract_return_value): Use arm_get_fp_model.
9669 (arm_store_return_value): Likewise.
9670 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9671 to initialize the floating-point data types.
9672 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9673 model is FPA.
9674
26304000
RE
96752003-03-22 Richard Earnshaw <rearnsha@arm.com>
9676
9677 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9678 the current setting of each value.
9679 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9680 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9681 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9682 commands and add new version as subcommands of "set/show arm".
9683
afd7eef0
RE
96842003-03-22 Richard Earnshaw <rearnsha@arm.com>
9685
9686 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9687 (set_arm_command, show_arm_command): New functions.
9688 (_initialize_arm_tdep): Add them.
9689 (num_disassembly_options): Renamed from num_flavor_options.
9690 (valid_disassembly_styles): Renamed from valid_flavors.
9691 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9692 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9693 set_disassembly_flavor_sfunc.
9694 (set_disassembly_style): Renamed from set_disassembly_flavor.
9695 (arm_othernames): Updated.
9696 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9697 command. Add "set/show arm disassembly" commands. Deprecate
9698 "othernames" command.
9699
299a7944
RE
97002003-03-22 Richard Earnshaw <rearnsha@arm.com>
9701
9702 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9703 (arm-tdep.o): Depend on elf_arm_h.
9704
c1dac9e6
RE
97052003-03-22 Richard Earnshaw <rearnsha@arm.com>
9706
9707 * Makefile.in (coff_internal_h): Define.
9708 (arm-tdep.o): Update dependencies.
9709
2702d96c
RE
97102003-03-22 Richard Earnshaw <rearnsha@arm.com>
9711
9712 * arm-tdep.c (prologue_cache): Delete.
9713 (check_prologue_cache, save_prologue_cache): Delete.
9714 (arm_scan_prologue): Don't check or update the prologue_cache.
9715 (arm_gdb_arch_init): Don't initialize it.
9716 (_initialize_arm_tdep): Likewise.
9717
27d5d74b
SC
97182003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9719
9720 * MAINTAINERS (tui): Maintainer of tui code.
9721
1762d96d
CV
97222003-03-21 Corinna Vinschen <vinschen@redhat.com>
9723
9724 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9725 (i386-cygwin-tdep.o): Add dependencies.
9726 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9727 * i386-cygwin-tdep.c: New file.
9728 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9729 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9730
4c2e2391
AC
97312003-03-20 Andrew Cagney <cagney@redhat.com>
9732
f20d38b7
AC
9733 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9734 (handle_inferior_event): Remove code calling
9735 DYNAMIC_TRAMPOLINE_NEXTPC.
9736
0022b738
AC
9737 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9738 already has a full path.
9739
864dbc90
AC
9740 * main.c (gdb_main): Return 1.
9741 (captured_main): Call error to report an invalid interpreter.
9742
4c2e2391
AC
9743 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9744 * alpha-osf1-tdep.c: Include "gdb_string.h".
9745
5ef7553b
JB
97462003-03-19 J. Brobecker <brobecker@gnat.com>
9747
9748 Continuing work to convert the hppa targets to multiarch partial.
9749
9750 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9751 method, now that hppa_push_dummy_frame has a conformant prototype.
9752 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9753 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9754 for the switch to multiarch partial.
9755
7bde8967
KB
97562003-03-19 Kevin Buettner <kevinb@redhat.com>
9757
9758 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9759 when iss is issNull.
9760
b006a9e9
KB
97612003-03-18 Kevin Buettner <kevinb@redhat.com>
9762
9763 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9764 NUM_REGS bounds check.
9765
5e2e9765
KB
97662003-03-18 Kevin Buettner <kevinb@redhat.com>
9767
9768 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9769 * mips-tdep.c (gdb_assert.h): Include.
9770 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9771 (mips_register_name): Handle integer registers explicitly. Add
9772 bounds checking.
9773 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9774 (mips_lsi33k_reg_names): Don't list integer registers; they're
9775 handled by mips_register_name() now.
9776 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9777 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9778 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9779 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9780 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9781
a2867626
AC
97822003-03-18 Andrew Cagney <cagney@redhat.com>
9783
9784 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9785 a void pointer.
9786 * gdbtypes.h (print_scalar_formatted): Update declaration.
9787 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9788
06600e06
JB
97892003-03-18 J. Brobecker <brobecker@gnat.com>
9790
9791 * infrun.c (observer.h): Add #include.
9792 (normal_stop): Add call to observer_notify_normal_stop.
9793 * Makefile.in (infrun.o): Add dependency on observer.h.
9794
7daf4f5b
JB
97952003-03-18 J. Brobecker <brobecker@gnat.com>
9796
9797 Continuing work to convert the hppa targets to multiarch partial.
9798 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9799 parameter. Reformat comment.
9800 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9801 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9802 to match new profile.
9803
3371ccc0
JB
98042003-03-18 J. Brobecker <brobecker@gnat.com>
9805
9806 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9807 appear to be working in any case.
9808
4fbe891e
JB
98092003-03-18 J. Brobecker <brobecker@gnat.com>
9810
9811 * observer.c (observer_test_first_observer): New static variable.
9812 (observer_test_second_observer): Likewise.
9813 (observer_test_third_observer): Likewise.
9814 (observer_test_first_notification_function): New static function.
9815 (observer_test_second_notification_function): Likewise.
9816 (observer_test_third_notification_function): Likewise.
9817
a7ff40e7
JB
98182003-03-17 J. Brobecker <brobecker@gnat.com>
9819
9820 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9821 * somsolib.c (gdb_assert.h): Likewise.
9822 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9823 (somsolib.o): Likewise.
9824
26ca4152
AC
98252003-03-17 Andrew Cagney <cagney@redhat.com>
9826
9827 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9828 BFD. Simplify setting of di.endian.
9829
0a613259
AC
98302003-03-17 Andrew Cagney <cagney@redhat.com>
9831
9832 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9833 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9834
9835 From Elena Zannoni <ezannoni@redhat.com>
9836 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9837 vector and floating-point parameters.
9838 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9839 convention.
9840 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9841
1132738f
FN
98422003-03-17 Fernando Nasser <fnasser@redhat.com>
9843
9844 * MAINTAINERS: Remove my name from several maintainership roles.
9845
6dc42492
AC
98462003-03-17 Andrew Cagney <cagney@redhat.com>
9847
9848 Fix frame off-by-one bug.
9849 * frame-unwind.h (frame_this_id_ftype): Replace
9850 frame_unwind_id_ftype.
9851 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9852 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9853 with "prev_register".
9854 * frame-unwind.c (frame_unwind_find_by_pc): Return
9855 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9856 comment.
9857 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9858 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9859 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9860 (dummy_frame_unwind): Update.
9861 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9862 sentinel_frame_register_unwind.
9863 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9864 (sentinel_frame_unwinder): Update.
9865 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9866 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9867 * frame.c (create_sentinel_frame): Update. Initialize
9868 "prologue_cache" instead of "unwind_cache".
9869 (frame_register_unwind): Call this frame's prev_register with the
9870 next frame and this frame's prologue cache.
9871 (get_prev_frame): Simplify. Always call prev frame's this_id with
9872 this frame and prev frame's prologue cache. Document that this
9873 call is shifted one to the left when compared to the
9874 frame_register_unwind call.
9875 (legacy_saved_regs_prev_register): Replace
9876 frame_saved_regs_register_unwind.
9877 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9878 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9879 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9880 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9881 (d10v_frame_unwind): Update.
9882 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9883 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9884 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9885 "saved_regs" with "this_saved_regs".
9886
efd710d6
AC
98872003-03-16 Andrew Cagney <cagney@redhat.com>
9888
9889 * frame.c (frame_pop): Don't call target_store_registers. Fix
9890 problem reported by Mark Kettenis.
9891
4e259f09
MK
98922003-03-16 Mark Kettenis <kettenis@gnu.org>
9893
9894 * i386-tdep.c (i386_register_type): Renamed from
9895 i386_register_virtual_type. Adjust function signature.
9896 (i386_gdbarch_init): Set register_type instead of
9897 deprecated_max_register_raw_size,
9898 deprecated_max_register_virtual_size and register_virtual_type.
9899
055bb976
AC
99002003-03-14 Andrew Cagney <cagney@redhat.com>
9901
9902 * frame.c (get_prev_frame): When a legacy frame, always call
9903 legacy_get_prev_frame. Simplify unwind code using assumption that
9904 the unwinder is new.
9905 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9906 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9907 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9908
ac2adee5
AC
99092003-03-14 Andrew Cagney <cagney@redhat.com>
9910
9911 * frame.c (get_saved_register): Delete function.
9912 * frame.h (get_saved_register): Delete declaration.
9913 * xstormy16-tdep.c: Update comment.
9914 * regcache.h: Update comments.
9915 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9916 get_saved_register and extract_address, use
9917 frame_read_unsigned_register.
9918 (sparc_frame_saved_pc): Ditto.
9919 (sparc_get_saved_register): Instead of get_saved_register, use
9920 frame_register.
9921 (sparc_pop_frame): Ditto.
9922 * findvar.c: Update comments.
9923 (value_of_register): Call frame_register instead of
9924 get_saved_register.
9925 (value_from_register): Ditto.
9926 * config/sparc/tm-sparc.h: Update comment.
9927 * breakpoint.c: Update comment.
9928
129c1cd6
AC
99292003-03-14 Andrew Cagney <cagney@redhat.com>
9930
9931 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9932 GET_SAVED_REGISTER.
9933 * gdbarch.h, gdbarch.c: Re-generate.
9934 * frame.h: Update comments.
9935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9936 * x86-64-tdep.c (x86_64_init_abi): Update.
9937 * sparc-tdep.c (sparc_gdbarch_init): Update.
9938 * sh-tdep.c (sh_gdbarch_init): Update.
9939 * mips-tdep.c (mips_gdbarch_init): Update.
9940 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9941 * cris-tdep.c (cris_gdbarch_init): Update.
9942 * ia64-tdep.c (ia64_gdbarch_init): Update.
9943 * frame.c (frame_register): Update.
9944 (get_saved_register): Update.
9945 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9946
749b82f6
AC
99472003-03-13 Andrew Cagney <cagney@redhat.com>
9948
9949 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9950 * gdbarch.h, gdbarch.c: Regenerate.
9951 * valops.c (hand_function_call): Update comment.
9952 * stack.c (return_command): Update comment.
9953 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9954 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9956 * x86-64-tdep.c (x86_64_init_abi): Update.
9957 * vax-tdep.c (vax_gdbarch_init): Update.
9958 * v850-tdep.c (v850_gdbarch_init): Update.
9959 * sparc-tdep.c (sparc_gdbarch_init): Update.
9960 * sh-tdep.c (sh_gdbarch_init): Update.
9961 * s390-tdep.c (s390_gdbarch_init): Update.
9962 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9963 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9964 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9965 * mips-tdep.c (mips_gdbarch_init): Update.
9966 * mcore-tdep.c (mcore_gdbarch_init): Update.
9967 * m68k-tdep.c (m68k_gdbarch_init): Update.
9968 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9969 * ia64-tdep.c (ia64_gdbarch_init): Update.
9970 * i386-tdep.c (i386_gdbarch_init): Update.
9971 * hppa-tdep.c (hppa_gdbarch_init): Update.
9972 * h8300-tdep.c (h8300_gdbarch_init): Update.
9973 * frv-tdep.c (frv_gdbarch_init): Update.
9974 * cris-tdep.c (cris_gdbarch_init): Update.
9975 * avr-tdep.c (avr_gdbarch_init): Update.
9976 * arm-tdep.c (arm_gdbarch_init): Update.
9977 * alpha-tdep.c (alpha_gdbarch_init): Update.
9978
1594fa56
AC
99792003-03-13 Andrew Cagney <cagney@redhat.com>
9980
9981 * frame.c (legacy_frame_p): New function.
9982 (get_prev_frame): Use legacy_frame_p.
9983 * frame.h (legacy_frame_p): Declare.
9984
7717fda3
V
99852003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9986
fbe586ae 9987 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9988 listing corrected.
9989
0c67cbe9
V
99902003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9991
fbe586ae 9992 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9993
03febf99
AC
99942003-03-12 Andrew Cagney <cagney@redhat.com>
9995
9996 * frame.c (get_prev_frame): Rename the frame parameter to
9997 "this_frame".
9998 (get_next_frame, legacy_get_prev_frame): Ditto.
9999
0a1e1ca1
AC
100002003-03-12 Andrew Cagney <cagney@redhat.com>
10001
10002 * frame.c (get_current_frame): Check target_has_registers before
10003 checking target_has_stack.
10004 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10005 instead of deprecated_selected_frame.
10006 * findvar.c (value_of_register): Pass "frame", not
10007 deprecated_selected_frame, to value_of_builtin_reg.
10008
a66a9c23
AC
100092003-03-12 Andrew Cagney <cagney@redhat.com>
10010
10011 * regcache.c (regcache_cooked_write_signed): New function.
10012 (regcache_cooked_write_unsigned): New function.
10013 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10014 (regcache_cooked_read_signed): Fix regnum in range assertion.
10015 * regcache.h (regcache_cooked_write_signed): Declare.
10016 (regcache_cooked_write_unsigned): Declare.
10017
8bedc050
AC
100182003-03-12 Andrew Cagney <cagney@redhat.com>
10019
10020 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10021 * gdbarch.h, gdbarch.c: Re-generate.
10022 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10023 * x86-64-tdep.h: Update.
10024 * x86-64-tdep.c (x86_64_init_abi): Update.
10025 * v850-tdep.c (v850_gdbarch_init): Update.
10026 * sparc-tdep.c (sparc_gdbarch_init): Update.
10027 * sh-tdep.c (sh_gdbarch_init): Update.
10028 * s390-tdep.c (s390_gdbarch_init): Update.
10029 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10030 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10031 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10032 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10033 * mips-tdep.c (mips_gdbarch_init): Update.
10034 * mcore-tdep.c (mcore_gdbarch_init): Update.
10035 * m68k-tdep.c (m68k_gdbarch_init): Update.
10036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10037 * ia64-tdep.c (ia64_gdbarch_init): Update.
10038 * i386-tdep.c (i386_gdbarch_init): Update.
10039 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10040 * hppa-tdep.c (hppa_gdbarch_init): Update.
10041 * h8300-tdep.c (h8300_gdbarch_init): Update.
10042 * frv-tdep.c (frv_gdbarch_init): Update.
10043 * cris-tdep.c (cris_gdbarch_init): Update.
10044 * avr-tdep.c (avr_gdbarch_init): Update.
10045 * arm-tdep.c (arm_gdbarch_init): Update.
10046 * alpha-tdep.c (alpha_gdbarch_init): Update.
10047 * sh-tdep.c (sh_init_extra_frame_info): Update.
10048 (sh64_init_extra_frame_info): Update.
10049 * ns32knbsd-nat.c (frame_num_args): Update.
10050 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10051 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10052 (xstormy16_frame_chain_valid): Update.
10053 * vax-tdep.c (vax_saved_pc_after_call): Update.
10054 * v850-tdep.c (v850_frame_chain): Update.
10055 (v850_pop_frame): Update.
10056 (v850_init_extra_frame_info): Update.
10057 * sparc-tdep.c (setup_arbitrary_frame): Update.
10058 * ns32k-tdep.c (umax_frame_num_args): Update.
10059 * s390-tdep.c (s390_pop_frame_regular): Update.
10060 * mn10300-tdep.c (mn10300_frame_chain): Update.
10061 (mn10300_pop_frame_regular): Update.
10062 (mn10300_init_extra_frame_info): Update.
10063 * mips-tdep.c (mips_init_frame_pc_first): Update.
10064 (mips_frame_chain): Update.
10065 (mips_pop_frame): Update.
10066 * mcore-tdep.c (mcore_frame_chain): Update.
10067 (mcore_pop_frame): Update.
10068 (mcore_init_extra_frame_info): Update.
10069 * arch-utils.c (init_frame_pc_default): Update.
10070 * m68k-tdep.c (isi_frame_num_args): Update.
10071 (delta68_frame_num_args): Update.
10072 (news_frame_num_args): Update.
10073 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10074 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10075 (alpha_frame_chain): Update.
10076 (alpha_pop_frame): Update.
10077 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10078 (hppa_init_extra_frame_info): Update.
10079 (hppa_frame_chain): Update.
10080 (hppa_frame_chain_valid): Update.
10081 * cris-tdep.c (cris_init_extra_frame_info): Update.
10082 * avr-tdep.c (avr_init_extra_frame_info): Update.
10083 * arm-tdep.c (arm_frame_chain_valid): Update.
10084 (arm_init_extra_frame_info): Update.
10085 (arm_pop_frame): Update.
10086 * frame.c (frame_pc_unwind): Update.
10087 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10088 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10089 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10090 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10091 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10092 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10093
7a25a7c1
AC
100942003-03-12 Andrew Cagney <cagney@redhat.com>
10095
10096 Eliminate the need for POP_FRAME.
10097 * frame.c (do_frame_unwind_register): New function.
10098 (frame_pop): When no POP_FRAME, pop the frame using register
10099 unwind and a scratch regcache.
10100 (frame_saved_regs_pop): Delete function.
10101 (trad_frame_unwinder): Update.
10102 * d10v-tdep.c (d10v_frame_pop): Delete function.
10103 (d10v_frame_unwind): Update.
10104 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10105 (sentinel_frame_unwinder): Update.
10106 * dummy-frame.c (dummy_frame_pop): Delete function.
10107 (dummy_frame_unwind): Update.
10108 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10109 (struct frame_unwind): Update.
10110
2f38ef89
KB
101112003-03-11 Kevin Buettner <kevinb@redhat.com>
10112
10113 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10114 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10115 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10116 Do range checks on register number obtained from debugging info.
10117 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10118 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10119 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10120 mapping function.
10121 (do_fp_register_row): Fix typo which caused double type to be
10122 used when attempting to unpack a float.
10123
552f4abf
JB
101242003-03-11 J. Brobecker <brobecker@gnat.com>
10125
10126 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10127
e0d2ae16
AC
101282003-03-11 Andrew Cagney <cagney@redhat.com>
10129
10130 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10131 frame. Problem found by Corinna Vinschen.
10132
ddbfdd06
PM
101332003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10134
10135 * doublest.c (floatformat_from_length): Accept also
10136 the real size of 'long double' type.
10137
088b2ddc 101382003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10139
088b2ddc 10140 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10141 * breakpoint.c (bpstat_copy): Copy the command lines as well
10142 as the old value, to match what is freed in bpstat_clear.
10143
f56f77c1
DC
101442003-03-10 David Carlton <carlton@math.stanford.edu>
10145
10146 * minsyms.c (add_minsym_to_hash_table): Replace
10147 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10148 (compare_minimal_symbols, compact_minimal_symbols)
10149 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10150 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10151 of DEPRECATED_SYMBOL_MATCHES_NAME.
10152 (lookup_minimal_symbol_solib_trampoline): Ditto.
10153
5602984a
AC
101542003-03-10 Andrew Cagney <cagney@redhat.com>
10155
10156 * regcache.h (regcache_cooked_read_ftype): Define.
10157 (regcache_save, regcache_restore): Add a cooked_read parameter.
10158 * regcache.c (regcache_save, regcache_restore): Update.
10159 (do_cooked_read): New function.
10160 (regcache_cpy): Pass do_cooked_read to regcache_save and
10161 regcache_restore.
10162
8bedc050
AC
101632003-03-10 Andrew Cagney <cagney@redhat.com>
10164
10165 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10166 * gdbarch.h, gdbarch.c: Re-generate.
10167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10168 * x86-64-tdep.h: Update.
10169 * x86-64-tdep.c (x86_64_init_abi): Update.
10170 * v850-tdep.c (v850_gdbarch_init): Update.
10171 * sparc-tdep.c (sparc_gdbarch_init): Update.
10172 * sh-tdep.c (sh_gdbarch_init): Update.
10173 * s390-tdep.c (s390_gdbarch_init): Update.
10174 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10175 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10176 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10177 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10178 * mips-tdep.c (mips_gdbarch_init): Update.
10179 * mcore-tdep.c (mcore_gdbarch_init): Update.
10180 * m68k-tdep.c (m68k_gdbarch_init): Update.
10181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10182 * ia64-tdep.c (ia64_gdbarch_init): Update.
10183 * i386-tdep.c (i386_gdbarch_init): Update.
10184 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10185 * hppa-tdep.c (hppa_gdbarch_init): Update.
10186 * h8300-tdep.c (h8300_gdbarch_init): Update.
10187 * frv-tdep.c (frv_gdbarch_init): Update.
10188 * cris-tdep.c (cris_gdbarch_init): Update.
10189 * avr-tdep.c (avr_gdbarch_init): Update.
10190 * arm-tdep.c (arm_gdbarch_init): Update.
10191 * alpha-tdep.c (alpha_gdbarch_init): Update.
10192 * sh-tdep.c (sh_init_extra_frame_info): Update.
10193 (sh64_init_extra_frame_info): Update.
10194 * ns32knbsd-nat.c (frame_num_args): Update.
10195 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10196 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10197 (xstormy16_frame_chain_valid): Update.
10198 * vax-tdep.c (vax_saved_pc_after_call): Update.
10199 * v850-tdep.c (v850_frame_chain): Update.
10200 (v850_pop_frame): Update.
10201 (v850_init_extra_frame_info): Update.
10202 * sparc-tdep.c (setup_arbitrary_frame): Update.
10203 * ns32k-tdep.c (umax_frame_num_args): Update.
10204 * s390-tdep.c (s390_pop_frame_regular): Update.
10205 * mn10300-tdep.c (mn10300_frame_chain): Update.
10206 (mn10300_pop_frame_regular): Update.
10207 (mn10300_init_extra_frame_info): Update.
10208 * mips-tdep.c (mips_init_frame_pc_first): Update.
10209 (mips_frame_chain): Update.
10210 (mips_pop_frame): Update.
10211 * mcore-tdep.c (mcore_frame_chain): Update.
10212 (mcore_pop_frame): Update.
10213 (mcore_init_extra_frame_info): Update.
10214 * arch-utils.c (init_frame_pc_default): Update.
10215 * m68k-tdep.c (isi_frame_num_args): Update.
10216 (delta68_frame_num_args): Update.
10217 (news_frame_num_args): Update.
10218 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10219 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10220 (alpha_frame_chain): Update.
10221 (alpha_pop_frame): Update.
10222 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10223 (hppa_init_extra_frame_info): Update.
10224 (hppa_frame_chain): Update.
10225 (hppa_frame_chain_valid): Update.
10226 * cris-tdep.c (cris_init_extra_frame_info): Update.
10227 * avr-tdep.c (avr_init_extra_frame_info): Update.
10228 * arm-tdep.c (arm_frame_chain_valid): Update.
10229 (arm_init_extra_frame_info): Update.
10230 (arm_pop_frame): Update.
10231 * frame.c (frame_pc_unwind): Update.
10232 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10233 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10234 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10235 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10236 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10237 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10238
12cc2063
AC
102392003-03-10 Andrew Cagney <cagney@redhat.com>
10240
10241 * gdbarch.sh (gdbarch_unwind_pc): New method.
10242 * gdbarch.h, gdbarch.c: Regenerate.
10243 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10244 but use read_pc and FRAME_SAVED_PC as fall backs.
10245 (frame_saved_regs_pc_unwind): Delete function.
10246 (trad_frame_unwinder): Update.
10247 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10248 (struct frame_unwind): Update.
10249 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10250 (dummy_frame_unwind): Update.
10251 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10252 (sentinel_frame_unwinder): Update.
10253 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10254 (d10v_frame_unwind): Update.
10255 (d10v_unwind_pc): New function.
10256 (d10v_gdbarch_init): Set unwind_pc.
10257
ef840a37
AC
102582003-03-10 Andrew Cagney <cagney@redhat.com>
10259
a2ce2e56
AC
10260 * gdbarch.h: Re-generate.
10261
ef840a37
AC
10262 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10263 PC.
10264 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10265 the PC register.
10266
08f3424b
MK
102672003-03-08 Mark Kettenis <kettenis@gnu.org>
10268
10269 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10270
1248ede2
AC
102712003-03-08 Andrew Cagney <cagney@redhat.com>
10272
10273 * cli-out.c: Update copyright.
10274 (cli_out_data): Define typedef. Use instead of ui_out_data.
10275
f49bacc8
AC
102762003-03-08 Andrew Cagney <cagney@redhat.com>
10277
10278 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10279 the result.
10280
9b05f993
AC
102812003-03-07 Andrew Cagney <cagney@redhat.com>
10282
10283 * gdbarch.sh: Don't generate two macro definitions when an
10284 undefined macro taking no arguments.
10285 * gdbarch.h: Regenerate.
8ffd9b1b 10286
166f4c7b
ML
102872002-03-07 Michal Ludvig <mludvig@suse.cz>
10288
10289 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10290 (x86_64_unwind_dummy_id): New functions.
10291 (x86_64_init_abi): Register these two new functions.
10292
6d686a84
ML
102932003-03-07 Michal Ludvig <mludvig@suse.cz>
10294
10295 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10296 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10297 separate function.
10298 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10299
6314f104
AC
103002003-03-05 Andrew Cagney <cagney@redhat.com>
10301
10302 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10303 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10304 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10305 to use unwind_dummy_id when a dummy frame.
10306 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10307 predicate.
10308 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10309
ceea5145
AC
103102003-03-05 Andrew Cagney <cagney@redhat.com>
10311
10312 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10313 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10314 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10315 values.
10316
0d843116
AC
103172003-03-05 Andrew Cagney <cagney@redhat.com>
10318
10319 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10320 (struct d10v_unwind_cache): Delete field "frameless". Replace
10321 "next_addr" with "sp_offset". Add "r11_offset".
10322 (d10v_frame_unwind_cache): Update.
10323 (prologue_find_regs): Update. When "mv r11, sp", save the
10324 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10325 RN was saved in r11_offset.
10326
b2579786
AC
103272003-03-05 Andrew Cagney <cagney@redhat.com>
10328
10329 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10330 cached PC value in the next frame.
10331
218e5956
AC
103322003-03-05 Andrew Cagney <cagney@redhat.com>
10333
10334 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10335 "id_unwind_cache" with "id".
10336 (frame_id_unwind): Delete declaration.
10337 * frame.c (frame_id_unwind): Delete function.
10338 (get_prev_frame): Call the frame id unwind method directly. Store
10339 the returned next frame's ID value in NEXT_FRAME. Note that there
10340 is a problem with the wrong unwind ID being called with the wrong
10341 unwind cache.
10342
ed363b1b
DJ
103432003-03-05 Daniel Jacobowitz <drow@mvista.com>
10344
10345 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10346
fe1f4a5e
DJ
103472003-03-05 James Ingham <jingham@apple.com>
10348 Daniel Jacobowitz <drow@mvista.com>
10349
10350 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10351 (auto_cp_abi): New variable.
10352 (current_cp_abi, num_cp_abis): Make static.
10353 (CP_ABI_MAX): Define.
10354 (cp_abis): Turn into an array.
10355 (value_virtual_fn_field): Fix formatting.
10356 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10357 takes a pointer.
10358 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10359 (list_cp_abis, _initialize_cp_abi): New functions.
10360 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10361 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10362 switch_to_cp_abi. Update prototype for register_cp_abi.
10363 * Makefile.in (cp-abi.o): Update dependencies.
10364 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10365 instead of switch_to_cp_abi.
10366 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10367 register_cp_abi.
10368 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10369 register_cp_abi.
10370 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10371
e4adbba9
DJ
103722003-03-05 Daniel Jacobowitz <drow@mvista.com>
10373
10374 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10375 * dwarf2loc.c: Include "regcache.h".
10376 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10377 register_size.
10378 * Makefile.in (dwarf2loc.o): Update dependencies.
10379
91ccbfc1
TR
103802003-03-04 Theodore A. Roth <troth@openavr.org>
10381
10382 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10383 number of io registers reported by remote target is not a multiple of
10384 step.
10385
3d4e8fd2
DC
103862003-03-04 David Carlton <carlton@math.stanford.edu>
10387
10388 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10389 (lookup_symbol_aux_psymtabs): Update call to
10390 lookup_partial_symbol.
10391 (lookup_transparent_type, find_main_psymtab)
10392 (make_symbol_overload_list): Ditto.
10393
ed42d87b
KH
103942003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10395
10396 * MAINTAINERS (Write after approval): Update my email address.
10397
a0ed5532
AC
103982003-03-03 Andrew Cagney <cagney@redhat.com>
10399
10400 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10401 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10402 predicate. Replace MAX_REGISTER_RAW_SIZE.
10403 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10404 MAX_REGISTER_VIRTUAL_SIZE.
10405 * regcache.c (legacy_max_register_raw_size): New function.
10406 (legacy_max_register_virtual_size): New function.
10407 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10408 (MAX_REGISTER_RAW_SIZE): Define.
10409 (legacy_max_register_raw_size): Declare.
10410 (legacy_max_register_virtual_size): Declare.
10411 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10412 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10413 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10414 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10415 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10416 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10417 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10418 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10419 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10420 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10421 * vax-tdep.c (vax_gdbarch_init): Update.
10422 * v850-tdep.c (v850_gdbarch_init): Update.
10423 * sparc-tdep.c (sparc_gdbarch_init): Update.
10424 * sh-tdep.c (sh_gdbarch_init): Update.
10425 * s390-tdep.c (s390_gdbarch_init): Update.
10426 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10427 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10428 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10429 * mips-tdep.c (mips_gdbarch_init): Update.
10430 * mcore-tdep.c (mcore_gdbarch_init): Update.
10431 * m68k-tdep.c (m68k_gdbarch_init): Update.
10432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10433 * ia64-tdep.c (ia64_gdbarch_init): Update.
10434 * i386-tdep.c (i386_gdbarch_init): Update.
10435 * hppa-tdep.c (hppa_gdbarch_init): Update.
10436 * h8300-tdep.c (h8300_gdbarch_init): Update.
10437 * frv-tdep.c (frv_gdbarch_init): Update.
10438 * cris-tdep.c (cris_gdbarch_init): Update.
10439 * avr-tdep.c (avr_gdbarch_init): Update.
10440 * arm-tdep.c (arm_gdbarch_init): Update.
10441 * alpha-tdep.c (alpha_gdbarch_init): Update.
10442 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10443 max_register_raw_size or max_register_virtual_size.
10444
8e437497
DC
104452003-03-03 David Carlton <carlton@math.stanford.edu>
10446
10447 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10448 SYMBOL_MATCHES_NAME, add comment.
10449 (SYMBOL_MATCHES_NATURAL_NAME): New.
10450 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10451 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10452 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10453 * symtab.c (lookup_partial_symbol): Use
10454 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10455 unhelpful comment.
10456 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10457 SYMBOL_MATCHES_NAME.
10458 Fix for PR c++/33.
10459
25120b0d
DC
104602003-03-03 David Carlton <carlton@math.stanford.edu>
10461
10462 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10463 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10464 by regexp matching against SYMBOL_NATURAL_NAME.
10465
78a11fb4
DC
104662003-03-03 David Carlton <carlton@math.stanford.edu>
10467
10468 * linespec.c (find_method): Extract code into collect_methods.
10469 (collect_methods): New.
10470
645dd519
MK
104712003-03-02 Mark Kettenis <kettenis@gnu.org>
10472
b4700d91
MK
10473 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10474 get_frame_base.
10475
645dd519
MK
10476 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10477 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10478
0aa7e1aa
SC
104792003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10480
8ffd9b1b 10481 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10482 and not regnum when summing the size of all registers up to regnum.
10483
f30ee0bc
AC
104842003-03-01 Andrew Cagney <cagney@redhat.com>
10485
10486 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10487 FRAME_INIT_SAVED_REGS.
10488 * gdbarch.h, gdbarch.c: Regenerate.
10489 * stack.c (frame_info): Update.
10490 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10491 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10492 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10493 * ns32k-tdep.c (ns32k_pop_frame): Update.
10494 * mips-tdep.c (mips_pop_frame): Update.
10495 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10496 * ia64-tdep.c (ia64_frame_chain): Update.
10497 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10498 (ia64_frameless_function_invocation): Update.
10499 (ia64_init_extra_frame_info): Update.
10500 (ia64_pop_frame_regular): Update.
10501 * frame.h (struct frame_info): Update comment.
10502 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10503 * frame.c (frame_saved_regs_register_unwind): Update.
10504 (frame_saved_regs_register_unwind): Update.
10505 (deprecated_generic_get_saved_register): Update.
10506 * cris-tdep.c: Update comment.
10507 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10508 Rename macro.
10509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10510 * x86-64-tdep.c (x86_64_init_abi): Update.
10511 * vax-tdep.c (vax_gdbarch_init): Update.
10512 * v850-tdep.c (v850_gdbarch_init): Update.
10513 * sparc-tdep.c (sparc_gdbarch_init): Update.
10514 * sh-tdep.c (sh_gdbarch_init): Update.
10515 * s390-tdep.c (s390_gdbarch_init): Update.
10516 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10517 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10518 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10519 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10520 * mips-tdep.c (mips_gdbarch_init): Update.
10521 * mcore-tdep.c (mcore_gdbarch_init): Update.
10522 * m68k-tdep.c (m68k_gdbarch_init): Update.
10523 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10524 * ia64-tdep.c (ia64_gdbarch_init): Update.
10525 * i386-tdep.c (i386_gdbarch_init): Update.
10526 * frv-tdep.c (frv_gdbarch_init): Update.
10527 * avr-tdep.c (avr_gdbarch_init): Update.
10528 * arm-tdep.c (arm_gdbarch_init): Update.
10529 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10530
42fa7c0f
AC
105312003-03-01 Andrew Cagney <cagney@redhat.com>
10532
10533 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10534 option enum and switch. When no windows, set the interpreter to
10535 INTERP_CONSOLE.
8ffd9b1b 10536
49c7e338
AC
105372003-03-01 Andrew Cagney <cagney@redhat.com>
10538
10539 * main.c (captured_main): Replace magic option characters with an
10540 enum.
10541
e9582e71
AC
105422003-03-01 Andrew Cagney <cagney@redhat.com>
10543
10544 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10545 INIT_EXTRA_FRAME_INFO.
10546 * gdbarch.h, gdbarch.c: Regenerate.
10547 * arm-tdep.c: Update comments.
10548 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10549 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10550 * frame.h, avr-tdep.c: Ditto.
10551 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10552 (create_new_frame, legacy_get_prev_frame): Ditto.
10553 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10554 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10556 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10557 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10558 * v850-tdep.c (v850_gdbarch_init): Ditto.
10559 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10560 * sh-tdep.c (sh_gdbarch_init): Ditto.
10561 * s390-tdep.c (s390_gdbarch_init): Ditto.
10562 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10563 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10564 * mips-tdep.c (mips_gdbarch_init): Ditto.
10565 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10567 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10568 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10569 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10570 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10571 * frv-tdep.c (frv_gdbarch_init): Ditto.
10572 * cris-tdep.c (cris_gdbarch_init): Ditto.
10573 * avr-tdep.c (avr_gdbarch_init): Ditto.
10574 * arm-tdep.c (arm_gdbarch_init): Ditto.
10575 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10576 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10577
35cac7cf
AC
105782003-03-01 Andrew Cagney <cagney@redhat.com>
10579
10580 * gdbarch.sh (register_type): New function with predicate.
10581 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10582 * gdbarch.h, gdbarch.c: Re-generate.
10583 * arch-utils.c (generic_register_byte): Use generic_register_size.
10584 (generic_register_size): When available, use
10585 gdbarch_register_type.
10586 * regcache.c (init_regcache_descr): When available, initialize the
10587 register type array using gdbarch_register_type. If the
10588 architecture supplies gdbarch_register_type, do not use the legacy
10589 regcache layout.
10590 * d10v-tdep.c (d10v_register_type): Replace
10591 d10v_register_virtual_type.
10592 (d10v_gdbarch_init): Set register_type instead of
10593 register_virtual_type.
10594
7b83296f
AC
105952003-03-01 Andrew Cagney <cagney@redhat.com>
10596
10597 * Makefile.in (ax-gdb.o): Update dependencies.
10598 * ax-gdb.c: Include "regcache.h".
10599 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10600 * findvar.c (value_of_register): Ditto.
10601 * infcmd.c (default_print_registers_info): Ditto.
10602
eadc1c87
MK
106032003-03-01 Mark Kettenis <kettenis@gnu.org>
10604
10605 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10606 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10607
14143612
MK
106082003-03-01 Mark Kettenis <kettenis@gnu.org>
10609
10610 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10611 of STREQ.
10612
a55cc764
DJ
106132003-02-28 Daniel Jacobowitz <drow@mvista.com>
10614
10615 * Makefile.in (dwarf2loc.o): Update dependencies.
10616 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10617 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10618 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10619 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10620 (locexpr_tracepoint_var_ref): New function.
10621 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10622
08a617da
AC
106232003-02-28 Andrew Cagney <cagney@redhat.com>
10624
10625 * regcache.c (register_size): New function.
10626 * regcache.h (register_size): Declare
10627 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10628 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10629
4224873a
DC
106302003-02-28 David Carlton <carlton@math.stanford.edu>
10631
10632 * linespec.c (decode_compound): Extract code into find_method.
10633 (find_method): New.
10634
ccdc5d7f
JB
106352003-02-28 J. Brobecker <brobecker@gnat.com>
10636
10637 * Makefile.in: Add rules to build and link in observer.o.
10638
974e8ced
JB
106392003-02-27 J. Brobecker <brobecker@gnat.com>
10640
10641 * observer.c: Minor comments edits.
10642
7a28f973
JB
106432003-02-27 J. Brobecker <brobecker@gnat.com>
10644
10645 * observer.h, observer.c: New file.
10646
27cddce2
AC
106472003-02-27 Andrew Cagney <cagney@redhat.com>
10648
10649 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10650
b94a41a1
SC
106512003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10652
10653 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10654 (M6812_OP_STS_EXT): Likewise.
10655 (m6811_prologue): Use the above to recognize prologue.
10656 (m6812_prologue): Likewise.
10657
c8be8951
DC
106582003-02-27 David Carlton <carlton@math.stanford.edu>
10659
10660 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10661 SYMBOL_PRINT_NAME.
10662 (compare_psymbols): Ditto.
10663 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10664
d05bb1fc
MS
106652003-02-27 Michael Snyder <msnyder@redhat.com>
10666
4e845cd3
MS
10667 * f-lang.c (build_fortran_types): New function.
10668 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10669 * doublest.c (extract_floating): Fix warning text.
10670
f3824013
AC
106712003-02-27 Andrew Cagney <cagney@redhat.com>
10672
10673 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10674 predicate. Replaces PUSH_DUMMY_FRAME.
10675 * gdbarch.h, gdbarch.c: Regnerate.
10676 * valops.c (hand_function_call): Update. Call
10677 generic_push_dummy_frame directly.
10678 * vax-tdep.c (vax_gdbarch_init): Update.
10679 * sparc-tdep.c (sparc_gdbarch_init): Update.
10680 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10681 * m68k-tdep.c (m68k_gdbarch_init): Update.
10682 * hppa-tdep.c (hppa_gdbarch_init): Update.
10683 * alpha-tdep.c (alpha_gdbarch_init): Update.
10684 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10685 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10686 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10687 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10688 push_dummy_frame to generic_push_dummy_frame.
10689 * v850-tdep.c (v850_gdbarch_init): Ditto.
10690 * sh-tdep.c (sh_gdbarch_init): Ditto.
10691 * s390-tdep.c (s390_gdbarch_init): Ditto.
10692 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10693 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10694 * mips-tdep.c (mips_gdbarch_init): Ditto.
10695 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10697 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10698 * i386-tdep.c (i386_gdbarch_init): Ditto.
10699 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10700 * frv-tdep.c (frv_gdbarch_init): Ditto.
10701 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10702 * cris-tdep.c (cris_gdbarch_init): Ditto.
10703 * avr-tdep.c (avr_gdbarch_init): Ditto.
10704 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10705
ad188201
KB
107062003-02-26 Kevin Buettner <kevinb@redhat.com>
10707
10708 * mips-tdep.c (show_mips_abi): New function.
10709 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10710 command ``show mips abi''.
10711
6b37567a 107122003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10713
6b37567a 10714 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10715 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10716 more sline entries have been seen for the function.
10717
d3e0a5bf
MC
107182003-02-26 Michael Chastain <mec@shout.net>
10719
10720 * configure: Regenerate with autoconf 000227.
10721
18972eea
MC
107222003-02-26 Michael Chastain <mec@shout.net>
10723
10724 Close PR build/660.
10725 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10726 for old libc5/glibc.
10727 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10728
0bbde931
KW
107292003-02-26 Kris Warkentin <kewarken@qnx.com>
10730
10731 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10732 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10733
27ca5dad
MC
107342003-02-26 Michael Chastain <mec@shout.net>
10735
10736 * configure.in: New variable HAVE_UINTPTR_T.
10737 * configure, config.in: Regenerated.
10738
6f88d630
DJ
107392003-02-26 Daniel Jacobowitz <drow@mvista.com>
10740
10741 Fix PR build/1097.
10742 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10743
b14185ce
AC
107442003-02-25 Andrew Cagney <cagney@redhat.com>
10745
10746 * frame.c (get_prev_frame): Add comment on check for
10747 inside_entry_func. Only check for inside_entry_file when not a
10748 dummy and not a sentinel. Check that the new frame is not inner
10749 to the old frame.
10750
ac2bd0a9
AC
107512003-02-25 Andrew Cagney <cagney@redhat.com>
10752
10753 * frame.c (frame_debug): New variable.
10754 (_initialize_frame): Add "set/show debug frame" command.
10755 (get_prev_frame): When frame_debug, print reason why unwind
10756 failed.
10757
b18a0fd2
MC
107582003-02-25 Michael Chastain <mec@shout.net>
10759
10760 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10761 to avoid uintptr_t definition problems.
10762
22abf04a
DC
107632003-02-25 David Carlton <carlton@math.stanford.edu>
10764
10765 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10766 (SYMBOL_LINKAGE_NAME): Ditto.
10767 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10768 SYMBOL_LINKAGE_NAME.
10769 (struct general_symbol_info): Expand comment.
10770 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10771 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10772 (SYMBOL_MATCHES_REGEXP): Ditto.
10773 * symtab.c (symbol_natural_name): New function.
10774 * objfiles.h: Replace all uses of SYMBOL_NAME by
10775 DEPRECATED_SYMBOL_NAME.
10776 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10777 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10778 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10779 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10780 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10781 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10782 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10783 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10784 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10785 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10786 * ada-exp.y: Ditto.
10787 * ada-exp.y: Update copyright.
10788 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10789 * cp-valprint.c: Ditto.
10790
1a5848f6
JJ
107912003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10792
10793 * infptrace.c (detach): Do not flag error if ptrace detach fails
10794 and errno is set to ESRCH.
10795
7343d46a
AC
107962003-02-24 Andrew Cagney <cagney@redhat.com>
10797
10798 * infptrace.c (udot_info): Change type of udot_off to long. Use
10799 paddr when printing udot_off's value.
10800
49fa1dc2
DC
108012003-02-24 David Carlton <carlton@math.stanford.edu>
10802
10803 * symtab.c (make_symbol_overload_list): Only read in partial
10804 symtabs containing a matching partial symbol.
10805
0fe19209
DC
108062003-02-24 David Carlton <carlton@math.stanford.edu>
10807
10808 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10809 do the comparison, not strcmp.
10810 * symfile.c (compare_psymbols): Ditto.
10811 * defs.h: Declare strcmp_iw_ordered.
10812 * utils.c (strcmp_iw_ordered): New function.
10813
8e3ee7b5
JB
108142003-02-24 Jim Blandy <jimb@redhat.com>
10815
10816 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10817 support, shared libs): Remove my name from here, to better reflect
10818 reality.
10819
7df1a324
KW
108202003-02-24 Kris Warkentin <kewarken@qnx.com>
10821
10822 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10823 (target_ops): Add to_have_continuable_watchpoint.
10824 * target.c (update_current_target): Add INHERIT line for
10825 to_have_continuable_watchpoint.
10826 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10827 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10828 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10829 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10830
d1c76907
EZ
108312003-02-24 Elena Zannoni <ezannoni@redhat.com>
10832
10833 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10834 maintainership.
10835
2610b0bf
KW
108362003-02-24 Kris Warkentin <kewarken@qnx.com>
10837
f46169db
KW
10838 * solib.c (solib_open): Call target defined search function after
10839 failing with solib-search-path.
10840 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10841 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10842
9a3c34fe
KW
108432003-02-24 Kris Warkentin <kewarken@qnx.com>
10844
f46169db 10845 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10846
2417dd25
SC
108472003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10848
10849 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10850
b631436b
SC
108512003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10852
10853 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10854 (m68hc11_add_reggroups): New function.
10855 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10856 (m68hc11_gdbarch_init): Install the reggroups.
10857 (_initialize_m68hc11_tdep): Initialize them.
10858
0aa8c1e4
JW
108592003-02-21 James E Wilson <wilson@tuliptree.org>
10860
10861 * MAINTAINERS: Update my email address.
10862
50ceaba5
DC
108632003-02-21 David Carlton <carlton@math.stanford.edu>
10864
10865 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10866
4c2df51b
DJ
108672003-02-21 Daniel Jacobowitz <drow@mvista.com>
10868
10869 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10870 * symtab.h: Add opaque declarations of struct axs_value and
10871 struct agent_expr.
10872 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10873 (struct location_funcs): New type.
10874 (struct symbol): Add "loc" to aux_value.
10875 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10876 * dwarf2read.c: Include "dwarf2expr.h".
10877 (dwarf2_symbol_mark_computed): New function.
10878 (read_func_scope): Use it.
10879 (var_decode_location): New function.
10880 (new_symbol): Use it.
10881 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10882
10883 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10884 (dwarf2expr_h, dwarf2loc_h): New variables.
10885 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10886 (dwarf2expr.o, dwarf2loc.o): New rules.
10887 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10888 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10889 LOC_COMPUTED_ARG.
10890 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10891 * m2-exp.y (yylex): Likewise.
10892 * printcmd.c (address_info, print_frame_args): Likewise.
10893 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10894 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10895 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10896 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10897 * symtab.c (lookup_block_symbol): Likewise.
10898
5784d15e
AF
108992003-02-20 Adam Fedor <fedor@gnu.org>
10900
10901 * symtab.h: Remove objc_specific struct
10902 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10903 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10904 Have language_objc use cplus_specific struct.
10905
d4cad8db
TT
109062003-02-20 Tom Tromey <tromey@redhat.com>
10907
10908 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10909 TYPE_NAME, when printing a String value. PR java/1075.
10910
2f9a90b4
AF
109112003-02-20 Adam Fedor <fedor@gnu.org>
10912
d38074a8 10913 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10914 * objc-lang.c (find_methods): Make static.
2f9a90b4 10915
6f17862b
CF
109162003-02-20 Christopher Faylor <cgf@redhat.com>
10917
10918 * win32-nat.c (get_image_name): Check return value from
10919 ReadProcessMemory.
10920 (child_xfer_memory): Ditto.
10921
715d1656
AO
109222003-02-20 Alexandre Oliva <aoliva@redhat.com>
10923
10924 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10925 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10926 '${exec_prefix}' (in addition to the expansion thereof) as
10927 relocatable.
10928 * configure: Rebuilt.
10929
b1262a02
DC
109302003-02-20 David Carlton <carlton@math.stanford.edu>
10931
10932 * symtab.c (search_symbols): Revert the search_symbols part of my
10933 2002-12-23 patch. Add comment.
10934
7134143f
DJ
109352002-02-20 Daniel Jacobowitz <drow@mvista.com>
10936
10937 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10938 * dbxread.c (elfstab_build_psymtabs): Don't call
10939 install_minimal_symbols.
10940 (stabsect_build_psymtabs): Likewise.
10941 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10942 earlier.
10943 * somread.c (som_symfile_read): Call install_minimal_symbols
10944 and do_cleanups earlier.
10945 * nlmread.c (nlm_symfile_read): Likewise.
10946 * mdebugread.c (elfmdebug_build_psymtabs): Call
10947 install_minimal_symbols and make appropriate cleanups.
10948
cf466558
KB
109492003-02-20 Kevin Buettner <kevinb@redhat.com>
10950
10951 * solib.c (reload_shared_libraries): New function.
10952 (_initialize_solib): Add callbacks for ``set solib-search-path''
10953 and ``set solib-absolute-prefix''.
10954
de5ad195
DC
109552003-02-20 David Carlton <carlton@math.stanford.edu>
10956
10957 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10958 expand comment.
10959 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10960 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10961 * ada-typeprint.c (ada_typedef_print): Ditto.
10962 * ax-gdb.c (gen_var_ref): Ditto.
10963 * breakpoint.c (print_one_breakpoint): Ditto.
10964 * buildsym.c (finish_block): Ditto.
10965 * c-valprint.c (c_val_print): Ditto.
10966 * expprint.c (print_subexp): Ditto.
10967 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10968 * infcmd.c (jump_command): Ditto.
10969 * linespec.c (decode_line_2, decode_compound): Ditto.
10970 * maint.c (maintenance_translate_address): Ditto.
10971 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10972 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10973 Ditto.
8ffd9b1b
AJ
10974 * p-valprint.c (pascal_val_print): Ditto.
10975 * stabsread.c (define_symbol): Ditto.
de5ad195 10976 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10977 (print_frame_arg_vars, return_command): Ditto.
10978 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10979 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10980 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10981 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10982 (rbreak_command): Ditto.
10983 * tracepoint.c (tracepoints_info): Ditto.
10984 * typeprint.c (typedef_print): Ditto.
10985 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10986 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10987 * ada-typeprint.c: Update Copyright.
10988 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10989 * tracepoint.c, cli/cli-cmds.c: Ditto.
10990
f796e4be
KB
109912003-02-20 Kevin Buettner <kevinb@redhat.com>
10992
10993 * frame.c (generic_unwind_get_saved_register): Make non-static.
10994 * frame.h (generic_unwind_get_saved_register): Declare.
10995 * mips-tdep.c (read_next_frame_reg): Fetch register from
10996 current regcache when frame is NULL.
10997 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10998 that must be NULL.
10999 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11000 instead of frame_register_unwind().
11001
836cc9f4
AC
110022003-02-20 Andrew Cagney <ac131313@redhat.com>
11003
11004 * remote-sim.c (gdbsim_insert_breakpoint)
11005 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11006 code.
11007
501eef12
AC
110082003-02-20 Andrew Cagney <ac131313@redhat.com>
11009
11010 * remote.c (_initialize_remote): Add commands "set/show remote
11011 hardware-watchpoint-limit" and "set/show remote
11012 hardware-breakpoint-limit".
11013 (remote_hw_watchpoint_limit): Initialize to -1.
11014 (remote_hw_breakpoint_limit): Ditto.
11015 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11016
1b6bc7e0
CF
110172003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11018
11019 * coff-pe-read.c: New file - support reading of minimal symbols from a
11020 portable executable using the export table.
11021 * coff-pe-read.h: New file.
11022 * coffread.c: Include coff-pe-read.h.
11023 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11024 debugging symbols found.
11025 * Makefile.in (SFILES): Add coff-pe-read.o.
11026 (coff_pe_read_h): Define.
11027 (COMMON_OBS): Add coff-pe-read.o.
11028 (coffread.o): Add coff_pe_read_h dependency.
11029 (coff-pe-read.o): New target.
11030
fe898f56
DC
110312003-02-19 David Carlton <carlton@math.stanford.edu>
11032
11033 * Makefile.in (SFILES): Add block.c.
11034 (block_h): New.
11035 (COMMON_OBS): Add block.o.
11036 (block.o): New.
11037 (x86-64-tdep.o): Add $(block_h).
11038 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11039 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11040 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11041 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11042 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11043 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11044 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11045 * value.h: Add opaque declaration for struct block.
11046 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11047 * ada-lang.h: Ditto.
11048 * x86-64-tdep.c: #include "block.h"
11049 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11050 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11051 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11052 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11053 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11054 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11055 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11056 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11057 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11058 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11059 * symtab.c (block_function): Ditto.
11060 (contained_in): Ditto.
11061 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11062 block.h. Add opaque declaration for struct block.
11063 * symtab.h: Move block_function and contained_in declarations to
11064 block.h. Add opaque declarations for struct block, struct
11065 blockvector.
11066 (struct block): Move to block.h.
11067 (struct blockvector): Ditto.
11068 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11069 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11070 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11071 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11072 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11073 Ditto.
11074 * block.c: New file.
11075 * block.h: New file.
11076
173345b5
TR
110772003-02-19 Theodore A. Roth <troth@openavr.org>
11078
11079 * avr-tdep.c (avr_extract_return_value): Remove function.
11080 (avr_store_return_value): Remove function.
11081 (avr_extract_struct_value_address): Remove function.
11082 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11083
338ef23d
AC
110842003-02-19 Andrew Cagney <ac131313@redhat.com>
11085
11086 * rs6000-tdep.c: Include "gdb_assert.h".
11087 (registers_e500): Add "acc" and "spefscr".
11088 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11089 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11090 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11091 really is "r0".
11092 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11093
5412f5f3
KS
110942003-02-18 Keith Seitz <keiths@redhat.com>
11095
11096 * Makefile.in: Add gdbtk-interps.c.
11097
881324eb
KB
110982003-02-18 Kevin Buettner <kevinb@redhat.com>
11099
11100 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11101 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11102
6a2f5abf
AC
111032003-02-18 Andrew Cagney <cagney@redhat.com>
11104
11105 * symtab.h (struct objfile): Add opaque declaration.
11106
54c7009d
EZ
111072003-02-18 Elena Zannoni <ezannoni@redhat.com>
11108
11109 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11110 * dbxread.c (process_one_symbol): Use last_function_start rather
11111 than function_start_offset to find the real beginning of the
11112 current function. The latter is just the text section offset on
11113 some systems, the former is always the real function start.
54c7009d 11114
7ee6d7eb
AC
111152003-02-17 Andrew Cagney <cagney@redhat.com>
11116
11117 * configure.in: Revert ${target} != ${host}.
11118
2846da9b
AC
111192003-02-17 Andrew Cagney <ac131313@redhat.com>
11120
11121 * configure.in (Makefile): Use the test ${target} != ${host},
11122 instead of the absence of the "nm.h" file, to determine of the
11123 configuration non-native.
11124 * configure: Regenerate.
8ffd9b1b 11125
3b27aeea
EZ
111262003-02-14 Elena Zannoni <ezannoni@redhat.com>
11127
fbe586ae 11128 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11129
11130 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11131 conditionalize tui_active test.
11132 (lookup_cmd_1): Ditto.
11133
b0b1c2c0
MK
111342003-02-14 Mark Kettenis <kettenis@gnu.org>
11135
11136 * configure.in: Add check for _etext.
11137 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11138 available.
11139 * config.in, configure: regenerated.
11140
8f05cde5
DJ
111412003-02-14 Daniel Jacobowitz <drow@mvista.com>
11142
11143 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11144
021e7609
AC
111452003-02-14 Andrew Cagney <ac131313@redhat.com>
11146
11147 * main.c (tui_version): Delete variable.
11148 (captured_main): When --tui, set interpreter_p to "tui" instead of
11149 enabling tui_version.
11150 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11151 tui_version.
11152 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11153 * cli/cli-cmds.c (disassemble_command): Ditto.
11154 * defs.h (tui_version): Delete declaration.
11155 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11156 (tui-interp.o): Add rules.
11157 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11158
e325dcec
CF
111592003-02-14 Christopher Faylor <cgf@redhat.com>
11160
36ffb041 11161 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11162 just-loaded dll.
11163
c4f90d87
JM
111642003-02-12 Jason Molenda (jmolenda@apple.com)
11165
fbe586ae
RH
11166 * symmisc.c (print_objfile_statistics): Include information about
11167 the number of psymtabs and symtabs in each object file.
c4f90d87 11168
e46e5ccd
KS
111692003-02-13 Keith R Seitz <keiths@redhat.com>
11170
11171 * main.h (struct captured_main_args): Add interpreter_p.
11172 * main.c (captured_main): Initialize interpreter_p from context.
11173 * gdb.c (main): Set interpreter_p argument.
11174 * Makefile.in (gdb.o): Add dependency for interps.h.
11175
fe97fe9c
AC
111762003-02-12 Andrew Cagney <ac131313@redhat.com>
11177
11178 * event-top.c (cli_command_loop): Delete declaration.
11179 (_initialize_event_loop): Delete function setting event_loop_hook.
11180 * event-top.h (cli_command_loop): Declare. Update copyright.
11181 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11182 * interps.c (current_interp_command_loop): When event_loop_p, call
11183 cli_command_loop.
11184
1cdac4ef
AC
111852003-02-12 Andrew Cagney <ac131313@redhat.com>
11186
11187 * interps.h (interp_command_loop_ftype): Change return type to
11188 void.
11189
48037ead
ML
111902003-02-12 Michal Ludvig <mludvig@suse.cz>
11191
11192 * x86-64-tdep.c (x86_64_extract_return_value)
11193 (x86_64_store_return_value): Use regcache instead of regbuf.
11194 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11195 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11196
033afc63
AC
111972003-02-11 Andrew Cagney <ac131313@redhat.com>
11198
11199 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11200 * aclocal.m4: Regenerate.
11201 * configure: Regenerate.
11202
11203 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11204 TCL_LD_SEARCH_FLAGS.
11205
40d02bca
ML
112062003-02-10 Michal Ludvig <mludvig@suse.cz>
11207
11208 * dwarf2cfi.c: Reindented.
11209
11308a41
AC
112102003-02-09 Andrew Cagney <ac131313@redhat.com>
11211
11212 * interps.c (clear_interpreter_hooks): Convert function definition
11213 to ISO C.
11214
e1c1c0f6
DC
112152003-02-07 David Carlton <carlton@math.stanford.edu>
11216
11217 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11218
ab5d3da6
KB
112192003-02-07 Kevin Buettner <kevinb@redhat.com>
11220
11221 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11222 (struct type): ...to here.
11223 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11224 field.
11225 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11226 (replace_type): Set length on all type variants for a given type.
11227
b8a92b82
AC
112282003-02-07 Andrew Cagney <ac131313@redhat.com>
11229
11230 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11231 <sys/stat.h>.
11232 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11233
5cb316ef
AC
112342003-02-06 Andrew Cagney <ac131313@redhat.com>
11235
2555fe1a
AC
11236 * Makefile.in (symm-nat.o): Update dependencies.
11237 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11238 (lynx-nat.o, ia64-linux-nat.): Ditto.
11239 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11240 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11241 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11242
44270758
AC
11243 * Makefile.in (inflow_h): Define.
11244 (procfs.o, inflow.o, procfs.o): Update dependencies.
11245 * inftarg.c (child_stop): Delete extern declaration of
11246 inferior_process_group. Include "inflow.h".
11247 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11248 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11249 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11250 (our_process_group, inferior_process_group): Extern declarations.
11251
df8f7274
AC
11252 * procfs.c: Include "gdb_assert.h".
11253
5cb316ef
AC
11254 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11255 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11256 * jv-typeprint.c (java_type_print_base): Ditto.
11257 * typeprint.c (typedef_print): Eliminate STREQ.
11258 * cli/cli-script.c (define_command, define_command): Ditto.
11259 * main.c (captured_main): Ditto.
11260 * values.c (lookup_internalvar): Ditto.
11261 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11262 within `if' conditional.
11263 * linespec.c (decode_line_2): Ditto.
11264 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11265 (bfd_openw_with_cleanup): Ditto.
11266
2a28ccea
MK
112672003-02-07 Mark Kettenis <kettenis@gnu.org>
11268
11269 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11270 legacy_extract_return_value and store_return_value to
11271 legacy_return_value.
11272
786b8124
CF
112732003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11274
11275 * win32-nat.c (get_relocated_section_addrs): New function. Find
11276 section load addresses for symbol handling in relocated DLLs.
11277 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11278
b871e4ec
FF
112792003-02-05 Fred Fish <fnf@intrinsity.com>
11280
11281 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11282 '=' and '!='.
11283 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11284 with '&' and '=='.
11285 (angel_RDI_info): Ditto.
11286 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11287 with '&' and '!='.
11288 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11289
4389a95a 112902003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11291 Keith Seitz <keiths@redhat.com>
11292 Elena Zannoni <ezannoni@redhat.com>
11293 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11294
11295 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11296 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11297 (SUBDIR_MI_OBS): Add "mi-interp.o".
11298 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11299 (SFILES): Add "interps.c".
11300 (COMMON_OBS): Add "interps.o".
11301 (interps_h, mi_main_h): Define.
11302 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11303 (mi-main.o, main.o, event-top.o): Update dependencies.
11304 * cli/cli-interp.c: New file.
11305 * interps.h, interps.c: New files.
11306 * top.c: (gdb_init): Don't install the default interpreter, handed
11307 by captured_main.
11308 * main.c: Include "interps.h".
11309 (interpreter_p): Note that it should malloc'ed.
11310 (captured_command_loop): Call current_interp_command_loop.
11311 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11312 xfree and xstrdup when updating interpreter_p. Install the
11313 default interpreter. Add hack to stop mi1's copyright notice
11314 being encoded.
11315 * event-top.h (gdb_setup_readline): Declare.
11316 (gdb_disable_readline): Declare.
11317 * event-top.c: Include "interps.h".
11318 (display_gdb_prompt): Call current_interp_display_prompt_p.
11319 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11320 gdb_stdlog, and gdb_stdtarg.
11321 (_initialize_event_loop): Don't call gdb_setup_readline.
11322 * cli-out.c (cli_out_set_stream): New function.
11323 * cli-out.h (cli_out_set_stream): Declare.
11324
ff3b5810
MK
113252003-02-06 Mark Kettenis <kettenis@gnu.org>
11326
11327 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11328 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11329 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11330 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11331 config/i386/i386v42mp.mt: Removed.
11332
5b729aa5
MK
113332003-02-05 Mark Kettenis <kettenis@gnu.org>
11334
11335 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11336 GDB_OSABI_SOLARIS.
11337
8cc15142
MC
113382003-02-05 Michael Chastain <mec@shout.net>
11339
11340 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11341 2.12.1 and earlier versions.
11342
5aa5d4b9
AC
113432003-02-05 Andrew Cagney <ac131313@redhat.com>
11344
11345 Remove orphaned hosts, targets and files.
11346 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11347 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11348 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11349 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11350 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11351 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11352 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11353 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11354 * config/sparc/tm-sp64sim.h: Delete.
11355 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11356 hosts.
11357 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11358 mips*-dec-mach3* targets.
11359
b68767c1
MC
113602003-02-04 Michael Chastain <mec@shout.net>
11361
11362 * NEWS: Fix typo: sepcifying -> specifying.
11363
5ae7ca1d
MC
113642003-02-04 Michael Chastain <mec@shout.net>
11365
11366 * dwarfread.c: Add documentation on the state of dwarf-1,
11367 looking towards obsoletion.
11368
d08a4280
MC
113692003-02-03 Michael Chastain <mec@shout.net>
11370
11371 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11372 gdb/testsuite/gdb.c++/pr-1023.exp.
11373
e9be73e4
AC
113742003-02-04 Andrew Cagney <ac131313@redhat.com>
11375
11376 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11377 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11378
11379 * utils.c (init_page_info): Delete reference to MPW in comments.
11380 * main.c (captured_main): Delete #ifdef MPW.
11381
05d57f6f
AC
113822003-02-04 Andrew Cagney <ac131313@redhat.com>
11383
8ffd9b1b 11384 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11385 * monitor.c (monitor_expect): Obsolete reference to m32r.
11386 * configure.tgt: Mark m32r-*-elf* as obsolete.
11387 * MAINTAINERS: Mark m32k as obsolete.
11388 * m32r-rom.c: Obsolete file.
11389 * config/m32r/m32r.mt: Obsolete file.
11390 * config/m32r/tm-m32r.h: Obsolete file.
11391 * m32r-stub.c: Obsolete file.
11392 * m32r-tdep.c: Obsolete file.
11393
8b0e5691
AC
113942003-02-04 Andrew Cagney <ac131313@redhat.com>
11395
11396 * NEWS: Mention that the z8k-zilog-none is obsolete.
11397 * MAINTAINERS: Mark z8k as obsolete.
11398 * configure.tgt: Obsolete the z8k-*-coff* target.
11399 * config/z8k/z8k.mt: Obsolete file.
11400 * config/z8k/tm-z8k.h: Obsolete file.
11401 * z8k-tdep.c: Obsolete file.
11402
67f16606
AC
114032003-02-04 Andrew Cagney <ac131313@redhat.com>
11404
11405 * NEWS: Mention that the mn10200-elf is obsolete.
11406 * configure.tgt: Obsolete mn10200-*-* target.
11407 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11408 mention that the mn10200 is obsolete.
11409 * breakpoint.h: Ditto.
11410 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11411 * config/mn10200/mn10200.mt: Obsolete file.
11412 * config/mn10200/tm-mn10200.h: Obsolete file.
11413 * mn10200-tdep.c: Obsolete file.
11414
fd2299bd
AC
114152003-02-04 Andrew Cagney <ac131313@redhat.com>
11416
11417 * MAINTAINERS: Mark h8500 as obsolete.
11418 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11419 * findvar.c (value_from_register): Ditto.
11420 * h8500-tdep.c: Mark file as obsolete.
11421 * config/h8500/h8500.mt: Ditto.
11422 * config/h8500/tm-h8500.h: Ditto.
11423 * NEWS: Mention that h8500 is obsolete.
11424
eb9a305d
DC
114252003-02-04 David Carlton <carlton@math.stanford.edu>
11426
11427 * objfiles.c (allocate_objfile): Always set name. Add comment at
11428 start of function.
11429 * jv-lang.c (get_dynamics_objfile): Add comment.
11430
406fc7fb
DC
114312003-02-04 David Carlton <carlton@math.stanford.edu>
11432
11433 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11434 * printcmd.c (build_address_symbolic): Replace uses of
11435 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11436 SYMBOL_NAME, and asm_demangle.
11437 Update copyright.
11438
93d91629
DC
114392003-02-04 David Carlton <carlton@math.stanford.edu>
11440
11441 * linespec.c (decode_compound): Extract code into
11442 lookup_prefix_sym.
11443 (lookup_prefix_sym): New function.
11444
1c5cb38e
DC
114452003-02-04 David Carlton <carlton@math.stanford.edu>
11446
11447 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11448 FLOAT_COERCION_BADNESS.
11449 * gdbtypes.c (rank_one_type): Replace all uses of
11450 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11451
0cf824c9
JB
114522003-02-04 Jim Blandy <jimb@redhat.com>
11453
11454 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11455 section, let dwarf_macinfo_section point to it, not
11456 dwarf_loc_section.
11457
a2d356b0
DJ
114582003-02-04 Daniel Jacobowitz <drow@mvista.com>
11459
11460 Pointed out by Anton Blanchard <anton@samba.org>.
11461 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11462 (ppc_linux_at_sigtramp_return_path): Use it.
11463
2de7ced7
DJ
114642003-02-04 Daniel Jacobowitz <drow@mvista.com>
11465
11466 * defs.h (streq): Add prototype.
11467 * utils.c (streq): New function.
11468
11469 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11470 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11471 * mdebugread.c (new_symbol): Likewise.
11472 * stabsread.c (define_symbol): Likewise.
11473 * coffread.c (process_coff_symbol): Likewise.
11474 * dwarfread.c (new_symbol): Likewise.
11475
11476 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11477 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11478 here.
11479 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11480 SYMBOL_INIT_DEMANGLED_NAME.
11481 * objfiles.c: Include "hashtab.h".
11482 (allocate_objfile): Call htab_set_functions_ex for the
11483 demangled_names_hash.
11484 (free_objfile): Call htab_delete for the demangled_names_hash.
11485 * objfiles.h (struct htab): Add declaration.
11486 (struct objfile): Add demangled_names_hash.
11487 * symfile.c: Include "hashtab.h".
11488 (reread_symbols): Call htab_delete for the demangled_names_hash.
11489 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11490 SYMBOL_NAME in the bcache.
11491 * symtab.c: Include "hashtab.h". Update comments.
11492 (create_demangled_names_hash, symbol_set_names): New functions.
11493 (symbol_find_demangled_name): New function, broken out from
11494 symbol_init_demangled_names.
11495 (symbol_init_demangled_names): Use it.
11496 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11497 (SYMBOL_SET_NAMES): New macro.
11498 (symbol_set_names): Add prototype.
11499
15831452
JB
115002003-02-03 Jim Blandy <jimb@redhat.com>
11501
11502 Use a single, consistent representation for an empty minimal
11503 symbol table in an objfile.
11504 * objfiles.c (terminate_minimal_symbol_table): New function.
11505 (allocate_objfile): Call it.
11506 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11507 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11508 non-NULL.
15831452
JB
11509 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11510 objfile has minimal symbols, compare minimal_symbol_count to zero,
11511 instead of comparing msymbols with NULL.
11512 * objfiles.c (have_minimal_symbols): Same.
11513 * solib-sunos.c (solib_add_common_symbols): Call
11514 terminate_minimal_symbol_table.
11515 * symfile.c (reread_symbols): Same.
8ffd9b1b 11516
ffc65945
KB
115172003-02-03 Kevin Buettner <kevinb@redhat.com>
11518
11519 * s390-tdep.c (s390_address_class_type_flags)
11520 (s390_address_class_type_flags_to_name)
11521 (s390_address_class_name_to_type_flags): New functions.
11522 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11523 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11524
f211c6d4
MS
115252003-02-03 Michael Snyder <msnyder@redhat.com>
11526
11527 * arm-tdep.c: Fix spell-o in comment.
11528
659b0389
ML
115292003-02-03 Michal Ludvig <mludvig@suse.cz>
11530
11531 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11532 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11533 error messages to contain BFD filename.
659b0389 11534
3b31d625
EZ
115352003-02-02 Elena Zannoni <ezannoni@redhat.com>
11536
997b089a 11537 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11538 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11539 (do_mixed_source_and_assembly): Use
11540 make_cleanup_ui_out_tuple_begin_end and
11541 make_cleanup_ui_out_tuple_begin_end.
11542 (do_mixed_source_and_assembly): Ditto.
11543 * thread.c (do_captured_list_thread_ids): Ditto.
11544 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11545 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11546 ui_out_tuple_end): Delete prototypes.
11547 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11548 ui_out_list_end, ui_out_tuple_end): Delete.
11549
11550 From Kevin Buettner <kevinb@redhat.com>:
11551 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11552 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11553 (do_cleanup_table_end): New functions.
11554 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11555 Use cleanups to invoke_ui_out_tuple_end().
11556 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11557 * cli/cli-setshow.c (cmd_show_list): Use
11558 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11559
5b181d62
AC
115602003-02-02 Andrew Cagney <ac131313@redhat.com>
11561
11562 * frame.c (frame_unwind_register): New function.
11563 (frame_unwind_unsigned_register): Use.
11564 (frame_unwind_signed_register): Use.
11565 (frame_read_register): New function.
11566 * frame.h (frame_unwind_register): Declare.
11567 (frame_read_register): Declare.
11568
11569 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11570 and frame_unwind_register instead of read_memory, write_register
11571 and deprecated_write_register_bytes.
11572
5f601589
AC
115732003-02-02 Andrew Cagney <ac131313@redhat.com>
11574
11575 * frame.h: Note that namelen can be negative.
11576 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11577 NAME's length.
11578
11579 * NEWS: Mention that the d10v's `regs' command is deprecated.
11580 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11581 (d10v_print_registers_info): New function.
11582 (show_regs): Call d10v_print_registers_info.
11583 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11584
6a3fe0a4
MK
115852003-02-02 Mark Kettenis <kettenis@gnu.org>
11586
11587 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11588 lost in the previous patch.
11589
075559bc
AC
115902003-02-01 Andrew Cagney <ac131313@redhat.com>
11591
11592 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11593 * stack.c (print_frame_info_base): Output complete FRAME tuple
11594 for synthesized frames.
075559bc 11595
6789195b
AC
115962003-02-02 Andrew Cagney <ac131313@redhat.com>
11597
11598 * mips-nat.c (zerobuf): Delete.
11599 (fetch_inferior_registers): Alloc local zerobuf.
11600 (fetch_core_registers): Alloc local zerobuf.
11601 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11602 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11603 * thread-db.c (thread_db_store_registers): Ditto.
11604 * sh-tdep.c (sh_do_register): Ditto.
11605 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11606 * remote-sim.c (gdbsim_store_register): Ditto.
11607 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11608 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11609 * monitor.c (monitor_supply_register): Ditto.
11610 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11611 * mips-nat.c (fetch_inferior_registers): Ditto.
11612 * m68klinux-nat.c (fetch_register): Ditto.
11613 * lynx-nat.c (fetch_inferior_registers): Ditto.
11614 (fetch_inferior_registers): Ditto.
11615 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11616 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11617 (hpux_thread_store_registers): Ditto.
11618 * hppah-nat.c (fetch_register): Ditto.
11619 * hppab-nat.c (fetch_register): Ditto.
11620 * hppa-tdep.c (pa_register_look_aside): Ditto.
11621 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11622 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11623
e669114a
AC
116242003-02-01 Andrew Cagney <ac131313@redhat.com>
11625
11626 * gdbarch.sh: Explictly specify all method levels. When a
11627 variable with an empty level, provide a non-multi-arch default.
11628 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11629 * gdbarch.h: Re-generate.
11630 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11631 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11632
9a043c1d
AC
116332003-02-01 Andrew Cagney <ac131313@redhat.com>
11634
11635 * defs.h (host_pointer_to_address): Delete declaration.
11636 (address_to_host_pointer): Delete declaration.
11637 * utils.c (host_pointer_to_address): Delete function.
11638 (address_to_host_pointer): Delete function.
11639 * procfs.c (procfs_address_to_host_pointer): New function.
11640 * procfs.c (proc_set_watchpoint): Use.
11641 (procfs_can_use_hw_breakpoint): Update comments.
11642 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11643 (som_solib_add): Use.
11644 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11645 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11646
7ca9f392
AC
116472003-02-01 Andrew Cagney <ac131313@redhat.com>
11648
94bbfd30
AC
11649 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11650 strlen d_name.
11651
7ca9f392
AC
11652 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11653 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11654 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11655 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11656 (define_symbol): Update.
11657 * symfile.c (generic_load): Remove references to nindy.
11658 * symtab.c: Remove references to nindy.
11659
31a85ea2
AC
116602003-02-01 Andrew Cagney <ac131313@redhat.com>
11661
11662 * infcmd.c (print_float_info): Delete code conditional on
11663 FLOAT_INFO.
11664 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11665 * config/m68k/nm-apollo68b.h: Ditto.
11666 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11667 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11668 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11669
f6e85fc8
MK
116702003-02-01 Mark Kettenis <kettenis@gnu.org>
11671
6015b6a0
MK
11672 * config/i386/tm-i386os9k.h: Removed.
11673
f7a30bdf
MK
11674 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11675 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11676 they're identical to i[3456]86-*-sysv* now.
11677 * config/i386/i386v32.mh: Removed.
11678 * config/i386/xm-i386v32.h: Removed.
11679 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11680
28d52111
MK
11681 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11682
4d3f6bce
MK
11683 * config/i386/i386dgux.mh: Removed.
11684 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11685
f6e85fc8
MK
11686 * configure.in: Fix typo.
11687 * configure: Regenerated.
11688
53955967
DC
116892003-01-31 David Carlton <carlton@math.stanford.edu>
11690
11691 * dwarf2read.c (dwarf2_locate_sections): Set
11692 dwarf_ranges_section.
11693
b1364885
AC
116942003-01-31 Andrew Cagney <ac131313@redhat.com>
11695
8dbb1c65
AC
11696 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11697 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11698
8731e58e
AC
11699 * utils.c: Re-indent.
11700
b1364885
AC
11701 * config/djgpp/fnchange.lst: Delete nindy files.
11702 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11703 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11704 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11705 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11706 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11707 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11708 * Makefile.in (init.c): Remove nindy references.
11709 (saber_gdb): Delete rule.
11710 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11711 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11712 and a68v-nat.c.
11713 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11714 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11715 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11716 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11717 nindy-share/stop.h.
11718 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11719 * saber.suppress: Delete file.
11720
086df311
DJ
117212003-01-31 Daniel Jacobowitz <drow@mvista.com>
11722
11723 * dbxread.c (stabs_data): New static variable.
11724 (fill_symbuf): Support an in-memory buffer for stabs data.
11725 (stabs_seek): New function.
11726 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11727 (read_ofile_symtab): Use stabs_seek.
11728 (elfstab_build_psymtabs): Take an asection* instead of
11729 an offset and size. Relocate the stabs data if necessary.
11730 Save the section* for dbx_psymtab_to_symtab.
11731 * dwarf2read.c: Add section variables for each debug section.
11732 (dwarf2_locate_sections): Fill them in.
11733 (dwarf2_read_section): Take an asection* argument.
11734 Relocate the section contents if necessary.
11735 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11736 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11737 it to dwarf2_read_section.
11738 (dwarf2_build_frame_info): Update callers.
11739 * elfread.c (elf_symfile_read): Update call to
11740 elfstab_build_psymtabs.
11741 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11742 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11743 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11744 * symfile.c (symfile_dummy_outputs): New function.
11745 (symfile_relocate_debug_section): New function.
11746 * symfile.h (symfile_relocate_debug_section): Add prototype.
11747
87d1b352
RH
117482003-01-31 Richard Henderson <rth@redhat.com>
11749
11750 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11751 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11752 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11753 * alpha-tdep.c (alpha_register_name): Add "unique".
11754 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11755 (ALPHA_UNIQUE_REGNUM): New.
11756 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11757
c48861fb
AC
117582003-01-31 Andrew Cagney <ac131313@redhat.com>
11759
11760 * README: Remove reference to Ericsson 1800 monitor.
11761 * Makefile.in (remote-es.o): Delete rule.
11762 (ALLDEPFILES): Delete remote-es.c.
11763 * remote-es.c: Delete file.
11764 * config/m68k/es1800.mt: Delete file.
11765 * config/djgpp/fnchange.lst: Update.
11766 * configure.tgt: Delete m68*-ericsson-* target.
11767
d764a824
AF
117682003-01-31 Adam Fedor <fedor@gnu.org>
11769
11770 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11771 Remove duplicate/shadowing variable of same name.
11772
fe36c4f4
JB
117732003-01-30 Jim Blandy <jimb@redhat.com>
11774
11775 * symfile.c (find_separate_debug_file): Assert that the objfile's
11776 directory name we compute ends with a slash, and then assume that
11777 that's so everywhere we use it.
11778
cb741690
DJ
117792003-01-30 Daniel Jacobowitz <drow@mvista.com>
11780
11781 * valops.c (value_assign): Flush frame cache after stores to memory
11782 also.
11783
96ee5227
AC
117842003-01-30 Andrew Cagney <ac131313@redhat.com>
11785
11786 * Makefile.in (mon960-rom.o): Delete rule.
11787 * mon960-rom.c: Delete file.
11788
7f6104a9
AC
117892003-01-30 Andrew Cagney <ac131313@redhat.com>
11790
11791 * d10v-tdep.c: Include "frame-unwind.h".
11792 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11793 list.
11794 (next_addr, uses_frame): Delete.
11795 (struct d10v_unwind_cache): Define.
11796 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11797 Use info instead of next_addr and uses_frame globals.
11798 (d10v_frame_init_saved_regs): Delete function.
11799 (d10v_init_extra_frame_info): Delete function.
11800 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11801 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11802 init_frame_pc or frame_saved_pc.
11803 (d10v_pop_frame): Delete function.
11804 (do_d10v_pop_frame): Delete function.
11805 (d10v_frame_chain): Delete function.
11806 (d10v_frame_chain_valid): Delete function.
11807 (d10v_frame_pc_unwind): New function.
11808 (d10v_frame_id_unwind): New function.
11809 (saved_regs_unwinder): New function.
11810 (d10v_frame_register_unwind): New function.
11811 (d10v_frame_pop): New function.
11812 (d10v_frame_unwind): New variable.
11813 (d10v_frame_p): New function.
11814 (d10v_frame_saved_pc): Delete function.
11815 * Makefile.in (d10v-tdep.o): Update dependencies.
11816
cad2e848
JB
118172003-01-30 J. Brobecker <brobecker@gnat.com>
11818
11819 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11820 causing some regressions due to a change in the default value
11821 for this macro.
11822
af34e669
DJ
118232003-01-29 Richard Henderson <rth@redhat.com>
11824 Elena Zannoni <ezannoni@redhat.com>
11825 Daniel Jacobowitz <drow@mvista.com>
11826
11827 Fix PR gdb/961.
8ffd9b1b 11828 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11829 variables.
11830 (RANGES_SECTION): New.
11831 (dwarf_ranges_buffer): New variable.
11832 (struct comp_unit_head): Add member "die".
11833 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11834 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11835 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11836 (dwarf2_locate_sections): Likewise.
11837 (dwarf2_build_psymtabs): Read .debug_ranges.
11838 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11839 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11840 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11841 Look for DW_AT_ranges and return the bounding box.
11842
baa93fa6
CF
118432003-01-29 Brian Ford <ford@vss.fsi.com>
11844
11845 * win32-nat.c (cygwin_pid): Removed as unused.
11846 (child_attach): Try fall back to Cygwin pid.
11847
c63f977f
JB
118482003-01-29 Jim Blandy <jimb@redhat.com>
11849
11850 * objfiles.h (struct objfile): Doc fix.
11851
d62d1979
AC
118522003-01-29 Andrew Cagney <ac131313@redhat.com>
11853
11854 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11855 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11856 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11857 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11858 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11859 (FRAME_SAVED_PC): Change to a function with predicate.
11860 * gdbarch.h, gdbarch.c: Re-generate.
11861
1ae18a04
AC
118622003-01-28 Andrew Cagney <ac131313@redhat.com>
11863
52287340
AC
11864 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11865
1ae18a04
AC
11866 * complaints.c (complain): Delete function.
11867 * complaints.h (struct deprecated_complaint): Delete definition.
11868 (complain): Delete declaration.
11869
f2c16bd6
KB
118702003-01-28 Kevin Buettner <kevinb@redhat.com>
11871
11872 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11873 dummy frames.
11874
a94dd1fd
AC
118752003-01-27 Andrew Cagney <ac131313@redhat.com>
11876
11877 * sentinel-frame.h, sentinel-frame.c: New files.
11878 * Makefile.in (frame.o): Update dependencies.
11879 (SFILES): Add sentinel-frame.c.
11880 (sentinel_frame_h): Define.
11881 (COMMON_OBS): Add sentinel-frame.o.
11882 (sentinel-frame.o): Specify dependencies.
11883 * frame.c: Include "sentinel-frame.h".
11884 (frame_register_unwind): Rewrite assuming that there is always a a
11885 ->next frame.
11886 (frame_register, generic_unwind_get_saved_register): Ditto.
11887 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11888 (create_sentinel_frame, unwind_to_current_frame): New functions.
11889 (get_current_frame): Rewrite using create_sentinel_frame and
11890 unwind_to_current_frame. When possible, always create a frame.
11891 (create_new_frame): Set next to the sentinel frame.
11892 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11893 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11894 ID cache when necessary.
11895 (frame_saved_regs_id_unwind): Use frame_relative_level.
11896 (deprecated_generic_get_saved_register): Use frame_relative_level,
11897 get_frame_saved_regs, get_frame_pc, get_frame_base and
11898 get_next_frame.
11899 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11900 frame_register.
11901
5378adc4
DJ
119022003-01-27 Daniel Jacobowitz <drow@mvista.com>
11903
11904 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11905
51ee2ddc
DJ
119062003-01-27 Daniel Jacobowitz <drow@mvista.com>
11907
11908 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11909 (maintenance_set_profile_cmd): Use error () instead of warning ().
11910
d9feb4e7
DJ
119112003-01-27 Daniel Jacobowitz <drow@mvista.com>
11912
11913 * configure.in: Check that -pg works if using --enable-profiling.
11914 Check for monstartup and _mcleanup regardless of --enable-profiling.
11915 * maint.c: Check for monstartup and _mcleanup before using them.
11916 * config.in: Regenerated.
11917 * configure: Regenerated.
11918
2d188dd3
NC
119192003-01-24 Nick Clifton <nickc@redhat.com>
11920
11921 * Add sh2e support:
11922
11923 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11924
11925 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11926 (sh2e_show_regs): New.
11927 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11928 * config/sh/tm-sh.h: Added sh2e to comments.
11929
cb3c37b2
JB
119302003-01-23 Jim Blandy <jimb@redhat.com>
11931
11932 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11933 symbols found)" message here; we haven't checked for a separate
11934 debug info file yet, so we don't know yet.
11935 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11936 we've looked everywhere. Also, there's no need to print a special
11937 message when we're loading the separate debug info file: the one
11938 symbol_file_add prints is fine.
11939
5b5d99cf
JB
119402003-01-23 Alexander Larsson <alexl@redhat.com>
11941 Jim Blandy <jimb@redhat.com>
11942
11943 Add support for executables whose debug info has been separated
11944 out into a separate file, leaving only a link behind.
11945 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11946 and separate_debug_objfile_backlink.
11947 (put_objfile_before): New declaration.
11948 * symfile.c: #include "filenames.h".
11949 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11950 debug info in a separate file, read that, too. Save the addrs
11951 argument, so we can use it again to read the separated debug info;
11952 syms_from_objfile modifies the table we pass it.
11953 (reread_symbols): After re-reading an objfile, call
11954 reread_separate_symbols to refresh its separate debug info
11955 objfile, if it has one.
11956 (reread_separate_symbols, find_separate_debug_file,
11957 get_debug_link_info, separate_debug_file_exists): New functions.
11958 (debug_file_directory): New global var.
11959 (_initialize_symfile): Initialize debug_file_directory, and
11960 provide the new `set debug-file-directory' command to let the user
11961 change it.
11962 * objfiles.c (free_objfile): If this objfile has its debug info in
11963 a separate objfile, free that one too. If this is itself a
11964 separate debug info objfile, clear our parent's backlink.
11965 (put_objfile_before): New function.
11966 * utils.c (gnu_debuglink_crc32): New function.
11967 * defs.h (gnu_debuglink_crc32): New declaration.
11968 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11969 * configure.in: Handle --with-separate-debug-dir config option.
11970 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11971 * acconfig.h (DEBUGDIR): New macro.
11972 * configure, aclocal.m4, config.in: Regenerated.
11973
7e8580c1
JB
119742003-01-22 Jim Blandy <jimb@redhat.com>
11975
7904e09f
JB
11976 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11977 like the old symbol_file_add, but taking new arguments: you can
11978 now pass in either a `struct section_addr_info' list to say where
11979 each section is loaded, or a `struct section_offsets' table. Pass
11980 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11981 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11982 with the appropriate quiescent values for the new arguments.
11983
7e8580c1
JB
11984 * symfile.c: #include "gdb_assert.h".
11985 (syms_from_objfile): Add the ability to pass in a section offset
11986 table directly, as an alternative to the section_addr_info table.
11987 Document arguments better.
11988 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11989 * symfile.h (syms_from_objfile): Update declaration.
11990 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11991 syms_from_objfile.
11992 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11993
d28f9cdf
DJ
119942003-01-22 Daniel Jacobowitz <drow@mvista.com>
11995
11996 Original patch by Tom Tromey <tromey@cygnus.com> and
11997 Jason Molenda <jmolenda@apple.com>.
11998 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11999 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12000 * NEWS: Mention profiling.
12001 * configure.in (--enable-gdbtk): Fix typo.
12002 (--enable-profiling): New. Set PROFILE_CFLAGS.
12003 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12004 Fill in function.
12005 (profiling_state): New variable.
12006 (mcleanup_wrapper): New function.
12007 (_initialize_maint): Remove NOTYET, fix call to
12008 add_setshow_boolean_cmd for "maint set profile".
12009 * configure: Regenerated.
12010
df21e465
MH
120112003-01-21 Martin M. Hunt <hunt@redhat.com>
12012
12013 * Makefile.in (install-gdbtk): Install PNG images too.
12014
73c1f219
AC
120152003-01-21 Andrew Cagney <ac131313@redhat.com>
12016
12017 * exec.c (text_start): Delete global variable.
12018 (exec_file_attach): Make text_start local to the function.
12019 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12020 * valops.c (hand_function_call): Delete code that handles
12021 BEFORE_TEXT_END and AFTER_TEXT_END.
12022 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12023 of CALL_DUMMY_LOCATION.
12024 * gdbarch.c: Regenerate.
12025 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12026 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12027 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12028 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12029 (text_end): Delete extern declaration.
12030
eb4f72c5
AC
120312003-01-21 Andrew Cagney <ac131313@redhat.com>
12032
12033 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12034 * blockframe.c (backtrace_below_main): Move to "frame.c".
12035 (frame_chain_valid): Delete check for backtrace_below_main.
12036 (_initialize_blockframe): Delete initialization, move ``set
12037 backtrace-below-main'' command to "frame.c".
12038 (do_flush_frames_sfunc): Delete function.
12039 * frame.c: Include "command.h" and "gdbcmd.h".
12040 (frame_type_from_pc): New function.
12041 (create_new_frame): Use frame_type_from_pc.
12042 (legacy_get_prev_frame): New function.
12043 (get_prev_frame): Rewrite. When an old style frame, call
12044 legacy_get_prev_frame. Otherwize, unwind the PC first.
12045 (_initialize_frame): Add ``set backtrace-below-main'' command.
12046 * Makefile.in (frame.o): Update dependencies.
12047
778ce8cc
AC
120482003-01-19 Andrew Cagney <ac131313@redhat.com>
12049
12050 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12051 DEPRECATED_REGISTERS_INFO.
12052
01c193c8
AC
120532003-01-19 Andrew Cagney <ac131313@redhat.com>
12054
12055 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12056 Maintainers'. Update `Various Maintainers'.
12057
dedc2a2b
AC
120582003-01-19 Andrew Cagney <ac131313@redhat.com>
12059
12060 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12061 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12062 Suppress actual parameters when `-'.
12063 * gdbarch.h, gdbarch.c: Regenerate.
12064
b7261c70
AC
120652003-01-19 Andrew Cagney <ac131313@redhat.com>
12066
12067 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12068 code handling dummy frames.
12069
dbe9fe58
AC
120702003-01-19 Andrew Cagney <ac131313@redhat.com>
12071
12072 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12073 (struct frame_unwind): Add field pop.
12074 * frame.h (frame_pop): Declare.
12075 * frame.c (frame_saved_regs_pop): New function.
12076 (trad_frame_unwinder): Add frame_saved_regs_pop.
12077 (frame_pop): New function.
12078 * dummy-frame.c (dummy_frame_pop): New function.
12079 (discard_innermost_dummy): New function.
12080 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12081 (dummy_frame_unwind): Add dummy_frame_pop.
12082 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12083 * valops.c (hand_function_call): Ditto.
12084 * stack.c (return_command): Ditto.
12085
570b8f7c
AC
120862003-01-18 Andrew Cagney <ac131313@redhat.com>
12087
12088 * cris-tdep.c: Fix function declaration indentation.
12089 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12090 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12091 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12092 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12093 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12094 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12095
120962003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12097
12098 * README (Unpacking and Installation -- quick overview):
12099 Warn against ".../gdb-5.3/gdb/configure".
12100
494cca16
AC
121012003-01-18 Andrew Cagney <ac131313@redhat.com>
12102
12103 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12104 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12105 (struct frame_unwind): Declare opaque.
12106 (dummy_frame_p): Declare function.
12107 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12108 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12109 * dummy-frame.c: Include "frame-unwind.h".
12110 (dummy_frame_p): New function.
12111 (dummy_frame_unwind): New variable.
12112 * frame.c: Include "frame-unwind.h".
12113 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12114 to use the new unwind field.
12115 (set_unwind_by_pc): Delete function.
12116 (create_new_frame, get_prev_frame): Set unwind field using
12117 frame_unwind_find_by_pc.
12118 (trad_frame_unwind, trad_frame_unwinder): New variables.
12119 * frame.h (trad_frame_unwind): Declare variable.
12120 (frame_id_unwind_ftype): Delete declaration.
12121 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12122 (struct frame_unwind): Declare opaque.
12123 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12124 register_unwind with a single unwind pointer.
12125 * frame-unwind.h, frame-unwind.c: New files.
12126 * Makefile.in (SFILES): Add frame-unwind.c.
12127 (frame_unwind_h): Define.
12128 (COMMON_OBS): Add frame-unwind.o.
12129 (frame-unwind.o): Specify dependencies.
12130 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12131
4efb68b1
AC
121322003-01-18 Andrew Cagney <ac131313@redhat.com>
12133
12134 * ada-valprint.c: Eliminate PTR.
12135 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12136 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12137 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12138 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12139 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12140 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12141 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12142
a84d24ee
AC
121432003-01-17 Andrew Cagney <ac131313@redhat.com>
12144
762f08a3
AC
12145 * main.c (captured_main): Don't use PTR.
12146 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12147 * gdbtypes.c (lookup_primitive_typename): Ditto.
12148 (lookup_struct_elt_type): Ditto.
12149 * f-valprint.c (info_common_command): Ditto.
12150 (list_all_visible_commons): Ditto.
12151 * jv-typeprint.c (java_type_print_base): Ditto.
12152
a84d24ee
AC
12153 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12154 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12155 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12156 i386-interix-nat.c and i386-interix-tdep.c. Rename
12157 m68klinux-nat.c and m68klinux-tdep.c. Rename
12158 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12159 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12160 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12161 * main.c (captured_main): Use xfree, not free.
12162
c170fb60
AC
121632003-01-16 Andrew Cagney <ac131313@redhat.com>
12164
12165 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12166 ID back using a parameter.
12167 * frame.c (frame_id_unwind): Update call.
12168 (frame_saved_regs_id_unwind): Update.
12169 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12170 * dummy-frame.h (struct frame_id): Add opaque declaration.
12171 (dummy_frame_id_unwind): Update declaration.
12172
867f3898
AC
121732003-01-15 Andrew Cagney <ac131313@redhat.com>
12174
12175 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12176
40622be8 121772003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12178
40622be8 12179 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12180
ae66c1fc
EZ
121812003-01-14 Elena Zannoni <ezannoni@redhat.com>
12182
997b089a 12183 Fix PR gdb/898
ae66c1fc
EZ
12184 * breakpoint.c (until_break_command): Add new argument. Use it to
12185 decide whether to stop only at the current frame or not.
12186 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12187 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12188 call.
12189 (advance_command): New function.
12190 (_initialize_infcmd): Update help string for 'until' command.
12191 Add new 'advance' command.
12192
a04257e6
DC
121932003-01-14 David Carlton <carlton@math.stanford.edu>
12194
12195 * linespec.c (decode_line_1): Normalize comments.
12196 (set_flags): Ditto.
12197 (locate_first_half): Ditto.
12198 (decode_compound): Ditto.
12199 (symtab_from_filename): Ditto.
12200 (decode_all_digits): Ditto.
12201 (decode_dollar): Ditto.
12202 (find_methods): Ditto.
12203 (find_toplevel_char): Ditto.
12204
1bac305b
AC
122052003-01-13 Andrew Cagney <ac131313@redhat.com>
12206
12207 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12208 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12209 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12210 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12211 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12212 * language.c, language.h, m32r-tdep.c: Update copyright.
12213 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12214 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12215 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12216 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12217 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12218 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12219
25caa7a8
EZ
122202003-01-13 Elena Zannoni <ezannoni@redhat.com>
12221
12222 * stabsread.h (process_later, resolve_cfront_continuation):
12223 Obsolete.
12224 Update copyright years.
12225 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12226 Update copyright year.
12227 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12228 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12229 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12230 Update copyright year.
12231 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12232 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12233 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12234 (parse_partial_symbols): Obsolete cfront support.
12235 * stabsread.c
12236 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12237 macros.
12238 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12239 read_cfront_baseclasses, read_cfront_member_functions,
12240 resolve_cfront_continuation,read_cfront_static_fields,
12241 copy_cfront_struct_fields): Obsolete functions.
12242 (define_symbol, read_one_struct_field): Obsolete cfront support.
12243 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12244 Update Copyright year.
12245
7789c6f5
EZ
122462003-01-13 Elena Zannoni <ezannoni@redhat.com>
12247
12248 * stack.c (print_frame_info, print_stack_frame_base_stub,
12249 print_stack_frame_base, show_and_print_stack_frame_stub,
12250 show_and_print_stack_frame, print_only_stack_frame_stub,
12251 print_only_stack_frame): Delete functions.
12252 (print_stack_frame_stub): Call print_frame_info instead of
12253 print_frame_info_base.
12254 (print_frame_info_base): Rename to print_frame_info.
12255 (backtrace_command_1): Call print_frame_info, instead of
12256 print_frame_info_base.
12257 (current_frame_command): Call print_stack_frame, instead of
12258 print_only_stack_frame.
12259 (frame_command): Call print_stack_frame, instead of
12260 show_and_print_stack_frame.
12261 (up_command): Ditto.
12262 (down_command): Ditto.
12263 * frame.h (print_only_stack_frame): Delete prototype.
12264 * infrun.c (normal_stop): Call print_stack_frame, instead of
12265 show_and_print_stack_frame.
12266 * thread.c (info_threads_command): Call print_stack_frame, instead
12267 of print_only_stack_frame.
12268
3f5a3016
AC
122692003-01-13 Andrew Cagney <ac131313@redhat.com>
12270
d99ba314
AC
12271 * README (Graphical interface to GDB): Update URL. Point at
12272 gdb/links/.
12273
3f5a3016
AC
12274 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12275 version match.
12276
083ae935
DJ
122772003-01-13 Daniel Jacobowitz <drow@mvista.com>
12278
12279 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12280 lines.
12281
5365276c
DJ
122822003-01-13 Daniel Jacobowitz <drow@mvista.com>
12283
12284 * thread-db.c (attach_thread): Prototype.
12285 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12286 thread information (ti), and valid flags (th_valid, ti_valid).
12287 (attach_thread): Move target_pid_to_str call to after the thread
12288 is added to GDB's list. Initialize the cache.
12289 (thread_get_info_callback, thread_db_map_id2thr)
12290 (thread_db_get_info): New functions.
12291 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12292 (thread_db_store_registers, thread_db_thread_alive)
12293 (thread_db_get_thread_local_address): Use them.
12294 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12295 of calling error() for threads in unknown state.
12296
12297 (clear_lwpid_callback): New function.
12298 (thread_db_resume): Use it to clear the cache.
12299
9fc30b6b
DJ
123002003-01-13 Daniel Jacobowitz <drow@mvista.com>
12301
12302 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12303 (resume_callback): Remove dead code.
12304
8f871025
AC
123052003-01-13 Andrew Cagney <ac131313@redhat.com>
12306
12307 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12308 predicate.
12309 * gdbarch.h, gdbarch.c: Regenerate.
12310 * stack.c (frame_info): Only initialize the saved registers when
12311 FRAME_INIT_SAVED_REGS_P.
12312 * frame.c (frame_saved_regs_register_unwind): Assert
12313 FRAME_INIT_SAVED_REGS_P.
12314 (deprecated_generic_get_saved_register): Ditto.
12315
3f565f1e
DJ
123162003-01-13 Daniel Jacobowitz <drow@mvista.com>
12317
12318 * source.c (openp): Squelch warning about "filename".
12319
072b1022
DJ
123202003-01-13 Daniel Jacobowitz <drow@mvista.com>
12321
12322 * source.c (openp): If the file does not exist don't necessarily
12323 search the path.
12324
973ccf8b
DJ
123252003-01-13 Daniel Jacobowitz <drow@mvista.com>
12326
12327 Fix PR gdb/872.
12328 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12329 (integer_types_same_name_p): New function.
12330 (rank_one_type): Use it.
12331 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12332
030292b7
DJ
123332003-01-13 Daniel Jacobowitz <drow@mvista.com>
12334
12335 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12336 variables.
12337 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12338 * configure.in: Add --with-sysroot.
12339 * configure: Regenerated.
12340 * main.c (gdb_sysroot): New variable.
12341 (captured_main): Initialize gdb_sysroot.
12342 * defs.h (gdb_sysroot): New extern declaration.
12343 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12344
afb5d334
MC
123452003-01-12 Michael Chastain <mec@shout.net>
12346
12347 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12348
751ceeb4
MC
123492003-01-12 Michael Chastain <mec@shout.net>
12350
12351 * top.c (print_gdb_version): Bump copyright year to 2003.
12352
94cd26f8
DC
123532003-01-12 David Carlton <carlton@bactrian.org>
12354
12355 * linespec.c (symtab_from_filename): Rename variable 's' to
12356 'file_symtab'.
12357
1ce79225
AC
123582003-01-12 Andrew Cagney <ac131313@redhat.com>
12359
12360 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12361 dummy frame.
12362 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12363
fa1fd571
AC
123642003-01-12 Andrew Cagney <ac131313@redhat.com>
12365
12366 * d10v-tdep.c: Include "gdb_assert.h".
12367 (d10v_store_return_value): Rewrite to match current interface.
12368 (d10v_extract_struct_value_address): Ditto.
12369 (d10v_extract_return_value): Ditto.
12370 (d10v_gdbarch_init): Set store_restore_value,
12371 extract_struct_value_address and extract_return_value.
12372
68b8d23e
JB
123732003-01-12 J. Brobecker <brobecker@gnat.com>
12374
12375 * hpread.c (set_namestring): New procedure replacing the
12376 SET_NAMESTRING macro.
12377 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12378 by calls to set_namestring.
12379
123802003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12381
12382 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12383 a compilation warning.
12384 (hpread_process_one_debug_symbol): Likewise.
12385
88d262ca
DC
123862003-01-10 David Carlton <carlton@math.stanford.edu>
12387
12388 * linespec.c (decode_line_1): Rename variable 's' to
12389 'file_symtab'.
12390 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12391 (decode_dollar): Ditto.
12392 (decode_variable): Ditto.
12393 (symbol_found): Ditto.
12394
86669319
MC
123952003-01-09 Michael Chastain <mec@shout.net>
12396
12397 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12398
616a9dc4
CV
123992003-01-07 Corinna Vinschen <vinschen@redhat.com>
12400
12401 * win32-nat.c (set_process_privilege): New function.
12402 (child_attach): Call set_process_privilege() to enable the
12403 SE_DEBUG_NAME user privilege if available in process token.
12404
3269bcfa
JB
124052003-01-10 J. Brobecker <brobecker@gnat.com>
12406
12407 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12408 compilation error in the previous revision.
12409
2b0ee454
DC
124102003-01-09 David Carlton <carlton@math.stanford.edu>
12411
12412 * linespec.c: Update copyright.
12413
b3ba1b44
DJ
124142003-01-09 Daniel Jacobowitz <drow@mvista.com>
12415
12416 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12417 than inferior_ptid.
12418 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12419
4ef3f3be
AC
124202003-01-09 Andrew Cagney <ac131313@redhat.com>
12421
479ab5a0
AC
12422 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12423 Update comments.
12424 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12425 (frame_saved_regs_zalloc): Update.
12426 (frame_saved_regs_register_unwind): Update.
12427 (create_new_frame): Update.
12428 (get_prev_frame): Update.
12429 (frame_extra_info_zalloc): Update.
12430 (deprecated_get_frame_saved_regs): Update.
12431 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12432 * cris-tdep.c: Update comment.
12433
bde58177
AC
12434 * somsolib.h: Fix function indentation.
12435 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12436 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12437 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12438 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12439 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12440
4ef3f3be
AC
12441 * infrun.c (follow_fork): Use ISO C definition.
12442 * expprint.c (print_subexp): Use xfree instead of free.
12443 * charset.c: Include "gdb_string.h" instead of <string.h>.
12444 (register_iconv_charsets): Use ISO C definition.
12445 (host_charset, target_charset): Ditto.
12446 * Makefile.in (charset.o): Update dependencies.
12447 (mi-cmd-env.o): Update dependencies.
12448
1c615f7a
AC
124492003-01-08 Andrew Cagney <cagney@redhat.com>
12450
12451 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12452 get_frame_base.
12453
c9a1dc08
AC
124542003-01-08 Andrew Cagney <ac131313@redhat.com>
12455
12456 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12457 build directories. Save edited gdb output in Mbuild.log. If a
12458 build fails, remove any final GDB executable.
12459
dbad9d94
AC
124602003-01-08 Andrew Cagney <ac131313@redhat.com>
12461
12462 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12463 replacing hex constants with function names and stripping leading
12464 file name directory prefixes.
12465
8d357cca
AC
124662003-01-08 Andrew Cagney <cagney@redhat.com>
12467
12468 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12469 get_frame_base.
12470
bca02a8a
DC
124712003-01-08 David Carlton <carlton@math.stanford.edu>
12472
12473 * linespec.c (decode_line_1): Move code into decode_variable.
12474 (decode_variable): New function.
12475
7f8ab3a0
AC
124762003-01-08 Andrew Cagney <ac131313@redhat.com>
12477
12478 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12479
7b5849cc
AC
124802003-01-08 Andrew Cagney <cagney@redhat.com>
12481
12482 * cris-tdep.c (cris_frame_init_saved_regs): Use
12483 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12484 saved_regs buffer.
12485 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12486 (sh64_nofp_frame_init_saved_regs): Ditto.
12487 (sh_fp_frame_init_saved_regs): Ditto.
12488 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12489 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12490 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12491 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12492
72a5efb3
DJ
124932003-01-08 Daniel Jacobowitz <drow@mvista.com>
12494
12495 * minsyms.c (lookup_minimal_symbol): Update comment.
12496 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12497 (lookup_minimal_symbol_solib_trampoline): Likewise.
12498
11c02a10
AC
124992003-01-08 Andrew Cagney <cagney@redhat.com>
12500
aab3ea25
AC
12501 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12502 frame_relative_level.
12503
da50a4b7
AC
12504 * alpha-tdep.c: Use get_frame_extra_info.
12505 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12506 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12507 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12508 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12509
11c02a10
AC
12510 * alpha-tdep.c: Use get_next_frame.
12511 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12512 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12513 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12514 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12515 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12516 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12517 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12518
1e2330ba
AC
125192003-01-07 Andrew Cagney <cagney@redhat.com>
12520
12521 * alpha-tdep.c: Use get_frame_base.
12522 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12523 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12524 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12525 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12526 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12527 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12528 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12529 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12530
2d75187b
AC
125312003-01-07 Andrew Cagney <cagney@redhat.com>
12532
12533 * frame.c (deprecated_get_frame_context): New function.
12534 (deprecated_set_frame_context): New function.
12535 * frame.h (deprecated_get_frame_context): Declare.
12536 (deprecated_set_frame_context): Declare.
12537 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12538 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12539
483d36b2
AC
125402003-01-07 Andrew Cagney <cagney@redhat.com>
12541
12542 * frame.c (deprecated_set_frame_next_hack): New function.
12543 (deprecated_set_frame_prev_hack): New function.
12544 * frame.h (deprecated_set_frame_next_hack): Declare.
12545 (deprecated_set_frame_prev_hack): Declare.
12546 * mcore-tdep.c (analyze_dummy_frame): Use
12547 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12548 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12549
14e91ac5
DC
125502003-01-07 David Carlton <carlton@math.stanford.edu>
12551
12552 * linespec.c (decode_line_1): Move code into decode_dollar.
12553 (decode_dollar): New function.
12554
b0c6b05c
AC
125552003-01-07 Andrew Cagney <cagney@redhat.com>
12556
12557 * arm-tdep.c (arm_init_extra_frame_info): Use
12558 deprecated_update_frame_base_hack.
12559 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12560 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12561 (fix_frame_pointer): Ditto.
12562 (mn10300_analyze_prologue): Ditto.
12563
a00a19e9
AC
125642003-01-07 Andrew Cagney <cagney@redhat.com>
12565
12566 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12567 extra_info using frame_extra_info_zalloc.
12568 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12569 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12570 (sh64_init_extra_frame_info): Ditto.
12571 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12572 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12573 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12574 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12575 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12576 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12577 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12578 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12579 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12580 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12581 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12582 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12583
12584 * mn10300-tdep.c (analyze_dummy_frame): Use
12585 deprecated_set_frame_extra_info_hack.
12586 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12587
1fb4c65b
JB
125882003-01-07 J. Brobecker <brobecker@gnat.com>
12589
12590 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12591 class is not scText. These do not define "real" procedures.
12592 (parse_partial_symbols): Likewise.
12593
9fe7d6bf
MS
125942003-01-06 Michael Snyder <msnyder@redhat.com>
12595
12596 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12597
f6c609c4
AC
125982003-01-06 Andrew Cagney <ac131313@redhat.com>
12599
12600 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12601 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12602 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12603 deprecated_frame_xmalloc_with_cleanup.
12604 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12605 deprecated_frame_xmalloc.
12606 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12607 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12608
d995ff4b
AC
126092003-01-06 Andrew Cagney <cagney@redhat.com>
12610
84dc46cb
AC
12611 * x86-64-linux-tdep.c: Include "osabi.h".
12612 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12613
d995ff4b
AC
12614 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12615
66140c26
AC
126162003-01-06 Andrew Cagney <cagney@redhat.com>
12617
12618 * MAINTAINERS (Target Instruction Set Architectures): Update
12619 arm-elf. Can be built with -Werror, has been multiarched.
12620
12621 * value.h (unpack_long): Make buffer parameter constant.
12622 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12623 * scm-lang.h (scm_parse): Ditto.
12624 * defs.h (extract_typed_address, extract_address): Ditto.
12625 (extract_long_unsigned_integer): Ditto.
12626 * inferior.h (unsigned_pointer_to_address): Ditto.
12627 (signed_pointer_to_address): Ditto.
12628 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12629 * gdbarch.h, gdbarch.c: Regenerate.
12630 * findvar.c (extract_long_unsigned_integer): Update.
12631 (extract_address): Update.
12632 (extract_typed_address): Update.
12633 (unsigned_pointer_to_address): Update.
12634 * values.c (unpack_long): Update.
12635 (unpack_double): Update.
12636 (unpack_pointer): Update.
12637 (unpack_field_as_long): Update.
12638 * d10v-tdep.c (d10v_pointer_to_address): Update.
12639 * avr-tdep.c (avr_pointer_to_address): Update.
12640 * scm-lang.c (scm_unpack): Update.
12641 * findvar.c (signed_pointer_to_address): Update.
12642
b089b3da
ML
126432003-01-06 Michal Ludvig <mludvig@suse.cz>
12644
8ffd9b1b 12645 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12646 since it is in i386-tdep.c.
12647
aff87235
JB
126482003-01-06 J. Brobecker <brobecker@gnat.com>
12649
12650 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12651 failure introduced in the previous change.
12652
34f5e845
MC
126532003-01-05 Michael Chastain <mec@shout.net>
12654
12655 * README: Remove references to deleted remote-*.c files:
12656 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12657 remote-nrom.c, remote-os9k.c, remote-udi.c.
12658
28bcfd30
MK
126592003-01-05 Mark Kettenis <kettenis@gnu.org>
12660
12661 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12662 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12663 i386_get_longjmp_target.
12664
15a5b3ee
AC
126652003-01-05 Andrew Cagney <ac131313@redhat.com>
12666
12667 * arm-tdep.c (prologue_cache): Change to a pointer.
12668 (_initialize_arm_tdep): Allocate prologue_cache.
12669 (check_prologue_cache): Update.
12670 (save_prologue_cache): Update.
12671 (arm_gdbarch_init): Update.
12672
c263362b
DJ
126732003-01-04 Daniel Jacobowitz <drow@mvista.com>
12674
12675 * stabsread.c (update_method_name_from_physname): Call complaint()
12676 instead of error.
12677
51603483
DJ
126782003-01-04 Daniel Jacobowitz <drow@mvista.com>
12679
12680 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12681 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12682 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12683
12684 * blockframe.c: Include "gdbcmd.h" and "command.h".
12685 (backtrace_below_main): New variable.
12686 (file_frame_chain_valid, func_frame_chain_valid)
12687 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12688 (generic_func_frame_chain_valid): Remove functions.
12689 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12690 (_initialize_blockframe): New function.
12691 * Makefile.in (blockframe.o): Update dependencies.
12692 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12693 comment. Call frame_chain_valid ().
12694 * frame.h: Remove old prototypes. Add prototype for
12695 frame_chain_valid and update comments to match.
12696 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12697 Remove old comment.
12698 * gdbarch.h: Regenerated.
12699 * gdbarch.c: Regenerated.
12700
12701 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12702 set_gdbarch_frame_chain_valid.
12703 * avr-tdep.c (avr_gdbarch_init): Likewise.
12704 * cris-tdep.c (cris_gdbarch_init): Likewise.
12705 * frv-tdep.c (frv_gdbarch_init): Likewise.
12706 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12707 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12708 (i386_nw_init_abi): Likewise.
12709 (i386_gdbarch_init): Likewise.
12710 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12712 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12713 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12714 * mips-tdep.c (mips_gdbarch_init): Likewise.
12715 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12716 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12717 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12718 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12719 * s390-tdep.c (s390_gdbarch_init): Likewise.
12720 * sh-tdep.c (sh_gdbarch_init): Likewise.
12721 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12722 * v850-tdep.c (v850_gdbarch_init): Likewise.
12723 * vax-tdep.c (vax_gdbarch_init): Likewise.
12724 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12725
12726 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12727 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12728 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12729 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12730 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12731 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12732 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12733 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12734
b00a8037
DJ
127352002-01-04 Daniel Jacobowitz <drow@mvista.com>
12736
12737 * Makefile.in (acconfig_h): Remove incorrect macro.
12738 (config_h): Define.
12739 (osabi.o): Update dependencies.
12740 * configure.tgt: Set gdb_osabi based on target triplet.
12741 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12742 * configure: Regenerated.
12743 * config.in: Regenerated.
12744 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12745 (GDB_OSABI_DEFAULT): Define if not already defined.
12746 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12747 (set_osabi_string): New variables.
12748 (gdbarch_register_osabi): Add new OS ABI to
12749 gdb_osabi_available_names.
12750 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12751 (set_osabi, show_osabi): New functions.
12752 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12753
4be87837
DJ
127542003-01-04 Daniel Jacobowitz <drow@mvista.com>
12755
12756 * arch-utils.c (gdbarch_info_init): Set osabi to
12757 GDB_OSABI_UNINITIALIZED.
12758 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12759 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12760 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12761 * gdbarch.c: Regenerated.
12762 * gdbarch.h: Regenerated.
12763 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12764 there's no BFD.
12765 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12766 * osabi.h (enum gdb_osabi): Move to defs.h.
12767 (gdbarch_init_osabi): Update prototype.
12768 * defs.h (enum gdb_osabi): Moved here.
12769 * Makefile.in: Update dependencies.
12770
12771 * alpha-tdep.h: Don't include "osabi.h".
12772 (struct gdbarch_tdep): Remove osabi member.
12773 * alpha-tdep.c: Include "osabi.h".
12774 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12775 iterate over arches. Update call to gdbarch_init_osabi.
12776 (alpha_dump_tdep): Don't dump osabi.
12777 * alpha-linux-tdep.c: Include "osabi.h".
12778 * alpha-osf1-tdep.c: Include "osabi.h".
12779 * alphafbsd-tdep.c: Include "osabi.h".
12780 * alphanbsd-tdep.c: Include "osabi.h".
12781
12782 * arm-tdep.h: Don't include "osabi.h".
12783 (struct gdbarch_tdep): Remove osabi member.
12784 * arm-tdep.c: Include "osabi.h".
12785 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12786 iterate over arches. Update call to gdbarch_init_osabi.
12787 (arm_dump_tdep): Don't dump osabi.
12788 * arm-linux-tdep.c: Include "osabi.h".
12789 * armnbsd-tdep.c: Include "osabi.h".
12790
12791 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12792 Update call to gdbarch_init_osabi.
12793
12794 * i386-tdep.h: Don't include "osabi.h".
12795 (struct gdbarch_tdep): Remove osabi member.
12796 * i386-tdep.c: Include "osabi.h".
12797 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12798 iterate over arches. Update call to gdbarch_init_osabi.
12799 (i386_dump_tdep): Don't dump osabi.
12800 * i386-linux-tdep.c: Include "osabi.h".
12801 * i386-sol2-tdep.c: Include "osabi.h".
12802 * i386bsd-tdep.c: Include "osabi.h".
12803 * i386gnu-tdep.c: Include "osabi.h".
12804 * i386ly-tdep.c: Include "osabi.h".
12805 * i386nbsd-tdep.c: Include "osabi.h".
12806 * i386obsd-tdep.c: Include "osabi.h".
12807
12808 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12809 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12810 check osabi when iterating over arches. Update call to
12811 gdbarch_init_osabi.
12812 (mips_dump_tdep): Don't dump osabi.
12813
12814 * ns32k-tdep.h: Don't include "osabi.h".
12815 (struct gdbarch_tdep): Remove.
12816 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12817 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12818 allocate tdep. Update call to gdbarch_init_osabi.
12819 (ns32k_dump_tdep): Remove.
12820 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12821 * ns32knbsd-tdep.c: Include "osabi.h".
12822
12823 * ppc-tdep.h: Don't include "osabi.h".
12824 (struct gdbarch_tdep): Remove osabi member.
12825 * rs6000-tdep.c: Include "osabi.h".
12826 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12827 osabi when iterating over arches. Update call to
12828 gdbarch_init_osabi.
12829 (rs6000_dump_tdep): Don't dump osabi.
12830 * ppc-linux-tdep.c: Include "osabi.h".
12831 * ppcnbsd-tdep.c: Include "osabi.h".
12832
12833 * sh-tdep.h: Don't include "osabi.h".
12834 (struct gdbarch_tdep): Remove osabi member.
12835 * sh-tdep.c: Include "osabi.h".
12836 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12837 iterate over arches. Update call to gdbarch_init_osabi.
12838 (sh_dump_tdep): Don't dump osabi.
12839 * shnbsd-tdep.c: Include "osabi.h".
12840
12841 * sparc-tdep.c: Include "osabi.h".
12842 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12843 iterate over arches. Update call to gdbarch_init_osabi.
12844 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12845 tdep structure.
12846
12847 * vax-tdep.h: Don't include "osabi.h".
12848 (struct gdbarch_tdep): Remove.
12849 * vax-tdep.c: Include "osabi.h".
12850 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12851 iterate over arches. Don't allocate tdep. Update call
12852 to gdbarch_init_osabi.
12853 (vax_dump_tdep): Remove.
12854 (_initialize_vax_tdep): Update call to gdbarch_register.
12855
a881cf8e
DJ
128562003-01-04 Daniel Jacobowitz <drow@mvista.com>
12857
12858 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12859 entirely.
12860 (breakpoint_re_set_one): Don't fetch the value for a disabled
12861 watchpoint.
12862
1e698235
DJ
128632003-01-04 Daniel Jacobowitz <drow@mvista.com>
12864
12865 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12866 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12867 (COERCE_FLOAT_TO_DOUBLE): Remove.
12868 * gdbarch.c: Regenerate.
12869 * gdbarch.h: Regenerate.
12870 * Makefile.in: Remove value_h from gdbarch_h.
12871 * valops.c (coerce_float_to_double): New variable.
12872 (default_coerce_float_to_double): Remove.
12873 (standard_coerce_float_to_double): Remove.
12874 (value_arg_coerce): Use coerce_float_to_double.
12875 (_initialize_valops): Add "set coerce-float-to-double".
12876 * value.h (default_coerce_float_to_double): Remove prototype.
12877 (standard_coerce_float_to_double): Remove prototype.
12878
12879 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12880 prototyped.
12881 * mdebugread.c (parse_symbol): Likewise.
12882 * stabsread.c (define_symbol): Mark all functions as prototyped.
12883
12884 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12885 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12886 set_gdbarch_coerce_float_to_double.
12887 * arm-tdep.c (arm_gdbarch_init): Likewise.
12888 * frv-tdep.c (frv_gdbarch_init): Likewise.
12889 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12890 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12891 * mips-tdep.c (mips_gdbarch_init): Likewise.
12892 (mips_coerce_float_to_double): Remove.
12893 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12894 (rs6000_coerce_float_to_double): Remove.
12895 * s390-tdep.c (s390_gdbarch_init): Likewise.
12896 * sh-tdep.c (sh_gdbarch_init): Likewise.
12897 (sh_coerce_float_to_double): Remove.
12898 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12899 (sparc_coerce_float_to_double): Remove.
12900 * v850-tdep.c (v850_gdbarch_init): Likewise.
12901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12902 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12903 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12904 (hppa_coerce_float_to_double): Remove prototype.
12905 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12906
f436a26a
DJ
129072003-01-04 Daniel Jacobowitz <drow@mvista.com>
12908
12909 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12910
248f8055
DJ
129112003-01-04 Daniel Jacobowitz <drow@mvista.com>
12912
12913 Suggested by Stewart Brown <sb24@avaya.com>:
12914 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12915 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12916 (c_type_print_varspec_suffix): Likewise.
12917
72cfdc76
MK
129182003-01-04 Mark Kettenis <kettenis@gnu.org>
12919
bfd260bb
MK
12920 * configure.in: Don't set and AC_SUBST SUBDIRS.
12921 * configure: Regenerated.
12922
72cfdc76
MK
12923 * configure.in: Remove code dealing with shared libraries.
12924 * Makefile.in: Remove HLDFLAGS and HLDENV.
12925 * configure: Regenerated.
12926
c8b8a898
AC
129272003-01-04 Andrew Cagney <ac131313@redhat.com>
12928
12929 * frame.c (deprecated_frame_xmalloc): New function.
12930 (deprecated_set_frame_saved_regs_hack): New function.
12931 (deprecated_set_frame_extra_info_hack): New function.
12932 * frame.h (deprecated_frame_xmalloc): Declare.
12933 (deprecated_set_frame_saved_regs_hack): Declare.
12934 (deprecated_set_frame_extra_info_hack): Declare.
12935
14abd0fb
MK
129362003-01-04 Mark Kettenis <kettenis@gnu.org>
12937
8ee53726
MK
12938 * configure.in: Move code that provides the --enable-gdbtk option
12939 right after the code that handles the --enable-tui option, and
12940 polish it somewhat.
12941 * configure: Regenerated.
12942
14abd0fb
MK
12943 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12944 AC_CHECK_FUNCS and remove the old check for pread64.
12945 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12946 * acconfig.h (_GNU_SOURCE): Add.
12947 (HAVE_PREAD64): Remove.
12948 * configure, aclocal.m4, config.in: Regenerated.
12949
b2fb4676
AC
129502003-01-03 Andrew Cagney <ac131313@redhat.com>
12951
12952 * alpha-tdep.c: Use get_frame_saved_regs.
12953 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12954 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12955 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12956 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12957 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12958
8dcde887
MK
129592003-01-03 Mark Kettenis <kettenis@gnu.org>
12960
12961 * configure.in: Remove all use of the SUBDIRS variable; add
12962 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12963 code providing the --enable-multi-ice option, and move it right in
12964 front of the code that checks whether gdbserver is supported.
12965 Polish that too.
12966 * configure: Regenerated.
12967 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12968 @SUBDIRS@.
12969
8ccd593b
AC
129702003-01-03 Andrew Cagney <cagney@redhat.com>
12971
12972 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12973 * avr-tdep.c, cris-tdep.c: Ditto.
12974 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12975 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12976
91151a06
MK
129772003-01-03 Mark Kettenis <kettenis@gnu.org>
12978
12979 * configure.in: Remove --enable-netrom option.
12980 * configure: Regenerated.
12981
8fe84d01
MK
129822003-01-03 Mark Kettenis <kettenis@gnu.org>
12983
12984 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12985 declaration for `struct re_pattern_buffer' instead.
12986 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12987
f0394be6
JB
129882003-01-03 J. Brobecker <brobecker@gnat.com>
12989
12990 * mdebugread.c (parse_symbol): Count until the stEnd matching
12991 the structure name.
12992
27e9bf90
MK
129932003-01-02 Mark Kettenis <kettenis@gnu.org>
12994
93d331ba
MK
12995 * configure.in: Remove --with-cpu option.
12996 subscripts. Remove evil changequotes here.
12997 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12998 * config.in, configure: Regenerated.
8ffd9b1b 12999
27e9bf90
MK
13000 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13001 * configure.in: Cleanup section that sources GDB and BFD configure
13002 subscripts. Remove evil changequotes here.
13003 * config.in, configure: Regenerated.
13004
50abf9e5
AC
130052003-01-02 Andrew Cagney <ac131313@redhat.com>
13006
13007 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13008 frame accessor methods.
13009 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13010 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13011 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13012 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13013 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13014 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13015 * z8k-tdep.c: Ditto.
8ffd9b1b 13016
287c1a40
MK
130172003-01-02 Mark Kettenis <kettenis@gnu.org>
13018
f5dbc56d
MK
13019 * configure.in: Remove UI_OUT configuration code.
13020 * ada-lang.c: Update assuming UI_OUT is always true.
13021 * Makefile.in (UIOUT_CFLAGS): Remove.
13022 * configure: Regenerated.
13023 * TODO: Remove blurb about elimination of -DUI_OUT.
13024
627af7ea
MK
13025 * configure.in: Move code that provides the --enable-gdbcli,
13026 --enable-gdbmi options right before the code that handles the
13027 --enable-tui option. Polish a bit.
13028 * configure: Regenerated.
13029
06825bd1
MK
13030 * configure.in: Rewrite check for GNU regex and the
13031 --without-included regex option, and move it into the "Checks for
13032 library functions" section. This makes us use the system regex
13033 again by default on systems with version 2 of the GNU C library.
13034 This was apparently broken.
13035 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13036 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13037 * config.in, configure: Regenerated.
13038
287c1a40
MK
13039 * configure.in: Move code that provides the --enable-tui option
13040 before the "Checks for libraries" section. Polish the code
13041 somewhat and set need_curses to yes if we build the TUI. Rewrite
13042 code that looks for a library providing termcap functionality to
13043 match more closely what's done in the Readline library, and move
13044 it into to the "Checks for libraries" section.
13045 * configure: Regenerated.
13046 * Makefile.in (TERMCAP): Remove variable.
13047 * config/i386/go32.mh (TERMCAP): Remove variable.
13048
684e56bf
AC
130492003-01-02 Andrew Cagney <ac131313@redhat.com>
13050
13051 * MAINTAINERS: Mention gdb_mbuild.sh.
13052 * gdb_mbuild.sh: Rewrite.
13053
e1ea1d75
MK
130542003-01-02 Mark Kettenis <kettenis@gnu.org>
13055
13056 * configure.in: Fix typo in last change.
13057 * config.in, configure: Regenerated.
13058
1b831c93
AC
130592003-01-02 Andrew Cagney <ac131313@redhat.com>
13060
13061 * valarith.c (value_binop): Delete obsolete code and comments.
13062 * configure.host: Ditto.
13063 * buildsym.h (make_blockvector): Ditto.
13064 * buildsym.c (make_blockvector): Ditto.
13065 * defs.h (enum language): Ditto.
13066 (chill_demangle): Ditto.
13067 * elfread.c (elf_symtab_read): Ditto.
13068 * dwarfread.c (CHILL_PRODUCER): Ditto.
13069 (set_cu_language): Ditto.
13070 (handle_producer): Ditto.
13071 * expprint.c (print_subexp): Ditto.
13072 * gdbtypes.c (chill_varying_type): Ditto.
13073 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13074 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13075 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13076 (chill_varying_type): Ditto.
13077 * language.h (_LANG_chill): Ditto.
13078 * language.c (binop_result_type, integral_type): Ditto.
13079 (character_type, string_type, structured_type): Ditto.
13080 (lang_bool_type, binop_type_check): Ditto.
13081 * stabsread.h (os9k_stabs): Ditto.
13082 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13083 (define_symbol, read_type, read_struct_fields): Ditto.
13084 (read_array_type, read_enum_type, read_huge_number): Ditto.
13085 (read_range_type, start_stabs): Ditto.
13086 * symfile.c (init_filename_language_table): Ditto.
13087 (add_psymbol_with_dem_name_to_list): Ditto.
13088 * symtab.c (symbol_init_language_specific): Ditto.
13089 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13090 * symtab.h (struct general_symbol_info): Ditto.
13091 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13092 * typeprint.c (typedef_print): Ditto.
13093 * utils.c (fprintf_symbol_filtered): Ditto.
13094 * valops.c (value_cast, search_struct_field, value_slice): Delete
13095 obsolete code.
13096 (varying_to_slice): Delete function.
13097 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13098 (varying_to_slice): Delete declaration.
13099 * MAINTAINERS: Update.
13100
8bb2c122
MK
131012003-01-02 Mark Kettenis <kettenis@gnu.org>
13102
97bf5e38
MK
13103 * configure.in: Reorganize "Checks for library functions section"
13104 a bit. Remove check for `btowc' and `isascii' functions.
13105 * configure: Regenerated.
13106
5ee754fc
MK
13107 * acconfig.h (_MSE_INT_H): Remove.
13108 * configure.in: Create "Checks for header files" section, and move
13109 appropriate tests there. Don't check for objlist.h, wchar.h,
13110 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13111 misdetection fix. Also add "Checks for types", "Checks for
13112 compiler characteristics" and "Checks for library functions"
13113 sections.
13114 * config.in, configure: Regenerated.
13115
8bb2c122
MK
13116 * configure.in: Create "Checks for programs" section, and move
13117 appropriate tests there.
13118
9a156167
MK
131192003-01-01 Mark Kettenis <kettenis@gnu.org>
13120
13121 * configure.in: Create "Checks for libraries" section, and move
13122 appropriate tests there. Cleanup check for wctype in libw. Use
13123 AC_SEARCH_LIBS to see whether we need libsocket.
13124 * configure: Regenerated.
13125
a80e2bcb 13126For older changes see ChangeLog-2002
c906108c
SS
13127\f
13128Local Variables:
13129mode: change-log
13130left-margin: 8
13131fill-column: 74
13132version-control: never
13133End:
This page took 1.041402 seconds and 4 git commands to generate.