* i386fbsd-tdep.c: New file.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6ce6d90f
MK
12003-10-11 Mark Kettenis <kettenis@gnu.org>
2
8a96bc77
MK
3 * i386fbsd-tdep.c: New file.
4 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
5 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
6 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
7 i386bsd-tdep.c.
8 (_initialize_i386fbsd_tdep): New function.
9 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
10 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
11 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
12 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
13 TDEP->sc_num_regs.
14 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
15 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
16 to initialize TDEP->sc_num_regs.
17 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
18 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
19 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
20 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
21 FreeBSD ELF OS/ABI's here.
22 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
23 (i386fbsd-tdep.o): New target.
24 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
25 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
26
477f40d1
MK
27 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
28 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
29 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
30 in initialization of TDEP->sc_num_regs.
31
c6b33596
MK
32 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
33 (x86_64_init_abi): Initialize regset_from_core_section if
34 appropriate.
35
8446b36a
MK
36 * i386-tdep.c (i386_regset_from_core_section): New function.
37 (i386_gdbarch_init): Initialize regset_from_core_section if
38 appropriate.
39 * i386-tdep.h (i386_regset_from_core_section): New declaration.
40
c783cbd6
MK
41 * i386-tdep.h (struct regset): Declare opaque.
42
6ce6d90f
MK
43 * gdbarch.sh (regset_from_core_section): New method.
44 (struct regset): Declare opaque.
45 * gdbarch.c, gdbarch.h: Regenerated.
46
b98ed7be
AM
472003-10-11 Alan Modra <amodra@bigpond.net.au>
48
49 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
50 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
51 Correct test for pc within section.
52
f6214256
MK
532003-10-11 Mark Kettenis <kettenis@gnu.org>
54
55 * gdbarch.sh: Remove trailing whitepsace from comments.
56
a8f4cde1
RM
572003-10-08 Roland McGrath <roland@redhat.com>
58
59 * gcore.c (make_mem_sec): Function removed, folded into ...
60 (gcore_create_callback): ... here. To omit a section, clear its
61 SEC_LOAD bit rather than zeroing its size.
62 Omit read-only sections only if they correspond to a known disk file.
63 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
64
74276724
MS
652003-10-10 Michael Snyder <msnyder@redhat.com>
66
67 * d10v-tdep.c: Fix typo in comment.
68
e754ae69
AC
692003-10-10 Andrew Cagney <cagney@redhat.com>
70
71 * rs6000-tdep.c (e500_store_return_value): Delete function.
72 (e500_extract_return_value): Delete function.
73 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
74 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
75 "ppc_sysv_abi_restore_return_value" where applicable.
76 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
77 (ppc_sysv_abi_extract_return_value): Declare.
78 (ppc_sysv_abi_broken_store_return_value): Declare.
79 (ppc_sysv_abi_broken_extract_return_value): Declare.
80 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
81 * ppc-sysv-tdep.c (return_value_convention): Move definition to
82 start of file.
83 (do_ppc_sysv_return_value): New function.
84 (ppc_sysv_abi_extract_return_value): New function.
85 (ppc_sysv_abi_store_return_value): New function.
86 (ppc_sysv_abi_broken_extract_return_value): New function.
87 (ppc_sysv_abi_broken_store_return_value): New function.
88 (ppc_sysv_abi_use_struct_convention): Call
89 do_ppc_sysv_return_value.
90
8d4ce20a
JB
912003-10-10 J. Brobecker <brobecker@gnat.com>
92
93 * blockframe.c (inside_main_func): No longer use symbol_lookup()
94 to lookup the main function symbol.
95
afce3d2a
CV
962003-10-10 Corinna Vinschen <vinschen@redhat.com>
97
98 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
99 types correctly.
100 (sh_push_dummy_call_fpu): Fix argument passing rules.
101 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
102 float types.
103 (sh3e_sh4_store_return_value): Ditto.
104
7fe958be
EZ
1052003-10-10 Elena Zannoni <ezannoni@redhat.com>
106
107 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
108 comment.
109
3f997a97
CV
1102003-10-10 Corinna Vinschen <vinschen@redhat.com>
111
112 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
113 more readable code. Accomodate passing of bitfields.
114
8be9034a
AC
1152003-10-10 Andrew Cagney <cagney@redhat.com>
116
117 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
118 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
119 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
120 * ppc-sysv-tdep.c: Include "gdb_assert.h".
121 (ppc64_sysv_abi_push_dummy_call): New function.
122 (ppc64_sysv_abi_broken_push_dummy_call): New function.
123 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
124 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
125
85a453d5
KI
1262003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
127
128 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
129 * README: Ditto.
130 * d10v-tdep.c: Ditto.
131 * h8300-tdep.c: Ditto.
132 * remote-e7000.c: Ditto.
133 * remote-hms.c: Ditto.
134 * ser-e7kpc.c: Ditto.
135 * sh-stub.c: Ditto.
136 * sh-tdep.c: Ditto.
137 * sh-tdep.h: Ditto.
138 * sh3-rom.c: Ditto.
139 * sh64-tdep.c: Ditto.
140 * top.c: Ditto.
141 * wince.c: Ditto.
142 * config/d10v/d10v.mt: Ditto.
143 * config/sh/embed.mt: Ditto.
144 * config/sh/linux.mt: Ditto.
145 * config/sh/tm-linux.h: Ditto.
146 * config/sh/tm-sh.h: Ditto.
147 * config/sh/wince.mt: Ditto.
148
221c12ff
AC
1492003-10-09 Andrew Cagney <cagney@redhat.com>
150
151 * ppc-tdep.h (struct type): Declare opaque.
152 * x86-64-tdep.h (struct regcache): Declare opaque.
153 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
154 coding style.
155
ef5200c1
AC
1562003-10-09 Andrew Cagney <cagney@redhat.com>
157
158 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
159 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
160 (SOFTWARE_SINGLE_STEP_P): Ditto.
161 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
162 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
163 (SOFTWARE_SINGLE_STEP_P): Ditto.
164 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
165 software_single_step to rs6000_software_single_step.
a8f4cde1 166
9644bbdd
AC
1672003-10-09 Andrew Cagney <cagney@redhat.com>
168
169 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
170
db72fa6b
MS
1712003-10-09 Michael Snyder <msnyder@redhat.com>
172
f3efb16c
MS
173 * frame.h: Fix typo in comment.
174 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
175 * d10v-tdep.c: Random whitespace/comment tweaks.
176
9a5cef92
EZ
1772003-10-09 Elena Zannoni <ezannoni@redhat.com>
178
179 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 180 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 181 on stack.
a8f4cde1 182
9a5cef92
EZ
183 Based on input by Stephen Clarke (stephen.clarke@superh.com):
184 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
185 in detail.
a8f4cde1 186
0f317a0c
DJ
1872003-10-09 Daniel Jacobowitz <drow@mvista.com>
188
189 * remote-mips.c (mips_initialize): Remove unneeded call to
190 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
191
bbab2f46
DJ
1922003-10-09 Daniel Jacobowitz <drow@mvista.com>
193
194 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
195 a memory pointer.
196
550950b8
JJ
1972003-10-08 Jeff Johnston <jjohnstn@redhat.com>
198
199 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
200 for any lwp we resume.
201 (running_callback): Add lwps that have pending status events
202 against them to be considered running.
203
15c69bc7
KI
2042003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
205
206 * m32r-tdep.c : Include "dis-asm.h".
207 * Makefile.in (m32r-tdep.o): Update dependencies.
208
51065942
JB
2092003-10-06 J. Brobecker <brobecker@gnat.com>
210
211 * completer.h (get_gdb_completer_word_break_characters): Delete.
212 * completer.c: include language.h.
213 (gdb_completer_word_break_characters): Delete.
214 (get_gdb_completer_word_break_characters): Delete.
215 (location_completer): Use the word break characters of the current
216 language.
217 (complete_line): Likewise.
218 (line_completion_function): Likewise.
219 (skip_quoted_chars): Likewise.
220 * Makefile.in (completer.o): Add dependency on language.h.
221 * top.c (init_main): Set the readline word break characters
222 to GDB's default word break characters.
223
6084f43a
JB
2242003-10-06 J. Brobecker <brobecker@gnat.com>
225
226 * language.h (language_defn): new field, la_word_break_characters.
227 * language.c (unknown_language_defn): Set new field to
228 default_word_break_characters.
229 (auto_language_defn): Likewise.
230 (local_language_defn): Likewise.
231 * ada-lang.c (ada_language_defn): Likewise.
232 * c-lang.c (c_language_defn): Likewise.
233 (cplus_language_defn): Likewise.
234 (asm_language_defn): Likewise.
235 (minimal_language_defn): Likewise.
236 * f-lang.c (f_language_defn): Likewise.
237 * jv-lang.c (java_language_defn): Likewise.
238 * m2-lang.c (m2_language_defn): Likewise.
239 * objc-lang.c (objc_language_defn): Likewise.
240 * p-lang.c (pascal_language_defn): Likewise.
241 * scm-lang.c (scm_language_defn): Likewise.
242
944fcfab
AC
2432003-10-06 Andrew Cagney <cagney@redhat.com>
244
245 * ppc-sysv-tdep.c: Re-indent.
246
9f0a5303
JB
2472003-10-06 J. Brobecker <brobecker@gnat.com>
248
249 * language.h (default_word_break_characters): Add prototype.
250 * language.c (default_word_break_characters): New function.
251
7270b6ed
AS
2522003-10-06 Andreas Schwab <schwab@suse.de>
253
254 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
255 with %eax.
256
a5d61f66
AC
2572003-10-06 Andrew Cagney <cagney@redhat.com>
258
259 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
260 "h8500-tdep.c".
261 (z8k-tdep.o): Delete custom build rule.
262
28a86f5c
AC
2632003-10-06 Andrew Cagney <cagney@redhat.com>
264
1bfd8a83
AC
265 * Makefile.in: Update all dependencies.
266
17144ef8
AC
267 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
268 No longer list PA as as obsolete candidate. List m32r as
269 broken instead of obsolete.
a8f4cde1 270
a5679ae5
AC
271 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
272 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
273 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
274 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
275 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
276 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
277 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
278 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
279 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
280 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
281 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
282 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
283 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
284 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
285 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
286 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
287 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
288 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
289 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
290 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
291 * config/z8k/z8k.mt: Ditto.
292
4a8269c0
AC
293 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
294 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
295 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
296 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
297 sparclite were removed.
298 * configure.host, configure.tgt: Remove corresponding tuples.
299
41989fcd
AC
300 * breakpoint.c, breakpoint.h: Remove obsolete code.
301 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
302 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
303 * stabsread.h, xcoffread.c: Ditto.
304
28a86f5c
AC
305 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
306 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
307 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
308 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
309
4efdaa0d
DL
3102003-10-06 David Lecomber <dsl@sources.redhat.com>
311
312 * f-valprint.c: Reformatting
313
ae53de43
MK
3142003-10-06 Mark Kettenis <kettenis@gnu.org>
315
a8bb57e7
MK
316 * x86-64-tdep.c: Remove duplicate comment.
317
ae53de43
MK
318 * x86-64-tdep.c (x86_64_store_return_value): Don't use
319 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
320 names for return values. This fixes a bug since we looked at %rbx
321 instead of %rdx.
322
473f17b0
MK
3232003-10-05 Mark Kettenis <kettenis@gnu.org>
324
2c261fae
MK
325 * x86-64-tdep.c: Include "regset.h".
326
473f17b0
MK
327 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
328 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
329 sizeof_fpregset.
330 * i386-tdep.c: Include "regset.h".
331 (i386_supply_gregset): New function.
332 (i386_supply_fpregset): New function.
333 (i386_gdbarch_init): Initialze register set-related members of
334 TDEP.
335 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
336 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
337
afd48b75
AC
3382003-10-03 Andrew Cagney <cagney@redhat.com>
339
340 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
341 set extract_return_value, store_return_value and
342 use_struct_convention to ppc64_sysv_abi_extract_return_value,
343 ppc64_sysv_abi_store_return_value and
344 ppc64_sysv_abi_use_struct_convention.
345 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
346 (ppc64_sysv_abi_store_return_value): Declare.
347 (ppc64_sysv_abi_use_struct_convention): Declare.
348 * ppc-sysv-tdep.c (enum return_value_convention): Define.
349 (ppc64_sysv_abi_extract_return_value): New function.
350 (ppc64_sysv_abi_store_return_value): New function.
351 (ppc64_sysv_abi_use_struct_convention): New function.
352 (ppc64_sysv_abi_return_value): New function.
353
9b540880
AC
3542003-10-03 Andrew Cagney <cagney@redhat.com>
355
356 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
357 convert a descriptor to a function when it's in the ".opd"
358 section.
359
8748518b
CV
3602003-10-03 Corinna Vinschen <vinschen@redhat.com>
361
362 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
363 reg_size to keep GCC silent.
364
0fd85043
CV
3652003-10-03 Corinna Vinschen <vinschen@redhat.com>
366
367 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
368 base for DW_EH_PE_textrel encodings.
369 (read_encoded_value): Add a DW_EH_PE_textrel case.
370 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
371 section.
372
37b517aa
MK
3732003-10-03 Mark Kettenis <kettenis@gnu.org>
374
375 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
376
12c266ea
AC
3772003-10-02 Andrew Cagney <cagney@redhat.com>
378
379 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
380 REGISTER_RAW_SIZE.
381 * gdbarch.h, gdbarch.c: Re-generate.
382 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
383 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
384 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
385 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
386 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
387 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
388 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
389 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
390 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
391 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
392 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
393 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
394 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
395 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
396 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
397 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 398
78ba4af6
JB
3992003-10-02 Jim Blandy <jimb@redhat.com>
400
401 * dwarf2read.c (struct die_info): Doc fix.
402
617daa0e
CV
4032003-10-02 Corinna Vinschen <vinschen@redhat.com>
404
405 * sh-tdep.c: Running thru gdb_indent.sh.
406
e5e33cd9
CV
4072003-10-02 Corinna Vinschen <vinschen@redhat.com>
408
409 * sh-tdep.c (sh_justify_value_in_reg): New function.
410 (sh_stack_allocsize): Ditto.
411 (flt_argreg_array): New array used for floating point argument
412 passing.
413 (sh_init_flt_argreg): New function.
a8f4cde1 414 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
415 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
416 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
417 Fix argument passing strategy.
418 (sh_push_dummy_call_nofpu): Ditto.
419
5fe830e4
AC
4202003-10-01 Andrew Cagney <cagney@redhat.com>
421
422 * value.h (register_value_being_returned): Declare. Replace
423 "value_being_returned".
424 * infcall.c (call_function_by_hand): Use
425 register_value_being_returned.
426 * infcmd.c (print_return_value): Call
427 "register_value_being_returned", handle struct return locally.
428 * values.c (register_value_being_returned): New function. Replace
429 "value_being_returned".
a8f4cde1 430
5fe830e4 4312003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
432
433 * linux-proc.c (linux_do_registers): New function.
434 (linux_make_note_section): Use linux_do_registers in case of
435 single threaded inferior programs.
436
64f395bf
AC
4372003-10-01 Andrew Cagney <cagney@redhat.com>
438
439 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
440 use STRUCT_ADDR. When not using "struct return convention", pass
441 "0" to "value_being_returned". Add FIXMEs.
442 * infcmd.c (print_return_value): Pass an explicit 0/1 to
443 value_being_returned. Add comments.
444 * values.c (value_being_returned): Add fixme.
445 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
446 (hppa_value_returned_from_stack): Add FIXME.
447
639d11d3
DC
4482003-09-30 David Carlton <carlton@kealia.com>
449
450 * dwarf2read.c (struct die_info): Add 'parent' field; replace
451 'has_children' and 'next' by 'child' and 'sibling'.
452 (read_comp_unit): Rework algorithm, breaking body into
453 read_die_and_children and read_die_and_siblings.
454 (read_die_and_children, read_die_and_siblings): New.
455 (read_full_die): Add 'has_children' argument; set it instead of
456 the die's 'has_children' field. Minor formatting cleanup.
457 (free_die_list): Use die->child and die->sibling instead of
458 die->next.
459 (dump_die_list): Ditto.
460 (sibling_die): Use die->sibling.
461 (psymtab_to_symtab_1): Use die's 'child' field in place of its
462 'has_children' and 'next' fields.
a8f4cde1
RM
463 (process_die, read_file_scope, read_func_scope)
464 (read_lexical_block_scope, read_structure_scope)
465 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
466 (read_namespace, read_subroutine_type, dump_die): Ditto.
467
5bffac25
AC
4682003-09-30 Andrew Cagney <cagney@redhat.com>
469
470 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
471 to 224, not 220.
472
f30992d4
AC
4732003-09-30 Andrew Cagney <cagney@redhat.com>
474
475 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
476 REGISTER_VIRTUAL_SIZE.
477 * gdbarch.h, gdbarch.c: Regenerate.
478 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
479 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
480 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
481
2e092625
AC
4822003-09-29 Andrew Cagney <cagney@redhat.com>
483
484 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
485 DEPRECATED_REGISTER_VIRTUAL_TYPE.
486 * gdbarch.h, gdbarch.c: Regenerate.
487 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
488 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
489
490 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
491 * remote-vxmips.c (vx_read_register): Ditto.
492 * remote-vx68.c (vx_read_register): Ditto.
493 * gnu-nat.c (inf_validate_procs): Ditto.
494
7a5dd6ee
JB
4952003-09-29 J. Brobecker <brobecker@gnat.com>
496
497 * infcall.c (call_function_by_hand): Fix build failure
498 introduced in the previous change to this file.
499
1fe43d45
AC
5002003-09-29 Andrew Cagney <cagney@redhat.com>
501
502 * NEWS: Mention Objective-C.
503
e28a332c
JG
5042003-09-29 Jerome Guitton <guitton@act-europe.fr>
505
506 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
507 test if the register has been saved on the stack.
508 (arm_scan_prologue_cache): When analysing the instruction
509 "str lr, [sp, #-4]", save the address where lr has been stored.
510
9ff63c35
AC
5112003-09-28 Andrew Cagney <cagney@redhat.com>
512
7f5f525d
AC
513 * frame.c (frame_read_unsigned_register): Delete function.
514 * frame.h (frame_read_unsigned_register): Delete declaration.
515 * sparc-tdep.c (sparc_init_extra_frame_info): Use
516 get_frame_register_unsigned.
517 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
518 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
519 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 520
7f5f525d
AC
521 * frame.h (frame_read_register): Delete declaration.
522 * frame.c (frame_read_register): Delete function.
523 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
524 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
525 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
526 * mips-tdep.c (mips_register_to_value): Ditto.
527 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
528 * d10v-tdep.c (d10v_print_registers_info): Ditto.
529
530 * frame.c (frame_read_signed_register): Delete function.
531 (frame_read_unsigned_register): Update comments.
532 * frame.h (frame_read_signed_register): Delete declaration.
533 * h8300-tdep.c (h8300_print_register): Use
534 get_frame_register_signed.
535 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
536
9ff63c35
AC
537 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
538 Rename VALUE_RETURNED_FROM_STACK.
539 * infcmd.c (print_return_value): Update.
540 * infcall.c (call_function_by_hand): Update.
541
41d041d6
MK
5422003-09-28 Mark Kettenis <kettenis@gnu.org>
543
544 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
545 regcache argument and reverse the order of the other two
546 arguments. Remove local regcache variable. Determine
547 architecture from REGCACHE. Update comments.
548 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
549 reverse the order of the other two arguments. Remove local
550 regcache variable. Determine architecture from REGCACHE. Update
551 comments.
552 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
553 prototypes. Update comments.
554 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
555 comment.
556 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
557 Update.
558 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
559 * i386-interix-nat.c (supply_fpregset): Update.
560 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
561 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
562 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
563 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
564 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
565 Update.
566 * i386obsd-tdep.c (fetch_core_registers): Update.
567 * i386v4-nat.c (supply_fpregset): Update.
568 * x86-64-linux-nat.c (supply_fpregset): Update.
569 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 570
1cb97e17
MK
5712003-09-27 Mark Kettenis <kettenis@gnu.org>
572
5716833c
MK
573 * i386-tdep.h: Put opaque declarations in alphabetical
574 order. Remove spurious whitespace.
575 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
576 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
577 * i386-tdep.c (MM0_REGNUM): Remove define.
578 (i386_mmx_regnum_p): Add gdbarch argument.
579 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
580 Rewrite using new macro definitions for FPU/SSE registers.
581 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
582 definitions from i387-tdep.h.
583 (i386_register_name): Update.
584 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
585 new macro definitions for FPU/SSE registers.
586 (i386_extract_return_value): Determine whether floating-point
587 registers are present by examining REGCACHE's architecture.
588 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
589 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
590 FPU/SSE registers.
591 (i386_register_type): Update.
592 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
593 definitions for FPU registers. Use REGCACHE's architecture to
594 determine the appropriate register numbers.
595 (i386_pseudo_register_read, i386_pseudo_register_write,
596 i386_register_reggroup_p): Update.
597 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
598 TDEP->mm0_regnum.
599 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
600 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
601 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
602 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
603 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
604 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
605 *' to `void *'.
606 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
607 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
608 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
609 definitions for FPU/SSE registers.
610 (FXSAVE_MXCSR_ADDR): New define.
611 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
612 TDEP->mm0_regnum.
613 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
614 (I387_ST0_REGNUM): Define.
615
41d35cb0
MK
616 * regcache.h (get_regcache_arch): New prototype.
617 * regcache.c (get_regcache_arch): New function.
618
54e74f72
MK
619 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
620 whitespace.
621
1cb97e17
MK
622 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
623 Initialize using ARRAY_SIZE.
624
0968aa8c
AC
6252003-09-27 Andrew Cagney <cagney@redhat.com>
626
627 * arch-utils.c (deprecated_init_frame_pc_default): Rename
628 "init_frame_pc_default".
629 * arch-utils.h (deprecated_init_frame_pc_default): Update.
630 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
631 * vax-tdep.c (vax_gdbarch_init): Update.
632 * v850-tdep.c (v850_gdbarch_init): Update.
633 * sh64-tdep.c (sh64_gdbarch_init): Update.
634 * s390-tdep.c (s390_gdbarch_init): Update.
635 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
636 * mcore-tdep.c (mcore_gdbarch_init): Update.
637 * h8300-tdep.c (h8300_gdbarch_init): Update.
638 * cris-tdep.c (cris_gdbarch_init): Update.
639 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
640
54c84734
MK
6412003-09-26 Mark Kettenis <kettenis@gnu.org>
642
643 * regset.h: New file.
644 * Makefile.in (regset_h): Add.
645
1b1d3794
AC
6462003-09-25 Andrew Cagney <cagney@redhat.com>
647
648 * frame.h (deprecated_frame_saved_regs): Rename
649 get_frame_saved_regs.
650 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
651 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
652 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
653 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
654 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
655
e6beb428
AC
6562003-09-25 Andrew Cagney <cagney@redhat.com>
657
658 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
659 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
660 and Java.
661 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
662 arm*-*-* do not use the new frame code.
663
710122da
DC
6642003-09-25 David Carlton <carlton@kealia.com>
665
666 * c-exp.y: Remove 'register' declarations.
667 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
668
79c2c32d
DC
6692003-09-25 David Carlton <carlton@kealia.com>
670
671 * c-exp.y: Include cp-support.h. Add qualified_type.
672 (yylex): Delete nested type hack; add comments.
673 * cp-namespace.c (cp_lookup_nested_type): New function.
674 * cp-support.h: Declare cp_lookup_nested_type.
675 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
676 instead of value_struct_elt_for_reference.
677 * valops.c: Include cp-support.h.
678 (value_aggregate_elt): New function.
679 (value_namespace_elt): Ditto.
680 (value_struct_elt_for_reference): Make static.
681 * value.h: Delete declaration of value_struct_elt_for_reference;
682 add declaration for value_aggregate_elt.
683 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
684 (valops.o): Ditto.
685
898c62f5
DJ
6862003-09-25 Daniel Jacobowitz <drow@mvista.com>
687
688 * stack.c: Include "reggroups.h".
689 (frame_info): Only display registers in all_reggroup.
690 * Makefile.in (stack.o): Update dependencies.
691
28cd8767
JG
6922003-09-25 Jerome Guitton <guitton@act-europe.fr>
693
694 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
695 "add ip, sp #n" in the prologue.
696 (arm_scan_prologue): Ditto.
697
a4ab2b5d
JG
6982003-09-25 Jerome Guitton <guitton@act-europe.fr>
699
700 * MAINTAINERS (write after approval): Add myself.
701
3f244638
AS
7022003-09-25 Andreas Schwab <schwab@suse.de>
703
704 * m68k-tdep.c: Include "dwarf2-frame.h".
705 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
706 * Makefile.in (m68k-tdep.o): Update dependencies.
707
1c0159e0
CV
7082003-09-25 Corinna Vinschen <vinschen@redhat.com>
709
710 * sh-tdep.c (struct frame_extra_info): Remove.
711 (struct sh_frame_cache): New structure.
712 (GET_SOURCE_REG): New macro extracting source register of an opcode.
713 (GET_TARGET_REG): Ditto but target register.
714 (GET_PUSHED_REG): Remove.
715 (IS_MOV_ARG_TO_REG): New macro.
716 (IS_MOV_ARG_TO_IND_R14): New macro.
717 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
718 (IS_MOVW_PCREL_TO_REG): New macro.
719 (IS_MOVL_PCREL_TO_REG): New macro.
720 (IS_SUB_REG_FROM_SP): New macro.
721 (IS_ARG_MOV): Remove.
722 (IS_MOV_TO_R14): Remove.
723 (IS_RESTORE_FP): New macro.
724 (IS_RTS): New macro.
725 (IS_LDS): New macro.
726 (IS_MOV_FP_SP): New macro.
727 (IS_ADD_REG_TO_FP): New macro.
728 (IS_ADD_IMM_FP): New macro.
729 (sh_skip_prologue_hard_way): Remove.
730 (sh_saved_pc_after_call): Remove.
731 (sh_frame_chain): Remove.
732 (sh_find_callers_reg): Remove.
a8f4cde1 733 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
734 (sh_fp_frame_init_saved_regs): Remove.
735 (sh_init_extra_frame_info): Remove.
736 (sh_analyze_prologue): New function.
737 (sh_skip_prologue): Remove deprecated code. Rely on new function
738 sh_analyze_prologue when after_prologue fails.
739 (sh_frame_saved_pc): Remove.
740 (sh_alloc_frame_cache): New function.
741 (sh_frame_cache): Ditto.
742 (sh_frame_prev_register): Ditto.
743 (sh_frame_this_id): Ditto.
744 (sh_frame_unwind): New structure defining the heuristic frame
745 sniffer interface.
746 (sh_frame_sniffer): New function.
747 (sh_unwind_sp): Ditto.
748 (sh_unwind_pc): Ditto.
749 (sh_unwind_dummy_id): Ditto.
750 (sh_frame_base_address): Ditto.
751 (sh_frame_base): New structure defining new frame base code.
752 (sh_in_function_epilogue_p): New function.
753 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
754 code and to call all new code instead. Initialize dwarf2 and
755 heuristic frame sniffer.
756
5f9769d1
PH
7572003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
758
a8f4cde1
RM
759 * parser-defs.h (struct exp_descriptor): New definition, containing
760 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
761 evaluating expressions.
762 (exp_descriptor_standard): Declare new variable.
763 (print_subexp): Make global and declare here (from expprint.c).
764 (dump_subexp): Ditto.
765 (dump_subexp_body_standard): Declare.
766 (operator_length_standard): Declare.
767 (op_name_standard): Declare.
768 (print_subexp): Declare.
769 (print_subexp_standard): Declare.
770
771 * language.h (struct language_defn): Add la_exp_desc field to hold
772 pointer to table for language-specific operators.
773 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
774
775 * parse.c (operator_length): Move most code to new
5f9769d1 776 operator_length_standard function. Use language-specific information.
a8f4cde1 777 (operator_length_standard): New function taking most code from
5f9769d1
PH
778 operator_length.
779 (exp_descriptor_standard): New constant.
a8f4cde1
RM
780
781 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 782 and OP_EXTENDED_LAST.
a8f4cde1
RM
783
784 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
785 Make global; remove static declaration.
786 Move most code to print_subexp_standard.
a8f4cde1 787 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
788 print_subexp.
789 (op_name): Add expression to argument signature.
a8f4cde1 790 Use langauge-specific op_name.
5f9769d1
PH
791 Move most code to op_name_standard.
792 (op_name_standard): New function, containing code formerly in op_name.
793 (dump_subexp): Use new version of op_name function.
794 Use language-specific dump_subexp_body, and move most existing code to
795 dump_subexp_body_standard.
796 (dump_raw_expression): Use new op_name interface.
797 (dump_subexp_body): Move most code to dump_subexp_body_standard.
798 (dump_subexp_body_standard): New function, containing code formerly
799 in dump_subexp_body.
a8f4cde1 800
5f9769d1
PH
801 * language.c (unknown_language): Add default la_exp_desc field and
802 remove evaluate_exp field.
803 (auto_language): Ditto.
804 (local_language): Ditto.
805 * f-lang.c (f_language_defn): Ditto.
806 * c-lang.c (c_language_defn): Ditto.
807 (cplus_language_defn): Ditto.
808 (asm_language_defn): Ditto.
809 (minimal_language_defn): Ditto.
810 * p-lang.c (pascal_language_defn): Ditto.
811 * m2-lang.c (m2_language_defn): Ditto.
812 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
813
814 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
815 Java-specific expression evaluator.
816 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
817 field.
a8f4cde1 818 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
819 Scheme-specific expression evaluator.
820 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
821 field.
822 * objc-lang.c (print_object_command): Take evaluate_exp from the
823 la_exp_desc field.
a8f4cde1 824
5f9769d1 825 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
826
827 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
828 la_exp_desc's type.
829 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 830
24daaebc
PH
8312003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
832
833 * parser-defs.h (operator_length): Declare.
a8f4cde1 834
24daaebc
PH
835 * parse.c (length_of_subexp): Use operator_length to get operator
836 lengths and arities for operators.
837 Move most code to new operator_length function.
a8f4cde1 838 (operator_length): New function absorbing most code from
24daaebc
PH
839 length_of_subexp.
840 (prefixify_subexp): Remove large case and use operator_length instead.
841 (parse_exp_1): Use renamings:
a8f4cde1 842 dump_prefix_expression => dump_raw_expression and
24daaebc 843 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 844
24daaebc
PH
845 * expression.h (dump_prefix_expression): Rename to ...
846 (dump_raw_expression): New name.
847 (dump_postfix_expression): Rename to ...
848 (dump_prefix_expression): New name.
a8f4cde1 849
24daaebc
PH
850 * expprint.c (dump_subexp): Make global. Add comment.
851 Move most existing code to dump_subexp_body.
852 (dump_subexp_body): New function.
853 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 854 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
855 work before the expression is prefixified.
856 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 857 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 858 that's what it does.
a8f4cde1 859 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
860 prefixified expression.
861 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 862
8c2957c4
JB
8632003-09-22 Jim Blandy <jimb@redhat.com>
864
865 * dwarf2read.c (read_array_type): When building the type for an
866 array of unspecified length, make sure to choose the upper bound
867 so that the array's total length comes out to be zero --- that's
868 how we represent such arrays.
869
592e3010
MC
8702003-09-22 Michael Chastain <mec@shout.net>
871
872 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
873
365c70b1
JJ
8742003-09-22 Jeff Johnston <jjohnstn@redhat.com>
875
876 * top.c (quit_force): Fix indirect call to quit_target so
877 a struct qt_args pointer is passed.
878
5d6eb653
AC
8792003-09-22 Andrew Cagney <cagney@redhat.com>
880
881 * arch-utils.h (init_frame_pc_noop): Delete declaration.
882 * arch-utils.c (init_frame_pc_noop): Delete function.
883 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
884 "init_frame_pc".
885 * mips-tdep.c (mips_gdbarch_init): Ditto.
886 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
887 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
888 declaration.
889 (DEPRECATED_INIT_FRAME_PC): Delete macro.
890 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
891 declaration.
892 (DEPRECATED_INIT_FRAME_PC): Delete macro.
893
b222a67f
AG
8942003-09-22 Anthony Green <green@redhat.com>
895
896 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
897 declaration.
898
d5b5ac79
AC
8992003-09-20 Andrew Cagney <cagney@redhat.com>
900
deafb061
AC
901 * breakpoint.c: Eliminate ARGSUSED.
902 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
903 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
904 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
905 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
906 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
907 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
908 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
909 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
910 * wince.c, remote-vx.c: Ditto.
911
d5b5ac79
AC
912 * cli/cli-script.c: Remove "register" attributes.
913 * config/pa/tm-hppa.h: Ditto.
914 * cli/cli-decode.c: Ditto.
915 * cli/cli-cmds.c: Ditto.
916
c6316faa
AC
9172003-09-19 Andrew Cagney <cagney@redhat.com>
918
919 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
920 DEPRECATED_NPC_REGNUM.
921 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
922
f4f99b11
CF
9232003-09-19 Christopher Faylor <cgf@redhat.com>
924
925 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
926
1708f284
JB
9272003-09-19 Jim Blandy <jimb@redhat.com>
928
929 * macrotab.c (macro_include): Use the correct comparison to find
930 the appropriate place for this inclusion in the list.
931
b9fbf434
AC
9322003-09-19 Andrew Cagney <cagney@redhat.com>
933
934 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
935 (DEPRECATED_HPUX_TEXT_END): Define.
936 (deprecated_hpux_text_end): Declare.
937 (struct target_ops): Declare opaque.
938 * hppah-nat.c (text_end): Make static.
939 (deprecated_hpux_text_end): New function.
940 * exec.c (text_end): Delete global variable.
941 (NEED_TEXT_START_END): Do not define.
942 (exec_file_attach): Replace code computing "text_end" code with
943 call to DEPRECATED_HPUX_TEXT_END.
944
5b03f266
AC
9452003-09-19 Andrew Cagney <cagney@redhat.com>
946
947 * utils.c (align_up, align_down): New functions.
948 * defs.h (align_up, align_down): Declare.
949 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
950 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
951 and "align_down".
952 (round_up, round_down): Delete functions.
953 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
954 "align_down".
955 (ROUND_DOWN, ROUND_UP): Delete macros.
956 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
957 * h8300-tdep.c: Replace "round_up" and "round_down" with
958 "align_up" and "align_down".
959 (round_up, round_down): Delete macros.
960 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
961 "align_down".
962 (ROUND_UP, ROUND_DOWN): Delete macros.
963
51db5742
JB
9642003-09-18 J. Brobecker <brobecker@gnat.com>
965
966 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
967 hard-coded constant. Use the proper machine name instead.
968
77949794
AC
9692003-09-17 Andrew Cagney <cagney@redhat.com>
970
971 * sparc-tdep.c (legacy_register_name): Delete function.
972 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
973 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
974 * infcmd.c (gdb_register_name): Delete variable.
975 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
976 REGISTER_NAME and "tm.h".
977 * gdbarch.h, gdbarch.c: Regenerate.
978 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
979 REGISTER_NAMES in comments.
980 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
981 * m68klinux-nat.c (regmap): Ditto.
982
b55c33cc
JB
9832003-09-17 Jim Blandy <jimb@redhat.com>
984
985 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
986
957e27ac
AC
9872003-09-17 Andrew Cagney <cagney@redhat.com>
988
989 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
990 (ppcnbsd_init_abi): Set "use_struct_convention" to
991 "ppcnbsd_use_struct_convention".
992
192cb3d4
MK
9932003-09-17 Mark Kettenis <kettenis@gnu.org>
994
995 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
996 * gdbarch.h, gdbarch.c: Regenerate.
997 (stabs_argument_has_addr): New architecture method.
998 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
999 * arch-utils.c: Include "buildsym.h".
1000 (default_stabs_argument_has_addr): New function.
1001 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1002 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1003
efe59759
AC
10042003-09-17 Andrew Cagney <cagney@redhat.com>
1005
1006 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1007 * gdbarch.h, gdbarch.c: Regenerate.
1008 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1009 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1010 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1011 * sparcnbsd-tdep.c: Update.
a8f4cde1 1012
62700349
AC
10132003-09-17 Andrew Cagney <cagney@redhat.com>
1014
1015 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1016 * gdbarch.h, gdbarch.c: Regenerate.
1017 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1018 * d10v-tdep.c, frame.c: Update.
1019 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1020 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1021 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1022 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1023 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1024 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1025 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1026 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1027 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1028 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1029 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1030 * config/pa/nm-hppah.h: Update.
1031
b9ff3018
AC
10322003-09-16 Andrew Cagney <cagney@redhat.com>
1033
1034 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1035 "use_struct_convention" to "ppc_linux_use_struct_convention".
1036 (ppc_linux_use_struct_convention): New function.
1037 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1038 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1039 "rs6000_use_struct_convention".
1040 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1041 declaration.
1042 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1043 Delete function.
1044
aa1ee363
AC
10452003-09-16 Andrew Cagney <cagney@redhat.com>
1046
1047 * buildsym.c: Remove more occurances of "register".
1048 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1049 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1050 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1051 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1052 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1053 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1054 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1055 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1056
f2ea0907
CV
10572003-09-16 Corinna Vinschen <vinschen@redhat.com>
1058
1059 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1060 numbers to enumeration values.
1061 * sh-tdep.c: Accomodate above change.
1062 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1063 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1064 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1065 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1066 (IS_FPUSH): Rename from IS_FMOV.
1067 (sh_extract_struct_value_address): Remove useless comment.
1068 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1069 instead of own local values.
1070 (sh_dump_tdep): Remove.
1071 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1072 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1073
1c704f11
AC
10742003-09-15 Andrew Cagney <cagney@redhat.com>
1075
1076 * doublest.c (convert_floatformat_to_doublest): No longer need to
1077 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1078
ac79b88b
DJ
10792003-09-15 Daniel Jacobowitz <drow@mvista.com>
1080
1081 * values.c (unpack_double): Call floatformat_is_valid.
1082
1c671366
MK
10832003-09-15 Mark Kettenis <kettenis@gnu.org>
1084
de5227fb
MK
1085 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1086 ps_strings into a long.
1087
1c671366
MK
1088 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1089 _initialize_am64fbsd_nat.
1090
a604369a
KB
10912003-09-15 Kevin Buettner <kevinb@redhat.com>
1092
1093 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1094 associated with DW_AT_ranges attribute is out of bounds.
1095
b3cacbee
DL
10962003-09-15 David Lecomber <dsl@sources.redhat.com>
1097
1098 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1099
d0f37bb2
MC
11002003-09-14 Michael Chastain <mec@shout.net>
1101
1102 * config/m68k/nm-apollo68v.h: Delete.
1103 * config/m68k/xm-apollo68v.h: Delete.
1104
69517000
AC
11052003-09-14 Andrew Cagney <cagney@redhat.com>
1106
1107 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1108 * dcache.c: Update copyrights and descriptions.
1109 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1110
ef8b349d
AC
11112003-09-14 Andrew Cagney <cagney@redhat.com>
1112
1113 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1114 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1115
52f0bd74
AC
11162003-09-14 Andrew Cagney <cagney@redhat.com>
1117
1118 * alpha-nat.c: Remove some occurances of "register".
1119 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1120 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1121 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1122 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1123 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1124 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1125 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1126 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1127 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1128 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1129 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1130 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1131 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1132 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1133 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1134 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1135 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1136 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1137 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1138 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1139 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1140 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 1141
4a4b3fed
AC
11422003-09-13 Andrew Cagney <cagney@redhat.com>
1143
1144 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1145 * ppc-tdep.h (struct regcache): Declare opaque.
1146 * objfiles.h (struct objfile_data): Declare opaque.
1147 * cp-support.h (struct objfile): Declare opaque.
1148 * linux-nat.h (target_waitstatus): Declare opaque.
1149
2110b94f
MK
11502003-09-14 Mark Kettenis <kettenis@gnu.org>
1151
1c671366
MK
1152 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1153 (stabs_argument_has_addr): New architecture method.
1154 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1155 * arch-utils.c: Include "buildsym.h".
1156 (default_stabs_argument_has_addr): New function.
1157 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1158 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1159
2110b94f
MK
1160 * cris-tdep.c (cris_gdbarch_init): Set
1161 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1162 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1163 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1164 * mips-tdep.c (mips_gdbarch_init): Likewise.
1165 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1166 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1167
48436ce6
AC
11682003-09-13 Andrew Cagney <cagney@redhat.com>
1169
1170 * values.c (using_struct_return): Delete "function" and "funcaddr"
1171 parameters.
1172 * value.h (using_struct_return): Update declaration.
1173 * infcmd.c (finish_command_continuation): Update.
1174 (finish_command): Update.
1175 * infcall.c (call_function_by_hand): Update.
1176 * eval.c (evaluate_subexp_standard): Update.
1177
403d9909
CF
11782003-09-13 Christopher Faylor <cgf@redhat.com>
1179
1180 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1181 SSE registers since gdb will not operate correctly without this.
1182 Restore include file ordering munged in previous change.
1183 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1184
ebf7d56b
MK
11852003-09-13 Mark Kettenis <kettenis@gnu.org>
1186
8e823e25
MK
1187 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1188 REG_STRUCT_HAS_ADDR.
1189 * gdbarch.c, gdbarch.h: Updated.
1190 * infcall.c (call_function_by_hand): Update.
1191 * stabsread.c (define_symbol): Updated.
a8f4cde1 1192
ebf7d56b
MK
1193 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1194
d3f13f72
CF
11952003-09-12 Christopher Faylor <cgf@redhat.com>
1196
1197 * win32-nat.c: Reorganize so that defines used by target headers are
1198 actually defined by the system headers.
1199 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1200 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1201
14f75137
JB
12022003-09-12 Jim Blandy <jimb@redhat.com>
1203
d646061f
JB
1204 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1205 the file has no .data, .bss, or .rodata sections. Instead wait
1206 until we see a variable alleged to live in one of those sections.
1207
2a13f9bc
JB
1208 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1209 .bss section, presume that any variables we find live in the
1210 .rodata section.
1211
4f49b26b
JB
1212 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1213 offsets for global and static variables.
1214
14f75137
JB
1215 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1216 symbol types are, by definition, in the .data section, so it is
1217 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1218 If there is no .data section, there should be no N_DATA or N_DATA
1219 | N_EXT symbols.
1220
212c460c
MK
12212003-09-12 Mark Kettenis <kettenis@gnu.org>
1222
1223 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1224 (amd64fbsd_sigcontext_addr): Rewrite.
1225 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1226 with correct values.
1227 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1228 (amd64fbsd_init_abi): Fix typo.
1229
68856ea3
AC
12302003-09-12 Andrew Cagney <cagney@redhat.com>
1231
1232 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1233 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1234
627b3ba2
AC
12352003-09-12 Andrew Cagney <cagney@redhat.com>
1236
1237 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1238 "entry_file_highpc". Update comments.
1239 * defs.h (deprecated_inside_entry_file): Rename
1240 "inside_entry_file".
1241 * blockframe.c (deprecated_inside_entry_file): Rename
1242 "inside_entry_file".
1243 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1244 * vax-tdep.c (vax_frame_chain): Update.
1245 * sh64-tdep.c (sh64_frame_chain): Update.
1246 * sh-tdep.c (sh_frame_chain): Update.
1247 * rs6000-tdep.c (rs6000_frame_chain): Update.
1248 * ns32k-tdep.c (ns32k_frame_chain): Update.
1249 * mips-tdep.c (mips_frame_chain): Update.
1250 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1251 * m32r-tdep.c (m32r_frame_this_id): Update.
1252 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1253 * frv-tdep.c (frv_frame_this_id): Update.
1254 * d10v-tdep.c (d10v_frame_this_id): Update.
1255 * cris-tdep.c (cris_frame_chain): Update.
1256 * blockframe.c (legacy_frame_chain_valid): Update.
1257 * avr-tdep.c (avr_frame_this_id): Update.
1258 * arm-tdep.c (arm_prologue_this_id): Update.
1259 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1260 * objfiles.c (objfile_relocate): Update.
1261 * mipsread.c (mipscoff_symfile_read): Update.
1262 (mipscoff_symfile_read): Update.
1263 * mdebugread.c (parse_partial_symbols): Update.
1264 * dwarfread.c (read_file_scope): Update.
1265 * dwarf2read.c (read_file_scope): Update.
1266 * dbxread.c (read_dbx_symtab): Update.
1267 (read_dbx_symtab): Update.
1268 * coffread.c (complete_symtab): Update.
1269
b0abbc58
JJ
12702003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1271
1272 * top.c (quit_target): New static helper function.
1273 (quit_force): Moved code to quit_target(). Call quit_target()
1274 via catch_errors() to catch errors during quit.
1275
a1632d59
DC
12762003-09-11 David Carlton <carlton@kealia.com>
1277
1278 * buildsym.c (finish_block): Use allocate_block to allocate the
1279 block.
1280 * mdebugread.c (new_block): Add FIXME.
1281
5c4e30ca
DC
12822003-09-11 David Carlton <carlton@kealia.com>
1283
1284 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1285 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1286 (recursive_dump_type): Ditto.
1287 * printcmd.c (print_formatted): Ditto.
1288 * typeprint.c (print_type_scalar): Ditto.
1289 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1290 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1291 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1292 maint_cplus_cmd_list.
1293 * cp-support.c: Make maint_cplus_cmd_list extern.
1294 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1295 command.h.
1296 (lookup_symbol_file): Look in possible namespace blocks when
1297 appropriate.
1298 (initialize_namespace_symtab): New.
1299 (get_possible_namespace_block, free_namespace_block)
1300 (check_possible_namespace_symbols)
1301 (check_possible_namespace_symbols_loop)
1302 (check_one_possible_namespace_symbol)
1303 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1304 (_initialize_cp_namespace): Ditto.
1305 * block.h: Declare allocate_block.
1306 * block.c (allocate_block): New.
1307 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1308 allocate_block.
1309 * symfile.h: Update declaration of add_psymbol_to_list.
1310 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1311 question.
1312 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1313 scan_partial_symbols_call.
1314 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1315 helper functions.
1316 (add_partial_symbol): If necessary, scan mangled names for names
1317 of namespaces.
1318 (add_partial_namespace): Add NAMESPACE argument; generate partial
1319 symbols associated to namespaces.
1320 (add_partial_enumeration): Add NAMESPACE argument.
1321 (new_symbol): Allow namespace syms.
1322 (read_namespace): Generate namespace syms.
1323 * objfiles.h: Add opaque declaration of struct symtab.
1324 (struct objfile): Add cp_namespace_symtab member.
1325 * objfiles.c (allocate_objfile): Set
1326 objfile->cp_namespace_symtab.
1327 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1328 dictionary_h, command_h.
1329
33a7c2fc
AC
13302003-09-11 Andrew Cagney <cagney@redhat.com>
1331
1332 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1333 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1334 near the function's end.
1335 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1336 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1337 regcache_raw_write_signed to set SP_REGNUM.
1338
63cd24fe
EZ
13392003-09-11 Elena Zannoni <ezannoni@redhat.com>
1340
1341 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1342 orig_addrs is set up properly.
1343
f27dd7fd
AC
13442003-09-11 Andrew Cagney <cagney@redhat.com>
1345
1346 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1347 * gdbarch.h, gdbarch.c: Re-generate.
1348 * infcall.c (call_function_by_hand): Update.
1349 * hppa-tdep.c (hppa_push_arguments): Update.
1350 * ada-lang.c (place_on_stack): Update.
1351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1352 * sparc-tdep.c (sparc_gdbarch_init): Update.
1353 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1354 * hppa-tdep.c (hppa_gdbarch_init): Update.
1355 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1356 stack_align.
1357
f630a401
DJ
13582003-09-11 Daniel Jacobowitz <drow@mvista.com>
1359
1360 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1361 register do need a frame.
1362
0ddabb4c
AC
13632003-09-11 Andrew Cagney <cagney@redhat.com>
1364
1365 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1366 buildable since GDB 5.0.
1367 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1368 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1369 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1370 * irix4-nat.c: Delete file.
1371 * config/mips/irix4.mh: Delete file.
1372 * config/mips/irix3.mh: Delete file.
1373 * config/mips/irix3.mt: Delete file.
1374 * config/mips/tm-irix3.h: Delete file.
1375 * config/mips/nm-irix3.h: Delete file.
1376 * config/mips/xm-irix3.h: Delete file.
1377 * config/mips/nm-irix4.h: Delete file.
1378 * config/mips/xm-irix4.h: Delete file.
1379 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1380
fde2cceb
JB
13812003-09-10 J. Brobecker <brobecker@gnat.com>
1382
1383 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1384 * Makefile.in (hppa-tdep.o): Update dependencies.
1385
66f667f5
JW
13862003-09-10 James E Wilson <wilson@specifixinc.com>
1387
ef5fd69f
JW
1388 * MAINTAINERS: Change my e-mail address. Move to paper trail
1389 section.
66f667f5 1390
53e8aaea
KB
13912003-09-10 Kevin Buettner <kevinb@redhat.com>
1392
1393 * MAINTAINERS (frv): New ISA entry.
1394
dcc6aaff
KB
13952003-09-10 Kevin Buettner <kevinb@redhat.com>
1396
1397 * frv-tdep.c (dis-asm.h): Include.
1398 * Makefile.in (frv-tdep.o): Update dependencies.
1399
932644f0
JJ
14002003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1401
1402 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1403 Fix typo for high range of floating registers.
1404
91c24f0a
DC
14052003-09-09 David Carlton <carlton@kealia.com>
1406
1407 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1408 highpc initialization here out of scan_partial_symbols.
1409 (scan_partial_symbols): Restructure into a recursive version,
1410 calling add_partial_namespace and add_partial_enumeration when
1411 appropriate.
1412 (add_partial_namespace): New.
1413 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1414
c9263853
AC
14152003-09-09 Andrew Cagney <cagney@redhat.com>
1416
e56a0ecc
AC
1417 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1418 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1419 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1420 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1421
794a477a
AC
1422 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1423 (rs6000_push_dummy_call): Set the "TOC" register.
1424
c9263853
AC
1425 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1426 methods "max_register_raw_size", "max_register_virtual_size" or
1427 "register_virtual_size".
1428
afa7d0b2
ILT
14292003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1430
1431 * MAINTAINERS: Update my e-mail address.
1432
7a41266b
AC
14332003-09-09 Andrew Cagney <cagney@redhat.com>
1434
1435 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1436 (rs6000_push_dummy_call): Store the struct return address.
1437 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1438
77b2b6d4
AC
14392003-09-09 Andrew Cagney <cagney@redhat.com>
1440
1441 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1442 "ppc_sysv_abi_push_arguments".
1443 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1444 "ppc_sysv_abi_push_arguments".
1445 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1446 instead of "push_arguments".
1447 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1448
e8a7b686
AC
14492003-09-09 Andrew Cagney <cagney@redhat.com>
1450
1451 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1452 instead of CALL_DUMMY_ADDRESS.
1453
f86f5ca3
PH
14542003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1455
1456 * p-lang.c: Eliminate "register".
1457 * c-lang.c: Ditto.
1458 * expprint.c: Ditto.
1459 * f-lang.c: Ditto.
1460 * jv-lang.c: Ditto.
1461 * language.c: Ditto.
1462 * m2-lang.c: Ditto.
1463 * parse.c: Ditto.
1464 * scm-lang.c: Ditto.
1465 * objc-lang.c: Ditto.
1466
83ee270e
NC
14672003-09-09 Nick Clifton <nickc@redhat.com>
1468
1469 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1470
a89aa300
AC
14712003-09-04 Andrew Cagney <cagney@redhat.com>
1472
1473 * avr-tdep.c: Include "dis-asm.h".
1474 * cris-tdep.c: Include "dis-asm.h".
1475 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1476 instead of corresponding typedef.
1477 * h8300-tdep.c: Include "dis-asm.h".
1478 * ia64-tdep.c: Include "dis-asm.h".
1479 * i386-tdep.c: Include "dis-asm.h".
1480 (i386_print_insn): Use "struct disassemble_info" instead of
1481 corresponding typedef.
1482 * m68k-tdep.c: Include "dis-asm.h".
1483 * mcore-tdep.c: Include "dis-asm.h".
1484 * mips-tdep.c: Include "dis-asm.h".
1485 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1486 instead of corresponding typedef.
1487 * ns32k-tdep.c: Include "dis-asm.h".
1488 * s390-tdep.c: Include "dis-asm.h".
1489 * sparc-tdep.c: Include "dis-asm.h".
1490 * vax-tdep.c: Include "dis-asm.h".
1491 * v850-tdep.c: Include "dis-asm.h".
1492 * mn10300-tdep.c: Include "dis-asm.h".
1493 * rs6000-tdep.c: Include "dis-asm.h".
1494 * xstormy16-tdep.c: Include "dis-asm.h".
1495 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1496 print_insn_xstormy16.
1497 * Makefile.in (v850-tdep.o): Update dependencies.
1498 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1499 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1500 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1501 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1502 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1503 (gdbarch_h): Remove $(dis_asm_h).
1504 * disasm.c: Include "dis-asm.h".
1505 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1506 corresponding typedef.
1507 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1508 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1509 * gdbarch.sh: Do not include "dis-asm.h".
1510 (struct disassemble_info): Declare opaque.
1511 (TARGET_PRINT_INSN): Update declaration.
1512 * gdbarch.h, gdbarch.c: Re-generate.
1513
88a82a65
AC
15142003-09-08 Andrew Cagney <cagney@redhat.com>
1515
1516 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1517 CALL_DUMMY_ADDRESS, change to a predicate.
1518 * gdbarch.h, gdbarch.c: Re-generate.
1519 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1520 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1521 * infcall.c (call_function_by_hand): Ditto.
1522 * sparc-tdep.c (sparc_push_return_address): Ditto.
1523 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1524 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1525 CALL_DUMMY_ADDRESS with entry_point_address.
1526 * v850-tdep.c (v850_push_return_address): Ditto.
1527 * s390-tdep.c (s390_push_return_address): Ditto.
1528 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1529 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1530 * mcore-tdep.c (mcore_push_return_address): Ditto.
1531 * cris-tdep.c (cris_push_return_address): Ditto.
1532 * arm-tdep.c (arm_push_return_address): Ditto.
1533
3e2c4033
AC
15342003-09-08 Andrew Cagney <cagney@redhat.com>
1535
1536 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1537 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1538 and REG_UNMODIFIED to REG_SAME_VALUE.
1539 (execute_cfa_program): Update.
1540 (dwarf2_frame_cache): Update. Initialize table to
1541 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1542 location.
1543 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1544
39efb398
AC
15452003-09-08 Andrew Cagney <cagney@redhat.com>
1546
1547 * gnu-nat.c: Remove "inline" function attribute.
1548 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1549
f5cb5aca
KB
15502003-09-08 Kevin Buettner <kevinb@redhat.com>
1551
1552 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1553 target.
1554
1cb761c7
KB
15552003-09-08 Kevin Buettner <kevinb@redhat.com>
1556
1557 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1558 (frame_extra_info): Rename this struct to frv_unwind_cache.
1559 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1560 Add fields ``prev_sp'' and ``base''.
1561 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1562 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1563 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1564 Delete.
1565 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1566 Revise all callers. Fill in the unwind cache argument and make
1567 other adjustments to account for new frame mechanisms.
1568 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1569 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1570 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1571 (frv_frame_unwind, frv_frame_base): New structs.
1572 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1573 additional arguments expected by this method and adjust function
1574 body accordingly.
1575 (frv_gdbarch_init): Remove calls to the following functions:
1576 set_gdbarch_deprecated_init_frame_pc(),
1577 set_gdbarch_deprecated_saved_pc_after_call(),
1578 set_gdbarch_deprecated_frame_chain(),
1579 set_gdbarch_deprecated_frame_saved_pc(),
1580 set_gdbarch_deprecated_frame_init_saved_regs(),
1581 set_gdbarch_deprecated_push_arguments(),
1582 set_gdbarch_deprecated_push_return_address(),
1583 set_gdbarch_deprecated_pop_frame(),
1584 set_gdbarch_deprecated_call_dummy_words(),
1585 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1586 set_gdbarch_deprecated_init_extra_frame_info(),
1587 set_gdbarch_deprecated_dummy_write_sp(), and
1588 set_gdbarch_deprecated_pc_in_call_dummy().
1589 Add calls to the following functions:
1590 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1591 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1592 frame_base_set_default().
1593 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 1594
68f6cf99
MK
15952003-09-09 Mark Kettenis <kettenis@gnu.org>
1596
1597 * dwarf2-frame.c (read_encoded_value): Add support for
1598 DW_EH_PE_aligned encoding.
1599
73b65bb0
DJ
16002003-09-08 Daniel Jacobowitz <drow@mvista.com>
1601
1602 * infrun.c (normal_stop): Don't print a message if the inferior
1603 has exited.
1604
7c8a5605
JB
16052003-09-08 Jim Blandy <jimb@redhat.com>
1606
1607 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1608 * dbxread.c: #include "gdb_assert.h".
1609 (read_dbx_symtab): If the objfile has no .data section, use the
1610 section index for the .bss section instead.
1611
7dd88986
DJ
16122003-09-08 Daniel Jacobowitz <drow@mvista.com>
1613
1614 * frame.c (deprecated_safe_get_selected_frame): New function.
1615 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1616 * findvar.c (read_var_value): Call it.
1617
55ff77ac
CV
16182003-09-08 Corinna Vinschen <vinschen@redhat.com>
1619
1620 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1621 (sh64-tdep.o): Add dependencies.
1622 * configure.tgt: Add FIXME to sh-*-linux*.
1623 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1624 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 1625 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
1626 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1627 * sh64-tdep.c: New file, containing all sh64 related code from
1628 sh-tdep.c.
1629 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1630 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 1631 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
1632 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1633 * config/sh/wince.mt (TDEPFILES): Ditto.
1634
bfb39158
DJ
16352003-09-07 Daniel Jacobowitz <drow@mvista.com>
1636
1637 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1638 (stop_wait_callback): Handle !lp->signalled also.
1639 (lin_lwp_has_pending, flush_callback): New functions.
1640 (lin_lwp_wait): Call flush_callback.
1641 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1642 (linux_proc_pending_signals): New function.
1643 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1644
9407de8e
DJ
16452003-09-07 Daniel Jacobowitz <drow@mvista.com>
1646
1647 From Nick Kelsey <nickk@ubicom.com>:
1648 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1649 when the stop PC is at the beginning of a function also.
1650
2ef47cd0
DJ
16512003-09-06 Daniel Jacobowitz <drow@mvista.com>
1652
1653 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1654 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1655
6f4492c8
MK
16562003-09-06 Mark Kettenis <kettenis@gnu.org>
1657
1658 * sol-thread.c: Include "gdb_string.h".
1659
d3420b2f
MK
16602003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1661
1662 * gcore.c: Reorder include files in alphabetical order. Include
1663 "gdb_assert.h". Various coding style fixes.
1664 (derive_stack_segment, derive_heap_segment): Replace check for
1665 non-null BOTTOM and TOP with gdb_assert.
1666 (derive_heap_segment): Replace check for successful creation of
1667 ZERO with gdb_assert.
1668 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1669
5220ea4c
AC
16702003-09-04 Andrew Cagney <cagney@redhat.com>
1671
1672 * thread-db.c (verbose_dlsym): New function.
1673 (thread_db_load): Use verbose_dlsym
1674 (thread_db_new_objfile): Print that libthread_db was loaded, and
1675 that thread debugging was enabled.
1676
6e8c2c06
AC
16772003-09-04 Andrew Cagney <cagney@redhat.com>
1678
1679 * configure.tgt: Add "mips64*-*-*" target. Delete
1680 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1681 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1682 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1683 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1684 mips*-sony-*, and mips64*-*-elf* targets.
1685 * config/mips/embedl.mt: Delete file.
1686 * config/mips/embedl64.mt: Delete file.
1687 * config/mips/mips.mt: Delete file.
1688 * config/mips/mips64.mt: Delete file.
1689 * config/mips/tm-embed.h: Delete file.
1690 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1691 * config/mips/embed64.mt: Delete out-of-date comment.
1692
3a3bc038
AC
16932003-09-04 Andrew Cagney <cagney@redhat.com>
1694
1695 * hppa-tdep.c (hppa_gdbarch_init): Set
1696 "have_nonsteppable_watchpoint".
1697 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1698 * mips-tdep.c (mips_dump_tdep): Do not print
1699 HAVE_NONSTEPPABLE_WATCHPOINT.
1700 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1701 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1702 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1703 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1704
a957e642
CV
17052003-09-04 Corinna Vinschen <vinschen@redhat.com>
1706
1707 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1708 unused code. Add comment.
1709
a6fbcf2f
CV
17102003-09-04 Corinna Vinschen <vinschen@redhat.com>
1711
1712 * breakpoint.c (watchpoint_check): Check for pc being in an
1713 epilogue if watchpoint frame couldn't be found.
1714
c14a44d5
AC
17152003-09-04 Andrew Cagney <cagney@redhat.com>
1716
1717 * Makefile.in: Re-generate all dependencies.
1718
f6c40618
AC
17192003-09-03 Andrew Cagney <cagney@redhat.com>
1720
1721 * arch-utils.h (legacy_print_insn): Delete declaration.
1722 * arch-utils.c (legacy_print_insn): Delete function.
1723 * disasm.c (deprecated_tm_print_insn_info): Delete.
1724 (_initialize_disasm): Delete function, contained code initializing
1725 deprecated_tm_print_insn_info.
1726 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1727 (deprecated_tm_print_insn_info): Delete.
1728 (TARGET_PRINT_INSN): Do not provide a default.
1729 * gdbarch.h, gdbarch.c: Re-generate.
1730
242e8be5
AC
17312003-09-03 Andrew Cagney <cagney@redhat.com>
1732
1733 * disasm.c (fprintf_disasm): New function.
1734 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1735 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1736 reverts 2003-08-14 change.
1737 (_initialize_disasm): Call "init_disassemble_info", instead of
1738 INIT_DISASSEMBLE_INFO_NO_ARCH.
1739
3ffc3dda
MS
17402003-09-03 Michael Snyder <msnyder@redhat.com>
1741
1742 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1743
52d16ba8
AC
17442003-09-03 Andrew Cagney <cagney@redhat.com>
1745
1746 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1747 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1748 * symfile.c (syms_from_objfile): Update.
1749 (reread_symbols): `Update
1750 * exec.c (exec_file_attach): Update.
1751 (exec_file_attach): Update.
1752 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1753 2003-08-29 change.
1754 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1755
eb5492fa
DJ
17562003-09-03 Daniel Jacobowitz <drow@mvista.com>
1757
1758 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1759 trad-frame.h.
1760 (arm_get_cache): Delete macro.
1761 (struct arm_prologue_cache): Update comments. Make saved_regs into
1762 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1763 to prev_sp.
1764 (thumb_scan_prologue): Update for cache changes. Don't call
1765 DEPRECATED_PC_IN_CALL_DUMMY.
1766 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1767 argument and use it in desperation search for our prologue. Do not
1768 search past the specified PC.
1769 (arm_make_prologue_cache): Simplify.
1770
1771 (arm_prologue_this_id, arm_prologue_prev_register)
1772 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1773 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1774 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1775 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1776 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1777
1778 (arm_frame_chain_valid, arm_find_callers_reg)
1779 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1780 (arm_pop_frame): Delete obsolete methods.
1781 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1782
1783 (arm_gdbarch_init): Update for new frame methods. Register prologue
1784 and sigtramp unwinders. Set the default frame base method.
1785
1786 * Makefile.in (arm-tdep.o): Update dependencies.
1787 * varobj.c (find_frame_addr_in_frame_chain): Call
1788 get_frame_base_address.
1789 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1790
24de872b
DJ
17912003-09-03 Daniel Jacobowitz <drow@mvista.com>
1792
1793 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1794 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1795 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1796 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1797 Take NEXT_FRAME and CACHE arguments. Call
1798 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1799 Set unwound_pc in CACHE instead of modifying the frame argument.
1800 Don't bother checking the frame type when looking for sigtramp
1801 frames.
1802 (arm_make_prologue_cache, arm_frame_chain)
1803 (arm_init_extra_frame_info): New functions.
1804
9b8d791a
DJ
18052003-09-03 Daniel Jacobowitz <drow@mvista.com>
1806
1807 * arm-tdep.c (arm_get_cache): Define.
1808 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1809 unwound_sp, unwound_pc, and saved_regs.
1810 (thumb_scan_prologue): Take a cache instead of the frame.
1811 (arm_scan_prologue): Likewise.
1812 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1813 instead of a temporary frame.
1814 (arm_init_extra_frame_info): Allocate and use a cache.
1815 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1816
7ee3275f
AC
18172003-09-03 Andrew Cagney <cagney@redhat.com>
1818
1819 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1820 * config/mips/wince.mt (TM_CLIBS): Ditto.
1821 * config/sh/wince.mt (TM_CLIBS): Ditto.
1822 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1823 * config/sparc/sp64.mt (CC): Delete.
1824
57b29be7
AC
18252003-09-03 Andrew Cagney <cagney@redhat.com>
1826
1827 * defs.h: Do not include "arch-utils.h".
1828 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1829 GDB_MULTI_ARCH_PURE.
1830 * configure.in (GDB_MULTI_ARCH): Do not define.
1831 * configure, config.in: Regenerate.
1832 * configure.tgt: Do not set variable "gdb_multi_arch".
1833 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1834 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1835 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1836 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1837 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1838 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1839 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1840 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1841 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1842 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1843 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1844 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1845 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1846 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1847 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1848 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1849 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1850 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 1851
12e035e2
MC
18522003-08-30 Michael Chastain <mec@shout.net>
1853
1854 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1855 * config/m68k/nm-hp300hpux.h: Delete.
1856 * config/m68k/tm-hp300hpux.h: Delete.
1857 * config/m68k/xm-hp300hpux.h: Delete.
1858 * config/m68k/xm-hp300bsd.h: Delete.
1859 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1860 tm-hp300hpux.h, xm-hp300hpux.h.
1861 * somsolib.c: Remove comment about hp300 shared libraries.
1862
bda34dc2
MK
18632003-08-31 Mark Kettenis <kettenis@gnu.org>
1864
5bca7895
MK
1865 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1866 Only define PTRACE_GET_THREAD_AREA is not already defined.
1867 Various style fixes in code and comments and some additional
1868 spelling fixes in comments. Move after functions dealing with
1869 debug registers.
1870 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1871 Fix coding-style.
1872
bda34dc2
MK
1873 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1874 frame_unwind_register_unsigned instead of
1875 frame_unwind_unsigned_register.
1876
c890192f
MK
18772003-08-30 Mark Kettenis <kettenis@gnu.org>
1878
1879 * configure.in: Search for gethostbyname in libnsl.
1880 * configure: Regenerated.
1881
60fac5b8
MK
18822003-08-29 Mark Kettenis <kettenis@gnu.org>
1883
e294916c
MK
1884 * configure.in: Remove redundant AC_MSG_RESULT in check for
1885 uintptr_t in stdint.h.
1886 * configure: Regenerated.
1887
c40d267a
MK
1888 * amd64-nat.h (struct regcache): Add opaque declaration.
1889
60fac5b8
MK
1890 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1891 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1892 Change "register array" to "register cache" in comments.
1893 (x86_64_linux_gregset64_reg_offset): New variable.
1894 (GETREGS_SUPPLIES): Remove macro.
1895 (supply_gregset): Call amd64_supply_native_gregset instead of
1896 x86_64_linux_supply_gregset.
1897 (fill_gregset): Rename `regno' to `regnum'. Call
1898 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1899 (store_regs): Rename `regno' to `regnum'.
1900 (store_fpregs): Rename `regno' to `regnum'.
1901 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1902 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1903 Reorganize function a bit.
1904 (store_inferior_registers): Rename `regno' to `regnum'. Use
1905 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1906 Reorganize function a bit.
1907 (_initialize_x86_64_linux_nat): New function.
1908 * config/i386/x86-64linux.mh.
1909
546143b6
AC
19102003-08-29 Andrew Cagney <cagney@redhat.com>
1911
1912 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1913 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1914 (target_remove_watchpoint): Delete macro.
1915 (target_insert_watchpoint): Delete macro.
1916 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1917 (remote_mips_stopped_by_watchpoint): Delete declaration.
1918 (remote_mips_remove_watchpoint): Delete declaration.
1919 (remote_mips_set_watchpoint): Delete declaration.
1920 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1921 * remote-mips.c (_initialize_remote_mips): Set
1922 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1923 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1924 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1925 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1926 (mips_stopped_by_watchpoint): Rename
1927 remote_mips_stopped_by_watchpoint.
1928 (mips_can_hardware_watchpoint): Rename
1929 remote_mips_can_use_hardware_watchpoint, update function
1930 signature.
1931
7bace51b
MK
19322003-08-29 Mark Kettenis <kettenis@gnu.org>
1933
b0f5c6f2
MK
1934 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1935 USER_DS. We haven't given them a register number yet.
1936
2a6d284d
MK
1937 * amd64-nat.h: New file.
1938 * amd64-nat.c: New file.
1939 * amd64fbsd-nat.c: Include "amd64-nat.h".
1940 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1941 (amd64fbsd32_r_reg_offset): New variable.
1942 (supply_gregset): Simply call amd64_supply_native_gregset.
1943 (fill_gregset): Rename `regno' to `regnum'. Simply call
1944 amd64_collect_native_gregset.
1945 (fill_fpregset): Rename `regno' to `regnum'.
1946 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1947 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1948 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1949 `fpregset_t'. Call amd64_supply_native_gregset instead of
1950 supply_gregset. Call x86_64_supply_fxsave instead of
1951 supply_fpregset.
1952 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1953 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1954 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1955 `fpregset_t'. Call amd64_collect_native_gregset instead of
1956 fill_gregset. Call x86_64_collect_fxsave instead of
1957 fill_fpregset.
1958 (_initialize_am64fbsd_nat): Initialize
1959 amd64_native_gregset32_reg_offset and
1960 amd64_native_gregset64_reg_offset.
1961 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1962
a16d75cc
MK
1963 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1964 null pointer. Fix typo in comment.
1965
7bace51b
MK
1966 * regcache.c (supply_register): Reimplement to call
1967 regcache_raw_supply.
1968 (regcache_collect): Reimplement by calling regcache_raw_collect.
1969
9a661b68
MK
19702003-08-28 Mark Kettenis <kettenis@gnu.org>
1971
1972 * regcache.c (register_buffer): Consitify first argument.
1973 (regcache_raw_supply, regcache_raw_collect): New
1974 functions.
1975
e94cc8fa
DJ
19762003-08-28 Daniel Jacobowitz <drow@mvista.com>
1977
1978 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1979 by Nathan J. Williams.
1980
c64bd0ce
DJ
19812003-08-28 Daniel Jacobowitz <drow@mvista.com>
1982
1983 * lin-lwp.c (wait_lwp): New function, copied from
1984 stop_wait_callback. Clean up.
1985 (stop_wait_callback): Use wait_lwp.
1986
e5ab0dce
AC
19872003-08-28 Andrew Cagney <cagney@redhat.com>
1988
1989 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1990 flavour and disassembler options.
1991 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1992 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1993 deprecated_tm_print_insn_info.
a8f4cde1 1994
a788de9b
AC
19952003-08-27 Andrew Cagney <cagney@redhat.com>
1996
1997 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1998 Use target_read_memory.
1999 (s390_get_frame_info): Update. Do not reference
2000 deprecated_tm_print_insn_info.
2001 (s390_check_function_end, s390_is_sigreturn): Ditto.
2002
36482093
AC
20032003-08-27 Andrew Cagney <cagney@redhat.com>
2004
2005 * Makefile.in (cris-tdep.o): Update dependencies.
2006 * cris-tdep.c: Include "gdb_assert.h".
2007 (cris_gdbarch_init): Set print_insn.
2008 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2009 (cris_delayed_get_disassembler): Simplify, directly call the
2010 disassembler returned by cris_get_disassembler.
2011 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2012 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2013 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2014 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2015 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2016 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2017 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2018 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2019 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2020 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2021 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2022 (gdb_print_insn_sparc): Delete function.
2023 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2024 deprecated_tm_print_insn_info.
2025 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2026 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2027 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2028 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2029 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2030 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2031 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2032 (s390_gdbarch_init): Set print_insn.
2033
0285512f
AC
20342003-08-27 Andrew Cagney <cagney@redhat.com>
2035
2036 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2037 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2038 * infcall.c (call_function_by_hand): Convert the entry point
2039 address into a code address.
2040
cdcd5552
AC
20412003-08-27 Andrew Cagney <cagney@redhat.com>
2042
2043 * dsrec.c: Include "gdb_string.h".
2044 * Makefile.in (dsrec.o): Update dependencies.
2045
e85cddad
MC
20462003-08-27 Michael Chastain <mec@shout.net>
2047
2048 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2049
8bbfbb23
AC
20502003-08-27 Andrew Cagney <cagney@redhat.com>
2051
2052 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2053 (alpha_osf1_init_abi): Do not set call_dummy_address.
2054
ba058b66
DC
20552003-08-27 David Carlton <carlton@kealia.com>
2056
2057 From Randolph Chung <tausq@debian.org>:
2058 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2059 compiles with -Wformat-nonliteral -Werror.
2060
87f84c9d
JB
20612003-08-26 Jim Blandy <jimb@redhat.com>
2062
2063 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2064 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2065 bfd_lookup_symbol, since we only want symbols in code sections.
2066 (look_for_base): Pass zero as the SECT_FLAGS argument to
2067 bfd_lookup_symbol, since we're not concerned about which section
2068 the symbol is in.
2069
102d615a
JJ
20702003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2071
2072 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 2073 we are frameless or the return address register is already known.
102d615a 2074
cc7ad3ea
AC
20752003-08-26 Andrew Cagney <cagney@redhat.com>
2076
2077 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2078 in size. Add comments.
2079
af8b88dd
JJ
20802003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2081
2082 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 2083 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 2084
e0a4f5a1
JM
20852003-08-26 Jason Merrill <jason@redhat.com>
2086
2087 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2088 case out of #ifdef MIPS block.
2089
4ae9ee8e
DJ
20902003-08-25 Daniel Jacobowitz <drow@mvista.com>
2091
2092 PR java/1322
2093 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2094 available before calling SECT_OFF_TEXT.
3c164570 2095 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 2096
004d836a
JJ
20972003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2098
a8f4cde1 2099 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
2100 bof, and nat0-nat127 as pseudo-registers.
2101 (ia64_frame_cache): New struct used to cache frame info.
2102 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 2103 register grouping so registers without names are still saved and
004d836a 2104 restored.
a8f4cde1 2105 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
2106 pseudo values.
2107 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2108 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 2109 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
2110 ia64_frame_cache.
2111 (examine_prologue): Change prototype to add next_frame pointer.
2112 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 2113 current frame matches the cfm that should occur for the prologues
004d836a
JJ
2114 alloc insn and if equal, mark as not frameless. At end of routine,
2115 if not frameless, calculate registers for the previous frame and store
2116 in the cache, if a cache is provided.
2117 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2118 and pass 0 for next_frame.
2119 (ia64_store_return_value): Change to use convert_typed_floating()
2120 instead of calling ia64_convert_to_raw().
2121 (ia64_extract_return_value): Change to use convert_typed_floating()
2122 instead of calling ia64_convert_to_virtual().
2123 (ia64_frame_cache): New routine to support new frame model.
2124 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2125 (ia64_frame_sniffer): Ditto.
2126 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2127 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2128 (ia64_sigtramp_frame_prev_register): Ditto.
2129 (ia64_sigtramp_frame_sniffer): Ditto.
2130 (ia64_frame_base_address): Ditto.
2131 (ia64_extract_struct_value_address): Change to issue error message.
2132 (ia64_frame_align): New routine to align sp.
2133 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 2134 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
2135 ia64_push_dummy_call().
2136 (ia64_push_return_address): Ditto.
2137 (ia64_unwind_dummy_id): New function.
2138 (ia64_unwind_pc): Ditto.
2139 (ia64_convert_register_p): Ditto.
2140 (ia64_register_to_value): Ditto.
2141 (ia64_value_to_register): Ditto.
2142 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2143 (ia64_register_byte, ia64_register_raw_size): Ditto.
2144 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2145 (ia64_saved_pc_after_call): Ditto.
2146 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2147 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2148 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2149 (ia64_register_convert_to_raw): Ditto.
2150 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2151 (ia64_init_extra_frame_info): Ditto.
2152 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2153 (ia64_gdbarch_init): Remove registering of deprecated functions that
2154 are no longer used. Add registration of new gdbarch functions.
2155 Remove registering deprecated_write_sp. Replace
2156 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2157 Delete set_gdbarch_deprecated_register_convertible(),
2158 set_gdbarch_deprecated_register_convert_to_virtual(), and
2159 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2160 set_gdbarch_deprecated_register_size(),
2161 set_gdbarch_deprecated_register_bytes(),
2162 set_gdbarch_pcregnum(),
2163 set_gdbarch_deprecated_register_byte(),
2164 set_gdbarch_deprecated_register_raw_size(),
2165 set_gdbarch_deprecated_max_register_raw_size(),
2166 set_gdbarch_deprecated_register_virtual_size(),
2167 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2168 Replace set_gdbarch_deprecated_extract_return_value() with
2169 set_gdbarch_extract_return_value(). Remove calls to:
2170 set_gdbarch_deprecated_saved_pc_after_call();
2171 set_gdbarch_deprecated_frame_chain(),
2172 set_gdbarch_deprecated_frame_saved_pc(),
2173 set_gdbarch_deprecated_frame_init_saved_regs(),
2174 set_gdbarch_deprecated_get_saved_register(),
2175 set_gdbarch_deprecated_call_dummy_words(),
2176 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2177 set_gdbarch_deprecated_init_extra_frame_info(),
2178 set_gdbarch_deprecated_frame_args_address(),
2179 set_gdbarch_deprecated_frame_locals_address(),
2180 and set_gdbarch_deprecated_dummy_write_sp().
2181 Add set_gdbarch_convert_register_p(),
2182 set_gdbarch_register_to_value(),
2183 set_gdbarch_value_to_register(),
2184 set_gdbarch_push_dummy_call(),
2185 set_gdbarch_frame_align(),
2186 set_gdbarch_unwind_dummy_id(),
2187 set_gdbarch_unwind_pc(),
2188 frame_unwind_append_sniffer(),
2189 frame_unwind_append_sniffer(),
2190 and frame_base_set_default().
2191
aede7613
CD
21922003-08-25 Chris Demetriou <cgd@broadcom.com>
2193
2194 * configure.tgt: Document need for special "mipsisa64" handling.
2195 (mipsisa64*-*-linux64): Handle as target linux64.
2196 (mipsisa64*-*-*): Handle as target embed64.
2197
43c3a82e
MC
21982003-08-18 Michael Chastain <mec@shout.net>
2199
2200 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2201 objfile bug.
2202
6564f77d
MK
22032003-08-24 Mark Kettenis <kettenis@gnu.org>
2204
2de139ba
MK
2205 * i387-tdep.h: Update copyright date.
2206 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2207
6564f77d
MK
2208 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2209 CFLAGS games to reflect reality.
2210
42cf1509
AC
22112003-08-24 Andrew Cagney <cagney@redhat.com>
2212
2213 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2214 GDB_MULTI_ARCH is always non-zero.
2215 * osabi.c (_initialize_gdb_osabi): Ditto.
2216 (gdbarch_init_osabi): Ditto.
2217 * sparc-tdep.c: Ditto for #if code.
2218
0485f6ad
MK
22192003-08-23 Mark Kettenis <kettenis@gnu.org>
2220
2221 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2222 Update comments.
2223 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2224 comments.
2225 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2226 x86_64_supply_fxsave.
2227 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2228 x86_64_supply_fxsave.
2229 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2230 x86_64_supply_fxsave.
2231
c7716133
AJ
22322003-08-23 Andreas Jaeger <aj@suse.de>
2233
2234 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2235 i387_supply_fxsave.
2236
ed504bdf
MK
22372003-08-23 Mark Kettenis <kettenis@gnu.org>
2238
2239 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2240 i387_supply_register.
2241 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2242 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2243 i387_supply_fsave.
2244 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2245 i387_supply_fxsave.
2246 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2247 i387_supply_fsave.
2248 * i386bsd-nat.c (supply_fpregset): Adjust call to
2249 i387_supply_fsave.
2250 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2251 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2252 supply_fpregset.
2253 (store_inferior_registers): Remove extraneous whitespace. Call
2254 i387_fill_fsave instead of fill_fpregset.
2255 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2256 (supply_fpregset): Likewise.
2257 * i386v4-nat.c (supply_fpregset): Adjust call to
2258 i387_supply_fsave.
2259 * i386-interix-nat.c (supply_fpregset): Adjust call to
2260 i387_supply_fsave.
2261 * i386-linux-nat.c (supply_fpregset): Adjust call to
2262 i387_supply_fsave.
2263 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2264 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2265 i387supply_fsave and i387_supply_fxsave.
2266 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2267 Incorporate code from `i387_supply_register.
2268 (i387_supply_register): Remove.
2269 (i387_supply_fxsave): Add `regnum' argument.
2270 Update comments.
2271 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2272 prototype.
2273 (i387_supply_register): remove prototype.
2274 Update comments.
a8f4cde1 2275
4be5d520
MC
22762003-08-22 Michael Chastain <mec@shout.net>
2277
2278 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2279 Add lines for files in gdb/testsuite/gdb.cp/* that are
2280 still not 8.3 unique.
2281
7ed85d26
DJ
22822003-08-22 Daniel Jacobowitz <drow@mvista.com>
2283
2284 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2285 TYPE_VPTR_FIELDNO is valid.
2286
eb0d3137
MK
22872003-08-19 Mark Kettenis <kettenis@gnu.org>
2288
2289 * utils.c (set_width_command): Remove prototypes.
2290 (set_screen_size): New prototype.
2291 (init_page_info): Simplify by fetching the screen size from
2292 Readline. Call set_screen_size.
2293 (set_screen_size): New function.
2294 (set_width): Add missing whitespace in comment.
2295 (set_width_command): Call set_screen_size.
2296 (set_height_command): New function.
2297 (initialize_utils): Fix formatting. Make "set height" command
2298 call set_height_command. Remove redundant code that turns off
2299 pagination if output isn't a terminal. Remove redundant call to
2300 set_width_command.
a8f4cde1 2301
7e6d0ac8
MK
23022003-08-22 Mark Kettenis <kettenis@gnu.org>
2303
3567a8ea
MK
2304 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2305 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2306 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2307 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2308 `case' keyword.
2309 (sparc64_register_info): Give the reister with number
2310 SPARC64_STATE_REGNUM a name.
2311 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2312 %asi and %ccr.
2313 (sparc64_push_dummy_call): Take BIAS into account when checking
2314 stcak alignment.
2315 (sparc_software_single_step): Remove assertions that check whether
2316 NPC and NNPC were zero.
2317 (sparc_supply_rwindow): Make public. Merge functionality with
2318 sparc64_supply_rwindow.
2319 (sparc_fill_rwindow): Make public. Merge functionality with
2320 sparc64_fill_rwindow.
2321 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2322 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2323 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2324 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2325 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2326
7e6d0ac8
MK
2327 * reggroups.c: Add whitespace after declarations of local
2328 variables in functions.
2329
72e5f484
MC
23302003-08-21 Michael Chastain <mec@shout.net>
2331
2332 * gdbtypes.h: Change array bound type from an int to enum.
2333
435ac228
AC
23342003-08-21 Andrew Cagney <cagney@redhat.com>
2335
2336 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2337 * config/sparc/tm-sparc.h: Ditto.
2338 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2339 unconditionally.
2340 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2341
0d0e1a63
MK
23422003-07-13 Mark Kettenis <kettenis@gnu.org>
2343
2344 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2345 (register_objfile_data, set_objfile_data, objfile_data): New
2346 prototypes.
2347 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2348 prototypes.
2349 (allocate_objfile): Call objfile_alloc_data.
2350 (free_objfile): Call objfile_free_data.
2351 (struct objfile_data): New.
2352 (struct objfile_data_registration): New.
2353 (struct objfile_data_registry): New.
2354 (objfile_data_registry): New variable.
2355 (register_objfile_data): New function.
2356 (objfile_alloc_data, objfile_free_data): New functions.
2357 (set_objfile_data, objfile_data): New functions.
2358 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2359 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2360 (_initialize_dwarf2_frame): New function and prototype.
2361
d90cf509
AC
23622003-08-21 Andrew Cagney <cagney@redhat.com>
2363
2364 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2365 a specific architecture.
2366 * arch-utils.h (set_architecture_from_arch_mach): Delete
2367 declaration.
2368 (target_architecture_hook): Delete declaration.
2369 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2370 (default_float_format): Assume GDB_MULTI_ARCH.
2371 (default_double_format): Assume GDB_MULTI_ARCH.
2372 (set_endian_from_file): Delete function.
2373 (arch_ok): Delete function.
2374 (set_arch): Delete function.
2375 (set_architecture_from_arch_mach): Delete function.
2376 (set_architecture_from_file): Delete function.
2377 (set_architecture): Assume GDB_MULTI_ARCH.
2378 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2379
8b39fe56
MK
23802003-08-21 Mark Kettenis <kettenis@gnu.org>
2381
2382 Rewrite FreeBSD/sparc64 native configuration.
2383 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2384 * sparc64fbsd-nat.c: New file.
2385 * sparc64fbsd-tdep.c: New file.
2386 * sparc64-tdep.c sparc64-tdep.h: New files.
2387 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2388 sparc64fbsd-tdep.o): New dependencies.
2389 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2390 and sparc64fbsd-tdep.c.
2391 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2392 * config/sparc/fbsd.mh: Remove copyright notice.
2393 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2394 sparcbsd-nat.o.
2395 * config/sparc/fbsd.mt: Remove copyright notice.
2396 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2397 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2398 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2399 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2400 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2401 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2402 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2403 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2404 "sparc/tm-sp64.h".
2405 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2406 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2407
a7f19c79
MC
24082003-08-21 Michael Chastain <mec@shout.net>
2409
2410 * symtab.h: Add doco on the space critical structures and
2411 some measurements of space usage.
2412
da08ea5b
MS
24132003-08-21 Michael Snyder <msnyder@redhat.com>
2414
2415 * tracepoint.c (trace_dump_command): Trace break address
2416 is subject to DECR_PC_AFTER_BREAK.
2417 (set_traceframe_context): Make "trace_line" an int.
2418 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 2419
6df2bf50
MS
24202003-08-20 Michael Snyder <msnyder@redhat.com>
2421
2422 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
2423 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2424 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 2425 argument passing.
a8f4cde1 2426 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
2427 functions, replace sh_push_dummy_call.
2428 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2429
0955bbf0
MC
24302003-08-20 Michael Chastain <mec@shout.net>
2431
2432 * gdbtypes.h (struct main_type): Rearrange to save space.
2433
260a4188
MS
24342003-08-20 Michael Snyder <msnyder@redhat.com>
2435
2436 * trad-frame.c: Comment typo fix.
2437
8baa6f92
KB
24382003-08-20 Michael Snyder <msnyder@redhat.com>
2439 Kevin Buettner <kevinb@redhat.com>
2440
2441 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2442 (frv_frame_init_saved_regs): Add declaration.
2443 (frame_extra_info): Add new field ``saved_regs''.
2444 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2445 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2446 Update frame related code.
2447 (frv_extract_struct_value_address): Adjust formatting.
2448 * Makefile.in (frv-tdep.o): Update dependencies.
2449 * config/frv/tm-frv.h (target_insert_watchpoint)
2450 (target_remove_watchpoint, target_insert_hw_breakpoint)
2451 (target_remove_hw_breakpoint): Delete these macros.
2452 (remote_insert_watchpoint, remote_remove_watchpoint)
2453 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2454 these declarations.
2455
87193939
MC
24562003-08-20 Michael Chastain <mec@shout.net>
2457
2458 * defs.h (ENUM_BITFIELD): New macro.
2459 * symtab.h (ENUM_BITFIELD): Use it.
2460 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2461
062103ba
SA
24622003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2463
2464 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 2465
8b148df9
AC
24662003-08-18 Andrew Cagney <cagney@redhat.com>
2467
2468 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2469 * gdbarch.h, gdbarch.c: Re-generate.
2470 * infcall.c (call_function_by_hand): Adjust the SP by
2471 frame_red_zone_size before allocating any stack space.
2472 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2473 * x86-64-tdep.c (x86_64_frame_align): New function.
2474 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2475
2476 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2477 Remove code adjusting SP so that it skips over the Red Zone.
2478
954a4db8
MK
24792003-08-18 Mark Kettenis <kettenis@gnu.org>
2480
2481 * NEWS (New native configurations): Mention FreeBSD/amd64.
2482
1a241548
AC
24832003-08-18 Andrew Cagney <cagney@redhat.com>
2484
2485 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2486 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2487 "m68k_frame_p".
2488 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2489
f82b2acd
MK
24902003-08-18 Mark Kettenis <kettenis@gnu.org>
2491
2492 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2493
4056d258
ML
24942003-08-18 Michal Ludvig <mludvig@suse.cz>
2495
2496 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2497 Define.
2498 * i386-linux-nat.c: Include "linux-nat.h".
2499 (child_post_startup_inferior): New function.
a8f4cde1 2500
99ab4326
MK
25012003-08-18 Mark Kettenis <kettenis@gnu.org>
2502
2503 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2504 at the start of a frameless function. This probably fixes PR
2505 backtrace/1338.
2506
c8d5f0d6
MC
25072003-08-17 Michael Chastain <mec@shout.net>
2508
2509 * symfile.c (find_sym_fns): Remove special case for apollo target.
2510
9016a515
DJ
25112003-08-17 Daniel Jacobowitz <drow@mvista.com>
2512
2513 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2514 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2515 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2516 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2517 (linux_supports_tracevforkdone): New function.
2518 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2519 TRACEVFORKDONE.
2520 (child_follow_fork): Handle vfork.
2521 (linux_handle_extended_wait): Likewise. Also handle exec.
2522 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2523 * NEWS: Mention fork tracing.
2524
c538c11c
DJ
25252003-08-17 Daniel Jacobowitz <drow@mvista.com>
2526
2527 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2528
4de4c07c
DJ
25292003-08-17 Daniel Jacobowitz <drow@mvista.com>
2530
2531 * Makefile.in (i386-linux-nat.o): Update dependencies.
2532 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2533 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2534 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2535 * i386-linux-nat.c: Include "linux-nat.h".
2536 (child_post_startup_inferior): New function.
2537 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2538 * infptrace.c (kill_inferior): Wrap in #ifdef.
2539 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2540 attaching to each LWP.
2541 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2542 (init_lin_lwp_ops): Fill in some more operations.
2543 * linux-nat.h (linux_enable_event_reporting)
2544 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2545 prototypes.
2546 * linux-nat.c (linux_enable_event_reporting): New function.
2547 (child_post_attach, linux_child_post_startup_inferior)
2548 (child_post_startup_inferior, child_follow_fork)
2549 (linux_handle_extended_wait, kill_inferior): New functions.
2550
7996bcec
AC
25512003-08-16 Andrew Cagney <cagney@redhat.com>
2552
2553 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2554 * gdbarch.h, gdbarch.c: Re-generate.
2555
3d48a7a0
MK
25562003-08-16 Mark Kettenis <kettenis@gnu.org>
2557
2558 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2559
7989c619
AC
25602003-08-16 Andrew Cagney <cagney@redhat.com>
2561
2562 * NEWS: Mention that "set prompt-escape-char" was deleted.
2563 * top.c (get_prompt_1): Delete function.
2564 (gdb_prompt_escape):
2565 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2566 prompt-escape-char" command.
2567 (MAX_PROMPT_SIZE): Delete macro.
2568 (get_prompt): Simplify, do not call get_prompt_1.
2569
07978cd8
AC
25702003-08-16 Andrew Cagney <cagney@redhat.com>
2571
2572 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2573 -Werror. -Wformat-nonliteral problems.
2574
3ff7cf9e
JB
25752003-08-15 J. Brobecker <brobecker@gnat.com>
2576
2577 Further multiarching work mostly for hppa64-*-hpux11:
2578 * hppa-tdep.h: New file.
2579 * hppa-tdep.c: #include hppa-tdep.c.
2580 (hppa32_num_regs): Renamed from hppa_num_regs.
2581 (hppa64_num_regs): New constant.
2582 (hppa64_call_dummy_breakpoint_offset): New constant.
2583 (hppa32_call_dummy_length): New constant.
2584 (hppa64_call_dummy_length): New constant.
2585 (hppa32_stack_align): Make name 32bit explicit.
2586 (hppa32_register_virtual_type): Likewise.
2587 (hppa32_extract_return_value): Likewise.
2588 (hppa32_use_struct_convention): Likewise.
2589 (hppa32_store_return_value): Likewise.
2590 (hppa64_register_virtual_type): New function.
2591 (hppa64_extract_return_value): New function.
2592 (hppa64_use_struct_convention): New function.
2593 (hppa64_store_return_value): New function.
2594 (hppa_frame_locals_address): Remove declaration, function does
2595 not exist anymore.
2596 (hppa_register_byte): Add support for PA64 ABI.
2597 (hppa_gdbarch_init): Add support for PA64 ABI.
2598 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2599 Make name 32bit explicit.
2600 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2601 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2602 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2603 (hppa64_hpux_frame_base_before_sigtramp): New function.
2604 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2605 * config/pa/tm-hppa64.h: Remove macros that are no longer
2606 necessary now that the gdbarch vector is properly setup.
a8f4cde1 2607 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
2608 * config/pa/tm-hppah.h: Update function calls in macros
2609 following the function renaming in hppa-hpux-tdep.c.
2610 * Makefile.in (hppa_tdep_h): New variable.
2611 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2612
5d05ca6d
MS
26132003-08-14 Michael Snyder <msnyder@redhat.com>
2614
2615 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2616
37ba2569
JB
26172003-08-13 J. Brobecker <brobecker@gnat.com>
2618
2619 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2620 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2621 routine.
2622
aed7f26a
MS
26232003-08-13 Michael Snyder <msnyder@redhat.com>
2624
2625 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2626 (frv_saved_pc_after_call): Use deprecated ftype.
2627 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2628 (frv_remote_translate_xfer_address): Remove.
2629 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2630
752d4ac1
JB
26312003-08-13 J. Brobecker <brobecker@gnat.com>
2632
2633 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2634 initialization after the common gdbarch initialization, not before.
2635
1426ac1d
JB
26362003-08-13 J. Brobecker <brobecker@gnat.com>
2637
2638 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2639 (ADDR_BITS_REMOVE): Remove, redundant.
2640
b6fbdd1d
JB
26412003-08-13 J. Brobecker <brobecker@gnat.com>
2642
2643 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2644 gdbarch method to clear the 2 low bits of text addresses.
2645
44160db3
AC
26462003-08-12 Andrew Cagney <cagney@redhat.com>
2647
2648 * Makefile.in (dsrec.o): Update dependencies.
2649 * dsrec.c: Include "gdb_assert.h".
2650 (make_srec): Use snprintf instead of sprintf, use a literal format
2651 string.
2652
bcf7d3ca
AC
26532003-08-12 Andrew Cagney <cagney@redhat.com>
2654
2655 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2656 FRAME_OBSTACK_ZALLOC.
2657
49ed40de
KB
26582003-08-12 Kevin Buettner <kevinb@redhat.com>
2659
2660 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2661 SSE registers.
2662
b246147c
MK
26632003-08-10 Mark Kettenis <kettenis@gnu.org>
2664
2665 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2666 amd64fbsd_sc_reg_offset): Add extern declarations.
2667 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2668 declarations.
2669
d95fdc0d
BE
26702003-08-11 Ben Elliston <bje@wasabisystems.com>
2671
2672 * MAINTAINERS (write after approval): Update my mail address.
2673
cf6a0e73
AC
26742003-08-10 Andrew Cagney <cagney@redhat.com>
2675
2676 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2677
f837910f
MK
26782003-08-10 Mark Kettenis <kettenis@gnu.org>
2679
e2dbbd2d
MK
2680 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2681 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2682 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2683 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2684 i386bsd_sc_reg_offset): Add extern declarations.
2685 * i386obsd-nat.c: Include "i386-tdep.h"
2686 (_initialize_i386obsd_nat): Remove extern declarations.
2687 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2688 declarations.
2689 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2690 declarations.
2691
f837910f
MK
2692 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2693 instead of frame_read_register.
2694 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2695 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2696 SP_REGNUM.
2697 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2698 instead of frame_unwind_unsigned_register. Use
2699 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2700 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2701 instead of read_register. Use builtin_type_void_data_ptr instead
2702 of builtin_type_void_func_ptr when extracting the address of the
2703 jmp_buf.
2704 (i386_extract_return_value, i386_store_return_value,
2705 i386_pseudo_register_read, i386_pseudo_register_write): Use
2706 register_size instead REGISTER_RAW_SIZE.
2707
edcf254d
AC
27082003-08-10 Andrew Cagney <cagney@redhat.com>
2709
2710 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2711 sprintf. Make "name" constant.
2712
26604a34
MK
27132003-08-10 Mark Kettenis <kettenis@gnu.org>
2714
192285c6
MK
2715 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2716 instead of frame_read_register.
f837910f
MK
2717 (i387_print_float_info): Use get_frame_register and
2718 get_frame_register_unsigned instead of frame_register_read.
192285c6 2719
f0925262
MK
2720 * i386fbsd-nat.c: Include "i386-tdep.h".
2721 (child_resume): Make `eflags' an ULONGEST. Use
2722 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2723 instead of register_read and register_write.
2724
a144416f
MK
2725 * i386bsd-nat.c (fetch_inferior_registers,
2726 store_inferior_registers): Don't use && at the end of a line.
2727 (_initialize_i386bsd_nat): Fix typo.
2728
fec74868
MK
2729 * frame.c (_initialize_frame): Add missing backslash.
2730
87232496
MK
2731 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2732 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2733 and supply_register instead of manipulating the register buffer
2734 directly.
2735
c9b9de0b
MK
2736 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2737 * config/i386/nm-i386sol2.h
2738 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2739
26604a34
MK
2740 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2741 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2742 instructions that GCC likes to mingle into the prologue. Fixes
2743 gdb/1253 and gdb/1255.
2744
25d29d70
AC
27452003-08-09 Andrew Cagney <cagney@redhat.com>
2746
2747 Fix GDB PR cli/926.
2748 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2749 * command.h (add_setshow_uinteger_cmd): Declare.
2750 * frame.c (set_backtrace_cmd): New function.
2751 (show_backtrace_cmd): New function.
2752 * frame.c (_initialize_frame): Replace "set/show
2753 backtrace-below-main" with "set/show backtrace past-main". Add
2754 command "set/show backtrace limit".
2755 (backtrace_past_main): Rename "backtrace_below_main".
2756 (backtrace_limit): New variable.
2757 (get_prev_frame): Update. Check the backtrace_limit.
2758
9ebf4acf
AC
27592003-08-09 Andrew Cagney <cagney@redhat.com>
2760
2761 * defs.h (xstrprintf): Declare.
2762 * utils.c (xstrprintf): New function.
2763 * breakpoint.c (insert_breakpoints): Replace sprintf and
2764 non-literal format strings, with xstrprintf and cleanups.
2765 (delete_breakpoint,breakpoint_re_set): Ditto.
2766 (commands_command, insert_breakpoints): Ditto.
2767 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2768 (break_at_finish_command_1): Ditto.
2769
3771659b
AC
27702003-08-09 Andrew Cagney <cagney@redhat.com>
2771
2772 * MAINTAINERS (language support): List Adam Fedor as Objective C
2773 maintainer.
2774
b4263afa
JB
27752003-08-08 J. Brobecker <brobecker@gnat.com>
2776
2777 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2778 are now multiarched.
2779
d84defb1
JB
27802003-08-08 J. Brobecker <brobecker@gnat.com>
2781
2782 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2783 longer necessary now that hppa64 is partially multiarch'ed.
2784
f786f615
AC
27852003-08-08 Andrew Cagney <cagney@redhat.com>
2786
2787 * interps.c (interp_set): Check for a NULL "old_interp".
2788
c938e9b0
L
27892003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2790
2791 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2792 (install-only): Support DESTDIR.
2793 (uninstall): Likewise.
2794 (install-gdbtk): Likewise.
2795
9a146a11
EZ
27962003-08-08 Elena Zannoni <ezannoni@redhat.com>
2797
2798 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2799 contains something meaningful at all times.
2800
2801Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2802
62599e99 2803 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2804
56296155
BC
2805Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2806
62599e99 2807 * MAINTAINERS (write after approval): Added self.
56296155 2808
9710e734
AC
28092003-08-07 Andrew Cagney <cagney@redhat.com>
2810
2811 * inferior.h (AT_SYMBOL): Define.
2812 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2813 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2814 * mips-tdep.c (mips_call_dummy_address): Delete function.
2815 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2816 set call_dummy_address.
2817
98b3ab73
AC
28182003-08-07 Andrew Cagney <cagney@redhat.com>
2819
2820 * language.c (op_error): Delete function.
2821 (binop_type_check): Delete function.
2822 * language.h (type_op_error, range_op_error): Delete macros.
2823 (op_error): Delete declaration.
2824
2fcf52f0
AC
28252003-08-07 Andrew Cagney <cagney@redhat.com>
2826
2827 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2828
abd4220e 28292003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2830
abd4220e 2831 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2832 (x86_64_push_arguments): Skip the red zone.
abd4220e 2833
9dd5f34f
AC
28342003-08-05 Andrew Cagney <cagney@redhat.com>
2835
2836 * reggroups.c (reggroup_next): Check for the final entry.
2837
e5e78edc
AC
28382003-08-04 Andrew Cagney <cagney@redhat.com>
2839
ab4e3d93
AC
2840 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2841 * cli/cli-script.c (define_command): Call query directly, instead
2842 of passing it a buffer.
2843 * ocd.c (ocd_error): Pass error a constant format string.
2844 * remote-mips.c (mips_error): Use fputs_filtered.
2845
1062ca82
AC
2846 * solib-svr4.c (_initialize_svr4_solib): Update
2847 register_gdbarch_data call.
2848 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2849
fcc1c85c
AC
2850 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2851 (register_gdbarch_data): Delete "free" parameter. Update
2852 comments.
2853 * gdbarch.h, gdbarch.c: Re-generate.
2854 * reggroups.c (_initialize_reggroup): Update.
2855 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2856 * frame-base.c (_initialize_frame_base): Update.
2857 * frame-unwind.c (_initialize_frame_unwind): Update.
2858 * user-regs.c (_initialize_user_regs): Update.
2859 * remote.c (_initialize_remote): Update.
2860 * regcache.c (_initialize_regcache): Update.
2861
116f06ea
AC
2862 * regcache.c (xfree_regcache_descr): Delete function.
2863 (_initialize_regcache): Update call to register_gdbarch_data.
2864 (init_regcache_descr, init_legacy_regcache_descr): Use
2865 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2866
e5e78edc
AC
2867 * remote.c (free_remote_state): Delete function.
2868 (_initialize_remote): Update register_gdbarch_data.
2869 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2870 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2871
6c7d17ba
AC
28722003-08-04 Andrew Cagney <cagney@redhat.com>
2873
2874 * reggroups.c (struct reggroup_el): Define.
2875 (struct reggroups): Delete field "nr_group". Replace array
2876 "group" with a "first" to "last" linked list.
2877 (reggroups_init): Update. Allocate using gdbarch's obstack.
2878 (reggroups_free): Delete function.
2879 (add_group): Update. Add "el" parameter.
2880 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2881 (default_groups): Update.
2882 (reggroup_next): Replace reggroups.
2883 (reggroups_dump): Update.
2884 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2885 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2886 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2887
89b7795b
DJ
28882003-08-04 Daniel Jacobowitz <drow@mvista.com>
2889
2890 * Makefile.in (tui-interp.o): Update dependencies.
2891
306d9ac5
DC
28922003-08-04 David Carlton <carlton@kealia.com>
2893
2894 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2895 to internal_error call.
2896 * source.c (forward_search_command): Add "%s" format argument.
2897 (reverse_search_command): Ditto.
2898 * top.c (quit_confirm): Ditto.
2899 * cli/cli-setshow.c (do_setshow_command): Ditto.
2900 * cp-valprint.c (cp_print_class_method): Replace
2901 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2902 (cp_print_class_member): Ditto.
2903 * event-top.c (command_line_handler): Ditto.
2904 * linux-proc.c (linux_info_proc_cmd): Ditto.
2905 * p-typeprint.c (pascal_type_print_base): Ditto.
2906 * p-valprint.c (pascal_object_print_class_method): Ditto.
2907 (pascal_object_print_class_member): Ditto.
2908 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2909 * remote.c (remote_cisco_section_offsets): Ditto.
2910 * top.c (command_line_input): Ditto.
2911 * utils.c (vwarning,error_stream,quit): Ditto.
2912 * valprint.c (print_floating,print_binary_chars)
2913 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2914
57bfe177
AC
29152003-08-04 Andrew Cagney <cagney@redhat.com>
2916
2917 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2918
e546b999
AC
29192003-08-02 Andrew Cagney <cagney@redhat.com>
2920
2921 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2922 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2923 amd64fbsd-nat.c.
2924
91092ee5
AC
29252003-08-02 Andrew Cagney <cagney@redhat.com>
2926
2927 * Makefile.in: Update all dependencies and definitions.
2928
889f28e2
AF
29292003-08-02 Adam Fedor <fedor@gnu.org>
2930
2931 * linespec.c (is_objc_method_format): New function
2932 (decode_line_1, locate_first_half): Use it.
2933 Fixes PR objc/1298
2934
880bc914
AC
29352003-08-01 Andrew Cagney <cagney@redhat.com>
2936
2937 * NEWS: Mention that m32r is multi-arch.
2938 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2939 * configure.tgt: Recognize m32r-*-*.
2940 * config/m32r/tm-m32r.h: Delete file.
2941 * config/m32r/m32r.mt: New file.
a8f4cde1 2942 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
2943 gethostname succeeds, in order to avoid a compilation
2944 warning.
2945 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2946 compiler warning.
2947
19f59343
MS
29482003-08-01 Michael Snyder <msnyder@redhat.com>
2949
2950 * sh-tdep.c (sh_frame_align): New gdbarch method.
2951 (sh_gdbarch_init): Set up frame_align method.
2952
4e7d7511
MS
29532003-07-31 Michael Snyder <msnyder@redhat.com>
2954
2955 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2956 which is already covered by the new frames infrastructure.
2957
63022984
AC
29582003-07-31 Andrew Cagney <cagney@redhat.com>
2959
2960 * user-regs.c (struct user_reg): Add "next" link.
2961 (struct user_regs): Replace "user" with "first" and "last" links.
2962 (append_user_reg): Add pre-allocated "reg" parameter.
2963 (builtin_user_regs): Provide initial value for "last".
2964 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2965 (user_regs_init): Allocate memory from the gdbarch obstack.
2966 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2967 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2968 linked list.
2969 (usernum_to_user_reg): New function.
2970 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2971 (value_of_user_reg): Use usernum_to_user_reg.
2972 (user_regs_free): Delete function.
2973 (_initialize_user_regs): Update register_gdbarch_data call.
2974
7cf6e574
DJ
29752003-07-31 Daniel Jacobowitz <drow@mvista.com>
2976
2977 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2978
c48a845b
MS
29792003-07-30 Michael Snyder <msnyder@redhat.com>
2980
4e7d7511 2981 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 2982 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
2983 value_being_returned.
2984 * infcmd.c (print_return_value): Pass zero as struct_addr.
2985 * values.c (value_being_returned): If struct_addr is passed,
2986 use it instead of trying to recover it from the inferior.
2987
f0d8db19
KB
29882003-07-30 Kevin Buettner <kevinb@redhat.com>
2989
2990 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2991 the prologue analyzer won't need to attempt to extract the pc
2992 value from the woefully incomplete dummy frame.
2993 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2994 possible. Disable code which modifies the frame.
2995
e5c113a1
AC
29962003-07-28 Andrew Cagney <cagney@redhat.com>
2997
2998 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2999 to level 2.
3000 (annotate_breakpoints_table, annotate_record): Ditto.
3001 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3002 (annotate_field_name_end, annotate_field_value): Ditto.
3003 (annotate_field_end, annotate_frame_source_begin): Ditto.
3004 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3005 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3006 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3007 (annotate_frame_address_end, annotate_frame_address): Ditto.
3008 (annotate_frame_args, annotate_frame_end): Ditto.
3009 (annotate_frame_where, annotate_arg_begin): Ditto.
3010 (annotate_arg_name_end, annotate_arg_value): Ditto.
3011 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3012 (annotate_function_call, annotate_signal_name): Ditto.
3013 (annotate_signal_string, annotate_signal_name_end): Ditto.
3014 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3015 (annotate_value_begin, annotate_value_history_value): Ditto.
3016 (annotate_value_history_end, annotate_value_end): Ditto.
3017 (annotate_display_begin, annotate_display_number_end): Ditto.
3018 (annotate_display_format, annotate_display_expression): Ditto.
3019 (annotate_display_expression_end, annotate_display_value): Ditto.
3020 (annotate_display_end, annotate_array_section_begin): Ditto.
3021 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3022 (annotate_elt, annotate_array_section_end): Ditto.
3023
bb1db049
AC
30242003-07-28 Andrew Cagney <cagney@redhat.com>
3025
3026 * regcache.c (struct regcache_descr): Update comments on
3027 nr_raw_registers.
3028 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3029 sizeof_raw_register_valid_p.
3030 (init_regcache_descr): Set nr_raw_registers and
3031 sizeof_raw_register_valid_p before calling
3032 init_legacy_regcache_descr.
3033
20e6603c
AC
30342003-07-28 Andrew Cagney <cagney@redhat.com>
3035
3036 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3037 MOD NUM_REGS.
3038
db742940
DJ
30392003-07-28 Daniel Jacobowitz <drow@mvista.com>
3040
3041 * thread.c (info_threads_command): Use get_selected_frame ().
3042 Check that there is at least one non-sentinel frame.
3043
ce7f4371
SC
30442003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3045
3046 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3047 (m68hc11_pop_frame): Remove.
3048 (m68hc11_frame_saved_pc): Remove.
3049 (m68hc11_frame_chain): Remove.
3050 (m68hc11_frame_init_saved_regs): Remove.
3051 (m68hc11_init_extra_frame_info): Remove.
3052 (m68hc11_store_struct_return): Remove.
3053 (m68hc11_saved_pc_after_call): Remove.
3054
1ea653ae
SC
30552003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3056
3057 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3058 frame unwind information.
3059 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3060 and adapted for frame unwinding.
3061 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3062 (m68hc11_unwind_pc): New function.
3063 (m68hc11_frame_unwind_cache): New function to analyze frames.
3064 (m68hc11_frame_this_id): New function to create new frame struct.
3065 (m68hc11_frame_prev_register): New function to unwind a register from
3066 the frame.
3067 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3068 (m68hc11_frame_p): New function for the above.
3069 (m68hc11_frame_base_address): New function to return fp of frame.
3070 (m68hc11_frame_args_address): Update for frame.
3071 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3072 (m68hc11_unwind_sp): New function.
3073 (m68hc11_unwind_dummy_id): New function.
3074 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3075 calls.
3076
c8a7f6ac
SC
30772003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3078
3079 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3080 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3081 when we are beyond the current pc.
3082
3dc990bf
SC
30832003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3084
3085 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3086 from m68hc11_push_arguments.
3087 (m68hc11_push_arguments): Remove.
3088 (m68hc11_push_return_address): Remove.
3089 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3090 handlers; remove deprecated_extra_stack_alignment_needed.
3091
222e5d1d
AC
30922003-07-27 Andrew Cagney <cagney@redhat.com>
3093
3094 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3095 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3096 REAL_PC and not the pointer.
3097 * hppa-hpux-tdep.c: Include frame.h
3098
a7e9a47e
AC
30992003-07-27 Andrew Cagney <cagney@redhat.com>
3100
3101 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3102 GDB_MULTI_ACH_PARTIAL.
3103
7e3dd49e
AC
31042003-07-27 Andrew Cagney <cagney@redhat.com>
3105
3106 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3107 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3108 operator at start and not end of line.
3109 (decode_prologue): Ditto.
3110 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3111 frame_unwind_register_unsigned instead of
3112 frame_unwind_unsigned_register.
3113 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3114 read_register.
3115 (m32r_push_dummy_call): Use register_size instead of
3116 REGISTER_RAW_SIZE.
3117 (m32r_frame_sniffer): Replace m32r_frame_p.
3118 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3119 * m32r-rom.c (report_transfer_performance): Delete extern
3120 declaration.
3121 (m32r_load, m32r_upload_command): Use print_transfer_performance
3122 instead of report_transfer_performance.
3123 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3124 / add_show_from_set.
3125
0880807f
AC
31262003-07-26 Andrew Cagney <cagney@redhat.com>
3127
3128 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3129 store_return_value and extract_struct_value_address.
3130
64ae9269
DJ
31312003-07-26 Daniel Jacobowitz <drow@mvista.com>
3132
3133 PR c++/1267
3134 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3135 NULL, default to the section containing PC.
3136
e286caf2
SC
31372003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3138
3139 * NEWS: Mention "regs" deprecated for m68hc11 too.
3140
3141 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3142 (m68hc11_print_register): New function to print out one register.
3143 (m68hc11_print_registers_info): New function to print registers.
3144 (show_regs): Deprecate and use the above.
3145 (m68hc11_gdbarch_init): Install the print_registers_info.
3146
705b278b
JJ
31472003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3148
3149 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3150 that we have a SIGTRAP before returning non-zero.
3151
63cd4198
EZ
31522003-07-23 Michal Ludvig <mludvig@suse.cz>
3153 Elena Zannoni <ezannoni@redhat.com>
3154
a8f4cde1 3155 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
3156 find_function_start_sal() returns empty record.
3157
6926787d
AS
31582003-07-23 Andreas Schwab <schwab@suse.de>
3159
3160 * ia64-tdep.c (ia64_print_insn): New function.
3161 (ia64_gdbarch_init): Set print_insn to it.
3162 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3163 deprecated_tm_print_insn_info.
3164
708cc1b6
MS
31652003-07-22 Michael Snyder <msnyder@redhat.com>
3166
3167 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3168 handle 8-bit returns (long long).
3169 (h8300h_extract_return_value): Ditto.
3170 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3171
aebd7893
AC
31722003-07-22 Andrew Cagney <cagney@redhat.com>
3173
3174 * gdbarch.c Include "gdb_obstack.h".
3175 (struct gdbarch): Add an "obstack".
3176 (alloc_gdbarch_data): Allocate the gdbarch data using
3177 GDBARCH_OBSTACK_CALLOC.
3178 (free_gdbarch_data): Delete function.
3179 (gdbarch_obstack_zalloc): New function.
3180 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3181 Assert that the architecture is not initialized.
3182 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3183 vector from the obstack.
3184 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3185 architecture obstack.
3186 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3187 (set_gdbarch_data): Assert that the data is not initialized.
3188 (struct gdbarch_data): Delete member "free".
3189 (register_gdbarch_data): Do not initialize "free".
3190 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 3191
153721e6
AC
31922003-07-22 Andrew Cagney <cagney@redhat.com>
3193
3194 * configure.in (build_warnings): Add -Wformat-nonliteral.
3195 * configure: Re-generate.
3196
c193f044 31972003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
3198
3199 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 3200
c3228f12
EZ
32012003-07-22 Elena Zannoni <ezannoni@redhat.com>
3202
3203 * findvar.c (read_var_value): Remove case for thread local storage
3204 variables. It is now entirely handled by the dwarf2 location
3205 expression code.
3206 * printcmd.c (address_info): Ditto.
3207 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3208 enumeration value.
3209 (struct symbol): Remove objfile field, which was used by
3210 LOC_THREAD_LOCAL_STATIC only.
3211 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3212 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3213 usage of objfile pointer.
3214 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3215 thread local variables.
3216 Add include of objfiles.h.
3217 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3218 storage variables.
3219 * Makefile.in (dwarf2loc.o): Update dependencies.
3220
aef9bcd2
AC
32212003-07-22 Andrew Cagney <cagney@redhat.com>
3222
3223 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3224 get_frame_base.
3225 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3226 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3227 (struct value): Add opaque declaration.
3228 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3229
d95a8903
AC
32302003-07-21 Andrew Cagney <cagney@redhat.com>
3231
3232 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3233 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3234
4db73d49
SC
32352003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3236
a8f4cde1 3237 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
3238 regcache_cooked_read_unsigned instead of read_register.
3239 (m68hc11_saved_pc_after_call): Likewise.
3240 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3241 instead of write_register.
3242 (m68hc11_register_type): New function.
3243 (m68hc11_register_virtual_type): Remove.
3244 (m68hc11_store_return_value): Convert to use the regcache.
3245 (m68hc11_extract_struct_value_address): Likewise.
3246 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3247 m68hc11_register_type; undeprecate store_return_value and
3248 extract_struct_value_address.
3249
ef2b8fcd
SC
32502003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3251
3252 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3253 and translate to use regcache.
3254 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3255
625b0b97
AC
32562003-07-18 Andrew Cagney <cagney@redhat.com>
3257
3258 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3259 * gdbarch.h, gdbarch.c: Re-generate.
3260 * i386-tdep.c (i386_gdbarch_init): Do not set
3261 DWARF2_BUILD_FRAME_INFO.
3262 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3263 unconditionally.
3264 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3265 DWARF2_BUILD_FRAME_INFO.
3266
22b0d388
AC
32672003-07-18 Andrew Cagney <cagney@redhat.com>
3268
3269 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3270 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3271
1ce5d6dd
AC
32722003-07-18 Andrew Cagney <cagney@redhat.com>
3273
3274 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3275 frame_unwind_address_in_block, instead of frame_pc_unwind.
3276 (dwarf2_frame_cache): Ditto.
3277
e6e5e94c
AC
32782003-07-18 Andrew Cagney <cagney@redhat.com>
3279
3280 * user-regs.h (struct gdbarch): Declare opaque.
3281 * ui-out.h (struct ui_file): Declare opaque.
3282 * dwarf2-frame.h (struct frame_info): Declare opaque.
3283
5483d879
KW
32842003-07-18 Kris Warkentin <kewarken@qnx.com>
3285
3286 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3287 #include "...".
3288 (procfs_meminfo): Change strerror to safe_strerror.
3289 (procfs_can_run): Remove K&R badness.
3290
278a7cf7
MS
32912003-07-17 Michael Snyder <msnyder@redhat.com>
3292
3293 * remote-sim.c: Comment typo fix.
3294
606e3b82
AC
32952003-07-17 Andrew Cagney <cagney@redhat.com>
3296
3297 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3298 configure.
3299 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3300 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3301 GDB_MULTI_ARCH_PARTIAL.
3302
c43af07c
EZ
33032003-07-17 Elena Zannoni <ezannoni@redhat.com>
3304
3305 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3306 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3307 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3308
3b85b0f1
TR
33092003-07-16 Theodore A. Roth <troth@openavr.org>
3310
3311 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3312 found.
3313 (avr_frame_unwind_cache): Don't unwind FP for main.
3314 Update a comment.
3315 Save the computed prev_sp.
3316 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 3317 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
3318 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3319
336d1bba
AC
33202003-07-16 Andrew Cagney <cagney@redhat.com>
3321
3322 * frame-base.h (frame_base_p_ftype): Delete definition.
3323 (frame_base_append_predicate): Delete declaration.
3324 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3325 (frame_unwind_append_predicate): Delete declaration.
3326 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3327 (append_predicate): Delete parameter "p".
3328 (frame_unwind_append_predicate): Delete function.
3329 (frame_unwind_append_sniffer): Update call to append_predicate.
3330 (frame_unwind_free): Delete function.
3331 (_initialize_frame_unwind): Pass NULL as "free" to
3332 register_gdbarch_data.
3333 (frame_unwind_init): Append the dummy_frame_sniffer.
3334 (frame_unwind_find_by_frame): Simplify.
3335 * frame-base.c (struct frame_base_table): Delete field "p".
3336 (append_predicate): Delete parameter "p".
3337 (frame_base_append_predicate): Delete function.
3338 (frame_base_append_sniffer): Update call to append_predicate.
3339 (frame_base_free): Delete function.
3340 (frame_base_find_by_frame): Simplify.
3341 (_initialize_frame_base): Pass NULL as "free" to
3342 register_gdbarch_data.
3343 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3344 (x86_64_sigtramp_frame_sniffer): Replace
3345 "x86_64_sigtramp_frame_p".
3346 (x86_64_init_abi): Set the frame unwind sniffers.
3347 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3348 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3349 (m68k_gdbarch_init): Set the frame unwind sniffers.
3350 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3351 "i386_sigtramp_frame_p".
3352 (i386_frame_sniffer): Replace "i386_frame_p".
3353 (i386_gdbarch_init): Set the frame unwind sniffers.
3354 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3355 (avr_gdbarch_init): Set the frame unwind sniffers.
3356 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3357 "alpha_sigtramp_frame_p"
3358 (alpha_heuristic_frame_sniffer): Replace
3359 "alpha_heuristic_frame_p".
3360 (alpha_gdbarch_init): Set the frame unwind sniffers.
3361 (alpha_dwarf2_init_abi): Ditto.
3362 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3363 "alpha_debug_frame_p".
3364 (alpha_mdebug_frame_base_sniffer): Replace
3365 "alpha_mdebug_frame_base_p".
3366 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3367 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3368 (d10v_gdbarch_init): Set the frame unwind sniffer.
3369 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3370 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3371 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3372 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3373 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3374 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3375
48db5a3c
CV
33762003-07-16 Michael Snyder <msnyder@redhat.com>
3377
3378 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3379 should go thru sh_dsp_register_sim_regno, else the dsp regs
3380 will not get the right values.
3381
33822003-07-16 Corinna Vinschen <vinschen@redhat.com>
3383
3384 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3385 deprecated_store_floating by call to store_typed_floating.
3386 (sh_sh4_register_convert_to_raw): Substitute call to
3387 deprecated_extract_floating by call to extract_typed_floating.
3388
33892003-07-16 Corinna Vinschen <vinschen@redhat.com>
3390
3391 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3392
33932003-07-16 Corinna Vinschen <vinschen@redhat.com>
3394
3395 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3396 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3397 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3398 as possible.
3399 (do_pseudo_register): Remove.
3400 (sh_push_dummy_code): New function.
3401 (sh64_store_struct_return): Rename from sh_store_struct_return.
3402 Only called for sh64 now.
3403 (sh_extract_struct_value_address): Regcache'ify.
3404 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3405 and accomodate new tasks.
3406 (sh64_push_return_address): Rename from sh_push_return_address.
3407 Only called for sh64 now.
3408 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3409 Regcache'ify.
3410 (sh3e_sh4_extract_return_value): Regcache'ify.
3411 (sh_default_store_return_value): Ditto.
3412 (sh3e_sh4_store_return_value): Ditto.
3413 (sh_default_register_byte): Remove.
3414 (sh_sh4_register_byte): Remove.
3415 (sh_default_register_raw_size): Remove.
3416 (sh_sh4_register_raw_size): Remove.
3417 (sh_register_virtual_size): Remove.
3418 (sh_sh3e_register_virtual_type): Remove.
3419 (sh_sh3e_register_type): New function.
3420 (sh_sh4_register_virtual_type): Remove.
3421 (sh_sh4_register_type): New function.
3422 (sh_default_register_virtual_type): Remove.
3423 (sh_default_register_type): New function.
3424 (do_fv_register_info): Add parameters to accomodate call from
3425 sh_print_registers_info.
3426 (do_dr_register_info): Ditto.
3427 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3428 Add parameters to accomodate call from sh_print_registers_info.
3429 (sh_do_fp_register): Ditto.
3430 (sh64_do_pseudo_register): Call do_dr_register_info,
3431 do_fv_register_info and sh_do_fp_register with default parameters.
3432 (sh_do_register): Add parameters to accomodate call from
3433 sh_print_registers_info.
3434 (sh_print_register): Ditto.
3435 (sh_print_registers_info): Rename from sh_do_registers_info.
3436 Add parameters to be used as gdbarch_print_registers_info
3437 implementation. Accomodate removed do_pseudo_register function
3438 pointer.
3439 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3440 function pointer. Call sh_print_register with default parameters.
3441 (sh64_do_registers_info): Call sh_print_registers_info instead of
3442 sh_do_registers_info.
3443 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3444 detection of deprecated vs. non-deprecated functionality.
3445 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3446 function pointer assignments by direct function calls.
3447
e8a89fe2
AC
34482003-07-15 Andrew Cagney <cagney@redhat.com>
3449
3450 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3451 (frame_register_unwind, create_new_frame): Ditto.
3452 (legacy_get_prev_frame, get_frame_type): Ditto.
3453 (get_frame_base_address): Use frame_base_find_by_frame.
3454 (get_frame_locals_address): Use frame_base_find_by_frame.
3455 (get_frame_args_address): Use frame_base_find_by_frame.
3456 * frame-base.h (frame_base_sniffer_ftype): Declare.
3457 (frame_base_append_sniffer): Declare.
3458 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3459 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3460 (frame_base_append_sniffer): New function.
3461 (frame_base_append_predicate): Add a NULL sniffer.
3462 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3463 (struct frame_base_table): Add "sniffer".
3464 (frame_base_free): Free the "sniffer" table.
3465 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3466 (frame_unwind_append_sniffer): Declare.
3467 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3468 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3469 (struct frame_unwind_table): Add "sniffer", delete "middle".
3470 (append_predicate): Add "sniffer" parameter, append the sniffer.
3471 (frame_unwind_init): Update append_predicate call.
3472 (frame_unwind_append_sniffer): New function.
3473 (frame_unwind_append_predicate): Update append_predicate call.
3474 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3475
0714963c
AC
34762003-07-15 Andrew Cagney <cagney@redhat.com>
3477
3478 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3479 before code inhibiting repeated unwind attempts. Add to
3480 commentary on that test's problems.
3481 * blockframe.c (inside_main_func): Look for "main" in the minimal
3482 symbol table.
3483 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3484 identical.
3485
d9170e22
AC
34862003-07-15 Andrew Cagney <cagney@redhat.com>
3487
3488 * complaints.c (struct explanation): Define.
3489 (struct complaints): Change type of "explanation" to "struct
3490 explanation".
3491 (symfile_explanations): Convert to a "struct explanation" table.
3492 (vcomplaint): Update.
3493
eba29c8c
ML
34942003-07-15 Michal Ludvig <mludvig@suse.cz>
3495
3496 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 3497 (supply_gregset, fill_gregset): Call
eba29c8c
ML
3498 x86_64_linux_(fill,supply)_gregset functions.
3499 * x86-64-linux-tdep.c (USER_*): New defines.
3500 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3501 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3502 New functions.
3503 (fetch_core_registers): Ditto.
3504 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3505 * x86-64-linux-tdep.h: New file.
3506 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3507 and core-regset.o.
3508 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3509
68cc0bfb
MK
35102003-07-13 Mark Kettenis <kettenis@gnu.org>
3511
88a115f7
MK
3512 * x86-64-tdep.c (x86_64_store_return_value): Use
3513 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3514
68cc0bfb
MK
3515 * configure.host: Add x86_64-*-freebsd*.
3516 * configure.tgt: Add x86_64-*-freebsd*.
3517 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3518 * amd64fbsd-nat.c: New file.
3519 * amd64fbsd-tdep.c: New file.
3520 * config/i386/nm-fbsd64.h: New file.
3521 * config/i386/fbsd64.mh: New file.
3522 * config/i386/fbsd64.mt: New file.
3523
138e7be5
MK
35242003-07-11 Mark Kettenis <kettenis@gnu.org>
3525
3526 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3527 `sc_regs_offset' and `sc_fpregs_offset'.
3528 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3529 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3530 (alpha_sigtramp_register_address): Rewrite to use new members of
3531 `struct gdbarch_tdep'.
3532 (alpha_gdbarch_init): Initialize new members of struct
3533 gdbarch_tdep'.
3534 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3535 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3536 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3537 (alphafbsd_pc_in_sigtramp): Implement.
3538 (alphafbsd_sigtramp_offset): New function.
3539 (alphafbsd_sigcontext_addr): New function.
3540 (alphafbsd_init_abi): Initialize signal trampoline related members
3541 of `struct gdbarch_tdep'.
3542 (_initialize_alphafbsd_tdep): Add prototype.
3543
95303a68
TR
35442003-07-11 Theodore A. Roth <troth@openavr.org>
3545
ba292e4c
TR
3546 * Makefile.in (install-only): Quote sed expression when generating
3547 transformed_name.
95303a68 3548
6896c0c7
RH
35492003-07-11 Richard Henderson <rth@redhat.com>
3550
3551 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3552 * dwarf2-frame.c: Include complaints.h.
3553 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3554 variable initialization; return NULL on error.
3555 (decode_frame_entry): New.
3556
8edd5d01
AC
35572003-07-11 Andrew Cagney <cagney@redhat.com>
3558
c4a09524
AC
3559 * frame.h (frame_address_in_block): Delete declaration.
3560 * blockframe.c (frame_address_in_block): Delete function.
3561 (get_frame_block): Use get_frame_address_in_block.
3562 (block_innermost_frame): Ditto.
3563 * stack.c (print_frame, backtrace_command_1): Ditto.
3564
8edd5d01
AC
3565 * frame.h (get_frame_address_in_block): Declare.
3566 (frame_unwind_address_in_block): Declare.
3567 * frame.c (frame_unwind_address_in_block): New function.
3568 (get_frame_address_in_block): New function.
3569
f7968451
AC
35702003-07-10 Andrew Cagney <cagney@redhat.com>
3571
3572 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3573 pre-default. Note: re-generate has no effect.
a8f4cde1 3574
ae99b398
AC
35752003-07-10 Andrew Cagney <cagney@redhat.com>
3576
3577 * gdbarch.sh: When a variable, but not a function, compare against
3578 0. Fix problem in previous patch.
3579 * gdbarch.c: Re-generate.
a8f4cde1 3580
956ac328
AC
35812003-07-10 Andrew Cagney <cagney@redhat.com>
3582
3583 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3584 functions against NULL, not 0.
3585 * gdbarch.c: Re-generate.
a8f4cde1 3586
287c3240
FF
35872003-07-10 Fred Fish <fnf@ninemoons.com>
3588
3589 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3590 null string instead of a null pointer.
3591 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3592
32f63c4b
MS
35932003-07-09 Michael Snyder <msnyder@redhat.com>
3594
3595 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3596
402ecd56
MK
35972003-07-09 Mark Kettenis <kettenis@gnu.org>
3598
3599 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3600 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3601 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3602 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3603 * x86-64-tdep.c: ... from here.
3604
c481dac7
AS
36052003-07-09 Andreas Schwab <schwab@suse.de>
3606
3607 * m68k-tdep.h (enum struct_return): Define.
3608 (struct gdbarch_tdep): Add struct_return.
3609 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3610 bytes are padded to the right, not to the left. Pass struct value
3611 address in register %a1, not on stack.
3612 (m68k_use_struct_convention): New function.
3613 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3614 struct_return in tdep to pcc_struct_return.
3615 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3616 reg_struct_return.
3617
a8f4cde1 36182003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 3619
a8f4cde1 3620 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 3621
96a4ee76
AC
36222003-07-09 Andrew Cagney <cagney@redhat.com>
3623
3624 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3625 Add comments about the checks.
3626
1517c6d1
AC
36272003-07-08 Andrew Cagney <cagney@redhat.com>
3628
3629 * Makefile.in: Make dependency section headers consistent.
3630 (config_h): Move to $BUILD headers section.
3631 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3632 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3633 (ada-exp.tab.c): Move to YACC/LEX section.
3634 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3635 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3636
dc5dd1eb
KW
36372003-07-08 Kris Warkentin <kewarken@qnx.com>
3638
3639 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3640 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3641 of strerror with safe_strerror, use ISO C function definitions,
3642 and replace instances of sprintf with snprintf.
dc5dd1eb 3643
612dde91
AC
36442003-07-07 Andrew Cagney <cagney@redhat.com>
3645
3646 * frame.c (get_prev_frame): Enable check for identical frames.
3647 Update comments. Update error messages.
3648
492c11d3
JB
36492003-07-07 Joel Brobecker <brobecker@gnat.com>
3650
3651 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3652
376a5a49
JB
36532003-07-07 Joel Brobecker <brobecker@gnat.com>
3654
3655 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3656 sort_symtab_syms, no longer necessary.
3657
22b4a9ad
JB
36582003-07-07 Joel Brobecker <brobecker@gnat.com>
3659
3660 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3661
5bbcb741
JB
36622003-07-07 Joel Brobecker <brobecker@gnat.com>
3663
3664 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3665 (mips_register_byte): Likewise.
3666
c139e7d9
DJ
36672003-07-07 Daniel Jacobowitz <drow@mvista.com>
3668
3669 * Makefile.in (sparc_tdep_h): New.
3670 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3671 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3672 * sparc-linux-nat.c: Include "sparc-tdep.h".
3673 * sparc-nat.c: Likewise.
3674 * sparc-tdep.c: Likewise.
3675 * sparc64nbsd-nat.c: Likewise.
3676 * sparcnbsd-nat.c: Likewise.
3677 * sparcnbsd-tdep.c: Likewise.
3678 * sparc-tdep.h: New file.
3679 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3680 and sparc_npc_regnum.
3681
fd8f87c5
DJ
36822003-07-07 Daniel Jacobowitz <drow@mvista.com>
3683
3684 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3685 (mips_linux_cannot_store_register): List supported instead of
3686 unsupported registers.
3687
13adf674
DJ
36882003-07-07 Daniel Jacobowitz <drow@mvista.com>
3689
3690 * disasm.c (dump_insns): Separate instructions from addresses.
3691
8de307e0
AS
36922003-07-07 Andreas Schwab <schwab@suse.de>
3693
3694 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3695 dependencies.
3696 * m68k-tdep.c (NUM_FREGS): Delete.
3697 (SIG_PC_FP_OFFSET): Delete.
3698 (TARGET_M68K): Delete.
3699 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3700 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3701 P_MOVEL_SP, P_MOVEML_SP): Define.
3702 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3703 P_TRAP): Delete.
3704 (m68k_register_raw_size): Delete.
3705 (m68k_register_virtual_size): Delete.
3706 (m68k_register_type): Renamed from m68k_register_virtual_type and
3707 add gdbarch argument.
3708 (m68k_store_struct_return): Delete.
3709 (m68k_deprecated_extract_return_value): Delete.
3710 (m68k_deprecated_extract_struct_value_address): Delete.
3711 (m68k_frame_chain): Delete.
3712 (m68k_frame_saved_pc): Delete.
3713 (m68k_fix_call_dummy): Delete.
3714 (m68k_push_dummy_frame): Delete.
3715 (m68k_pop_frame): Delete.
3716 (m68k_extract_return_value): New function.
3717 (m68k_store_return_value): Rewrite using regcache.
3718 (m68k_extract_struct_value_address): Rewrite using regcache.
3719 (m68k_push_dummy_call): New function.
3720 (struct m68k_frame_cache): Define.
3721 (m68k_alloc_frame_cache): New function.
3722 (m68k_analyze_frame_setup): New function.
3723 (m68k_analyze_register_saves): New function.
3724 (m68k_analyze_prologue): New function.
3725 (m68k_skip_prologue): Rewrite using above functions.
3726 (m68k_unwind_pc): New function.
3727 (m68k_frame_cache): New function.
3728 (m68k_frame_this_id): New function.
3729 (m68k_frame_prev_register): New function.
3730 (m68k_frame_unwind): New variable.
3731 (m68k_frame_p): New function.
3732 (m68k_sigtramp_frame_cache): New function.
3733 (m68k_sigtramp_frame_this_id): New function.
3734 (m68k_sigtramp_frame_prev_register): New function.
3735 (m68k_sigtramp_frame_unwind): New variable.
3736 (m68k_sigtramp_frame_p): New function.
3737 (m68k_frame_base_address): New function.
3738 (m68k_frame_base): New function.
3739 (m68k_unwind_dummy_id): New function.
3740 (fill_gregset): Use regcache_collect.
3741 (fill_fpregset): Likewise.
3742 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3743 defined.
3744 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3745 deprecated_init_frame_pc, deprecated_store_struct_return,
3746 deprecated_extract_return_value, deprecated_store_return_value,
3747 deprecated_frame_chain, deprecated_frame_saved_pc,
3748 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3749 deprecated_register_virtual_size,
3750 deprecated_max_register_raw_size,
3751 deprecated_max_register_virtual_size,
3752 deprecated_register_virtual_type, deprecated_register_size,
3753 deprecated_register_byte, deprecated_register_bytes,
3754 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3755 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3756 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3757 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3758 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3759 deprecated_push_dummy_frame, deprecated_pop_frame,
3760 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3761 only if SYSCALL_TRAP is defined. Set extract_return_value,
3762 store_return_value, extract_struct_value_address, register_type,
3763 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3764 predicates.
3765 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3766 M68K_MAX_REGISTER_SIZE): Define.
3767 (struct m68k_sigtramp_info): Define.
3768 (struct gdbarch_tdep): Add get_sigtramp_info.
3769 * m68klinux-nat.c (fetch_register): Use register_size instead of
3770 REGISTER_RAW_SIZE. Don't put assignment in if.
3771 (store_register): Likewise.
3772 (fetch_inferior_registers): Likewise.
3773 (store_inferior_registers): Likewise.
3774 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3775 (m68k_linux_frame_saved_pc): Delete.
3776 (m68k_linux_sigcontext_reg_offset,
3777 m68k_linux_ucontext_reg_offset): Define.
3778 (m68k_linux_get_sigtramp_info): New function.
3779 (m68k_linux_extract_return_value): Rewrite using regcache.
3780 (m68k_linux_store_return_value): Likewise.
3781 (m68k_linux_extract_struct_value_address): Likewise.
3782 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3783 Don't set deprecated_frame_saved_pc,
3784 deprecated_extract_return_value, deprecated_store_return_value,
3785 deprecated_extract_struct_value_address. Set
3786 extract_return_value, store_return_value,
3787 extract_struct_value_address.
3788
eb8bc282
AC
37892003-07-07 Andrew Cagney <cagney@redhat.com>
3790
3791 * expprint.c: Include "user-regs.h" instead of "frame.h".
3792 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3793 frame_map_regnum_to_name.
3794 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3795 (frame_map_name_to_regnum): Simplify, call
3796 user_reg_map_name_to_regnum.
3797 (frame_map_regnum_to_name): Simplify, call
3798 user_reg_map_regnum_to_name.
3799 (frame_register_unwind): Update.
3800 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3801 (_initialize_frame_reg): Call user_reg_add_builtin.
3802 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3803 (value_of_register): Use value_of_user_reg.
3804 * eval.c (evaluate_subexp_standard): Update.
3805 * parse.c (write_dollar_variable): Update.
3806 * d10v-tdep.c (d10v_print_registers_info): Update.
3807 * infcmd.c (registers_info): Update.
3808 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3809 (builtin_regs_h): Delete macro.
3810 (user_regs_h): Define.
3811 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3812 (builtin-regs.o): Delete target.
3813 (user-regs.o): Specify dependencies.
3814 (expprint.o): Update dependencies.
3815 (findvar.o): Update dependencies.
3816 (frame.o): Update dependencies.
3817 (std-regs.o): Update dependencies.
3818
9f476a01
CF
38192003-07-06 Christopher Faylor <cgf@redhat.com>
3820
3821 * win32-nat.c (solib_symbols_add): Use one variable for all section
3822 address stuff. Pass variable rather than address of variable to
3823 safe_symbol_file_add.
3824
a731b831
AS
38252003-07-06 Andreas Schwab <schwab@suse.de>
3826
3827 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3828
9f83329d
JB
38292003-07-04 Joel Brobecker <brobecker@gnat.com>
3830
3831 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3832
27e28cc5
KW
38332003-07-04 Kris Warkentin <kewarken@qnx.com>
3834
3835 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3836
38372003-07-04 Kris Warkentin <kewarken@qnx.com>
3838
3839 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3840 * config/i386/nto.mh: New file.
3841 * config/i386/nm-nto.h: New file.
3842 * configure.host: Add i[3456]86-*-nto*.
3843
100f2e98
JB
38442003-07-03 Joel Brobecker <brobecker@gnat.com>
3845
3846 * remote-vx.c (vx_add_symbols): Fix compilation error.
3847
e23457df
AC
38482003-07-03 Andrew Cagney <cagney@redhat.com>
3849
3850 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3851 * gdbarch.h, gdbarch.c: Re-generate.
3852 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3853 (legacy_register_name): Declare.
3854 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3855 (REGISTER_NAME): Define.
3856 * sparc-tdep.c (legacy_register_name): New function.
3857 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3858 (REGISTER_NAME): Define.
3859 (hppa64_register_name): Declare.
3860 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3861 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3862 (hppa64_register_name): New function.
3863 (hppa_register_name): New function.
3864 * arch-utils.c (legacy_register_name): Delete.
3865 * arch-utils.h (legacy_register_name): Delete.
3866
38caaeec
DJ
38672003-07-03 Daniel Jacobowitz <drow@mvista.com>
3868
3869 * cli/cli-interp.c (cli_interpreter_resume): Update the
3870 cli_uiout's stream to gdb_stdout.
3871
dadd712e
AC
38722003-07-03 Andrew Cagney <cagney@redhat.com>
3873
3874 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3875 predicate.
3876 * gdbarch.h, gdbarch.c: Re-generate.
3877 * regcache.c (init_regcache_descr): Use legacy code when either
3878 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3879
c7f1390e
DJ
38802003-07-02 Daniel Jacobowitz <drow@mvista.com>
3881
3882 * NEWS: Move "set logging" entry into GDB 6.0 section.
3883
4bc8c588
JB
38842003-07-02 Jim Blandy <jimb@redhat.com>
3885
a9dd42f1
JB
3886 * s390-tdep.c (struct frame_extra_info): new member:
3887 'stack_bought_valid'.
3888 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3889 initialize fextra_info->stack_bought.
3890 (s390_frameless_function_invocation): Don't trust the value of
3891 fextra_info_ptr->stack_bought unless
3892 fextra_info->stack_bought_valid is set.
3893
4bc8c588
JB
3894 New S390 prologue analyzer.
3895 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3896 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3897 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3898 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3899 compute_x_addr, s390_on_stack, s390_store,
3900 s390_get_signal_frame_info): New functions.
3901 (S390_NUM_SPILL_SLOTS): New macro.
3902 (s390_get_frame_info): Rewritten.
3903 (is_arg_reg): Deleted.
3904
3905 Break out the decoding of S/390 instructions into separate
3906 functions, to make it more legible, and easier to check
3907 against the spec.
3908 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3909 is_rx, is_rxe): New functions.
3910 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3911 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3912 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3913 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3914 enums for opcode values. (Is this an improvement?)
3915
fd13a04a
AC
39162003-07-02 Andrew Cagney <cagney@redhat.com>
3917
3918 * i386-tdep.c: Revert change committed as part of trad-frame code
3919 below.
3920
3f8091c1
DJ
39212003-07-02 Daniel Jacobowitz <drow@mvista.com>
3922
3923 * breakpoint.c (insert_catchpoint): Make static.
3924
8dd5115e
AS
39252003-07-02 Andreas Schwab <schwab@suse.de>
3926
3927 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3928 former ia64_push_arguments and ia64_push_return_address, and use
3929 regcache functions instead of read/write_register.
3930 (ia64_gdbarch_init): Set push_dummy_call instead of
3931 deprecated_push_arguments and deprecated_push_return_address.
3932
a2229c23
AJ
39332003-07-01 Andreas Jaeger <aj@suse.de>
3934
3935 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3936 before the call.
3937 Set %rax only to number of SSE registers used.
3938
3b3850e8
AC
39392003-07-01 Andrew Cagney <cagney@redhat.com>
3940
3941 * trad-frame.h: Update comments, a -1 .addr is reserved.
3942 (trad_frame_value_p, trad_frame_addr_p): Declare.
3943 (trad_frame_reg_p): Declare.
3944 (trad_frame_set_value): Rename trad_frame_register_value.
3945 (trad_frame_set_unknown): Declare.
3946 * trad-frame.c (trad_frame_realreg_p): New function.
3947 (trad_frame_addr_p, trad_frame_value_p): New function.
3948 (trad_frame_set_unknown): New function.
3949 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3950 (trad_frame_prev_register): Use trad_frame_realreg_p,
3951 trad_frame_addr_p and trad_frame_value_p.
3952 (trad_frame_set_value): Rename trad_frame_register_value.
3953 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3954 and trad_frame_set_value.
a2229c23 3955
4d819d0e
JB
39562003-06-30 Jim Blandy <jimb@redhat.com>
3957
3958 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3959 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3960 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3961 for 16 registers, and then 32 more bytes.
3962 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3963 New macros.
3964 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3965 Move up in the file, since it's now used by is_simple_arg.
3966 (is_simple_arg): Don't assume registers are four bytes long.
3967 Exclude all double arguments. Extended floats are not simple
3968 args.
3969 (is_power_of_two): New function.
3970 (pass_by_copy_ref): Call is_power_of_two, and check that the
3971 length fits in a register, rather than listing all the acceptable
3972 sizes. Extended floats are not passed by reference.
3973 (s390_push_arguments): Don't assume registers are four bytes long.
3974 Reserve an argument register to point to the buffer for structures
3975 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3976 S390_STACK_FRAME_OVERHEAD.
3977
1ad828f1
AS
39782003-06-30 Andreas Schwab <schwab@suse.de>
3979
3980 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3981 format error message.
3982
39b00981
JB
39832003-06-30 Joel Brobecker <brobecker@gnat.com>
3984
3985 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3986
b2a7f303
DC
39872003-06-30 David Carlton <carlton@kealia.com>
3988
3989 Band-aid for PR c++/1245.
3990 * Makefile.in (cp-support.o): Depend on complaints_h.
3991 * cp-support.c: Include complaints.h. Add declaration for
3992 find_last_component.
3993 (cp_find_first_component): Separate code into
3994 cp_find_first_component_aux.
3995 (cp_find_first_component_aux): Call demangled_name_complaint.
3996 (demangled_name_complaint): New.
3997
a257b5bb
AC
39982003-06-30 Andrew Cagney <cagney@redhat.com>
3999
4000 * remote.c (remote_write_bytes): Explicitly compute and then use
4001 the payload size. Update comments to reflect. Fixes problem of
4002 GDB not sending small packets as found by Fred Fish.
4003
0a2cfde4
AC
40042003-06-30 Andrew Cagney <cagney@redhat.com>
4005
4006 * remote.c (remote_async_wait): Fix -Wformat problem.
4007
3fcb8548
AC
40082003-06-29 Andrew Cagney <cagney@redhat.com>
4009
4010 * remote.c (remote_wait): Call error, and not warning, when the
4011 packet is corrupt.
4012 (remote_async_wait): Ditto.
4013
9f9970a3
DJ
40142003-06-29 Daniel Jacobowitz <drow@mvista.com>
4015
4016 * sparc-tdep.c (sparc_y_regnum): Make external again.
4017
83a8ccca
DJ
40182003-06-29 Daniel Jacobowitz <drow@mvista.com>
4019
4020 * cli/cli-logging.c (pop_output_files): Add void to function
4021 definition.
4022
d2cf594a
AC
40232003-06-29 Andrew Cagney <cagney@redhat.com>
4024
4025 * frame.c (frame_register_unwind): Use unsigned char when dumping
4026 the buffer contents.
4027
0fac0b41
DJ
40282003-06-28 Daniel Jacobowitz <drow@mvista.com>
4029
4030 * cli/cli-logging.c: New file.
4031 * cli-out.c (struct ui_out_data): Add original_stream.
4032 (cli_redirect): New function.
4033 (cli_ui_out_impl): Add cli_redirect.
4034 (cli_out_new): Initialize original_stream.
4035 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4036 (uo_redirect, ui_out_redirect): New.
4037 * ui-out.h (struct ui_out_impl): Add redirect member.
4038 (redirect_ftype): New.
4039 (ui_out_redirect): Add prototype.
4040 * Makefile.in: Add rules for cli-logging.c.
4041 * NEWS: Mention "set logging".
4042
88a07d7c
EZ
40432003-06-27 Elena Zannoni <ezannoni@redhat.com>
4044
4045 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4046
4eb58876
AC
40472003-06-27 Andrew Cagney <cagney@redhat.com>
4048
4049 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4050 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4051 * avr-tdep.c (avr_call_dummy_address): Delete function.
4052 (avr_gdbarch_init): Do not set call_dummy_address.
4053
1549f619
EZ
40542003-06-27 Elena Zannoni <ezannoni@redhat.com>
4055
4056 * symfile.c (syms_from_objfile): Move variables to inner block.
4057 Move the checks for the non-mainline case a bit earlier to avoid
4058 doing some useless computations.
4059
3cb3398d
EZ
40602003-06-27 Elena Zannoni <ezannoni@redhat.com>
4061
4062 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4063
3799ccc6
EZ
40642003-06-26 Elena Zannoni <ezannoni@redhat.com>
4065
4066 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4067 sections.
4068
ce1f6491
MC
40692003-06-26 Michael Chastain <mec@shout.net>
4070
4071 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4072 gdb/testsuite/gdb.c++/pr-1210.exp.
4073
d958dfd0
AC
40742003-06-26 Andrew Cagney <cagney@redhat.com>
4075
4076 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4077 altivec_expression.h and altivec_registers.h.
4078
d31431ed
AC
40792003-06-26 Andrew Cagney <cagney@redhat.com>
4080
4081 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4082 info->mach when MIPS16. Patch suggested by Fred Fish.
4083
714b1282
AC
40842003-06-26 Andrew Cagney <cagney@redhat.com>
4085
4086 * utils.c (internal_vproblem): Print the problem to a reason
4087 buffer and then pass to query. Make the msg variable more local.
4088
42efa47a
AC
40892003-06-26 Andrew Cagney <cagney@redhat.com>
4090
4091 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4092 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4093 * gdbarch.h, gdbarch.c: Re-generate.
4094 * frame-base.c (default_frame_args_address): Update. Use
4095 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4096 not available.
4097 (default_frame_locals_address): Ditto for
4098 DEPRECATED_FRAME_LOCALS_ADDRESS.
4099 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4100 (vax_frame_num_args): Update.
4101 (vax_gdbarch_init): Update.
4102 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4103 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4104 * mcore-tdep.c (mcore_gdbarch_init): Update.
4105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4106 * ia64-tdep.c (ia64_gdbarch_init): Update.
4107 * symtab.h (address_class): Update comments.
4108 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4109 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4110 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4111 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4112 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4113 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4114 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4115 * alpha-mdebug-tdep.c: Update.
4116 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4117
8ffd9b1b
AJ
41182003-06-26 Andreas Jaeger <aj@suse.de>
4119
4120 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4121 of SSE registers so that varargs functions work. Rework handling
4122 of passing arguments on the stack.
4123 (x86_64_store_return_value): Return double and float values in SSE
4124 register.
4125
e8ac10a6
MC
41262003-06-24 Michael Chastain <mec@shout.net>
4127
4128 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4129 the "constructor breakpoints ignored" bug.
4130
986af8e6
DC
41312003-06-25 David Carlton <carlton@kealia.com>
4132
4133 * MAINTAINERS: Update e-mail address.
4134
d64558a5
JB
41352003-06-24 Jim Blandy <jimb@redhat.com>
4136
e538d2d7
JB
4137 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4138
02631ec0
JB
4139 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4140 function.
4141 (ppc_linux_init_abi): Register it as the
4142 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4143
e716d87a
JB
4144 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4145 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4146 method.
4147
d64558a5
JB
4148 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4149 (ppc64_standard_linkage_target): Use it.
4150
449a5da4
AC
41512003-06-23 Andrew Cagney <cagney@redhat.com>
4152
4153 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4154 for 0 "int0" and 4 "int32" sized registers.
4155 * gdbtypes.c (builtin_type_int0): Define.
4156 (build_gdbtypes): Initialize builtin_type_int0.
4157 * gdbtypes.h (builtin_type_int0): Declare.
4158
b2a02dda
SC
41592003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4160
4161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4162 as characters are unsigned.
4163
fba3138e
DJ
41642003-06-22 Daniel Jacobowitz <drow@mvista.com>
4165
4166 PR gdb/1179
4167 * dwarfread.c (struct_type): Skip static fields without crashing.
4168
f6c8180b
AC
41692003-06-22 Andrew Cagney <cagney@redhat.com>
4170
4171 GDB 6.0 branch created.
f2c06f52
AC
4172 * README: Update.
4173 * PROBLEMS: Update. Empty.
4174 * NEWS: Update.
f6c8180b 4175
ae822768
DJ
41762003-06-22 Daniel Jacobowitz <drow@mvista.com>
4177
4178 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4179 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4180
261de166
AC
41812003-06-22 Andrew Cagney <cagney@redhat.com>
4182
4183 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4184 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4185 Velikov.
4186
30e94205
DJ
41872003-06-22 Daniel Jacobowitz <drow@mvista.com>
4188
4189 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4190 compilers.
4191
9e14d721
DJ
41922003-06-21 Daniel Jacobowitz <drow@mvista.com>
4193
4194 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4195 argument of val_print.
4196 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4197 to the address argument of baseclass_offset or target_read_memory.
4198 Do add it to the argument of cp_print_value_fields.
4199
a4b8ebc8
AC
42002003-06-21 Andrew Cagney <cagney@redhat.com>
4201
4202 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4203 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4204 instead of 0..NUM_REGS.
4205 (mips_register_reggroup_p): New function.
4206 (mips_pseudo_register_write): New function.
4207 (mips_pseudo_register_read): New function.
4208 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4209 based on the register's type.
4210 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4211 cooked.
4212 (mips_get_saved_register): Simplify. Assert that REGNO is a
4213 pseudo / cooked.
4214 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4215 (mips_register_type): Replace mips_register_virtual_type. Map
4216 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4217 when available.
4218 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4219 that the register is cooked / virtual.
4220 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4221 Only get the extra info when needed.
4222 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4223 (mips32_heuristic_proc_desc): Fetch the cooked register.
4224 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4225 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4226 (mips_print_register): Use gdbarch_register_type, instead of
4227 REGISTER_VIRTUAL_TYPE.
4228 (print_gp_register_row): Use gdbarch_register_type, instead of
4229 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4230 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4231 Print the pseudo / cooked registers.
4232 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4233 Print the pseudo / cooked registers.
4234 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4235 REG_NUM is pseudo / cooked.
4236 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4237 (mips_n32n64_xfer_return_value): Ditto.
4238 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4239 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4240 (mips_register_sim_regno): New function.
4241 (mips_gdbarch_init): Set deprecated_register_byte,
4242 register_group_p, pseudo_register_write, pseudo_register_read,
4243 register_sim_regno, and num_pseudo_regs. Set register_type,
4244 instead of register_virtual_type.
4245 * Makefile.in (mips-tdep.o): Update dependencies.
4246 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4247 REGISTER_VIRTUAL_TYPE.
4248 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4249 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4250 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4251 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4252 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4253
325ed089
DJ
42542003-06-21 Daniel Jacobowitz <drow@mvista.com>
4255
4256 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4257 * cli/cli-cmds.c: Include "gdb_vfork.h".
4258 (shell_escape): Use vfork.
4259
f0e7d0e8
AC
42602003-06-21 Andrew Cagney <cagney@redhat.com>
4261
c57bb9fa
AC
4262 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4263 32 bit floating-point register saves.
4264
6e51443a
AC
4265 * frame.h (deprecated_unwind_get_saved_register): Delete.
4266 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4267 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4268 and deprecated_get_next_frame_hack instead of
4269 deprecated_unwind_get_saved_register.
4270
ed183c7c
AC
4271 * mips-tdep.c (mips_dump_tdep): Do not print
4272 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4273
f0e7d0e8
AC
4274 * frame.c (get_frame_register): New function.
4275 (frame_unwind_register_signed): New function.
4276 (get_frame_register_signed): New function.
4277 (frame_unwind_register_unsigned): New function.
4278 (get_frame_register_unsigned): New function.
4279 * frame.h: Add comments on naming schema.
4280 (get_frame_register, frame_unwind_register_signed): Declare.
4281 (get_frame_register_signed, get_frame_register_signed): Declare.
4282 (frame_unwind_register_unsigned): Declare.
4283 (get_frame_register_unsigned): Declare.
4284
2224d941
TR
42852003-06-20 Theodore A. Roth <troth@openavr.org>
4286
4287 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4288
8619218d
TR
42892003-06-20 Theodore A. Roth <troth@openavr.org>
4290
4291 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4292 (avr_read_sp): Ditto.
4293
0b1b50c0
DJ
42942003-06-20 Daniel Jacobowitz <drow@mvista.com>
4295
4296 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4297 * config/arm/nm-linux.h: Likewise.
4298 * config/arm/tm-linux.h: Likewise.
4299 * config/ia64/nm-linux.h: Likewise.
4300 * config/ia64/tm-ia64.h: Likewise.
4301 * config/s390/tm-linux.h: Likewise.
4302 * config/s390/tm-s390.h: Likewise.
4303 * s390-nat.c: Likewise.
4304 * s390-tdep.c: Likewise.
4305
4306 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4307 * config/ia64/linux.mt: Likewise.
4308 * config/m68k/linux.mh: Likewise.
4309 * config/mips/linux.mt: Likewise.
4310 * config/powerpc/linux.mh: Likewise.
4311 * config/sh/linux.mt: Likewise.
4312
c8c18e65
KW
43132003-06-19 Kris Warkentin <kewarken@qnx.com>
4314
4315 * solib.c (solib_open): Change tests for whether to search
4316 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4317 comments.
4318
dcccef2e
TR
43192003-06-19 Theodore A. Roth <troth@openavr.org>
4320
4321 * avr-tdep.c (avr_frame_address): Delete function.
4322 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4323 set_gdbarch_frame_args_address.
4324
5861a190
AC
43252003-06-19 Andrew Cagney <cagney@redhat.com>
4326
4327 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4328 (REGISTER_CONVERT_FROM_TYPE): Delete.
4329 (mips_register_convert_to_type): Delete declaration.
4330 (mips_register_convert_from_type): Delete declaration.
4331 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4332 kernel/.
4333
0274a8ce
MS
43342003-06-19 Michael Snyder <msnyder@redhat.com>
4335
4336 * linux-nat.h: New file.
4337 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4338 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4339 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4340 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4341 (linux_make_note_section): Iterate over lwps instead of threads.
4342 (linux_do_thread_registers): Use lwp instead of merged pid.
4343 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4344 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4345 Add dependency on linux_nat_h.
4346
adf5f719
TR
43472003-06-19 Theodore A. Roth <troth@openavr.org>
4348
4349 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4350
6766a268
DJ
43512003-06-19 Daniel Jacobowitz <drow@mvista.com>
4352
4353 * varobj.c (get_type, get_target_type): Use check_typedef.
4354
1171114a
DJ
43552003-06-19 Daniel Jacobowitz <drow@mvista.com>
4356
4357 * breakpoint.c (insert_catchpoint): Call internal_error.
4358
adcf68a2
TR
43592003-06-19 Theodore A. Roth <troth@openavr.org>
4360
4361 * avr-tdep.c (avr_push_dummy_code): Delete function.
4362 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4363
ea67f13b
DJ
43642003-06-19 Daniel Jacobowitz <drow@mvista.com>
4365
4366 * arch-utils.c (default_prepare_to_proceed): Remove.
4367 (generic_prepare_to_proceed): Remove.
4368 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4369 (generic_prepare_to_proceed): Remove prototype.
4370 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4371 * gdbarch.c: Regenerate.
4372 * gdbarch.h: Regenerate.
4373 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4374 * hppah-nat.c (hppa_switched_threads): Remove.
4375 * infrun.c (prepare_to_proceed): New static function, copied from
4376 generic_prepare_to_proceed. Remove select_it argument.
4377 (proceed): Call prepare_to_proceed.
4378 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4379 variables.
4380 (ptrace_wait): Don't set the removed variables.
4381 (hppa_switched_threads): Remove.
4382 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4383 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4384 (lin_lwp_prepare_to_proceed): Remove prototype.
4385 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4386 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4387
4add8633
TR
43882003-06-18 Theodore A. Roth <troth@openavr.org>
4389
4390 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4391 trad-frame.h.
4392 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4393 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4394 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4395 (AVR_PROLOGUE_*): Enumerate prologue types.
4396 (struct frame_extra_info): Remove.
4397 (struct avr_unwind_cache): Define.
4398 (avr_write_sp): Delete function.
4399 (avr_read_fp): Ditto.
4400 (avr_init_extra_frame_info): Ditto.
4401 (avr_pop_frame): Ditto.
4402 (avr_frame_saved_pc): Ditto.
4403 (avr_saved_pc_after_call): Ditto.
4404 (avr_push_return_address): Ditto.
4405 (avr_frame_chain): Ditto.
4406 (avr_store_struct_return): Ditto.
4407 (avr_push_arguments): Ditto.
4408 (avr_scan_prologue): Update comments. Changed to set up the info for
4409 cache unwinding. Now returns end of prologue PC.
4410 (avr_skip_prologue): Better handling of functions lacking a prologue
4411 by using avr_scan_prologue.
4412 (avr_scan_arg_moves): New function.
4413 (avr_saved_regs_unwinder): Ditto.
4414 (avr_frame_unwind_cache): Ditto.
4415 (avr_unwind_pc): Ditto.
4416 (avr_frame_this_id): Ditto.
4417 (avr_frame_prev_register): Ditto.
4418 (avr_frame_p): Ditto.
4419 (avr_frame_base_address ): Ditto.
4420 (avr_unwind_dummy_id): Ditto.
4421 (avr_push_dummy_code): Ditto.
4422 (push_stack_item): Ditto.
4423 (pop_stack_item): Ditto.
4424 (avr_push_dummy_call): Ditto.
4425 (struct stack_item): Define.
4426 (avr_frame_unwind): Declare structure.
4427 (avr_frame_base): Ditto.
4428 (avr_gdbarch_init): Remove calls to
4429 set_gdbarch_deprecated_init_frame_pc,
4430 set_gdbarch_deprecated_target_read_fp,
4431 set_gdbarch_deprecated_dummy_write_sp,
4432 set_gdbarch_deprecated_fp_regnum,
4433 set_gdbarch_deprecated_push_arguments,
4434 set_gdbarch_deprecated_push_return_address,
4435 set_gdbarch_deprecated_pop_frame,
4436 set_gdbarch_deprecated_store_struct_return,
4437 set_gdbarch_deprecated_frame_init_saved_regs,
4438 set_gdbarch_deprecated_init_extra_frame_info,
4439 set_gdbarch_deprecated_frame_chain,
4440 set_gdbarch_deprecated_frame_saved_pc,
4441 set_gdbarch_deprecated_saved_pc_after_call.
4442 Add calls to set_gdbarch_push_dummy_call,
4443 set_gdbarch_push_dummy_code,
4444 frame_unwind_append_predicate,
4445 frame_base_set_default,
4446 set_gdbarch_unwind_dummy_id,
4447 set_gdbarch_unwind_pc.
4448 Wrap a long line.
4449
7be04a68
MS
44502003-06-18 Corinna Vinschen <vinschen@redhat.com>
4451
4452 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4453 registers for H8/300S.
4454 (h8300_print_registers_info): Ditto.
8ffd9b1b 4455 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4456
ae087d01
DJ
44572003-06-18 Daniel Jacobowitz <drow@mvista.com>
4458
4459 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4460 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4461 (lin_lwp_wait): Likewise. Update comments.
4462 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4463 (pull_pid_from_list, linux_record_stopped_pid): New.
4464
07d8f827
SC
44652003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4466
4467 * ada-lang.c (scan_discrim_bound): Name first argument.
4468 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4469 declared by ALL_BLOCK_SYMBOLS.
4470
7cb47b14
SC
44712003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4472
4473 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4474 ("regcache.h"): Include it.
4475 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4476
6ad8ae5c
DJ
44772003-06-17 Daniel Jacobowitz <drow@mvista.com>
4478
4479 * NEWS: Mention gdbserver detach change and "disconnect" command.
4480 * infcmd.c (disconnect_command): New function.
4481 (_initialize_infcmd): Add ``disconnect'' command.
4482 * remote.c (remote_async_detach): Delete.
4483 (remote_detach): Merge remote_async_detach.
4484 (remote_disconnect): New.
4485 (init_remote_ops): Set to_disconnect.
4486 (init_remote_cisco_ops): Likewise.
4487 (init_remote_async_ops): Likewise. Use remote_detach.
4488 * target.c (cleanup_target): Default to_disconnect.
4489 (update_current_target): Inherit to_disconnect.
4490 (target_disconnect, debug_to_disconnect): New functions.
4491 (setup_target_debug): Set to_disconnect.
4492 * target.h (struct target_ops): Add to_disconnect.
4493 (target_disconnect): Add prototype.
4494
687595f9
DJ
44952003-06-17 Daniel Jacobowitz <drow@mvista.com>
4496
4497 * breakpoint.c (insert_catchpoint): New function.
4498 (insert_breakpoints): Use catch_exceptions to call
4499 insert_catchpoint. Disable catchpoints if they fail to insert.
4500
29239a8f
DJ
45012003-06-17 Daniel Jacobowitz <drow@mvista.com>
4502
4503 * symfile.c (reread_symbols): Clear sym_private.
4504
2cdf3c63
AC
45052003-06-17 Andrew Cagney <cagney@redhat.com>
4506
4507 * trad-frame.h (struct frame_info): Add opaque declaration.
4508 * remote-fileio.h (struct cmd_list_element): Add opaque
4509 declaration.
4510 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4511 comments.
4512
cf0e1e0d
DJ
45132003-06-17 Daniel Jacobowitz <drow@mvista.com>
4514
4515 * remote.c (remote_prepare_to_store): Replace call to
4516 deprecated_read_register_bytes with multiple regcache_raw_read
4517 calls.
4518
192cdb19
KW
45192003-06-17 Kris Warkentin <kewarken@qnx.com>
4520
4521 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4522 (nto_find_and_open_solib): Likewise.
4523 (nto_init_solib_absolute_prefix): Likewise.
4524 (_initialize_nto_tdep): Fix indentation.
4525
89929b45
KW
45262003-06-17 Kris Warkentin <kewarken@qnx.com>
4527
4528 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4529
46019f27
KW
45302003-06-17 Kris Warkentin <kewarken@qnx.com>
4531
4532 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4533
1a38736e
JB
45342003-06-17 Jim Blandy <jimb@redhat.com>
4535
4536 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4537
3605c34a
TR
45382003-06-16 Theodore A. Roth <troth@openavr.org>
4539
4540 * avr-tdep.c (avr_extract_return_value): New function.
4541 (avr_gdbarch_init): Set extract_return_value method.
4542
870b3035
AC
45432003-06-16 Andrew Cagney <cagney@redhat.com>
4544
4545 * frame.h (deprecated_get_next_frame_hack): Declare.
4546 * frame.c (legacy_saved_regs_prev_register): Only require
4547 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4548 there are always saved regs.
4549 (deprecated_generic_get_saved_register): Do not require
4550 DEPRECATED_FRAME_INIT_SAVED_REGS.
4551 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4552 use frame ID unwind instead.
4553 (deprecated_get_next_frame_hack): New function.
4554
63d47a7d
CV
45552003-06-16 Corinna Vinschen <vinschen@redhat.com>
4556
4557 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4558 (h8300_push_dummy_call): ...this function. Some minor optimization.
4559 (h8300_push_return_address): Remove.
4560 (h8300_gdbarch_init): Remove calls to
4561 set_gdbarch_deprecated_dummy_write_sp,
4562 set_gdbarch_deprecated_push_arguments and
4563 set_gdbarch_deprecated_push_return_address.
4564 Add call to set_gdbarch_push_dummy_call.
4565
4bb1dc5e
CV
45662003-06-16 Corinna Vinschen <vinschen@redhat.com>
4567
4568 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4569 (E_PSEUDO_EXR_REGNUM): Ditto.
4570 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4571 registers into safe registers.
4bb1dc5e
CV
4572 (h8300_skip_prologue): Check for stm instruction to push registers
4573 used for register variables onto stack.
4574 (gdb_print_insn_h8300): Remove.
4575 (h8300_examine_prologue): Add a comment.
4576 (h8300_register_name): Take pseudo registers into account.
4577 (h8300s_register_name): Ditto.
4578 (h8300sx_register_name): Ditto.
4579 (h8300_print_register): Ditto.
4580 (h8300_print_registers_info): Define "nice" printing order.
4581 (h8300_saved_pc_after_call): Take pseudo registers into account.
4582 (h8300_register_type): Ditto. Return type used for remote connection
4583 when requesting real CCR or EXR register, return actual type when
4584 requesting pseudo CCR or EXR.
4585 (h8300_pseudo_register_read): New function.
4586 (h8300_pseudo_register_write): Ditto.
4587 (h8300_dbg_reg_to_regnum): Ditto.
4588 (h8300s_dbg_reg_to_regnum): Ditto.
4589 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4590 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4591 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4592 set_gdbarch_print_insn architecture dependent.
4593 Call set_gdbarch_pseudo_register_read and
4594 set_gdbarch_pseudo_register_write.
4595 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4596
a59fe496
AC
45972003-06-16 Andrew Cagney <cagney@redhat.com>
4598
4599 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4600 * gdbarch.h, gdbarch.c: Re-generate.
4601 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4602 * s390-tdep.c (s390_gdbarch_init): Update.
4603 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4604 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4605 * mips-tdep.c (mips_gdbarch_init): Update.
4606 * mcore-tdep.c (mcore_gdbarch_init): Update.
4607 * cris-tdep.c (cris_gdbarch_init): Update.
4608 * infcall.c (call_function_by_hand): Update.
4609 * ia64-tdep.c (ia64_push_arguments): Update comment.
4610 * frame.c (legacy_get_prev_frame): Do not assume
4611 SAVE_DUMMY_FRAME_TOS_P.
4612 * dummy-frame.c (find_dummy_frame): Update comment.
4613
6f4e5a41
AC
46142003-06-16 Andrew Cagney <cagney@redhat.com>
4615
4616 * regcache.c (do_cooked_read): Do not use register_valid_p.
4617
72fab697
TR
46182003-06-15 Theodore A. Roth <troth@openavr.org>
4619
4620 * avr-tdep.c (avr_register_type): Remove a blank line.
4621 (avr_scan_prologue): Correct some comments.
4622
e3d8b004
TR
46232003-06-15 Theodore A. Roth <troth@openavr.org>
4624
4625 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4626 prologue types.
8ffd9b1b 4627 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4628 option.
4629 Add code to scan -mcall-prologues for mega devices.
4630
866b76ea
TR
46312003-06-15 Theodore A. Roth <troth@openavr.org>
4632
4633 * avr-tdep.c (avr_register_byte): Delete function.
4634 (avr_register_raw_size): Delete function.
4635 (avr_register_virtual_size): Delete function.
4636 (avr_register_virtual_type): Delete function.
4637 (avr_register_type): New function.
4638 (avr_address_to_pointer): Remove unused code.
4639 (avr_read_fp): Need to read FP as two separate bytes due to change to
4640 avr_register_type() usage.
4641 (avr_gdbarch_init): Don't set deprecated_register_size.
4642 Don't set deprecated_register_bytes.
4643 Don't set deprecated_register_byte.
4644 Don't set deprecated_register_raw_size.
4645 Don't set deprecated_max_register_raw_size.
4646 Don't set deprecated_register_virtual_size.
4647 Don't set deprecated_max_register_virtual_size.
4648 Don't set deprecated_register_virtual_type.
4649 Set register_type method.
4650
3993f6b1
DJ
46512003-06-15 Daniel Jacobowitz <drow@mvista.com>
4652
4653 * Makefile.in (linux-nat.o): Add rule.
4654 * linux-nat.c: New file.
4655 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4656 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4657 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4658 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4659 * config/arm/linux.mh (NATDEPFILES): Likewise.
4660 * config/i386/linux.mh (NATDEPFILES): Likewise.
4661 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4662 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4663 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4664 * config/mips/linux.mh (NATDEPFILES): Likewise.
4665 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4666 * config/s390/s390.mh (NATDEPFILES): Likewise.
4667 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4668
786a90bb
MK
46692003-06-15 Mark Kettenis <kettenis@gnu.org>
4670
4671 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4672 replace out-of-date comment.
4673
3bd3f01e
AC
46742003-06-15 Andrew Cagney <cagney@redhat.com>
4675
4676 * rdi-share/host.h (Fail): Change to a varargs function.
4677 * remote-rdi.c (Fail): Update.
8ffd9b1b 4678
de5b9bb9
MK
46792003-06-15 Mark Kettenis <kettenis@gnu.org>
4680
4681 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4682 (i386_convert_register_p, i386_register_to_value,
4683 i386_register_from_value): Handle types longer than 8 bytes.
4684
d532c08f
MK
46852003-06-15 Mark Kettenis <kettenis@gnu.org>
4686
4687 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4688 Move floating-point code to new function in i387-tdep.c.
4689 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4690 New functions containing code moved here from i386-tdep.c.
4691 * i387-tdep.h: Add opaque declaration for `struct type'.
4692 (i387_register_to_value, i387_value_to_register): New prototypes.
4693 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4694 (x86_64_init_abi): Set convert_register_p, register_to_value and
4695 value_to_register here.
8ffd9b1b 4696
42c466d7
AC
46972003-06-14 Andrew Cagney <cagney@redhat.com>
4698
4699 * mips-tdep.c (mips_register_to_value): Make static.
4700 (mips_value_to_register): Make static.
4701 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4702 * ia64-tdep.c (ia64_register_raw_size): Make static.
4703 (ia64_register_virtual_size): Make static.
4704 (ia64_register_byte): Make static.
4705 * i387-tdep.c: Include "i387-tdep.h".
4706 (print_387_control_word): Delete function.
4707 (print_387_status_word): Delete function.
4708 (print_387_status_bits): Delete function.
4709 (print_387_control_bits): Delete function.
4710 * Makefile.in (i387-tdep.o): Update dependencies.
4711 * rdi-share/host.h (Fail): Declare.
4712 * remote-rdi.c (Fail): Update to match declaration.
4713
2a9cda49
AC
47142003-06-14 Andrew Cagney <cagney@redhat.com>
4715
4716 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4717 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4718 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4719 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4720 * README: Delete reference to remote-array.
4721 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4722 (remote-array.o): Delete target.
4723 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4724 * remote-array.c: Delete file.
4725
ff2e87ac
AC
47262003-06-14 Andrew Cagney <cagney@redhat.com>
4727 Mark Kettenis <kettenis@gnu.org>
4728
4729 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4730 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4731 parameter with "frame".
4732 * gdbarch.h, gdbarch.c: Re-generate.
4733 * frame.h (put_frame_register): Declare.
4734 * frame.c (put_frame_register): New function.
4735 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4736 (legacy_register_to_value): Rewrite, use "frame" to get the
4737 register value.
4738 (legacy_value_to_register): Rewrite, use "frame" to find the
4739 register's location before storing.
4740 * arch-utils.h (legacy_convert_register_p): Update.
4741 (legacy_register_to_value, legacy_value_to_register): Update.
4742 * findvar.c (value_from_register): Rewrite, eliminate use of
4743 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4744 "frame" to REGISTER_TO_VALUE.
4745 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4746 lval_reg_frame_relative + lval_register branch of the switch. Do
4747 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4748 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4749 I386_EDI_REGNUM): New defines.
4750 (i386_next_regnum, i386_convert_register_p,
4751 i386_register_to_value, i386_value_to_register): New functions.
4752 (i386_register_convertible, i386_register_convert_to_virtual,
4753 i386_convert_to_raw): Remove functions.
4754 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4755 value_to_register instead of register_convertible,
4756 register_convert_to_virtual and register_convert_to_raw.
4757 * mips-tdep.c (mips_convert_register_p): New function.
4758 (mips_value_to_register): Replace mips_register_convert_from_type.
4759 (mips_register_to_value): Replace mips_register_convert_to_type.
4760 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4761 register_to_value.
4762 * alpha-tdep.c (alpha_convert_register_p): Update.
4763 (alpha_value_to_register): Update, store the register.
4764 (alpha_register_to_value): Update, fetch the register.
4765
98be1e77
TR
47662003-06-14 Theodore A. Roth <troth@openavr.org>
4767
4768 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4769 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4770 Don't set deprecated_call_dummy_words.
4771 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4772 Don't set remote_translate_xfer_address.
4773 (avr_io_reg_read_command): Remove commented out debug printf.
4774 Wrap a long line.
4775
57bc6122
TR
47762003-06-14 Theodore A. Roth <troth@openavr.org>
4777
4778 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4779 causes gdb to seg fault.
4780
eb01fc62
DJ
47812003-06-14 Daniel Jacobowitz <drow@mvista.com>
4782
4783 * sparc-nat.c (fetch_inferior_registers): Correct
4784 a reference to "registers".
4785
3b3e6bee
DJ
47862003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4787
4788 * Makefile.in (exc_request_U_h): Define
4789 (exc_request_S_h): Likewise.
4790 (msg_reply_S_h): Likewise.
4791 (msg_U_h): Likewise.
4792 (notify_S_h): Likewise.
4793 (process_reply_S_h): Likewise.
4794 (gnu-nat.o): Depend on gdb_obstack_h
4795 * gnu-nat.c: Include "gdb_obstack.h".
4796
b8de8283
AC
47972003-06-13 Andrew Cagney <cagney@redhat.com>
4798
4799 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4800 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4801
f3be58bc
AC
48022003-06-13 Andrew Cagney <cagney@redhat.com>
4803
4804 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4805 when deprecated REGISTER macros can be deleted.
4806 * gdbarch.h, gdbarch.c: Re-generate.
4807
4c0122c8
JB
48082003-06-13 Jim Blandy <jimb@redhat.com>
4809
4810 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4811 Linux entry point symbols for _dl_debug_state, too.
4812
3e210248
AC
48132003-06-13 Andrew Cagney <cagney@redhat.com>
4814
4815 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4816 available, do not use the FP register, and always save the TOS.
4817 * dummy-frame.c (dummy_frame_this_id): Do not assert
4818 SAVE_DUMMY_FRAME_TOS.
4819 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4820 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4821 (i386_push_dummy_call): Add 8 to the returned SP.
4822 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4823 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4824 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4825 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4826 (x86_64_push_dummy_call): Return "sp + 16".
4827 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4828 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4829 save_dummy_frame_tos.
4830
0b65af49
JB
48312003-06-13 Jim Blandy <jimb@redhat.com>
4832
4833 * frv-tdep.c (frv_use_struct_convention): Delete static
4834 declaration for function deleted in my change of 2003-06-12.
4835
4ea2465e
TR
48362003-06-13 Theodore A. Roth <troth@openavr.org>
4837
4838 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4839 (avr_pointer_to_address): Shift code addrs left 1 bit.
4840 (avr_convert_from_func_ptr_addr): Delete function since operation is
4841 better handled by avr_address_to_pointer and avr_pointer_to_address.
4842 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4843
1581182a
MK
48442003-06-13 Mark Kettenis <kettenis@gnu.org>
4845
4846 From Kelley Cook <kelleycook@wideopenwest.com>:
4847 * configure.host: Accept i[34567]86 variants.
4848 * configure.tgt: Likewise.
4849 * nlm/configure.in: Likewise.
4850 * nlm/configure: Regenerated.
4851
7aa1783e
RE
48522003-06-13 Richard Earnshaw <rearnsha@arm.com>
4853
4854 * arm-tdep.c (solib-svr4.h): Dont' include it.
4855 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4856 * arm-linux-tdep.c: ... here. Make static.
4857 (arm_linux_init_abi): Register it.
4858 (solib-svr4.h): Include it.
4859 * Makefile.in: Update dependencies.
4860 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4861 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4862
0261a0d0
CV
48632003-06-13 Corinna Vinschen <vinschen@redhat.com>
4864
4865 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4866 indicate registers used for return values.
4867 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4868 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4869 members.
4870 (h8300_init_extra_frame_info): Ditto.
4871 (h8300_frame_locals_address): Removed.
4872 (h8300_frame_args_address): Removed.
4873 (h8300_extract_return_value): Use new regcache structure. Only care
4874 for 16 bit CPUs.
4875 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4876 (h8300_store_return_value): Use new regcache structure. Only care
4877 for 16 bit CPUs.
4878 (h8300h_store_return_value): Same function for 32 bit CPUs.
4879 (h8300_store_struct_return): Removed.
4880 (h8300_extract_struct_value_address): Use new regcache structure.
4881 (h8300h_extract_struct_value_address): Removed.
4882 (h8300_push_dummy_code): New function.
4883 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4884 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4885 set_gdbarch_store_return_value architecture dependent.
4886 Call set_gdbarch_push_dummy_code and
4887 set_gdbarch_extract_struct_value_address.
4888 Remove calls to set_gdbarch_frame_args_address,
4889 set_gdbarch_frame_locals_address,
4890 set_gdbarch_deprecated_store_struct_return,
4891 set_gdbarch_deprecated_extract_return_value,
4892 set_gdbarch_deprecated_extract_struct_value_address,
4893 set_gdbarch_deprecated_call_dummy_words and
4894 set_gdbarch_deprecated_sizeof_call_dummy_words.
4895
055c394a
CV
48962003-06-13 Corinna Vinschen <vinschen@redhat.com>
4897
4898 * h8300-tdep.c (h8300_register_byte): Remove.
4899 (h8300h_register_byte): Remove.
4900 (h8300_register_virtual_type): Remove. Substitute by...
4901 (h8300_register_type): New function.
4902 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4903 (h8300h_extract_struct_value_address): Ditto.
4904 (h8300_gdbarch_init): Drop calls to
4905 set_gdbarch_deprecated_register_byte and
4906 set_gdbarch_deprecated_register_virtual_type.
4907 Add call to set_gdbarch_register_type.
4908
9c04cab7
AC
49092003-06-13 Andrew Cagney <cagney@redhat.com>
4910
4911 * gdbarch.sh: Update comments on registers.
4912 (deprecated_register_byte): Rename register_byte.
4913 (deprecated_register_raw_size): Rename register_raw_size.
4914 (deprecated_register_virtual_size): Rename register_virtual_size.
4915 (deprecated_register_virtual_type): Rename register_virtual_type.
4916 * gdbarch.h, gdbarch.c: Re-generate.
4917 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4918 * vax-tdep.c (vax_gdbarch_init): Update.
4919 * v850-tdep.c (v850_gdbarch_init): Update.
4920 * sparc-tdep.c (sparc_gdbarch_init): Update.
4921 * sh-tdep.c (sh_gdbarch_init): Update.
4922 * s390-tdep.c (s390_gdbarch_init): Update.
4923 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4924 * ns32k-tdep.c: Update.
4925 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4926 * mips-tdep.c (mips_gdbarch_init): Update.
4927 * mcore-tdep.c (mcore_gdbarch_init): Update.
4928 * m68k-tdep.c (m68k_gdbarch_init): Update.
4929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4930 * ia64-tdep.c (ia64_gdbarch_init): Update.
4931 * hppa-tdep.c (hppa_gdbarch_init): Update.
4932 * h8300-tdep.c (h8300_gdbarch_init): Update.
4933 * frv-tdep.c (frv_gdbarch_init): Update.
4934 * cris-tdep.c (cris_gdbarch_init): Update.
4935 * avr-tdep.c (avr_gdbarch_init): Update.
4936 * alpha-tdep.c (alpha_gdbarch_init): Update.
4937 * arm-tdep.c (arm_gdbarch_init): Update.
4938
b060cbea
AC
49392003-06-13 Andrew Cagney <cagney@redhat.com>
4940
4941 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4942 mips_o32_use_struct_convention with always_use_struct_convention.
4943
0fc9922a
DC
49442003-06-12 David Carlton <carlton@kealia.com>
4945
4946 * cp-namespace.c (cp_set_block_scope): Comment out
4947 processing_has_namespace_info branch.
4948
1fd35568
JB
49492003-06-12 Jim Blandy <jimb@redhat.com>
4950
f470a70a
JB
4951 Recognize and skip 64-bit PowerPC Linux linkage functions.
4952 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4953 insn_pattern, insns_match_pattern, d_field, ds_field): New
4954 functions, macros, and types for working with PPC instructions.
4955 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4956 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4957 ppc64_skip_trampoline_code): New functions, variables, and macros
4958 for recognizing and skipping linkage functions.
4959 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4960 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4961
49ff75ad
JB
4962 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4963 register offsets for both the 32- and 64-bit interfaces.
4964
bd918c83
JB
4965 Actually finish the job started by my change of 2003-05-29.
4966 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4967 other #definition of this.
4968 (ppc_linux_skip_trampoline_code): Remove declaration.
4969 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4970 static.
4971 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4972 method for GDBARCH.
4973
4974 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4975 'long' on ppc64-*-linux*.
4976
f8c59253
JB
4977 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4978 isn't #defined, assume the register doesn't exist: act as if
4979 tdep->ppc_mq_regnum were -1.
4980
8fbb30b1
JB
4981 * configure.host, configure.tgt: Add entries for
4982 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4983 powerpc/linux.mt.
4984 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4985 New files.
4986
1fd35568
JB
4987 * arch-utils.c (always_use_struct_convention): New function.
4988 * arch-utils.h (always_use_struct_convention): New prototype.
4989 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4990 (alpha_gdbarch_init): Register always_use_struct_convention,
4991 instead of alpha_use_struct_convention.
4992 * cris-tdep.c (cris_use_struct_convention): Delete.
4993 (cris_gdbarch_init): Register always_use_struct_convention,
4994 instead of cris_use_struct_convention.
4995 * frv-tdep.c (frv_use_struct_convention): Delete.
4996 (frv_gdbarch_init): Register always_use_struct_convention,
4997 instead of frv_use_struct_convention.
4998 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4999 (h8300_gdbarch_init): Register always_use_struct_convention,
5000 instead of h8300_use_struct_convention.
e3305dd9 5001 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
5002 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5003 instead of mips_o32_use_struct_convention.
5004
e14e6e9c
AC
50052003-06-12 Andrew Cagney <cagney@redhat.com>
5006
5007 * wince.c: Include "mips-tdep.h".
5008 * mips-tdep.h (mips_next_pc): Declare.
5009 * mcore-tdep.c: Make more local functions static.
5010 * Makefile.in (wince.o): Update dependencies.
5011
2335f48e
DC
50122003-06-12 David Carlton <carlton@kealia.com>
5013
5014 * symtab.c (lookup_symbol_aux_minsyms): Replace
5015 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5016 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5017 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5018 SYMBOL_NATURAL_NAME.
5019
f70a7d61
AS
50202003-06-12 Andreas Schwab <schwab@suse.de>
5021
5022 * Makefile.in (tuiDisassem.o): Update dependencies.
5023
b6429628
DC
50242003-06-12 David Carlton <carlton@bactrian.org>
5025
5026 * symtab.h: Delete declaration of make_symbol_overload_list.
5027 Add declaration of lookup_partial_symbol.
5028 * symtab.c (remove_params): Move to cp-support.c.
5029 (overload_list_add_symbol, make_symbol_overload_list)
5030 (sym_return_val_size, sym_return_val_index): Ditto.
5031 (lookup_partial_symbol): Make extern.
5032 * cp-support.h: Add declaration of make_symbol_overload_list.
5033 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5034 symtab.h, and block.h.
5035 (remove_params): Move here from symtab.c.
5036 (overload_list_add_symbol, make_symbol_overload_list)
5037 (sym_return_val_size, sym_return_val_index): Ditto.
5038 * valops.c: Include cp-support.h.
5039 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5040 frame_h, and block_h.
5041 (valops.o): Depend on cp_support_h.
5042
084edea5
CV
50432003-06-12 Corinna Vinschen <vinschen@redhat.com>
5044
5045 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5046 substitute by NUM_REGS throughout.
5047 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5048 (h8300s_register_name): New function for H8S registers.
5049 (h8300sx_register_name): Ditto for H8SX registers.
5050 (h8300_print_register): Revise register printing, avoid depending
5051 on 32 bit long.
0261a0d0 5052 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
5053 (h8300h_register_byte): New function for any other architecture.
5054 (h8300_register_raw_size): Remove.
5055 (h8300_register_virtual_type): Revise to return actually useful
5056 type.
5057 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5058 (h8300h_extract_struct_value_address): New function for any other
5059 architecture.
5060 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5061 set_gdbarch_register_name, set_gdbarch_register_byte,
5062 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5063 Remove calls to set_gdbarch_deprecated_register_size,
5064 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5065 set_gdbarch_deprecated_max_register_raw_size,
5066 set_gdbarch_register_virtual_size and
5067 set_gdbarch_deprecated_max_register_virtual_size entirely.
5068 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5069 set_gdbarch_long_double_bit.
5070
06194148
JJ
50712003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5072
8ffd9b1b
AJ
5073 * doublest.c (convert_doublest_to_floatformat): When dealing
5074 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
5075 processing a full 32 bits of mantissa.
5076
de4f826b
DC
50772003-06-11 David Carlton <carlton@bactrian.org>
5078
5079 * dictionary.h: New.
5080 * dictionary.c: New.
5081 * block.h: Add opaque declaration for struct dictionary.
5082 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5083 'sym' members.
5084 (BLOCK_DICT): New macro.
5085 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5086 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5087 BLOCK_SHOULD_SORT.
5088 (ALL_BLOCK_SYMBOLS): Update definition.
5089 * Makefile.in (SFILES): Add dictionary.c.
5090 (dictionary_h): New.
5091 (COMMON_OBS): Add dictionary.o.
5092 (dictionary.o): New.
5093 (ada-lang.o): Depend on dictionary_h.
5094 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5095 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5096 (mi-cmd-stack.o): Ditto.
5097 (gdbtk-cmds.o): Update dependencies.
5098 (gdbtk-stack.o): Ditto.
5099 * ada-lang.c: Include dictionary.h.
5100 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5101 (fill_in_ada_prototype, debug_print_block): Ditto.
5102 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5103 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5104 'is_sorted'.
5105 * mdebugread.c: Include dictionary.h.
5106 (struct parse_stack): Delete 'maxsyms' member.
5107 (parse_symbol): Update calls to new_block. Delete calls to
5108 shrink_block. Use dictionary methods.
5109 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5110 Update calls to new_symtab. Don't maintain maxsyms data.
5111 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5112 (add_symbol): Just call dict_add_symbol.
5113 (new_symtab): Delete 'maxsyms' argument.
5114 (new_symtab): Update calls to new_block.
5115 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5116 (shrink_block): Delete function.
5117 (fixup_sigtramp): Update call to new_block. Add symbol via
5118 dict_add_symbol.
5119 * jv-lang.c: Include dictionary.h.
5120 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5121 appropriately. Set class_symtab->free_func. Make sure the
5122 blockvector is big enough to hold two blocks.
5123 (add_class_symtab_symbol): Use dictionary methods.
5124 (free_class_block): New function.
5125 (type_from_class): Replace explicit iteration by
5126 ALL_BLOCK_SYMBOLS.
5127 * symtab.h (struct symtab): Replace 'free_ptr' method by
5128 'free_func'.
5129 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5130 sort_symtab_syms.
5131 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5132 sort_symtab_syms.
5133 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5134 Include dictionary.h.
5135 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5136 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5137 sort_symtab_syms.
5138 * objfiles.c: Include dictionary.h.
5139 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5140 * buildsym.c: Include dictionary.h.
5141 (finish_block): Use dictionary methods.
5142 (end_symtab): Set free_func to NULL, not free_ptr.
5143 * tracepoint.c: Include dictionary.h.
5144 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5145 (scope_info): Ditto.
5146 * stack.c: Include dictionary.h.
5147 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5148 (print_block_frame_labels, print_frame_arg_vars)
5149 (print_frame_args): Ditto.
5150 * symmisc.c (free_symtab_block): Use dictionary methods.
5151 (dump_symtab): Ditto.
5152 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5153 Include dictionary.h.
5154 * symfile.h: Delete declarations of sort_block_syms,
5155 sort_symtab_syms.
5156 * symfile.c (sort_block_syms): Delete.
5157 (sort_symtab_syms): Delete.
5158 * symtab.c: Include dictionary.h.
5159 (lookup_block_symbol): Use dictionary iterators.
5160 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5161 (search_symbols, make_symbol_completion_list): Ditto.
5162 (make_symbol_overload_list): Ditto.
5163 * valops.c (value_of_local): Use dict_empty.
5164 Include dictionary.h.
5165
a31f978c
JB
51662003-06-11 J. Brobecker <brobecker@gnat.com>
5167
5168 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5169
526e70c0
DC
51702003-06-11 David Carlton <carlton@bactrian.org>
5171
5172 * block.h (BLOCK_SHOULD_SORT): Delete.
5173 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5174 blocks.
5175 * ada-lang.c (ada_add_block_symbols): Ditto.
5176 * symfile.c (sort_block_syms): Delete.
5177 (sort_symtab_syms): Ditto.
5178 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5179 declarations.
5180 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5181 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5182 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5183 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5184 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5185 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5186 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5187
33c08150
JJ
51882003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5189
8ffd9b1b 5190 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
5191 bits to 128.
5192
781a750d
AC
51932003-06-11 Andrew Cagney <cagney@redhat.com>
5194
5195 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5196 REGISTER_CONVERTIBLE.
5197 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5198 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5199 * gdbarch.h, gdbarch.c: Re-generate.
5200 * arch-utils.h (deprecated_register_convertible_not): Rename
5201 generic_register_convertible_not.
5202 * arch-utils.c (deprecated_register_convertible_not): Rename
5203 generic_register_convertible.
5204 (legacy_convert_register_p, legacy_register_to_value): Update.
5205 * sh-tdep.c (sh64_push_arguments): Update.
5206 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5207 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5208 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5209 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5210 * arch-utils.c (legacy_value_to_register): Update.
5211 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5212 (rs6000_register_convert_to_raw): Make parameter "from" const.
5213 * mips-tdep.c (mips_gdbarch_init): Update.
5214 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5215 * infcmd.c (default_print_registers_info): Update.
5216 * ia64-tdep.c (ia64_gdbarch_init): Update.
5217 (ia64_register_convert_to_raw): Make parameter "from" const.
5218 * i386-tdep.c (i386_gdbarch_init): Update.
5219 (i386_register_convert_to_raw): Update.
5220
cd90e54f
AC
52212003-06-11 Andrew Cagney <cagney@redhat.com>
5222
5223 * remote-fileio.c: Include "remote-fileio.h".
5224 * Makefile.in (remote-fileio.o): Update dependencies.
5225 (remote_fileio_h): Fix typo.
5226
a78f21af
AC
52272003-06-11 Andrew Cagney <cagney@redhat.com>
5228
5229 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5230 (xstormy16_save_dummy_frame_tos): Make static.
5231 (_initialize_xstormy16_tdep): Add declaration.
5232 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5233 * v850-tdep.c: Make local functions static.
5234 (_initialize_v850_tdep): Add declaration.
5235 * sparc-tdep.c: Make local functions static.
5236 (_initialize_sparc_tdep): Add declaration.
5237 * sh-tdep.c: Make local functions static.
5238 (_initialize_sh_tdep): Add declaration.
5239 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5240 * s390-tdep.c: Make local functions static.
5241 (_initialize_s390_tdep): Add declaration.
5242 * dbxread.c (find_stab_function_addr): Make static.
5243 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5244 * ocd.c (_initialize_remote_ocd): Add declaration.
5245 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5246 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5247 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5248 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5249 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5250 * remote-array.c (_initialize_array): Add declaration.
5251 (_initialize_remote_monitors): Add declaration.
5252 * remote-mips.c: Make local functions static.
5253 (_initialize_remote_mips): Add declaration.
5254 * mcore-tdep.c: Make all local functions static.
5255 (_initialize_mcore_tdep): Add declaration.
5256 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5257 * abug-rom.c (_initialize_abug_rom): Add declaration.
5258 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5259 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5260 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5261 * remote-est.c (_initialize_est): Add declaration.
5262 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5263 (m68hc11_call_dummy_address): Make static.
5264 * ia64-tdep.c: Make local functions static.
5265 (_initialize_ia64_tdep): Add declaration.
5266 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5267 * monitor.c (monitor_wait_filter): Make static.
5268 (_initialize_remote_monitors): Add declaration.
5269 * remote-hms.c (_initialize_remote_hms): Add declaration.
5270 * remote-e7000.c (fetch_regs_from_dump): Make static.
5271 (expect_n): Make static.
5272 (_initialize_remote_e7000): Add declaration.
5273 * ser-e7kpc.c: Always include "defs.h".
5274 (_initialize_ser_e7000pc): Add declaration.
5275 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5276 * cris-tdep.c: Make all but one function static.
5277 (_initialize_cris_tdep): Add declaration.
5278 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5279 * solib.c (update_solib_list): Make static.
5280 (_initialize_solib): Add declaration.
5281 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5282 (_initialize_avr_tdep): Add declaration.
5283 * remote-rdi.c (voiddummy): Make static.
5284 (_initialize_remote_rdi): Add declaration.
5285 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5286 * remote-rdp.c (send_rdp): Make static.
5287 (_initialize_remote_rdp): Add declaration.
5288 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5289
cbcdb1f5
CV
52902003-06-11 Corinna Vinschen <vinschen@redhat.com>
5291
5292 * remote-fileio.c: Make ari happy.
5293
a191ea8d
JB
52942003-06-10 J. Brobecker <brobecker@gnat.com>
5295
5296 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5297 fetching the trailing bytes of the buffer we are about to write.
5298
0ef75e11
AC
52992003-06-10 Andrew Cagney <cagney@redhat.com>
5300
5301 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5302 * Makefile.in (remote-fileio.o): Update dependencies.
5303 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5304 include <setjmp.h>, or <sys/types.h> conditional on USG.
5305 (remote_fio_jmp_buf): Delete global variable.
5306
449092f6 53072003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5308 Martin M. Hunt <hunt@redhat.com>
449092f6 5309
559fa028
AC
5310 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5311 (SFILES): Add remote-fileio.c.
5312 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5313 dependencies for building remote.o.
449092f6
CV
5314 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5315 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5316 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5317 static storage class.
5318 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5319 'F' packet.
5320 (_initialize_remote): Call initialize_remote_fileio().
5321 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5322 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5323 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5324 (captured_main): Initialize new ui_files.
5325 * ui-file.c: Add read and fgets input functions.
5326 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5327 (null_file_read): New function.
5328 (ui_file_read): New function.
5329 (set_ui_file_read): New function.
5330 (stdio_file_read): New function.
5331 * ui-file.h: New type ui_file_read_ftype.
5332 (set_ui_file_read): Declare.
5333 (ui_file_read): Declare.
5334
248de703
AC
53352003-06-09 Andrew Cagney <cagney@redhat.com>
5336
5337 * frame.h (deprecated_unwind_get_saved_register): Rename
5338 generic_unwind_get_saved_register, update comments.
5339 * mips-tdep.c (mips_get_saved_register): Update.
5340 * frame.c (deprecated_unwind_get_saved_register): Update.
5341
0ed8aa57
AC
53422003-06-09 Andrew Cagney <cagney@redhat.com>
5343
5344 * vax-tdep.c (vax_frame_locals_address): Delete function.
5345 (vax_gdbarch_init): Do not set frame_locals_address.
5346 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5347 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5348 * s390-tdep.c (s390_frame_args_address): Delete function.
5349 (s390_gdbarch_init): Do not set frame_args_address or
5350 frame_locals_address.
5351 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5352 (ns32k_gdbarch_init): Do not set frame_locals_address.
5353 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5354 (hppa_frame_locals_address): Delete function.
5355 (hppa_gdbarch_init): Do not set frame_args_address, or
5356 frame_locals_address.
5357 * arm-tdep.c (arm_frame_args_address): Delete.
5358 (arm_frame_locals_address): Delete.
5359 (arm_gdbarch_init): Do not set frame_args_address, or
5360 frame_locals_address.
5361
983a287a
AC
53622003-06-09 Andrew Cagney <cagney@redhat.com>
5363
5364 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5365 * gdbarch.h, gdbarch.c: Re-generate.
5366 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5367 * arch-utils.c (frame_num_args_unknown): Delete function.
5368 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5369 (frame_info): Use FRAME_NUM_ARGS_P.
5370 * arm-tdep.c (arm_frame_num_args): Delete function.
5371 (arm_gdbarch_init): Do not set frame_num_args.
5372 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5373 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5374 (hppa_gdbarch_init): Do not set frame_num_args.
5375 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5377 frame_num_args to default frame_num_args_unknown.
5378 * v850-tdep.c (v850_gdbarch_init): Ditto.
5379 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5380 * sh-tdep.c (sh_gdbarch_init): Ditto.
5381 * s390-tdep.c (s390_gdbarch_init): Ditto.
5382 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5383 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5384 * mips-tdep.c (mips_gdbarch_init): Ditto.
5385 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5386 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5388 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5389 * i386-tdep.c (i386_gdbarch_init): Ditto.
5390 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5391 * frv-tdep.c (frv_gdbarch_init): Ditto.
5392 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5393 * cris-tdep.c (cris_gdbarch_init): Ditto.
5394 * avr-tdep.c (avr_gdbarch_init): Ditto.
5395 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5396
8d3b0994
AC
53972003-06-09 Andrew Cagney <cagney@redhat.com>
5398
5399 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5400 (print_frame_args): Moved to "stack.c".
5401 * stack.c: Include "gdb_assert.h".
5402 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5403 (print_frame_args): Moved from "printcmd.c".
5404 * frame.h (print_frame_args): Delete declaration.
5405 * Makefile.in (stack.o): Update dependencies.
5406
25e3a86b
AC
54072003-06-08 Andrew Cagney <cagney@redhat.com>
5408
5409 * frame.c (get_prev_frame): Remove reference to
5410 frame_args_address_correct in comments.
5411 * frame-base.c (default_frame_args_address): Delete code
5412 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5413 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5414 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5415 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5416 (vax_frame_args_address_correct): Delete declaration.
5417
a9e5fdc2
AC
54182003-06-08 Andrew Cagney <cagney@redhat.com>
5419
5420 * gdbarch.sh (UNWIND_SP): Add.
5421 * gdbarch.h, gdbarch.c: Re-generate.
5422 * frame.c (frame_sp_unwind): New function.
5423 (get_frame_sp): New function.
5424 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5425 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5426 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5427 value.
5428 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5429 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5430
8983bd83
AC
54312003-06-08 Andrew Cagney <cagney@redhat.com>
5432
7fec2c59
AC
5433 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5434 REMOTE_BREAKPOINT.
5435 * remote.c: Update.
5436 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5437 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5438 * config/m68k/tm-sun3.h: Update.
5439 * config/m68k/tm-m68klynx.h: Update.
5440 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5441
8983bd83
AC
5442 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5443 trad_frame". Update comments.
5444 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5445 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5446 (trad_frame_register_value, trad_frame_prev_register): Update.
5447
b9362cc7
AC
54482003-06-08 Andrew Cagney <cagney@redhat.com>
5449
5450 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5451 from GCC's acinclude.m4.
5452 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5453 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5454 * main.c (error_init): Delete declaration.
5455 * defs.h (error_init): Declare.
5456 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5457 (rs6000_convert_from_func_ptr_addr): Make static.
5458 (_initialize_rs6000_tdep): Add declaration.
5459 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5460 (show_commands, set_verbose, show_history): Delete declaration.
5461 * top.h (set_verbose): Add declaration.
5462 (show_history, set_history, show_commands): Add declaration.
5463 (do_restore_instream_cleanup): Add declaration.
5464 * objc-lang.c (specialcmp): Make static.
5465 (print_object_command): Make static.
5466 (find_objc_msgsend): Make static.
5467 (find_objc_msgcall_submethod_helper): Make static.
5468 (find_objc_msgcall_submethod): Make static.
5469 (_initialize_objc_language): Add declaration.
5470 (find_implementation_from_class): Make static.
5471 (find_implementation): Make static.
5472 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5473 * objc-lang.h (lookup_struct_typedef): Add declaration.
5474 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5475 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5476 (do_restore_user_call_depth): Make static.
5477 (do_restore_instream_cleanup): Delete declaration.
5478 (dont_repeat): Delete declaration.
5479 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5480 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5481 * reggroups.c (_initialize_reggroup): Add declaration.
5482 * cp-support.c (_initialize_cp_support): Add declaration.
5483 * cp-abi.c (_initialize_cp_abi): Add declaration.
5484 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5485 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5486 (_initialize_gnu_v3_abi): Add declaration.
5487 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5488 (_initialize_gnu_v2_abi): Add declaration.
5489 * frame-base.c (_initialize_frame_base): Add declaration.
5490 * doublest.c (floatformat_from_length): Make static.
5491 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5492 * frame.c (create_sentinel_frame): Make static.
5493 (_initialize_frame): Add declaration.
5494 * top.c (do_catch_errors): Make static.
5495 (gdb_rl_operate_and_get_next_completion): Make static.
5496 * typeprint.c: Include "typeprint.h".
5497 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5498 (sentinel_frame_this_id): Make static.
5499 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5500 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5501 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5502 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5503 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5504 * maint.c (maintenance_print_architecture): Make static.
5505 * signals/signals.c (_initialize_signals): Add declaration.
5506 * std-regs.c (_initialize_frame_reg): Add declaration.
5507 * jv-exp.y (push_variable): ISO C definition.
5508 (push_qualified_expression_name): Ditto.
5509 * memattr.c (_initialize_mem): Add declaration.
5510 * remote.c (remote_check_watch_resources): Make static.
5511 (remote_stopped_by_watchpoint): Make static.
5512 (remote_stopped_data_address): Make static.
5513 * d10v-tdep.c (nr_dmap_regs): Make static.
5514 (a0_regnum): Make static.
5515 (d10v_frame_unwind_cache): Make static.
5516 (d10v_frame_p): Make static.
5517 * osabi.c (show_osabi): Make static.
5518 (_initialize_gdb_osabi): Add extern declaration.
5519 * gdbtypes.c (make_qualified_type): Make static.
5520 (safe_parse_type): Make static.
5521 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5522 * macrotab.c (macro_bcache_free): Make static.
5523 * interps.c (interp_set_quiet): Make static.
5524 (interpreter_exec_cmd): Make static.
5525 * stack.h (select_frame_command): New file.
5526 * stack.c: Include "stack.h".
5527 (select_frame_command_wrapper): Delete function.
5528 (select_frame_command): Make global.
5529 * infcall.c: Include "infcall.h".
5530 * linespec.c: Include "linespec.h".
5531 * symfile.c (sections_overlap): Make static.
5532 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5533 * charset.c (_initialize_charset): Add missing prototype.
5534 * regcache.c (init_legacy_regcache_descr): Make static.
5535 (do_regcache_xfree): Make static.
5536 (regcache_xfer_part): Make static.
5537 (_initialize_regcache): Add missing prototype.
5538 * breakpoint.c (parse_breakpoint_sals): Make static.
5539 (breakpoint_sals_to_pc): Make static.
5540 * interps.h (clear_interpreter_hooks): ISO C declaration.
5541 * Makefile.in (stack_h): Define.
5542 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5543 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5544
a0f267c7
AC
55452003-06-08 Andrew Cagney <cagney@redhat.com>
5546
5547 * Makefile.in (d10v-tdep.o): Update dependencies.
5548 (SFILES): Add trad-frame.c.
5549 (trad_frame_h): Define.
5550 (COMMON_OBS): Add trad-frame.o.
5551 (trad-frame.o): Specify dependencies.
5552 * d10v-tdep.c: Include "trad-frame.h".
5553 (saved_regs_unwinder): Delete function.
5554 (d10v_frame_prev_register): Use trad_frame_prev_register.
5555 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5556 trad_frame", delete "regs" and "prev_sp".
5557 (prologue_find_regs): Use trad-frame.
5558 * trad-frame.h, trad-frame.c: New files.
5559
4538b4f4
MK
55602003-06-08 Mark Kettenis <kettenis@gnu.org>
5561
5562 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5563
a0273b2f
AF
55642003-06-07 Adam Fedor <fedor@gnu.org>
5565
5566 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5567 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5568 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5569 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5570 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5571 Use it.
5572
3a6c3343
AC
55732003-06-07 Andrew Cagney <cagney@redhat.com>
5574
5575 * symfile.h: Re-indent, clean up comments.
5576
b46e02f6
AC
55772003-06-07 Andrew Cagney <cagney@redhat.com>
5578
5579 * inferior.h (deprecated_write_sp): Replace
5580 generic_target_write_sp.
5581 * regcache.c (deprecated_write_sp): Replace
5582 generic_target_write_sp.
5583 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5584 * vax-tdep.c (vax_gdbarch_init): Update.
5585 * v850-tdep.c (v850_gdbarch_init): Update.
5586 * sparc-tdep.c (sparc_gdbarch_init): Update.
5587 * sh-tdep.c (sh_gdbarch_init): Update.
5588 * s390-tdep.c (s390_gdbarch_init): Update.
5589 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5590 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5591 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5592 * mcore-tdep.c (mcore_gdbarch_init): Update.
5593 * m68k-tdep.c (m68k_gdbarch_init): Update.
5594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5595 * ia64-tdep.c (ia64_gdbarch_init): Update.
5596 * h8300-tdep.c (h8300_gdbarch_init): Update.
5597 * frv-tdep.c (frv_gdbarch_init): Update.
5598 * cris-tdep.c (cris_gdbarch_init): Update.
5599 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5600
a42e117c
AC
56012003-06-07 Andrew Cagney <cagney@redhat.com>
5602
5603 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5604 Assert that PC_REGNUM is valid.
5605 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5606
bd1ce8ba
AC
56072003-06-07 Andrew Cagney <cagney@redhat.com>
5608
5609 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5610 * gdbarch.h, gdbarch.c: Regenerate.
5611 * mn10300-tdep.c: Include "gdb_assert.h".
5612 (mn10300_read_fp): New function.
5613 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5614 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5615 * ia64-tdep.c: Include "gdb_assert.h".
5616 (ia64_read_fp): New function.
5617 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5618 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5619 * regcache.c (generic_target_read_sp): Delete function.
5620 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5621 * inferior.h (generic_target_read_sp): Delete declaration.
5622 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5623 generic_target_read_sp.
5624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5625 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5626 * sh-tdep.c (sh_gdbarch_init): Ditto.
5627 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5628 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5629
ec5cbaec
AC
56302003-06-07 Andrew Cagney <cagney@redhat.com>
5631
5632 * gdbarch.sh: Comment each field of startup_gdbarch.
5633 * gdbarch.h, gdbarch.c: Re-generate.
5634
cde9ea48
AC
56352003-06-07 Andrew Cagney <cagney@redhat.com>
5636
5637 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5638 * gdbarch.h, gdbarch.c: Re-generate.
5639 * regcache.c: Update comments on read_pc et.al.
5640 (generic_target_read_pc): Delete function.
5641 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5642 * inferior.h (generic_target_read_pc): Delete declaration.
5643 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5644 generic_target_read_pc.
5645 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5646 * sh-tdep.c (sh_gdbarch_init): Ditto.
5647 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5648 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5649
9a90a780
AC
56502003-06-07 Andrew Cagney <cagney@redhat.com>
5651
5652 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5653 "index" with "special_local_sect". Use strcmp instead of STREQ.
5654 Append period to coments.
5655
a39a16c4
MM
56562003-06-06 Mark Mitchell <mark@codesourcery.com>
5657
5658 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5659 (elfstab_offset_sections): Likewise.
5660 * gdb-stabs.h (stab_section_info): Likewise.
5661 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5662 * objfiles.c (objfile_relocate): Likewise.
5663 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5664 * remote.c (get_offsets): Likewise.
5665 (remote_cisco_objfile_relocate): Likewise.
5666 * somread.c (som_symfile_offsets): Likewise.
5667 * symfile.c (alloc_section_addr_info): New function.
5668 (build_section_addr_info_from_section_tab): Use it.
5669 (free_section_addr_info): Adjust.
5670 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5671 (syms_from_objfile): Allocate local_addr dynamically.
5672 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5673 dynamically.
5674 (add_symbol_file_command): Allocate sect_opts dynamically.
5675 (reread_symbols): Avoid use of SECT_OFF_MAX.
5676 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5677 (alloc_section_addr_info): Declare it.
5678 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5679 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5680 dynamically.
5681 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5682
20c6c2f8
AC
56832003-06-06 Andrew Cagney <cagney@redhat.com>
5684
5685 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5686 (d10v_frame_unwind_cache): Do not set "return_pc".
5687
884a26c8
MS
56882003-06-06 Michael Snyder <msnyder@redhat.com>
5689
5690 * h8300-tdep.c: Make tidy (long lines).
5691
088ce440
ML
56922003-06-06 Michal Ludvig <mludvig@suse.cz>
5693
8ffd9b1b 5694 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5695 to regcache_collect().
5696
7d773d96
JB
56972003-06-05 J. Brobecker <brobecker@gnat.com>
5698
5699 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5700 pc_in_sigtramp multiarch method.
5701 (hppa_hpux_som_init_abi): Use it.
5702 (hppa_hpux_elf_init_abi): Likewise.
5703 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5704 macro has been multiarched.
5705 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5706 macro here, as hppa64 isn't multiarched yet.
5707
1df6926e
AC
57082003-06-05 Andrew Cagney <cagney@redhat.com>
5709
5710 * Makefile.in (value_h): Add $(frame_h).
5711 * value.h: Include "frame.h".
5712 (struct value): Replace "frame_addr" with "frame_id".
5713 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5714 * values.c (allocate_value): Use VALUE_FRAME_ID.
5715 (value_copy): Use VALUE_FRAME_ID.
5716 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5717 * valops.c (value_assign): Update. Use frame_find_by_id.
5718
6b53acc6
ML
57192003-06-05 Michal Ludvig <mludvig@suse.cz>
5720
5721 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5722 in each pass.
5723
4d9850d3
JJ
57242003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5725
5726 * thread-db.c (check_event): For create/death event breakpoints,
5727 loop through all messages to ensure that we read the message
5728 corresponding to the breakpoint we are at.
5729
8efca6ba
MS
57302003-06-04 Michael Snyder <msnyder@redhat.com>
5731
5732 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5733
0912c7f2
MK
57342003-06-04 Mark Kettenis <kettenis@gnu.org>
5735
5736 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5737 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5738 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5739 when handling .eh_frame sections.
5740
4e370325
JB
57412003-06-04 J. Brobecker <brobecker@gnat.com>
5742
5743 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5744 prepare_to_proceed procedure instead of the hppa-specific one.
5745 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5746
b757528f 57472003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5748
b757528f
JJ
5749 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5750 * config.in: Regenerated.
5751 * configure.in: Add test for syscall function and check for
5752 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5753 * configure: Regenerated.
5754 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5755 <sys/syscall.h>.
5756 (kill_lwp): New function that uses tkill syscall or
5757 uses kill, depending on whether threading model is nptl or not.
5758 All callers of kill() changed to use kill_lwp().
5759 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5760 see if all threads have already exited in the nptl model.
5761 (stop_and_resume_callback): New callback function used by the
5762 lin_lwp_wait thread exit handling code.
5763 (stop_wait_callback): Check for threads already having exited and
5764 delete such threads fromt the lwp list when discovered.
5765 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5766
b757528f
JJ
5767 Roland McGrath <roland@redhat.com>
5768 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5769 nptl libthread_db.
5770
087779b1
RH
57712003-06-03 Richard Henderson <rth@redhat.com>
5772
b21fd293
RH
5773 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5774 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5775 (alpha_sigtramp_frame_prev_register): Likewise.
5776 (alpha_heuristic_frame_prev_register): Likewise.
5777 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5778
8ffd9b1b 5779 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5780 alpha-specific register id names.
5781 (alpha_mdebug_frame_unwind_cache): Likewise.
5782 (alpha_mdebug_frame_prev_register): Likewise.
5783
baa490c4
RH
57842003-06-03 Richard Henderson <rth@redhat.com>
5785
5786 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5787 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5788 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5789 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5790 unwind routines.
5791 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5792 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5793 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5794
5795 * alpha-linux-tdep.c: Remove unnecessary includes.
5796 * Makefile.in (alpha-linux-tdep.o): Update.
5797
57982003-06-03 Richard Henderson <rth@redhat.com>
5799
5800 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5801 (alphabsd_fill_fpreg): Likewise.
5802
f534e522
JB
58032003-06-03 J. Brobecker <brobecker@gnat.com>
5804
5805 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5806 references to struct frame_info fields by calls to the equivalent
5807 accessors. Necessary now that frame_info is opaque.
5808
4035536b
JB
58092003-06-03 J. Brobecker <brobecker@gnat.com>
5810
5811 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5812 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5813 structure, field no longer exists.
5814
0bd79c5c
JB
58152003-06-03 J. Brobecker <brobecker@gnat.com>
5816
5817 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5818 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5819
37bb6d9f
JB
58202003-06-03 J. Brobecker <brobecker@gnat.com>
5821
5822 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5823 references to struct frame_info fields by calls to the equivalent
5824 accessors. Necessary now that frame_info is opaque.
5825
852ee05c
JB
58262003-06-03 J. Brobecker <brobecker@gnat.com>
5827
5828 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5829 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5830 structure, field no longer exists.
5831
7d58c67d
TR
58322003-06-03 Theodore A. Roth <troth@openavr.org>
5833
8ffd9b1b 5834 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5835 accumulation of the size of all registers instead of blindly using
5836 DEPRECATED_REGISTER_BYTES.
5837
0a48e7e8
MS
58382003-06-03 Michael Snyder <msnyder@redhat.com>
5839
5840 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5841 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5842 for h8300sx.
5843
9798ab0d
JB
58442003-06-03 J. Brobecker <brobecker@gnat.com>
5845
5846 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5847 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5848
00b037e2
AC
58492003-06-03 Andrew Cagney <cagney@redhat.com>
5850
5851 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5852 (sparc_convert_to_raw): Delete function.
5853 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5854 register_convert_to_virtual.
5855
043b2f77
JJ
58562003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5857
5858 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5859 layer if not dealing with a statically-linked threaded program.
5860
f43caff8
KW
58612003-06-03 Kris Warkentin <kewarken@qnx.com>
5862
5863 * solib.c (solib_open): Update comment to reflect actual search order.
5864
ae1e7417
AC
58652003-06-03 Andrew Cagney <cagney@redhat.com>
5866
5867 * frame.c (get_frame_memory_signed): New function.
5868 (get_frame_memory, get_frame_memory_unsigned): New function.
5869 (get_frame_arch): New function.
5870 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5871 (get_frame_memory, get_frame_unsigned_memory): Declare.
5872 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5873 get_frame_memory_unsigned and get_frame_arch.
5874 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5875
cb123844
RG
58762003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5877
5878 * MAINTAINERS (write after approval): Add myself.
5879
1bb792e9
JB
58802003-06-03 Jim Blandy <jimb@redhat.com>
5881
5882 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5883 elements of gregset_t are 64 bits each, but access registers
5884 are still 32 bits, so they're packed two per gregset_t
5885 element. Unpack/pack them properly.
5886
aee8d8ba
DC
58872003-06-02 David Carlton <carlton@bactrian.org>
5888
5889 * linespec.c (find_methods): Break out code into
5890 add_matching_methods and add_constructors.
5891 (add_matching_methods): New.
5892 (add_constructors): Ditto.
5893
bf7488d2
AC
58942003-06-02 Andrew Cagney <cagney@redhat.com>
5895
bf7488d2
AC
5896 * sparc-tdep.c (sparc_print_registers): Delete call to
5897 REGISTER_CONVERTIBLE.
5898 (sparc_gdbarch_init): Do not set register_convertible.
5899 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5900 * frv-tdep.c (frv_gdbarch_init): Ditto.
5901 * cris-tdep.c (cris_gdbarch_init): Ditto.
5902
adedef68
EZ
59032003-06-02 Elena Zannoni <ezannoni@redhat.com>
5904
8ffd9b1b 5905 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5906 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5907 (syms_from_objfile): Ditto.
5908
650fcc91
AS
59092003-06-03 Andreas Schwab <schwab@suse.de>
5910
5911 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5912 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5913
df4a182b
RH
59142003-06-02 Richard Henderson <rth@redhat.com>
5915
5916 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5917 a member of all_reggroup.
5918
c483c494
RH
59192003-06-02 Richard Henderson <rth@redhat.com>
5920
5921 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5922 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5923 (alpha_lds, alpha_sts): New.
5924 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5925 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5926 restructure and fail for type sizes other than 4 or 8.
5927 (alpha_value_to_register): Similarly.
5928 (alpha_extract_return_value): Use alpha_sts.
5929 (alpha_store_return_value): Use alpha_lds.
5930 (alpha_gdbarch_init): Update hooks.
5931
b38b6be2
RH
59322003-06-02 Richard Henderson <rth@redhat.com>
5933
5934 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5935 regnum identifiers.
5936 (alpha_sigtramp_register_address): Likewise.
5937
98a8e1e5
RH
59382003-06-02 Richard Henderson <rth@redhat.com>
5939
5940 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5941 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5942 * alpha-tdep.h: Declare them.
5943
5944 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5945 Remove zerobuf. Don't error on UNIQUE.
5946 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5947 (ALPHA_REGSET_UNIQUE): Provide default.
5948 (supply_gregset): Use alpha_supply_int_regs.
5949 (fill_gregset): Use alpha_fill_int_regs.
5950 (supply_fpregset): Use alpha_supply_fp_regs.
5951 (fill_fpregset): Use alpha_fill_fp_regs.
5952 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5953 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5954 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5955 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5956 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5957 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5958
67dfac52
RH
59592003-06-02 Richard Henderson <rth@redhat.com>
5960
f75d70cc
RH
5961 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5962
67dfac52
RH
5963 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5964 (alpha_store_return_value): Likewise.
5965
0cf566ec
DC
59662003-06-02 David Carlton <carlton@math.stanford.edu>
5967
5968 * block.c (contained_in): Add 'const' to arguments.
5969 (block_function): Ditto.
5970 * block.h: Update declarations for block_function and
5971 contained_in.
5972
cdef89d0
DC
59732003-06-02 David Carlton <carlton@math.stanford.edu>
5974
5975 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5976 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5977 * p-valprint.c (pascal_val_print): Ditto.
5978 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5979
72667056
RH
59802003-06-02 Richard Henderson <rth@redhat.com>
5981
98a8e1e5
RH
5982 * alpha-tdep.c (alpha_push_dummy_call): Use
5983 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5984
8ffd9b1b 5985 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5986 sign-extension of 32-bit values.
5987 (alpha_store_return_value): Similarly.
0ede8eca 5988
98a8e1e5
RH
5989 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5990 (alpha_extract_return_value): Likewise.
5991 (alpha_store_return_value): Likewise.
7b5e1cb3 5992
98a8e1e5
RH
5993 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5994 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5995
98a8e1e5
RH
5996 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5997 (alpha_extract_struct_value_address): Likewise.
5998 (alpha_store_return_value): Likewise.
5999 (alpha_store_struct_return): Remove.
6000 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 6001
98a8e1e5
RH
6002 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6003 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6004 macros where appropriate.
6005 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6006 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 6007
98a8e1e5
RH
6008 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6009 for SP, GP; void_func_ptr for PC; non-language-specific types
6010 for all others.
6011 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 6012
6dd77b81
RH
60132003-06-02 Richard Henderson <rth@redhat.com>
6014
6015 * top.h (lim_at_start): Declare.
6016 * main.c (captured_main): Set it.
6017 * top.c (lim_at_start): Define.
6018 (command_loop): Use it instead of &environ.
6019 * event-top.c (command_handler): Likewise.
6020
f4dbdb54
JT
60212003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6022
6023 * mipsnbsd-tdep.c: Update copyright years.
6024 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6025
8f285956
RH
60262003-06-01 Richard Henderson <rth@redhat.com>
6027
98a8e1e5
RH
6028 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6029 (alpha-linux-tdep.o): Update dependencies.
6030 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6031 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 6032
615967cb
RH
60332003-06-01 Richard Henderson <rth@redhat.com>
6034
98a8e1e5
RH
6035 * alpha-tdep.c (alpha_register_reggroup_p): New.
6036 (alpha_gdbarch_init): Register it.
615967cb 6037
b59661bd
AC
60382003-06-02 Andrew Cagney <cagney@redhat.com>
6039
6040 * dwarfread.c: Eliminate "register"
6041 (decode_die_type): Eliminate assignment within "if".
6042 (struct_type, decode_array_element_type): Ditto.
6043 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6044 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6045 (decode_modified_type, completedieinfo): Ditto.
6046 * block.c: Eliminate "register".
6047 (blockvector_for_pc_sect): Eliminate assignment within "if".
6048 * cp-support.h (struct symbol): Opaque declaration.
6049 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6050
5ef165c2
RH
60512003-06-01 Richard Henderson <rth@redhat.com>
6052
98a8e1e5
RH
6053 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6054 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 6055
143985b7
AF
60562003-06-01 Adam Fedor <fedor@gnu.org>
6057
6058 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6059 * gdbarch.[ch]: Regenerate.
6060 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6061 (hppa_gdbarch_init): Set it in the gdbarch vector.
6062 * i386-tdep.c (i386_fetch_pointer_argument): New
6063 (i386_gdbarch_init): Set it into gdbarch.
6064 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6065 (rs6000_gdbarch_init): Set it in gdbarch.
6066 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6067 (sparc_gdbarch_init): Set it in gdbarch.
6068
ae0167b9
AC
60692003-06-01 Andrew Cagney <cagney@redhat.com>
6070
7c0b4a20
AC
6071 * defs.h (extract_address): Delete declaration.
6072 * findvar.c (extract_address): Delete function.
6073 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6074 extract_address with the inline equivalent,
6075 extract_unsigned_integer.
6076 (xstormy16_extract_struct_value_address): Ditto.
6077 (xstormy16_pointer_to_address): Ditto.
6078 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6079 * v850-tdep.c (v850_push_arguments): Ditto.
6080 (v850_extract_return_value): Ditto.
6081 (v850_extract_struct_value_address): Ditto.
6082 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6083 (sparcnbsd_get_longjmp_target_64): Ditto.
6084 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6085 (get_longjmp_target): Ditto.
6086 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6087 (sh64_extract_struct_value_address): Ditto.
6088 (sh_push_arguments): Ditto.
6089 (sh64_push_arguments): Ditto.
6090 * remote-vxsparc.c (vx_read_register): Ditto.
6091 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6092 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6093 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6094 * mipsv4-nat.c (get_longjmp_target): Ditto.
6095 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6096 * mips-nat.c (get_longjmp_target): Ditto.
6097 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6098 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6099 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6100 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6101 * irix5-nat.c (get_longjmp_target): Ditto.
6102 * irix4-nat.c (get_longjmp_target): Ditto.
6103 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6104 (ia64_push_arguments): Ditto.
6105 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6106 * h8300-tdep.c (h8300_push_arguments): Ditto.
6107 (h8300_store_return_value): Ditto.
6108 (h8300_extract_struct_value_address): Ditto.
6109 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6110 (frv_push_arguments): Ditto.
6111 * avr-tdep.c (avr_pointer_to_address): Ditto.
6112 (avr_push_arguments): Ditto.
6113 * arm-tdep.c (arm_push_dummy_call): Ditto.
6114 (arm_get_longjmp_target): Ditto.
6115 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6116 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6117 (alpha_get_longjmp_target): Ditto.
6118
ae0167b9
AC
6119 * solib-irix.c (extract_mips_address): Inline extract_address,
6120 replacing it with extract_signed_integer.
6121 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6122 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6123 (first_link_map_member, open_symbol_file_object): Ditto.
6124 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6125 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6126 (LM_NEXT, LM_NAME): Ditto.
6127
44d88583
RH
61282003-06-01 Richard Henderson <rth@redhat.com>
6129
98a8e1e5
RH
6130 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6131 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6132 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6133 (alpha_cannot_store_register): Likewise.
6134 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6135 * alpha-nat.c (supply_gregset): Likewise.
6136 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 6137
310e9b6a
AC
61382003-06-01 Andrew Cagney <cagney@redhat.com>
6139
6140 * infcall.c (call_function_by_hand): Update comment on
6141 DEPRECATED_DUMMY_WRITE_SP.
6142
6143 * mips-tdep.c (mips_gdbarch_init): Do not set
6144 deprecated_dummy_write_sp.
6145 (mips_eabi_push_dummy_call): Set the SP register.
6146 (mips_o64_push_dummy_call): Set the SP register.
6147 (mips_o32_push_dummy_call): Set the SP register.
6148 (mips_n32n64_push_dummy_call): Set the SP register.
6149
5ab84872
RH
61502003-06-01 Richard Henderson <rth@redhat.com>
6151
98a8e1e5
RH
6152 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6153 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6154 (supply_gregset): Likewise.
6155 * alpha-tdep.c (alpha_store_return_value): Likewise.
6156 (alpha_get_longjmp_target): Likewise.
6157 (alpha_register_name): Constify array.
6158 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6159 deprecated_register_size, deprecated_register_bytes,
6160 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6161 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6162 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 6163
09cc52fd
RH
61642003-06-01 Richard Henderson <rth@redhat.com>
6165
6166 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6167 from arg_reg_buffer to regcache to avoid double conversion.
6168
c7f16359
MK
61692003-06-01 Mark Kettenis <kettenis@gnu.org>
6170
6171 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6172 SP_REGNUM.
6173 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6174 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6175
7131cb6e
RH
61762003-06-01 Richard Henderson <rth@redhat.com>
6177
98a8e1e5
RH
6178 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6179 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 6180
f3e0f90b
RH
61812003-06-01 Richard Henderson <rth@redhat.com>
6182
98a8e1e5
RH
6183 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6184 not overlapping PC_REGNUM.
f3e0f90b 6185
c88e30c0
RH
61862003-06-01 Richard Henderson <rth@redhat.com>
6187
98a8e1e5
RH
6188 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6189 alpha_push_arguments. Don't dump argument register data to
6190 the target stack. Fix float and 128-bit long double semantics.
6191 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6192 (alpha_fix_call_dummy): Remove.
6193 (alpha_call_dummy_words): Remove.
6194 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 6195
f1a559ae
RH
61962003-06-01 Richard Henderson <rth@redhat.com>
6197
6198 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6199
5e045346
AC
62002003-06-01 Andrew Cagney <cagney@redhat.com>
6201
95404a3e
AC
6202 * mips-tdep.c (is_mips16_addr): New function.
6203 (make_mips16_addr, unmake_mips16_addr): New functions.
6204 (pc_is_mips16, mips_fetch_instruction): Use.
6205 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6206 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6207 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6208 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6209 TARGET_MIPS.
6210 * config/mips/tm-mips.h: Update copyright.
6211 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6212 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6213 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6214 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6215 (TM_PRINT_INSN_MACH): Delete.
6216 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6217
5e045346
AC
6218 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6219 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6220 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6221 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6222 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6223 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6224 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6225 mips*-*-riscos* and mips*-*-sysv* onto mips.
6226 * config/mips/mips64.mt: New file.
6227 * config/mips/mips.mt: New file.
6228 * config/mips/littlemips.mt: Delete file.
6229 * config/mips/decstation.mt: Delete file.
6230 * config/mips/vr4300el.mt: Delete file.
6231 * config/mips/vr5000el.mt: Delete file.
6232 * config/mips/vr5000.mt: Delete file.
6233 * config/mips/vr4100.mt: Delete file.
6234 * config/mips/vr4xxxel.mt: Delete file.
6235 * config/mips/vr4300.mt: Delete file.
6236 * config/mips/vr4xxx.mt: Delete file.
6237 * config/mips/bigmips.mt: Delete file.
6238 * config/mips/bigmips64.mt: Delete file.
6239 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6240 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6241 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6242 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6243 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6244 "tm-bigmips.h".
6245 * config/mips/tm-irix3.h: Ditto.
6246 * config/mips/tm-mipsv4.h: Ditto.
6247 * config/mips/tm-embed.h: Ditto.
6248 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6249 "tm-bigmips64.h".
6250 * config/mips/tm-vr5000el.h: Delete file.
6251 * config/mips/tm-tx39l.h: Delete file.
6252 * config/mips/tm-vr4300el.h: Delete file.
6253 * config/mips/tm-vr4xxxel.h: Delete file.
6254 * config/mips/tm-vr4300.h: Delete file.
6255 * config/mips/tm-vr4100.h: Delete file.
6256 * config/mips/tm-vr4xxx.h: Delete file.
6257 * config/mips/tm-vr5000.h: Delete file.
6258 * config/mips/tm-embedl64.h: Delete file.
6259 * config/mips/tm-embedl.h: Delete file.
6260 * config/mips/tm-embed64.h: Delete file.
6261 * config/mips/tm-bigmips64.h: Delete file.
6262 * config/mips/tm-bigmips.h: Delete file.
6263
2473a4a9
MK
62642003-06-01 Mark Kettenis <kettenis@gnu.org>
6265
97a5b208
MK
6266 Fix gdb/1216.
6267 * shnbsd-nat.c: Include "sh-tdep.h".
6268
2473a4a9
MK
6269 From Richard Henderson <rth@redhat.com>:
6270 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6271
e0f7ec59
AC
62722003-05-31 Andrew Cagney <cagney@redhat.com>
6273
6274 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6275 forward declaration.
6276 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6277 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6278 (mips_find_saved_regs): Use set_reg_offset.
6279 (mips_frame_init_saved_regs): Delete function.
6280 (mips_pop_frame): Call mips_find_saved_regs instead of
6281 DEPRECATED_FRAME_INIT_SAVED_REGS.
6282
68dcc709
AC
62832003-05-31 Andrew Cagney <cagney@redhat.com>
6284
6285 * mips-tdep.c (mips_gdbarch_init): Do not set
6286 deprecated_max_register_raw_size, register_virtual_size, and
6287 deprecated_max_register_virtual_size.
6288
cfc14b3a
MK
62892003-05-31 Mark Kettenis <kettenis@gnu.org>
6290
6405b0a6
MK
6291 * i386-tdep.c: Include "dwarf2-frame.h".
6292 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6293 * Makefile.in (i386-tdep.o): Update dependencies.
6294
cfc14b3a
MK
6295 * dwarf2-frame.c, dwarf2-frame.h: New files.
6296 * Makefile.in (SFILES): Add dwarf2-frame.c.
6297 (dwarf2_frame_h): Define.
6298 (COMMON_OBS): Add dwarf2-frame.o.
6299 (dwarf2-frame.o): Add dependencies.
6300
6a2751d2
AJ
63012003-05-31 Andreas Jaeger <aj@suse.de>
6302
6303 * x86-64-linux-nat.c: Fix comment.
6304
1c3545ae
MK
63052003-05-31 Mark Kettenis <kettenis@gnu.org>
6306
10f93086
MK
6307 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6308 function signature.
6309
1c3545ae
MK
6310 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6311 have a sigcontext_addr handler.
6312 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6313 sigcontext_addr handler.
6314
e11c53d2
AC
63152003-05-31 Andrew Cagney <cagney@redhat.com>
6316
6317 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6318 (print_fp_register_row): Replace do_fp_register_row.
6319 (mips_print_fp_register): Add "file" and "frame" parameters.
6320 (mips_print_register): Add "file" and "frame" parameters.
6321 (mips_print_registers_info): Replace mips_do_registers_info.
6322 (mips_gdbarch_init): Set print_registers_info instead of
6323 deprecated_do_registers_info.
6324 (mips_read_fp_register_single): Add "frame" parameter.
6325 (mips_read_fp_register_double): Add "frame" parameter.
6326
a3386186
MK
63272003-05-31 Mark Kettenis <kettenis@gnu.org>
6328
70913449
MK
6329 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6330 Fixes a bug where GDB would print the wrong register names for
6331 targets without SSE.
6332
2b5e0749
MK
6333 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6334 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6335 registers.
6336
6337 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6338 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6339 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6340 TDEP->sc_sp_offset.
6341
a3386186
MK
6342 From Michal Ludvig <mludvig@suse.cz>:
6343 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6344 and `sc_num_regs'.
6345 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6346 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6347 I386_ST0_REGNUM): Move here from...
6348 * i386-tdep.c: ... here.
6349 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6350 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6351 registers if possible.
6352 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6353 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6354 Remove variables.
6355 (i386bsd_sc_reg_offset): New variable.
6356 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6357 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6358 TDEP->sc_sp_offset.
6359 (i386fbsd_sc_reg_offset): New variable.
6360 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6361 TDEP->sc_num_regs.
6362 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6363 variables.
6364 (i386fbsd4_sc_reg_offset): New variable.
6365 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6366 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6367 TDEP->sc_sp_offset.
6368 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6369 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6370 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6371 Remove variables.
6372 (i386nbsd_sc_reg_offset): New variable.
6373 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6374 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6375 TDEP->sc_sp_offset.
6376 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6377 Remove variables.
6378 (i386obsd_sc_reg_offset): New variable.
6379 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6380 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6381 TDEP->sc_sp_offset.
6382 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6383 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6384 for frame pointer offset in `struct sigcontext'.
6385
25ab4790
AC
63862003-05-31 Andrew Cagney <cagney@redhat.com>
6387
6388 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6389 architecture methods call_dummy_words, sizeof_call_dummy_words,
6390 push_return_address, store_struct_return, and fix_call_dummy. Set
6391 push_dummy_call instead of deprecated_push_arguments.
6392 (mips_store_struct_return): Delete function.
6393 (mips_fix_call_dummy): Delete function.
6394 (mips_push_return_address): Delete function.
6395 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6396 RA_REGNUM and T9_REGNUM.
6397 (mips_n32n64_push_dummy_call): Ditto for
6398 mips_n32n64_push_arguments.
6399 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6400 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6401
6a65450a
AC
64022003-05-31 Andrew Cagney <cagney@redhat.com>
6403
6404 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6405 "dummy_addr" to "bp_addr".
6406 * infcall.c (call_function_by_hand): Pass "funaddr" to
6407 gdbarch_push_dummy_call.
6408 * gdbarch.h, gdbarch.c: Re-generate.
6409 * i386-tdep.c (i386_push_dummy_call): Update.
6410 * arm-tdep.c (arm_push_dummy_call): Update.
6411 * d10v-tdep.c (d10v_push_dummy_call): Update.
6412
c4f35dd8
MK
64132003-05-31 Mark Kettenis <kettenis@gnu.org>
6414
6415 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6416 variable declarations.
6417 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6418 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6419 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6420 x86_64_init_frame_pc, x86_64_init_frame_pc,
6421 x86_64_function_has_prologue): Remove prototypes.
6422 (X86_64_NUM_GREGS): New define.
6423 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6424 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6425 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6426 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6427 XMM1_REGNUM): Remove defines.
6428 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6429 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6430 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6431 X86_64_XMM1_REGNUM): New defines.
6432 (struct x86_64_register_info): Renamed from `struct
6433 register_info'. Remove `size' member.
6434 (x86_64_register_info_table): Remove variable.
6435 (x86_64_register_info): New variable.
6436 (X86_64_NUM_REGS): New define.
6437 (X86_64_NUM_GREGS): Remove define.
6438 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6439 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6440 Remove variables.
6441 (x86_54_dwarf2_reg_to_regnum): Remove function.
6442 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6443 (x86_64_dwarf_reg_to_regnum): New function.
6444 (x86_64_register_name): Rewrite.
6445 (x86_64_register_raw_size): Remove function.
6446 (x86_64_register_byte_table): Remove variable.
6447 (x86_64_register_byte): Remove function.
6448 (x86_64_register_virtual_type): Remove function.
6449 (x86_64_register_type): New function.
6450 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6451 x86_64_register_convert_to_raw): Remove functions.
6452 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6453 (x86_64_use_struct_convention): Make static. Adjust for renamed
6454 defines.
6455 (x86_64_frame_init_saved_regs): Remove function.
6456 (x86_64_push_arguments): Make static. Change to accept a regcache
6457 as argument.
6458 (x86_64_store_return_value, x86_64_extract_return_value): Make
6459 static. Rewrite based on i386 counterparts.
6460 (x86_64_push_dummy_call): New function.
6461 (X86_64_NUM_SAVED_REGS): New define.
6462 (x86_64_register_number): Remove function.
6463 (x86_64_store_struct_return): Remove function.
6464 (x86_64_frameless_function_invocation,
6465 x86_64_function_has_prologue): Remove functions.
6466 (PROLOG_BUFSIZE): Remove define.
6467 (struct x86_64_frame_cache): New structure.
6468 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6469 x86_64_frame_cache, x86_64_frame_this_id,
6470 x86_64_frame_prev_register, x86_64_frame_p,
6471 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6472 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6473 functions.
6474 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6475 variables.
6476 (x86_64_skip_prologue): Rewrite in terms of
6477 x86_64_analyze_prologue.
6478 (x86_64_frame_base_address): New function.
6479 (x86_64_frame_base): New variable.
6480 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6481 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6482 set deprecated_fp_regnum, deprecated_register_size,
6483 deprecated_register_bytes, register_raw_size, register_byte,
6484 register_virtual_type, register_convertiable,
6485 register_convert_to_virtual, convert_to_raw,
6486 deprecated_get_saved_register, deprecated_target_read_fp,
6487 deprecated_push_arguments, deprecated_push_return_address,
6488 deprecated_pop_frame, deprecated_store_struct_return,
6489 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6490 frameless_function_invocation, deprecated_frame_saved_pc,
6491 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6492 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6493 deprecated_init_frame_pc and virtual_frame_pointer. Call
6494 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6495 and x86_64_frame_p. Call frame_base_set_default to register
6496 x86_64_frame_base.
6497 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6498 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6499 (_initialize_x86_64_tdep): Remove function.
6500 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6501 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6502 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6503 define.
6504 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6505 (x86_64_linux_sigcontext_addr): Rewrite.
6506 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6507 x86_64_linux_frame_saved_pc): Remove functions.
6508 (x86_64_linux_pc_in_sigtramp): Renamed from
6509 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6510 trampoline.
6511 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6512 Remove_functions.
6513 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6514 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6515 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6516 (x86_64_regmap): Rename to regmap.
6517 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6518 x86_64_num_gregs.
6519 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6520 x86_64_regmap.
6521 (x86_64_fxsave_offset): Remove function.
6522 (supply_fpregset): Simply call x86_64_supply_fxsave.
6523 (fill_fpregset): Simply call x86_64_fill_fxsave.
6524 (fetch_inferior_registers, store_inferior_registers): Avoid
6525 asignment in if-statement.
6526 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6527 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6528 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6529 (fetch_core_registers): Remove function.
6530 (linux_elf_core_fns): Remove.
6531 (offsetoff): Don't define.
6532 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6533 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6534 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6535 add core-regset.o.
6536 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6537 protection against multiple includes instead of NM_X86_64_h. Add
6538 various comments. Include "config/nm-linux.h". Don't include
6539 <signal.h>.
6540 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6541 GET_THREAD_SIGNALS): Remove defines.
6542 (x86_64_register_u_addr, kernel_u_size,
6543 lin_thread_get_thread_signals): Remove prototypes.
6544 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6545 [HAVE_LINK_H]: Don't include "solib.h".
6546 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6547 * config/i386/tm-x86-64linux.h: Fix comments.
6548 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6549 x86-64-tdep.o): Update dependencies.
6550
c25083af
AC
65512003-05-30 Andrew Cagney <cagney@redhat.com>
6552
c8f55a7b
AC
6553 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6554 Change parameter type to a "struct regcache *".
6555
c25083af
AC
6556 * gdbarch.sh: Regardless of the multi-arch level, always define
6557 the macro when not already defined.
6558 * gdbarch.h, gdbarch.c: Re-generate.
6559
fbe586ae
RH
65602003-05-30 Richard Henderson <rth@redhat.com>
6561
6562 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6563 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6564 (alpha_mdebug_frame_this_id): Likewise.
6565 (alpha_mdebug_frame_prev_register): Likewise.
6566 (alpha_mdebug_frame_base_address): Likewise.
6567 (alpha_mdebug_frame_locals_address): Likewise.
6568 (alpha_mdebug_frame_args_address): Likewise.
6569 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6570 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6571 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6572 loop increment.
6573 (alpha_heuristic_frame_this_id): Make static.
6574 (alpha_heuristic_frame_prev_register): Likewise.
6575 (alpha_heuristic_frame_base_address): Likewise.
6576 * alpha-tdep.h: Update.
6577
acd5c798
MK
65782003-05-30 Mark Kettenis <kettenis@gnu.org>
6579
6580 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6581 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6582 defenitions.
6583 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6584 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6585 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6586 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6587 I386_ST0_REGNUM): New defines.
6588 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6589 codestream_get): Remove define.
6590 (codestream_next_addr, condestream_addr, condestream_buf,
6591 codestream_off, codestream_cnt): Remove variables.
6592 (codestream_fill, codestream_seek, codestream_read): Remove
6593 functions.
6594 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6595 functionality.
6596 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6597 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6598 i386_frame_saved_pc, i386_saved_pc_after_call,
6599 i386_frame_num_args, i386_frame_init_saved_regs,
6600 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6601 i386_push_arguments): Remove functions.
6602 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6603 functionality. Use i386_analyze_prologue instead of
6604 i386_get_frame_setup.
6605 (I386_NUM_SAVED_REGS): New define.
6606 (struct i386_frame_cache): New structure.
6607 (i386_alloc_frame_cache, i386_analyze_struct_return,
6608 i386_skip_probe, i386_analyze_frame_setup,
6609 i386_analyze_register_saves, i386_analyze_prologue,
6610 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6611 i386_frame_prev_register, i386_sigtramp_frame_cache,
6612 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6613 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6614 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6615 New functions.
6616 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6617 New variables.
6618 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6619 I386_EAX_REGNUM and I386_EDX_REGNUM.
6620 (i386_extract_return_value, i386_store_return_value): Use
6621 I386_ST0_REGNUM where appropriate.
6622 (i386_extract_struct_value_address): Rewrite to use extract_address.
6623 (i386_svr4_pc_in_sigtramp): Add comment.
6624 (i386_svr4_sigcontext_addr): Rewrite.
6625 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6626 TDEP->sc_sp_offset.
6627 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6628 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6629 of new defines. Set push_dummy_call, don't set
6630 deprecated_push_arguments, deprecated_push_return_address,
6631 deprecated_pop_frame. Don't set parm_boundary. Don't set
6632 deprecated_frame_chain, deprecated_frame_saved_pc,
6633 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6634 save_dummy_frame_tos, unwind_pc. Call
6635 frame_unwind_append_predicate and frame_base_set_default. Don't
6636 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6637 Don't set frameless_function_invocation. Don't set
6638 deprecated_register_bytes, deprecated_register_size,
6639 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6640 * i386-linux-tdep.c: Fix formatting in some comments.
6641 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6642 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6643 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6644 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6645 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6646 redundant parentheses.
6647 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6648 (i386_linux_sigcontext_addr): Use it. Rewrite.
6649 (find_minsym_and_objfile): Change name of second argument.
6650 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6651 changed. Use frame_pc_unwind instead of
6652 DEPRECATED_SAVED_PC_AFTER_CALL.
6653 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6654 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6655 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6656 unwinder.
6657 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6658 "dummy-frame.h".
6659 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6660 (_initialize_i386_cygwin_tdep): New prototype.
6661 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6662 deprecated_frame_chain_valid.
6663 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6664 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6665 Rely on the SVR4 defaults.
6666 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6667 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6668
c89b70f1
AC
66692003-05-30 Andrew Cagney <cagney@redhat.com>
6670
6671 * infcall.c (call_function_by_hand): Always call
6672 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6673
85b32d22
RH
66742003-05-30 Richard Henderson <rth@redhat.com>
6675
c89b70f1
AC
6676 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6677 increment.
85b32d22 6678
bfe51b1e
JB
66792003-05-29 Jim Blandy <jimb@redhat.com>
6680
6681 Use gdbarch methods for solib stuff on PowerPC Linux.
6682 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6683 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6684 show through.
6685 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6686 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6687 giving the same effect as the #definitions above.
6688
1abf022c
AF
66892003-05-29 Adam Fedor <fedor@gnu.org>
6690
6691 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6692 (find_implementation_from_class): Replace it with the standard
6693 case i.e. do nothing.
6694
d2427a71
RH
66952003-05-29 Richard Henderson <rth@redhat.com>
6696
6697 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6698 (alpha_linux_sigtramp_offset): Use it. Make static.
6699 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6700 update for new frame model.
6701 * alpha-mdebug-tdep.c: New file.
6702 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6703 (alpha_osf1_init_abi): Install it.
6704 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6705 (linked_proc_desc_table): Remove.
6706 (alpha_frame_past_sigtramp_frame): Remove.
6707 (alpha_dynamic_sigtramp_offset): Remove.
6708 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6709 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6710 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6711 (push_sigtramp_desc): Remove.
6712 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6713 (alpha_cannot_store_register): Likewise.
6714 (alpha_sigcontext_addr): Remove.
6715 (alpha_find_saved_regs): Remove.
6716 (alpha_frame_init_saved_regs): Remove.
6717 (alpha_init_frame_pc_first): Remove.
6718 (read_next_frame_reg): Remove.
6719 (alpha_frame_saved_pc): Remove.
6720 (alpha_saved_pc_after_call): Remove.
6721 (temp_proc_desc, temp_saved_regs): Remove.
6722 (alpha_about_to_return): Remove.
6723 (cached_proc_desc): Remove.
6724 (alpha_frame_chain): Remove.
6725 (alpha_print_extra_frame_info): Remove.
6726 (alpha_init_extra_frame_info): Remove.
6727 (alpha_frame_locals_address): Remove.
6728 (alpha_frame_args_address): Remove.
6729 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6730 (alpha_push_dummy_frame): Remove.
6731 (alpha_pop_frame): Remove.
6732 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6733 (alpha_read_insn): New.
6734 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6735 for different insn encodings.
6736 (alpha_in_lenient_prologue): Remove.
6737 (struct alpha_sigtramp_unwind_cache): New.
6738 (alpha_sigtramp_frame_unwind_cache): New.
6739 (alpha_sigtramp_register_address): New.
6740 (alpha_sigtramp_frame_this_id): New.
6741 (alpha_sigtramp_frame_prev_register): New.
6742 (alpha_sigtramp_frame_unwind): New.
6743 (alpha_sigtramp_frame_p): New.
6744 (struct alpha_heuristic_unwind_cache): New.
6745 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6746 don't count nop insns that occur between functions.
6747 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6748 heuristic_proc_desc, but without the mdebug wrapping.
6749 (alpha_heuristic_frame_this_id): New.
6750 (alpha_heuristic_frame_prev_register): New.
6751 (alpha_heuristic_frame_unwind): New.
6752 (alpha_heuristic_frame_p): New.
6753 (alpha_heuristic_frame_base_address): New.
6754 (alpha_heuristic_frame_base): New.
6755 (alpha_unwind_dummy_id): New.
6756 (alpha_unwind_pc): New.
6757 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6758 frame related deprecated initializations; install replacements.
6759 (alpha_dump_tdep): Remove.
6760 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6761 (alpha_read_insn, alpha_after_prologue,
6762 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6763 alpha_heuristic_frame_prev_register,
6764 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6765 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6766 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6767 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6768
93ec1121
AC
67692003-05-29 Andrew Cagney <cagney@redhat.com>
6770
6771 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6772 dependant on the availability of ASSERT_FUNCTION.
6773 (ASSERT_FUNCTION): Do not define when there is no function name.
6774
98f08d3d
KB
67752003-05-29 Kevin Buettner <kevinb@redhat.com>
6776
6777 From Jimi X <jimix@watson.ibm.com>:
6778 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6779
0897f59b
JB
67802003-05-28 Jim Blandy <jimb@redhat.com>
6781
6782 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6783 argument to ptrace to int; the system headers should give it the
6784 right type, and pointers don't fit in ints on powerpc64-*-*.
6785
14898363
L
67862003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6787
6788 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6789 DW_TAG_catch_block.
6790
a7a48797
EZ
67912003-05-26 Elena Zannoni <ezannoni@redhat.com>
6792
6793 * stabsread.c (dbx_lookup_type): Make static.
6794 (read_type): Ditto.
6795 (add_undefined_type): Ditto.
6796 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6797 not export.
6798
f5479e9c
EZ
67992003-05-26 Elena Zannoni <ezannoni@redhat.com>
6800
6801 * hpread.c (hpread_has_name): Make static.
6802 (hpread_psymtab_to_symtab): Ditto.
6803 (file_exists): Ditto.
6804 (hpread_call_pxdb): Ditto.
6805 (hpread_pxdb_needed): Ditto.
6806 (hpread_quick_traverse): Ditto.
6807 (hpread_get_header): Ditto.
6808 (hpread_get_lntt): Ditto.
6809 (hpread_get_slt): Ditto.
6810 (class_of): Ditto.
6811
eb2e12d7
AS
68122003-05-25 Andreas Schwab <schwab@suse.de>
6813
78bf922a
AS
6814 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6815 stack_align and deprecated_extra_stack_alignment_needed.
6816 (m68k_stack_align): Delete.
6817
eb2e12d7
AS
6818 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6819 (m68k_register_virtual_size): Likewise.
6820 (altos_skip_prologue): Remove obsolete function.
6821 (isi_frame_num_args): Likewise.
6822 (news_frame_num_args): Likewise.
6823 (m68k_fix_call_dummy): Make static.
6824 (m68k_push_dummy_frame): Likewise.
6825 (m68k_pop_frame): Likewise.
6826 (m68k_skip_prologue): Likewise.
6827 (m68k_frame_init_saved_regs): Likewise.
6828 (m68k_saved_pc_after_call): Likewise.
6829 (m68k_get_longjmp_target): Make multi-arch.
6830 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6831 structure. Register m68k_get_longjmp_target if enabled.
6832 * m68k-tdep.h (struct gdbarch_tdep): Define.
6833 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6834
6835 * Makefile.in (config.status): Also depend on configure.tgt
6836 and configure.host.
6837 (m68klinux-tdep.o): Update dependencies.
6838 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6839 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6840 (M68K_LINUX_JB_PC): Define.
6841 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6842 and take additional parameter.
6843 (m68k_linux_sigtramp_saved_pc): Update.
6844 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6845 m68k_linux_pc_in_sigtramp, in_plt_section,
6846 find_solib_trampoline_target.
6847 * config/m68k/tm-linux.h: Don't include any tm headers.
6848 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6849 (JB_ELEMENT_SIZE): Likewise.
6850 (JB_PC): Likewise.
6851 (GET_LONGJMP_TARGET): Likewise.
6852 (IN_SIGTRAMP): Likewise.
6853 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6854
eb2c22dc
MK
68552003-05-25 Mark Kettenis <kettenis@gnu.org>
6856
6857 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6858 (sparc32_push_arguments): Re-implement by calling
6859 sparc32_do_push_arguments.
6860
44b7b84e
MK
68612003-05-25 Mark Kettenis <kettenis@gnu.org>
6862
6863 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6864 SPARC_O1_REGNUM): New defines.
6865 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6866 (sparc32_store_return_value): New function.
6867 (sparc_extract_struct_value_address): Rewrite to operate on a
6868 regcache.
6869 (sparc_gdbarch_init): Don't set
6870 deprecated_extract_struct_value_address. Set
6871 extract_struct_value_address instead. Don't set
6872 deprecated_extract_return_value and deprecated_store_return_value
6873 for 32-bit targets. Set extract_return_value and
6874 store_return_value instead.
6875 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6876 DEPRECTAED_EXTRACT_RETURN_VALUE,
6877 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6878 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6879 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6880 (sparc_store_return_value): Remove prototype.
6881 (sparc32_store_return_value): New prototype.
6882 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6883 Adjust prototypes.
6884
f6ad61e3
MK
68852003-05-24 Mark Kettenis <kettenis@gnu.org>
6886
6887 * sparcnbsd-tdep.c: Include "gdb_string.h".
6888
b276f1bb
AC
68892003-05-23 Andrew Cagney <cagney@redhat.com>
6890
6891 * p-valprint.c (pascal_val_print): Replace extract_address with
6892 the inline equivalent extract_unsigned_integer.
6893 * jv-valprint.c (java_value_print): Ditto.
6894 * ada-valprint.c (ada_val_print_1): Ditto.
6895 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6896
e76c5fcc
TR
68972003-05-23 Theodore A. Roth <troth@openavr.org>
6898
6899 * blockframe.c (frameless_look_for_prologue): Remove unused
6900 after_prologue variable.
6901
2cdd89cb
MK
69022003-05-23 Mark Kettenis <kettenis@gnu.org>
6903
6904 * blockframe.c (get_pc_function_start): Rewrite to avoid
6905 asignments in if-statements.
6906
182d43bc
EZ
69072003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6908
6909 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6910 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6911 files, don't relocate absolute symbols (and do use mst_abs).
6912
e8f3fcdd
AC
69132003-05-23 Andrew Cagney <cagney@redhat.com>
6914
6915 * objc-lang.c: Include "gdb_assert.h".
6916 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6917 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6918 (gdb_check, gdb_check_fatal): Delete functions.
6919 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6920 gdb_assert.
6921 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6922 * Makefile.in (objc-lang.o): Update dependencies.
6923
3c23e6fb
ILT
69242003-05-22 Ian Lance Taylor <ian@airs.com>
6925
6926 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6927 with fprintf_filtered, not fprintf_unfiltered.
6928
af1342ab
AC
69292003-05-22 Andrew Cagney <cagney@redhat.com>
6930
6931 * stack.c (frame_info): Inline extract_address, replacing it with
6932 extract_unsigned_integer.
6933 * findvar.c (unsigned_pointer_to_address): Ditto.
6934 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6935 * dwarf2expr.c (dwarf2_read_address): Ditto.
6936 * frame.c (frame_pc_unwind): Update comment.
6937 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6938
47e242ec
JJ
69392003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6940
6941 * infptrace.c (detach): Call print_sys_errmsg rather than
6942 perror_with_name to issue warning message when errno is non-zero
6943 after calling ptrace detach.
6944
e2ac8128
JB
69452003-05-21 J. Brobecker <brobecker@gnat.com>
6946
6947 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6948 macro definitions from here...
6949 * hppa-tdep.c: ...to there.
6950
92b3541e
KB
69512003-05-20 Kevin Buettner <kevinb@redhat.com>
6952
6953 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6954 register_ptrace_addr(). Fix all callers.
6955
55809acb
AS
69562003-05-21 Andreas Schwab <schwab@suse.de>
6957
6958 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6959 dependencies.
6960 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6961 end.
6962 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6963 (_initialize_m68k_linux_tdep): New function.
6964 (m68k_linux_frame_saved_pc): Make static.
6965 (m68k_linux_extract_return_value): Likewise.
6966 (m68k_linux_store_return_value): Likewise.
6967 (m68k_linux_extract_struct_value_address): Likewise.
6968 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6969 Remove.
6970 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6971 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6972 (DEPRECATED_FRAME_SAVED_PC): Remove.
6973
0fbc10f7
KW
69742003-05-20 Kris Warkentin <kewarken@qnx.com>
6975
6976 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6977 regset numbering rather than our own.
6978
58da2eb2
DC
69792003-05-19 David Carlton <carlton@bactrian.org>
6980
6981 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6982
1fcb5155
DC
69832003-05-19 David Carlton <carlton@bactrian.org>
6984
6985 Partial fix for PR c++/827.
6986 * cp-support.h: Include symtab.h.
6987 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6988 * cp-namespace.c: Update contributors.
6989 (cp_lookup_symbol_nonlocal): New.
6990 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6991 (lookup_symbol_file): Ditto.
6992 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6993 * block.h: Declare block_scope, block_using, block_global_block.
6994 * block.c (block_scope): New.
6995 (block_using, block_global_block): Ditto.
6996 * Makefile.in (cp_support_h): Depend on symtab_h.
6997 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6998
5f9a71c3
DC
69992003-05-19 David Carlton <carlton@bactrian.org>
7000
7001 * language.h (struct language_defn): Add 'la_value_of_this'
7002 and 'la_lookup_symbol_nonlocal' members.
7003 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7004 lookup_symbol_static, lookup_symbol_global,
7005 lookup_symbol_aux_block.
7006 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7007 if we should search fields of this and how to do static/global
7008 lookup.
7009 (lookup_symbol_aux_block): Make extern.
7010 (basic_lookup_symbol_nonlocal): New.
7011 (lookup_symbol_static, lookup_symbol_global): Ditto.
7012 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7013 'la_lookup_symbol_nonlocal' members.
7014 * c-lang.c (c_language_defn, cplus_language_defn)
7015 (asm_language_defn, minimal_language_defn): Ditto.
7016 * jv-lang.c (java_language_defn): Ditto.
7017 * language.c (unknown_language_defn, auto_language_defn)
7018 (local_language_defn): Ditto.
7019 * m2-lang.c (m2_language_defn): Ditto.
7020 * objc-lang.c (objc_language_defn): Ditto.
7021 * scm-lang.c (scm_language_defn): Ditto.
7022 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7023 * p-lang.c (pascal_language_defn): Ditto for both.
7024 * Makefile.in (f-lang.o): Depend on value_h.
7025 (p-lang.o): Ditto.
7026
89a9d1b1
DC
70272003-05-19 David Carlton <carlton@bactrian.org>
7028
7029 * block.h: Declare block_static_block.
7030 * block.c (block_static_block): New.
7031 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7032 lookup_symbol_aux_local, calling block_static_block instead.
7033 (lookup_symbol_aux_local): Delete 'static_block' argument.
7034
eed3f8ab
DC
70352003-05-19 David Carlton <carlton@bactrian.org>
7036
7037 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7038
a09d8bda
ML
70392003-05-19 Michal Ludvig <mludvig@suse.cz>
7040
7041 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7042 register numbers mapping.
7043
69636828
AF
70442003-05-18 Adam Fedor <fedor@gnu.org>
7045
7046 * symtab.c (completion_list_objc_symbol): New function.
7047 (make_symbol_completion_list): Use it to add ObjC symbols
7048 when looking though the list.
7049 (language_search_unquoted_string): New function.
7050 (make_file_symbol_completion_list): Use it.
7051
55baeb84
AS
70522003-05-18 Andreas Schwab <schwab@suse.de>
7053
d0b45d99
AS
7054 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7055 dependencies.
7056 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7057 as m68k_linux_extract_return_value.
7058 (DEPRECATED_STORE_RETURN_VALUE): Define as
7059 m68k_linux_store_return_value.
7060 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7061 m68k_linux_extract_struct_value_address.
7062 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7063 get_next_frame, get_frame_base, get_frame_pc.
7064 (m68k_linux_frame_saved_pc): Use get_frame_base.
7065 (m68k_linux_extract_return_value): New function.
7066 (m68k_linux_store_return_value): New function.
7067 (m68k_linux_extract_struct_value_address): New function.
7068 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7069
55baeb84
AS
7070 * c-exp.y (typebase): Remove duplicate occurence of
7071 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 7072 of lookup_signed_typename.
55baeb84 7073
b6b08ebf
MK
70742003-05-18 Mark Kettenis <kettenis@gnu.org>
7075
7076 * dwarf2loc.c (find_location_expression): Change type of second
7077 argument to `size_t *'.
7078 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7079 for size variable.
7080
5ad1c190
DC
70812003-05-18 David Carlton <carlton@bactrian.org>
7082
7083 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7084 'linkage_name'. Add comment.
7085 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7086 'linkage_name'.
7087 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7088 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7089 (lookup_block_symbol): Ditto.
7090
b8b527c5
AC
70912003-05-16 Andrew Cagney <cagney@redhat.com>
7092
7093 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7094 * gdbarch.h, gdbarch.c: Re-generate.
7095 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7096 * TODO (REGISTER_BYTES): Delete reference.
7097 * alpha-tdep.c (alpha_gdbarch_init): Update.
7098 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7099 * x86-64-tdep.c (x86_64_init_abi): Update.
7100 * vax-tdep.c (vax_gdbarch_init): Update.
7101 * v850-tdep.c (v850_gdbarch_init): Update.
7102 * sparc-tdep.c (sparc_gdbarch_init): Update.
7103 * sh-tdep.c (sh_gdbarch_init): Update.
7104 * s390-tdep.c (s390_gdbarch_init): Update.
7105 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7106 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7107 (ns32k_gdbarch_init_32382): Update.
7108 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7109 * mcore-tdep.c (mcore_gdbarch_init): Update.
7110 * m68k-tdep.c (m68k_gdbarch_init): Update.
7111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7112 * ia64-tdep.c (ia64_gdbarch_init): Update.
7113 * i386-tdep.c (i386_gdbarch_init): Update.
7114 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7115 * hppa-tdep.c (hppa_gdbarch_init): Update.
7116 * h8300-tdep.c (h8300_gdbarch_init): Update.
7117 * frv-tdep.c (frv_gdbarch_init): Update.
7118 * cris-tdep.c (cris_gdbarch_init): Update.
7119 * avr-tdep.c (avr_gdbarch_init): Update.
7120 * arm-tdep.c (arm_gdbarch_init): Update.
7121 * sparc-tdep.c (sparc_pop_frame): Update.
7122 * rs6000-tdep.c (rs6000_pop_frame): Update.
7123 * remote.c (init_remote_state): Update.
7124 (remote_prepare_to_store): Update.
7125 * remote-vx.c (vx_prepare_to_store): Update.
7126 * remote-sds.c (sds_fetch_registers): Update.
7127 (sds_prepare_to_store): Update.
7128 * remote-array.c: Update.
7129 * regcache.c (init_legacy_regcache_descr): Update.
7130 (init_regcache_descr): Update.
7131 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7132 (mips_o64_extract_return_value): Update.
7133 * irix5-nat.c (fetch_core_registers): Update.
7134 * irix4-nat.c (fetch_core_registers): Update.
7135 * i386-tdep.h: Update.
7136 * hppa-tdep.c (pa_do_registers_info): Update.
7137 (pa_do_strcat_registers_info): Update.
7138 * cris-tdep.c (cris_register_bytes_ok): Update.
7139 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7140 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7141 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7142 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7143 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7144 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7145 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7146 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7147 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7148 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7149 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7150 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7151 (REGISTER_BYTES_OK): Update.
7152 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7153 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7154
ee2842e2
ILT
71552003-05-16 Ian Lance Taylor <ian@airs.com>
7156
7157 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7158 (vax_print_insn, print_insn_arg): Remove static functions.
7159 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7160 print_insn_vax from opcodes library.
7161 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7162
973177d3
AC
71632003-05-15 Andrew Cagney <cagney@redhat.com>
7164
aaab4dba
AC
7165 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7166 * target.h (memory_breakpoint_from_pc): Delete declaration.
7167 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7168 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7169 * monitor.c (monitor_insert_breakpoint): Use
7170 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7171 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7172 * gdbarch.h, gdbarch.c: Re-generate.
7173 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7174 (sparc_gdbarch_init): Set breakpoint_from_pc to
7175 sparc_breakpoint_from_pc.
7176 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7177 (BREAKPOINT_FROM_PC): Define.
7178 (sparc_breakpoint_from_pc): Declare.
7179 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7180 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7181 (BREAKPOINT_FROM_PC): Define.
7182 (BREAKPOINT): Delete macro.
7183 * target.h: Update comment.
7184 * s390-tdep.c (s390_gdbarch_init): Update comments.
7185 * remote.c: Update comments.
7186 * remote-mips.c: Update comments.
7187 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7188 * mem-break.c: Update comment.
7189 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7190 (ia64_memory_insert_breakpoint): Update.
7191 * config/sparc/tm-sparc.h: Update comment.
7192 * config/pa/tm-hppa64.h: Update comment.
7193 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7194 (rs6000_breakpoint_from_pc): Update.
7195 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7196 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7197 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7198 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7199 (mips_breakpoint_from_pc): Update.
7200 (mips_dump_tdep): Update.
7201
e06963ff
AC
7202 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7203 * minsyms.c (lookup_minimal_symbol): Inline
7204 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7205
973177d3
AC
7206 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7207 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7208 * p-lang.c (pascal_printstr): Ditto.
7209 * objc-lang.c (objc_printstr): Ditto.
7210 * m2-lang.c (m2_printstr): Ditto.
7211 * jv-valprint.c (java_print_value_fields): Ditto.
7212 * f-lang.c (f_printstr): Ditto.
7213 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7214 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7215 for repeat_count_threshold.
7216 * Makefile.in (cp-valprint.o): Update dependencies.
7217
5ea2bd7f 72182003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7219
5ea2bd7f
JJ
7220 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7221 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7222 they start with mov r2,r12. Support skipping over indirect stores
7223 of the input registers. Upon hitting a non-nop branch instruction
7224 or predicated instruction, bail out by setting lim_pc to the current
7225 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7226 beyond our calculated value and we have trust_limit set,
7227 use the lim_pc value.
7228
cc8c88f3
AC
72292003-05-15 Andrew Cagney <cagney@redhat.com>
7230
7231 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7232 generic_find_dummy_frame.
7233 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7234 (deprecated_generic_find_dummy_frame): Update.
7235 (deprecated_read_register_dummy): Update.
7236 * frame.c (deprecated_generic_get_saved_register): Update.
7237
909cd28e
TR
72382003-05-15 Theodore A. Roth <troth@openavr.org>
7239
7240 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7241 (avr_gdbarch_init): Set breakpoint_from_pc method.
7242
b923b08d
AC
72432003-05-15 Andrew Cagney <cagney@redhat.com>
7244
7245 * regcache.c (build_regcache): Set deprecated_register_valid
7246 directly.
7247 (deprecated_grub_regcache_for_register_valid): Delete function.
7248 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7249 declaration.
7250
ae2f03ac 72512003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7252
7253 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7254 * symtab.c (lookup_symbol_aux): Delete calls to
7255 lookup_symbol_aux_minsyms.
7256 (lookup_symbol_aux_minsyms): Comment out function and
7257 prototype. Delete lookup by mangled name.
ae2f03ac 7258
18ec9831
KB
72592003-05-14 Kevin Buettner <kevinb@redhat.com>
7260
7261 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7262 correctly indicate an empty stack and ``stack_allocated'' to the
7263 indicate the number of elements initially allocated.
7264 (dwarf_expr_grow_stack): Simplify method for computing new
7265 stack size. Don't loop infinitely if ``stack_len'' is zero.
7266 (execute_stack_op): Move ``ctx->in_reg'' initialization
7267 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7268 be used in conjuction with DW_OP_piece. Revise error message
7269 accordingly.
7270
de18ac1f
TR
72712003-05-14 Theodore A. Roth <troth@openavr.org>
7272
7273 * MAINTAINERS: Update my email address.
7274 * avr-tdep.c: Ditto.
7275
176620f1
EZ
72762003-05-14 Elena Zannoni <ezannoni@redhat.com>
7277
7278 * symtab.h (enum domain_enum): Rename from namespace_enum.
7279 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7280 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7281 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7282 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7283 TYPES_NAMESPACE, METHODS_NAMESPACE.
7284 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7285 (struct symbol, struct partial_symbol): Rename field
7286 'namespace_enum namespace' to 'domain_enum domain'.
7287 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7288 Delete old define kludge for namespace.
7289
7290 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7291 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7292 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7293 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7294 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7295 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7296 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7297 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7298 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7299 occurrences of the above.
7300
b7f31508
ILT
73012003-05-14 Ian Lance Taylor <ian@airs.com>
7302
7303 * Makefile.in (install-only): Use $(SHELL) when running
7304 mkinstalldirs.
7305
2fdbdd39
ILT
73062003-05-13 Ian Lance Taylor <ian@airs.com>
7307
a208d82c
ILT
7308 * MAINTAINERS (write after approval): Add myself.
7309
2fdbdd39
ILT
7310 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7311 second and third arguments.
7312 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7313 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7314
fbd9dcd3
AC
73152003-05-13 Andrew Cagney <cagney@redhat.com>
7316
7317 * defs.h (store_address): Delete declaration.
7318 findvar.c (store_address): Delete function.
7319 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7320 store_unsigned_integer.
7321 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7322 * v850-tdep.c (v850_push_arguments): Ditto.
7323 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7324 * sh-tdep.c (sh64_get_saved_register): Ditto.
7325 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7326 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7327 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7328 (mips_get_saved_register): Ditto.
7329 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7330 (find_func_descr, ia64_push_arguments): Ditto.
7331 * i386-tdep.c (i386_push_arguments): Ditto.
7332 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7333 * frv-tdep.c (frv_push_arguments): Ditto.
7334 * frame.c (legacy_saved_regs_prev_register): Ditto.
7335 (deprecated_generic_get_saved_register): Ditto.
7336 * findvar.c (unsigned_address_to_pointer): Ditto.
7337 * dwarf2read.c (dwarf2_const_value): Ditto.
7338 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7339 * alpha-tdep.c (alpha_push_arguments): Ditto.
7340
6760f9e6
JB
73412003-05-12 J. Brobecker <brobecker@gnat.com>
7342
7343 * NEWS: Mention that the hppa-hpux port has been partially
7344 multiarched (32bit ABIT only, so far).
7345
30e221b4
AC
73462003-05-11 Andrew Cagney <cagney@redhat.com>
7347
7348 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7349 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7350 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7351 sim/testsuite/sim/arm/misaligned2.ms, and
7352 sim/testsuite/sim/arm/misaligned3.ms.
7353 * disasm.h (struct ui_file): Add opaque struct declaration.
7354 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7355 * frame.h (struct ui_file): Ditto.
7356
dea7f9ba
MK
73572003-05-11 Mark Kettenis <kettenis@gnu.org>
7358
7359 * value.h: Pretty print.
7360
01986c48
MK
73612003-05-10 Mark Kettenis <kettenis@gnu.org>
7362
7363 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7364
123a958e
AC
73652003-05-08 Andrew Cagney <cagney@redhat.com>
7366
7367 * regcache.h (max_register_size): Delete declaration.
7368 * regcache.c (max_register_size): Delete function.
7369 (struct regcache_descr): Delete field "max_register_size".
7370 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7371 registers fit in MAX_REGISTER_SIZE.
7372 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7373 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7374 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7375 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7376 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7377 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7378 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7379 * dve3900-rom.c, hppa-tdep.c: Ditto.
7380
eb294659
DC
73812003-05-08 David Carlton <carlton@math.stanford.edu>
7382
7383 * valops.c (push_word): Fix typo.
7384
d9d9c31f
AC
73852003-05-08 Andrew Cagney <cagney@redhat.com>
7386
7387 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7388 * gdbarch.h: Re-generate.
7389 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7390 (legacy_max_register_raw_size): Delete declaration.
7391 * regcache.c (legacy_max_register_raw_size): Delete function.
7392 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7393 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7394 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7395 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7396 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7397 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7398 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7399 * findvar.c, dwarf2cfi.c: Ditto.
7400
22540ece
AC
74012003-05-08 Andrew Cagney <cagney@redhat.com>
7402
7403 * mips-tdep.c (read_signed_register): New function, moved to here
7404 from "regcache.c".
7405 (read_signed_register_pid): Ditto.
7406 * regcache.c (read_signed_register_pid): Delete function, moved to
7407 "mips-tdep.c".
7408 (read_signed_register): Ditto.
7409 * regcache.h (read_signed_register): Delete declaration.
7410 (read_signed_register_pid): Delete declaration.
7411
0c92afe8
AC
74122003-05-08 Andrew Cagney <cagney@redhat.com>
7413
7414 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7415 * gdbarch.h: Re-generate.
7416 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7417 (legacy_max_register_virtual_size): Delete declaration.
7418 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7419 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7420 * tracepoint.c (memrange_sortmerge): Ditto.
7421 * sparc-tdep.c (sparc_print_registers): Ditto.
7422 * regcache.c (legacy_max_register_virtual_size): Delete function.
7423
6037b830
JB
74242002-05-08 J. Brobecker <brobecker@gnat.com>
7425
7426 * fork-child.c (escape_bang_in_quoted_argument): New function.
7427 (fork_inferior): Escape '!' characters in quoted arguments
7428 only when needed.
7429
5d62c8b1
JB
74302003-05-08 J. Brobecker <brobecker@gnat.com>
7431
7432 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7433 the language of the CU is not currently supported by GDB.
7434
20a0e81d
JB
74352003-05-08 J. Brobecker <brobecker@gnat.com>
7436
7437 * defs.h (language): Add language_minimal enum value.
7438 * c-lang.c (minimal_language_defn): New language definition.
7439 (_initialize_c_language): Add the new minimal language to the list
7440 of languages known to GDB.
7441
710ee10a
KB
74422003-05-08 Kevin Buettner <kevinb@redhat.com>
7443
7444 * frame.c (get_frame_type): Don't attempt to lazily initialize
7445 frame's unwinder for legacy frames.
7446
1750fa04
AC
74472003-05-07 Andrew Cagney <cagney@redhat.com>
7448
7449 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7450 and "regcache" parameters.
7451 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7452
ddf9f258 74532003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7454
7455 * dwarf2read.c (dwarf_decode_lines): Only use output of
7456 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7457 the current address.
7458
87767c29
AC
74592003-05-07 Andrew Cagney <cagney@redhat.com>
7460
7461 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7462 code.
7463
5e7b2f39
JB
74642003-05-07 Jim Blandy <jimb@redhat.com>
7465
7466 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7467 'maint info symtabs' and 'maint info psymtabs'.
7468 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7469 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7470 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7471 Declarations updated.
7472 * maint.c (maintenance_list_command): Delete.
7473 (_initialize_maint_cmds): Update calls to add_cmd.
7474 * gdbcmd.h (maintenancelistlist): Delete declaration.
7475 * cli/cli-cmds.c (maintenancelistlist): Delete.
7476 (init_cmd_lists): Don't initialize it.
7477 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7478
f6684c31
AC
74792003-05-07 Andrew Cagney <cagney@redhat.com>
7480
7481 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7482 "regcache".
7483 (d10v_print_registers_info): Update.
7484 (d10v_dmap_register, d10v_imap_register): Delete functions.
7485 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7486 and "imap_register".
7487 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7488 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7489 * arch-utils.c (generic_remote_translate_xfer_address): Add
7490 "regcache" and "gdbarch" parameters.
7491 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7492 parameter. Change class to multi-arch.
7493 * gdbarch.h, gdbarch.c: Re-generate.
7494 * remote.c (remote_xfer_memory): Use
7495 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7496
e4846b08
JJ
74972003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7498
7499 * infrun.c (prev_pc): Move declaration ahead of proceed().
7500 (proceed): Refresh prev_pc value before resuming.
7501 (stop_stepping): Remove code to refresh prev_pc.
7502
6b71b8ac
KW
75032003-05-06 Kris Warkentin <kewarken@qnx.com>
7504
7505 * nto-tdep.c: Removed stray comment.
7506
47979a4b
KW
75072003-05-06 Kris Warkentin <kewarken@qnx.com>
7508
7509 * i386-nto-tdep.c: Fix old K&R function definitions.
7510 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7511 Also change add_show_from_set() call to add_setshow_cmd().
7512 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7513
00905d52
AC
75142003-05-05 Andrew Cagney <cagney@redhat.com>
7515
7516 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7517 (fprint_dummy_frames): New function.
7518 (maintenance_print_dummy_frames): New function.
7519 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7520 * frame.c (fprint_frame_id): Make global.
7521 * frame.h (fprint_frame_id): Declare.
7522 * Makefile.in (dummy-frame.o): Update dependencies.
7523
b1e29e33
AC
75242003-05-05 Andrew Cagney <cagney@redhat.com>
7525
7526 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7527 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7528 SIZEOF_CALL_DUMMY_WORDS.
7529 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7530 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7531 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7532 CALL_DUMMY_BREAKPOINT_OFFSET.
7533 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7534 CALL_DUMMY_START_OFFSET.
7535 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7536 * gdbarch.h, gdbarch.c: Re-generate.
7537 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7538 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7539 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7540 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7541 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7542 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7543 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7544 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7545 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7546 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7547 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7548 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7549 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7550 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7551 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7552
75532003-05-05 Kris Warkentin <kewarken@qnx.com>
7554
7555 * configure.tgt: Add i[3456]86-*-nto*.
7556 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7557 * nto-tdep.c: New file. Neutrino target support routines.
7558 * nto-tdep.h: New file. Neutrino target header.
7559 * config/tm-qnxnto.h: New file.
7560 * config/i386/i386nto.mt: New file.
7561 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7562
0ce3d317
AC
75632003-05-04 Andrew Cagney <cagney@redhat.com>
7564
7565 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7566 (load_infrun_state): Ditto.
7567 (struct thread_info): Drop "prev_func_name" field.
7568 * thread.c (load_infrun_state): Update.
7569 (save_infrun_state): Update.
7570 * infrun.c (prev_func_name): Delete variable.
7571 (init_wait_for_inferior): Do not clear prev_func_name.
7572 (stop_stepping, keep_going, context_switch): Do not swap
7573 prev_func_name.
7574 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7575 instead of PC_IN_SIGTRAMP.
7576
46654a5b
AC
75772003-05-04 Andrew Cagney <cagney@redhat.com>
7578
7579 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7580 REGISTER_BYTE with register_offset_hack.
7581 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7582 that REGISTER_BYTE is consistent with the regcache.
7583 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7584 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7585
14b08c1b
MK
75862003-05-04 Mark Kettenis <kettenis@gnu.org>
7587
04c8243f
MK
7588 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7589 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7590
14b08c1b
MK
7591 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7592
c7a11e01
JB
75932003-05-03 J. Brobecker <brobecker@gnat.com>
7594
7595 From Thierry Schneider <tpschneider1@yahoo.com>
7596 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7597 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7598 (mi-cmd-symbol.o): Add rule.
7599
7043d8dc
AC
76002003-05-03 Andrew Cagney <cagney@redhat.com>
7601
7602 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7603 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7604 * gdbarch.h, gdbarch.c: Re-generate.
7605 * d10v-tdep.c (d10v_push_dummy_code): New function.
7606 (d10v_gdbarch_init): Set push_dummy_code.
7607 * infcall.c (legacy_push_dummy_code): New function.
7608 (generic_push_dummy_code): New function.
7609 (push_dummy_code): New function.
7610 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7611 instead of dummy_addr, to push_dummy_call. Move call to
7612 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7613 switch.
7614 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7615
92bf2b80
AC
76162003-05-03 Andrew Cagney <cagney@redhat.com>
7617
7618 * disasm.h (print_insn): Declare.
7619 * disasm.c (init_gdb_disassemble_info): New function.
7620 (gdb_disassembly): Call init_gdb_disassemble_info.
7621 (gdb_print_insn): New function.
7622 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7623 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7624 * mcore-tdep.c: Include "disasm.h"
7625 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7626 * d10v-tdep.c: Include "disasm.h".
7627 (display_trace): Call gdb_print_insn, instead of print_insn.
7628 (print_insn): Delete function.
7629 * printcmd.c: Include "disasm.h".
7630 (print_insn): Delete function.
7631 (print_formatted): Call gdb_print_insn, instead of print_insn.
7632 * Makefile.in (printcmd.o): Update dependencies.
7633 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7634
27d94c49
AC
76352003-05-02 Andrew Cagney <cagney@redhat.com>
7636
82de1e5b
AC
7637 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7638 PC_REGNUM, re-indent.
7639 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7640 PC_REGNUM isn't set.
7641
27d94c49
AC
7642 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7643 * gdbarch.h, gdbarch.c: Re-generate.
7644 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7645 register_virtual_size, pc_regnum, or register_bytes.
7646 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7647 (d10v_register_type): Use D10V_PC_REGNUM.
7648 (d10v_print_registers_info, d10v_read_pc): Ditto.
7649 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7650 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7651
a9c0dc7f
DC
76522003-05-02 David Carlton <carlton@bactrian.org>
7653
7654 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7655 the name with mstrsave.
7656
e33d66ec
EZ
76572003-05-02 Elena Zannoni <ezannoni@redhat.com>
7658
7659 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7660 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7661 (host_charset_name, target_charset_name): New vars for use by
7662 set/show commands.
7663 (host_charset_enum, target_charset_enum): New enums for set/show
7664 commands.
7665 (set_charset_sfunc, set_host_charset_sfunc,
7666 set_target_charset_sfunc): New functions.
7667 (set_host_charset, set_target_charset): Make static.
7668 (list_charsets, set_host_charset_command,
7669 set_target_charset_command): Delete functions.
7670 (show_charset_command): Rewrite as....
7671 (show_charset): Hook this up with the set/show command mechanism.
7672 (_initialize_charset): Change names of charsets to match the
7673 set/show enums. Use host_charset_name and target_charset_name.
7674 Use set/show mechanism for charset, host-charset, target-charset
7675 commands. Do not make 'show host-charset' and 'show
7676 target-charset' be aliases of 'show charset'.
7677
7678 * charset.h (set_host_charset, set_target_charset): Don't export,
7679 they are not used outside the file.
7680
2b6fd0d8
AC
76812003-05-01 Andrew Cagney <cagney@redhat.com>
7682
7683 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7684 (gdb_disassembly): Make "di" non static, always initialize and
7685 cleanup. Always use dis_asm_read_memory.
7686 (gdb_dis_asm_read_memory): Delete function.
7687
6ae2f580
AC
76882003-05-01 Andrew Cagney <cagney@redhat.com>
7689
7690 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7691 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7692
810ecf9f
AC
76932003-04-30 Andrew Cagney <cagney@redhat.com>
7694
7695 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7696 "tm_print_insn_info".
7697 (TARGET_PRINT_INSN_INFO): Delete macro.
7698 (dis_asm_read_memory): Delete function declaration.
7699 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7700 (tm_print_insn_info): Delete variable definition.
7701 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7702 * gdbarch.h, gdbarch.c: Re-generate.
7703 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7704 "deprecated_tm_print_insn_info".
7705 * mcore-tdep.c (mcore_dump_insn): Ditto.
7706 * mips-tdep.c (mips_gdbarch_init): Ditto.
7707 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7708 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7709 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7710 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7711 instead of TARGET_PRINT_INSN_INFO, add comment.
7712 * s390-tdep.c (s390_get_frame_info): Instead of
7713 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7714 (s390_check_function_end, s390_is_sigreturn): Ditto.
7715 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7716 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7717 * disasm.c: Include "gdbcore.h".
7718 (_initialize_disasm): New function, initialize
7719 "deprecated_tm_print_insn_info".
7720 (deprecated_tm_print_insn_info): New variable.
7721 (dis_asm_read_memory): Moved from "corefile.c", made static.
7722 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7723 * Makefile.in (disasm.o): Update dependencies.
7724
07020390
AC
77252003-04-30 Andrew Cagney <cagney@redhat.com>
7726
7727 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7728
a9fa03de
AF
77292003-04-29 Adam Fedor <fedor@gnu.org>
7730
7731 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7732 * infcall.c (find_function_addr): Make non-static.
7733 * infcall.h (find_function_addr): Declare.
7734 * Makefile.in (eval.o): Update dependencies.
7735
1bae87b9
AF
77362003-04-28 Adam Fedor <fedor@gnu.org>
7737
7738 * symtab.c (symbol_find_demangled_name): Check for and demangle
7739 ObjC symbols.
7740 (symbol_init_demangled_name): Init for language_objc as well.
7741
0ba6dca9
AC
77422003-04-28 Andrew Cagney <cagney@redhat.com>
7743
7744 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7745 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7746 * gdbarch.h, gdbarch.c: Re-generate.
7747 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7748 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7749 * inferior.h (deprecated_read_fp): Rename read_fp.
7750 (generic_target_read_fp): Delete declaration.
7751 * regcache.c (generic_target_read_fp): Delete function.
7752 (deprecated_read_fp): Replace read_fp, use
7753 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7754 * d10v-tdep.c (d10v_read_fp): Delete function.
7755 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7756
7757 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7758 deprecated_target_read_fp to generic_target_read_fp.
7759 * sh-tdep.c (sh_gdbarch_init): Ditto.
7760 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7761 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7762 * frv-tdep.c (frv_gdbarch_init): Ditto.
7763
7764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7765 deprecated_fp_regnum.
7766 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7767 * vax-tdep.c (vax_gdbarch_init): Ditto.
7768 * v850-tdep.c (v850_gdbarch_init): Ditto.
7769 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7770 * sh-tdep.c (sh_gdbarch_init): Ditto.
7771 * s390-tdep.c (s390_gdbarch_init): Ditto.
7772 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7773 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7774 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7775 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7777 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7778 * i386-tdep.c (i386_gdbarch_init): Ditto.
7779 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7780 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7781 * frv-tdep.c (frv_gdbarch_init): Ditto.
7782 * cris-tdep.c (cris_gdbarch_init): Ditto.
7783 * avr-tdep.c (avr_gdbarch_init): Ditto.
7784 * arm-tdep.c (arm_gdbarch_init): Ditto.
7785 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7786
7787 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7788 * v850-tdep.c (v850_gdbarch_init): Ditto.
7789 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7790 * sh-tdep.c (sh_gdbarch_init): Ditto.
7791 * s390-tdep.c (s390_gdbarch_init): Ditto.
7792 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7793 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7794 * mips-tdep.c (mips_gdbarch_init): Ditto.
7795 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7796 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7797 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7798 * frv-tdep.c (frv_gdbarch_init): Ditto.
7799 * avr-tdep.c (avr_gdbarch_init): Ditto.
7800 * arm-tdep.c (arm_gdbarch_init): Ditto.
7801
7802 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7803 DEPRECATED_FP_REGNUM.
7804 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7805 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7806 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7807 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7808 (sparc32_register_virtual_type): Ditto.
7809 * sh-tdep.c (sh64_frame_chain): Ditto.
7810 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7811 (sh_nofp_frame_init_saved_regs): Ditto.
7812 (sh64_nofp_frame_init_saved_regs): Ditto.
7813 (sh_fp_frame_init_saved_regs): Ditto.
7814 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7815 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7816 * procfs.c (procfs_fetch_registers): Ditto.
7817 (procfs_store_registers): Ditto.
7818 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7819 (store_inferior_registers, fetch_core_registers): Ditto.
7820 (fetch_kcore_registers, clear_regs): Ditto.
7821 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7822 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7823 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7824 * nlm/i386.c (do_status): Ditto.
7825 * mipsv4-nat.c (supply_gregset): Ditto.
7826 * mips-tdep.c: Ditto for comments.
7827 * mips-nat.c (fetch_inferior_registers): Ditto.
7828 (store_inferior_registers, fetch_core_registers): Ditto.
7829 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7830 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7831 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7832 (i386_do_pop_frame, i386_register_type): Ditto.
7833 * hppa-tdep.c (hppa_frame_chain): Ditto.
7834 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7835 (hppa_pop_frame, hppa_read_fp): Ditto.
7836 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7837 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7838 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7839 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7840 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7841 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7842 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7843 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7844 * blockframe.c: Ditto for comments.
7845 * arch-utils.h: Ditto for comments.
7846 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7847 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7848 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7849 * alpha-tdep.h: Ditto for comments.
7850 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7851 (alpha_cannot_store_register): Ditto.
7852 (alpha_push_dummy_frame): Ditto.
7853 * alpha-nat.c (supply_gregset): Ditto.
7854
7855 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7856 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7857 * config/sparc/tm-sparc.h: Update comment.
7858
7859 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7860 deprecated_read_fp instead of TARGET_READ_FP.
7861 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7862 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7863 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7864 deprecated_read_fp instead of read_fp.
7865 * s390-tdep.c (s390_push_arguments): Ditto.
7866 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7867 * frame.h: Ditto in comments.
7868 * frame.c (legacy_get_prev_frame): Ditto.
7869 * dummy-frame.c (dummy_frame_this_id): Ditto.
7870 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7871
d7a27068
AC
78722003-04-28 Andrew Cagney <cagney@redhat.com>
7873
7874 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7875 * gdbarch.h, gdbarch.c: Re-generate.
7876 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7877 * vax-tdep.c (_initialize_vax_tdep): Update.
7878 * v850-tdep.c (_initialize_v850_tdep): Update.
7879 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7880 * s390-tdep.c (_initialize_s390_tdep): Update.
7881 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7882 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7883 * mips-tdep.c (_initialize_mips_tdep): Update.
7884 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7885 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7886 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7887 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7888 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7889 * frv-tdep.c (_initialize_frv_tdep): Update.
7890 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7891 (_initialize_cris_tdep): Update.
7892 * arch-utils.c (legacy_print_insn): Update.
7893 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7894
d2630e69
AF
78952003-04-26 Adam Fedor <fedor@gnu.org>
7896
7897 * linespec.c (decode_objc): New function to decode ObjC calls
7898 (decode_line_1): Check for ObjC calls (using decode_objc)
7899 * Makefile (linespec.o): Update dependencies.
7900
3086aeae
DJ
79012003-04-26 Daniel Jacobowitz <drow@mvista.com>
7902
7903 * breakpoint.h (struct breakpoint_ops): New.
7904 (struct breakpoint): Add ops member.
7905
7906 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7907 (mention): Use new breakpoint ops member.
7908 (set_raw_breakpoint): Initialize ops field to NULL.
7909 (print_exception_catchpoint, print_one_exception_catchpoint)
7910 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7911 (gnu_v3_exception_catchpoint_ops): New.
7912 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7913
1fbec6c3
AF
79142003-04-25 Adam Fedor <fedor@gnu.org>
7915
7916 * Makefile.in (COMMON_OBS): Add objc-lang.o
7917
0ef21242
AC
79182003-04-25 Andrew Cagney <cagney@redhat.com>
7919
7920 * d10v-tdep.c (print_insn): Delete function.
7921 (display_trace): Use TARGET_PRINT_INSN.
7922 (_initialize_d10v_tdep): Do not set tm_print_insn.
7923 (d10v_gdbarch_init): Set print_insn.
7924
f75493ed
AC
79252003-04-25 Andrew Cagney <cagney@redhat.com>
7926
7927 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7928 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7929 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7930 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7931 (nr_dmap_regs, a0_regnum): ... new functions.
7932 (d10v_print_registers_info): Use a0_regnum, use register_size.
7933 (d10v_register_byte): Delete function.
7934 (d10v_register_raw_size): Delete function.
7935 (d10v_register_type): Use a0_regnum.
7936 (d10v_print_registers_info): Use a0_regnum.
7937 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7938 (d10v_gdbarch_init): Do not set register_byte or
7939 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7940 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7941 extract_address.
7942 (trace_command): Use XCALLOC.
7943 (print_insn): Delete reference to tm_print_insn.
7944 (saved_regs_unwinder): Use store_unsigned_integer instead of
7945 store_address.
7946 * frame.h (FRAME_OBSTACK_CALLOC): Define
7947
2202b100
DC
79482003-04-25 David Carlton <carlton@bactrian.org>
7949
7950 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7951
4e45ca2e
AF
79522003-04-24 Adam Fedor <fedor@gnu.org>
7953
7954 * objc-lang.c: Include "valprint.h"
7955 * Makefile.in (objc-lang.o): Update dependencies.
7956
93de3e7f
AF
79572003-04-24 Adam Fedor <fedor@gnu.org>
7958
8ffd9b1b 7959 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7960 architecture dependant compilation and mark as unimplemented
7961 (until they get put in the gdbarch vector).
7962
0f20eeea
DC
79632003-04-23 David Carlton <carlton@bactrian.org>
7964
7965 * cp-support.c (cp_find_first_component): Accept 'operator' in
7966 more locations.
7967
74cfe982
AC
79682003-04-23 Andrew Cagney <cagney@redhat.com>
7969
7970 * infcall.c (call_function_by_hand): Eliminate redundant
7971 indentation. Move "saved_async" and "old_cleanups" to where they
7972 are needed.
8ffd9b1b 7973
52557533
AC
79742003-04-23 Andrew Cagney <cagney@redhat.com>
7975
7976 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7977 and "buffer". Move the "name" code to where it is needed.
7978
158775de
AC
79792003-04-23 Andrew Cagney <cagney@redhat.com>
7980
7981 * infcall.c (call_function_by_hand): Move variables "start_sp",
7982 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7983 code to ON_STACK switch branch.
8ffd9b1b 7984
ebc7896c
AC
79852003-04-23 Andrew Cagney <cagney@redhat.com>
7986
7987 * infcall.c (call_function_by_hand): Make declaration of "i",
7988 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7989 lint.
7990
d727590f
AC
79912003-04-23 Andrew Cagney <cagney@redhat.com>
7992
7993 * infcall.c (call_function_by_hand): Delete variable
7994 "n_method_args". Localize "param_type"'s declaration to the loop
7995 that it is used. Reinstate code assigning to said variable -
7996 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7997 Rationalize code using "param_type".
7998
d585e13a
AC
79992003-04-22 Andrew Cagney <cagney@redhat.com>
8000
8001 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8002 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8003 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8004 to DEPRECATED_PUSH_RETURN_ADDRESS.
8005
051caad9
KB
80062003-04-22 Kevin Buettner <kevinb@redhat.com>
8007
8008 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8009 on the DWARF2 register number prior to fetching a register.
8010
77296879
JB
80112003-04-22 J. Brobecker <brobecker@gnat.com>
8012
8013 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8014 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 8015 this macro was always set to 0.
77296879
JB
8016 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8017 considering the fact that this macro was always set to 0.
8018 * hppa-tdep.h (hppa_store_return_value): Likewise.
8019 (hppa_extract_return_value): Likewise.
8020
4252f1df
JB
80212003-04-22 J. Brobecker <brobecker@gnat.com>
8022
8023 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8024 the hppa-pro target only.
8025
14604c6b
JB
80262003-04-21 J. Brobecker <brobecker@gnat.com>
8027
8028 Ongoing multi-arch conversion effort for HP/UX:
8029 * config/pa/tm-hppa.h: Move all macro that are no longer
8030 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8031 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8032
77eb01d1
JB
80332003-04-21 J. Brobecker <brobecker@gnat.com>
8034
8035 * config/pa/tm-hppa.h: Obsolete a section that was only used
8036 for hppa-pro.
8037
61995b3b
JB
80382003-04-21 J. Brobecker <brobecker@gnat.com>
8039
8040 Ongoing multi-arch conversion for HP/UX.
8041 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8042 if already defined (allows hppa64 to stay non-multiarched for now).
8043 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8044
4aa79dcc
AC
80452003-04-21 Andrew Cagney <cagney@redhat.com>
8046
8047 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8048
0f751ff2
AC
80492003-04-21 Andrew Cagney <cagney@redhat.com>
8050
8051 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8052 "i386_num_mmx_regs".
8053
04714b91
AC
80542003-04-21 Andrew Cagney <cagney@redhat.com>
8055
8056 * infcall.c: New file.
8057 * infcall.h: New file.
8058 * valarith.c: Include "infcall.h".
8059 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8060 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8061 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8062 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8063 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8064 (SFILES): Add "infcall.c"
8065 (COMMON_OBS): Add "infcall.o".
8066 (infcall.o): Specify dependencies.
8067 * value.h (call_function_by_hand): Delete declaration.
8068 * inferior.h (run_stack_dummy): Delete declaration.
8069 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8070 (run_stack_dummy): Move to "infcall.c", merged into
8071 call_function_by_hand.
8072 * valops.c (call_function_by_hand): Moved to "infcall.c".
8073 (find_function_addr, value_arg_coerce): Ditto.
8074 (unwindonsignal_p, coerce_float_to_double): Ditto.
8075 (_initialize_valops): Move "set/show coerce-float-to-double", and
8076 "set/show unwindonsignal" commands to "infcall.c".
8077 * v850-tdep.c, target.h: Update comments.
8078 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8079 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8080 (sh64_init_extra_frame_info): Update comments.
8081 * mn10300-tdep.c: Update comments.
8082 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8083 * config/sparc/tm-sparc.h: Update comments.
8084 * breakpoint.h: Update comments.
8085 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8086 * arm-tdep.c: Update comment.
8087
f9d3c2a8
MK
80882003-04-19 Mark Kettenis <kettenis@gnu.org>
8089
c40e1eab
MK
8090 * i386-tdep.c (i386_num_register_names): New variable.
8091 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8092 (MM0_REGNUM): Remove redundant parentheses in define.
8093 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8094 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8095 i386_mxcsr_regnum_p): Remove redundant parentheses.
8096 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 8097
94ea66b3
MK
8098 * i386-tdep.c (i386_extract_return_value,
8099 i386_store_return_value): Correct check for availability of
8100 floating-point registers.
8101
54299a1d
MK
8102 * i386-tdep.c (i386_frame_num_args): Remove function.
8103 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8104
c86c27af
MK
8105 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8106 mmx_regnum_to_fp_regnum. Adjust all callers.
8107
f9d3c2a8
MK
8108 * i386-tdep.c (i386_get_longjmp_target): Use
8109 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8110 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8111 extract_address.
8112
94ba74a9
MK
81132003-04-19 Mark Kettenis <kettenis@gnu.org>
8114
8115 * core-regset.c: Update comments to reflect reality. Re-order
8116 includes.
8117 (fetch_core_registers): Use switch instead of if. Remove
8118 redundant prototype.
8119
4074e13c
JB
81202003-04-18 Jim Blandy <jimb@redhat.com>
8121
8122 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 8123 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 8124
e3ab4aba
RH
81252003-04-17 Richard Henderson <rth@redhat.com>
8126
8127 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8128
627bf7c1
EZ
81292003-04-17 Michael Snyder <msnyder@redhat.com>
8130 Karen Bennet <bennet@redhat.com>
8131
8132 Committed by Elena Zannoni <ezannoni@redhat.com>
8133 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 8134
514621a9
EZ
81352003-04-17 Elena Zannoni <ezannoni@redhat.com>
8136
8137 * values.c (value_being_returned): Don't fetch the return
fbe586ae 8138 value if the return type is void.
514621a9 8139
b4acd559
JJ
81402003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8141
8142 * thread-db.c: Reindented.
8ffd9b1b 8143
530b167e 81442003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
8145
8146 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8147 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
8148 as types.
8149
0a48e7e8
MS
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8ffd9b1b 8173
ab9fe00e
KB
81742003-04-16 Kevin Buettner <kevinb@redhat.com>
8175
610a3745 8176 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
8177 the size of ``long double'' to 16, instead of 8.
8178
e64a344c
MK
81792003-04-16 Mark Kettenis <kettenis@gnu.org>
8180
8181 * i386-linux-nat.c: Add some whitespace to make things more
8182 readable.
8183 (fetch_register, store_register, fetch_inferior_registers,
8184 store_inferior_registers): Get rid of assignment in if-statement.
8185 (store_register): Fix typo in error message.
8186
25d41031
AC
81872003-04-16 Andrew Cagney <cagney@redhat.com>
8188
8189 * utils.c (xmmalloc): Always allocate something, matches
8190 libiberty/xmalloc's semantics.
8191 (xmrealloc, xmcalloc): Ditto.
8192
c50901fd
AC
81932003-04-16 Andrew Cagney <cagney@redhat.com>
8194
8195 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8196 update comments.
8197 (get_frame_type): Initialize unwind and type when needed.
8198 (get_frame_id, frame_register_unwind): Ditto.
8199
f81824a9
AC
82002003-04-16 Andrew Cagney <cagney@redhat.com>
8201
8202 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8203 obsolete.
8204 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8205 * sparcl-stub.c: Obsolete file.
8206 * config/sparc/tm-sparclet.h: Obsolete file.
8207 * sparclet-stub.c: Obsolete file.
8208 * sparclet-rom.c: Obsolete file.
8209 * sparcl-tdep.c: Obsolete file.
8210 * config/sparc/tm-sparclite.h: Obsolete file.
8211 * config/sparc/sparclite.mt: Obsolete file.
8212 * config/sparc/sparclet.mt: Obsolete file.
8213 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8214 sparc86x-*-* obsolete.
8215
9219021c
DC
82162003-04-15 David Carlton <carlton@math.stanford.edu>
8217
8218 * Makefile.in (SFILES): Add cp-namespace.c.
8219 (COMMON_OBS): Add cp-namespace.o.
8220 (block.o): Depend on gdb_obstack_h and cp_support_h.
8221 (buildsym.o): Depend on cp_support_h.
8222 (cp-namespace.o): New.
8223 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8224 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8225 (dwarf2read.o): Depend on cp_support_h.
8226 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8227 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8228 processing_current_namespace.
8229 (read_namespace): Update processing_current_namespace; check for
8230 anonymous namespaces.
8231 (dwarf2_name): New function.
8232 (dwarf2_extension): Ditto.
8233 * cp-support.h: Update copyright, contributors.
8234 Add inclusion guards.
8235 Add opaque declaration for structs obstack, block, symbol.
8236 (struct using_direct): New struct.
8237 Add declarations for cp_find_first_component,
8238 cp_entire_prefix_len, processing_has_namespace_info,
8239 processing_current_namespace, cp_is_anonymous,
8240 cp_add_using_directive, cp_initialize_namespace,
8241 cp_finalize_namespace, cp_set_block_scope,
8242 cp_scan_for_anonymous_namespaces.
8243 * cp-namespace.c: New file.
8244 * cp-support.c: Update copyright.
8245 Include ctype.h, gdb_assert.h, gdbcmd.h.
8246 New variable maint_cplus_cmd_list.
8247 (cp_find_first_component): New function.
8248 (cp_entire_prefix_len, maint_cplus_command)
8249 (first_component_command, _initialize_cp_support): Ditto.
8250 * buildsym.c: Include cp-support.h.
8251 New variable using_list.
8252 (add_symbol_to_list): Check for anonymous namespaces.
8253 (finish_block): Set block's scope.
8254 (start_symtab): Initialize C++ namespace support.
8255 (end_symtab): Finalize C++ namespace support.
8256 * block.h: Add opaque declarations for structs
8257 block_namespace_info, using_direct, and obstack.
8258 Add declarations for block_set_scope and block_set_using.
8259 (struct block): Add 'language_specific' member.
8260 (BLOCK_NAMESPACE): New macro.
8261 * block.c: Include gdb_obstack.h and cp-support.h.
8262 (struct block_namespace_info): New struct.
8263 (block_set_scope): New function.
8264 (block_set_using, block_initialize_namespace): Ditto.
8265
d5a921c9
KB
82662003-04-14 Kevin Buettner <kevinb@redhat.com>
8267
8268 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8269 (locate_base): Return early if there aren't any link map offsets.
8270 (svr4_solib_create_inferior_hook): Warn if shared library support
8271 is unavailable.
8272
d2a52b27
DC
82732003-04-14 David Carlton <carlton@math.stanford.edu>
8274
8275 * symtab.c (symbol_set_names): Add prefix when storing Java names
8276 in hash table. Fix for PR java/1039.
8277
980cae7a
DC
82782003-04-14 David Carlton <carlton@math.stanford.edu>
8279
8280 * symtab.c (symbol_set_names): Rename 'name' arg to
8281 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8282 * symtab.h: Change 'name' argument in declaration of
8283 symbol_set_names to 'linkage_name'.
8284 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8285
e227b13c
AC
82862003-04-14 Andrew Cagney <cagney@redhat.com>
8287
8288 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8289 return the fully sign-extended register value.
8290 (get_frame_pointer): Ditto.
8291 (mips_pop_frame): Initialize "proc_desc" after checking for a
8292 dummy frame.
8293
36712a20
AC
82942003-04-14 Andrew Cagney <cagney@redhat.com>
8295
8296 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8297 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8298 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8299 (mips_push_register): Delete function.
8300 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8301 PUSH_FP_REGNUM.
8302
44ea7b70
JB
83032003-04-14 Jim Blandy <jimb@redhat.com>
8304
8305 * symmisc.c: #include "gdb_regex.h".
8306 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8307 functions.
8308 * maint.c (maintenance_list_command): New function.
8309 (_initialize_maint_cmds): Register the above as commands.
8310 * symtab.h (maintenance_list_symtabs,
8311 maintenance_list_psymtabs): New declarations.
8312 * cli/cli-cmds.c (maintenancelistlist): New variable.
8313 (init_cmd_lists): Initialize it.
8314 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8315 * gdbcmd.h (maintenancelistlist): New declaration.
8316 * Makefile.in (symmisc.o): Update dependencies.
8317
2d0c7962
EZ
83182003-04-14 Elena Zannoni <ezannoni@redhat.com>
8319
8320 * s390-nat.c: Include asm/types.h for addr_t.
8321
1947a811
CV
83222003-04-14 Corinna Vinschen <vinschen@redhat.com>
8323
8324 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8325 actually incoming type.
8326
adb616d7
AC
83272003-04-13 Andrew Cagney <cagney@redhat.com>
8328
8329 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8330 get_next_frame and get_frame_saved_regs.
8331
9b5e151c
AC
83322003-04-13 Andrew Cagney <cagney@redhat.com>
8333
8334 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8335 of gdbarch_num_regs.
8336
ef6e7e13
AC
83372003-04-13 Andrew Cagney <cagney@redhat.com>
8338
8339 * frame.h: Mention what replaced what in "struct frame_info".
8340 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8341 deprecated_update_frame_base_hack and
8342 deprecated_update_frame_pc_hack.
8343 * hppa-tdep.c: Ditto.
8344
61fbb938
DJ
83452003-04-13 Daniel Jacobowitz <drow@mvista.com>
8346
8347 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8348 to read_reg and update its comment. Remove regnum member.
8349 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8350 Don't call read_reg when setting in_reg. Call read_reg to get
8351 the frame base if it's in a register. Return the register number
8352 on the stack instead of in the context. Remove extra arguments
8353 to read_reg.
8354 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8355 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8356 the register number on the expression stack.
8357 (needs_frame_read_reg): Remove extra arguments.
8358
0d53c4c4
DJ
83592003-04-13 Daniel Jacobowitz <drow@mvista.com>
8360
8361 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8362 made non-static.
8363 (execute_stack_op): All callers updated.
8364 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8365 * dwarf2loc.c (find_location_expression): New function.
8366 (dwarf_expr_frame_base): Call it.
8367 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8368 (dwarf2_tracepoint_var_ref): New function, broken out from
8369 locexpr_tracepoint_var_ref.
8370 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8371 Make static.
8372 (loclist_read_variable, loclist_read_needs_frame): New functions.
8373 (loclist_describe_location, loclist_tracepoint_var_ref): New
8374 functions.
8375 (dwarf2_loclist_funcs): New struct location_funcs.
8376 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8377 (struct dwarf2_locexpr_baton): Add comments.
8378 (dwarf2_loclist_funcs): New extern.
8379 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8380 base_address and base_known.
8381 (dwarf_loc_buffer): New variable.
8382 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8383 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8384 (dwarf2_has_info): Initialize dwarf_loc_offset.
8385 (dwarf2_build_psymtabs): Read in .debug_loc.
8386 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8387 DWARF_LOC_SIZE.
8388 (psymtab_to_symtab_1): Likewise. Move base address calculation
8389 here, from...
8390 (dwarf2_get_pc_bounds): ... here. Use the base address from
8391 cu_header.
8392 (dwarf2_symbol_mark_computed): Handle location lists.
8393
6aca59a3
DJ
83942003-04-13 Daniel Jacobowitz <drow@mvista.com>
8395
8396 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8397 if the linkage name demangled successfully.
8398
aca1fcd0
MK
83992003-04-13 Mark Kettenis <kettenis@gnu.org>
8400
97095916
MK
8401 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8402 disassmbly_flavour): Removed.
8403
aca1fcd0
MK
8404 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8405
562a961f
MK
84062003-04-13 Mark Kettenis <kettenis@gnu.org>
8407
8408 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8409
bd013d54
AC
84102003-04-12 Andrew Cagney <cagney@redhat.com>
8411
8412 * frame.h (struct frame_info): Move definition from here ...
8413 * frame.c (struct frame_info): ... to here.
8414
167ef8b1
AC
84152003-04-12 Andrew Cagney <cagney@redhat.com>
8416
8417 * gdbthread.h (save_infrun_state): Delete parameter
8418 "prev_func_start".
8419 (struct thread_info): Delete field "prev_func_start".
8420 (load_infrun_state): Ditto.
8421 * thread.c (load_infrun_state, save_infrun_state): Update.
8422 * infrun.c (prev_func_start): Delete variable.
8423 (context_switch, init_wait_for_inferior): Update.
8424 (stop_stepping, keep_going): Update.
8425
da3331ec
AC
84262003-04-12 Andrew Cagney <cagney@redhat.com>
8427
8428 * gdbarch.sh: Add missing opaque declarations.
8429 * gdbarch.h: Regnerate.
8430 * symtab.h: Add missing opaque declarations.
8431 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8432 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8433 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8434 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8435 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8436 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8437 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8438 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8439 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8440 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8441 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8442 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8443 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8444
18adea3f
AC
84452003-04-11 Andrew Cagney <cagney@redhat.com>
8446
8447 * frame.c (get_frame_id): Return this frame's "id".
8448 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8449 function start.
8450 (legacy_saved_regs_this_id): Replace function body with
8451 internal-error.
8452 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8453 FRAME_OBSTACK_ZALLOC.
8454 (create_new_frame): Mark the frame ID as valid.
8455
2252e863
AO
84562003-04-11 Alexandre Oliva <aoliva@redhat.com>
8457
8458 * Makefile.in (libbfd_h): Added missing setting.
8459 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8460 according to the selected ABI.
8461
a8245ab8
JJ
84622003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8463
8464 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8465
6913c89a
AC
84662003-04-11 Andrew Cagney <cagney@redhat.com>
8467
8468 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8469 SAVED_PC_AFTER_CALL.
8470 * gdbarch.h, gdbarch.c: Regenerate.
8471 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8472 * x86-64-tdep.c (x86_64_init_abi): Update.
8473 * vax-tdep.c (vax_gdbarch_init): Update.
8474 * v850-tdep.c (v850_gdbarch_init): Update.
8475 * sparc-tdep.c (sparc_gdbarch_init): Update.
8476 * sh-tdep.c (sh_gdbarch_init): Update.
8477 * s390-tdep.c (s390_gdbarch_init): Update.
8478 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8479 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8480 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8481 * mips-tdep.c (mips_gdbarch_init): Update.
8482 * mcore-tdep.c (mcore_gdbarch_init): Update.
8483 * m68k-tdep.c (m68k_gdbarch_init): Update.
8484 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8485 * ia64-tdep.c (ia64_gdbarch_init): Update.
8486 (ia64_saved_pc_after_call): Update declaration.
8487 * i386ly-tdep.c (i386lynx_init_abi): Update.
8488 * i386-tdep.c (i386_gdbarch_init): Update.
8489 * hppa-tdep.c (hppa_gdbarch_init): Update.
8490 * h8300-tdep.c (h8300_gdbarch_init): Update.
8491 * frv-tdep.c (frv_gdbarch_init): Update.
8492 * cris-tdep.c (cris_gdbarch_init): Update.
8493 * avr-tdep.c (avr_gdbarch_init): Update.
8494 * arm-tdep.c (arm_gdbarch_init): Update.
8495 * alpha-tdep.c (alpha_gdbarch_init): Update.
8496 * ns32knbsd-nat.c (frame_num_args): Update.
8497 * ns32k-tdep.c (umax_frame_num_args): Update.
8498 * mips-tdep.c (mips_init_frame_pc_first): Update.
8499 * infrun.c (step_over_function): Update.
8500 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8501 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8502 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8503 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8504 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8505 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8506 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8507 * arch-utils.c (init_frame_pc_default): Update.
8508 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8509 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8510 declaration.
8ffd9b1b 8511
38edeab8
AC
85122003-04-11 Andrew Cagney <cagney@redhat.com>
8513
8514 * i387-tdep.c: Update copyright.
8515 (i387_to_double): Delete function.
8516 (double_to_i387): Delete function.
8517
81f8a206
AC
85182003-04-10 Andrew Cagney <cagney@redhat.com>
8519
8520 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8521 frame's function's address. Simplify.
8522 (d10v_frame_unwind_cache): Check that the frame's function is
8523 non-zero.
8524
6e691f7a
JB
85252003-04-10 Jim Blandy <jimb@redhat.com>
8526
8527 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8528 call to set_gdbarch_deprecated_push_arguments.
8529
7f78e237
AC
85302003-04-10 Andrew Cagney <cagney@redhat.com>
8531
8532 * frame.c (fprint_frame_id): New function.
8533 (fprint_frame_type, fprint_frame): New function.
8534 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8535 (create_sentinel_frame, get_frame_id): Ditto.
8536 (frame_id_p, frame_id_eq): Ditto.
8537 (frame_id_inner, create_new_frame): Ditto.
8538 (legacy_get_prev_frame, get_prev_frame): Ditto.
8539 (deprecated_update_frame_pc_hack): Ditto.
8540 (frame_register_unwind): Ditto.
8541 (deprecated_update_frame_base_hack): Ditto.
8542
f870b49b
CV
85432003-04-10 Corinna Vinschen <vinschen@redhat.com>
8544
8545 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8546 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8547 frame_chain function.
8548 * Makefile.in: Add dependencies due to above change.
8549
7c86889b
CV
85502003-04-10 Corinna Vinschen <vinschen@redhat.com>
8551
8552 * blockframe.c (legacy_frame_chain_valid): Move call to
8553 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8554 inside_entry_file.
8555
d0a55772
AC
85562003-04-09 Andrew Cagney <cagney@redhat.com>
8557
8558 * frame.h (struct frame_id): Replace "pc" and "base" with
8559 "stack_addr" and "code_addr". Update comments.
8560 (frame_id_build): Update parameter names and comment.
8561 (struct frame_info): Replace "id_p" and "id" with "this_id".
8562 * dummy-frame.c (dummy_frame_this_id): Update.
8563 * breakpoint.c (print_one_breakpoint): Update.
8564 * frame.c (get_frame_id): Update.
8565 (get_frame_base, frame_id_build): Update.
8566 (create_sentinel_frame, legacy_get_prev_frame): Update.
8567 (deprecated_update_frame_base_hack): Update.
8568 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8569 (frame_id_inner): Ditto.
8570
ac16bf07
AC
85712003-04-09 Andrew Cagney <cagney@redhat.com>
8572
8573 * defs.h (gdb_print_host_address): Make "addr" parameter a
8574 pointer constant.
8575 * utils.c (gdb_print_host_address): Update.
8576
366cfc9e
KB
85772003-04-09 Kevin Buettner <kevinb@redhat.com>
8578
8579 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8580 register number for R0 is 0.
8581
cd983b5c
JB
85822003-04-09 J. Brobecker <brobecker@gnat.com>
8583
8584 * frame.h (struct gdbarch): Add opaque structure definition
8585 to avoid a compilation warning on LynxOS 4.0.
8586
d1340264
AC
85872003-04-09 Andrew Cagney <cagney@redhat.com>
8588
8589 * frame.h (struct frame_info): Delete field "pc". Replace
8590 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8591 structure.
8592 * frame.c (frame_pc_unwind): Update.
8593 (create_sentinel_frame): Do not set "pc".
8594 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8595 (get_frame_pc): Call frame_pc_unwind.
8596 (deprecated_update_frame_pc_hack): Update.
8597 (create_new_frame): Use "pc" not "->pc".
8598
90a6fffb
AC
85992003-04-09 Andrew Cagney <cagney@redhat.com>
8600
8601 * frame.c (get_frame_id): Eliminate code updating "frame".
8602 (legacy_get_prev_frame): Ditto.
8603 (get_frame_base): Return id.base directly.
8604 (deprecated_update_frame_base_hack): Update "id.base".
8605 * frame.h (struct frame_info): Delete field "frame".
8606
2fbce691
AC
86072003-04-09 Andrew Cagney <cagney@redhat.com>
8608
8609 * NEWS: Mention that the "Sequent family" is obsolete.
8610 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8611 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8612 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8613 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8614 * config/i386/tm-ptx4.h: Obsolete file.
8615 * config/i386/tm-ptx.h: Obsolete file.
8616 * symm-tdep.c: Obsolete file.
8617 * config/i386/symmetry.mt: Obsolete file.
8618 * config/i386/tm-symmetry.h: Obsolete file.
8619 * symm-nat.c: Obsolete file.
8620 * config/i386/nm-symmetry.h: Obsolete file.
8621 * config/i386/xm-symmetry.h: Obsolete file.
8622 * config/i386/symmetry.mh: Obsolete file.
8623 * config/i386/nm-ptx4.h: Obsolete file.
8624 * config/i386/ptx4.mh: Obsolete file.
8625 * config/i386/ptx.mt: Obsolete file.
8626 * config/i386/ptx.mh: Obsolete file.
8627 * config/i386/xm-ptx4.h: Obsolete file.
8628 * config/i386/xm-ptx.h: Obsolete file.
8629
78c43945
AC
86302003-04-09 Andrew Cagney <cagney@redhat.com>
8631
8632 Obsolete mips*-*-mach3*.
8633 * NEWS: Mention that mips*-*-mach3* is obsolete.
8634 * m3-nat.c: Obsolete file.
8635 * config/nm-m3.h: Obsolete file.
8636 * config/mips/tm-mipsm3.h: Obsolete file.
8637 * config/mips/mipsm3.mt: Obsolete file.
8638 * config/mips/mipsm3.mh: Obsolete file.
8639 * config/mips/xm-mipsm3.h: Obsolete file.
8640 * mipsm3-nat.c: Obsolete file.
8641 * configure.host: Obsolete mips-dec-mach3*.
8642 * configure.tgt: Obsolete mips*-*-mach3*.
8643
f1908289
AC
86442003-04-09 Andrew Cagney <cagney@redhat.com>
8645
8646 * doublest.h: Update copyright.
8647 (deprecated_store_floating, deprecated_extract_floating): Rename
8648 store_floating and extract_floating. Update comments.
8649 * doublest.c: Update copyright.
8650 (extract_floating_by_length): Replace extract_floating.
8651 (store_floating_by_length): Replace store_floating.
8652 (deprecated_extract_floating): New function.
8653 (deprecated_store_floating): New function.
8654 (extract_typed_floating): Call extract_floating_by_length.
8655 (store_typed_floating): Call store_floating_by_length.
8656 * x86-64-tdep.c (x86_64_store_return_value): Update.
8657 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8658 (sh64_extract_return_value): Update.
8659 (sh_sh4_register_convert_to_virtual): Update.
8660 (sh_sh64_register_convert_to_virtual): Update.
8661 (sh_sh4_register_convert_to_raw): Update.
8662 (sh_sh64_register_convert_to_raw): Update.
8663 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8664 (rs6000_register_convert_to_raw): Update.
8665 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8666 (ia64_register_convert_to_raw): Update.
8667 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8668 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8669 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8670 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8671 (alpha_register_convert_to_raw): Update.
8672
4443bd83
AC
86732003-04-08 Andrew Cagney <cagney@redhat.com>
8674
8675 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8676 * gdbarch.h, gdbarch.c: Re-generate.
8677 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8678 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8679 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8680 conditionally, use frame_pc_unwind as an alternative. Add
8681 comments.
8682 * arch-utils.c (init_frame_pc_default): Only call
8683 SAVED_PC_AFTER_CALL when available.
8684
c0236d92
EZ
86852003-04-08 Elena Zannoni <ezannoni@redhat.com>
8686
fbe586ae 8687 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8688 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8689 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8690 (start_remote): Ditto.
8691 (handle_inferior_event): Ditto.
8692 (save_inferior_status): Ditto.
8693 (restore_inferior_status): Ditto.
8694 * infcmd.c (attach_command): Ditto.
8695 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8696 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8697 * alpha-tdep.c (heuristic_proc_start): Ditto.
8698 * mips-tdep.c (heuristic_proc_start): Ditto.
8699 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8700 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8701 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8702 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8703 * remote-vx.c (vx_create_inferior): Ditto.
8704
87052003-04-08 Elena Zannoni <ezannoni@redhat.com>
8706
8707 * infrun.c (stop_soon_quietly): Make it an enum, to better
8708 override the default behavior of handle_inferior_event.
8709 (clear_proceed_status): Update uses of stop_soon_quietly to
8710 reflect that it is now an enum.
8711 (start_remote): Ditto.
8712 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8713 is set to handle the new GNU/Linux kernel behavior for
8714 attach/sigstop. Update uses of stop_soon_quietly.
8715 * inferior.h (enum stop_kind): New enum.
8716 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8717 Reset normal handle_inferior_event behavior, afterwards.
8718 * fork-child.c (startup_inferior): Update.
8719 * alpha-tdep.c (heuristic_proc_start): Update.
8720 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8721 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8722 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8723 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8724 * remote-vx.c (vx_create_inferior): Update.
8725 * mips-tdep.c (heuristic_proc_start): Update.
8726
1211bce3
EZ
87272003-04-07 Elena Zannoni <ezannoni@redhat.com>
8728
8729 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8730 be freed more than once, causing wild memory corruptions.
1211bce3 8731 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8732 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8733 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8734 with the "core" target.
1211bce3 8735
f0ef6b29
KB
87362003-04-07 Kevin Buettner <kevinb@redhat.com>
8737
8738 * mips-tdep.c (mips_print_fp_register): New function, created from
8739 do_fp_register_row(). Registers are now (also) printed as hex.
8740 Only one register is printed per row.
8741 (mips_print_register, do_fp_register_row): Print floating point
8742 registers with mips_print_fp_register().
8743
8cf71652
AC
87442003-04-06 Andrew Cagney <cagney@redhat.com>
8745
5e488a7b
AC
8746 * valprint.h (inspect_it): Add extern declaration.
8747 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8748 (selectors_info, classes_info): Ditto.
8749 (find_objc_msgcall): Fix indentation.
8750 (objc_printstr): Delete extern declarations.
8751
8cf71652
AC
8752 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8753
e6ba3bc9
AC
87542003-04-06 Andrew Cagney <cagney@redhat.com>
8755
8756 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8757 Update comment.
8758 * frame.c (legacy_saved_regs_this_id): Update.
8759 (legacy_get_prev_frame): Update.
8760 * xstormy16-tdep.c: Update comment.
8761 * sparc-tdep.c (sparc_frame_chain): Update comment.
8762 * blockframe.c (legacy_frame_chain_valid): Update.
8763
55e1d7e7
AC
87642003-04-06 Andrew Cagney <cagney@redhat.com>
8765
996179ee
AC
8766 * valprint.c (val_print_type_code_int): Delete #ifdef
8767 PRINT_TYPELESS_INTEGER code.
8768
55e1d7e7
AC
8769 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8770 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8771 multi-arch definition.
8772 * gdbarch.h: Re-generate.
8773
43bd9a9e
AC
87742003-04-05 Andrew Cagney <cagney@redhat.com>
8775
8776 Eliminate FRAME_FIND_SAVED_REGS.
8777 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8778 Change FSR parameter to a pointer.
8779 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8780 Assume FSR parameter is a pointer.
8781 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8782 Make fsr a pointer.
8783 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8784 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8785 saved_regs a pointer.
8786 (hppa_frame_saved_pc): Ditto.
8787 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8788 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8789 pointer.
8790 (restore_pc_queue): Make fsr a pointer.
8791 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8792 (hppa_frame_chain): Make saved_regs a pointer, call
8793 hppa_frame_init_saved_regs.
8794 * sparc-tdep.c: Include "gdb_assert.h".
8795 (sparc_frame_find_saved_regs): Replace internal_error with
8796 gdb_assert.
8797 * remote-vxsparc.c (vx_read_register): Delete reference to
8798 FRAME_FIND_SAVED_REGS.
8799 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8800 * gdbarch.h: Regenerate.
8801 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8802 (deprecated_get_frame_saved_regs): Delete declaration.
8803 (struct frame_saved_regs): Delete definition.
8804 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8805 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8806 (hppa_frame_find_saved_regs): Delete declaration.
8807 (FRAME_FIND_SAVED_REGS): Delete macro.
8808 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8809 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8810 FRAME_FIND_SAVED_REGS in comment.
8811
be41e9f4
AC
88122003-04-05 Andrew Cagney <cagney@redhat.com>
8813
8814 * frame.c (frame_func_unwind, get_frame_func): New functions.
8815 * frame.h (get_frame_func, frame_func_unwind): Declare.
8816 (struct frame_info): Add field "prev_func" for caching the
8817 previous frame's function address.
8818 * arm-tdep.c (arm_frameless_function_invocation): Combine
8819 get_pc_function_start and get_frame_pc into get_frame_func.
8820 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8821 (sh64_nofp_frame_init_saved_regs): Ditto.
8822 * s390-tdep.c (s390_function_start): Ditto.
8823 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8824 (rs6000_frameless_function_invocation): Ditto.
8825 (rs6000_frame_saved_pc): Ditto.
8826 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8827 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8828 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8829 (i386_frame_init_saved_regs): Ditto.
8830 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8831 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8832 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8833 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8834 * blockframe.c (frameless_look_for_prologue): Ditto.
8835
a01dd7cc
AC
88362003-04-05 Andrew Cagney <cagney@redhat.com>
8837
8838 * frame.c (legacy_get_prev_frame): Link prev to next at the
8839 function start. Update comments.
8840
5e5592e6
AC
88412003-04-05 Andrew Cagney <cagney@redhat.com>
8842
8843 * frame.c (get_frame_id): Update comment.
8844 (legacy_get_prev_frame): Update comment.
8845 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8846 * gdbarch.h: Regenerate.
8847 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8848 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8849
6fba5002
AC
88502003-04-05 Andrew Cagney <cagney@redhat.com>
8851
8852 * stack.c (print_frame_info): Use get_frame_pc.
8853
7df05f2b
AC
88542003-04-04 Andrew Cagney <cagney@redhat.com>
8855
8856 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8857 the frame's type from the unwinder.
8858 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8859 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8860 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8861 (get_frame_base_address): Use get_frame_type.
8862 (get_frame_locals_address, get_frame_args_address): Ditto.
8863 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8864 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8865 (struct frame_info): Add comment explaining why the frame contains
8866 a "type" field.
8867 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8868 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8869 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8870 NORMAL_FRAME.
8871 * frame-unwind.h: Include "frame.h".
8872 (struct frame_unwind): Add "type" field.
8873 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8874
11889732
AC
88752003-04-04 Andrew Cagney <cagney@redhat.com>
8876
8877 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8878 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8879 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8880 get_frame_base.
8881 (d10v_unwind_dummy_id): Use frame_id_build.
8882 * frame.c (find_frame_sal): Use get_frame_pc.
8883 (create_new_frame): Use deprecated_update_frame_pc_hack and
8884 deprecated_update_frame_base_hack.
8885 (create_sentinel_frame): Add comment about ->pc going away.
8886 (get_prev_frame): Add comment about ->pc going away.
8887 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8888 frame_id_build, deprecated_update_frame_pc_hack and
8889 deprecated_update_frame_base_hack.
8890 (select_frame): Use get_frame_pc.
8891 (legacy_saved_regs_this_id): Use frame_id_build.
8892
50c46a0d
EZ
88932003-04-04 Elena Zannoni <ezannoni@redhat.com>
8894
fbe586ae
RH
8895 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8896 signed integer case.
8897 (classify_argument): Handle enumerations and references.
50c46a0d 8898
50bbdbd9
AC
88992003-04-04 Andrew Cagney <cagney@redhat.com>
8900
8901 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8902 ID to NULL.
8903
36018d2e
AF
89042003-04-01 Adam Fedor <fedor@gnu.org>
8905
8906 * gdb/objc-lang.c (selectors_info): Replace calls to
8907 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8908 SYMBOL_NATURAL_NAME.
8909 (classes_info, find_methods): Likewise.
8910
35cec841
KB
89112003-04-03 Kevin Buettner <kevinb@redhat.com>
8912
8913 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8914 ``mach'' to the value determined by bfd_default_set_arch_mach().
8915
43136899
BR
89162003-04-02 Bob Rossi <bob_rossi@cox.net>
8917
8918 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8919 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8920 (mi-cmd-file.o): Update dependencies.
8921
040b99fd
KB
89222003-04-01 Kevin Buettner <kevinb@redhat.com>
8923
8924 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8925 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8926
9a3d7dfd
AF
89272003-04-01 Adam Fedor <fedor@gnu.org>
8928
8929 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8930 * language.h (struct language_defn): Add la_demangle.
8931 (language_demangle): Declare.
8932 * language.c (language_demangle): New function.
8933 (unk_lang_demangle): Likewise.
8934 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8935 Add ukn_lang_demangle.
9a3d7dfd 8936 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8937 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8938 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8939 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8940 * jv-lang.c (java_demangle): New function
8941 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8942 * objc-lang.c (objc_demangle): Add options argument
8943 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8944 * maint.c (maintenance_demangle): Replace switch with
8945 call to language_demangle.
8946 * utils.c (fprintf_symbol_filtered): Likewise.
8947
5e074003
AC
89482003-04-01 Andrew Cagney <cagney@redhat.com>
8949
8950 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8951 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8952 PRINT_TYPELESS_INTEGER.
8953 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8954 PUSH_RETURN_ADDRESS.
8955
270cb5d6
AC
89562003-04-01 Andrew Cagney <cagney@redhat.com>
8957
8958 * Makefile.in (d10v-tdep.o): Update dependencies.
8959 * d10v-tdep.c: Include "frame-base.h".
8960 (d10v_frame_unwind): Make constant.
8961 (d10v_frame_base_address): New function.
8962 (d10v_frame_base): New variable.
8963 (d10v_gdbarch_init): Set frame_base default.
8964 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8965 comment for base.
8966 (d10v_frame_unwind_cache): Set and use "prev_sp".
8967 (d10v_frame_this_id): Use the previous frame's inner most stack
8968 address and this frame's func address for the frame ID. Use
8969 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8970
6bfb3e36
AC
89712003-04-01 Andrew Cagney <cagney@redhat.com>
8972
8973 * frame.h (get_frame_locals_address, get_frame_args_address):
8974 Refer to the base address, instead of the address of the first
8975 local or parameter.
8ffd9b1b 8976
da62e633
AC
89772003-04-01 Andrew Cagney <cagney@redhat.com>
8978
8979 Add frame debug info addresses:
8980 * frame-base.c: New file.
8981 * frame-base.h: New file.
8982 * frame.h (struct frame_base): Add opaque declaration.
8983 (get_frame_base): Update comment.
8984 (get_frame_base_address): Declare.
8985 (get_frame_locals_address): Declare.
8986 (get_frame_args_address): Declare.
8987 (struct frame_info): Add "base" and "base_cache". Update
8988 comments on the unwinder.
8989 * frame.c: Include "frame-base.h".
8990 (get_frame_locals_address): New function.
8991 (get_frame_base_address): New function.
8992 (get_frame_args_address): New function.
8993 * findvar.c (read_var_value): Use get_frame_locals_address and
8994 get_frame_args_address.
8995 * stack.c (frame_info): Use get_frame_locals_address and
8996 get_frame_args_address.
8997 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8998 moved to "frame-base.c".
8999 * printcmd.c (print_frame_nameless_args): Ditto.
9000 * symtab.h (address_class): Update comments.
9001 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9002 get_frame_base_address.
9003 * dwarf2expr.c (execute_stack_op): Ditto.
9004 * Makefile.in (frame_base_h): Define.
9005 (frame.o): Update dependencies.
9006 (frame-base.o): Add dependencies.
9007 (SFILES): Add frame-base.c.
9008 (COMMON_OBS): Add frame-base.o.
9009
3d30e9c2
AC
90102003-04-01 Andrew Cagney <cagney@redhat.com>
9011
9012 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9013 CALL_DUMMY_LENGTH): Ditto.
9014 * gdbarch.c: Re-generate.
9015 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9016 (CALL_DUMMY_LENGTH): Delete macro.
9017 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9018 * arm-tdep.c (arm_gdbarch_init): Ditto.
9019 * avr-tdep.c (avr_gdbarch_init): Ditto.
9020 * cris-tdep.c (cris_gdbarch_init): Ditto.
9021 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9022 * frv-tdep.c (frv_gdbarch_init): Ditto.
9023 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9024 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9025 * i386-tdep.c (i386_gdbarch_init): Ditto.
9026 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9027 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9028 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9029 * mips-tdep.c (mips_gdbarch_init): Ditto.
9030 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9031 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9032 * s390-tdep.c (s390_gdbarch_init): Ditto.
9033 * sh-tdep.c (sh_gdbarch_init): Ditto.
9034 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9035 * v850-tdep.c (v850_gdbarch_init): Ditto.
9036 * vax-tdep.c (vax_gdbarch_init): Ditto.
9037 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9038
ce0c7262
CV
90392003-04-01 Corinna Vinschen <vinschen@redhat.com>
9040
9041 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9042
73dd234f
AC
90432003-04-01 Andrew Cagney <cagney@redhat.com>
9044
9045 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9046 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9047 * gdbarch.h, gdbarch.c: Re-generate.
9048 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9049 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9050 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9051 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9052 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9053 * infcmd.c (run_stack_dummy): Simplify assuming
9054 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9055 * infrun.c (handle_inferior_event): Ditto.
9056 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9057 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9058 * arm-tdep.c (arm_gdbarch_init): Ditto.
9059 * avr-tdep.c (avr_gdbarch_init): Ditto.
9060 * cris-tdep.c (cris_gdbarch_init): Ditto.
9061 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9062 * frv-tdep.c (frv_gdbarch_init): Ditto.
9063 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9064 * i386-tdep.c (i386_gdbarch_init): Ditto.
9065 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9066 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9067 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9068 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9069 * mips-tdep.c (mips_gdbarch_init): Ditto.
9070 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9071 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9072 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9073 * s390-tdep.c (s390_gdbarch_init): Ditto.
9074 * sh-tdep.c (sh_gdbarch_init): Ditto.
9075 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9076 * v850-tdep.c (v850_gdbarch_init): Ditto.
9077 * vax-tdep.c (vax_gdbarch_init): Ditto.
9078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9079
97606a13
DJ
90802003-04-01 Daniel Jacobowitz <drow@mvista.com>
9081
9082 * symfile.c (symfile_relocate_debug_section): Update call to
9083 bfd_simple_get_relocated_section_contents.
9084
e8ab51f7
AC
90852003-03-31 Andrew Cagney <cagney@redhat.com>
9086
9087 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9088 * gdbarch.h, gdbarch.c: Regenerate.
9089 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9090 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9091 available.
9092 * frame.h (generic_fix_call_dummy): Delete declaration.
9093 * dummy-frame.h: Update comment.
9094 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9095 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9096 fix_call_dummy.
9097 * sh-tdep.c (sh_gdbarch_init): Ditto.
9098 * s390-tdep.c (s390_gdbarch_init): Ditto.
9099 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9100 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9101 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9102 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9103 * i386-tdep.c (i386_gdbarch_init): Ditto.
9104 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9105 * frv-tdep.c (frv_gdbarch_init): Ditto.
9106 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9107 * cris-tdep.c (cris_gdbarch_init): Ditto.
9108 * avr-tdep.c (avr_gdbarch_init): Ditto.
9109 * arm-tdep.c (arm_gdbarch_init): Ditto.
9110
018d1b48
JB
91112003-03-31 J. Brobecker <brobecker@gnat.com>
9112
9113 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9114 (INIT_FRAME_AP): Likewise.
9115 (EXTRA_FRAME_INFO): Likewise.
9116
e9a2674e
AC
91172003-03-31 Andrew Cagney <cagney@redhat.com>
9118
9119 * gdbarch.sh: Include "symfile.h".
9120 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9121 * gdbarch.h, gdbarch.c: Re-generate.
9122 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9123 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9124 call_dummy_address, the default is at entry_point_address.
9125 * v850-tdep.c (v850_gdbarch_init): Ditto.
9126 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9127 * sh-tdep.c (sh_gdbarch_init): Ditto.
9128 * s390-tdep.c (s390_gdbarch_init): Ditto.
9129 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9130 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9131 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9132 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9133 * i386-tdep.c (i386_gdbarch_init): Ditto.
9134 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9135 * frv-tdep.c (frv_gdbarch_init): Ditto.
9136 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9137 * cris-tdep.c (cris_gdbarch_init): Ditto.
9138 * arm-tdep.c (arm_gdbarch_init): Ditto.
9139
e8a8712a
AC
91402003-03-31 Andrew Cagney <cagney@redhat.com>
9141
9142 * gdbarch.sh (CALL_DUMMY_P): Delete.
9143 * gdbarch.h, gdbarch.c: Re-generate.
9144 * inferior.h (CALL_DUMMY_P): Delete macro.
9145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9146 * vax-tdep.c (vax_gdbarch_init): Update.
9147 * v850-tdep.c (v850_gdbarch_init): Update.
9148 * sparc-tdep.c (sparc_gdbarch_init): Update.
9149 * sh-tdep.c (sh_gdbarch_init): Update.
9150 * s390-tdep.c (s390_gdbarch_init): Update.
9151 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9152 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9153 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9154 * mips-tdep.c (mips_gdbarch_init): Update.
9155 * mcore-tdep.c (mcore_gdbarch_init): Update.
9156 * m68k-tdep.c (m68k_gdbarch_init): Update.
9157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9158 * ia64-tdep.c (ia64_gdbarch_init): Update.
9159 * i386-tdep.c (i386_gdbarch_init): Update.
9160 * h8300-tdep.c (h8300_gdbarch_init): Update.
9161 * frv-tdep.c (frv_gdbarch_init): Update.
9162 * d10v-tdep.c (d10v_gdbarch_init): Update.
9163 * cris-tdep.c (cris_gdbarch_init): Update.
9164 * breakpoint.c (deprecated_frame_in_dummy): Update.
9165 * avr-tdep.c (avr_gdbarch_init): Update.
9166 * alpha-tdep.c (alpha_gdbarch_init): Update.
9167 * arm-tdep.c (arm_gdbarch_init): Update.
9168 * dummy-frame.c (dummy_frame_this_id): Update comments.
9169 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9170 * frame.c (legacy_get_prev_frame): Ditto.
9171 * valops.c (call_function_by_hand): Delete function.
9172 (hand_function_call): Rename to call_function_by_hand
9173
ed234cf8
AC
91742003-03-30 Andrew Cagney <cagney@redhat.com>
9175
9176 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 9177 * value.h (struct value): Update comment.
ed234cf8 9178
06c77151
AC
91792003-03-30 Andrew Cagney <cagney@redhat.com>
9180
6c2b5168
AC
9181 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9182 D10V_FP_REGNUM.
9183 (d10v_gdbarch_init): Do not set fp_regnum.
9184
06c77151
AC
9185 * frame.c (get_frame_base): Force ID initialization.
9186 (get_prev_frame): Move computation of the frame ID from here ...
9187 (get_frame_id): ... to here.
9188 (legacy_get_prev_frame): Mark the frame ID as valid.
9189 * frame.h (struct frame_info): Add field "id_p".
9190
97a1a11c
MK
91912003-03-30 Mark Kettenis <kettenis@gnu.org>
9192
9193 * i386-tdep.c (i386_store_struct_return): Removed.
9194 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9195
6c0e89ed
AC
91962003-03-30 Andrew Cagney <cagney@redhat.com>
9197
9198 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9199 * gdbarch.h, gdbarch.c: Regenerate.
9200 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9202 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9203 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9204 * i386-tdep.c (i386_gdbarch_init): Ditto.
9205 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9206 * cris-tdep.c (cris_gdbarch_init): Ditto.
9207 * vax-tdep.c (vax_gdbarch_init): Ditto.
9208 * s390-tdep.c (s390_gdbarch_init): Ditto.
9209 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9210 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9211 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9212 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9213 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9214 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9215 * sparc-tdep.c (sparc_gdbarch_init): Update.
9216 * sh-tdep.c (sh_gdbarch_init): Update.
9217 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9218 * mips-tdep.c (mips_gdbarch_init): Update.
9219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9220 * ia64-tdep.c (ia64_gdbarch_init): Update.
9221 * frv-tdep.c (frv_gdbarch_init): Update.
9222 * avr-tdep.c (avr_gdbarch_init): Update.
9223 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9224 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9225 instead of when push_dummy_call is not available.
8ffd9b1b 9226
f7dd6af2
AC
92272003-03-30 Andrew Cagney <cagney@redhat.com>
9228
9229 * infttrace.c: Include "gdbthread.h".
9230 (parent_attach_all): Fix function signature.
9231 (call_ptrace): Update call.
9232 * Makefile.in (infttrace.o): Update dependencies.
9233
28f617b3
AC
92342003-03-30 Andrew Cagney <cagney@redhat.com>
9235
9236 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9237 PUSH_RETURN_ADDRESS.
9238 * gdbarch.h, gdbarch.c: Regenerate.
9239 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9240 * x86-64-tdep.c (x86_64_init_abi): Update.
9241 * v850-tdep.c (v850_gdbarch_init): Update.
9242 * sparc-tdep.c (sparc_gdbarch_init): Update.
9243 * sh-tdep.c (sh_gdbarch_init): Update.
9244 * s390-tdep.c (s390_gdbarch_init): Update.
9245 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9246 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9247 * mips-tdep.c (mips_gdbarch_init): Update.
9248 * mcore-tdep.c (mcore_gdbarch_init): Update.
9249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9250 * ia64-tdep.c (ia64_gdbarch_init): Update.
9251 * i386-tdep.c (i386_gdbarch_init): Update.
9252 * h8300-tdep.c (h8300_gdbarch_init): Update.
9253 * frv-tdep.c (frv_gdbarch_init): Update.
9254 * cris-tdep.c (cris_gdbarch_init): Update.
9255 * avr-tdep.c (avr_gdbarch_init): Update.
9256 * arm-tdep.c (arm_gdbarch_init): Update.
9257 * valops.c (hand_function_call): Update.
9258
4d628cd7
AC
92592003-03-29 Andrew Cagney <cagney@redhat.com>
9260
9261 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9262 sizeof_call_dummy_words.
9263 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9264 define.
9265 * gdbarch.h: Regenerate.
8ffd9b1b 9266
65e82032
AC
92672003-03-29 Andrew Cagney <cagney@redhat.com>
9268
9269 * infttrace.h: New file.
9270 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9271 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9272 (hpread_read_doc_function_type): Detect an initialized type1.
9273 (hpread_quick_traverse): Initialize mod_name_string.
9274 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9275 (som_solib_get_solib_by_pc): Declare.
9276 (so_lib_thread_start_addr): Declare.
9277 (no_shared_libraries): Declare.
9278 * somread.c (init_import_symbols): Make static. Add forward
9279 declaration.
9280 * config/pa/nm-hppah.h: Include "infttrace.h" for
9281 parent_attach_all.
9282 (hppa_insert_hw_watchpoint): Declare.
9283 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9284 * hppah-nat.c: Include "gdb_string.h".
9285 (parent_attach_all): Delete extern declaration, moved to
9286 "infttrace.h".
9287 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9288 int.
9289 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9290 * Makefile.in (infttrace_h): Define.
9291 (hpread.o): Update dependencies.
9292 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9293 * hppa-hpux-tdep.c: Include "gdb_string.h".
9294 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9295 * infrun.c (handle_inferior_event): Always initialize
9296 stepped_after_stopped_by_watchpoint. Add default and remove
9297 fallthrough in switch statement.
9298 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9299 parameter to int.
9300 (hppa_remove_hw_watchpoint): Ditto.
9301
2c3bbe77
AC
93022003-03-29 Andrew Cagney <cagney@redhat.com>
9303
9304 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9305 offset.
9306
2dd604e7
RE
93072003-03-29 Richard Earnshaw <rearnsha@arm.com>
9308
9309 * arm-tdep.c (arm_push_arguments): Delete.
9310 (struct stack_item): New type.
9311 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9312 (arm_store_struct_return): Delte.
9313 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9314 arm_push_arguments or arm_store_struct_return.
9315
e8933a55
AC
93162003-03-28 Andrew Cagney <cagney@redhat.com>
9317
9318 * Makefile.in (d10v-tdep.o): Update dependencies.
9319 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9320 * d10v-tdep.c: Include "remote.h".
9321 (target_resume_hook): Delete extern declaration.
9322 (target_wait_loop_hook): Ditto.
9323 (tdisassemble_command): Eliminate assignment in "if" conditional.
9324 (d10v_ts2_register_sim_regno): Eliminate call to
9325 legacy_register_sim_regno.
9326 (d10v_ts3_register_sim_regno): Ditto.
9327
6949171e
JJ
93282003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9329
9330 * thread.c: Reindented.
9331 * lin-lwp.c: Ditto.
9332 * linux-proc.c: Ditto.
9333
98c7071f
BR
93342003-03-28 Bob Rossi <bob_rossi@cox.net>
9335
fbe586ae 9336 * MAINTAINERS (write after approval): Add myself.
98c7071f 9337
5edc9ca6
TR
93382003-03-27 Theodore A. Roth <troth@openavr.org>
9339
9340 * objc-exp.y: Add missing semi-colons.
9341
378bfd1b
AC
93422003-03-27 Andrew Cagney <cagney@redhat.com>
9343
9344 * regcache.c (write_sp): Delete function and references.
9345 * inferior.h (write_sp): Delete declaration.
9346 * valops.c (hand_function_call): Replace write_sp with
9347 TARGET_WRITE_SP.
9348 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9349 (sparc_pop_frame): Ditto.
8ffd9b1b 9350
56056df7
AC
93512003-03-27 Andrew Cagney <cagney@redhat.com>
9352
9353 * NEWS: Mention removal of support for hppa*-*-bsd* and
9354 hppa*-*-osf* natives, and hppa*-*-pro* target.
9355 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9356 * config/pa/xm-pa.h: Obsolete file.
9357 * config/pa/xm-hppab.h: Obsolete file.
9358 * config/pa/nm-hppab.h: Obsolete file.
9359 * config/pa/tm-hppab.h: Obsolete file.
9360 * config/pa/tm-hppao.h: Obsolete file.
9361 * config/pa/nm-hppao.h: Obsolete file.
9362 * config/pa/tm-pro.h: Obsolete file.
9363 * config/pa/hppaosf.mt: Obsolete file.
9364 * config/pa/hppaosf.mh: Obsolete file.
9365 * config/pa/hppapro.mt: Obsolete file.
9366 * config/pa/hppabsd.mt: Obsolete file.
9367 * config/pa/hppabsd.mh: Obsolete file.
9368 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9369 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9370 hppa*-*-osf*.
9371
5873a88d
AC
93722003-03-27 Andrew Cagney <cagney@redhat.com>
9373
9374 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9375 push_arguments. Don't set push_return_address or write_sp.
9376 (d10v_push_dummy_call): Replace d10v_push_arguments.
9377 (d10v_push_return_address, d10v_write_sp): Delete function,
9378 handled by push_dummy_call.
9379
b81774d8
AC
93802003-03-26 Andrew Cagney <cagney@redhat.com>
9381
9382 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9383 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9384 regcache and dummy_addr parameters.
9385 * gdbarch.h, gdbarch.c: Re-generate.
9386 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9387 available; assume it will handle stack alignment and return
9388 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9389 legacy_push_arguments.
9390 (legacy_push_arguments): Rename default_push_arguments.
9391 * value.h (legacy_push_arguments): Rename default_push_arguments.
9392 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9393 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9394 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9395 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9396 * config/i386/tm-symmetry.h: Update.
9397 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9398 * x86-64-tdep.c (x86_64_init_abi): Update.
9399 * v850-tdep.c (v850_gdbarch_init): Update.
9400 * sparc-tdep.c (sparc_gdbarch_init): Update.
9401 * sh-tdep.c (sh_gdbarch_init): Update.
9402 * s390-tdep.c (s390_gdbarch_init): Update.
9403 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9404 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9405 * mips-tdep.c (mips_gdbarch_init): Update.
9406 * mcore-tdep.c (mcore_gdbarch_init): Update.
9407 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9408 * ia64-tdep.c (ia64_gdbarch_init): Update.
9409 * i386-tdep.c (i386_gdbarch_init): Update.
9410 * hppa-tdep.c (hppa_gdbarch_init): Update.
9411 * h8300-tdep.c (h8300_gdbarch_init): Update.
9412 * frv-tdep.c (frv_gdbarch_init): Update.
9413 * d10v-tdep.c (d10v_gdbarch_init): Update.
9414 * cris-tdep.c (cris_gdbarch_init): Update.
9415 * avr-tdep.c (avr_gdbarch_init): Update.
9416 * arm-tdep.c (arm_gdbarch_init): Update.
9417 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9418 * alpha-tdep.c (alpha_gdbarch_init): Update.
9419
f541410f
DJ
94202003-03-26 Daniel Jacobowitz <drow@mvista.com>
9421
9422 * signals/signals.c (do_target_signal_to_host): Correct realtime
9423 signal range test.
9424
69f567ae
DJ
94252003-03-26 Daniel Jacobowitz <drow@mvista.com>
9426
9427 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9428 (struct sal_chain, map_catch_names): Remove.
9429 (catch_exception_command_1): Don't call
9430 handle_gnu_4_16_catch_command.
9431
d5d14a5a
DJ
94322003-03-26 Daniel Jacobowitz <drow@mvista.com>
9433
9434 From Mark Dettinger <dettinge@de.ibm.com>:
9435 * dwarf2cfi.c (read_2u): Increment pointer by two.
9436
bdd73e22
DJ
94372003-03-26 Daniel Jacobowitz <drow@mvista.com>
9438
9439 * signals/signals.c: Fix typos in last change.
9440
960cb555
DJ
94412003-03-26 Daniel Jacobowitz <drow@mvista.com>
9442
9443 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9444 not already defined. Use __SIGRTMIN if available.
9445 (target_signal_from_host): Remove SIGRTMIN block.
9446 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9447 the signal is within the realtime range.
9448
f636b87d
AF
94492003-03-25 Adam Fedor <fedor@gnu.org>
9450
9451 * Makefile.in (infrun.o): Add $(language_h)
9452 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9453 for language specific trampolines.
9454 * language.h (struct language_defn): Add skip_trampoline.
9455 (skip_language_trampoline): Declare.
9456 * language.c (unk_lang_trampoline, skip_language_trampoline):
9457 New functions.
9458 (unknown_language_defn, auto_language_defn, local_language_defn):
9459 Add ukn_lang_trampoline.
9460 * ada-lang.c (ada_language_defn): Add NULL for language
9461 specific skip_trampoline.
9462 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9463 scm-lang.c: Likewise.
9464 * objc-lang.c (objc_skip_trampoline): New function.
9465 (objc_language_defn): Add objc_skip_trampoline.
9466
28f617b3 94672003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9468
9469 * frame.c (get_prev_frame): Delay validating a frame's ID -
9470 non-NULL, didn't go backwards - until an attempt to unwind it to
9471 the previous frame.
9472
f933a9c5
AC
94732003-03-25 Andrew Cagney <cagney@redhat.com>
9474
9475 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9476 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9477 * gdbarch.h, gdbarch.c: Re-generate.
9478 * config/sparc/tm-sparc.h
9479 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9480 * sparc-tdep.c (sparc_gdbarch_init): Set
9481 deprecated_extra_stack_alignment_needed.
9482 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9484 extra_stack_alignment_needed.
9485 * v850-tdep.c (v850_gdbarch_init): Ditto.
9486 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9487 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9488 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9489 * cris-tdep.c (cris_gdbarch_init): Ditto.
9490 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9491 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9492
4183d812
AC
94932003-03-25 Andrew Cagney <cagney@redhat.com>
9494
9495 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9496 STORE_STRUCT_RETURN.
9497 * gdbarch.h, gdbarch.c: Regenerate.
9498 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9499 (d10v_push_arguments): Set the struct return register.
9500 (d10v_gdbarch_init): Update.
9501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9502 * x86-64-tdep.c (x86_64_init_abi): Update.
9503 * vax-tdep.c (vax_gdbarch_init): Update.
9504 * v850-tdep.c (v850_gdbarch_init): Update.
9505 * sparc-tdep.c (sparc_gdbarch_init): Update.
9506 * sh-tdep.c (sh_gdbarch_init): Update.
9507 * s390-tdep.c (s390_gdbarch_init): Update.
9508 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9509 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9510 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9511 * mips-tdep.c (mips_gdbarch_init): Update.
9512 * mcore-tdep.c (mcore_gdbarch_init): Update.
9513 * m68k-tdep.c (m68k_gdbarch_init): Update.
9514 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9515 * ia64-tdep.c (ia64_gdbarch_init): Update.
9516 * i386-tdep.c (i386_gdbarch_init): Update.
9517 * hppa-tdep.c (hppa_gdbarch_init): Update.
9518 * h8300-tdep.c (h8300_gdbarch_init): Update.
9519 * frv-tdep.c (frv_gdbarch_init): Update.
9520 * cris-tdep.c (cris_gdbarch_init): Update.
9521 * avr-tdep.c (avr_gdbarch_init): Update.
9522 * arm-tdep.c (arm_gdbarch_init): Update.
9523 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9524
1bf6d5cc
AC
95252003-03-25 Andrew Cagney <cagney@redhat.com>
9526
9527 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9528 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9529 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9530 * gdbarch.h, gdbarch.c: Regenerate.
9531 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9532 call_dummy_stack_adjust_p.
9533 * vax-tdep.c (vax_gdbarch_init): Ditto.
9534 * v850-tdep.c (v850_gdbarch_init): Ditto.
9535 * sh-tdep.c (sh_gdbarch_init): Ditto.
9536 * s390-tdep.c (s390_gdbarch_init): Ditto.
9537 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9538 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9539 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9540 * mips-tdep.c (mips_gdbarch_init): Ditto.
9541 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9542 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9543 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9544 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9545 * i386-tdep.c (i386_gdbarch_init): Ditto.
9546 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9547 * frv-tdep.c (frv_gdbarch_init): Ditto.
9548 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9549 * cris-tdep.c (cris_gdbarch_init): Ditto.
9550 * avr-tdep.c (avr_gdbarch_init): Ditto.
9551 * arm-tdep.c (arm_gdbarch_init): Ditto.
9552 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9553 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9554 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9555 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9556 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9557 call_dummy_stack_adjust_p.
9558 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9559 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9560 * sparc-tdep.c (sparc32_push_arguments): Update.
9561 * valops.c (hand_function_call): Update.
9562
71c08af0
CV
95632003-03-25 Corinna Vinschen <vinschen@redhat.com>
9564
9565 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9566 set_gdbarch_char_signed.
9567
30757f90
RE
95682003-03-25 Richard Earnshaw <rearnsha@arm.com>
9569
9570 PR cli/548
9571 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9572
03d48a7d
RE
95732003-03-25 Richard Earnshaw <rearnsha@arm.com>
9574
9575 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9576 (_initialize_arm_tdep): Don't set tm_print_insn.
9577
2cf6873c
AF
95782003-03-24 Adam Fedor <fedor@gnu.org>
9579
9580 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9581 * objc-lang.h: Add multiple inclusion protection.
9582 (start_msglist, add_msglist, end_msglist): Additional declarations.
9583
17c0759e
RE
95842003-03-24 Richard Earnshaw <rearnsha@arm.com>
9585
9586 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9587 value was renamed to ARM_FLOAT_SOFT_FPA.
9588
618ce49f
AC
95892003-03-23 Andrew Cagney <cagney@redhat.com>
9590
9591 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9592 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9593 * gdbarch.h, gdbarch.c: Regenerate.
9594 * valops.c (hand_function_call): Update.
9595 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9596 * frame.c (legacy_saved_regs_this_id): Update.
9597 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9598 * dummy-frame.h: Update.
9599 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9600 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9601 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9602 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9603 * config/m68k/tm-sun3.h: Update.
9604 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9605 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9606 * x86-64-tdep.c (x86_64_init_abi): Update.
9607 * vax-tdep.c (vax_gdbarch_init): Update.
9608 * v850-tdep.c (v850_gdbarch_init): Update.
9609 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9610 * sh-tdep.c (sh_gdbarch_init): Update.
9611 * s390-tdep.c (s390_gdbarch_init): Update.
9612 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9613 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9614 (frame_get_saved_regs): Update.
9615 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9616 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9617 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9618 * mips-tdep.c (mips_gdbarch_init): Update.
9619 * mcore-tdep.c (mcore_gdbarch_init): Update.
9620 * m68k-tdep.c (m68k_gdbarch_init): Update.
9621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9622 * ia64-tdep.c (ia64_gdbarch_init): Update.
9623 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9624 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9625 (i386_interix_back_one_frame): Update.
9626 * hppa-tdep.c (hppa_gdbarch_init): Update.
9627 (hppa_init_extra_frame_info): Update.
9628 * h8300-tdep.c (h8300_gdbarch_init): Update.
9629 * frv-tdep.c (frv_gdbarch_init): Update.
9630 * cris-tdep.c (cris_gdbarch_init): Update.
9631 * avr-tdep.c (avr_gdbarch_init): Update.
9632 * arm-tdep.c (arm_gdbarch_init): Update.
9633 * alpha-tdep.c (alpha_gdbarch_init): Update.
9634
fd50bc42
RE
96352003-03-22 Richard Earnshaw <rearnsha@arm.com>
9636
9637 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9638 (arm_get_fp_model): Declare.
9639 * arm-tdep.c (fp_model_strings): New string array.
9640 (arm_fp_model, current_fp_model): New variables.
9641 (arm_get_fp_model): New function.
9642 (arm_set_fp): New function.
9643 (set_fp_model_sfunc): New function.
9644 (show_fp_model): New function.
9645 (_initialize_arm_tdep): Add new command to set/show the FPU.
9646 (arm_extract_return_value): Use arm_get_fp_model.
9647 (arm_store_return_value): Likewise.
9648 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9649 to initialize the floating-point data types.
9650 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9651 model is FPA.
9652
26304000
RE
96532003-03-22 Richard Earnshaw <rearnsha@arm.com>
9654
9655 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9656 the current setting of each value.
9657 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9658 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9659 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9660 commands and add new version as subcommands of "set/show arm".
9661
afd7eef0
RE
96622003-03-22 Richard Earnshaw <rearnsha@arm.com>
9663
9664 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9665 (set_arm_command, show_arm_command): New functions.
9666 (_initialize_arm_tdep): Add them.
9667 (num_disassembly_options): Renamed from num_flavor_options.
9668 (valid_disassembly_styles): Renamed from valid_flavors.
9669 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9670 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9671 set_disassembly_flavor_sfunc.
9672 (set_disassembly_style): Renamed from set_disassembly_flavor.
9673 (arm_othernames): Updated.
9674 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9675 command. Add "set/show arm disassembly" commands. Deprecate
9676 "othernames" command.
9677
299a7944
RE
96782003-03-22 Richard Earnshaw <rearnsha@arm.com>
9679
9680 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9681 (arm-tdep.o): Depend on elf_arm_h.
9682
c1dac9e6
RE
96832003-03-22 Richard Earnshaw <rearnsha@arm.com>
9684
9685 * Makefile.in (coff_internal_h): Define.
9686 (arm-tdep.o): Update dependencies.
9687
2702d96c
RE
96882003-03-22 Richard Earnshaw <rearnsha@arm.com>
9689
9690 * arm-tdep.c (prologue_cache): Delete.
9691 (check_prologue_cache, save_prologue_cache): Delete.
9692 (arm_scan_prologue): Don't check or update the prologue_cache.
9693 (arm_gdb_arch_init): Don't initialize it.
9694 (_initialize_arm_tdep): Likewise.
9695
27d5d74b
SC
96962003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9697
9698 * MAINTAINERS (tui): Maintainer of tui code.
9699
1762d96d
CV
97002003-03-21 Corinna Vinschen <vinschen@redhat.com>
9701
9702 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9703 (i386-cygwin-tdep.o): Add dependencies.
9704 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9705 * i386-cygwin-tdep.c: New file.
9706 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9707 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9708
4c2e2391
AC
97092003-03-20 Andrew Cagney <cagney@redhat.com>
9710
f20d38b7
AC
9711 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9712 (handle_inferior_event): Remove code calling
9713 DYNAMIC_TRAMPOLINE_NEXTPC.
9714
0022b738
AC
9715 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9716 already has a full path.
9717
864dbc90
AC
9718 * main.c (gdb_main): Return 1.
9719 (captured_main): Call error to report an invalid interpreter.
9720
4c2e2391
AC
9721 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9722 * alpha-osf1-tdep.c: Include "gdb_string.h".
9723
5ef7553b
JB
97242003-03-19 J. Brobecker <brobecker@gnat.com>
9725
9726 Continuing work to convert the hppa targets to multiarch partial.
9727
9728 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9729 method, now that hppa_push_dummy_frame has a conformant prototype.
9730 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9731 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9732 for the switch to multiarch partial.
9733
7bde8967
KB
97342003-03-19 Kevin Buettner <kevinb@redhat.com>
9735
9736 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9737 when iss is issNull.
9738
b006a9e9
KB
97392003-03-18 Kevin Buettner <kevinb@redhat.com>
9740
9741 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9742 NUM_REGS bounds check.
9743
5e2e9765
KB
97442003-03-18 Kevin Buettner <kevinb@redhat.com>
9745
9746 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9747 * mips-tdep.c (gdb_assert.h): Include.
9748 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9749 (mips_register_name): Handle integer registers explicitly. Add
9750 bounds checking.
9751 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9752 (mips_lsi33k_reg_names): Don't list integer registers; they're
9753 handled by mips_register_name() now.
9754 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9755 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9756 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9757 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9758 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9759
a2867626
AC
97602003-03-18 Andrew Cagney <cagney@redhat.com>
9761
9762 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9763 a void pointer.
9764 * gdbtypes.h (print_scalar_formatted): Update declaration.
9765 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9766
06600e06
JB
97672003-03-18 J. Brobecker <brobecker@gnat.com>
9768
9769 * infrun.c (observer.h): Add #include.
9770 (normal_stop): Add call to observer_notify_normal_stop.
9771 * Makefile.in (infrun.o): Add dependency on observer.h.
9772
7daf4f5b
JB
97732003-03-18 J. Brobecker <brobecker@gnat.com>
9774
9775 Continuing work to convert the hppa targets to multiarch partial.
9776 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9777 parameter. Reformat comment.
9778 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9779 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9780 to match new profile.
9781
3371ccc0
JB
97822003-03-18 J. Brobecker <brobecker@gnat.com>
9783
9784 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9785 appear to be working in any case.
9786
4fbe891e
JB
97872003-03-18 J. Brobecker <brobecker@gnat.com>
9788
9789 * observer.c (observer_test_first_observer): New static variable.
9790 (observer_test_second_observer): Likewise.
9791 (observer_test_third_observer): Likewise.
9792 (observer_test_first_notification_function): New static function.
9793 (observer_test_second_notification_function): Likewise.
9794 (observer_test_third_notification_function): Likewise.
9795
a7ff40e7
JB
97962003-03-17 J. Brobecker <brobecker@gnat.com>
9797
9798 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9799 * somsolib.c (gdb_assert.h): Likewise.
9800 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9801 (somsolib.o): Likewise.
9802
26ca4152
AC
98032003-03-17 Andrew Cagney <cagney@redhat.com>
9804
9805 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9806 BFD. Simplify setting of di.endian.
9807
0a613259
AC
98082003-03-17 Andrew Cagney <cagney@redhat.com>
9809
9810 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9811 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9812
9813 From Elena Zannoni <ezannoni@redhat.com>
9814 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9815 vector and floating-point parameters.
9816 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9817 convention.
9818 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9819
1132738f
FN
98202003-03-17 Fernando Nasser <fnasser@redhat.com>
9821
9822 * MAINTAINERS: Remove my name from several maintainership roles.
9823
6dc42492
AC
98242003-03-17 Andrew Cagney <cagney@redhat.com>
9825
9826 Fix frame off-by-one bug.
9827 * frame-unwind.h (frame_this_id_ftype): Replace
9828 frame_unwind_id_ftype.
9829 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9830 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9831 with "prev_register".
9832 * frame-unwind.c (frame_unwind_find_by_pc): Return
9833 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9834 comment.
9835 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9836 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9837 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9838 (dummy_frame_unwind): Update.
9839 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9840 sentinel_frame_register_unwind.
9841 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9842 (sentinel_frame_unwinder): Update.
9843 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9844 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9845 * frame.c (create_sentinel_frame): Update. Initialize
9846 "prologue_cache" instead of "unwind_cache".
9847 (frame_register_unwind): Call this frame's prev_register with the
9848 next frame and this frame's prologue cache.
9849 (get_prev_frame): Simplify. Always call prev frame's this_id with
9850 this frame and prev frame's prologue cache. Document that this
9851 call is shifted one to the left when compared to the
9852 frame_register_unwind call.
9853 (legacy_saved_regs_prev_register): Replace
9854 frame_saved_regs_register_unwind.
9855 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9856 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9857 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9858 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9859 (d10v_frame_unwind): Update.
9860 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9861 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9862 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9863 "saved_regs" with "this_saved_regs".
9864
efd710d6
AC
98652003-03-16 Andrew Cagney <cagney@redhat.com>
9866
9867 * frame.c (frame_pop): Don't call target_store_registers. Fix
9868 problem reported by Mark Kettenis.
9869
4e259f09
MK
98702003-03-16 Mark Kettenis <kettenis@gnu.org>
9871
9872 * i386-tdep.c (i386_register_type): Renamed from
9873 i386_register_virtual_type. Adjust function signature.
9874 (i386_gdbarch_init): Set register_type instead of
9875 deprecated_max_register_raw_size,
9876 deprecated_max_register_virtual_size and register_virtual_type.
9877
055bb976
AC
98782003-03-14 Andrew Cagney <cagney@redhat.com>
9879
9880 * frame.c (get_prev_frame): When a legacy frame, always call
9881 legacy_get_prev_frame. Simplify unwind code using assumption that
9882 the unwinder is new.
9883 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9884 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9885 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9886
ac2adee5
AC
98872003-03-14 Andrew Cagney <cagney@redhat.com>
9888
9889 * frame.c (get_saved_register): Delete function.
9890 * frame.h (get_saved_register): Delete declaration.
9891 * xstormy16-tdep.c: Update comment.
9892 * regcache.h: Update comments.
9893 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9894 get_saved_register and extract_address, use
9895 frame_read_unsigned_register.
9896 (sparc_frame_saved_pc): Ditto.
9897 (sparc_get_saved_register): Instead of get_saved_register, use
9898 frame_register.
9899 (sparc_pop_frame): Ditto.
9900 * findvar.c: Update comments.
9901 (value_of_register): Call frame_register instead of
9902 get_saved_register.
9903 (value_from_register): Ditto.
9904 * config/sparc/tm-sparc.h: Update comment.
9905 * breakpoint.c: Update comment.
9906
129c1cd6
AC
99072003-03-14 Andrew Cagney <cagney@redhat.com>
9908
9909 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9910 GET_SAVED_REGISTER.
9911 * gdbarch.h, gdbarch.c: Re-generate.
9912 * frame.h: Update comments.
9913 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9914 * x86-64-tdep.c (x86_64_init_abi): Update.
9915 * sparc-tdep.c (sparc_gdbarch_init): Update.
9916 * sh-tdep.c (sh_gdbarch_init): Update.
9917 * mips-tdep.c (mips_gdbarch_init): Update.
9918 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9919 * cris-tdep.c (cris_gdbarch_init): Update.
9920 * ia64-tdep.c (ia64_gdbarch_init): Update.
9921 * frame.c (frame_register): Update.
9922 (get_saved_register): Update.
9923 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9924
749b82f6
AC
99252003-03-13 Andrew Cagney <cagney@redhat.com>
9926
9927 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9928 * gdbarch.h, gdbarch.c: Regenerate.
9929 * valops.c (hand_function_call): Update comment.
9930 * stack.c (return_command): Update comment.
9931 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9932 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9934 * x86-64-tdep.c (x86_64_init_abi): Update.
9935 * vax-tdep.c (vax_gdbarch_init): Update.
9936 * v850-tdep.c (v850_gdbarch_init): Update.
9937 * sparc-tdep.c (sparc_gdbarch_init): Update.
9938 * sh-tdep.c (sh_gdbarch_init): Update.
9939 * s390-tdep.c (s390_gdbarch_init): Update.
9940 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9941 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9942 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9943 * mips-tdep.c (mips_gdbarch_init): Update.
9944 * mcore-tdep.c (mcore_gdbarch_init): Update.
9945 * m68k-tdep.c (m68k_gdbarch_init): Update.
9946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9947 * ia64-tdep.c (ia64_gdbarch_init): Update.
9948 * i386-tdep.c (i386_gdbarch_init): Update.
9949 * hppa-tdep.c (hppa_gdbarch_init): Update.
9950 * h8300-tdep.c (h8300_gdbarch_init): Update.
9951 * frv-tdep.c (frv_gdbarch_init): Update.
9952 * cris-tdep.c (cris_gdbarch_init): Update.
9953 * avr-tdep.c (avr_gdbarch_init): Update.
9954 * arm-tdep.c (arm_gdbarch_init): Update.
9955 * alpha-tdep.c (alpha_gdbarch_init): Update.
9956
1594fa56
AC
99572003-03-13 Andrew Cagney <cagney@redhat.com>
9958
9959 * frame.c (legacy_frame_p): New function.
9960 (get_prev_frame): Use legacy_frame_p.
9961 * frame.h (legacy_frame_p): Declare.
9962
7717fda3
V
99632003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9964
fbe586ae 9965 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9966 listing corrected.
9967
0c67cbe9
V
99682003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9969
fbe586ae 9970 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9971
03febf99
AC
99722003-03-12 Andrew Cagney <cagney@redhat.com>
9973
9974 * frame.c (get_prev_frame): Rename the frame parameter to
9975 "this_frame".
9976 (get_next_frame, legacy_get_prev_frame): Ditto.
9977
0a1e1ca1
AC
99782003-03-12 Andrew Cagney <cagney@redhat.com>
9979
9980 * frame.c (get_current_frame): Check target_has_registers before
9981 checking target_has_stack.
9982 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9983 instead of deprecated_selected_frame.
9984 * findvar.c (value_of_register): Pass "frame", not
9985 deprecated_selected_frame, to value_of_builtin_reg.
9986
a66a9c23
AC
99872003-03-12 Andrew Cagney <cagney@redhat.com>
9988
9989 * regcache.c (regcache_cooked_write_signed): New function.
9990 (regcache_cooked_write_unsigned): New function.
9991 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9992 (regcache_cooked_read_signed): Fix regnum in range assertion.
9993 * regcache.h (regcache_cooked_write_signed): Declare.
9994 (regcache_cooked_write_unsigned): Declare.
9995
8bedc050
AC
99962003-03-12 Andrew Cagney <cagney@redhat.com>
9997
9998 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9999 * gdbarch.h, gdbarch.c: Re-generate.
10000 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10001 * x86-64-tdep.h: Update.
10002 * x86-64-tdep.c (x86_64_init_abi): Update.
10003 * v850-tdep.c (v850_gdbarch_init): Update.
10004 * sparc-tdep.c (sparc_gdbarch_init): Update.
10005 * sh-tdep.c (sh_gdbarch_init): Update.
10006 * s390-tdep.c (s390_gdbarch_init): Update.
10007 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10008 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10009 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10010 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10011 * mips-tdep.c (mips_gdbarch_init): Update.
10012 * mcore-tdep.c (mcore_gdbarch_init): Update.
10013 * m68k-tdep.c (m68k_gdbarch_init): Update.
10014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10015 * ia64-tdep.c (ia64_gdbarch_init): Update.
10016 * i386-tdep.c (i386_gdbarch_init): Update.
10017 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10018 * hppa-tdep.c (hppa_gdbarch_init): Update.
10019 * h8300-tdep.c (h8300_gdbarch_init): Update.
10020 * frv-tdep.c (frv_gdbarch_init): Update.
10021 * cris-tdep.c (cris_gdbarch_init): Update.
10022 * avr-tdep.c (avr_gdbarch_init): Update.
10023 * arm-tdep.c (arm_gdbarch_init): Update.
10024 * alpha-tdep.c (alpha_gdbarch_init): Update.
10025 * sh-tdep.c (sh_init_extra_frame_info): Update.
10026 (sh64_init_extra_frame_info): Update.
10027 * ns32knbsd-nat.c (frame_num_args): Update.
10028 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10029 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10030 (xstormy16_frame_chain_valid): Update.
10031 * vax-tdep.c (vax_saved_pc_after_call): Update.
10032 * v850-tdep.c (v850_frame_chain): Update.
10033 (v850_pop_frame): Update.
10034 (v850_init_extra_frame_info): Update.
10035 * sparc-tdep.c (setup_arbitrary_frame): Update.
10036 * ns32k-tdep.c (umax_frame_num_args): Update.
10037 * s390-tdep.c (s390_pop_frame_regular): Update.
10038 * mn10300-tdep.c (mn10300_frame_chain): Update.
10039 (mn10300_pop_frame_regular): Update.
10040 (mn10300_init_extra_frame_info): Update.
10041 * mips-tdep.c (mips_init_frame_pc_first): Update.
10042 (mips_frame_chain): Update.
10043 (mips_pop_frame): Update.
10044 * mcore-tdep.c (mcore_frame_chain): Update.
10045 (mcore_pop_frame): Update.
10046 (mcore_init_extra_frame_info): Update.
10047 * arch-utils.c (init_frame_pc_default): Update.
10048 * m68k-tdep.c (isi_frame_num_args): Update.
10049 (delta68_frame_num_args): Update.
10050 (news_frame_num_args): Update.
10051 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10052 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10053 (alpha_frame_chain): Update.
10054 (alpha_pop_frame): Update.
10055 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10056 (hppa_init_extra_frame_info): Update.
10057 (hppa_frame_chain): Update.
10058 (hppa_frame_chain_valid): Update.
10059 * cris-tdep.c (cris_init_extra_frame_info): Update.
10060 * avr-tdep.c (avr_init_extra_frame_info): Update.
10061 * arm-tdep.c (arm_frame_chain_valid): Update.
10062 (arm_init_extra_frame_info): Update.
10063 (arm_pop_frame): Update.
10064 * frame.c (frame_pc_unwind): Update.
10065 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10066 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10067 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10068 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10069 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10070 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10071
7a25a7c1
AC
100722003-03-12 Andrew Cagney <cagney@redhat.com>
10073
10074 Eliminate the need for POP_FRAME.
10075 * frame.c (do_frame_unwind_register): New function.
10076 (frame_pop): When no POP_FRAME, pop the frame using register
10077 unwind and a scratch regcache.
10078 (frame_saved_regs_pop): Delete function.
10079 (trad_frame_unwinder): Update.
10080 * d10v-tdep.c (d10v_frame_pop): Delete function.
10081 (d10v_frame_unwind): Update.
10082 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10083 (sentinel_frame_unwinder): Update.
10084 * dummy-frame.c (dummy_frame_pop): Delete function.
10085 (dummy_frame_unwind): Update.
10086 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10087 (struct frame_unwind): Update.
10088
2f38ef89
KB
100892003-03-11 Kevin Buettner <kevinb@redhat.com>
10090
10091 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10092 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10093 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10094 Do range checks on register number obtained from debugging info.
10095 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10096 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10097 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10098 mapping function.
10099 (do_fp_register_row): Fix typo which caused double type to be
10100 used when attempting to unpack a float.
10101
552f4abf
JB
101022003-03-11 J. Brobecker <brobecker@gnat.com>
10103
10104 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10105
e0d2ae16
AC
101062003-03-11 Andrew Cagney <cagney@redhat.com>
10107
10108 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10109 frame. Problem found by Corinna Vinschen.
10110
ddbfdd06
PM
101112003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10112
10113 * doublest.c (floatformat_from_length): Accept also
10114 the real size of 'long double' type.
10115
088b2ddc 101162003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 10117
088b2ddc 10118 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
10119 * breakpoint.c (bpstat_copy): Copy the command lines as well
10120 as the old value, to match what is freed in bpstat_clear.
10121
f56f77c1
DC
101222003-03-10 David Carlton <carlton@math.stanford.edu>
10123
10124 * minsyms.c (add_minsym_to_hash_table): Replace
10125 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10126 (compare_minimal_symbols, compact_minimal_symbols)
10127 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10128 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10129 of DEPRECATED_SYMBOL_MATCHES_NAME.
10130 (lookup_minimal_symbol_solib_trampoline): Ditto.
10131
5602984a
AC
101322003-03-10 Andrew Cagney <cagney@redhat.com>
10133
10134 * regcache.h (regcache_cooked_read_ftype): Define.
10135 (regcache_save, regcache_restore): Add a cooked_read parameter.
10136 * regcache.c (regcache_save, regcache_restore): Update.
10137 (do_cooked_read): New function.
10138 (regcache_cpy): Pass do_cooked_read to regcache_save and
10139 regcache_restore.
10140
8bedc050
AC
101412003-03-10 Andrew Cagney <cagney@redhat.com>
10142
10143 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10144 * gdbarch.h, gdbarch.c: Re-generate.
10145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10146 * x86-64-tdep.h: Update.
10147 * x86-64-tdep.c (x86_64_init_abi): Update.
10148 * v850-tdep.c (v850_gdbarch_init): Update.
10149 * sparc-tdep.c (sparc_gdbarch_init): Update.
10150 * sh-tdep.c (sh_gdbarch_init): Update.
10151 * s390-tdep.c (s390_gdbarch_init): Update.
10152 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10153 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10154 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10155 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10156 * mips-tdep.c (mips_gdbarch_init): Update.
10157 * mcore-tdep.c (mcore_gdbarch_init): Update.
10158 * m68k-tdep.c (m68k_gdbarch_init): Update.
10159 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10160 * ia64-tdep.c (ia64_gdbarch_init): Update.
10161 * i386-tdep.c (i386_gdbarch_init): Update.
10162 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10163 * hppa-tdep.c (hppa_gdbarch_init): Update.
10164 * h8300-tdep.c (h8300_gdbarch_init): Update.
10165 * frv-tdep.c (frv_gdbarch_init): Update.
10166 * cris-tdep.c (cris_gdbarch_init): Update.
10167 * avr-tdep.c (avr_gdbarch_init): Update.
10168 * arm-tdep.c (arm_gdbarch_init): Update.
10169 * alpha-tdep.c (alpha_gdbarch_init): Update.
10170 * sh-tdep.c (sh_init_extra_frame_info): Update.
10171 (sh64_init_extra_frame_info): Update.
10172 * ns32knbsd-nat.c (frame_num_args): Update.
10173 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10174 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10175 (xstormy16_frame_chain_valid): Update.
10176 * vax-tdep.c (vax_saved_pc_after_call): Update.
10177 * v850-tdep.c (v850_frame_chain): Update.
10178 (v850_pop_frame): Update.
10179 (v850_init_extra_frame_info): Update.
10180 * sparc-tdep.c (setup_arbitrary_frame): Update.
10181 * ns32k-tdep.c (umax_frame_num_args): Update.
10182 * s390-tdep.c (s390_pop_frame_regular): Update.
10183 * mn10300-tdep.c (mn10300_frame_chain): Update.
10184 (mn10300_pop_frame_regular): Update.
10185 (mn10300_init_extra_frame_info): Update.
10186 * mips-tdep.c (mips_init_frame_pc_first): Update.
10187 (mips_frame_chain): Update.
10188 (mips_pop_frame): Update.
10189 * mcore-tdep.c (mcore_frame_chain): Update.
10190 (mcore_pop_frame): Update.
10191 (mcore_init_extra_frame_info): Update.
10192 * arch-utils.c (init_frame_pc_default): Update.
10193 * m68k-tdep.c (isi_frame_num_args): Update.
10194 (delta68_frame_num_args): Update.
10195 (news_frame_num_args): Update.
10196 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10197 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10198 (alpha_frame_chain): Update.
10199 (alpha_pop_frame): Update.
10200 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10201 (hppa_init_extra_frame_info): Update.
10202 (hppa_frame_chain): Update.
10203 (hppa_frame_chain_valid): Update.
10204 * cris-tdep.c (cris_init_extra_frame_info): Update.
10205 * avr-tdep.c (avr_init_extra_frame_info): Update.
10206 * arm-tdep.c (arm_frame_chain_valid): Update.
10207 (arm_init_extra_frame_info): Update.
10208 (arm_pop_frame): Update.
10209 * frame.c (frame_pc_unwind): Update.
10210 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10211 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10212 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10213 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10214 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10215 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10216
12cc2063
AC
102172003-03-10 Andrew Cagney <cagney@redhat.com>
10218
10219 * gdbarch.sh (gdbarch_unwind_pc): New method.
10220 * gdbarch.h, gdbarch.c: Regenerate.
10221 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10222 but use read_pc and FRAME_SAVED_PC as fall backs.
10223 (frame_saved_regs_pc_unwind): Delete function.
10224 (trad_frame_unwinder): Update.
10225 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10226 (struct frame_unwind): Update.
10227 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10228 (dummy_frame_unwind): Update.
10229 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10230 (sentinel_frame_unwinder): Update.
10231 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10232 (d10v_frame_unwind): Update.
10233 (d10v_unwind_pc): New function.
10234 (d10v_gdbarch_init): Set unwind_pc.
10235
ef840a37
AC
102362003-03-10 Andrew Cagney <cagney@redhat.com>
10237
a2ce2e56
AC
10238 * gdbarch.h: Re-generate.
10239
ef840a37
AC
10240 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10241 PC.
10242 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10243 the PC register.
10244
08f3424b
MK
102452003-03-08 Mark Kettenis <kettenis@gnu.org>
10246
10247 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10248
1248ede2
AC
102492003-03-08 Andrew Cagney <cagney@redhat.com>
10250
10251 * cli-out.c: Update copyright.
10252 (cli_out_data): Define typedef. Use instead of ui_out_data.
10253
f49bacc8
AC
102542003-03-08 Andrew Cagney <cagney@redhat.com>
10255
10256 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10257 the result.
10258
9b05f993
AC
102592003-03-07 Andrew Cagney <cagney@redhat.com>
10260
10261 * gdbarch.sh: Don't generate two macro definitions when an
10262 undefined macro taking no arguments.
10263 * gdbarch.h: Regenerate.
8ffd9b1b 10264
166f4c7b
ML
102652002-03-07 Michal Ludvig <mludvig@suse.cz>
10266
10267 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10268 (x86_64_unwind_dummy_id): New functions.
10269 (x86_64_init_abi): Register these two new functions.
10270
6d686a84
ML
102712003-03-07 Michal Ludvig <mludvig@suse.cz>
10272
10273 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10274 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10275 separate function.
10276 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10277
6314f104
AC
102782003-03-05 Andrew Cagney <cagney@redhat.com>
10279
10280 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10281 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10282 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10283 to use unwind_dummy_id when a dummy frame.
10284 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10285 predicate.
10286 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10287
ceea5145
AC
102882003-03-05 Andrew Cagney <cagney@redhat.com>
10289
10290 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10291 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10292 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10293 values.
10294
0d843116
AC
102952003-03-05 Andrew Cagney <cagney@redhat.com>
10296
10297 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10298 (struct d10v_unwind_cache): Delete field "frameless". Replace
10299 "next_addr" with "sp_offset". Add "r11_offset".
10300 (d10v_frame_unwind_cache): Update.
10301 (prologue_find_regs): Update. When "mv r11, sp", save the
10302 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10303 RN was saved in r11_offset.
10304
b2579786
AC
103052003-03-05 Andrew Cagney <cagney@redhat.com>
10306
10307 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10308 cached PC value in the next frame.
10309
218e5956
AC
103102003-03-05 Andrew Cagney <cagney@redhat.com>
10311
10312 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10313 "id_unwind_cache" with "id".
10314 (frame_id_unwind): Delete declaration.
10315 * frame.c (frame_id_unwind): Delete function.
10316 (get_prev_frame): Call the frame id unwind method directly. Store
10317 the returned next frame's ID value in NEXT_FRAME. Note that there
10318 is a problem with the wrong unwind ID being called with the wrong
10319 unwind cache.
10320
ed363b1b
DJ
103212003-03-05 Daniel Jacobowitz <drow@mvista.com>
10322
10323 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10324
fe1f4a5e
DJ
103252003-03-05 James Ingham <jingham@apple.com>
10326 Daniel Jacobowitz <drow@mvista.com>
10327
10328 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10329 (auto_cp_abi): New variable.
10330 (current_cp_abi, num_cp_abis): Make static.
10331 (CP_ABI_MAX): Define.
10332 (cp_abis): Turn into an array.
10333 (value_virtual_fn_field): Fix formatting.
10334 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10335 takes a pointer.
10336 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10337 (list_cp_abis, _initialize_cp_abi): New functions.
10338 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10339 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10340 switch_to_cp_abi. Update prototype for register_cp_abi.
10341 * Makefile.in (cp-abi.o): Update dependencies.
10342 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10343 instead of switch_to_cp_abi.
10344 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10345 register_cp_abi.
10346 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10347 register_cp_abi.
10348 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10349
e4adbba9
DJ
103502003-03-05 Daniel Jacobowitz <drow@mvista.com>
10351
10352 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10353 * dwarf2loc.c: Include "regcache.h".
10354 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10355 register_size.
10356 * Makefile.in (dwarf2loc.o): Update dependencies.
10357
91ccbfc1
TR
103582003-03-04 Theodore A. Roth <troth@openavr.org>
10359
10360 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10361 number of io registers reported by remote target is not a multiple of
10362 step.
10363
3d4e8fd2
DC
103642003-03-04 David Carlton <carlton@math.stanford.edu>
10365
10366 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10367 (lookup_symbol_aux_psymtabs): Update call to
10368 lookup_partial_symbol.
10369 (lookup_transparent_type, find_main_psymtab)
10370 (make_symbol_overload_list): Ditto.
10371
ed42d87b
KH
103722003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10373
10374 * MAINTAINERS (Write after approval): Update my email address.
10375
a0ed5532
AC
103762003-03-03 Andrew Cagney <cagney@redhat.com>
10377
10378 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10379 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10380 predicate. Replace MAX_REGISTER_RAW_SIZE.
10381 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10382 MAX_REGISTER_VIRTUAL_SIZE.
10383 * regcache.c (legacy_max_register_raw_size): New function.
10384 (legacy_max_register_virtual_size): New function.
10385 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10386 (MAX_REGISTER_RAW_SIZE): Define.
10387 (legacy_max_register_raw_size): Declare.
10388 (legacy_max_register_virtual_size): Declare.
10389 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10390 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10391 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10392 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10393 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10394 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10395 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10396 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10397 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10399 * vax-tdep.c (vax_gdbarch_init): Update.
10400 * v850-tdep.c (v850_gdbarch_init): Update.
10401 * sparc-tdep.c (sparc_gdbarch_init): Update.
10402 * sh-tdep.c (sh_gdbarch_init): Update.
10403 * s390-tdep.c (s390_gdbarch_init): Update.
10404 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10405 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10406 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10407 * mips-tdep.c (mips_gdbarch_init): Update.
10408 * mcore-tdep.c (mcore_gdbarch_init): Update.
10409 * m68k-tdep.c (m68k_gdbarch_init): Update.
10410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10411 * ia64-tdep.c (ia64_gdbarch_init): Update.
10412 * i386-tdep.c (i386_gdbarch_init): Update.
10413 * hppa-tdep.c (hppa_gdbarch_init): Update.
10414 * h8300-tdep.c (h8300_gdbarch_init): Update.
10415 * frv-tdep.c (frv_gdbarch_init): Update.
10416 * cris-tdep.c (cris_gdbarch_init): Update.
10417 * avr-tdep.c (avr_gdbarch_init): Update.
10418 * arm-tdep.c (arm_gdbarch_init): Update.
10419 * alpha-tdep.c (alpha_gdbarch_init): Update.
10420 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10421 max_register_raw_size or max_register_virtual_size.
10422
8e437497
DC
104232003-03-03 David Carlton <carlton@math.stanford.edu>
10424
10425 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10426 SYMBOL_MATCHES_NAME, add comment.
10427 (SYMBOL_MATCHES_NATURAL_NAME): New.
10428 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10429 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10430 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10431 * symtab.c (lookup_partial_symbol): Use
10432 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10433 unhelpful comment.
10434 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10435 SYMBOL_MATCHES_NAME.
10436 Fix for PR c++/33.
10437
25120b0d
DC
104382003-03-03 David Carlton <carlton@math.stanford.edu>
10439
10440 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10441 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10442 by regexp matching against SYMBOL_NATURAL_NAME.
10443
78a11fb4
DC
104442003-03-03 David Carlton <carlton@math.stanford.edu>
10445
10446 * linespec.c (find_method): Extract code into collect_methods.
10447 (collect_methods): New.
10448
645dd519
MK
104492003-03-02 Mark Kettenis <kettenis@gnu.org>
10450
b4700d91
MK
10451 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10452 get_frame_base.
10453
645dd519
MK
10454 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10455 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10456
0aa7e1aa
SC
104572003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10458
8ffd9b1b 10459 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10460 and not regnum when summing the size of all registers up to regnum.
10461
f30ee0bc
AC
104622003-03-01 Andrew Cagney <cagney@redhat.com>
10463
10464 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10465 FRAME_INIT_SAVED_REGS.
10466 * gdbarch.h, gdbarch.c: Regenerate.
10467 * stack.c (frame_info): Update.
10468 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10469 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10470 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10471 * ns32k-tdep.c (ns32k_pop_frame): Update.
10472 * mips-tdep.c (mips_pop_frame): Update.
10473 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10474 * ia64-tdep.c (ia64_frame_chain): Update.
10475 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10476 (ia64_frameless_function_invocation): Update.
10477 (ia64_init_extra_frame_info): Update.
10478 (ia64_pop_frame_regular): Update.
10479 * frame.h (struct frame_info): Update comment.
10480 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10481 * frame.c (frame_saved_regs_register_unwind): Update.
10482 (frame_saved_regs_register_unwind): Update.
10483 (deprecated_generic_get_saved_register): Update.
10484 * cris-tdep.c: Update comment.
10485 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10486 Rename macro.
10487 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10488 * x86-64-tdep.c (x86_64_init_abi): Update.
10489 * vax-tdep.c (vax_gdbarch_init): Update.
10490 * v850-tdep.c (v850_gdbarch_init): Update.
10491 * sparc-tdep.c (sparc_gdbarch_init): Update.
10492 * sh-tdep.c (sh_gdbarch_init): Update.
10493 * s390-tdep.c (s390_gdbarch_init): Update.
10494 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10495 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10496 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10497 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10498 * mips-tdep.c (mips_gdbarch_init): Update.
10499 * mcore-tdep.c (mcore_gdbarch_init): Update.
10500 * m68k-tdep.c (m68k_gdbarch_init): Update.
10501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10502 * ia64-tdep.c (ia64_gdbarch_init): Update.
10503 * i386-tdep.c (i386_gdbarch_init): Update.
10504 * frv-tdep.c (frv_gdbarch_init): Update.
10505 * avr-tdep.c (avr_gdbarch_init): Update.
10506 * arm-tdep.c (arm_gdbarch_init): Update.
10507 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10508
42fa7c0f
AC
105092003-03-01 Andrew Cagney <cagney@redhat.com>
10510
10511 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10512 option enum and switch. When no windows, set the interpreter to
10513 INTERP_CONSOLE.
8ffd9b1b 10514
49c7e338
AC
105152003-03-01 Andrew Cagney <cagney@redhat.com>
10516
10517 * main.c (captured_main): Replace magic option characters with an
10518 enum.
10519
e9582e71
AC
105202003-03-01 Andrew Cagney <cagney@redhat.com>
10521
10522 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10523 INIT_EXTRA_FRAME_INFO.
10524 * gdbarch.h, gdbarch.c: Regenerate.
10525 * arm-tdep.c: Update comments.
10526 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10527 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10528 * frame.h, avr-tdep.c: Ditto.
10529 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10530 (create_new_frame, legacy_get_prev_frame): Ditto.
10531 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10532 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10533 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10534 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10535 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10536 * v850-tdep.c (v850_gdbarch_init): Ditto.
10537 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10538 * sh-tdep.c (sh_gdbarch_init): Ditto.
10539 * s390-tdep.c (s390_gdbarch_init): Ditto.
10540 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10541 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10542 * mips-tdep.c (mips_gdbarch_init): Ditto.
10543 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10545 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10546 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10547 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10548 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10549 * frv-tdep.c (frv_gdbarch_init): Ditto.
10550 * cris-tdep.c (cris_gdbarch_init): Ditto.
10551 * avr-tdep.c (avr_gdbarch_init): Ditto.
10552 * arm-tdep.c (arm_gdbarch_init): Ditto.
10553 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10554 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10555
35cac7cf
AC
105562003-03-01 Andrew Cagney <cagney@redhat.com>
10557
10558 * gdbarch.sh (register_type): New function with predicate.
10559 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10560 * gdbarch.h, gdbarch.c: Re-generate.
10561 * arch-utils.c (generic_register_byte): Use generic_register_size.
10562 (generic_register_size): When available, use
10563 gdbarch_register_type.
10564 * regcache.c (init_regcache_descr): When available, initialize the
10565 register type array using gdbarch_register_type. If the
10566 architecture supplies gdbarch_register_type, do not use the legacy
10567 regcache layout.
10568 * d10v-tdep.c (d10v_register_type): Replace
10569 d10v_register_virtual_type.
10570 (d10v_gdbarch_init): Set register_type instead of
10571 register_virtual_type.
10572
7b83296f
AC
105732003-03-01 Andrew Cagney <cagney@redhat.com>
10574
10575 * Makefile.in (ax-gdb.o): Update dependencies.
10576 * ax-gdb.c: Include "regcache.h".
10577 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10578 * findvar.c (value_of_register): Ditto.
10579 * infcmd.c (default_print_registers_info): Ditto.
10580
eadc1c87
MK
105812003-03-01 Mark Kettenis <kettenis@gnu.org>
10582
10583 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10584 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10585
14143612
MK
105862003-03-01 Mark Kettenis <kettenis@gnu.org>
10587
10588 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10589 of STREQ.
10590
a55cc764
DJ
105912003-02-28 Daniel Jacobowitz <drow@mvista.com>
10592
10593 * Makefile.in (dwarf2loc.o): Update dependencies.
10594 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10595 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10596 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10597 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10598 (locexpr_tracepoint_var_ref): New function.
10599 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10600
08a617da
AC
106012003-02-28 Andrew Cagney <cagney@redhat.com>
10602
10603 * regcache.c (register_size): New function.
10604 * regcache.h (register_size): Declare
10605 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10606 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10607
4224873a
DC
106082003-02-28 David Carlton <carlton@math.stanford.edu>
10609
10610 * linespec.c (decode_compound): Extract code into find_method.
10611 (find_method): New.
10612
ccdc5d7f
JB
106132003-02-28 J. Brobecker <brobecker@gnat.com>
10614
10615 * Makefile.in: Add rules to build and link in observer.o.
10616
974e8ced
JB
106172003-02-27 J. Brobecker <brobecker@gnat.com>
10618
10619 * observer.c: Minor comments edits.
10620
7a28f973
JB
106212003-02-27 J. Brobecker <brobecker@gnat.com>
10622
10623 * observer.h, observer.c: New file.
10624
27cddce2
AC
106252003-02-27 Andrew Cagney <cagney@redhat.com>
10626
10627 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10628
b94a41a1
SC
106292003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10630
10631 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10632 (M6812_OP_STS_EXT): Likewise.
10633 (m6811_prologue): Use the above to recognize prologue.
10634 (m6812_prologue): Likewise.
10635
c8be8951
DC
106362003-02-27 David Carlton <carlton@math.stanford.edu>
10637
10638 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10639 SYMBOL_PRINT_NAME.
10640 (compare_psymbols): Ditto.
10641 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10642
d05bb1fc
MS
106432003-02-27 Michael Snyder <msnyder@redhat.com>
10644
4e845cd3
MS
10645 * f-lang.c (build_fortran_types): New function.
10646 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10647 * doublest.c (extract_floating): Fix warning text.
10648
f3824013
AC
106492003-02-27 Andrew Cagney <cagney@redhat.com>
10650
10651 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10652 predicate. Replaces PUSH_DUMMY_FRAME.
10653 * gdbarch.h, gdbarch.c: Regnerate.
10654 * valops.c (hand_function_call): Update. Call
10655 generic_push_dummy_frame directly.
10656 * vax-tdep.c (vax_gdbarch_init): Update.
10657 * sparc-tdep.c (sparc_gdbarch_init): Update.
10658 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10659 * m68k-tdep.c (m68k_gdbarch_init): Update.
10660 * hppa-tdep.c (hppa_gdbarch_init): Update.
10661 * alpha-tdep.c (alpha_gdbarch_init): Update.
10662 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10663 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10664 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10665 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10666 push_dummy_frame to generic_push_dummy_frame.
10667 * v850-tdep.c (v850_gdbarch_init): Ditto.
10668 * sh-tdep.c (sh_gdbarch_init): Ditto.
10669 * s390-tdep.c (s390_gdbarch_init): Ditto.
10670 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10671 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10672 * mips-tdep.c (mips_gdbarch_init): Ditto.
10673 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10675 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10676 * i386-tdep.c (i386_gdbarch_init): Ditto.
10677 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10678 * frv-tdep.c (frv_gdbarch_init): Ditto.
10679 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10680 * cris-tdep.c (cris_gdbarch_init): Ditto.
10681 * avr-tdep.c (avr_gdbarch_init): Ditto.
10682 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10683
ad188201
KB
106842003-02-26 Kevin Buettner <kevinb@redhat.com>
10685
10686 * mips-tdep.c (show_mips_abi): New function.
10687 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10688 command ``show mips abi''.
10689
6b37567a 106902003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10691
6b37567a 10692 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10693 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10694 more sline entries have been seen for the function.
10695
d3e0a5bf
MC
106962003-02-26 Michael Chastain <mec@shout.net>
10697
10698 * configure: Regenerate with autoconf 000227.
10699
18972eea
MC
107002003-02-26 Michael Chastain <mec@shout.net>
10701
10702 Close PR build/660.
10703 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10704 for old libc5/glibc.
10705 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10706
0bbde931
KW
107072003-02-26 Kris Warkentin <kewarken@qnx.com>
10708
10709 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10710 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10711
27ca5dad
MC
107122003-02-26 Michael Chastain <mec@shout.net>
10713
10714 * configure.in: New variable HAVE_UINTPTR_T.
10715 * configure, config.in: Regenerated.
10716
6f88d630
DJ
107172003-02-26 Daniel Jacobowitz <drow@mvista.com>
10718
10719 Fix PR build/1097.
10720 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10721
b14185ce
AC
107222003-02-25 Andrew Cagney <cagney@redhat.com>
10723
10724 * frame.c (get_prev_frame): Add comment on check for
10725 inside_entry_func. Only check for inside_entry_file when not a
10726 dummy and not a sentinel. Check that the new frame is not inner
10727 to the old frame.
10728
ac2bd0a9
AC
107292003-02-25 Andrew Cagney <cagney@redhat.com>
10730
10731 * frame.c (frame_debug): New variable.
10732 (_initialize_frame): Add "set/show debug frame" command.
10733 (get_prev_frame): When frame_debug, print reason why unwind
10734 failed.
10735
b18a0fd2
MC
107362003-02-25 Michael Chastain <mec@shout.net>
10737
10738 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10739 to avoid uintptr_t definition problems.
10740
22abf04a
DC
107412003-02-25 David Carlton <carlton@math.stanford.edu>
10742
10743 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10744 (SYMBOL_LINKAGE_NAME): Ditto.
10745 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10746 SYMBOL_LINKAGE_NAME.
10747 (struct general_symbol_info): Expand comment.
10748 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10749 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10750 (SYMBOL_MATCHES_REGEXP): Ditto.
10751 * symtab.c (symbol_natural_name): New function.
10752 * objfiles.h: Replace all uses of SYMBOL_NAME by
10753 DEPRECATED_SYMBOL_NAME.
10754 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10755 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10756 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10757 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10758 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10759 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10760 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10761 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10762 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10763 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10764 * ada-exp.y: Ditto.
10765 * ada-exp.y: Update copyright.
10766 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10767 * cp-valprint.c: Ditto.
10768
1a5848f6
JJ
107692003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10770
10771 * infptrace.c (detach): Do not flag error if ptrace detach fails
10772 and errno is set to ESRCH.
10773
7343d46a
AC
107742003-02-24 Andrew Cagney <cagney@redhat.com>
10775
10776 * infptrace.c (udot_info): Change type of udot_off to long. Use
10777 paddr when printing udot_off's value.
10778
49fa1dc2
DC
107792003-02-24 David Carlton <carlton@math.stanford.edu>
10780
10781 * symtab.c (make_symbol_overload_list): Only read in partial
10782 symtabs containing a matching partial symbol.
10783
0fe19209
DC
107842003-02-24 David Carlton <carlton@math.stanford.edu>
10785
10786 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10787 do the comparison, not strcmp.
10788 * symfile.c (compare_psymbols): Ditto.
10789 * defs.h: Declare strcmp_iw_ordered.
10790 * utils.c (strcmp_iw_ordered): New function.
10791
8e3ee7b5
JB
107922003-02-24 Jim Blandy <jimb@redhat.com>
10793
10794 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10795 support, shared libs): Remove my name from here, to better reflect
10796 reality.
10797
7df1a324
KW
107982003-02-24 Kris Warkentin <kewarken@qnx.com>
10799
10800 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10801 (target_ops): Add to_have_continuable_watchpoint.
10802 * target.c (update_current_target): Add INHERIT line for
10803 to_have_continuable_watchpoint.
10804 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10805 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10806 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10807 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10808
d1c76907
EZ
108092003-02-24 Elena Zannoni <ezannoni@redhat.com>
10810
10811 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10812 maintainership.
10813
2610b0bf
KW
108142003-02-24 Kris Warkentin <kewarken@qnx.com>
10815
f46169db
KW
10816 * solib.c (solib_open): Call target defined search function after
10817 failing with solib-search-path.
10818 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10819 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10820
9a3c34fe
KW
108212003-02-24 Kris Warkentin <kewarken@qnx.com>
10822
f46169db 10823 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10824
2417dd25
SC
108252003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10826
10827 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10828
b631436b
SC
108292003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10830
10831 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10832 (m68hc11_add_reggroups): New function.
10833 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10834 (m68hc11_gdbarch_init): Install the reggroups.
10835 (_initialize_m68hc11_tdep): Initialize them.
10836
0aa8c1e4
JW
108372003-02-21 James E Wilson <wilson@tuliptree.org>
10838
10839 * MAINTAINERS: Update my email address.
10840
50ceaba5
DC
108412003-02-21 David Carlton <carlton@math.stanford.edu>
10842
10843 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10844
4c2df51b
DJ
108452003-02-21 Daniel Jacobowitz <drow@mvista.com>
10846
10847 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10848 * symtab.h: Add opaque declarations of struct axs_value and
10849 struct agent_expr.
10850 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10851 (struct location_funcs): New type.
10852 (struct symbol): Add "loc" to aux_value.
10853 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10854 * dwarf2read.c: Include "dwarf2expr.h".
10855 (dwarf2_symbol_mark_computed): New function.
10856 (read_func_scope): Use it.
10857 (var_decode_location): New function.
10858 (new_symbol): Use it.
10859 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10860
10861 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10862 (dwarf2expr_h, dwarf2loc_h): New variables.
10863 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10864 (dwarf2expr.o, dwarf2loc.o): New rules.
10865 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10866 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10867 LOC_COMPUTED_ARG.
10868 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10869 * m2-exp.y (yylex): Likewise.
10870 * printcmd.c (address_info, print_frame_args): Likewise.
10871 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10872 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10873 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10874 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10875 * symtab.c (lookup_block_symbol): Likewise.
10876
5784d15e
AF
108772003-02-20 Adam Fedor <fedor@gnu.org>
10878
10879 * symtab.h: Remove objc_specific struct
10880 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10881 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10882 Have language_objc use cplus_specific struct.
10883
d4cad8db
TT
108842003-02-20 Tom Tromey <tromey@redhat.com>
10885
10886 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10887 TYPE_NAME, when printing a String value. PR java/1075.
10888
2f9a90b4
AF
108892003-02-20 Adam Fedor <fedor@gnu.org>
10890
d38074a8 10891 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10892 * objc-lang.c (find_methods): Make static.
2f9a90b4 10893
6f17862b
CF
108942003-02-20 Christopher Faylor <cgf@redhat.com>
10895
10896 * win32-nat.c (get_image_name): Check return value from
10897 ReadProcessMemory.
10898 (child_xfer_memory): Ditto.
10899
715d1656
AO
109002003-02-20 Alexandre Oliva <aoliva@redhat.com>
10901
10902 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10903 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10904 '${exec_prefix}' (in addition to the expansion thereof) as
10905 relocatable.
10906 * configure: Rebuilt.
10907
b1262a02
DC
109082003-02-20 David Carlton <carlton@math.stanford.edu>
10909
10910 * symtab.c (search_symbols): Revert the search_symbols part of my
10911 2002-12-23 patch. Add comment.
10912
7134143f
DJ
109132002-02-20 Daniel Jacobowitz <drow@mvista.com>
10914
10915 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10916 * dbxread.c (elfstab_build_psymtabs): Don't call
10917 install_minimal_symbols.
10918 (stabsect_build_psymtabs): Likewise.
10919 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10920 earlier.
10921 * somread.c (som_symfile_read): Call install_minimal_symbols
10922 and do_cleanups earlier.
10923 * nlmread.c (nlm_symfile_read): Likewise.
10924 * mdebugread.c (elfmdebug_build_psymtabs): Call
10925 install_minimal_symbols and make appropriate cleanups.
10926
cf466558
KB
109272003-02-20 Kevin Buettner <kevinb@redhat.com>
10928
10929 * solib.c (reload_shared_libraries): New function.
10930 (_initialize_solib): Add callbacks for ``set solib-search-path''
10931 and ``set solib-absolute-prefix''.
10932
de5ad195
DC
109332003-02-20 David Carlton <carlton@math.stanford.edu>
10934
10935 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10936 expand comment.
10937 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10938 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10939 * ada-typeprint.c (ada_typedef_print): Ditto.
10940 * ax-gdb.c (gen_var_ref): Ditto.
10941 * breakpoint.c (print_one_breakpoint): Ditto.
10942 * buildsym.c (finish_block): Ditto.
10943 * c-valprint.c (c_val_print): Ditto.
10944 * expprint.c (print_subexp): Ditto.
10945 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10946 * infcmd.c (jump_command): Ditto.
10947 * linespec.c (decode_line_2, decode_compound): Ditto.
10948 * maint.c (maintenance_translate_address): Ditto.
10949 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10950 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10951 Ditto.
8ffd9b1b
AJ
10952 * p-valprint.c (pascal_val_print): Ditto.
10953 * stabsread.c (define_symbol): Ditto.
de5ad195 10954 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10955 (print_frame_arg_vars, return_command): Ditto.
10956 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10957 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10958 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10959 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10960 (rbreak_command): Ditto.
10961 * tracepoint.c (tracepoints_info): Ditto.
10962 * typeprint.c (typedef_print): Ditto.
10963 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10964 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10965 * ada-typeprint.c: Update Copyright.
10966 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10967 * tracepoint.c, cli/cli-cmds.c: Ditto.
10968
f796e4be
KB
109692003-02-20 Kevin Buettner <kevinb@redhat.com>
10970
10971 * frame.c (generic_unwind_get_saved_register): Make non-static.
10972 * frame.h (generic_unwind_get_saved_register): Declare.
10973 * mips-tdep.c (read_next_frame_reg): Fetch register from
10974 current regcache when frame is NULL.
10975 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10976 that must be NULL.
10977 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10978 instead of frame_register_unwind().
10979
836cc9f4
AC
109802003-02-20 Andrew Cagney <ac131313@redhat.com>
10981
10982 * remote-sim.c (gdbsim_insert_breakpoint)
10983 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10984 code.
10985
501eef12
AC
109862003-02-20 Andrew Cagney <ac131313@redhat.com>
10987
10988 * remote.c (_initialize_remote): Add commands "set/show remote
10989 hardware-watchpoint-limit" and "set/show remote
10990 hardware-breakpoint-limit".
10991 (remote_hw_watchpoint_limit): Initialize to -1.
10992 (remote_hw_breakpoint_limit): Ditto.
10993 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10994
1b6bc7e0
CF
109952003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10996
10997 * coff-pe-read.c: New file - support reading of minimal symbols from a
10998 portable executable using the export table.
10999 * coff-pe-read.h: New file.
11000 * coffread.c: Include coff-pe-read.h.
11001 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11002 debugging symbols found.
11003 * Makefile.in (SFILES): Add coff-pe-read.o.
11004 (coff_pe_read_h): Define.
11005 (COMMON_OBS): Add coff-pe-read.o.
11006 (coffread.o): Add coff_pe_read_h dependency.
11007 (coff-pe-read.o): New target.
11008
fe898f56
DC
110092003-02-19 David Carlton <carlton@math.stanford.edu>
11010
11011 * Makefile.in (SFILES): Add block.c.
11012 (block_h): New.
11013 (COMMON_OBS): Add block.o.
11014 (block.o): New.
11015 (x86-64-tdep.o): Add $(block_h).
11016 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11017 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11018 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11019 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11020 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11021 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11022 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11023 * value.h: Add opaque declaration for struct block.
11024 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11025 * ada-lang.h: Ditto.
11026 * x86-64-tdep.c: #include "block.h"
11027 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11028 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11029 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11030 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11031 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11032 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11033 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11034 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11035 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11036 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11037 * symtab.c (block_function): Ditto.
11038 (contained_in): Ditto.
11039 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11040 block.h. Add opaque declaration for struct block.
11041 * symtab.h: Move block_function and contained_in declarations to
11042 block.h. Add opaque declarations for struct block, struct
11043 blockvector.
11044 (struct block): Move to block.h.
11045 (struct blockvector): Ditto.
11046 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11047 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11048 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11049 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11050 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11051 Ditto.
11052 * block.c: New file.
11053 * block.h: New file.
11054
173345b5
TR
110552003-02-19 Theodore A. Roth <troth@openavr.org>
11056
11057 * avr-tdep.c (avr_extract_return_value): Remove function.
11058 (avr_store_return_value): Remove function.
11059 (avr_extract_struct_value_address): Remove function.
11060 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11061
338ef23d
AC
110622003-02-19 Andrew Cagney <ac131313@redhat.com>
11063
11064 * rs6000-tdep.c: Include "gdb_assert.h".
11065 (registers_e500): Add "acc" and "spefscr".
11066 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11067 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11068 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11069 really is "r0".
11070 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11071
5412f5f3
KS
110722003-02-18 Keith Seitz <keiths@redhat.com>
11073
11074 * Makefile.in: Add gdbtk-interps.c.
11075
881324eb
KB
110762003-02-18 Kevin Buettner <kevinb@redhat.com>
11077
11078 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11079 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11080
6a2f5abf
AC
110812003-02-18 Andrew Cagney <cagney@redhat.com>
11082
11083 * symtab.h (struct objfile): Add opaque declaration.
11084
54c7009d
EZ
110852003-02-18 Elena Zannoni <ezannoni@redhat.com>
11086
11087 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
11088 * dbxread.c (process_one_symbol): Use last_function_start rather
11089 than function_start_offset to find the real beginning of the
11090 current function. The latter is just the text section offset on
11091 some systems, the former is always the real function start.
54c7009d 11092
7ee6d7eb
AC
110932003-02-17 Andrew Cagney <cagney@redhat.com>
11094
11095 * configure.in: Revert ${target} != ${host}.
11096
2846da9b
AC
110972003-02-17 Andrew Cagney <ac131313@redhat.com>
11098
11099 * configure.in (Makefile): Use the test ${target} != ${host},
11100 instead of the absence of the "nm.h" file, to determine of the
11101 configuration non-native.
11102 * configure: Regenerate.
8ffd9b1b 11103
3b27aeea
EZ
111042003-02-14 Elena Zannoni <ezannoni@redhat.com>
11105
fbe586ae 11106 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
11107
11108 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11109 conditionalize tui_active test.
11110 (lookup_cmd_1): Ditto.
11111
b0b1c2c0
MK
111122003-02-14 Mark Kettenis <kettenis@gnu.org>
11113
11114 * configure.in: Add check for _etext.
11115 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11116 available.
11117 * config.in, configure: regenerated.
11118
8f05cde5
DJ
111192003-02-14 Daniel Jacobowitz <drow@mvista.com>
11120
11121 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11122
021e7609
AC
111232003-02-14 Andrew Cagney <ac131313@redhat.com>
11124
11125 * main.c (tui_version): Delete variable.
11126 (captured_main): When --tui, set interpreter_p to "tui" instead of
11127 enabling tui_version.
11128 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11129 tui_version.
11130 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11131 * cli/cli-cmds.c (disassemble_command): Ditto.
11132 * defs.h (tui_version): Delete declaration.
11133 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11134 (tui-interp.o): Add rules.
11135 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11136
e325dcec
CF
111372003-02-14 Christopher Faylor <cgf@redhat.com>
11138
36ffb041 11139 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
11140 just-loaded dll.
11141
c4f90d87
JM
111422003-02-12 Jason Molenda (jmolenda@apple.com)
11143
fbe586ae
RH
11144 * symmisc.c (print_objfile_statistics): Include information about
11145 the number of psymtabs and symtabs in each object file.
c4f90d87 11146
e46e5ccd
KS
111472003-02-13 Keith R Seitz <keiths@redhat.com>
11148
11149 * main.h (struct captured_main_args): Add interpreter_p.
11150 * main.c (captured_main): Initialize interpreter_p from context.
11151 * gdb.c (main): Set interpreter_p argument.
11152 * Makefile.in (gdb.o): Add dependency for interps.h.
11153
fe97fe9c
AC
111542003-02-12 Andrew Cagney <ac131313@redhat.com>
11155
11156 * event-top.c (cli_command_loop): Delete declaration.
11157 (_initialize_event_loop): Delete function setting event_loop_hook.
11158 * event-top.h (cli_command_loop): Declare. Update copyright.
11159 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11160 * interps.c (current_interp_command_loop): When event_loop_p, call
11161 cli_command_loop.
11162
1cdac4ef
AC
111632003-02-12 Andrew Cagney <ac131313@redhat.com>
11164
11165 * interps.h (interp_command_loop_ftype): Change return type to
11166 void.
11167
48037ead
ML
111682003-02-12 Michal Ludvig <mludvig@suse.cz>
11169
11170 * x86-64-tdep.c (x86_64_extract_return_value)
11171 (x86_64_store_return_value): Use regcache instead of regbuf.
11172 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11173 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11174
033afc63
AC
111752003-02-11 Andrew Cagney <ac131313@redhat.com>
11176
11177 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11178 * aclocal.m4: Regenerate.
11179 * configure: Regenerate.
11180
11181 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11182 TCL_LD_SEARCH_FLAGS.
11183
40d02bca
ML
111842003-02-10 Michal Ludvig <mludvig@suse.cz>
11185
11186 * dwarf2cfi.c: Reindented.
11187
11308a41
AC
111882003-02-09 Andrew Cagney <ac131313@redhat.com>
11189
11190 * interps.c (clear_interpreter_hooks): Convert function definition
11191 to ISO C.
11192
e1c1c0f6
DC
111932003-02-07 David Carlton <carlton@math.stanford.edu>
11194
11195 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11196
ab5d3da6
KB
111972003-02-07 Kevin Buettner <kevinb@redhat.com>
11198
11199 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11200 (struct type): ...to here.
11201 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11202 field.
11203 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11204 (replace_type): Set length on all type variants for a given type.
11205
b8a92b82
AC
112062003-02-07 Andrew Cagney <ac131313@redhat.com>
11207
11208 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11209 <sys/stat.h>.
11210 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11211
5cb316ef
AC
112122003-02-06 Andrew Cagney <ac131313@redhat.com>
11213
2555fe1a
AC
11214 * Makefile.in (symm-nat.o): Update dependencies.
11215 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11216 (lynx-nat.o, ia64-linux-nat.): Ditto.
11217 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11218 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11219 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11220
44270758
AC
11221 * Makefile.in (inflow_h): Define.
11222 (procfs.o, inflow.o, procfs.o): Update dependencies.
11223 * inftarg.c (child_stop): Delete extern declaration of
11224 inferior_process_group. Include "inflow.h".
11225 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11226 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11227 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11228 (our_process_group, inferior_process_group): Extern declarations.
11229
df8f7274
AC
11230 * procfs.c: Include "gdb_assert.h".
11231
5cb316ef
AC
11232 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11233 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11234 * jv-typeprint.c (java_type_print_base): Ditto.
11235 * typeprint.c (typedef_print): Eliminate STREQ.
11236 * cli/cli-script.c (define_command, define_command): Ditto.
11237 * main.c (captured_main): Ditto.
11238 * values.c (lookup_internalvar): Ditto.
11239 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11240 within `if' conditional.
11241 * linespec.c (decode_line_2): Ditto.
11242 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11243 (bfd_openw_with_cleanup): Ditto.
11244
2a28ccea
MK
112452003-02-07 Mark Kettenis <kettenis@gnu.org>
11246
11247 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11248 legacy_extract_return_value and store_return_value to
11249 legacy_return_value.
11250
786b8124
CF
112512003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11252
11253 * win32-nat.c (get_relocated_section_addrs): New function. Find
11254 section load addresses for symbol handling in relocated DLLs.
11255 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11256
b871e4ec
FF
112572003-02-05 Fred Fish <fnf@intrinsity.com>
11258
11259 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11260 '=' and '!='.
11261 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11262 with '&' and '=='.
11263 (angel_RDI_info): Ditto.
11264 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11265 with '&' and '!='.
11266 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11267
4389a95a 112682003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11269 Keith Seitz <keiths@redhat.com>
11270 Elena Zannoni <ezannoni@redhat.com>
11271 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11272
11273 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11274 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11275 (SUBDIR_MI_OBS): Add "mi-interp.o".
11276 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11277 (SFILES): Add "interps.c".
11278 (COMMON_OBS): Add "interps.o".
11279 (interps_h, mi_main_h): Define.
11280 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11281 (mi-main.o, main.o, event-top.o): Update dependencies.
11282 * cli/cli-interp.c: New file.
11283 * interps.h, interps.c: New files.
11284 * top.c: (gdb_init): Don't install the default interpreter, handed
11285 by captured_main.
11286 * main.c: Include "interps.h".
11287 (interpreter_p): Note that it should malloc'ed.
11288 (captured_command_loop): Call current_interp_command_loop.
11289 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11290 xfree and xstrdup when updating interpreter_p. Install the
11291 default interpreter. Add hack to stop mi1's copyright notice
11292 being encoded.
11293 * event-top.h (gdb_setup_readline): Declare.
11294 (gdb_disable_readline): Declare.
11295 * event-top.c: Include "interps.h".
11296 (display_gdb_prompt): Call current_interp_display_prompt_p.
11297 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11298 gdb_stdlog, and gdb_stdtarg.
11299 (_initialize_event_loop): Don't call gdb_setup_readline.
11300 * cli-out.c (cli_out_set_stream): New function.
11301 * cli-out.h (cli_out_set_stream): Declare.
11302
ff3b5810
MK
113032003-02-06 Mark Kettenis <kettenis@gnu.org>
11304
11305 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11306 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11307 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11308 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11309 config/i386/i386v42mp.mt: Removed.
11310
5b729aa5
MK
113112003-02-05 Mark Kettenis <kettenis@gnu.org>
11312
11313 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11314 GDB_OSABI_SOLARIS.
11315
8cc15142
MC
113162003-02-05 Michael Chastain <mec@shout.net>
11317
11318 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11319 2.12.1 and earlier versions.
11320
5aa5d4b9
AC
113212003-02-05 Andrew Cagney <ac131313@redhat.com>
11322
11323 Remove orphaned hosts, targets and files.
11324 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11325 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11326 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11327 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11328 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11329 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11330 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11331 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11332 * config/sparc/tm-sp64sim.h: Delete.
11333 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11334 hosts.
11335 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11336 mips*-dec-mach3* targets.
11337
b68767c1
MC
113382003-02-04 Michael Chastain <mec@shout.net>
11339
11340 * NEWS: Fix typo: sepcifying -> specifying.
11341
5ae7ca1d
MC
113422003-02-04 Michael Chastain <mec@shout.net>
11343
11344 * dwarfread.c: Add documentation on the state of dwarf-1,
11345 looking towards obsoletion.
11346
d08a4280
MC
113472003-02-03 Michael Chastain <mec@shout.net>
11348
11349 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11350 gdb/testsuite/gdb.c++/pr-1023.exp.
11351
e9be73e4
AC
113522003-02-04 Andrew Cagney <ac131313@redhat.com>
11353
11354 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11355 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11356
11357 * utils.c (init_page_info): Delete reference to MPW in comments.
11358 * main.c (captured_main): Delete #ifdef MPW.
11359
05d57f6f
AC
113602003-02-04 Andrew Cagney <ac131313@redhat.com>
11361
8ffd9b1b 11362 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11363 * monitor.c (monitor_expect): Obsolete reference to m32r.
11364 * configure.tgt: Mark m32r-*-elf* as obsolete.
11365 * MAINTAINERS: Mark m32k as obsolete.
11366 * m32r-rom.c: Obsolete file.
11367 * config/m32r/m32r.mt: Obsolete file.
11368 * config/m32r/tm-m32r.h: Obsolete file.
11369 * m32r-stub.c: Obsolete file.
11370 * m32r-tdep.c: Obsolete file.
11371
8b0e5691
AC
113722003-02-04 Andrew Cagney <ac131313@redhat.com>
11373
11374 * NEWS: Mention that the z8k-zilog-none is obsolete.
11375 * MAINTAINERS: Mark z8k as obsolete.
11376 * configure.tgt: Obsolete the z8k-*-coff* target.
11377 * config/z8k/z8k.mt: Obsolete file.
11378 * config/z8k/tm-z8k.h: Obsolete file.
11379 * z8k-tdep.c: Obsolete file.
11380
67f16606
AC
113812003-02-04 Andrew Cagney <ac131313@redhat.com>
11382
11383 * NEWS: Mention that the mn10200-elf is obsolete.
11384 * configure.tgt: Obsolete mn10200-*-* target.
11385 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11386 mention that the mn10200 is obsolete.
11387 * breakpoint.h: Ditto.
11388 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11389 * config/mn10200/mn10200.mt: Obsolete file.
11390 * config/mn10200/tm-mn10200.h: Obsolete file.
11391 * mn10200-tdep.c: Obsolete file.
11392
fd2299bd
AC
113932003-02-04 Andrew Cagney <ac131313@redhat.com>
11394
11395 * MAINTAINERS: Mark h8500 as obsolete.
11396 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11397 * findvar.c (value_from_register): Ditto.
11398 * h8500-tdep.c: Mark file as obsolete.
11399 * config/h8500/h8500.mt: Ditto.
11400 * config/h8500/tm-h8500.h: Ditto.
11401 * NEWS: Mention that h8500 is obsolete.
11402
eb9a305d
DC
114032003-02-04 David Carlton <carlton@math.stanford.edu>
11404
11405 * objfiles.c (allocate_objfile): Always set name. Add comment at
11406 start of function.
11407 * jv-lang.c (get_dynamics_objfile): Add comment.
11408
406fc7fb
DC
114092003-02-04 David Carlton <carlton@math.stanford.edu>
11410
11411 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11412 * printcmd.c (build_address_symbolic): Replace uses of
11413 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11414 SYMBOL_NAME, and asm_demangle.
11415 Update copyright.
11416
93d91629
DC
114172003-02-04 David Carlton <carlton@math.stanford.edu>
11418
11419 * linespec.c (decode_compound): Extract code into
11420 lookup_prefix_sym.
11421 (lookup_prefix_sym): New function.
11422
1c5cb38e
DC
114232003-02-04 David Carlton <carlton@math.stanford.edu>
11424
11425 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11426 FLOAT_COERCION_BADNESS.
11427 * gdbtypes.c (rank_one_type): Replace all uses of
11428 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11429
0cf824c9
JB
114302003-02-04 Jim Blandy <jimb@redhat.com>
11431
11432 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11433 section, let dwarf_macinfo_section point to it, not
11434 dwarf_loc_section.
11435
a2d356b0
DJ
114362003-02-04 Daniel Jacobowitz <drow@mvista.com>
11437
11438 Pointed out by Anton Blanchard <anton@samba.org>.
11439 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11440 (ppc_linux_at_sigtramp_return_path): Use it.
11441
2de7ced7
DJ
114422003-02-04 Daniel Jacobowitz <drow@mvista.com>
11443
11444 * defs.h (streq): Add prototype.
11445 * utils.c (streq): New function.
11446
11447 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11448 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11449 * mdebugread.c (new_symbol): Likewise.
11450 * stabsread.c (define_symbol): Likewise.
11451 * coffread.c (process_coff_symbol): Likewise.
11452 * dwarfread.c (new_symbol): Likewise.
11453
11454 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11455 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11456 here.
11457 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11458 SYMBOL_INIT_DEMANGLED_NAME.
11459 * objfiles.c: Include "hashtab.h".
11460 (allocate_objfile): Call htab_set_functions_ex for the
11461 demangled_names_hash.
11462 (free_objfile): Call htab_delete for the demangled_names_hash.
11463 * objfiles.h (struct htab): Add declaration.
11464 (struct objfile): Add demangled_names_hash.
11465 * symfile.c: Include "hashtab.h".
11466 (reread_symbols): Call htab_delete for the demangled_names_hash.
11467 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11468 SYMBOL_NAME in the bcache.
11469 * symtab.c: Include "hashtab.h". Update comments.
11470 (create_demangled_names_hash, symbol_set_names): New functions.
11471 (symbol_find_demangled_name): New function, broken out from
11472 symbol_init_demangled_names.
11473 (symbol_init_demangled_names): Use it.
11474 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11475 (SYMBOL_SET_NAMES): New macro.
11476 (symbol_set_names): Add prototype.
11477
15831452
JB
114782003-02-03 Jim Blandy <jimb@redhat.com>
11479
11480 Use a single, consistent representation for an empty minimal
11481 symbol table in an objfile.
11482 * objfiles.c (terminate_minimal_symbol_table): New function.
11483 (allocate_objfile): Call it.
11484 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11485 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11486 non-NULL.
15831452
JB
11487 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11488 objfile has minimal symbols, compare minimal_symbol_count to zero,
11489 instead of comparing msymbols with NULL.
11490 * objfiles.c (have_minimal_symbols): Same.
11491 * solib-sunos.c (solib_add_common_symbols): Call
11492 terminate_minimal_symbol_table.
11493 * symfile.c (reread_symbols): Same.
8ffd9b1b 11494
ffc65945
KB
114952003-02-03 Kevin Buettner <kevinb@redhat.com>
11496
11497 * s390-tdep.c (s390_address_class_type_flags)
11498 (s390_address_class_type_flags_to_name)
11499 (s390_address_class_name_to_type_flags): New functions.
11500 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11501 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11502
f211c6d4
MS
115032003-02-03 Michael Snyder <msnyder@redhat.com>
11504
11505 * arm-tdep.c: Fix spell-o in comment.
11506
659b0389
ML
115072003-02-03 Michal Ludvig <mludvig@suse.cz>
11508
11509 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11510 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11511 error messages to contain BFD filename.
659b0389 11512
3b31d625
EZ
115132003-02-02 Elena Zannoni <ezannoni@redhat.com>
11514
997b089a 11515 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11516 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11517 (do_mixed_source_and_assembly): Use
11518 make_cleanup_ui_out_tuple_begin_end and
11519 make_cleanup_ui_out_tuple_begin_end.
11520 (do_mixed_source_and_assembly): Ditto.
11521 * thread.c (do_captured_list_thread_ids): Ditto.
11522 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11523 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11524 ui_out_tuple_end): Delete prototypes.
11525 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11526 ui_out_list_end, ui_out_tuple_end): Delete.
11527
11528 From Kevin Buettner <kevinb@redhat.com>:
11529 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11530 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11531 (do_cleanup_table_end): New functions.
11532 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11533 Use cleanups to invoke_ui_out_tuple_end().
11534 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11535 * cli/cli-setshow.c (cmd_show_list): Use
11536 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11537
5b181d62
AC
115382003-02-02 Andrew Cagney <ac131313@redhat.com>
11539
11540 * frame.c (frame_unwind_register): New function.
11541 (frame_unwind_unsigned_register): Use.
11542 (frame_unwind_signed_register): Use.
11543 (frame_read_register): New function.
11544 * frame.h (frame_unwind_register): Declare.
11545 (frame_read_register): Declare.
11546
11547 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11548 and frame_unwind_register instead of read_memory, write_register
11549 and deprecated_write_register_bytes.
11550
5f601589
AC
115512003-02-02 Andrew Cagney <ac131313@redhat.com>
11552
11553 * frame.h: Note that namelen can be negative.
11554 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11555 NAME's length.
11556
11557 * NEWS: Mention that the d10v's `regs' command is deprecated.
11558 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11559 (d10v_print_registers_info): New function.
11560 (show_regs): Call d10v_print_registers_info.
11561 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11562
6a3fe0a4
MK
115632003-02-02 Mark Kettenis <kettenis@gnu.org>
11564
11565 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11566 lost in the previous patch.
11567
075559bc
AC
115682003-02-01 Andrew Cagney <ac131313@redhat.com>
11569
11570 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11571 * stack.c (print_frame_info_base): Output complete FRAME tuple
11572 for synthesized frames.
075559bc 11573
6789195b
AC
115742003-02-02 Andrew Cagney <ac131313@redhat.com>
11575
11576 * mips-nat.c (zerobuf): Delete.
11577 (fetch_inferior_registers): Alloc local zerobuf.
11578 (fetch_core_registers): Alloc local zerobuf.
11579 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11580 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11581 * thread-db.c (thread_db_store_registers): Ditto.
11582 * sh-tdep.c (sh_do_register): Ditto.
11583 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11584 * remote-sim.c (gdbsim_store_register): Ditto.
11585 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11586 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11587 * monitor.c (monitor_supply_register): Ditto.
11588 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11589 * mips-nat.c (fetch_inferior_registers): Ditto.
11590 * m68klinux-nat.c (fetch_register): Ditto.
11591 * lynx-nat.c (fetch_inferior_registers): Ditto.
11592 (fetch_inferior_registers): Ditto.
11593 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11594 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11595 (hpux_thread_store_registers): Ditto.
11596 * hppah-nat.c (fetch_register): Ditto.
11597 * hppab-nat.c (fetch_register): Ditto.
11598 * hppa-tdep.c (pa_register_look_aside): Ditto.
11599 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11600 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11601
e669114a
AC
116022003-02-01 Andrew Cagney <ac131313@redhat.com>
11603
11604 * gdbarch.sh: Explictly specify all method levels. When a
11605 variable with an empty level, provide a non-multi-arch default.
11606 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11607 * gdbarch.h: Re-generate.
11608 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11609 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11610
9a043c1d
AC
116112003-02-01 Andrew Cagney <ac131313@redhat.com>
11612
11613 * defs.h (host_pointer_to_address): Delete declaration.
11614 (address_to_host_pointer): Delete declaration.
11615 * utils.c (host_pointer_to_address): Delete function.
11616 (address_to_host_pointer): Delete function.
11617 * procfs.c (procfs_address_to_host_pointer): New function.
11618 * procfs.c (proc_set_watchpoint): Use.
11619 (procfs_can_use_hw_breakpoint): Update comments.
11620 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11621 (som_solib_add): Use.
11622 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11623 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11624
7ca9f392
AC
116252003-02-01 Andrew Cagney <ac131313@redhat.com>
11626
94bbfd30
AC
11627 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11628 strlen d_name.
11629
7ca9f392
AC
11630 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11631 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11632 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11633 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11634 (define_symbol): Update.
11635 * symfile.c (generic_load): Remove references to nindy.
11636 * symtab.c: Remove references to nindy.
11637
31a85ea2
AC
116382003-02-01 Andrew Cagney <ac131313@redhat.com>
11639
11640 * infcmd.c (print_float_info): Delete code conditional on
11641 FLOAT_INFO.
11642 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11643 * config/m68k/nm-apollo68b.h: Ditto.
11644 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11645 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11646 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11647
f6e85fc8
MK
116482003-02-01 Mark Kettenis <kettenis@gnu.org>
11649
6015b6a0
MK
11650 * config/i386/tm-i386os9k.h: Removed.
11651
f7a30bdf
MK
11652 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11653 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11654 they're identical to i[3456]86-*-sysv* now.
11655 * config/i386/i386v32.mh: Removed.
11656 * config/i386/xm-i386v32.h: Removed.
11657 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11658
28d52111
MK
11659 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11660
4d3f6bce
MK
11661 * config/i386/i386dgux.mh: Removed.
11662 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11663
f6e85fc8
MK
11664 * configure.in: Fix typo.
11665 * configure: Regenerated.
11666
53955967
DC
116672003-01-31 David Carlton <carlton@math.stanford.edu>
11668
11669 * dwarf2read.c (dwarf2_locate_sections): Set
11670 dwarf_ranges_section.
11671
b1364885
AC
116722003-01-31 Andrew Cagney <ac131313@redhat.com>
11673
8dbb1c65
AC
11674 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11675 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11676
8731e58e
AC
11677 * utils.c: Re-indent.
11678
b1364885
AC
11679 * config/djgpp/fnchange.lst: Delete nindy files.
11680 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11681 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11682 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11683 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11684 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11685 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11686 * Makefile.in (init.c): Remove nindy references.
11687 (saber_gdb): Delete rule.
11688 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11689 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11690 and a68v-nat.c.
11691 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11692 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11693 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11694 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11695 nindy-share/stop.h.
11696 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11697 * saber.suppress: Delete file.
11698
086df311
DJ
116992003-01-31 Daniel Jacobowitz <drow@mvista.com>
11700
11701 * dbxread.c (stabs_data): New static variable.
11702 (fill_symbuf): Support an in-memory buffer for stabs data.
11703 (stabs_seek): New function.
11704 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11705 (read_ofile_symtab): Use stabs_seek.
11706 (elfstab_build_psymtabs): Take an asection* instead of
11707 an offset and size. Relocate the stabs data if necessary.
11708 Save the section* for dbx_psymtab_to_symtab.
11709 * dwarf2read.c: Add section variables for each debug section.
11710 (dwarf2_locate_sections): Fill them in.
11711 (dwarf2_read_section): Take an asection* argument.
11712 Relocate the section contents if necessary.
11713 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11714 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11715 it to dwarf2_read_section.
11716 (dwarf2_build_frame_info): Update callers.
11717 * elfread.c (elf_symfile_read): Update call to
11718 elfstab_build_psymtabs.
11719 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11720 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11721 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11722 * symfile.c (symfile_dummy_outputs): New function.
11723 (symfile_relocate_debug_section): New function.
11724 * symfile.h (symfile_relocate_debug_section): Add prototype.
11725
87d1b352
RH
117262003-01-31 Richard Henderson <rth@redhat.com>
11727
11728 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11729 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11730 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11731 * alpha-tdep.c (alpha_register_name): Add "unique".
11732 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11733 (ALPHA_UNIQUE_REGNUM): New.
11734 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11735
c48861fb
AC
117362003-01-31 Andrew Cagney <ac131313@redhat.com>
11737
11738 * README: Remove reference to Ericsson 1800 monitor.
11739 * Makefile.in (remote-es.o): Delete rule.
11740 (ALLDEPFILES): Delete remote-es.c.
11741 * remote-es.c: Delete file.
11742 * config/m68k/es1800.mt: Delete file.
11743 * config/djgpp/fnchange.lst: Update.
11744 * configure.tgt: Delete m68*-ericsson-* target.
11745
d764a824
AF
117462003-01-31 Adam Fedor <fedor@gnu.org>
11747
11748 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11749 Remove duplicate/shadowing variable of same name.
11750
fe36c4f4
JB
117512003-01-30 Jim Blandy <jimb@redhat.com>
11752
11753 * symfile.c (find_separate_debug_file): Assert that the objfile's
11754 directory name we compute ends with a slash, and then assume that
11755 that's so everywhere we use it.
11756
cb741690
DJ
117572003-01-30 Daniel Jacobowitz <drow@mvista.com>
11758
11759 * valops.c (value_assign): Flush frame cache after stores to memory
11760 also.
11761
96ee5227
AC
117622003-01-30 Andrew Cagney <ac131313@redhat.com>
11763
11764 * Makefile.in (mon960-rom.o): Delete rule.
11765 * mon960-rom.c: Delete file.
11766
7f6104a9
AC
117672003-01-30 Andrew Cagney <ac131313@redhat.com>
11768
11769 * d10v-tdep.c: Include "frame-unwind.h".
11770 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11771 list.
11772 (next_addr, uses_frame): Delete.
11773 (struct d10v_unwind_cache): Define.
11774 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11775 Use info instead of next_addr and uses_frame globals.
11776 (d10v_frame_init_saved_regs): Delete function.
11777 (d10v_init_extra_frame_info): Delete function.
11778 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11779 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11780 init_frame_pc or frame_saved_pc.
11781 (d10v_pop_frame): Delete function.
11782 (do_d10v_pop_frame): Delete function.
11783 (d10v_frame_chain): Delete function.
11784 (d10v_frame_chain_valid): Delete function.
11785 (d10v_frame_pc_unwind): New function.
11786 (d10v_frame_id_unwind): New function.
11787 (saved_regs_unwinder): New function.
11788 (d10v_frame_register_unwind): New function.
11789 (d10v_frame_pop): New function.
11790 (d10v_frame_unwind): New variable.
11791 (d10v_frame_p): New function.
11792 (d10v_frame_saved_pc): Delete function.
11793 * Makefile.in (d10v-tdep.o): Update dependencies.
11794
cad2e848
JB
117952003-01-30 J. Brobecker <brobecker@gnat.com>
11796
11797 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11798 causing some regressions due to a change in the default value
11799 for this macro.
11800
af34e669
DJ
118012003-01-29 Richard Henderson <rth@redhat.com>
11802 Elena Zannoni <ezannoni@redhat.com>
11803 Daniel Jacobowitz <drow@mvista.com>
11804
11805 Fix PR gdb/961.
8ffd9b1b 11806 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11807 variables.
11808 (RANGES_SECTION): New.
11809 (dwarf_ranges_buffer): New variable.
11810 (struct comp_unit_head): Add member "die".
11811 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11812 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11813 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11814 (dwarf2_locate_sections): Likewise.
11815 (dwarf2_build_psymtabs): Read .debug_ranges.
11816 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11817 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11818 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11819 Look for DW_AT_ranges and return the bounding box.
11820
baa93fa6
CF
118212003-01-29 Brian Ford <ford@vss.fsi.com>
11822
11823 * win32-nat.c (cygwin_pid): Removed as unused.
11824 (child_attach): Try fall back to Cygwin pid.
11825
c63f977f
JB
118262003-01-29 Jim Blandy <jimb@redhat.com>
11827
11828 * objfiles.h (struct objfile): Doc fix.
11829
d62d1979
AC
118302003-01-29 Andrew Cagney <ac131313@redhat.com>
11831
11832 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11833 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11834 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11835 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11836 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11837 (FRAME_SAVED_PC): Change to a function with predicate.
11838 * gdbarch.h, gdbarch.c: Re-generate.
11839
1ae18a04
AC
118402003-01-28 Andrew Cagney <ac131313@redhat.com>
11841
52287340
AC
11842 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11843
1ae18a04
AC
11844 * complaints.c (complain): Delete function.
11845 * complaints.h (struct deprecated_complaint): Delete definition.
11846 (complain): Delete declaration.
11847
f2c16bd6
KB
118482003-01-28 Kevin Buettner <kevinb@redhat.com>
11849
11850 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11851 dummy frames.
11852
a94dd1fd
AC
118532003-01-27 Andrew Cagney <ac131313@redhat.com>
11854
11855 * sentinel-frame.h, sentinel-frame.c: New files.
11856 * Makefile.in (frame.o): Update dependencies.
11857 (SFILES): Add sentinel-frame.c.
11858 (sentinel_frame_h): Define.
11859 (COMMON_OBS): Add sentinel-frame.o.
11860 (sentinel-frame.o): Specify dependencies.
11861 * frame.c: Include "sentinel-frame.h".
11862 (frame_register_unwind): Rewrite assuming that there is always a a
11863 ->next frame.
11864 (frame_register, generic_unwind_get_saved_register): Ditto.
11865 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11866 (create_sentinel_frame, unwind_to_current_frame): New functions.
11867 (get_current_frame): Rewrite using create_sentinel_frame and
11868 unwind_to_current_frame. When possible, always create a frame.
11869 (create_new_frame): Set next to the sentinel frame.
11870 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11871 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11872 ID cache when necessary.
11873 (frame_saved_regs_id_unwind): Use frame_relative_level.
11874 (deprecated_generic_get_saved_register): Use frame_relative_level,
11875 get_frame_saved_regs, get_frame_pc, get_frame_base and
11876 get_next_frame.
11877 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11878 frame_register.
11879
5378adc4
DJ
118802003-01-27 Daniel Jacobowitz <drow@mvista.com>
11881
11882 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11883
51ee2ddc
DJ
118842003-01-27 Daniel Jacobowitz <drow@mvista.com>
11885
11886 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11887 (maintenance_set_profile_cmd): Use error () instead of warning ().
11888
d9feb4e7
DJ
118892003-01-27 Daniel Jacobowitz <drow@mvista.com>
11890
11891 * configure.in: Check that -pg works if using --enable-profiling.
11892 Check for monstartup and _mcleanup regardless of --enable-profiling.
11893 * maint.c: Check for monstartup and _mcleanup before using them.
11894 * config.in: Regenerated.
11895 * configure: Regenerated.
11896
2d188dd3
NC
118972003-01-24 Nick Clifton <nickc@redhat.com>
11898
11899 * Add sh2e support:
11900
11901 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11902
11903 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11904 (sh2e_show_regs): New.
11905 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11906 * config/sh/tm-sh.h: Added sh2e to comments.
11907
cb3c37b2
JB
119082003-01-23 Jim Blandy <jimb@redhat.com>
11909
11910 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11911 symbols found)" message here; we haven't checked for a separate
11912 debug info file yet, so we don't know yet.
11913 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11914 we've looked everywhere. Also, there's no need to print a special
11915 message when we're loading the separate debug info file: the one
11916 symbol_file_add prints is fine.
11917
5b5d99cf
JB
119182003-01-23 Alexander Larsson <alexl@redhat.com>
11919 Jim Blandy <jimb@redhat.com>
11920
11921 Add support for executables whose debug info has been separated
11922 out into a separate file, leaving only a link behind.
11923 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11924 and separate_debug_objfile_backlink.
11925 (put_objfile_before): New declaration.
11926 * symfile.c: #include "filenames.h".
11927 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11928 debug info in a separate file, read that, too. Save the addrs
11929 argument, so we can use it again to read the separated debug info;
11930 syms_from_objfile modifies the table we pass it.
11931 (reread_symbols): After re-reading an objfile, call
11932 reread_separate_symbols to refresh its separate debug info
11933 objfile, if it has one.
11934 (reread_separate_symbols, find_separate_debug_file,
11935 get_debug_link_info, separate_debug_file_exists): New functions.
11936 (debug_file_directory): New global var.
11937 (_initialize_symfile): Initialize debug_file_directory, and
11938 provide the new `set debug-file-directory' command to let the user
11939 change it.
11940 * objfiles.c (free_objfile): If this objfile has its debug info in
11941 a separate objfile, free that one too. If this is itself a
11942 separate debug info objfile, clear our parent's backlink.
11943 (put_objfile_before): New function.
11944 * utils.c (gnu_debuglink_crc32): New function.
11945 * defs.h (gnu_debuglink_crc32): New declaration.
11946 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11947 * configure.in: Handle --with-separate-debug-dir config option.
11948 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11949 * acconfig.h (DEBUGDIR): New macro.
11950 * configure, aclocal.m4, config.in: Regenerated.
11951
7e8580c1
JB
119522003-01-22 Jim Blandy <jimb@redhat.com>
11953
7904e09f
JB
11954 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11955 like the old symbol_file_add, but taking new arguments: you can
11956 now pass in either a `struct section_addr_info' list to say where
11957 each section is loaded, or a `struct section_offsets' table. Pass
11958 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11959 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11960 with the appropriate quiescent values for the new arguments.
11961
7e8580c1
JB
11962 * symfile.c: #include "gdb_assert.h".
11963 (syms_from_objfile): Add the ability to pass in a section offset
11964 table directly, as an alternative to the section_addr_info table.
11965 Document arguments better.
11966 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11967 * symfile.h (syms_from_objfile): Update declaration.
11968 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11969 syms_from_objfile.
11970 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11971
d28f9cdf
DJ
119722003-01-22 Daniel Jacobowitz <drow@mvista.com>
11973
11974 Original patch by Tom Tromey <tromey@cygnus.com> and
11975 Jason Molenda <jmolenda@apple.com>.
11976 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11977 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11978 * NEWS: Mention profiling.
11979 * configure.in (--enable-gdbtk): Fix typo.
11980 (--enable-profiling): New. Set PROFILE_CFLAGS.
11981 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11982 Fill in function.
11983 (profiling_state): New variable.
11984 (mcleanup_wrapper): New function.
11985 (_initialize_maint): Remove NOTYET, fix call to
11986 add_setshow_boolean_cmd for "maint set profile".
11987 * configure: Regenerated.
11988
df21e465
MH
119892003-01-21 Martin M. Hunt <hunt@redhat.com>
11990
11991 * Makefile.in (install-gdbtk): Install PNG images too.
11992
73c1f219
AC
119932003-01-21 Andrew Cagney <ac131313@redhat.com>
11994
11995 * exec.c (text_start): Delete global variable.
11996 (exec_file_attach): Make text_start local to the function.
11997 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11998 * valops.c (hand_function_call): Delete code that handles
11999 BEFORE_TEXT_END and AFTER_TEXT_END.
12000 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12001 of CALL_DUMMY_LOCATION.
12002 * gdbarch.c: Regenerate.
12003 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12004 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12005 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12006 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12007 (text_end): Delete extern declaration.
12008
eb4f72c5
AC
120092003-01-21 Andrew Cagney <ac131313@redhat.com>
12010
12011 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12012 * blockframe.c (backtrace_below_main): Move to "frame.c".
12013 (frame_chain_valid): Delete check for backtrace_below_main.
12014 (_initialize_blockframe): Delete initialization, move ``set
12015 backtrace-below-main'' command to "frame.c".
12016 (do_flush_frames_sfunc): Delete function.
12017 * frame.c: Include "command.h" and "gdbcmd.h".
12018 (frame_type_from_pc): New function.
12019 (create_new_frame): Use frame_type_from_pc.
12020 (legacy_get_prev_frame): New function.
12021 (get_prev_frame): Rewrite. When an old style frame, call
12022 legacy_get_prev_frame. Otherwize, unwind the PC first.
12023 (_initialize_frame): Add ``set backtrace-below-main'' command.
12024 * Makefile.in (frame.o): Update dependencies.
12025
778ce8cc
AC
120262003-01-19 Andrew Cagney <ac131313@redhat.com>
12027
12028 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12029 DEPRECATED_REGISTERS_INFO.
12030
01c193c8
AC
120312003-01-19 Andrew Cagney <ac131313@redhat.com>
12032
12033 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12034 Maintainers'. Update `Various Maintainers'.
12035
dedc2a2b
AC
120362003-01-19 Andrew Cagney <ac131313@redhat.com>
12037
12038 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12039 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12040 Suppress actual parameters when `-'.
12041 * gdbarch.h, gdbarch.c: Regenerate.
12042
b7261c70
AC
120432003-01-19 Andrew Cagney <ac131313@redhat.com>
12044
12045 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12046 code handling dummy frames.
12047
dbe9fe58
AC
120482003-01-19 Andrew Cagney <ac131313@redhat.com>
12049
12050 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12051 (struct frame_unwind): Add field pop.
12052 * frame.h (frame_pop): Declare.
12053 * frame.c (frame_saved_regs_pop): New function.
12054 (trad_frame_unwinder): Add frame_saved_regs_pop.
12055 (frame_pop): New function.
12056 * dummy-frame.c (dummy_frame_pop): New function.
12057 (discard_innermost_dummy): New function.
12058 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12059 (dummy_frame_unwind): Add dummy_frame_pop.
12060 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12061 * valops.c (hand_function_call): Ditto.
12062 * stack.c (return_command): Ditto.
12063
570b8f7c
AC
120642003-01-18 Andrew Cagney <ac131313@redhat.com>
12065
12066 * cris-tdep.c: Fix function declaration indentation.
12067 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12068 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12069 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12070 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12071 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12072 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12073
120742003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
12075
12076 * README (Unpacking and Installation -- quick overview):
12077 Warn against ".../gdb-5.3/gdb/configure".
12078
494cca16
AC
120792003-01-18 Andrew Cagney <ac131313@redhat.com>
12080
12081 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12082 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12083 (struct frame_unwind): Declare opaque.
12084 (dummy_frame_p): Declare function.
12085 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12086 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12087 * dummy-frame.c: Include "frame-unwind.h".
12088 (dummy_frame_p): New function.
12089 (dummy_frame_unwind): New variable.
12090 * frame.c: Include "frame-unwind.h".
12091 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12092 to use the new unwind field.
12093 (set_unwind_by_pc): Delete function.
12094 (create_new_frame, get_prev_frame): Set unwind field using
12095 frame_unwind_find_by_pc.
12096 (trad_frame_unwind, trad_frame_unwinder): New variables.
12097 * frame.h (trad_frame_unwind): Declare variable.
12098 (frame_id_unwind_ftype): Delete declaration.
12099 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12100 (struct frame_unwind): Declare opaque.
12101 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12102 register_unwind with a single unwind pointer.
12103 * frame-unwind.h, frame-unwind.c: New files.
12104 * Makefile.in (SFILES): Add frame-unwind.c.
12105 (frame_unwind_h): Define.
12106 (COMMON_OBS): Add frame-unwind.o.
12107 (frame-unwind.o): Specify dependencies.
12108 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 12109
4efb68b1
AC
121102003-01-18 Andrew Cagney <ac131313@redhat.com>
12111
12112 * ada-valprint.c: Eliminate PTR.
12113 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12114 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12115 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12116 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12117 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12118 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12119 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 12120
a84d24ee
AC
121212003-01-17 Andrew Cagney <ac131313@redhat.com>
12122
762f08a3
AC
12123 * main.c (captured_main): Don't use PTR.
12124 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12125 * gdbtypes.c (lookup_primitive_typename): Ditto.
12126 (lookup_struct_elt_type): Ditto.
12127 * f-valprint.c (info_common_command): Ditto.
12128 (list_all_visible_commons): Ditto.
12129 * jv-typeprint.c (java_type_print_base): Ditto.
12130
a84d24ee
AC
12131 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12132 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12133 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12134 i386-interix-nat.c and i386-interix-tdep.c. Rename
12135 m68klinux-nat.c and m68klinux-tdep.c. Rename
12136 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12137 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12138 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12139 * main.c (captured_main): Use xfree, not free.
12140
c170fb60
AC
121412003-01-16 Andrew Cagney <ac131313@redhat.com>
12142
12143 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12144 ID back using a parameter.
12145 * frame.c (frame_id_unwind): Update call.
12146 (frame_saved_regs_id_unwind): Update.
12147 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12148 * dummy-frame.h (struct frame_id): Add opaque declaration.
12149 (dummy_frame_id_unwind): Update declaration.
12150
867f3898
AC
121512003-01-15 Andrew Cagney <ac131313@redhat.com>
12152
12153 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12154
40622be8 121552003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 12156
40622be8 12157 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 12158
ae66c1fc
EZ
121592003-01-14 Elena Zannoni <ezannoni@redhat.com>
12160
997b089a 12161 Fix PR gdb/898
ae66c1fc
EZ
12162 * breakpoint.c (until_break_command): Add new argument. Use it to
12163 decide whether to stop only at the current frame or not.
12164 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 12165 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
12166 call.
12167 (advance_command): New function.
12168 (_initialize_infcmd): Update help string for 'until' command.
12169 Add new 'advance' command.
12170
a04257e6
DC
121712003-01-14 David Carlton <carlton@math.stanford.edu>
12172
12173 * linespec.c (decode_line_1): Normalize comments.
12174 (set_flags): Ditto.
12175 (locate_first_half): Ditto.
12176 (decode_compound): Ditto.
12177 (symtab_from_filename): Ditto.
12178 (decode_all_digits): Ditto.
12179 (decode_dollar): Ditto.
12180 (find_methods): Ditto.
12181 (find_toplevel_char): Ditto.
12182
1bac305b
AC
121832003-01-13 Andrew Cagney <ac131313@redhat.com>
12184
12185 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12186 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12187 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12188 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12189 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12190 * language.c, language.h, m32r-tdep.c: Update copyright.
12191 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12192 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12193 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12194 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12195 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12196 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12197
25caa7a8
EZ
121982003-01-13 Elena Zannoni <ezannoni@redhat.com>
12199
12200 * stabsread.h (process_later, resolve_cfront_continuation):
12201 Obsolete.
12202 Update copyright years.
12203 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12204 Update copyright year.
12205 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 12206 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
12207 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12208 Update copyright year.
12209 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12210 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12211 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12212 (parse_partial_symbols): Obsolete cfront support.
12213 * stabsread.c
12214 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12215 macros.
12216 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12217 read_cfront_baseclasses, read_cfront_member_functions,
12218 resolve_cfront_continuation,read_cfront_static_fields,
12219 copy_cfront_struct_fields): Obsolete functions.
12220 (define_symbol, read_one_struct_field): Obsolete cfront support.
12221 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12222 Update Copyright year.
12223
7789c6f5
EZ
122242003-01-13 Elena Zannoni <ezannoni@redhat.com>
12225
12226 * stack.c (print_frame_info, print_stack_frame_base_stub,
12227 print_stack_frame_base, show_and_print_stack_frame_stub,
12228 show_and_print_stack_frame, print_only_stack_frame_stub,
12229 print_only_stack_frame): Delete functions.
12230 (print_stack_frame_stub): Call print_frame_info instead of
12231 print_frame_info_base.
12232 (print_frame_info_base): Rename to print_frame_info.
12233 (backtrace_command_1): Call print_frame_info, instead of
12234 print_frame_info_base.
12235 (current_frame_command): Call print_stack_frame, instead of
12236 print_only_stack_frame.
12237 (frame_command): Call print_stack_frame, instead of
12238 show_and_print_stack_frame.
12239 (up_command): Ditto.
12240 (down_command): Ditto.
12241 * frame.h (print_only_stack_frame): Delete prototype.
12242 * infrun.c (normal_stop): Call print_stack_frame, instead of
12243 show_and_print_stack_frame.
12244 * thread.c (info_threads_command): Call print_stack_frame, instead
12245 of print_only_stack_frame.
12246
3f5a3016
AC
122472003-01-13 Andrew Cagney <ac131313@redhat.com>
12248
d99ba314
AC
12249 * README (Graphical interface to GDB): Update URL. Point at
12250 gdb/links/.
12251
3f5a3016
AC
12252 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12253 version match.
12254
083ae935
DJ
122552003-01-13 Daniel Jacobowitz <drow@mvista.com>
12256
12257 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12258 lines.
12259
5365276c
DJ
122602003-01-13 Daniel Jacobowitz <drow@mvista.com>
12261
12262 * thread-db.c (attach_thread): Prototype.
12263 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12264 thread information (ti), and valid flags (th_valid, ti_valid).
12265 (attach_thread): Move target_pid_to_str call to after the thread
12266 is added to GDB's list. Initialize the cache.
12267 (thread_get_info_callback, thread_db_map_id2thr)
12268 (thread_db_get_info): New functions.
12269 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12270 (thread_db_store_registers, thread_db_thread_alive)
12271 (thread_db_get_thread_local_address): Use them.
12272 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12273 of calling error() for threads in unknown state.
12274
12275 (clear_lwpid_callback): New function.
12276 (thread_db_resume): Use it to clear the cache.
12277
9fc30b6b
DJ
122782003-01-13 Daniel Jacobowitz <drow@mvista.com>
12279
12280 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12281 (resume_callback): Remove dead code.
12282
8f871025
AC
122832003-01-13 Andrew Cagney <ac131313@redhat.com>
12284
12285 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12286 predicate.
12287 * gdbarch.h, gdbarch.c: Regenerate.
12288 * stack.c (frame_info): Only initialize the saved registers when
12289 FRAME_INIT_SAVED_REGS_P.
12290 * frame.c (frame_saved_regs_register_unwind): Assert
12291 FRAME_INIT_SAVED_REGS_P.
12292 (deprecated_generic_get_saved_register): Ditto.
12293
3f565f1e
DJ
122942003-01-13 Daniel Jacobowitz <drow@mvista.com>
12295
12296 * source.c (openp): Squelch warning about "filename".
12297
072b1022
DJ
122982003-01-13 Daniel Jacobowitz <drow@mvista.com>
12299
12300 * source.c (openp): If the file does not exist don't necessarily
12301 search the path.
12302
973ccf8b
DJ
123032003-01-13 Daniel Jacobowitz <drow@mvista.com>
12304
12305 Fix PR gdb/872.
12306 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12307 (integer_types_same_name_p): New function.
12308 (rank_one_type): Use it.
12309 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12310
030292b7
DJ
123112003-01-13 Daniel Jacobowitz <drow@mvista.com>
12312
12313 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12314 variables.
12315 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12316 * configure.in: Add --with-sysroot.
12317 * configure: Regenerated.
12318 * main.c (gdb_sysroot): New variable.
12319 (captured_main): Initialize gdb_sysroot.
12320 * defs.h (gdb_sysroot): New extern declaration.
12321 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12322
afb5d334
MC
123232003-01-12 Michael Chastain <mec@shout.net>
12324
12325 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12326
751ceeb4
MC
123272003-01-12 Michael Chastain <mec@shout.net>
12328
12329 * top.c (print_gdb_version): Bump copyright year to 2003.
12330
94cd26f8
DC
123312003-01-12 David Carlton <carlton@bactrian.org>
12332
12333 * linespec.c (symtab_from_filename): Rename variable 's' to
12334 'file_symtab'.
12335
1ce79225
AC
123362003-01-12 Andrew Cagney <ac131313@redhat.com>
12337
12338 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12339 dummy frame.
12340 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12341
fa1fd571
AC
123422003-01-12 Andrew Cagney <ac131313@redhat.com>
12343
12344 * d10v-tdep.c: Include "gdb_assert.h".
12345 (d10v_store_return_value): Rewrite to match current interface.
12346 (d10v_extract_struct_value_address): Ditto.
12347 (d10v_extract_return_value): Ditto.
12348 (d10v_gdbarch_init): Set store_restore_value,
12349 extract_struct_value_address and extract_return_value.
12350
68b8d23e
JB
123512003-01-12 J. Brobecker <brobecker@gnat.com>
12352
12353 * hpread.c (set_namestring): New procedure replacing the
12354 SET_NAMESTRING macro.
12355 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12356 by calls to set_namestring.
12357
123582003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12359
12360 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12361 a compilation warning.
12362 (hpread_process_one_debug_symbol): Likewise.
12363
88d262ca
DC
123642003-01-10 David Carlton <carlton@math.stanford.edu>
12365
12366 * linespec.c (decode_line_1): Rename variable 's' to
12367 'file_symtab'.
12368 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12369 (decode_dollar): Ditto.
12370 (decode_variable): Ditto.
12371 (symbol_found): Ditto.
12372
86669319
MC
123732003-01-09 Michael Chastain <mec@shout.net>
12374
12375 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12376
616a9dc4
CV
123772003-01-07 Corinna Vinschen <vinschen@redhat.com>
12378
12379 * win32-nat.c (set_process_privilege): New function.
12380 (child_attach): Call set_process_privilege() to enable the
12381 SE_DEBUG_NAME user privilege if available in process token.
12382
3269bcfa
JB
123832003-01-10 J. Brobecker <brobecker@gnat.com>
12384
12385 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12386 compilation error in the previous revision.
12387
2b0ee454
DC
123882003-01-09 David Carlton <carlton@math.stanford.edu>
12389
12390 * linespec.c: Update copyright.
12391
b3ba1b44
DJ
123922003-01-09 Daniel Jacobowitz <drow@mvista.com>
12393
12394 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12395 than inferior_ptid.
12396 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12397
4ef3f3be
AC
123982003-01-09 Andrew Cagney <ac131313@redhat.com>
12399
479ab5a0
AC
12400 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12401 Update comments.
12402 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12403 (frame_saved_regs_zalloc): Update.
12404 (frame_saved_regs_register_unwind): Update.
12405 (create_new_frame): Update.
12406 (get_prev_frame): Update.
12407 (frame_extra_info_zalloc): Update.
12408 (deprecated_get_frame_saved_regs): Update.
12409 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12410 * cris-tdep.c: Update comment.
12411
bde58177
AC
12412 * somsolib.h: Fix function indentation.
12413 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12414 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12415 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12416 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12417 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12418
4ef3f3be
AC
12419 * infrun.c (follow_fork): Use ISO C definition.
12420 * expprint.c (print_subexp): Use xfree instead of free.
12421 * charset.c: Include "gdb_string.h" instead of <string.h>.
12422 (register_iconv_charsets): Use ISO C definition.
12423 (host_charset, target_charset): Ditto.
12424 * Makefile.in (charset.o): Update dependencies.
12425 (mi-cmd-env.o): Update dependencies.
12426
1c615f7a
AC
124272003-01-08 Andrew Cagney <cagney@redhat.com>
12428
12429 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12430 get_frame_base.
12431
c9a1dc08
AC
124322003-01-08 Andrew Cagney <ac131313@redhat.com>
12433
12434 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12435 build directories. Save edited gdb output in Mbuild.log. If a
12436 build fails, remove any final GDB executable.
12437
dbad9d94
AC
124382003-01-08 Andrew Cagney <ac131313@redhat.com>
12439
12440 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12441 replacing hex constants with function names and stripping leading
12442 file name directory prefixes.
12443
8d357cca
AC
124442003-01-08 Andrew Cagney <cagney@redhat.com>
12445
12446 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12447 get_frame_base.
12448
bca02a8a
DC
124492003-01-08 David Carlton <carlton@math.stanford.edu>
12450
12451 * linespec.c (decode_line_1): Move code into decode_variable.
12452 (decode_variable): New function.
12453
7f8ab3a0
AC
124542003-01-08 Andrew Cagney <ac131313@redhat.com>
12455
12456 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12457
7b5849cc
AC
124582003-01-08 Andrew Cagney <cagney@redhat.com>
12459
12460 * cris-tdep.c (cris_frame_init_saved_regs): Use
12461 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12462 saved_regs buffer.
12463 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12464 (sh64_nofp_frame_init_saved_regs): Ditto.
12465 (sh_fp_frame_init_saved_regs): Ditto.
12466 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12467 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12468 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12469 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12470
72a5efb3
DJ
124712003-01-08 Daniel Jacobowitz <drow@mvista.com>
12472
12473 * minsyms.c (lookup_minimal_symbol): Update comment.
12474 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12475 (lookup_minimal_symbol_solib_trampoline): Likewise.
12476
11c02a10
AC
124772003-01-08 Andrew Cagney <cagney@redhat.com>
12478
aab3ea25
AC
12479 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12480 frame_relative_level.
12481
da50a4b7
AC
12482 * alpha-tdep.c: Use get_frame_extra_info.
12483 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12484 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12485 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12486 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12487
11c02a10
AC
12488 * alpha-tdep.c: Use get_next_frame.
12489 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12490 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12491 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12492 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12493 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12494 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12495 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12496
1e2330ba
AC
124972003-01-07 Andrew Cagney <cagney@redhat.com>
12498
12499 * alpha-tdep.c: Use get_frame_base.
12500 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12501 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12502 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12503 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12504 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12505 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12506 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12507 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12508
2d75187b
AC
125092003-01-07 Andrew Cagney <cagney@redhat.com>
12510
12511 * frame.c (deprecated_get_frame_context): New function.
12512 (deprecated_set_frame_context): New function.
12513 * frame.h (deprecated_get_frame_context): Declare.
12514 (deprecated_set_frame_context): Declare.
12515 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12516 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12517
483d36b2
AC
125182003-01-07 Andrew Cagney <cagney@redhat.com>
12519
12520 * frame.c (deprecated_set_frame_next_hack): New function.
12521 (deprecated_set_frame_prev_hack): New function.
12522 * frame.h (deprecated_set_frame_next_hack): Declare.
12523 (deprecated_set_frame_prev_hack): Declare.
12524 * mcore-tdep.c (analyze_dummy_frame): Use
12525 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12526 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12527
14e91ac5
DC
125282003-01-07 David Carlton <carlton@math.stanford.edu>
12529
12530 * linespec.c (decode_line_1): Move code into decode_dollar.
12531 (decode_dollar): New function.
12532
b0c6b05c
AC
125332003-01-07 Andrew Cagney <cagney@redhat.com>
12534
12535 * arm-tdep.c (arm_init_extra_frame_info): Use
12536 deprecated_update_frame_base_hack.
12537 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12538 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12539 (fix_frame_pointer): Ditto.
12540 (mn10300_analyze_prologue): Ditto.
12541
a00a19e9
AC
125422003-01-07 Andrew Cagney <cagney@redhat.com>
12543
12544 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12545 extra_info using frame_extra_info_zalloc.
12546 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12547 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12548 (sh64_init_extra_frame_info): Ditto.
12549 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12550 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12551 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12552 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12553 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12554 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12555 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12556 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12557 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12558 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12559 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12560 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12561
12562 * mn10300-tdep.c (analyze_dummy_frame): Use
12563 deprecated_set_frame_extra_info_hack.
12564 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12565
1fb4c65b
JB
125662003-01-07 J. Brobecker <brobecker@gnat.com>
12567
12568 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12569 class is not scText. These do not define "real" procedures.
12570 (parse_partial_symbols): Likewise.
12571
9fe7d6bf
MS
125722003-01-06 Michael Snyder <msnyder@redhat.com>
12573
12574 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12575
f6c609c4
AC
125762003-01-06 Andrew Cagney <ac131313@redhat.com>
12577
12578 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12579 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12580 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12581 deprecated_frame_xmalloc_with_cleanup.
12582 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12583 deprecated_frame_xmalloc.
12584 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12585 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12586
d995ff4b
AC
125872003-01-06 Andrew Cagney <cagney@redhat.com>
12588
84dc46cb
AC
12589 * x86-64-linux-tdep.c: Include "osabi.h".
12590 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12591
d995ff4b
AC
12592 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12593
66140c26
AC
125942003-01-06 Andrew Cagney <cagney@redhat.com>
12595
12596 * MAINTAINERS (Target Instruction Set Architectures): Update
12597 arm-elf. Can be built with -Werror, has been multiarched.
12598
12599 * value.h (unpack_long): Make buffer parameter constant.
12600 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12601 * scm-lang.h (scm_parse): Ditto.
12602 * defs.h (extract_typed_address, extract_address): Ditto.
12603 (extract_long_unsigned_integer): Ditto.
12604 * inferior.h (unsigned_pointer_to_address): Ditto.
12605 (signed_pointer_to_address): Ditto.
12606 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12607 * gdbarch.h, gdbarch.c: Regenerate.
12608 * findvar.c (extract_long_unsigned_integer): Update.
12609 (extract_address): Update.
12610 (extract_typed_address): Update.
12611 (unsigned_pointer_to_address): Update.
12612 * values.c (unpack_long): Update.
12613 (unpack_double): Update.
12614 (unpack_pointer): Update.
12615 (unpack_field_as_long): Update.
12616 * d10v-tdep.c (d10v_pointer_to_address): Update.
12617 * avr-tdep.c (avr_pointer_to_address): Update.
12618 * scm-lang.c (scm_unpack): Update.
12619 * findvar.c (signed_pointer_to_address): Update.
12620
b089b3da
ML
126212003-01-06 Michal Ludvig <mludvig@suse.cz>
12622
8ffd9b1b 12623 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12624 since it is in i386-tdep.c.
12625
aff87235
JB
126262003-01-06 J. Brobecker <brobecker@gnat.com>
12627
12628 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12629 failure introduced in the previous change.
12630
34f5e845
MC
126312003-01-05 Michael Chastain <mec@shout.net>
12632
12633 * README: Remove references to deleted remote-*.c files:
12634 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12635 remote-nrom.c, remote-os9k.c, remote-udi.c.
12636
28bcfd30
MK
126372003-01-05 Mark Kettenis <kettenis@gnu.org>
12638
12639 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12640 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12641 i386_get_longjmp_target.
12642
15a5b3ee
AC
126432003-01-05 Andrew Cagney <ac131313@redhat.com>
12644
12645 * arm-tdep.c (prologue_cache): Change to a pointer.
12646 (_initialize_arm_tdep): Allocate prologue_cache.
12647 (check_prologue_cache): Update.
12648 (save_prologue_cache): Update.
12649 (arm_gdbarch_init): Update.
12650
c263362b
DJ
126512003-01-04 Daniel Jacobowitz <drow@mvista.com>
12652
12653 * stabsread.c (update_method_name_from_physname): Call complaint()
12654 instead of error.
12655
51603483
DJ
126562003-01-04 Daniel Jacobowitz <drow@mvista.com>
12657
12658 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12659 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12660 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12661
12662 * blockframe.c: Include "gdbcmd.h" and "command.h".
12663 (backtrace_below_main): New variable.
12664 (file_frame_chain_valid, func_frame_chain_valid)
12665 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12666 (generic_func_frame_chain_valid): Remove functions.
12667 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12668 (_initialize_blockframe): New function.
12669 * Makefile.in (blockframe.o): Update dependencies.
12670 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12671 comment. Call frame_chain_valid ().
12672 * frame.h: Remove old prototypes. Add prototype for
12673 frame_chain_valid and update comments to match.
12674 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12675 Remove old comment.
12676 * gdbarch.h: Regenerated.
12677 * gdbarch.c: Regenerated.
12678
12679 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12680 set_gdbarch_frame_chain_valid.
12681 * avr-tdep.c (avr_gdbarch_init): Likewise.
12682 * cris-tdep.c (cris_gdbarch_init): Likewise.
12683 * frv-tdep.c (frv_gdbarch_init): Likewise.
12684 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12685 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12686 (i386_nw_init_abi): Likewise.
12687 (i386_gdbarch_init): Likewise.
12688 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12690 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12691 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12692 * mips-tdep.c (mips_gdbarch_init): Likewise.
12693 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12694 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12695 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12696 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12697 * s390-tdep.c (s390_gdbarch_init): Likewise.
12698 * sh-tdep.c (sh_gdbarch_init): Likewise.
12699 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12700 * v850-tdep.c (v850_gdbarch_init): Likewise.
12701 * vax-tdep.c (vax_gdbarch_init): Likewise.
12702 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12703
12704 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12705 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12706 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12707 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12708 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12709 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12710 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12711 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12712
b00a8037
DJ
127132002-01-04 Daniel Jacobowitz <drow@mvista.com>
12714
12715 * Makefile.in (acconfig_h): Remove incorrect macro.
12716 (config_h): Define.
12717 (osabi.o): Update dependencies.
12718 * configure.tgt: Set gdb_osabi based on target triplet.
12719 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12720 * configure: Regenerated.
12721 * config.in: Regenerated.
12722 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12723 (GDB_OSABI_DEFAULT): Define if not already defined.
12724 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12725 (set_osabi_string): New variables.
12726 (gdbarch_register_osabi): Add new OS ABI to
12727 gdb_osabi_available_names.
12728 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12729 (set_osabi, show_osabi): New functions.
12730 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12731
4be87837
DJ
127322003-01-04 Daniel Jacobowitz <drow@mvista.com>
12733
12734 * arch-utils.c (gdbarch_info_init): Set osabi to
12735 GDB_OSABI_UNINITIALIZED.
12736 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12737 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12738 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12739 * gdbarch.c: Regenerated.
12740 * gdbarch.h: Regenerated.
12741 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12742 there's no BFD.
12743 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12744 * osabi.h (enum gdb_osabi): Move to defs.h.
12745 (gdbarch_init_osabi): Update prototype.
12746 * defs.h (enum gdb_osabi): Moved here.
12747 * Makefile.in: Update dependencies.
12748
12749 * alpha-tdep.h: Don't include "osabi.h".
12750 (struct gdbarch_tdep): Remove osabi member.
12751 * alpha-tdep.c: Include "osabi.h".
12752 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12753 iterate over arches. Update call to gdbarch_init_osabi.
12754 (alpha_dump_tdep): Don't dump osabi.
12755 * alpha-linux-tdep.c: Include "osabi.h".
12756 * alpha-osf1-tdep.c: Include "osabi.h".
12757 * alphafbsd-tdep.c: Include "osabi.h".
12758 * alphanbsd-tdep.c: Include "osabi.h".
12759
12760 * arm-tdep.h: Don't include "osabi.h".
12761 (struct gdbarch_tdep): Remove osabi member.
12762 * arm-tdep.c: Include "osabi.h".
12763 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12764 iterate over arches. Update call to gdbarch_init_osabi.
12765 (arm_dump_tdep): Don't dump osabi.
12766 * arm-linux-tdep.c: Include "osabi.h".
12767 * armnbsd-tdep.c: Include "osabi.h".
12768
12769 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12770 Update call to gdbarch_init_osabi.
12771
12772 * i386-tdep.h: Don't include "osabi.h".
12773 (struct gdbarch_tdep): Remove osabi member.
12774 * i386-tdep.c: Include "osabi.h".
12775 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12776 iterate over arches. Update call to gdbarch_init_osabi.
12777 (i386_dump_tdep): Don't dump osabi.
12778 * i386-linux-tdep.c: Include "osabi.h".
12779 * i386-sol2-tdep.c: Include "osabi.h".
12780 * i386bsd-tdep.c: Include "osabi.h".
12781 * i386gnu-tdep.c: Include "osabi.h".
12782 * i386ly-tdep.c: Include "osabi.h".
12783 * i386nbsd-tdep.c: Include "osabi.h".
12784 * i386obsd-tdep.c: Include "osabi.h".
12785
12786 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12787 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12788 check osabi when iterating over arches. Update call to
12789 gdbarch_init_osabi.
12790 (mips_dump_tdep): Don't dump osabi.
12791
12792 * ns32k-tdep.h: Don't include "osabi.h".
12793 (struct gdbarch_tdep): Remove.
12794 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12795 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12796 allocate tdep. Update call to gdbarch_init_osabi.
12797 (ns32k_dump_tdep): Remove.
12798 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12799 * ns32knbsd-tdep.c: Include "osabi.h".
12800
12801 * ppc-tdep.h: Don't include "osabi.h".
12802 (struct gdbarch_tdep): Remove osabi member.
12803 * rs6000-tdep.c: Include "osabi.h".
12804 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12805 osabi when iterating over arches. Update call to
12806 gdbarch_init_osabi.
12807 (rs6000_dump_tdep): Don't dump osabi.
12808 * ppc-linux-tdep.c: Include "osabi.h".
12809 * ppcnbsd-tdep.c: Include "osabi.h".
12810
12811 * sh-tdep.h: Don't include "osabi.h".
12812 (struct gdbarch_tdep): Remove osabi member.
12813 * sh-tdep.c: Include "osabi.h".
12814 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12815 iterate over arches. Update call to gdbarch_init_osabi.
12816 (sh_dump_tdep): Don't dump osabi.
12817 * shnbsd-tdep.c: Include "osabi.h".
12818
12819 * sparc-tdep.c: Include "osabi.h".
12820 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12821 iterate over arches. Update call to gdbarch_init_osabi.
12822 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12823 tdep structure.
12824
12825 * vax-tdep.h: Don't include "osabi.h".
12826 (struct gdbarch_tdep): Remove.
12827 * vax-tdep.c: Include "osabi.h".
12828 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12829 iterate over arches. Don't allocate tdep. Update call
12830 to gdbarch_init_osabi.
12831 (vax_dump_tdep): Remove.
12832 (_initialize_vax_tdep): Update call to gdbarch_register.
12833
a881cf8e
DJ
128342003-01-04 Daniel Jacobowitz <drow@mvista.com>
12835
12836 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12837 entirely.
12838 (breakpoint_re_set_one): Don't fetch the value for a disabled
12839 watchpoint.
12840
1e698235
DJ
128412003-01-04 Daniel Jacobowitz <drow@mvista.com>
12842
12843 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12844 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12845 (COERCE_FLOAT_TO_DOUBLE): Remove.
12846 * gdbarch.c: Regenerate.
12847 * gdbarch.h: Regenerate.
12848 * Makefile.in: Remove value_h from gdbarch_h.
12849 * valops.c (coerce_float_to_double): New variable.
12850 (default_coerce_float_to_double): Remove.
12851 (standard_coerce_float_to_double): Remove.
12852 (value_arg_coerce): Use coerce_float_to_double.
12853 (_initialize_valops): Add "set coerce-float-to-double".
12854 * value.h (default_coerce_float_to_double): Remove prototype.
12855 (standard_coerce_float_to_double): Remove prototype.
12856
12857 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12858 prototyped.
12859 * mdebugread.c (parse_symbol): Likewise.
12860 * stabsread.c (define_symbol): Mark all functions as prototyped.
12861
12862 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12863 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12864 set_gdbarch_coerce_float_to_double.
12865 * arm-tdep.c (arm_gdbarch_init): Likewise.
12866 * frv-tdep.c (frv_gdbarch_init): Likewise.
12867 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12868 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12869 * mips-tdep.c (mips_gdbarch_init): Likewise.
12870 (mips_coerce_float_to_double): Remove.
12871 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12872 (rs6000_coerce_float_to_double): Remove.
12873 * s390-tdep.c (s390_gdbarch_init): Likewise.
12874 * sh-tdep.c (sh_gdbarch_init): Likewise.
12875 (sh_coerce_float_to_double): Remove.
12876 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12877 (sparc_coerce_float_to_double): Remove.
12878 * v850-tdep.c (v850_gdbarch_init): Likewise.
12879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12880 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12881 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12882 (hppa_coerce_float_to_double): Remove prototype.
12883 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12884
f436a26a
DJ
128852003-01-04 Daniel Jacobowitz <drow@mvista.com>
12886
12887 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12888
248f8055
DJ
128892003-01-04 Daniel Jacobowitz <drow@mvista.com>
12890
12891 Suggested by Stewart Brown <sb24@avaya.com>:
12892 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12893 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12894 (c_type_print_varspec_suffix): Likewise.
12895
72cfdc76
MK
128962003-01-04 Mark Kettenis <kettenis@gnu.org>
12897
bfd260bb
MK
12898 * configure.in: Don't set and AC_SUBST SUBDIRS.
12899 * configure: Regenerated.
12900
72cfdc76
MK
12901 * configure.in: Remove code dealing with shared libraries.
12902 * Makefile.in: Remove HLDFLAGS and HLDENV.
12903 * configure: Regenerated.
12904
c8b8a898
AC
129052003-01-04 Andrew Cagney <ac131313@redhat.com>
12906
12907 * frame.c (deprecated_frame_xmalloc): New function.
12908 (deprecated_set_frame_saved_regs_hack): New function.
12909 (deprecated_set_frame_extra_info_hack): New function.
12910 * frame.h (deprecated_frame_xmalloc): Declare.
12911 (deprecated_set_frame_saved_regs_hack): Declare.
12912 (deprecated_set_frame_extra_info_hack): Declare.
12913
14abd0fb
MK
129142003-01-04 Mark Kettenis <kettenis@gnu.org>
12915
8ee53726
MK
12916 * configure.in: Move code that provides the --enable-gdbtk option
12917 right after the code that handles the --enable-tui option, and
12918 polish it somewhat.
12919 * configure: Regenerated.
12920
14abd0fb
MK
12921 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12922 AC_CHECK_FUNCS and remove the old check for pread64.
12923 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12924 * acconfig.h (_GNU_SOURCE): Add.
12925 (HAVE_PREAD64): Remove.
12926 * configure, aclocal.m4, config.in: Regenerated.
12927
b2fb4676
AC
129282003-01-03 Andrew Cagney <ac131313@redhat.com>
12929
12930 * alpha-tdep.c: Use get_frame_saved_regs.
12931 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12932 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12933 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12934 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12935 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12936
8dcde887
MK
129372003-01-03 Mark Kettenis <kettenis@gnu.org>
12938
12939 * configure.in: Remove all use of the SUBDIRS variable; add
12940 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12941 code providing the --enable-multi-ice option, and move it right in
12942 front of the code that checks whether gdbserver is supported.
12943 Polish that too.
12944 * configure: Regenerated.
12945 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12946 @SUBDIRS@.
12947
8ccd593b
AC
129482003-01-03 Andrew Cagney <cagney@redhat.com>
12949
12950 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12951 * avr-tdep.c, cris-tdep.c: Ditto.
12952 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12953 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12954
91151a06
MK
129552003-01-03 Mark Kettenis <kettenis@gnu.org>
12956
12957 * configure.in: Remove --enable-netrom option.
12958 * configure: Regenerated.
12959
8fe84d01
MK
129602003-01-03 Mark Kettenis <kettenis@gnu.org>
12961
12962 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12963 declaration for `struct re_pattern_buffer' instead.
12964 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12965
f0394be6
JB
129662003-01-03 J. Brobecker <brobecker@gnat.com>
12967
12968 * mdebugread.c (parse_symbol): Count until the stEnd matching
12969 the structure name.
12970
27e9bf90
MK
129712003-01-02 Mark Kettenis <kettenis@gnu.org>
12972
93d331ba
MK
12973 * configure.in: Remove --with-cpu option.
12974 subscripts. Remove evil changequotes here.
12975 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12976 * config.in, configure: Regenerated.
8ffd9b1b 12977
27e9bf90
MK
12978 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12979 * configure.in: Cleanup section that sources GDB and BFD configure
12980 subscripts. Remove evil changequotes here.
12981 * config.in, configure: Regenerated.
12982
50abf9e5
AC
129832003-01-02 Andrew Cagney <ac131313@redhat.com>
12984
12985 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12986 frame accessor methods.
12987 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12988 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12989 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12990 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12991 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12992 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12993 * z8k-tdep.c: Ditto.
8ffd9b1b 12994
287c1a40
MK
129952003-01-02 Mark Kettenis <kettenis@gnu.org>
12996
f5dbc56d
MK
12997 * configure.in: Remove UI_OUT configuration code.
12998 * ada-lang.c: Update assuming UI_OUT is always true.
12999 * Makefile.in (UIOUT_CFLAGS): Remove.
13000 * configure: Regenerated.
13001 * TODO: Remove blurb about elimination of -DUI_OUT.
13002
627af7ea
MK
13003 * configure.in: Move code that provides the --enable-gdbcli,
13004 --enable-gdbmi options right before the code that handles the
13005 --enable-tui option. Polish a bit.
13006 * configure: Regenerated.
13007
06825bd1
MK
13008 * configure.in: Rewrite check for GNU regex and the
13009 --without-included regex option, and move it into the "Checks for
13010 library functions" section. This makes us use the system regex
13011 again by default on systems with version 2 of the GNU C library.
13012 This was apparently broken.
13013 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13014 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13015 * config.in, configure: Regenerated.
13016
287c1a40
MK
13017 * configure.in: Move code that provides the --enable-tui option
13018 before the "Checks for libraries" section. Polish the code
13019 somewhat and set need_curses to yes if we build the TUI. Rewrite
13020 code that looks for a library providing termcap functionality to
13021 match more closely what's done in the Readline library, and move
13022 it into to the "Checks for libraries" section.
13023 * configure: Regenerated.
13024 * Makefile.in (TERMCAP): Remove variable.
13025 * config/i386/go32.mh (TERMCAP): Remove variable.
13026
684e56bf
AC
130272003-01-02 Andrew Cagney <ac131313@redhat.com>
13028
13029 * MAINTAINERS: Mention gdb_mbuild.sh.
13030 * gdb_mbuild.sh: Rewrite.
13031
e1ea1d75
MK
130322003-01-02 Mark Kettenis <kettenis@gnu.org>
13033
13034 * configure.in: Fix typo in last change.
13035 * config.in, configure: Regenerated.
13036
1b831c93
AC
130372003-01-02 Andrew Cagney <ac131313@redhat.com>
13038
13039 * valarith.c (value_binop): Delete obsolete code and comments.
13040 * configure.host: Ditto.
13041 * buildsym.h (make_blockvector): Ditto.
13042 * buildsym.c (make_blockvector): Ditto.
13043 * defs.h (enum language): Ditto.
13044 (chill_demangle): Ditto.
13045 * elfread.c (elf_symtab_read): Ditto.
13046 * dwarfread.c (CHILL_PRODUCER): Ditto.
13047 (set_cu_language): Ditto.
13048 (handle_producer): Ditto.
13049 * expprint.c (print_subexp): Ditto.
13050 * gdbtypes.c (chill_varying_type): Ditto.
13051 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13052 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13053 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13054 (chill_varying_type): Ditto.
13055 * language.h (_LANG_chill): Ditto.
13056 * language.c (binop_result_type, integral_type): Ditto.
13057 (character_type, string_type, structured_type): Ditto.
13058 (lang_bool_type, binop_type_check): Ditto.
13059 * stabsread.h (os9k_stabs): Ditto.
13060 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13061 (define_symbol, read_type, read_struct_fields): Ditto.
13062 (read_array_type, read_enum_type, read_huge_number): Ditto.
13063 (read_range_type, start_stabs): Ditto.
13064 * symfile.c (init_filename_language_table): Ditto.
13065 (add_psymbol_with_dem_name_to_list): Ditto.
13066 * symtab.c (symbol_init_language_specific): Ditto.
13067 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13068 * symtab.h (struct general_symbol_info): Ditto.
13069 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13070 * typeprint.c (typedef_print): Ditto.
13071 * utils.c (fprintf_symbol_filtered): Ditto.
13072 * valops.c (value_cast, search_struct_field, value_slice): Delete
13073 obsolete code.
13074 (varying_to_slice): Delete function.
13075 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13076 (varying_to_slice): Delete declaration.
13077 * MAINTAINERS: Update.
13078
8bb2c122
MK
130792003-01-02 Mark Kettenis <kettenis@gnu.org>
13080
97bf5e38
MK
13081 * configure.in: Reorganize "Checks for library functions section"
13082 a bit. Remove check for `btowc' and `isascii' functions.
13083 * configure: Regenerated.
13084
5ee754fc
MK
13085 * acconfig.h (_MSE_INT_H): Remove.
13086 * configure.in: Create "Checks for header files" section, and move
13087 appropriate tests there. Don't check for objlist.h, wchar.h,
13088 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13089 misdetection fix. Also add "Checks for types", "Checks for
13090 compiler characteristics" and "Checks for library functions"
13091 sections.
13092 * config.in, configure: Regenerated.
13093
8bb2c122
MK
13094 * configure.in: Create "Checks for programs" section, and move
13095 appropriate tests there.
13096
9a156167
MK
130972003-01-01 Mark Kettenis <kettenis@gnu.org>
13098
13099 * configure.in: Create "Checks for libraries" section, and move
13100 appropriate tests there. Cleanup check for wctype in libw. Use
13101 AC_SEARCH_LIBS to see whether we need libsocket.
13102 * configure: Regenerated.
13103
a80e2bcb 13104For older changes see ChangeLog-2002
c906108c
SS
13105\f
13106Local Variables:
13107mode: change-log
13108left-margin: 8
13109fill-column: 74
13110version-control: never
13111End:
This page took 1.128794 seconds and 4 git commands to generate.