* i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-10-11 Mark Kettenis <kettenis@gnu.org>
2
3 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
4 TDEP->sc_num_regs.
5
6 * i386fbsd-tdep.c: New file.
7 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
9 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
10 i386bsd-tdep.c.
11 (_initialize_i386fbsd_tdep): New function.
12 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
13 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
14 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
15 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
16 TDEP->sc_num_regs.
17 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
18 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
19 to initialize TDEP->sc_num_regs.
20 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
21 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
22 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
23 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
24 FreeBSD ELF OS/ABI's here.
25 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
26 (i386fbsd-tdep.o): New target.
27 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
28 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
29
30 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
31 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
32 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
33 in initialization of TDEP->sc_num_regs.
34
35 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
36 (x86_64_init_abi): Initialize regset_from_core_section if
37 appropriate.
38
39 * i386-tdep.c (i386_regset_from_core_section): New function.
40 (i386_gdbarch_init): Initialize regset_from_core_section if
41 appropriate.
42 * i386-tdep.h (i386_regset_from_core_section): New declaration.
43
44 * i386-tdep.h (struct regset): Declare opaque.
45
46 * gdbarch.sh (regset_from_core_section): New method.
47 (struct regset): Declare opaque.
48 * gdbarch.c, gdbarch.h: Regenerated.
49
50 2003-10-11 Alan Modra <amodra@bigpond.net.au>
51
52 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
53 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
54 Correct test for pc within section.
55
56 2003-10-11 Mark Kettenis <kettenis@gnu.org>
57
58 * gdbarch.sh: Remove trailing whitepsace from comments.
59
60 2003-10-08 Roland McGrath <roland@redhat.com>
61
62 * gcore.c (make_mem_sec): Function removed, folded into ...
63 (gcore_create_callback): ... here. To omit a section, clear its
64 SEC_LOAD bit rather than zeroing its size.
65 Omit read-only sections only if they correspond to a known disk file.
66 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
67
68 2003-10-10 Michael Snyder <msnyder@redhat.com>
69
70 * d10v-tdep.c: Fix typo in comment.
71
72 2003-10-10 Andrew Cagney <cagney@redhat.com>
73
74 * rs6000-tdep.c (e500_store_return_value): Delete function.
75 (e500_extract_return_value): Delete function.
76 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
77 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
78 "ppc_sysv_abi_restore_return_value" where applicable.
79 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
80 (ppc_sysv_abi_extract_return_value): Declare.
81 (ppc_sysv_abi_broken_store_return_value): Declare.
82 (ppc_sysv_abi_broken_extract_return_value): Declare.
83 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
84 * ppc-sysv-tdep.c (return_value_convention): Move definition to
85 start of file.
86 (do_ppc_sysv_return_value): New function.
87 (ppc_sysv_abi_extract_return_value): New function.
88 (ppc_sysv_abi_store_return_value): New function.
89 (ppc_sysv_abi_broken_extract_return_value): New function.
90 (ppc_sysv_abi_broken_store_return_value): New function.
91 (ppc_sysv_abi_use_struct_convention): Call
92 do_ppc_sysv_return_value.
93
94 2003-10-10 J. Brobecker <brobecker@gnat.com>
95
96 * blockframe.c (inside_main_func): No longer use symbol_lookup()
97 to lookup the main function symbol.
98
99 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
100
101 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
102 types correctly.
103 (sh_push_dummy_call_fpu): Fix argument passing rules.
104 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
105 float types.
106 (sh3e_sh4_store_return_value): Ditto.
107
108 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
109
110 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
111 comment.
112
113 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
114
115 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
116 more readable code. Accomodate passing of bitfields.
117
118 2003-10-10 Andrew Cagney <cagney@redhat.com>
119
120 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
121 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
122 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
123 * ppc-sysv-tdep.c: Include "gdb_assert.h".
124 (ppc64_sysv_abi_push_dummy_call): New function.
125 (ppc64_sysv_abi_broken_push_dummy_call): New function.
126 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
127 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
128
129 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
130
131 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
132 * README: Ditto.
133 * d10v-tdep.c: Ditto.
134 * h8300-tdep.c: Ditto.
135 * remote-e7000.c: Ditto.
136 * remote-hms.c: Ditto.
137 * ser-e7kpc.c: Ditto.
138 * sh-stub.c: Ditto.
139 * sh-tdep.c: Ditto.
140 * sh-tdep.h: Ditto.
141 * sh3-rom.c: Ditto.
142 * sh64-tdep.c: Ditto.
143 * top.c: Ditto.
144 * wince.c: Ditto.
145 * config/d10v/d10v.mt: Ditto.
146 * config/sh/embed.mt: Ditto.
147 * config/sh/linux.mt: Ditto.
148 * config/sh/tm-linux.h: Ditto.
149 * config/sh/tm-sh.h: Ditto.
150 * config/sh/wince.mt: Ditto.
151
152 2003-10-09 Andrew Cagney <cagney@redhat.com>
153
154 * ppc-tdep.h (struct type): Declare opaque.
155 * x86-64-tdep.h (struct regcache): Declare opaque.
156 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
157 coding style.
158
159 2003-10-09 Andrew Cagney <cagney@redhat.com>
160
161 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
162 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
163 (SOFTWARE_SINGLE_STEP_P): Ditto.
164 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
165 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
166 (SOFTWARE_SINGLE_STEP_P): Ditto.
167 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
168 software_single_step to rs6000_software_single_step.
169
170 2003-10-09 Andrew Cagney <cagney@redhat.com>
171
172 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
173
174 2003-10-09 Michael Snyder <msnyder@redhat.com>
175
176 * frame.h: Fix typo in comment.
177 * dummy-frame.c: Fix typo in comment.
178 * d10v-tdep.c: Random whitespace/comment tweaks.
179
180 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
181
182 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
183 (sh_push_dummy_code): Delete function, it's only used for dummy calls
184 on stack.
185
186 Based on input by Stephen Clarke (stephen.clarke@superh.com):
187 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
188 in detail.
189
190 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
191
192 * remote-mips.c (mips_initialize): Remove unneeded call to
193 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
194
195 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
196
197 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
198 a memory pointer.
199
200 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
201
202 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
203 for any lwp we resume.
204 (running_callback): Add lwps that have pending status events
205 against them to be considered running.
206
207 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
208
209 * m32r-tdep.c : Include "dis-asm.h".
210 * Makefile.in (m32r-tdep.o): Update dependencies.
211
212 2003-10-06 J. Brobecker <brobecker@gnat.com>
213
214 * completer.h (get_gdb_completer_word_break_characters): Delete.
215 * completer.c: include language.h.
216 (gdb_completer_word_break_characters): Delete.
217 (get_gdb_completer_word_break_characters): Delete.
218 (location_completer): Use the word break characters of the current
219 language.
220 (complete_line): Likewise.
221 (line_completion_function): Likewise.
222 (skip_quoted_chars): Likewise.
223 * Makefile.in (completer.o): Add dependency on language.h.
224 * top.c (init_main): Set the readline word break characters
225 to GDB's default word break characters.
226
227 2003-10-06 J. Brobecker <brobecker@gnat.com>
228
229 * language.h (language_defn): new field, la_word_break_characters.
230 * language.c (unknown_language_defn): Set new field to
231 default_word_break_characters.
232 (auto_language_defn): Likewise.
233 (local_language_defn): Likewise.
234 * ada-lang.c (ada_language_defn): Likewise.
235 * c-lang.c (c_language_defn): Likewise.
236 (cplus_language_defn): Likewise.
237 (asm_language_defn): Likewise.
238 (minimal_language_defn): Likewise.
239 * f-lang.c (f_language_defn): Likewise.
240 * jv-lang.c (java_language_defn): Likewise.
241 * m2-lang.c (m2_language_defn): Likewise.
242 * objc-lang.c (objc_language_defn): Likewise.
243 * p-lang.c (pascal_language_defn): Likewise.
244 * scm-lang.c (scm_language_defn): Likewise.
245
246 2003-10-06 Andrew Cagney <cagney@redhat.com>
247
248 * ppc-sysv-tdep.c: Re-indent.
249
250 2003-10-06 J. Brobecker <brobecker@gnat.com>
251
252 * language.h (default_word_break_characters): Add prototype.
253 * language.c (default_word_break_characters): New function.
254
255 2003-10-06 Andreas Schwab <schwab@suse.de>
256
257 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
258 with %eax.
259
260 2003-10-06 Andrew Cagney <cagney@redhat.com>
261
262 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
263 "h8500-tdep.c".
264 (z8k-tdep.o): Delete custom build rule.
265
266 2003-10-06 Andrew Cagney <cagney@redhat.com>
267
268 * Makefile.in: Update all dependencies.
269
270 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
271 No longer list PA as as obsolete candidate. List m32r as
272 broken instead of obsolete.
273
274 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
275 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
276 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
277 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
278 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
279 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
280 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
281 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
282 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
283 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
284 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
285 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
286 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
287 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
288 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
289 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
290 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
291 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
292 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
293 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
294 * config/z8k/z8k.mt: Ditto.
295
296 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
297 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
298 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
299 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
300 sparclite were removed.
301 * configure.host, configure.tgt: Remove corresponding tuples.
302
303 * breakpoint.c, breakpoint.h: Remove obsolete code.
304 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
305 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
306 * stabsread.h, xcoffread.c: Ditto.
307
308 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
309 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
310 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
311 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
312
313 2003-10-06 David Lecomber <dsl@sources.redhat.com>
314
315 * f-valprint.c: Reformatting
316
317 2003-10-06 Mark Kettenis <kettenis@gnu.org>
318
319 * x86-64-tdep.c: Remove duplicate comment.
320
321 * x86-64-tdep.c (x86_64_store_return_value): Don't use
322 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
323 names for return values. This fixes a bug since we looked at %rbx
324 instead of %rdx.
325
326 2003-10-05 Mark Kettenis <kettenis@gnu.org>
327
328 * x86-64-tdep.c: Include "regset.h".
329
330 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
331 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
332 sizeof_fpregset.
333 * i386-tdep.c: Include "regset.h".
334 (i386_supply_gregset): New function.
335 (i386_supply_fpregset): New function.
336 (i386_gdbarch_init): Initialze register set-related members of
337 TDEP.
338 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
339 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
340
341 2003-10-03 Andrew Cagney <cagney@redhat.com>
342
343 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
344 set extract_return_value, store_return_value and
345 use_struct_convention to ppc64_sysv_abi_extract_return_value,
346 ppc64_sysv_abi_store_return_value and
347 ppc64_sysv_abi_use_struct_convention.
348 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
349 (ppc64_sysv_abi_store_return_value): Declare.
350 (ppc64_sysv_abi_use_struct_convention): Declare.
351 * ppc-sysv-tdep.c (enum return_value_convention): Define.
352 (ppc64_sysv_abi_extract_return_value): New function.
353 (ppc64_sysv_abi_store_return_value): New function.
354 (ppc64_sysv_abi_use_struct_convention): New function.
355 (ppc64_sysv_abi_return_value): New function.
356
357 2003-10-03 Andrew Cagney <cagney@redhat.com>
358
359 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
360 convert a descriptor to a function when it's in the ".opd"
361 section.
362
363 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
364
365 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
366 reg_size to keep GCC silent.
367
368 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
369
370 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
371 base for DW_EH_PE_textrel encodings.
372 (read_encoded_value): Add a DW_EH_PE_textrel case.
373 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
374 section.
375
376 2003-10-03 Mark Kettenis <kettenis@gnu.org>
377
378 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
379
380 2003-10-02 Andrew Cagney <cagney@redhat.com>
381
382 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
383 REGISTER_RAW_SIZE.
384 * gdbarch.h, gdbarch.c: Re-generate.
385 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
386 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
387 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
388 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
389 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
390 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
391 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
392 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
393 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
394 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
395 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
396 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
397 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
398 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
399 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
400 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
401
402 2003-10-02 Jim Blandy <jimb@redhat.com>
403
404 * dwarf2read.c (struct die_info): Doc fix.
405
406 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
407
408 * sh-tdep.c: Running thru gdb_indent.sh.
409
410 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
411
412 * sh-tdep.c (sh_justify_value_in_reg): New function.
413 (sh_stack_allocsize): Ditto.
414 (flt_argreg_array): New array used for floating point argument
415 passing.
416 (sh_init_flt_argreg): New function.
417 (sh_next_flt_argreg): Ditto.
418 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
419 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
420 Fix argument passing strategy.
421 (sh_push_dummy_call_nofpu): Ditto.
422
423 2003-10-01 Andrew Cagney <cagney@redhat.com>
424
425 * value.h (register_value_being_returned): Declare. Replace
426 "value_being_returned".
427 * infcall.c (call_function_by_hand): Use
428 register_value_being_returned.
429 * infcmd.c (print_return_value): Call
430 "register_value_being_returned", handle struct return locally.
431 * values.c (register_value_being_returned): New function. Replace
432 "value_being_returned".
433
434 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
435
436 * linux-proc.c (linux_do_registers): New function.
437 (linux_make_note_section): Use linux_do_registers in case of
438 single threaded inferior programs.
439
440 2003-10-01 Andrew Cagney <cagney@redhat.com>
441
442 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
443 use STRUCT_ADDR. When not using "struct return convention", pass
444 "0" to "value_being_returned". Add FIXMEs.
445 * infcmd.c (print_return_value): Pass an explicit 0/1 to
446 value_being_returned. Add comments.
447 * values.c (value_being_returned): Add fixme.
448 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
449 (hppa_value_returned_from_stack): Add FIXME.
450
451 2003-09-30 David Carlton <carlton@kealia.com>
452
453 * dwarf2read.c (struct die_info): Add 'parent' field; replace
454 'has_children' and 'next' by 'child' and 'sibling'.
455 (read_comp_unit): Rework algorithm, breaking body into
456 read_die_and_children and read_die_and_siblings.
457 (read_die_and_children, read_die_and_siblings): New.
458 (read_full_die): Add 'has_children' argument; set it instead of
459 the die's 'has_children' field. Minor formatting cleanup.
460 (free_die_list): Use die->child and die->sibling instead of
461 die->next.
462 (dump_die_list): Ditto.
463 (sibling_die): Use die->sibling.
464 (psymtab_to_symtab_1): Use die's 'child' field in place of its
465 'has_children' and 'next' fields.
466 (process_die, read_file_scope, read_func_scope)
467 (read_lexical_block_scope, read_structure_scope)
468 (read_enumeration, read_array_type, read_common_block)
469 (read_namespace, read_subroutine_type, dump_die): Ditto.
470
471 2003-09-30 Andrew Cagney <cagney@redhat.com>
472
473 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
474 to 224, not 220.
475
476 2003-09-30 Andrew Cagney <cagney@redhat.com>
477
478 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
479 REGISTER_VIRTUAL_SIZE.
480 * gdbarch.h, gdbarch.c: Regenerate.
481 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
482 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
483 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
484
485 2003-09-29 Andrew Cagney <cagney@redhat.com>
486
487 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
488 DEPRECATED_REGISTER_VIRTUAL_TYPE.
489 * gdbarch.h, gdbarch.c: Regenerate.
490 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
491 * sh64-tdep.c, sparc-tdep.c: Update.
492
493 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
494 * remote-vxmips.c (vx_read_register): Ditto.
495 * remote-vx68.c (vx_read_register): Ditto.
496 * gnu-nat.c (inf_validate_procs): Ditto.
497
498 2003-09-29 J. Brobecker <brobecker@gnat.com>
499
500 * infcall.c (call_function_by_hand): Fix build failure
501 introduced in the previous change to this file.
502
503 2003-09-29 Andrew Cagney <cagney@redhat.com>
504
505 * NEWS: Mention Objective-C.
506
507 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
508
509 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
510 test if the register has been saved on the stack.
511 (arm_scan_prologue_cache): When analysing the instruction
512 "str lr, [sp, #-4]", save the address where lr has been stored.
513
514 2003-09-28 Andrew Cagney <cagney@redhat.com>
515
516 * frame.c (frame_read_unsigned_register): Delete function.
517 * frame.h (frame_read_unsigned_register): Delete declaration.
518 * sparc-tdep.c (sparc_init_extra_frame_info): Use
519 get_frame_register_unsigned.
520 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
521 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
522 * d10v-tdep.c (d10v_print_registers_info): Ditto.
523
524 * frame.h (frame_read_register): Delete declaration.
525 * frame.c (frame_read_register): Delete function.
526 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
527 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
528 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
529 * mips-tdep.c (mips_register_to_value): Ditto.
530 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
531 * d10v-tdep.c (d10v_print_registers_info): Ditto.
532
533 * frame.c (frame_read_signed_register): Delete function.
534 (frame_read_unsigned_register): Update comments.
535 * frame.h (frame_read_signed_register): Delete declaration.
536 * h8300-tdep.c (h8300_print_register): Use
537 get_frame_register_signed.
538 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
539
540 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
541 Rename VALUE_RETURNED_FROM_STACK.
542 * infcmd.c (print_return_value): Update.
543 * infcall.c (call_function_by_hand): Update.
544
545 2003-09-28 Mark Kettenis <kettenis@gnu.org>
546
547 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
548 regcache argument and reverse the order of the other two
549 arguments. Remove local regcache variable. Determine
550 architecture from REGCACHE. Update comments.
551 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
552 reverse the order of the other two arguments. Remove local
553 regcache variable. Determine architecture from REGCACHE. Update
554 comments.
555 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
556 prototypes. Update comments.
557 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
558 comment.
559 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
560 Update.
561 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
562 * i386-interix-nat.c (supply_fpregset): Update.
563 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
564 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
565 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
566 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
567 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
568 Update.
569 * i386obsd-tdep.c (fetch_core_registers): Update.
570 * i386v4-nat.c (supply_fpregset): Update.
571 * x86-64-linux-nat.c (supply_fpregset): Update.
572 * x86-64-linux-tdep.c (fetch_core_registers): Update.
573
574 2003-09-27 Mark Kettenis <kettenis@gnu.org>
575
576 * i386-tdep.h: Put opaque declarations in alphabetical
577 order. Remove spurious whitespace.
578 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
579 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
580 * i386-tdep.c (MM0_REGNUM): Remove define.
581 (i386_mmx_regnum_p): Add gdbarch argument.
582 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
583 Rewrite using new macro definitions for FPU/SSE registers.
584 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
585 definitions from i387-tdep.h.
586 (i386_register_name): Update.
587 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
588 new macro definitions for FPU/SSE registers.
589 (i386_extract_return_value): Determine whether floating-point
590 registers are present by examining REGCACHE's architecture.
591 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
592 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
593 FPU/SSE registers.
594 (i386_register_type): Update.
595 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
596 definitions for FPU registers. Use REGCACHE's architecture to
597 determine the appropriate register numbers.
598 (i386_pseudo_register_read, i386_pseudo_register_write,
599 i386_register_reggroup_p): Update.
600 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
601 TDEP->mm0_regnum.
602 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
603 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
604 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
605 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
606 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
607 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
608 *' to `void *'.
609 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
610 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
611 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
612 definitions for FPU/SSE registers.
613 (FXSAVE_MXCSR_ADDR): New define.
614 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
615 TDEP->mm0_regnum.
616 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
617 (I387_ST0_REGNUM): Define.
618
619 * regcache.h (get_regcache_arch): New prototype.
620 * regcache.c (get_regcache_arch): New function.
621
622 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
623 whitespace.
624
625 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
626 Initialize using ARRAY_SIZE.
627
628 2003-09-27 Andrew Cagney <cagney@redhat.com>
629
630 * arch-utils.c (deprecated_init_frame_pc_default): Rename
631 "init_frame_pc_default".
632 * arch-utils.h (deprecated_init_frame_pc_default): Update.
633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
634 * vax-tdep.c (vax_gdbarch_init): Update.
635 * v850-tdep.c (v850_gdbarch_init): Update.
636 * sh64-tdep.c (sh64_gdbarch_init): Update.
637 * s390-tdep.c (s390_gdbarch_init): Update.
638 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
639 * mcore-tdep.c (mcore_gdbarch_init): Update.
640 * h8300-tdep.c (h8300_gdbarch_init): Update.
641 * cris-tdep.c (cris_gdbarch_init): Update.
642 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
643
644 2003-09-26 Mark Kettenis <kettenis@gnu.org>
645
646 * regset.h: New file.
647 * Makefile.in (regset_h): Add.
648
649 2003-09-25 Andrew Cagney <cagney@redhat.com>
650
651 * frame.h (deprecated_frame_saved_regs): Rename
652 get_frame_saved_regs.
653 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
654 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
655 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
656 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
657 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
658
659 2003-09-25 Andrew Cagney <cagney@redhat.com>
660
661 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
662 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
663 and Java.
664 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
665 arm*-*-* do not use the new frame code.
666
667 2003-09-25 David Carlton <carlton@kealia.com>
668
669 * c-exp.y: Remove 'register' declarations.
670 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
671
672 2003-09-25 David Carlton <carlton@kealia.com>
673
674 * c-exp.y: Include cp-support.h. Add qualified_type.
675 (yylex): Delete nested type hack; add comments.
676 * cp-namespace.c (cp_lookup_nested_type): New function.
677 * cp-support.h: Declare cp_lookup_nested_type.
678 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
679 instead of value_struct_elt_for_reference.
680 * valops.c: Include cp-support.h.
681 (value_aggregate_elt): New function.
682 (value_namespace_elt): Ditto.
683 (value_struct_elt_for_reference): Make static.
684 * value.h: Delete declaration of value_struct_elt_for_reference;
685 add declaration for value_aggregate_elt.
686 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
687 (valops.o): Ditto.
688
689 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
690
691 * stack.c: Include "reggroups.h".
692 (frame_info): Only display registers in all_reggroup.
693 * Makefile.in (stack.o): Update dependencies.
694
695 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
696
697 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
698 "add ip, sp #n" in the prologue.
699 (arm_scan_prologue): Ditto.
700
701 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
702
703 * MAINTAINERS (write after approval): Add myself.
704
705 2003-09-25 Andreas Schwab <schwab@suse.de>
706
707 * m68k-tdep.c: Include "dwarf2-frame.h".
708 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
709 * Makefile.in (m68k-tdep.o): Update dependencies.
710
711 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
712
713 * sh-tdep.c (struct frame_extra_info): Remove.
714 (struct sh_frame_cache): New structure.
715 (GET_SOURCE_REG): New macro extracting source register of an opcode.
716 (GET_TARGET_REG): Ditto but target register.
717 (GET_PUSHED_REG): Remove.
718 (IS_MOV_ARG_TO_REG): New macro.
719 (IS_MOV_ARG_TO_IND_R14): New macro.
720 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
721 (IS_MOVW_PCREL_TO_REG): New macro.
722 (IS_MOVL_PCREL_TO_REG): New macro.
723 (IS_SUB_REG_FROM_SP): New macro.
724 (IS_ARG_MOV): Remove.
725 (IS_MOV_TO_R14): Remove.
726 (IS_RESTORE_FP): New macro.
727 (IS_RTS): New macro.
728 (IS_LDS): New macro.
729 (IS_MOV_FP_SP): New macro.
730 (IS_ADD_REG_TO_FP): New macro.
731 (IS_ADD_IMM_FP): New macro.
732 (sh_skip_prologue_hard_way): Remove.
733 (sh_saved_pc_after_call): Remove.
734 (sh_frame_chain): Remove.
735 (sh_find_callers_reg): Remove.
736 (sh_nofp_frame_init_saved_regs): Remove.
737 (sh_fp_frame_init_saved_regs): Remove.
738 (sh_init_extra_frame_info): Remove.
739 (sh_analyze_prologue): New function.
740 (sh_skip_prologue): Remove deprecated code. Rely on new function
741 sh_analyze_prologue when after_prologue fails.
742 (sh_frame_saved_pc): Remove.
743 (sh_alloc_frame_cache): New function.
744 (sh_frame_cache): Ditto.
745 (sh_frame_prev_register): Ditto.
746 (sh_frame_this_id): Ditto.
747 (sh_frame_unwind): New structure defining the heuristic frame
748 sniffer interface.
749 (sh_frame_sniffer): New function.
750 (sh_unwind_sp): Ditto.
751 (sh_unwind_pc): Ditto.
752 (sh_unwind_dummy_id): Ditto.
753 (sh_frame_base_address): Ditto.
754 (sh_frame_base): New structure defining new frame base code.
755 (sh_in_function_epilogue_p): New function.
756 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
757 code and to call all new code instead. Initialize dwarf2 and
758 heuristic frame sniffer.
759
760 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
761
762 * parser-defs.h (struct exp_descriptor): New definition, containing
763 language-specific info for printing, prefixifying, dumping, and
764 evaluating expressions.
765 (exp_descriptor_standard): Declare new variable.
766 (print_subexp): Make global and declare here (from expprint.c).
767 (dump_subexp): Ditto.
768 (dump_subexp_body_standard): Declare.
769 (operator_length_standard): Declare.
770 (op_name_standard): Declare.
771 (print_subexp): Declare.
772 (print_subexp_standard): Declare.
773
774 * language.h (struct language_defn): Add la_exp_desc field to hold
775 pointer to table for language-specific operators.
776 Remove evaluate_exp field, which is now in struct exp_descriptor.
777
778 * parse.c (operator_length): Move most code to new
779 operator_length_standard function. Use language-specific information.
780 (operator_length_standard): New function taking most code from
781 operator_length.
782 (exp_descriptor_standard): New constant.
783
784 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
785 and OP_EXTENDED_LAST.
786
787 * expprint.c (print_subexp): Use language-specific print_subexp.
788 Make global; remove static declaration.
789 Move most code to print_subexp_standard.
790 (print_subexp_standard): New function, containing code formerly in
791 print_subexp.
792 (op_name): Add expression to argument signature.
793 Use langauge-specific op_name.
794 Move most code to op_name_standard.
795 (op_name_standard): New function, containing code formerly in op_name.
796 (dump_subexp): Use new version of op_name function.
797 Use language-specific dump_subexp_body, and move most existing code to
798 dump_subexp_body_standard.
799 (dump_raw_expression): Use new op_name interface.
800 (dump_subexp_body): Move most code to dump_subexp_body_standard.
801 (dump_subexp_body_standard): New function, containing code formerly
802 in dump_subexp_body.
803
804 * language.c (unknown_language): Add default la_exp_desc field and
805 remove evaluate_exp field.
806 (auto_language): Ditto.
807 (local_language): Ditto.
808 * f-lang.c (f_language_defn): Ditto.
809 * c-lang.c (c_language_defn): Ditto.
810 (cplus_language_defn): Ditto.
811 (asm_language_defn): Ditto.
812 (minimal_language_defn): Ditto.
813 * p-lang.c (pascal_language_defn): Ditto.
814 * m2-lang.c (m2_language_defn): Ditto.
815 * objc-lang.c (objc_language_defn): Ditto.
816
817 * jv-lang.c (exp_descriptor_java): New variable, containing
818 Java-specific expression evaluator.
819 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
820 field.
821 * scm-lang.c (exp_descriptor_scm): New variable, containing
822 Scheme-specific expression evaluator.
823 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
824 field.
825 * objc-lang.c (print_object_command): Take evaluate_exp from the
826 la_exp_desc field.
827
828 * Makefile.in (eval.o): Add dependency on parser-defs.h.
829
830 * eval.c: Include parser-defs.h for the full declaration of
831 la_exp_desc's type.
832 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
833
834 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
835
836 * parser-defs.h (operator_length): Declare.
837
838 * parse.c (length_of_subexp): Use operator_length to get operator
839 lengths and arities for operators.
840 Move most code to new operator_length function.
841 (operator_length): New function absorbing most code from
842 length_of_subexp.
843 (prefixify_subexp): Remove large case and use operator_length instead.
844 (parse_exp_1): Use renamings:
845 dump_prefix_expression => dump_raw_expression and
846 dump_postfix_expression => dump_prefix_expression.
847
848 * expression.h (dump_prefix_expression): Rename to ...
849 (dump_raw_expression): New name.
850 (dump_postfix_expression): Rename to ...
851 (dump_prefix_expression): New name.
852
853 * expprint.c (dump_subexp): Make global. Add comment.
854 Move most existing code to dump_subexp_body.
855 (dump_subexp_body): New function.
856 (dump_prefix_expression): Rename to dump_raw_expression.
857 Remove attempt to print the expression via print_expression: it can't
858 work before the expression is prefixified.
859 (dump_raw_expression): Renamed from dump_prefix_expression.
860 (dump_postfix_expression): Rename to dump_prefix_expression, since
861 that's what it does.
862 Remove 'note' parameter, since this routine must be used on
863 prefixified expression.
864 (dump_prefix_expression): Renamed from dump_postfix_expression.
865
866 2003-09-22 Jim Blandy <jimb@redhat.com>
867
868 * dwarf2read.c (read_array_type): When building the type for an
869 array of unspecified length, make sure to choose the upper bound
870 so that the array's total length comes out to be zero --- that's
871 how we represent such arrays.
872
873 2003-09-22 Michael Chastain <mec@shout.net>
874
875 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
876
877 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
878
879 * top.c (quit_force): Fix indirect call to quit_target so
880 a struct qt_args pointer is passed.
881
882 2003-09-22 Andrew Cagney <cagney@redhat.com>
883
884 * arch-utils.h (init_frame_pc_noop): Delete declaration.
885 * arch-utils.c (init_frame_pc_noop): Delete function.
886 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
887 "init_frame_pc".
888 * mips-tdep.c (mips_gdbarch_init): Ditto.
889 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
890 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
891 declaration.
892 (DEPRECATED_INIT_FRAME_PC): Delete macro.
893 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
894 declaration.
895 (DEPRECATED_INIT_FRAME_PC): Delete macro.
896
897 2003-09-22 Anthony Green <green@redhat.com>
898
899 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
900 declaration.
901
902 2003-09-20 Andrew Cagney <cagney@redhat.com>
903
904 * breakpoint.c: Eliminate ARGSUSED.
905 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
906 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
907 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
908 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
909 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
910 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
911 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
912 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
913 * wince.c, remote-vx.c: Ditto.
914
915 * cli/cli-script.c: Remove "register" attributes.
916 * config/pa/tm-hppa.h: Ditto.
917 * cli/cli-decode.c: Ditto.
918 * cli/cli-cmds.c: Ditto.
919
920 2003-09-19 Andrew Cagney <cagney@redhat.com>
921
922 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
923 DEPRECATED_NPC_REGNUM.
924 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
925
926 2003-09-19 Christopher Faylor <cgf@redhat.com>
927
928 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
929
930 2003-09-19 Jim Blandy <jimb@redhat.com>
931
932 * macrotab.c (macro_include): Use the correct comparison to find
933 the appropriate place for this inclusion in the list.
934
935 2003-09-19 Andrew Cagney <cagney@redhat.com>
936
937 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
938 (DEPRECATED_HPUX_TEXT_END): Define.
939 (deprecated_hpux_text_end): Declare.
940 (struct target_ops): Declare opaque.
941 * hppah-nat.c (text_end): Make static.
942 (deprecated_hpux_text_end): New function.
943 * exec.c (text_end): Delete global variable.
944 (NEED_TEXT_START_END): Do not define.
945 (exec_file_attach): Replace code computing "text_end" code with
946 call to DEPRECATED_HPUX_TEXT_END.
947
948 2003-09-19 Andrew Cagney <cagney@redhat.com>
949
950 * utils.c (align_up, align_down): New functions.
951 * defs.h (align_up, align_down): Declare.
952 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
953 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
954 and "align_down".
955 (round_up, round_down): Delete functions.
956 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
957 "align_down".
958 (ROUND_DOWN, ROUND_UP): Delete macros.
959 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
960 * h8300-tdep.c: Replace "round_up" and "round_down" with
961 "align_up" and "align_down".
962 (round_up, round_down): Delete macros.
963 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
964 "align_down".
965 (ROUND_UP, ROUND_DOWN): Delete macros.
966
967 2003-09-18 J. Brobecker <brobecker@gnat.com>
968
969 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
970 hard-coded constant. Use the proper machine name instead.
971
972 2003-09-17 Andrew Cagney <cagney@redhat.com>
973
974 * sparc-tdep.c (legacy_register_name): Delete function.
975 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
976 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
977 * infcmd.c (gdb_register_name): Delete variable.
978 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
979 REGISTER_NAME and "tm.h".
980 * gdbarch.h, gdbarch.c: Regenerate.
981 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
982 REGISTER_NAMES in comments.
983 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
984 * m68klinux-nat.c (regmap): Ditto.
985
986 2003-09-17 Jim Blandy <jimb@redhat.com>
987
988 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
989
990 2003-09-17 Andrew Cagney <cagney@redhat.com>
991
992 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
993 (ppcnbsd_init_abi): Set "use_struct_convention" to
994 "ppcnbsd_use_struct_convention".
995
996 2003-09-17 Mark Kettenis <kettenis@gnu.org>
997
998 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
999 * gdbarch.h, gdbarch.c: Regenerate.
1000 (stabs_argument_has_addr): New architecture method.
1001 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1002 * arch-utils.c: Include "buildsym.h".
1003 (default_stabs_argument_has_addr): New function.
1004 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1005 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1006
1007 2003-09-17 Andrew Cagney <cagney@redhat.com>
1008
1009 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1010 * gdbarch.h, gdbarch.c: Regenerate.
1011 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1012 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1013 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1014 * sparcnbsd-tdep.c: Update.
1015
1016 2003-09-17 Andrew Cagney <cagney@redhat.com>
1017
1018 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1019 * gdbarch.h, gdbarch.c: Regenerate.
1020 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1021 * d10v-tdep.c, frame.c: Update.
1022 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1023 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1024 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1025 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1026 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1027 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1028 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1029 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1030 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1031 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1032 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1033 * config/pa/nm-hppah.h: Update.
1034
1035 2003-09-16 Andrew Cagney <cagney@redhat.com>
1036
1037 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1038 "use_struct_convention" to "ppc_linux_use_struct_convention".
1039 (ppc_linux_use_struct_convention): New function.
1040 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1041 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1042 "rs6000_use_struct_convention".
1043 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1044 declaration.
1045 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1046 Delete function.
1047
1048 2003-09-16 Andrew Cagney <cagney@redhat.com>
1049
1050 * buildsym.c: Remove more occurances of "register".
1051 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1052 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1053 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1054 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1055 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1056 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1057 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1058 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1059
1060 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1061
1062 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1063 numbers to enumeration values.
1064 * sh-tdep.c: Accomodate above change.
1065 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1066 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1067 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1068 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1069 (IS_FPUSH): Rename from IS_FMOV.
1070 (sh_extract_struct_value_address): Remove useless comment.
1071 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1072 instead of own local values.
1073 (sh_dump_tdep): Remove.
1074 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1075 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1076
1077 2003-09-15 Andrew Cagney <cagney@redhat.com>
1078
1079 * doublest.c (convert_floatformat_to_doublest): No longer need to
1080 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1081
1082 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1083
1084 * values.c (unpack_double): Call floatformat_is_valid.
1085
1086 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1087
1088 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1089 ps_strings into a long.
1090
1091 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1092 _initialize_am64fbsd_nat.
1093
1094 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1095
1096 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1097 associated with DW_AT_ranges attribute is out of bounds.
1098
1099 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1100
1101 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1102
1103 2003-09-14 Michael Chastain <mec@shout.net>
1104
1105 * config/m68k/nm-apollo68v.h: Delete.
1106 * config/m68k/xm-apollo68v.h: Delete.
1107
1108 2003-09-14 Andrew Cagney <cagney@redhat.com>
1109
1110 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1111 * dcache.c: Update copyrights and descriptions.
1112 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1113
1114 2003-09-14 Andrew Cagney <cagney@redhat.com>
1115
1116 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1117 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1118
1119 2003-09-14 Andrew Cagney <cagney@redhat.com>
1120
1121 * alpha-nat.c: Remove some occurances of "register".
1122 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1123 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1124 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1125 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1126 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1127 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1128 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1129 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1130 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1131 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1132 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1133 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1134 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1135 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1136 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1137 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1138 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1139 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1140 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1141 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1142 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1143 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1144
1145 2003-09-13 Andrew Cagney <cagney@redhat.com>
1146
1147 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1148 * ppc-tdep.h (struct regcache): Declare opaque.
1149 * objfiles.h (struct objfile_data): Declare opaque.
1150 * cp-support.h (struct objfile): Declare opaque.
1151 * linux-nat.h (target_waitstatus): Declare opaque.
1152
1153 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1154
1155 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1156 (stabs_argument_has_addr): New architecture method.
1157 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1158 * arch-utils.c: Include "buildsym.h".
1159 (default_stabs_argument_has_addr): New function.
1160 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1161 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1162
1163 * cris-tdep.c (cris_gdbarch_init): Set
1164 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1165 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1166 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1167 * mips-tdep.c (mips_gdbarch_init): Likewise.
1168 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1169 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1170
1171 2003-09-13 Andrew Cagney <cagney@redhat.com>
1172
1173 * values.c (using_struct_return): Delete "function" and "funcaddr"
1174 parameters.
1175 * value.h (using_struct_return): Update declaration.
1176 * infcmd.c (finish_command_continuation): Update.
1177 (finish_command): Update.
1178 * infcall.c (call_function_by_hand): Update.
1179 * eval.c (evaluate_subexp_standard): Update.
1180
1181 2003-09-13 Christopher Faylor <cgf@redhat.com>
1182
1183 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1184 SSE registers since gdb will not operate correctly without this.
1185 Restore include file ordering munged in previous change.
1186 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1187
1188 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1189
1190 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1191 REG_STRUCT_HAS_ADDR.
1192 * gdbarch.c, gdbarch.h: Updated.
1193 * infcall.c (call_function_by_hand): Update.
1194 * stabsread.c (define_symbol): Updated.
1195
1196 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1197
1198 2003-09-12 Christopher Faylor <cgf@redhat.com>
1199
1200 * win32-nat.c: Reorganize so that defines used by target headers are
1201 actually defined by the system headers.
1202 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1203 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1204
1205 2003-09-12 Jim Blandy <jimb@redhat.com>
1206
1207 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1208 the file has no .data, .bss, or .rodata sections. Instead wait
1209 until we see a variable alleged to live in one of those sections.
1210
1211 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1212 .bss section, presume that any variables we find live in the
1213 .rodata section.
1214
1215 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1216 offsets for global and static variables.
1217
1218 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1219 symbol types are, by definition, in the .data section, so it is
1220 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1221 If there is no .data section, there should be no N_DATA or N_DATA
1222 | N_EXT symbols.
1223
1224 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1225
1226 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1227 (amd64fbsd_sigcontext_addr): Rewrite.
1228 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1229 with correct values.
1230 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1231 (amd64fbsd_init_abi): Fix typo.
1232
1233 2003-09-12 Andrew Cagney <cagney@redhat.com>
1234
1235 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1236 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1237
1238 2003-09-12 Andrew Cagney <cagney@redhat.com>
1239
1240 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1241 "entry_file_highpc". Update comments.
1242 * defs.h (deprecated_inside_entry_file): Rename
1243 "inside_entry_file".
1244 * blockframe.c (deprecated_inside_entry_file): Rename
1245 "inside_entry_file".
1246 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1247 * vax-tdep.c (vax_frame_chain): Update.
1248 * sh64-tdep.c (sh64_frame_chain): Update.
1249 * sh-tdep.c (sh_frame_chain): Update.
1250 * rs6000-tdep.c (rs6000_frame_chain): Update.
1251 * ns32k-tdep.c (ns32k_frame_chain): Update.
1252 * mips-tdep.c (mips_frame_chain): Update.
1253 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1254 * m32r-tdep.c (m32r_frame_this_id): Update.
1255 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1256 * frv-tdep.c (frv_frame_this_id): Update.
1257 * d10v-tdep.c (d10v_frame_this_id): Update.
1258 * cris-tdep.c (cris_frame_chain): Update.
1259 * blockframe.c (legacy_frame_chain_valid): Update.
1260 * avr-tdep.c (avr_frame_this_id): Update.
1261 * arm-tdep.c (arm_prologue_this_id): Update.
1262 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1263 * objfiles.c (objfile_relocate): Update.
1264 * mipsread.c (mipscoff_symfile_read): Update.
1265 (mipscoff_symfile_read): Update.
1266 * mdebugread.c (parse_partial_symbols): Update.
1267 * dwarfread.c (read_file_scope): Update.
1268 * dwarf2read.c (read_file_scope): Update.
1269 * dbxread.c (read_dbx_symtab): Update.
1270 (read_dbx_symtab): Update.
1271 * coffread.c (complete_symtab): Update.
1272
1273 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1274
1275 * top.c (quit_target): New static helper function.
1276 (quit_force): Moved code to quit_target(). Call quit_target()
1277 via catch_errors() to catch errors during quit.
1278
1279 2003-09-11 David Carlton <carlton@kealia.com>
1280
1281 * buildsym.c (finish_block): Use allocate_block to allocate the
1282 block.
1283 * mdebugread.c (new_block): Add FIXME.
1284
1285 2003-09-11 David Carlton <carlton@kealia.com>
1286
1287 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1288 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1289 (recursive_dump_type): Ditto.
1290 * printcmd.c (print_formatted): Ditto.
1291 * typeprint.c (print_type_scalar): Ditto.
1292 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1293 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1294 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1295 maint_cplus_cmd_list.
1296 * cp-support.c: Make maint_cplus_cmd_list extern.
1297 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1298 command.h.
1299 (lookup_symbol_file): Look in possible namespace blocks when
1300 appropriate.
1301 (initialize_namespace_symtab): New.
1302 (get_possible_namespace_block, free_namespace_block)
1303 (check_possible_namespace_symbols)
1304 (check_possible_namespace_symbols_loop)
1305 (check_one_possible_namespace_symbol)
1306 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1307 (_initialize_cp_namespace): Ditto.
1308 * block.h: Declare allocate_block.
1309 * block.c (allocate_block): New.
1310 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1311 allocate_block.
1312 * symfile.h: Update declaration of add_psymbol_to_list.
1313 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1314 question.
1315 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1316 scan_partial_symbols_call.
1317 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1318 helper functions.
1319 (add_partial_symbol): If necessary, scan mangled names for names
1320 of namespaces.
1321 (add_partial_namespace): Add NAMESPACE argument; generate partial
1322 symbols associated to namespaces.
1323 (add_partial_enumeration): Add NAMESPACE argument.
1324 (new_symbol): Allow namespace syms.
1325 (read_namespace): Generate namespace syms.
1326 * objfiles.h: Add opaque declaration of struct symtab.
1327 (struct objfile): Add cp_namespace_symtab member.
1328 * objfiles.c (allocate_objfile): Set
1329 objfile->cp_namespace_symtab.
1330 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1331 dictionary_h, command_h.
1332
1333 2003-09-11 Andrew Cagney <cagney@redhat.com>
1334
1335 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1336 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1337 near the function's end.
1338 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1339 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1340 regcache_raw_write_signed to set SP_REGNUM.
1341
1342 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1343
1344 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1345 orig_addrs is set up properly.
1346
1347 2003-09-11 Andrew Cagney <cagney@redhat.com>
1348
1349 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1350 * gdbarch.h, gdbarch.c: Re-generate.
1351 * infcall.c (call_function_by_hand): Update.
1352 * hppa-tdep.c (hppa_push_arguments): Update.
1353 * ada-lang.c (place_on_stack): Update.
1354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1355 * sparc-tdep.c (sparc_gdbarch_init): Update.
1356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1357 * hppa-tdep.c (hppa_gdbarch_init): Update.
1358 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1359 stack_align.
1360
1361 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1362
1363 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1364 register do need a frame.
1365
1366 2003-09-11 Andrew Cagney <cagney@redhat.com>
1367
1368 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1369 buildable since GDB 5.0.
1370 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1371 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1372 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1373 * irix4-nat.c: Delete file.
1374 * config/mips/irix4.mh: Delete file.
1375 * config/mips/irix3.mh: Delete file.
1376 * config/mips/irix3.mt: Delete file.
1377 * config/mips/tm-irix3.h: Delete file.
1378 * config/mips/nm-irix3.h: Delete file.
1379 * config/mips/xm-irix3.h: Delete file.
1380 * config/mips/nm-irix4.h: Delete file.
1381 * config/mips/xm-irix4.h: Delete file.
1382 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1383
1384 2003-09-10 J. Brobecker <brobecker@gnat.com>
1385
1386 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1387 * Makefile.in (hppa-tdep.o): Update dependencies.
1388
1389 2003-09-10 James E Wilson <wilson@specifixinc.com>
1390
1391 * MAINTAINERS: Change my e-mail address. Move to paper trail
1392 section.
1393
1394 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1395
1396 * MAINTAINERS (frv): New ISA entry.
1397
1398 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1399
1400 * frv-tdep.c (dis-asm.h): Include.
1401 * Makefile.in (frv-tdep.o): Update dependencies.
1402
1403 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1404
1405 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1406 Fix typo for high range of floating registers.
1407
1408 2003-09-09 David Carlton <carlton@kealia.com>
1409
1410 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1411 highpc initialization here out of scan_partial_symbols.
1412 (scan_partial_symbols): Restructure into a recursive version,
1413 calling add_partial_namespace and add_partial_enumeration when
1414 appropriate.
1415 (add_partial_namespace): New.
1416 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1417
1418 2003-09-09 Andrew Cagney <cagney@redhat.com>
1419
1420 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1421 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1422 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1423 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1424
1425 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1426 (rs6000_push_dummy_call): Set the "TOC" register.
1427
1428 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1429 methods "max_register_raw_size", "max_register_virtual_size" or
1430 "register_virtual_size".
1431
1432 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1433
1434 * MAINTAINERS: Update my e-mail address.
1435
1436 2003-09-09 Andrew Cagney <cagney@redhat.com>
1437
1438 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1439 (rs6000_push_dummy_call): Store the struct return address.
1440 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1441
1442 2003-09-09 Andrew Cagney <cagney@redhat.com>
1443
1444 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1445 "ppc_sysv_abi_push_arguments".
1446 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1447 "ppc_sysv_abi_push_arguments".
1448 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1449 instead of "push_arguments".
1450 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1451
1452 2003-09-09 Andrew Cagney <cagney@redhat.com>
1453
1454 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1455 instead of CALL_DUMMY_ADDRESS.
1456
1457 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1458
1459 * p-lang.c: Eliminate "register".
1460 * c-lang.c: Ditto.
1461 * expprint.c: Ditto.
1462 * f-lang.c: Ditto.
1463 * jv-lang.c: Ditto.
1464 * language.c: Ditto.
1465 * m2-lang.c: Ditto.
1466 * parse.c: Ditto.
1467 * scm-lang.c: Ditto.
1468 * objc-lang.c: Ditto.
1469
1470 2003-09-09 Nick Clifton <nickc@redhat.com>
1471
1472 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1473
1474 2003-09-04 Andrew Cagney <cagney@redhat.com>
1475
1476 * avr-tdep.c: Include "dis-asm.h".
1477 * cris-tdep.c: Include "dis-asm.h".
1478 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1479 instead of corresponding typedef.
1480 * h8300-tdep.c: Include "dis-asm.h".
1481 * ia64-tdep.c: Include "dis-asm.h".
1482 * i386-tdep.c: Include "dis-asm.h".
1483 (i386_print_insn): Use "struct disassemble_info" instead of
1484 corresponding typedef.
1485 * m68k-tdep.c: Include "dis-asm.h".
1486 * mcore-tdep.c: Include "dis-asm.h".
1487 * mips-tdep.c: Include "dis-asm.h".
1488 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1489 instead of corresponding typedef.
1490 * ns32k-tdep.c: Include "dis-asm.h".
1491 * s390-tdep.c: Include "dis-asm.h".
1492 * sparc-tdep.c: Include "dis-asm.h".
1493 * vax-tdep.c: Include "dis-asm.h".
1494 * v850-tdep.c: Include "dis-asm.h".
1495 * mn10300-tdep.c: Include "dis-asm.h".
1496 * rs6000-tdep.c: Include "dis-asm.h".
1497 * xstormy16-tdep.c: Include "dis-asm.h".
1498 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1499 print_insn_xstormy16.
1500 * Makefile.in (v850-tdep.o): Update dependencies.
1501 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1502 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1503 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1504 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1505 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1506 (gdbarch_h): Remove $(dis_asm_h).
1507 * disasm.c: Include "dis-asm.h".
1508 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1509 corresponding typedef.
1510 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1511 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1512 * gdbarch.sh: Do not include "dis-asm.h".
1513 (struct disassemble_info): Declare opaque.
1514 (TARGET_PRINT_INSN): Update declaration.
1515 * gdbarch.h, gdbarch.c: Re-generate.
1516
1517 2003-09-08 Andrew Cagney <cagney@redhat.com>
1518
1519 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1520 CALL_DUMMY_ADDRESS, change to a predicate.
1521 * gdbarch.h, gdbarch.c: Re-generate.
1522 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1523 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1524 * infcall.c (call_function_by_hand): Ditto.
1525 * sparc-tdep.c (sparc_push_return_address): Ditto.
1526 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1527 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1528 CALL_DUMMY_ADDRESS with entry_point_address.
1529 * v850-tdep.c (v850_push_return_address): Ditto.
1530 * s390-tdep.c (s390_push_return_address): Ditto.
1531 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1532 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1533 * mcore-tdep.c (mcore_push_return_address): Ditto.
1534 * cris-tdep.c (cris_push_return_address): Ditto.
1535 * arm-tdep.c (arm_push_return_address): Ditto.
1536
1537 2003-09-08 Andrew Cagney <cagney@redhat.com>
1538
1539 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1540 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1541 and REG_UNMODIFIED to REG_SAME_VALUE.
1542 (execute_cfa_program): Update.
1543 (dwarf2_frame_cache): Update. Initialize table to
1544 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1545 location.
1546 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1547
1548 2003-09-08 Andrew Cagney <cagney@redhat.com>
1549
1550 * gnu-nat.c: Remove "inline" function attribute.
1551 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1552
1553 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1554
1555 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1556 target.
1557
1558 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1559
1560 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1561 (frame_extra_info): Rename this struct to frv_unwind_cache.
1562 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1563 Add fields ``prev_sp'' and ``base''.
1564 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1565 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1566 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1567 Delete.
1568 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1569 Revise all callers. Fill in the unwind cache argument and make
1570 other adjustments to account for new frame mechanisms.
1571 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1572 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1573 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1574 (frv_frame_unwind, frv_frame_base): New structs.
1575 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1576 additional arguments expected by this method and adjust function
1577 body accordingly.
1578 (frv_gdbarch_init): Remove calls to the following functions:
1579 set_gdbarch_deprecated_init_frame_pc(),
1580 set_gdbarch_deprecated_saved_pc_after_call(),
1581 set_gdbarch_deprecated_frame_chain(),
1582 set_gdbarch_deprecated_frame_saved_pc(),
1583 set_gdbarch_deprecated_frame_init_saved_regs(),
1584 set_gdbarch_deprecated_push_arguments(),
1585 set_gdbarch_deprecated_push_return_address(),
1586 set_gdbarch_deprecated_pop_frame(),
1587 set_gdbarch_deprecated_call_dummy_words(),
1588 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1589 set_gdbarch_deprecated_init_extra_frame_info(),
1590 set_gdbarch_deprecated_dummy_write_sp(), and
1591 set_gdbarch_deprecated_pc_in_call_dummy().
1592 Add calls to the following functions:
1593 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1594 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1595 frame_base_set_default().
1596 * Makefile.in (frv-tdep.o): Update dependencies.
1597
1598 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1599
1600 * dwarf2-frame.c (read_encoded_value): Add support for
1601 DW_EH_PE_aligned encoding.
1602
1603 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1604
1605 * infrun.c (normal_stop): Don't print a message if the inferior
1606 has exited.
1607
1608 2003-09-08 Jim Blandy <jimb@redhat.com>
1609
1610 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1611 * dbxread.c: #include "gdb_assert.h".
1612 (read_dbx_symtab): If the objfile has no .data section, use the
1613 section index for the .bss section instead.
1614
1615 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1616
1617 * frame.c (deprecated_safe_get_selected_frame): New function.
1618 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1619 * findvar.c (read_var_value): Call it.
1620
1621 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1622
1623 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1624 (sh64-tdep.o): Add dependencies.
1625 * configure.tgt: Add FIXME to sh-*-linux*.
1626 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1627 (sh_gdbarch_init): Always set correct sh_show_regs function
1628 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1629 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1630 * sh64-tdep.c: New file, containing all sh64 related code from
1631 sh-tdep.c.
1632 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1633 * config/sh/linux.mt (TDEPFILES): Ditto.
1634 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1635 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1636 * config/sh/wince.mt (TDEPFILES): Ditto.
1637
1638 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1639
1640 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1641 (stop_wait_callback): Handle !lp->signalled also.
1642 (lin_lwp_has_pending, flush_callback): New functions.
1643 (lin_lwp_wait): Call flush_callback.
1644 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1645 (linux_proc_pending_signals): New function.
1646 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1647
1648 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1649
1650 From Nick Kelsey <nickk@ubicom.com>:
1651 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1652 when the stop PC is at the beginning of a function also.
1653
1654 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1655
1656 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1657 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1658
1659 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1660
1661 * sol-thread.c: Include "gdb_string.h".
1662
1663 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1664
1665 * gcore.c: Reorder include files in alphabetical order. Include
1666 "gdb_assert.h". Various coding style fixes.
1667 (derive_stack_segment, derive_heap_segment): Replace check for
1668 non-null BOTTOM and TOP with gdb_assert.
1669 (derive_heap_segment): Replace check for successful creation of
1670 ZERO with gdb_assert.
1671 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1672
1673 2003-09-04 Andrew Cagney <cagney@redhat.com>
1674
1675 * thread-db.c (verbose_dlsym): New function.
1676 (thread_db_load): Use verbose_dlsym
1677 (thread_db_new_objfile): Print that libthread_db was loaded, and
1678 that thread debugging was enabled.
1679
1680 2003-09-04 Andrew Cagney <cagney@redhat.com>
1681
1682 * configure.tgt: Add "mips64*-*-*" target. Delete
1683 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1684 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1685 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1686 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1687 mips*-sony-*, and mips64*-*-elf* targets.
1688 * config/mips/embedl.mt: Delete file.
1689 * config/mips/embedl64.mt: Delete file.
1690 * config/mips/mips.mt: Delete file.
1691 * config/mips/mips64.mt: Delete file.
1692 * config/mips/tm-embed.h: Delete file.
1693 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1694 * config/mips/embed64.mt: Delete out-of-date comment.
1695
1696 2003-09-04 Andrew Cagney <cagney@redhat.com>
1697
1698 * hppa-tdep.c (hppa_gdbarch_init): Set
1699 "have_nonsteppable_watchpoint".
1700 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1701 * mips-tdep.c (mips_dump_tdep): Do not print
1702 HAVE_NONSTEPPABLE_WATCHPOINT.
1703 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1704 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1705 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1706 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1707
1708 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1709
1710 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1711 unused code. Add comment.
1712
1713 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1714
1715 * breakpoint.c (watchpoint_check): Check for pc being in an
1716 epilogue if watchpoint frame couldn't be found.
1717
1718 2003-09-04 Andrew Cagney <cagney@redhat.com>
1719
1720 * Makefile.in: Re-generate all dependencies.
1721
1722 2003-09-03 Andrew Cagney <cagney@redhat.com>
1723
1724 * arch-utils.h (legacy_print_insn): Delete declaration.
1725 * arch-utils.c (legacy_print_insn): Delete function.
1726 * disasm.c (deprecated_tm_print_insn_info): Delete.
1727 (_initialize_disasm): Delete function, contained code initializing
1728 deprecated_tm_print_insn_info.
1729 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1730 (deprecated_tm_print_insn_info): Delete.
1731 (TARGET_PRINT_INSN): Do not provide a default.
1732 * gdbarch.h, gdbarch.c: Re-generate.
1733
1734 2003-09-03 Andrew Cagney <cagney@redhat.com>
1735
1736 * disasm.c (fprintf_disasm): New function.
1737 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1738 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1739 reverts 2003-08-14 change.
1740 (_initialize_disasm): Call "init_disassemble_info", instead of
1741 INIT_DISASSEMBLE_INFO_NO_ARCH.
1742
1743 2003-09-03 Michael Snyder <msnyder@redhat.com>
1744
1745 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1746
1747 2003-09-03 Andrew Cagney <cagney@redhat.com>
1748
1749 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1750 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1751 * symfile.c (syms_from_objfile): Update.
1752 (reread_symbols): `Update
1753 * exec.c (exec_file_attach): Update.
1754 (exec_file_attach): Update.
1755 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1756 2003-08-29 change.
1757 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1758
1759 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1760
1761 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1762 trad-frame.h.
1763 (arm_get_cache): Delete macro.
1764 (struct arm_prologue_cache): Update comments. Make saved_regs into
1765 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1766 to prev_sp.
1767 (thumb_scan_prologue): Update for cache changes. Don't call
1768 DEPRECATED_PC_IN_CALL_DUMMY.
1769 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1770 argument and use it in desperation search for our prologue. Do not
1771 search past the specified PC.
1772 (arm_make_prologue_cache): Simplify.
1773
1774 (arm_prologue_this_id, arm_prologue_prev_register)
1775 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1776 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1777 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1778 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1779 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1780
1781 (arm_frame_chain_valid, arm_find_callers_reg)
1782 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1783 (arm_pop_frame): Delete obsolete methods.
1784 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1785
1786 (arm_gdbarch_init): Update for new frame methods. Register prologue
1787 and sigtramp unwinders. Set the default frame base method.
1788
1789 * Makefile.in (arm-tdep.o): Update dependencies.
1790 * varobj.c (find_frame_addr_in_frame_chain): Call
1791 get_frame_base_address.
1792 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1793
1794 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1795
1796 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1797 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1798 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1799 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1800 Take NEXT_FRAME and CACHE arguments. Call
1801 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1802 Set unwound_pc in CACHE instead of modifying the frame argument.
1803 Don't bother checking the frame type when looking for sigtramp
1804 frames.
1805 (arm_make_prologue_cache, arm_frame_chain)
1806 (arm_init_extra_frame_info): New functions.
1807
1808 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1809
1810 * arm-tdep.c (arm_get_cache): Define.
1811 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1812 unwound_sp, unwound_pc, and saved_regs.
1813 (thumb_scan_prologue): Take a cache instead of the frame.
1814 (arm_scan_prologue): Likewise.
1815 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1816 instead of a temporary frame.
1817 (arm_init_extra_frame_info): Allocate and use a cache.
1818 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1819
1820 2003-09-03 Andrew Cagney <cagney@redhat.com>
1821
1822 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1823 * config/mips/wince.mt (TM_CLIBS): Ditto.
1824 * config/sh/wince.mt (TM_CLIBS): Ditto.
1825 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1826 * config/sparc/sp64.mt (CC): Delete.
1827
1828 2003-09-03 Andrew Cagney <cagney@redhat.com>
1829
1830 * defs.h: Do not include "arch-utils.h".
1831 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1832 GDB_MULTI_ARCH_PURE.
1833 * configure.in (GDB_MULTI_ARCH): Do not define.
1834 * configure, config.in: Regenerate.
1835 * configure.tgt: Do not set variable "gdb_multi_arch".
1836 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1837 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1838 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1839 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1840 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1841 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1842 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1843 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1844 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1845 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1846 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1847 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1848 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1849 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1850 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1851 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1852 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1853 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1854
1855 2003-08-30 Michael Chastain <mec@shout.net>
1856
1857 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1858 * config/m68k/nm-hp300hpux.h: Delete.
1859 * config/m68k/tm-hp300hpux.h: Delete.
1860 * config/m68k/xm-hp300hpux.h: Delete.
1861 * config/m68k/xm-hp300bsd.h: Delete.
1862 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1863 tm-hp300hpux.h, xm-hp300hpux.h.
1864 * somsolib.c: Remove comment about hp300 shared libraries.
1865
1866 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1867
1868 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1869 Only define PTRACE_GET_THREAD_AREA is not already defined.
1870 Various style fixes in code and comments and some additional
1871 spelling fixes in comments. Move after functions dealing with
1872 debug registers.
1873 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1874 Fix coding-style.
1875
1876 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1877 frame_unwind_register_unsigned instead of
1878 frame_unwind_unsigned_register.
1879
1880 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1881
1882 * configure.in: Search for gethostbyname in libnsl.
1883 * configure: Regenerated.
1884
1885 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1886
1887 * configure.in: Remove redundant AC_MSG_RESULT in check for
1888 uintptr_t in stdint.h.
1889 * configure: Regenerated.
1890
1891 * amd64-nat.h (struct regcache): Add opaque declaration.
1892
1893 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1894 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1895 Change "register array" to "register cache" in comments.
1896 (x86_64_linux_gregset64_reg_offset): New variable.
1897 (GETREGS_SUPPLIES): Remove macro.
1898 (supply_gregset): Call amd64_supply_native_gregset instead of
1899 x86_64_linux_supply_gregset.
1900 (fill_gregset): Rename `regno' to `regnum'. Call
1901 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1902 (store_regs): Rename `regno' to `regnum'.
1903 (store_fpregs): Rename `regno' to `regnum'.
1904 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1905 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1906 Reorganize function a bit.
1907 (store_inferior_registers): Rename `regno' to `regnum'. Use
1908 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1909 Reorganize function a bit.
1910 (_initialize_x86_64_linux_nat): New function.
1911 * config/i386/x86-64linux.mh.
1912
1913 2003-08-29 Andrew Cagney <cagney@redhat.com>
1914
1915 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1916 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1917 (target_remove_watchpoint): Delete macro.
1918 (target_insert_watchpoint): Delete macro.
1919 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1920 (remote_mips_stopped_by_watchpoint): Delete declaration.
1921 (remote_mips_remove_watchpoint): Delete declaration.
1922 (remote_mips_set_watchpoint): Delete declaration.
1923 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1924 * remote-mips.c (_initialize_remote_mips): Set
1925 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1926 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1927 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1928 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1929 (mips_stopped_by_watchpoint): Rename
1930 remote_mips_stopped_by_watchpoint.
1931 (mips_can_hardware_watchpoint): Rename
1932 remote_mips_can_use_hardware_watchpoint, update function
1933 signature.
1934
1935 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1936
1937 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1938 USER_DS. We haven't given them a register number yet.
1939
1940 * amd64-nat.h: New file.
1941 * amd64-nat.c: New file.
1942 * amd64fbsd-nat.c: Include "amd64-nat.h".
1943 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1944 (amd64fbsd32_r_reg_offset): New variable.
1945 (supply_gregset): Simply call amd64_supply_native_gregset.
1946 (fill_gregset): Rename `regno' to `regnum'. Simply call
1947 amd64_collect_native_gregset.
1948 (fill_fpregset): Rename `regno' to `regnum'.
1949 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1950 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1951 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1952 `fpregset_t'. Call amd64_supply_native_gregset instead of
1953 supply_gregset. Call x86_64_supply_fxsave instead of
1954 supply_fpregset.
1955 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1956 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1957 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1958 `fpregset_t'. Call amd64_collect_native_gregset instead of
1959 fill_gregset. Call x86_64_collect_fxsave instead of
1960 fill_fpregset.
1961 (_initialize_am64fbsd_nat): Initialize
1962 amd64_native_gregset32_reg_offset and
1963 amd64_native_gregset64_reg_offset.
1964 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1965
1966 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1967 null pointer. Fix typo in comment.
1968
1969 * regcache.c (supply_register): Reimplement to call
1970 regcache_raw_supply.
1971 (regcache_collect): Reimplement by calling regcache_raw_collect.
1972
1973 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1974
1975 * regcache.c (register_buffer): Consitify first argument.
1976 (regcache_raw_supply, regcache_raw_collect): New
1977 functions.
1978
1979 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1980
1981 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1982 by Nathan J. Williams.
1983
1984 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1985
1986 * lin-lwp.c (wait_lwp): New function, copied from
1987 stop_wait_callback. Clean up.
1988 (stop_wait_callback): Use wait_lwp.
1989
1990 2003-08-28 Andrew Cagney <cagney@redhat.com>
1991
1992 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1993 flavour and disassembler options.
1994 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1995 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1996 deprecated_tm_print_insn_info.
1997
1998 2003-08-27 Andrew Cagney <cagney@redhat.com>
1999
2000 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2001 Use target_read_memory.
2002 (s390_get_frame_info): Update. Do not reference
2003 deprecated_tm_print_insn_info.
2004 (s390_check_function_end, s390_is_sigreturn): Ditto.
2005
2006 2003-08-27 Andrew Cagney <cagney@redhat.com>
2007
2008 * Makefile.in (cris-tdep.o): Update dependencies.
2009 * cris-tdep.c: Include "gdb_assert.h".
2010 (cris_gdbarch_init): Set print_insn.
2011 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2012 (cris_delayed_get_disassembler): Simplify, directly call the
2013 disassembler returned by cris_get_disassembler.
2014 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2015 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2016 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2017 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2018 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2019 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2020 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2021 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2022 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2023 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2024 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2025 (gdb_print_insn_sparc): Delete function.
2026 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2027 deprecated_tm_print_insn_info.
2028 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2029 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2030 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2032 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2033 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2034 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2035 (s390_gdbarch_init): Set print_insn.
2036
2037 2003-08-27 Andrew Cagney <cagney@redhat.com>
2038
2039 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2040 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2041 * infcall.c (call_function_by_hand): Convert the entry point
2042 address into a code address.
2043
2044 2003-08-27 Andrew Cagney <cagney@redhat.com>
2045
2046 * dsrec.c: Include "gdb_string.h".
2047 * Makefile.in (dsrec.o): Update dependencies.
2048
2049 2003-08-27 Michael Chastain <mec@shout.net>
2050
2051 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2052
2053 2003-08-27 Andrew Cagney <cagney@redhat.com>
2054
2055 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2056 (alpha_osf1_init_abi): Do not set call_dummy_address.
2057
2058 2003-08-27 David Carlton <carlton@kealia.com>
2059
2060 From Randolph Chung <tausq@debian.org>:
2061 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2062 compiles with -Wformat-nonliteral -Werror.
2063
2064 2003-08-26 Jim Blandy <jimb@redhat.com>
2065
2066 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2067 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2068 bfd_lookup_symbol, since we only want symbols in code sections.
2069 (look_for_base): Pass zero as the SECT_FLAGS argument to
2070 bfd_lookup_symbol, since we're not concerned about which section
2071 the symbol is in.
2072
2073 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2074
2075 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2076 we are frameless or the return address register is already known.
2077
2078 2003-08-26 Andrew Cagney <cagney@redhat.com>
2079
2080 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2081 in size. Add comments.
2082
2083 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2084
2085 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2086 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2087
2088 2003-08-26 Jason Merrill <jason@redhat.com>
2089
2090 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2091 case out of #ifdef MIPS block.
2092
2093 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2094
2095 PR java/1322
2096 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2097 available before calling SECT_OFF_TEXT.
2098 * PROBLEMS: Remove description of java/1322.
2099
2100 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2101
2102 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2103 bof, and nat0-nat127 as pseudo-registers.
2104 (ia64_frame_cache): New struct used to cache frame info.
2105 (ia64_register_reggroup_p): New routine used to override default
2106 register grouping so registers without names are still saved and
2107 restored.
2108 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2109 pseudo values.
2110 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2111 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2112 (ia64_alloc_frame_cache): New routine to create a new
2113 ia64_frame_cache.
2114 (examine_prologue): Change prototype to add next_frame pointer.
2115 Assume frameless until otherwise proven. Verify that the cfm for
2116 current frame matches the cfm that should occur for the prologues
2117 alloc insn and if equal, mark as not frameless. At end of routine,
2118 if not frameless, calculate registers for the previous frame and store
2119 in the cache, if a cache is provided.
2120 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2121 and pass 0 for next_frame.
2122 (ia64_store_return_value): Change to use convert_typed_floating()
2123 instead of calling ia64_convert_to_raw().
2124 (ia64_extract_return_value): Change to use convert_typed_floating()
2125 instead of calling ia64_convert_to_virtual().
2126 (ia64_frame_cache): New routine to support new frame model.
2127 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2128 (ia64_frame_sniffer): Ditto.
2129 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2130 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2131 (ia64_sigtramp_frame_prev_register): Ditto.
2132 (ia64_sigtramp_frame_sniffer): Ditto.
2133 (ia64_frame_base_address): Ditto.
2134 (ia64_extract_struct_value_address): Change to issue error message.
2135 (ia64_frame_align): New routine to align sp.
2136 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2137 (ia64_push_arguments): Removed. Logic moved to
2138 ia64_push_dummy_call().
2139 (ia64_push_return_address): Ditto.
2140 (ia64_unwind_dummy_id): New function.
2141 (ia64_unwind_pc): Ditto.
2142 (ia64_convert_register_p): Ditto.
2143 (ia64_register_to_value): Ditto.
2144 (ia64_value_to_register): Ditto.
2145 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2146 (ia64_register_byte, ia64_register_raw_size): Ditto.
2147 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2148 (ia64_saved_pc_after_call): Ditto.
2149 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2150 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2151 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2152 (ia64_register_convert_to_raw): Ditto.
2153 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2154 (ia64_init_extra_frame_info): Ditto.
2155 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2156 (ia64_gdbarch_init): Remove registering of deprecated functions that
2157 are no longer used. Add registration of new gdbarch functions.
2158 Remove registering deprecated_write_sp. Replace
2159 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2160 Delete set_gdbarch_deprecated_register_convertible(),
2161 set_gdbarch_deprecated_register_convert_to_virtual(), and
2162 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2163 set_gdbarch_deprecated_register_size(),
2164 set_gdbarch_deprecated_register_bytes(),
2165 set_gdbarch_pcregnum(),
2166 set_gdbarch_deprecated_register_byte(),
2167 set_gdbarch_deprecated_register_raw_size(),
2168 set_gdbarch_deprecated_max_register_raw_size(),
2169 set_gdbarch_deprecated_register_virtual_size(),
2170 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2171 Replace set_gdbarch_deprecated_extract_return_value() with
2172 set_gdbarch_extract_return_value(). Remove calls to:
2173 set_gdbarch_deprecated_saved_pc_after_call();
2174 set_gdbarch_deprecated_frame_chain(),
2175 set_gdbarch_deprecated_frame_saved_pc(),
2176 set_gdbarch_deprecated_frame_init_saved_regs(),
2177 set_gdbarch_deprecated_get_saved_register(),
2178 set_gdbarch_deprecated_call_dummy_words(),
2179 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2180 set_gdbarch_deprecated_init_extra_frame_info(),
2181 set_gdbarch_deprecated_frame_args_address(),
2182 set_gdbarch_deprecated_frame_locals_address(),
2183 and set_gdbarch_deprecated_dummy_write_sp().
2184 Add set_gdbarch_convert_register_p(),
2185 set_gdbarch_register_to_value(),
2186 set_gdbarch_value_to_register(),
2187 set_gdbarch_push_dummy_call(),
2188 set_gdbarch_frame_align(),
2189 set_gdbarch_unwind_dummy_id(),
2190 set_gdbarch_unwind_pc(),
2191 frame_unwind_append_sniffer(),
2192 frame_unwind_append_sniffer(),
2193 and frame_base_set_default().
2194
2195 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2196
2197 * configure.tgt: Document need for special "mipsisa64" handling.
2198 (mipsisa64*-*-linux64): Handle as target linux64.
2199 (mipsisa64*-*-*): Handle as target embed64.
2200
2201 2003-08-18 Michael Chastain <mec@shout.net>
2202
2203 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2204 objfile bug.
2205
2206 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2207
2208 * i387-tdep.h: Update copyright date.
2209 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2210
2211 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2212 CFLAGS games to reflect reality.
2213
2214 2003-08-24 Andrew Cagney <cagney@redhat.com>
2215
2216 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2217 GDB_MULTI_ARCH is always non-zero.
2218 * osabi.c (_initialize_gdb_osabi): Ditto.
2219 (gdbarch_init_osabi): Ditto.
2220 * sparc-tdep.c: Ditto for #if code.
2221
2222 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2223
2224 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2225 Update comments.
2226 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2227 comments.
2228 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2229 x86_64_supply_fxsave.
2230 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2231 x86_64_supply_fxsave.
2232 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2233 x86_64_supply_fxsave.
2234
2235 2003-08-23 Andreas Jaeger <aj@suse.de>
2236
2237 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2238 i387_supply_fxsave.
2239
2240 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2241
2242 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2243 i387_supply_register.
2244 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2245 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2246 i387_supply_fsave.
2247 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2248 i387_supply_fxsave.
2249 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2250 i387_supply_fsave.
2251 * i386bsd-nat.c (supply_fpregset): Adjust call to
2252 i387_supply_fsave.
2253 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2254 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2255 supply_fpregset.
2256 (store_inferior_registers): Remove extraneous whitespace. Call
2257 i387_fill_fsave instead of fill_fpregset.
2258 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2259 (supply_fpregset): Likewise.
2260 * i386v4-nat.c (supply_fpregset): Adjust call to
2261 i387_supply_fsave.
2262 * i386-interix-nat.c (supply_fpregset): Adjust call to
2263 i387_supply_fsave.
2264 * i386-linux-nat.c (supply_fpregset): Adjust call to
2265 i387_supply_fsave.
2266 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2267 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2268 i387supply_fsave and i387_supply_fxsave.
2269 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2270 Incorporate code from `i387_supply_register.
2271 (i387_supply_register): Remove.
2272 (i387_supply_fxsave): Add `regnum' argument.
2273 Update comments.
2274 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2275 prototype.
2276 (i387_supply_register): remove prototype.
2277 Update comments.
2278
2279 2003-08-22 Michael Chastain <mec@shout.net>
2280
2281 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2282 Add lines for files in gdb/testsuite/gdb.cp/* that are
2283 still not 8.3 unique.
2284
2285 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2286
2287 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2288 TYPE_VPTR_FIELDNO is valid.
2289
2290 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2291
2292 * utils.c (set_width_command): Remove prototypes.
2293 (set_screen_size): New prototype.
2294 (init_page_info): Simplify by fetching the screen size from
2295 Readline. Call set_screen_size.
2296 (set_screen_size): New function.
2297 (set_width): Add missing whitespace in comment.
2298 (set_width_command): Call set_screen_size.
2299 (set_height_command): New function.
2300 (initialize_utils): Fix formatting. Make "set height" command
2301 call set_height_command. Remove redundant code that turns off
2302 pagination if output isn't a terminal. Remove redundant call to
2303 set_width_command.
2304
2305 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2306
2307 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2308 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2309 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2310 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2311 `case' keyword.
2312 (sparc64_register_info): Give the reister with number
2313 SPARC64_STATE_REGNUM a name.
2314 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2315 %asi and %ccr.
2316 (sparc64_push_dummy_call): Take BIAS into account when checking
2317 stcak alignment.
2318 (sparc_software_single_step): Remove assertions that check whether
2319 NPC and NNPC were zero.
2320 (sparc_supply_rwindow): Make public. Merge functionality with
2321 sparc64_supply_rwindow.
2322 (sparc_fill_rwindow): Make public. Merge functionality with
2323 sparc64_fill_rwindow.
2324 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2325 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2326 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2327 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2328 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2329
2330 * reggroups.c: Add whitespace after declarations of local
2331 variables in functions.
2332
2333 2003-08-21 Michael Chastain <mec@shout.net>
2334
2335 * gdbtypes.h: Change array bound type from an int to enum.
2336
2337 2003-08-21 Andrew Cagney <cagney@redhat.com>
2338
2339 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2340 * config/sparc/tm-sparc.h: Ditto.
2341 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2342 unconditionally.
2343 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2344
2345 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2346
2347 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2348 (register_objfile_data, set_objfile_data, objfile_data): New
2349 prototypes.
2350 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2351 prototypes.
2352 (allocate_objfile): Call objfile_alloc_data.
2353 (free_objfile): Call objfile_free_data.
2354 (struct objfile_data): New.
2355 (struct objfile_data_registration): New.
2356 (struct objfile_data_registry): New.
2357 (objfile_data_registry): New variable.
2358 (register_objfile_data): New function.
2359 (objfile_alloc_data, objfile_free_data): New functions.
2360 (set_objfile_data, objfile_data): New functions.
2361 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2362 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2363 (_initialize_dwarf2_frame): New function and prototype.
2364
2365 2003-08-21 Andrew Cagney <cagney@redhat.com>
2366
2367 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2368 a specific architecture.
2369 * arch-utils.h (set_architecture_from_arch_mach): Delete
2370 declaration.
2371 (target_architecture_hook): Delete declaration.
2372 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2373 (default_float_format): Assume GDB_MULTI_ARCH.
2374 (default_double_format): Assume GDB_MULTI_ARCH.
2375 (set_endian_from_file): Delete function.
2376 (arch_ok): Delete function.
2377 (set_arch): Delete function.
2378 (set_architecture_from_arch_mach): Delete function.
2379 (set_architecture_from_file): Delete function.
2380 (set_architecture): Assume GDB_MULTI_ARCH.
2381 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2382
2383 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2384
2385 Rewrite FreeBSD/sparc64 native configuration.
2386 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2387 * sparc64fbsd-nat.c: New file.
2388 * sparc64fbsd-tdep.c: New file.
2389 * sparc64-tdep.c sparc64-tdep.h: New files.
2390 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2391 sparc64fbsd-tdep.o): New dependencies.
2392 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2393 and sparc64fbsd-tdep.c.
2394 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2395 * config/sparc/fbsd.mh: Remove copyright notice.
2396 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2397 sparcbsd-nat.o.
2398 * config/sparc/fbsd.mt: Remove copyright notice.
2399 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2400 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2401 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2402 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2403 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2404 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2405 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2406 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2407 "sparc/tm-sp64.h".
2408 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2409 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2410
2411 2003-08-21 Michael Chastain <mec@shout.net>
2412
2413 * symtab.h: Add doco on the space critical structures and
2414 some measurements of space usage.
2415
2416 2003-08-21 Michael Snyder <msnyder@redhat.com>
2417
2418 * tracepoint.c (trace_dump_command): Trace break address
2419 is subject to DECR_PC_AFTER_BREAK.
2420 (set_traceframe_context): Make "trace_line" an int.
2421 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2422
2423 2003-08-20 Michael Snyder <msnyder@redhat.com>
2424
2425 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2426 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2427 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2428 argument passing.
2429 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2430 functions, replace sh_push_dummy_call.
2431 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2432
2433 2003-08-20 Michael Chastain <mec@shout.net>
2434
2435 * gdbtypes.h (struct main_type): Rearrange to save space.
2436
2437 2003-08-20 Michael Snyder <msnyder@redhat.com>
2438
2439 * trad-frame.c: Comment typo fix.
2440
2441 2003-08-20 Michael Snyder <msnyder@redhat.com>
2442 Kevin Buettner <kevinb@redhat.com>
2443
2444 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2445 (frv_frame_init_saved_regs): Add declaration.
2446 (frame_extra_info): Add new field ``saved_regs''.
2447 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2448 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2449 Update frame related code.
2450 (frv_extract_struct_value_address): Adjust formatting.
2451 * Makefile.in (frv-tdep.o): Update dependencies.
2452 * config/frv/tm-frv.h (target_insert_watchpoint)
2453 (target_remove_watchpoint, target_insert_hw_breakpoint)
2454 (target_remove_hw_breakpoint): Delete these macros.
2455 (remote_insert_watchpoint, remote_remove_watchpoint)
2456 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2457 these declarations.
2458
2459 2003-08-20 Michael Chastain <mec@shout.net>
2460
2461 * defs.h (ENUM_BITFIELD): New macro.
2462 * symtab.h (ENUM_BITFIELD): Use it.
2463 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2464
2465 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2466
2467 * MAINTAINERS (write after approval): Add myself.
2468
2469 2003-08-18 Andrew Cagney <cagney@redhat.com>
2470
2471 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2472 * gdbarch.h, gdbarch.c: Re-generate.
2473 * infcall.c (call_function_by_hand): Adjust the SP by
2474 frame_red_zone_size before allocating any stack space.
2475 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2476 * x86-64-tdep.c (x86_64_frame_align): New function.
2477 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2478
2479 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2480 Remove code adjusting SP so that it skips over the Red Zone.
2481
2482 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2483
2484 * NEWS (New native configurations): Mention FreeBSD/amd64.
2485
2486 2003-08-18 Andrew Cagney <cagney@redhat.com>
2487
2488 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2489 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2490 "m68k_frame_p".
2491 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2492
2493 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2494
2495 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2496
2497 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2498
2499 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2500 Define.
2501 * i386-linux-nat.c: Include "linux-nat.h".
2502 (child_post_startup_inferior): New function.
2503
2504 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2505
2506 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2507 at the start of a frameless function. This probably fixes PR
2508 backtrace/1338.
2509
2510 2003-08-17 Michael Chastain <mec@shout.net>
2511
2512 * symfile.c (find_sym_fns): Remove special case for apollo target.
2513
2514 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2515
2516 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2517 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2518 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2519 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2520 (linux_supports_tracevforkdone): New function.
2521 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2522 TRACEVFORKDONE.
2523 (child_follow_fork): Handle vfork.
2524 (linux_handle_extended_wait): Likewise. Also handle exec.
2525 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2526 * NEWS: Mention fork tracing.
2527
2528 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2529
2530 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2531
2532 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2533
2534 * Makefile.in (i386-linux-nat.o): Update dependencies.
2535 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2536 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2537 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2538 * i386-linux-nat.c: Include "linux-nat.h".
2539 (child_post_startup_inferior): New function.
2540 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2541 * infptrace.c (kill_inferior): Wrap in #ifdef.
2542 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2543 attaching to each LWP.
2544 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2545 (init_lin_lwp_ops): Fill in some more operations.
2546 * linux-nat.h (linux_enable_event_reporting)
2547 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2548 prototypes.
2549 * linux-nat.c (linux_enable_event_reporting): New function.
2550 (child_post_attach, linux_child_post_startup_inferior)
2551 (child_post_startup_inferior, child_follow_fork)
2552 (linux_handle_extended_wait, kill_inferior): New functions.
2553
2554 2003-08-16 Andrew Cagney <cagney@redhat.com>
2555
2556 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2557 * gdbarch.h, gdbarch.c: Re-generate.
2558
2559 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2560
2561 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2562
2563 2003-08-16 Andrew Cagney <cagney@redhat.com>
2564
2565 * NEWS: Mention that "set prompt-escape-char" was deleted.
2566 * top.c (get_prompt_1): Delete function.
2567 (gdb_prompt_escape):
2568 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2569 prompt-escape-char" command.
2570 (MAX_PROMPT_SIZE): Delete macro.
2571 (get_prompt): Simplify, do not call get_prompt_1.
2572
2573 2003-08-16 Andrew Cagney <cagney@redhat.com>
2574
2575 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2576 -Werror. -Wformat-nonliteral problems.
2577
2578 2003-08-15 J. Brobecker <brobecker@gnat.com>
2579
2580 Further multiarching work mostly for hppa64-*-hpux11:
2581 * hppa-tdep.h: New file.
2582 * hppa-tdep.c: #include hppa-tdep.c.
2583 (hppa32_num_regs): Renamed from hppa_num_regs.
2584 (hppa64_num_regs): New constant.
2585 (hppa64_call_dummy_breakpoint_offset): New constant.
2586 (hppa32_call_dummy_length): New constant.
2587 (hppa64_call_dummy_length): New constant.
2588 (hppa32_stack_align): Make name 32bit explicit.
2589 (hppa32_register_virtual_type): Likewise.
2590 (hppa32_extract_return_value): Likewise.
2591 (hppa32_use_struct_convention): Likewise.
2592 (hppa32_store_return_value): Likewise.
2593 (hppa64_register_virtual_type): New function.
2594 (hppa64_extract_return_value): New function.
2595 (hppa64_use_struct_convention): New function.
2596 (hppa64_store_return_value): New function.
2597 (hppa_frame_locals_address): Remove declaration, function does
2598 not exist anymore.
2599 (hppa_register_byte): Add support for PA64 ABI.
2600 (hppa_gdbarch_init): Add support for PA64 ABI.
2601 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2602 Make name 32bit explicit.
2603 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2604 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2605 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2606 (hppa64_hpux_frame_base_before_sigtramp): New function.
2607 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2608 * config/pa/tm-hppa64.h: Remove macros that are no longer
2609 necessary now that the gdbarch vector is properly setup.
2610 Transform some macros into function calls. Some minor cleanup.
2611 * config/pa/tm-hppah.h: Update function calls in macros
2612 following the function renaming in hppa-hpux-tdep.c.
2613 * Makefile.in (hppa_tdep_h): New variable.
2614 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2615
2616 2003-08-14 Michael Snyder <msnyder@redhat.com>
2617
2618 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2619
2620 2003-08-13 J. Brobecker <brobecker@gnat.com>
2621
2622 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2623 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2624 routine.
2625
2626 2003-08-13 Michael Snyder <msnyder@redhat.com>
2627
2628 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2629 (frv_saved_pc_after_call): Use deprecated ftype.
2630 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2631 (frv_remote_translate_xfer_address): Remove.
2632 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2633
2634 2003-08-13 J. Brobecker <brobecker@gnat.com>
2635
2636 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2637 initialization after the common gdbarch initialization, not before.
2638
2639 2003-08-13 J. Brobecker <brobecker@gnat.com>
2640
2641 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2642 (ADDR_BITS_REMOVE): Remove, redundant.
2643
2644 2003-08-13 J. Brobecker <brobecker@gnat.com>
2645
2646 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2647 gdbarch method to clear the 2 low bits of text addresses.
2648
2649 2003-08-12 Andrew Cagney <cagney@redhat.com>
2650
2651 * Makefile.in (dsrec.o): Update dependencies.
2652 * dsrec.c: Include "gdb_assert.h".
2653 (make_srec): Use snprintf instead of sprintf, use a literal format
2654 string.
2655
2656 2003-08-12 Andrew Cagney <cagney@redhat.com>
2657
2658 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2659 FRAME_OBSTACK_ZALLOC.
2660
2661 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2662
2663 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2664 SSE registers.
2665
2666 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2667
2668 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2669 amd64fbsd_sc_reg_offset): Add extern declarations.
2670 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2671 declarations.
2672
2673 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2674
2675 * MAINTAINERS (write after approval): Update my mail address.
2676
2677 2003-08-10 Andrew Cagney <cagney@redhat.com>
2678
2679 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2680
2681 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2682
2683 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2684 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2685 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2686 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2687 i386bsd_sc_reg_offset): Add extern declarations.
2688 * i386obsd-nat.c: Include "i386-tdep.h"
2689 (_initialize_i386obsd_nat): Remove extern declarations.
2690 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2691 declarations.
2692 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2693 declarations.
2694
2695 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2696 instead of frame_read_register.
2697 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2698 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2699 SP_REGNUM.
2700 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2701 instead of frame_unwind_unsigned_register. Use
2702 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2703 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2704 instead of read_register. Use builtin_type_void_data_ptr instead
2705 of builtin_type_void_func_ptr when extracting the address of the
2706 jmp_buf.
2707 (i386_extract_return_value, i386_store_return_value,
2708 i386_pseudo_register_read, i386_pseudo_register_write): Use
2709 register_size instead REGISTER_RAW_SIZE.
2710
2711 2003-08-10 Andrew Cagney <cagney@redhat.com>
2712
2713 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2714 sprintf. Make "name" constant.
2715
2716 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2717
2718 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2719 instead of frame_read_register.
2720 (i387_print_float_info): Use get_frame_register and
2721 get_frame_register_unsigned instead of frame_register_read.
2722
2723 * i386fbsd-nat.c: Include "i386-tdep.h".
2724 (child_resume): Make `eflags' an ULONGEST. Use
2725 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2726 instead of register_read and register_write.
2727
2728 * i386bsd-nat.c (fetch_inferior_registers,
2729 store_inferior_registers): Don't use && at the end of a line.
2730 (_initialize_i386bsd_nat): Fix typo.
2731
2732 * frame.c (_initialize_frame): Add missing backslash.
2733
2734 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2735 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2736 and supply_register instead of manipulating the register buffer
2737 directly.
2738
2739 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2740 * config/i386/nm-i386sol2.h
2741 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2742
2743 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2744 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2745 instructions that GCC likes to mingle into the prologue. Fixes
2746 gdb/1253 and gdb/1255.
2747
2748 2003-08-09 Andrew Cagney <cagney@redhat.com>
2749
2750 Fix GDB PR cli/926.
2751 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2752 * command.h (add_setshow_uinteger_cmd): Declare.
2753 * frame.c (set_backtrace_cmd): New function.
2754 (show_backtrace_cmd): New function.
2755 * frame.c (_initialize_frame): Replace "set/show
2756 backtrace-below-main" with "set/show backtrace past-main". Add
2757 command "set/show backtrace limit".
2758 (backtrace_past_main): Rename "backtrace_below_main".
2759 (backtrace_limit): New variable.
2760 (get_prev_frame): Update. Check the backtrace_limit.
2761
2762 2003-08-09 Andrew Cagney <cagney@redhat.com>
2763
2764 * defs.h (xstrprintf): Declare.
2765 * utils.c (xstrprintf): New function.
2766 * breakpoint.c (insert_breakpoints): Replace sprintf and
2767 non-literal format strings, with xstrprintf and cleanups.
2768 (delete_breakpoint,breakpoint_re_set): Ditto.
2769 (commands_command, insert_breakpoints): Ditto.
2770 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2771 (break_at_finish_command_1): Ditto.
2772
2773 2003-08-09 Andrew Cagney <cagney@redhat.com>
2774
2775 * MAINTAINERS (language support): List Adam Fedor as Objective C
2776 maintainer.
2777
2778 2003-08-08 J. Brobecker <brobecker@gnat.com>
2779
2780 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2781 are now multiarched.
2782
2783 2003-08-08 J. Brobecker <brobecker@gnat.com>
2784
2785 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2786 longer necessary now that hppa64 is partially multiarch'ed.
2787
2788 2003-08-08 Andrew Cagney <cagney@redhat.com>
2789
2790 * interps.c (interp_set): Check for a NULL "old_interp".
2791
2792 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2793
2794 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2795 (install-only): Support DESTDIR.
2796 (uninstall): Likewise.
2797 (install-gdbtk): Likewise.
2798
2799 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2800
2801 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2802 contains something meaningful at all times.
2803
2804 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2805
2806 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2807
2808 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2809
2810 * MAINTAINERS (write after approval): Added self.
2811
2812 2003-08-07 Andrew Cagney <cagney@redhat.com>
2813
2814 * inferior.h (AT_SYMBOL): Define.
2815 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2816 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2817 * mips-tdep.c (mips_call_dummy_address): Delete function.
2818 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2819 set call_dummy_address.
2820
2821 2003-08-07 Andrew Cagney <cagney@redhat.com>
2822
2823 * language.c (op_error): Delete function.
2824 (binop_type_check): Delete function.
2825 * language.h (type_op_error, range_op_error): Delete macros.
2826 (op_error): Delete declaration.
2827
2828 2003-08-07 Andrew Cagney <cagney@redhat.com>
2829
2830 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2831
2832 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2833
2834 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2835 (x86_64_push_arguments): Skip the red zone.
2836
2837 2003-08-05 Andrew Cagney <cagney@redhat.com>
2838
2839 * reggroups.c (reggroup_next): Check for the final entry.
2840
2841 2003-08-04 Andrew Cagney <cagney@redhat.com>
2842
2843 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2844 * cli/cli-script.c (define_command): Call query directly, instead
2845 of passing it a buffer.
2846 * ocd.c (ocd_error): Pass error a constant format string.
2847 * remote-mips.c (mips_error): Use fputs_filtered.
2848
2849 * solib-svr4.c (_initialize_svr4_solib): Update
2850 register_gdbarch_data call.
2851 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2852
2853 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2854 (register_gdbarch_data): Delete "free" parameter. Update
2855 comments.
2856 * gdbarch.h, gdbarch.c: Re-generate.
2857 * reggroups.c (_initialize_reggroup): Update.
2858 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2859 * frame-base.c (_initialize_frame_base): Update.
2860 * frame-unwind.c (_initialize_frame_unwind): Update.
2861 * user-regs.c (_initialize_user_regs): Update.
2862 * remote.c (_initialize_remote): Update.
2863 * regcache.c (_initialize_regcache): Update.
2864
2865 * regcache.c (xfree_regcache_descr): Delete function.
2866 (_initialize_regcache): Update call to register_gdbarch_data.
2867 (init_regcache_descr, init_legacy_regcache_descr): Use
2868 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2869
2870 * remote.c (free_remote_state): Delete function.
2871 (_initialize_remote): Update register_gdbarch_data.
2872 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2873 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2874
2875 2003-08-04 Andrew Cagney <cagney@redhat.com>
2876
2877 * reggroups.c (struct reggroup_el): Define.
2878 (struct reggroups): Delete field "nr_group". Replace array
2879 "group" with a "first" to "last" linked list.
2880 (reggroups_init): Update. Allocate using gdbarch's obstack.
2881 (reggroups_free): Delete function.
2882 (add_group): Update. Add "el" parameter.
2883 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2884 (default_groups): Update.
2885 (reggroup_next): Replace reggroups.
2886 (reggroups_dump): Update.
2887 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2888 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2889 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2890
2891 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2892
2893 * Makefile.in (tui-interp.o): Update dependencies.
2894
2895 2003-08-04 David Carlton <carlton@kealia.com>
2896
2897 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2898 to internal_error call.
2899 * source.c (forward_search_command): Add "%s" format argument.
2900 (reverse_search_command): Ditto.
2901 * top.c (quit_confirm): Ditto.
2902 * cli/cli-setshow.c (do_setshow_command): Ditto.
2903 * cp-valprint.c (cp_print_class_method): Replace
2904 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2905 (cp_print_class_member): Ditto.
2906 * event-top.c (command_line_handler): Ditto.
2907 * linux-proc.c (linux_info_proc_cmd): Ditto.
2908 * p-typeprint.c (pascal_type_print_base): Ditto.
2909 * p-valprint.c (pascal_object_print_class_method): Ditto.
2910 (pascal_object_print_class_member): Ditto.
2911 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2912 * remote.c (remote_cisco_section_offsets): Ditto.
2913 * top.c (command_line_input): Ditto.
2914 * utils.c (vwarning,error_stream,quit): Ditto.
2915 * valprint.c (print_floating,print_binary_chars)
2916 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2917
2918 2003-08-04 Andrew Cagney <cagney@redhat.com>
2919
2920 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2921
2922 2003-08-02 Andrew Cagney <cagney@redhat.com>
2923
2924 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2925 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2926 amd64fbsd-nat.c.
2927
2928 2003-08-02 Andrew Cagney <cagney@redhat.com>
2929
2930 * Makefile.in: Update all dependencies and definitions.
2931
2932 2003-08-02 Adam Fedor <fedor@gnu.org>
2933
2934 * linespec.c (is_objc_method_format): New function
2935 (decode_line_1, locate_first_half): Use it.
2936 Fixes PR objc/1298
2937
2938 2003-08-01 Andrew Cagney <cagney@redhat.com>
2939
2940 * NEWS: Mention that m32r is multi-arch.
2941 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2942 * configure.tgt: Recognize m32r-*-*.
2943 * config/m32r/tm-m32r.h: Delete file.
2944 * config/m32r/m32r.mt: New file.
2945 * m32r-rom.c (m32r_upload_command): Use hostent only when
2946 gethostname succeeds, in order to avoid a compilation
2947 warning.
2948 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2949 compiler warning.
2950
2951 2003-08-01 Michael Snyder <msnyder@redhat.com>
2952
2953 * sh-tdep.c (sh_frame_align): New gdbarch method.
2954 (sh_gdbarch_init): Set up frame_align method.
2955
2956 2003-07-31 Michael Snyder <msnyder@redhat.com>
2957
2958 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2959 which is already covered by the new frames infrastructure.
2960
2961 2003-07-31 Andrew Cagney <cagney@redhat.com>
2962
2963 * user-regs.c (struct user_reg): Add "next" link.
2964 (struct user_regs): Replace "user" with "first" and "last" links.
2965 (append_user_reg): Add pre-allocated "reg" parameter.
2966 (builtin_user_regs): Provide initial value for "last".
2967 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2968 (user_regs_init): Allocate memory from the gdbarch obstack.
2969 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2970 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2971 linked list.
2972 (usernum_to_user_reg): New function.
2973 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2974 (value_of_user_reg): Use usernum_to_user_reg.
2975 (user_regs_free): Delete function.
2976 (_initialize_user_regs): Update register_gdbarch_data call.
2977
2978 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2979
2980 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2981
2982 2003-07-30 Michael Snyder <msnyder@redhat.com>
2983
2984 * value.h (value_being_returned): Add a struct_addr argument.
2985 * infcall.c (call_function_by_hand): Pass struct_addr to
2986 value_being_returned.
2987 * infcmd.c (print_return_value): Pass zero as struct_addr.
2988 * values.c (value_being_returned): If struct_addr is passed,
2989 use it instead of trying to recover it from the inferior.
2990
2991 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2992
2993 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2994 the prologue analyzer won't need to attempt to extract the pc
2995 value from the woefully incomplete dummy frame.
2996 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2997 possible. Disable code which modifies the frame.
2998
2999 2003-07-28 Andrew Cagney <cagney@redhat.com>
3000
3001 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3002 to level 2.
3003 (annotate_breakpoints_table, annotate_record): Ditto.
3004 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3005 (annotate_field_name_end, annotate_field_value): Ditto.
3006 (annotate_field_end, annotate_frame_source_begin): Ditto.
3007 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3008 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3009 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3010 (annotate_frame_address_end, annotate_frame_address): Ditto.
3011 (annotate_frame_args, annotate_frame_end): Ditto.
3012 (annotate_frame_where, annotate_arg_begin): Ditto.
3013 (annotate_arg_name_end, annotate_arg_value): Ditto.
3014 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3015 (annotate_function_call, annotate_signal_name): Ditto.
3016 (annotate_signal_string, annotate_signal_name_end): Ditto.
3017 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3018 (annotate_value_begin, annotate_value_history_value): Ditto.
3019 (annotate_value_history_end, annotate_value_end): Ditto.
3020 (annotate_display_begin, annotate_display_number_end): Ditto.
3021 (annotate_display_format, annotate_display_expression): Ditto.
3022 (annotate_display_expression_end, annotate_display_value): Ditto.
3023 (annotate_display_end, annotate_array_section_begin): Ditto.
3024 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3025 (annotate_elt, annotate_array_section_end): Ditto.
3026
3027 2003-07-28 Andrew Cagney <cagney@redhat.com>
3028
3029 * regcache.c (struct regcache_descr): Update comments on
3030 nr_raw_registers.
3031 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3032 sizeof_raw_register_valid_p.
3033 (init_regcache_descr): Set nr_raw_registers and
3034 sizeof_raw_register_valid_p before calling
3035 init_legacy_regcache_descr.
3036
3037 2003-07-28 Andrew Cagney <cagney@redhat.com>
3038
3039 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3040 MOD NUM_REGS.
3041
3042 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3043
3044 * thread.c (info_threads_command): Use get_selected_frame ().
3045 Check that there is at least one non-sentinel frame.
3046
3047 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3048
3049 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3050 (m68hc11_pop_frame): Remove.
3051 (m68hc11_frame_saved_pc): Remove.
3052 (m68hc11_frame_chain): Remove.
3053 (m68hc11_frame_init_saved_regs): Remove.
3054 (m68hc11_init_extra_frame_info): Remove.
3055 (m68hc11_store_struct_return): Remove.
3056 (m68hc11_saved_pc_after_call): Remove.
3057
3058 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3059
3060 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3061 frame unwind information.
3062 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3063 and adapted for frame unwinding.
3064 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3065 (m68hc11_unwind_pc): New function.
3066 (m68hc11_frame_unwind_cache): New function to analyze frames.
3067 (m68hc11_frame_this_id): New function to create new frame struct.
3068 (m68hc11_frame_prev_register): New function to unwind a register from
3069 the frame.
3070 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3071 (m68hc11_frame_p): New function for the above.
3072 (m68hc11_frame_base_address): New function to return fp of frame.
3073 (m68hc11_frame_args_address): Update for frame.
3074 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3075 (m68hc11_unwind_sp): New function.
3076 (m68hc11_unwind_dummy_id): New function.
3077 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3078 calls.
3079
3080 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3081
3082 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3083 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3084 when we are beyond the current pc.
3085
3086 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3087
3088 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3089 from m68hc11_push_arguments.
3090 (m68hc11_push_arguments): Remove.
3091 (m68hc11_push_return_address): Remove.
3092 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3093 handlers; remove deprecated_extra_stack_alignment_needed.
3094
3095 2003-07-27 Andrew Cagney <cagney@redhat.com>
3096
3097 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3098 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3099 REAL_PC and not the pointer.
3100 * hppa-hpux-tdep.c: Include frame.h
3101
3102 2003-07-27 Andrew Cagney <cagney@redhat.com>
3103
3104 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3105 GDB_MULTI_ACH_PARTIAL.
3106
3107 2003-07-27 Andrew Cagney <cagney@redhat.com>
3108
3109 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3110 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3111 operator at start and not end of line.
3112 (decode_prologue): Ditto.
3113 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3114 frame_unwind_register_unsigned instead of
3115 frame_unwind_unsigned_register.
3116 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3117 read_register.
3118 (m32r_push_dummy_call): Use register_size instead of
3119 REGISTER_RAW_SIZE.
3120 (m32r_frame_sniffer): Replace m32r_frame_p.
3121 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3122 * m32r-rom.c (report_transfer_performance): Delete extern
3123 declaration.
3124 (m32r_load, m32r_upload_command): Use print_transfer_performance
3125 instead of report_transfer_performance.
3126 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3127 / add_show_from_set.
3128
3129 2003-07-26 Andrew Cagney <cagney@redhat.com>
3130
3131 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3132 store_return_value and extract_struct_value_address.
3133
3134 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3135
3136 PR c++/1267
3137 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3138 NULL, default to the section containing PC.
3139
3140 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3141
3142 * NEWS: Mention "regs" deprecated for m68hc11 too.
3143
3144 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3145 (m68hc11_print_register): New function to print out one register.
3146 (m68hc11_print_registers_info): New function to print registers.
3147 (show_regs): Deprecate and use the above.
3148 (m68hc11_gdbarch_init): Install the print_registers_info.
3149
3150 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3151
3152 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3153 that we have a SIGTRAP before returning non-zero.
3154
3155 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3156 Elena Zannoni <ezannoni@redhat.com>
3157
3158 * linespec.c (decode_line_2): Avoid crash if
3159 find_function_start_sal() returns empty record.
3160
3161 2003-07-23 Andreas Schwab <schwab@suse.de>
3162
3163 * ia64-tdep.c (ia64_print_insn): New function.
3164 (ia64_gdbarch_init): Set print_insn to it.
3165 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3166 deprecated_tm_print_insn_info.
3167
3168 2003-07-22 Michael Snyder <msnyder@redhat.com>
3169
3170 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3171 handle 8-bit returns (long long).
3172 (h8300h_extract_return_value): Ditto.
3173 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3174
3175 2003-07-22 Andrew Cagney <cagney@redhat.com>
3176
3177 * gdbarch.c Include "gdb_obstack.h".
3178 (struct gdbarch): Add an "obstack".
3179 (alloc_gdbarch_data): Allocate the gdbarch data using
3180 GDBARCH_OBSTACK_CALLOC.
3181 (free_gdbarch_data): Delete function.
3182 (gdbarch_obstack_zalloc): New function.
3183 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3184 Assert that the architecture is not initialized.
3185 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3186 vector from the obstack.
3187 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3188 architecture obstack.
3189 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3190 (set_gdbarch_data): Assert that the data is not initialized.
3191 (struct gdbarch_data): Delete member "free".
3192 (register_gdbarch_data): Do not initialize "free".
3193 * gdbarch.h, gdbarch.c: Re-generate.
3194
3195 2003-07-22 Andrew Cagney <cagney@redhat.com>
3196
3197 * configure.in (build_warnings): Add -Wformat-nonliteral.
3198 * configure: Re-generate.
3199
3200 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3201
3202 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3203
3204 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3205
3206 * findvar.c (read_var_value): Remove case for thread local storage
3207 variables. It is now entirely handled by the dwarf2 location
3208 expression code.
3209 * printcmd.c (address_info): Ditto.
3210 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3211 enumeration value.
3212 (struct symbol): Remove objfile field, which was used by
3213 LOC_THREAD_LOCAL_STATIC only.
3214 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3215 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3216 usage of objfile pointer.
3217 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3218 thread local variables.
3219 Add include of objfiles.h.
3220 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3221 storage variables.
3222 * Makefile.in (dwarf2loc.o): Update dependencies.
3223
3224 2003-07-22 Andrew Cagney <cagney@redhat.com>
3225
3226 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3227 get_frame_base.
3228 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3229 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3230 (struct value): Add opaque declaration.
3231 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3232
3233 2003-07-21 Andrew Cagney <cagney@redhat.com>
3234
3235 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3236 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3237
3238 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3239
3240 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3241 regcache_cooked_read_unsigned instead of read_register.
3242 (m68hc11_saved_pc_after_call): Likewise.
3243 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3244 instead of write_register.
3245 (m68hc11_register_type): New function.
3246 (m68hc11_register_virtual_type): Remove.
3247 (m68hc11_store_return_value): Convert to use the regcache.
3248 (m68hc11_extract_struct_value_address): Likewise.
3249 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3250 m68hc11_register_type; undeprecate store_return_value and
3251 extract_struct_value_address.
3252
3253 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3254
3255 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3256 and translate to use regcache.
3257 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3258
3259 2003-07-18 Andrew Cagney <cagney@redhat.com>
3260
3261 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3262 * gdbarch.h, gdbarch.c: Re-generate.
3263 * i386-tdep.c (i386_gdbarch_init): Do not set
3264 DWARF2_BUILD_FRAME_INFO.
3265 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3266 unconditionally.
3267 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3268 DWARF2_BUILD_FRAME_INFO.
3269
3270 2003-07-18 Andrew Cagney <cagney@redhat.com>
3271
3272 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3273 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3274
3275 2003-07-18 Andrew Cagney <cagney@redhat.com>
3276
3277 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3278 frame_unwind_address_in_block, instead of frame_pc_unwind.
3279 (dwarf2_frame_cache): Ditto.
3280
3281 2003-07-18 Andrew Cagney <cagney@redhat.com>
3282
3283 * user-regs.h (struct gdbarch): Declare opaque.
3284 * ui-out.h (struct ui_file): Declare opaque.
3285 * dwarf2-frame.h (struct frame_info): Declare opaque.
3286
3287 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3288
3289 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3290 #include "...".
3291 (procfs_meminfo): Change strerror to safe_strerror.
3292 (procfs_can_run): Remove K&R badness.
3293
3294 2003-07-17 Michael Snyder <msnyder@redhat.com>
3295
3296 * remote-sim.c: Comment typo fix.
3297
3298 2003-07-17 Andrew Cagney <cagney@redhat.com>
3299
3300 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3301 configure.
3302 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3303 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3304 GDB_MULTI_ARCH_PARTIAL.
3305
3306 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3307
3308 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3309 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3310 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3311
3312 2003-07-16 Theodore A. Roth <troth@openavr.org>
3313
3314 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3315 found.
3316 (avr_frame_unwind_cache): Don't unwind FP for main.
3317 Update a comment.
3318 Save the computed prev_sp.
3319 (avr_saved_regs_unwinder): Remove function.
3320 (avr_frame_prev_register): Use PC unwind logic from
3321 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3322
3323 2003-07-16 Andrew Cagney <cagney@redhat.com>
3324
3325 * frame-base.h (frame_base_p_ftype): Delete definition.
3326 (frame_base_append_predicate): Delete declaration.
3327 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3328 (frame_unwind_append_predicate): Delete declaration.
3329 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3330 (append_predicate): Delete parameter "p".
3331 (frame_unwind_append_predicate): Delete function.
3332 (frame_unwind_append_sniffer): Update call to append_predicate.
3333 (frame_unwind_free): Delete function.
3334 (_initialize_frame_unwind): Pass NULL as "free" to
3335 register_gdbarch_data.
3336 (frame_unwind_init): Append the dummy_frame_sniffer.
3337 (frame_unwind_find_by_frame): Simplify.
3338 * frame-base.c (struct frame_base_table): Delete field "p".
3339 (append_predicate): Delete parameter "p".
3340 (frame_base_append_predicate): Delete function.
3341 (frame_base_append_sniffer): Update call to append_predicate.
3342 (frame_base_free): Delete function.
3343 (frame_base_find_by_frame): Simplify.
3344 (_initialize_frame_base): Pass NULL as "free" to
3345 register_gdbarch_data.
3346 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3347 (x86_64_sigtramp_frame_sniffer): Replace
3348 "x86_64_sigtramp_frame_p".
3349 (x86_64_init_abi): Set the frame unwind sniffers.
3350 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3351 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3352 (m68k_gdbarch_init): Set the frame unwind sniffers.
3353 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3354 "i386_sigtramp_frame_p".
3355 (i386_frame_sniffer): Replace "i386_frame_p".
3356 (i386_gdbarch_init): Set the frame unwind sniffers.
3357 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3358 (avr_gdbarch_init): Set the frame unwind sniffers.
3359 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3360 "alpha_sigtramp_frame_p"
3361 (alpha_heuristic_frame_sniffer): Replace
3362 "alpha_heuristic_frame_p".
3363 (alpha_gdbarch_init): Set the frame unwind sniffers.
3364 (alpha_dwarf2_init_abi): Ditto.
3365 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3366 "alpha_debug_frame_p".
3367 (alpha_mdebug_frame_base_sniffer): Replace
3368 "alpha_mdebug_frame_base_p".
3369 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3370 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3371 (d10v_gdbarch_init): Set the frame unwind sniffer.
3372 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3373 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3374 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3375 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3376 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3377 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3378
3379 2003-07-16 Michael Snyder <msnyder@redhat.com>
3380
3381 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3382 should go thru sh_dsp_register_sim_regno, else the dsp regs
3383 will not get the right values.
3384
3385 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3386
3387 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3388 deprecated_store_floating by call to store_typed_floating.
3389 (sh_sh4_register_convert_to_raw): Substitute call to
3390 deprecated_extract_floating by call to extract_typed_floating.
3391
3392 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3393
3394 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3395
3396 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3397
3398 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3399 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3400 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3401 as possible.
3402 (do_pseudo_register): Remove.
3403 (sh_push_dummy_code): New function.
3404 (sh64_store_struct_return): Rename from sh_store_struct_return.
3405 Only called for sh64 now.
3406 (sh_extract_struct_value_address): Regcache'ify.
3407 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3408 and accomodate new tasks.
3409 (sh64_push_return_address): Rename from sh_push_return_address.
3410 Only called for sh64 now.
3411 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3412 Regcache'ify.
3413 (sh3e_sh4_extract_return_value): Regcache'ify.
3414 (sh_default_store_return_value): Ditto.
3415 (sh3e_sh4_store_return_value): Ditto.
3416 (sh_default_register_byte): Remove.
3417 (sh_sh4_register_byte): Remove.
3418 (sh_default_register_raw_size): Remove.
3419 (sh_sh4_register_raw_size): Remove.
3420 (sh_register_virtual_size): Remove.
3421 (sh_sh3e_register_virtual_type): Remove.
3422 (sh_sh3e_register_type): New function.
3423 (sh_sh4_register_virtual_type): Remove.
3424 (sh_sh4_register_type): New function.
3425 (sh_default_register_virtual_type): Remove.
3426 (sh_default_register_type): New function.
3427 (do_fv_register_info): Add parameters to accomodate call from
3428 sh_print_registers_info.
3429 (do_dr_register_info): Ditto.
3430 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3431 Add parameters to accomodate call from sh_print_registers_info.
3432 (sh_do_fp_register): Ditto.
3433 (sh64_do_pseudo_register): Call do_dr_register_info,
3434 do_fv_register_info and sh_do_fp_register with default parameters.
3435 (sh_do_register): Add parameters to accomodate call from
3436 sh_print_registers_info.
3437 (sh_print_register): Ditto.
3438 (sh_print_registers_info): Rename from sh_do_registers_info.
3439 Add parameters to be used as gdbarch_print_registers_info
3440 implementation. Accomodate removed do_pseudo_register function
3441 pointer.
3442 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3443 function pointer. Call sh_print_register with default parameters.
3444 (sh64_do_registers_info): Call sh_print_registers_info instead of
3445 sh_do_registers_info.
3446 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3447 detection of deprecated vs. non-deprecated functionality.
3448 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3449 function pointer assignments by direct function calls.
3450
3451 2003-07-15 Andrew Cagney <cagney@redhat.com>
3452
3453 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3454 (frame_register_unwind, create_new_frame): Ditto.
3455 (legacy_get_prev_frame, get_frame_type): Ditto.
3456 (get_frame_base_address): Use frame_base_find_by_frame.
3457 (get_frame_locals_address): Use frame_base_find_by_frame.
3458 (get_frame_args_address): Use frame_base_find_by_frame.
3459 * frame-base.h (frame_base_sniffer_ftype): Declare.
3460 (frame_base_append_sniffer): Declare.
3461 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3462 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3463 (frame_base_append_sniffer): New function.
3464 (frame_base_append_predicate): Add a NULL sniffer.
3465 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3466 (struct frame_base_table): Add "sniffer".
3467 (frame_base_free): Free the "sniffer" table.
3468 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3469 (frame_unwind_append_sniffer): Declare.
3470 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3471 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3472 (struct frame_unwind_table): Add "sniffer", delete "middle".
3473 (append_predicate): Add "sniffer" parameter, append the sniffer.
3474 (frame_unwind_init): Update append_predicate call.
3475 (frame_unwind_append_sniffer): New function.
3476 (frame_unwind_append_predicate): Update append_predicate call.
3477 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3478
3479 2003-07-15 Andrew Cagney <cagney@redhat.com>
3480
3481 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3482 before code inhibiting repeated unwind attempts. Add to
3483 commentary on that test's problems.
3484 * blockframe.c (inside_main_func): Look for "main" in the minimal
3485 symbol table.
3486 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3487 identical.
3488
3489 2003-07-15 Andrew Cagney <cagney@redhat.com>
3490
3491 * complaints.c (struct explanation): Define.
3492 (struct complaints): Change type of "explanation" to "struct
3493 explanation".
3494 (symfile_explanations): Convert to a "struct explanation" table.
3495 (vcomplaint): Update.
3496
3497 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3498
3499 * x86-64-linux-nat.c (regmap): Removed.
3500 (supply_gregset, fill_gregset): Call
3501 x86_64_linux_(fill,supply)_gregset functions.
3502 * x86-64-linux-tdep.c (USER_*): New defines.
3503 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3504 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3505 New functions.
3506 (fetch_core_registers): Ditto.
3507 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3508 * x86-64-linux-tdep.h: New file.
3509 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3510 and core-regset.o.
3511 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3512
3513 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3514
3515 * x86-64-tdep.c (x86_64_store_return_value): Use
3516 regcache_cooked_write_part instead of regcache_cooked_write.
3517
3518 * configure.host: Add x86_64-*-freebsd*.
3519 * configure.tgt: Add x86_64-*-freebsd*.
3520 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3521 * amd64fbsd-nat.c: New file.
3522 * amd64fbsd-tdep.c: New file.
3523 * config/i386/nm-fbsd64.h: New file.
3524 * config/i386/fbsd64.mh: New file.
3525 * config/i386/fbsd64.mt: New file.
3526
3527 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3528
3529 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3530 `sc_regs_offset' and `sc_fpregs_offset'.
3531 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3532 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3533 (alpha_sigtramp_register_address): Rewrite to use new members of
3534 `struct gdbarch_tdep'.
3535 (alpha_gdbarch_init): Initialize new members of struct
3536 gdbarch_tdep'.
3537 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3538 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3539 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3540 (alphafbsd_pc_in_sigtramp): Implement.
3541 (alphafbsd_sigtramp_offset): New function.
3542 (alphafbsd_sigcontext_addr): New function.
3543 (alphafbsd_init_abi): Initialize signal trampoline related members
3544 of `struct gdbarch_tdep'.
3545 (_initialize_alphafbsd_tdep): Add prototype.
3546
3547 2003-07-11 Theodore A. Roth <troth@openavr.org>
3548
3549 * Makefile.in (install-only): Quote sed expression when generating
3550 transformed_name.
3551
3552 2003-07-11 Richard Henderson <rth@redhat.com>
3553
3554 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3555 * dwarf2-frame.c: Include complaints.h.
3556 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3557 variable initialization; return NULL on error.
3558 (decode_frame_entry): New.
3559
3560 2003-07-11 Andrew Cagney <cagney@redhat.com>
3561
3562 * frame.h (frame_address_in_block): Delete declaration.
3563 * blockframe.c (frame_address_in_block): Delete function.
3564 (get_frame_block): Use get_frame_address_in_block.
3565 (block_innermost_frame): Ditto.
3566 * stack.c (print_frame, backtrace_command_1): Ditto.
3567
3568 * frame.h (get_frame_address_in_block): Declare.
3569 (frame_unwind_address_in_block): Declare.
3570 * frame.c (frame_unwind_address_in_block): New function.
3571 (get_frame_address_in_block): New function.
3572
3573 2003-07-10 Andrew Cagney <cagney@redhat.com>
3574
3575 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3576 pre-default. Note: re-generate has no effect.
3577
3578 2003-07-10 Andrew Cagney <cagney@redhat.com>
3579
3580 * gdbarch.sh: When a variable, but not a function, compare against
3581 0. Fix problem in previous patch.
3582 * gdbarch.c: Re-generate.
3583
3584 2003-07-10 Andrew Cagney <cagney@redhat.com>
3585
3586 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3587 functions against NULL, not 0.
3588 * gdbarch.c: Re-generate.
3589
3590 2003-07-10 Fred Fish <fnf@ninemoons.com>
3591
3592 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3593 null string instead of a null pointer.
3594 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3595
3596 2003-07-09 Michael Snyder <msnyder@redhat.com>
3597
3598 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3599
3600 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3601
3602 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3603 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3604 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3605 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3606 * x86-64-tdep.c: ... from here.
3607
3608 2003-07-09 Andreas Schwab <schwab@suse.de>
3609
3610 * m68k-tdep.h (enum struct_return): Define.
3611 (struct gdbarch_tdep): Add struct_return.
3612 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3613 bytes are padded to the right, not to the left. Pass struct value
3614 address in register %a1, not on stack.
3615 (m68k_use_struct_convention): New function.
3616 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3617 struct_return in tdep to pcc_struct_return.
3618 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3619 reg_struct_return.
3620
3621 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3622
3623 * somread.c (som_symfile_offsets): Fix compilation error.
3624
3625 2003-07-09 Andrew Cagney <cagney@redhat.com>
3626
3627 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3628 Add comments about the checks.
3629
3630 2003-07-08 Andrew Cagney <cagney@redhat.com>
3631
3632 * Makefile.in: Make dependency section headers consistent.
3633 (config_h): Move to $BUILD headers section.
3634 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3635 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3636 (ada-exp.tab.c): Move to YACC/LEX section.
3637 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3638 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3639
3640 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3641
3642 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3643 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3644 of strerror with safe_strerror, use ISO C function definitions,
3645 and replace instances of sprintf with snprintf.
3646
3647 2003-07-07 Andrew Cagney <cagney@redhat.com>
3648
3649 * frame.c (get_prev_frame): Enable check for identical frames.
3650 Update comments. Update error messages.
3651
3652 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3653
3654 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3655
3656 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3657
3658 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3659 sort_symtab_syms, no longer necessary.
3660
3661 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3662
3663 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3664
3665 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3666
3667 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3668 (mips_register_byte): Likewise.
3669
3670 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3671
3672 * Makefile.in (sparc_tdep_h): New.
3673 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3674 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3675 * sparc-linux-nat.c: Include "sparc-tdep.h".
3676 * sparc-nat.c: Likewise.
3677 * sparc-tdep.c: Likewise.
3678 * sparc64nbsd-nat.c: Likewise.
3679 * sparcnbsd-nat.c: Likewise.
3680 * sparcnbsd-tdep.c: Likewise.
3681 * sparc-tdep.h: New file.
3682 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3683 and sparc_npc_regnum.
3684
3685 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3686
3687 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3688 (mips_linux_cannot_store_register): List supported instead of
3689 unsupported registers.
3690
3691 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3692
3693 * disasm.c (dump_insns): Separate instructions from addresses.
3694
3695 2003-07-07 Andreas Schwab <schwab@suse.de>
3696
3697 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3698 dependencies.
3699 * m68k-tdep.c (NUM_FREGS): Delete.
3700 (SIG_PC_FP_OFFSET): Delete.
3701 (TARGET_M68K): Delete.
3702 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3703 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3704 P_MOVEL_SP, P_MOVEML_SP): Define.
3705 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3706 P_TRAP): Delete.
3707 (m68k_register_raw_size): Delete.
3708 (m68k_register_virtual_size): Delete.
3709 (m68k_register_type): Renamed from m68k_register_virtual_type and
3710 add gdbarch argument.
3711 (m68k_store_struct_return): Delete.
3712 (m68k_deprecated_extract_return_value): Delete.
3713 (m68k_deprecated_extract_struct_value_address): Delete.
3714 (m68k_frame_chain): Delete.
3715 (m68k_frame_saved_pc): Delete.
3716 (m68k_fix_call_dummy): Delete.
3717 (m68k_push_dummy_frame): Delete.
3718 (m68k_pop_frame): Delete.
3719 (m68k_extract_return_value): New function.
3720 (m68k_store_return_value): Rewrite using regcache.
3721 (m68k_extract_struct_value_address): Rewrite using regcache.
3722 (m68k_push_dummy_call): New function.
3723 (struct m68k_frame_cache): Define.
3724 (m68k_alloc_frame_cache): New function.
3725 (m68k_analyze_frame_setup): New function.
3726 (m68k_analyze_register_saves): New function.
3727 (m68k_analyze_prologue): New function.
3728 (m68k_skip_prologue): Rewrite using above functions.
3729 (m68k_unwind_pc): New function.
3730 (m68k_frame_cache): New function.
3731 (m68k_frame_this_id): New function.
3732 (m68k_frame_prev_register): New function.
3733 (m68k_frame_unwind): New variable.
3734 (m68k_frame_p): New function.
3735 (m68k_sigtramp_frame_cache): New function.
3736 (m68k_sigtramp_frame_this_id): New function.
3737 (m68k_sigtramp_frame_prev_register): New function.
3738 (m68k_sigtramp_frame_unwind): New variable.
3739 (m68k_sigtramp_frame_p): New function.
3740 (m68k_frame_base_address): New function.
3741 (m68k_frame_base): New function.
3742 (m68k_unwind_dummy_id): New function.
3743 (fill_gregset): Use regcache_collect.
3744 (fill_fpregset): Likewise.
3745 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3746 defined.
3747 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3748 deprecated_init_frame_pc, deprecated_store_struct_return,
3749 deprecated_extract_return_value, deprecated_store_return_value,
3750 deprecated_frame_chain, deprecated_frame_saved_pc,
3751 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3752 deprecated_register_virtual_size,
3753 deprecated_max_register_raw_size,
3754 deprecated_max_register_virtual_size,
3755 deprecated_register_virtual_type, deprecated_register_size,
3756 deprecated_register_byte, deprecated_register_bytes,
3757 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3758 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3759 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3760 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3761 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3762 deprecated_push_dummy_frame, deprecated_pop_frame,
3763 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3764 only if SYSCALL_TRAP is defined. Set extract_return_value,
3765 store_return_value, extract_struct_value_address, register_type,
3766 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3767 predicates.
3768 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3769 M68K_MAX_REGISTER_SIZE): Define.
3770 (struct m68k_sigtramp_info): Define.
3771 (struct gdbarch_tdep): Add get_sigtramp_info.
3772 * m68klinux-nat.c (fetch_register): Use register_size instead of
3773 REGISTER_RAW_SIZE. Don't put assignment in if.
3774 (store_register): Likewise.
3775 (fetch_inferior_registers): Likewise.
3776 (store_inferior_registers): Likewise.
3777 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3778 (m68k_linux_frame_saved_pc): Delete.
3779 (m68k_linux_sigcontext_reg_offset,
3780 m68k_linux_ucontext_reg_offset): Define.
3781 (m68k_linux_get_sigtramp_info): New function.
3782 (m68k_linux_extract_return_value): Rewrite using regcache.
3783 (m68k_linux_store_return_value): Likewise.
3784 (m68k_linux_extract_struct_value_address): Likewise.
3785 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3786 Don't set deprecated_frame_saved_pc,
3787 deprecated_extract_return_value, deprecated_store_return_value,
3788 deprecated_extract_struct_value_address. Set
3789 extract_return_value, store_return_value,
3790 extract_struct_value_address.
3791
3792 2003-07-07 Andrew Cagney <cagney@redhat.com>
3793
3794 * expprint.c: Include "user-regs.h" instead of "frame.h".
3795 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3796 frame_map_regnum_to_name.
3797 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3798 (frame_map_name_to_regnum): Simplify, call
3799 user_reg_map_name_to_regnum.
3800 (frame_map_regnum_to_name): Simplify, call
3801 user_reg_map_regnum_to_name.
3802 (frame_register_unwind): Update.
3803 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3804 (_initialize_frame_reg): Call user_reg_add_builtin.
3805 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3806 (value_of_register): Use value_of_user_reg.
3807 * eval.c (evaluate_subexp_standard): Update.
3808 * parse.c (write_dollar_variable): Update.
3809 * d10v-tdep.c (d10v_print_registers_info): Update.
3810 * infcmd.c (registers_info): Update.
3811 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3812 (builtin_regs_h): Delete macro.
3813 (user_regs_h): Define.
3814 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3815 (builtin-regs.o): Delete target.
3816 (user-regs.o): Specify dependencies.
3817 (expprint.o): Update dependencies.
3818 (findvar.o): Update dependencies.
3819 (frame.o): Update dependencies.
3820 (std-regs.o): Update dependencies.
3821
3822 2003-07-06 Christopher Faylor <cgf@redhat.com>
3823
3824 * win32-nat.c (solib_symbols_add): Use one variable for all section
3825 address stuff. Pass variable rather than address of variable to
3826 safe_symbol_file_add.
3827
3828 2003-07-06 Andreas Schwab <schwab@suse.de>
3829
3830 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3831
3832 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3833
3834 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3835
3836 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3837
3838 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3839
3840 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3841
3842 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3843 * config/i386/nto.mh: New file.
3844 * config/i386/nm-nto.h: New file.
3845 * configure.host: Add i[3456]86-*-nto*.
3846
3847 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3848
3849 * remote-vx.c (vx_add_symbols): Fix compilation error.
3850
3851 2003-07-03 Andrew Cagney <cagney@redhat.com>
3852
3853 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3854 * gdbarch.h, gdbarch.c: Re-generate.
3855 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3856 (legacy_register_name): Declare.
3857 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3858 (REGISTER_NAME): Define.
3859 * sparc-tdep.c (legacy_register_name): New function.
3860 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3861 (REGISTER_NAME): Define.
3862 (hppa64_register_name): Declare.
3863 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3864 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3865 (hppa64_register_name): New function.
3866 (hppa_register_name): New function.
3867 * arch-utils.c (legacy_register_name): Delete.
3868 * arch-utils.h (legacy_register_name): Delete.
3869
3870 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3871
3872 * cli/cli-interp.c (cli_interpreter_resume): Update the
3873 cli_uiout's stream to gdb_stdout.
3874
3875 2003-07-03 Andrew Cagney <cagney@redhat.com>
3876
3877 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3878 predicate.
3879 * gdbarch.h, gdbarch.c: Re-generate.
3880 * regcache.c (init_regcache_descr): Use legacy code when either
3881 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3882
3883 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3884
3885 * NEWS: Move "set logging" entry into GDB 6.0 section.
3886
3887 2003-07-02 Jim Blandy <jimb@redhat.com>
3888
3889 * s390-tdep.c (struct frame_extra_info): new member:
3890 'stack_bought_valid'.
3891 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3892 initialize fextra_info->stack_bought.
3893 (s390_frameless_function_invocation): Don't trust the value of
3894 fextra_info_ptr->stack_bought unless
3895 fextra_info->stack_bought_valid is set.
3896
3897 New S390 prologue analyzer.
3898 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3899 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3900 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3901 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3902 compute_x_addr, s390_on_stack, s390_store,
3903 s390_get_signal_frame_info): New functions.
3904 (S390_NUM_SPILL_SLOTS): New macro.
3905 (s390_get_frame_info): Rewritten.
3906 (is_arg_reg): Deleted.
3907
3908 Break out the decoding of S/390 instructions into separate
3909 functions, to make it more legible, and easier to check
3910 against the spec.
3911 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3912 is_rx, is_rxe): New functions.
3913 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3914 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3915 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3916 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3917 enums for opcode values. (Is this an improvement?)
3918
3919 2003-07-02 Andrew Cagney <cagney@redhat.com>
3920
3921 * i386-tdep.c: Revert change committed as part of trad-frame code
3922 below.
3923
3924 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3925
3926 * breakpoint.c (insert_catchpoint): Make static.
3927
3928 2003-07-02 Andreas Schwab <schwab@suse.de>
3929
3930 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3931 former ia64_push_arguments and ia64_push_return_address, and use
3932 regcache functions instead of read/write_register.
3933 (ia64_gdbarch_init): Set push_dummy_call instead of
3934 deprecated_push_arguments and deprecated_push_return_address.
3935
3936 2003-07-01 Andreas Jaeger <aj@suse.de>
3937
3938 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3939 before the call.
3940 Set %rax only to number of SSE registers used.
3941
3942 2003-07-01 Andrew Cagney <cagney@redhat.com>
3943
3944 * trad-frame.h: Update comments, a -1 .addr is reserved.
3945 (trad_frame_value_p, trad_frame_addr_p): Declare.
3946 (trad_frame_reg_p): Declare.
3947 (trad_frame_set_value): Rename trad_frame_register_value.
3948 (trad_frame_set_unknown): Declare.
3949 * trad-frame.c (trad_frame_realreg_p): New function.
3950 (trad_frame_addr_p, trad_frame_value_p): New function.
3951 (trad_frame_set_unknown): New function.
3952 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3953 (trad_frame_prev_register): Use trad_frame_realreg_p,
3954 trad_frame_addr_p and trad_frame_value_p.
3955 (trad_frame_set_value): Rename trad_frame_register_value.
3956 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3957 and trad_frame_set_value.
3958
3959 2003-06-30 Jim Blandy <jimb@redhat.com>
3960
3961 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3962 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3963 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3964 for 16 registers, and then 32 more bytes.
3965 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3966 New macros.
3967 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3968 Move up in the file, since it's now used by is_simple_arg.
3969 (is_simple_arg): Don't assume registers are four bytes long.
3970 Exclude all double arguments. Extended floats are not simple
3971 args.
3972 (is_power_of_two): New function.
3973 (pass_by_copy_ref): Call is_power_of_two, and check that the
3974 length fits in a register, rather than listing all the acceptable
3975 sizes. Extended floats are not passed by reference.
3976 (s390_push_arguments): Don't assume registers are four bytes long.
3977 Reserve an argument register to point to the buffer for structures
3978 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3979 S390_STACK_FRAME_OVERHEAD.
3980
3981 2003-06-30 Andreas Schwab <schwab@suse.de>
3982
3983 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3984 format error message.
3985
3986 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3987
3988 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3989
3990 2003-06-30 David Carlton <carlton@kealia.com>
3991
3992 Band-aid for PR c++/1245.
3993 * Makefile.in (cp-support.o): Depend on complaints_h.
3994 * cp-support.c: Include complaints.h. Add declaration for
3995 find_last_component.
3996 (cp_find_first_component): Separate code into
3997 cp_find_first_component_aux.
3998 (cp_find_first_component_aux): Call demangled_name_complaint.
3999 (demangled_name_complaint): New.
4000
4001 2003-06-30 Andrew Cagney <cagney@redhat.com>
4002
4003 * remote.c (remote_write_bytes): Explicitly compute and then use
4004 the payload size. Update comments to reflect. Fixes problem of
4005 GDB not sending small packets as found by Fred Fish.
4006
4007 2003-06-30 Andrew Cagney <cagney@redhat.com>
4008
4009 * remote.c (remote_async_wait): Fix -Wformat problem.
4010
4011 2003-06-29 Andrew Cagney <cagney@redhat.com>
4012
4013 * remote.c (remote_wait): Call error, and not warning, when the
4014 packet is corrupt.
4015 (remote_async_wait): Ditto.
4016
4017 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4018
4019 * sparc-tdep.c (sparc_y_regnum): Make external again.
4020
4021 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4022
4023 * cli/cli-logging.c (pop_output_files): Add void to function
4024 definition.
4025
4026 2003-06-29 Andrew Cagney <cagney@redhat.com>
4027
4028 * frame.c (frame_register_unwind): Use unsigned char when dumping
4029 the buffer contents.
4030
4031 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4032
4033 * cli/cli-logging.c: New file.
4034 * cli-out.c (struct ui_out_data): Add original_stream.
4035 (cli_redirect): New function.
4036 (cli_ui_out_impl): Add cli_redirect.
4037 (cli_out_new): Initialize original_stream.
4038 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4039 (uo_redirect, ui_out_redirect): New.
4040 * ui-out.h (struct ui_out_impl): Add redirect member.
4041 (redirect_ftype): New.
4042 (ui_out_redirect): Add prototype.
4043 * Makefile.in: Add rules for cli-logging.c.
4044 * NEWS: Mention "set logging".
4045
4046 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4047
4048 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4049
4050 2003-06-27 Andrew Cagney <cagney@redhat.com>
4051
4052 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4053 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4054 * avr-tdep.c (avr_call_dummy_address): Delete function.
4055 (avr_gdbarch_init): Do not set call_dummy_address.
4056
4057 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4058
4059 * symfile.c (syms_from_objfile): Move variables to inner block.
4060 Move the checks for the non-mainline case a bit earlier to avoid
4061 doing some useless computations.
4062
4063 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4064
4065 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4066
4067 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4068
4069 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4070 sections.
4071
4072 2003-06-26 Michael Chastain <mec@shout.net>
4073
4074 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4075 gdb/testsuite/gdb.c++/pr-1210.exp.
4076
4077 2003-06-26 Andrew Cagney <cagney@redhat.com>
4078
4079 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4080 altivec_expression.h and altivec_registers.h.
4081
4082 2003-06-26 Andrew Cagney <cagney@redhat.com>
4083
4084 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4085 info->mach when MIPS16. Patch suggested by Fred Fish.
4086
4087 2003-06-26 Andrew Cagney <cagney@redhat.com>
4088
4089 * utils.c (internal_vproblem): Print the problem to a reason
4090 buffer and then pass to query. Make the msg variable more local.
4091
4092 2003-06-26 Andrew Cagney <cagney@redhat.com>
4093
4094 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4095 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4096 * gdbarch.h, gdbarch.c: Re-generate.
4097 * frame-base.c (default_frame_args_address): Update. Use
4098 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4099 not available.
4100 (default_frame_locals_address): Ditto for
4101 DEPRECATED_FRAME_LOCALS_ADDRESS.
4102 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4103 (vax_frame_num_args): Update.
4104 (vax_gdbarch_init): Update.
4105 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4106 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4107 * mcore-tdep.c (mcore_gdbarch_init): Update.
4108 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4109 * ia64-tdep.c (ia64_gdbarch_init): Update.
4110 * symtab.h (address_class): Update comments.
4111 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4112 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4113 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4114 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4115 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4116 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4117 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4118 * alpha-mdebug-tdep.c: Update.
4119 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4120
4121 2003-06-26 Andreas Jaeger <aj@suse.de>
4122
4123 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4124 of SSE registers so that varargs functions work. Rework handling
4125 of passing arguments on the stack.
4126 (x86_64_store_return_value): Return double and float values in SSE
4127 register.
4128
4129 2003-06-24 Michael Chastain <mec@shout.net>
4130
4131 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4132 the "constructor breakpoints ignored" bug.
4133
4134 2003-06-25 David Carlton <carlton@kealia.com>
4135
4136 * MAINTAINERS: Update e-mail address.
4137
4138 2003-06-24 Jim Blandy <jimb@redhat.com>
4139
4140 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4141
4142 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4143 function.
4144 (ppc_linux_init_abi): Register it as the
4145 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4146
4147 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4148 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4149 method.
4150
4151 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4152 (ppc64_standard_linkage_target): Use it.
4153
4154 2003-06-23 Andrew Cagney <cagney@redhat.com>
4155
4156 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4157 for 0 "int0" and 4 "int32" sized registers.
4158 * gdbtypes.c (builtin_type_int0): Define.
4159 (build_gdbtypes): Initialize builtin_type_int0.
4160 * gdbtypes.h (builtin_type_int0): Declare.
4161
4162 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4163
4164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4165 as characters are unsigned.
4166
4167 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4168
4169 PR gdb/1179
4170 * dwarfread.c (struct_type): Skip static fields without crashing.
4171
4172 2003-06-22 Andrew Cagney <cagney@redhat.com>
4173
4174 GDB 6.0 branch created.
4175 * README: Update.
4176 * PROBLEMS: Update. Empty.
4177 * NEWS: Update.
4178
4179 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4180
4181 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4182 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4183
4184 2003-06-22 Andrew Cagney <cagney@redhat.com>
4185
4186 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4187 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4188 Velikov.
4189
4190 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4191
4192 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4193 compilers.
4194
4195 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4196
4197 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4198 argument of val_print.
4199 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4200 to the address argument of baseclass_offset or target_read_memory.
4201 Do add it to the argument of cp_print_value_fields.
4202
4203 2003-06-21 Andrew Cagney <cagney@redhat.com>
4204
4205 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4206 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4207 instead of 0..NUM_REGS.
4208 (mips_register_reggroup_p): New function.
4209 (mips_pseudo_register_write): New function.
4210 (mips_pseudo_register_read): New function.
4211 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4212 based on the register's type.
4213 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4214 cooked.
4215 (mips_get_saved_register): Simplify. Assert that REGNO is a
4216 pseudo / cooked.
4217 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4218 (mips_register_type): Replace mips_register_virtual_type. Map
4219 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4220 when available.
4221 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4222 that the register is cooked / virtual.
4223 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4224 Only get the extra info when needed.
4225 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4226 (mips32_heuristic_proc_desc): Fetch the cooked register.
4227 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4228 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4229 (mips_print_register): Use gdbarch_register_type, instead of
4230 REGISTER_VIRTUAL_TYPE.
4231 (print_gp_register_row): Use gdbarch_register_type, instead of
4232 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4233 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4234 Print the pseudo / cooked registers.
4235 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4236 Print the pseudo / cooked registers.
4237 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4238 REG_NUM is pseudo / cooked.
4239 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4240 (mips_n32n64_xfer_return_value): Ditto.
4241 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4242 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4243 (mips_register_sim_regno): New function.
4244 (mips_gdbarch_init): Set deprecated_register_byte,
4245 register_group_p, pseudo_register_write, pseudo_register_read,
4246 register_sim_regno, and num_pseudo_regs. Set register_type,
4247 instead of register_virtual_type.
4248 * Makefile.in (mips-tdep.o): Update dependencies.
4249 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4250 REGISTER_VIRTUAL_TYPE.
4251 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4252 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4253 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4254 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4255 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4256
4257 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4258
4259 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4260 * cli/cli-cmds.c: Include "gdb_vfork.h".
4261 (shell_escape): Use vfork.
4262
4263 2003-06-21 Andrew Cagney <cagney@redhat.com>
4264
4265 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4266 32 bit floating-point register saves.
4267
4268 * frame.h (deprecated_unwind_get_saved_register): Delete.
4269 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4270 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4271 and deprecated_get_next_frame_hack instead of
4272 deprecated_unwind_get_saved_register.
4273
4274 * mips-tdep.c (mips_dump_tdep): Do not print
4275 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4276
4277 * frame.c (get_frame_register): New function.
4278 (frame_unwind_register_signed): New function.
4279 (get_frame_register_signed): New function.
4280 (frame_unwind_register_unsigned): New function.
4281 (get_frame_register_unsigned): New function.
4282 * frame.h: Add comments on naming schema.
4283 (get_frame_register, frame_unwind_register_signed): Declare.
4284 (get_frame_register_signed, get_frame_register_signed): Declare.
4285 (frame_unwind_register_unsigned): Declare.
4286 (get_frame_register_unsigned): Declare.
4287
4288 2003-06-20 Theodore A. Roth <troth@openavr.org>
4289
4290 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4291
4292 2003-06-20 Theodore A. Roth <troth@openavr.org>
4293
4294 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4295 (avr_read_sp): Ditto.
4296
4297 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4298
4299 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4300 * config/arm/nm-linux.h: Likewise.
4301 * config/arm/tm-linux.h: Likewise.
4302 * config/ia64/nm-linux.h: Likewise.
4303 * config/ia64/tm-ia64.h: Likewise.
4304 * config/s390/tm-linux.h: Likewise.
4305 * config/s390/tm-s390.h: Likewise.
4306 * s390-nat.c: Likewise.
4307 * s390-tdep.c: Likewise.
4308
4309 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4310 * config/ia64/linux.mt: Likewise.
4311 * config/m68k/linux.mh: Likewise.
4312 * config/mips/linux.mt: Likewise.
4313 * config/powerpc/linux.mh: Likewise.
4314 * config/sh/linux.mt: Likewise.
4315
4316 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4317
4318 * solib.c (solib_open): Change tests for whether to search
4319 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4320 comments.
4321
4322 2003-06-19 Theodore A. Roth <troth@openavr.org>
4323
4324 * avr-tdep.c (avr_frame_address): Delete function.
4325 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4326 set_gdbarch_frame_args_address.
4327
4328 2003-06-19 Andrew Cagney <cagney@redhat.com>
4329
4330 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4331 (REGISTER_CONVERT_FROM_TYPE): Delete.
4332 (mips_register_convert_to_type): Delete declaration.
4333 (mips_register_convert_from_type): Delete declaration.
4334 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4335 kernel/.
4336
4337 2003-06-19 Michael Snyder <msnyder@redhat.com>
4338
4339 * linux-nat.h: New file.
4340 * linux-nat.c: Include linux-nat.h.
4341 * lin-lwp.c: Include linux-nat.h.
4342 Move struct lwp_info def to linux-nat.h.
4343 * linux-proc.c: Include linux-nat.h.
4344 (linux_make_note_section): Iterate over lwps instead of threads.
4345 (linux_do_thread_registers): Use lwp instead of merged pid.
4346 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4347 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4348 Add dependency on linux_nat_h.
4349
4350 2003-06-19 Theodore A. Roth <troth@openavr.org>
4351
4352 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4353
4354 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4355
4356 * varobj.c (get_type, get_target_type): Use check_typedef.
4357
4358 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4359
4360 * breakpoint.c (insert_catchpoint): Call internal_error.
4361
4362 2003-06-19 Theodore A. Roth <troth@openavr.org>
4363
4364 * avr-tdep.c (avr_push_dummy_code): Delete function.
4365 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4366
4367 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4368
4369 * arch-utils.c (default_prepare_to_proceed): Remove.
4370 (generic_prepare_to_proceed): Remove.
4371 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4372 (generic_prepare_to_proceed): Remove prototype.
4373 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4374 * gdbarch.c: Regenerate.
4375 * gdbarch.h: Regenerate.
4376 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4377 * hppah-nat.c (hppa_switched_threads): Remove.
4378 * infrun.c (prepare_to_proceed): New static function, copied from
4379 generic_prepare_to_proceed. Remove select_it argument.
4380 (proceed): Call prepare_to_proceed.
4381 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4382 variables.
4383 (ptrace_wait): Don't set the removed variables.
4384 (hppa_switched_threads): Remove.
4385 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4386 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4387 (lin_lwp_prepare_to_proceed): Remove prototype.
4388 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4389 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4390
4391 2003-06-18 Theodore A. Roth <troth@openavr.org>
4392
4393 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4394 trad-frame.h.
4395 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4396 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4397 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4398 (AVR_PROLOGUE_*): Enumerate prologue types.
4399 (struct frame_extra_info): Remove.
4400 (struct avr_unwind_cache): Define.
4401 (avr_write_sp): Delete function.
4402 (avr_read_fp): Ditto.
4403 (avr_init_extra_frame_info): Ditto.
4404 (avr_pop_frame): Ditto.
4405 (avr_frame_saved_pc): Ditto.
4406 (avr_saved_pc_after_call): Ditto.
4407 (avr_push_return_address): Ditto.
4408 (avr_frame_chain): Ditto.
4409 (avr_store_struct_return): Ditto.
4410 (avr_push_arguments): Ditto.
4411 (avr_scan_prologue): Update comments. Changed to set up the info for
4412 cache unwinding. Now returns end of prologue PC.
4413 (avr_skip_prologue): Better handling of functions lacking a prologue
4414 by using avr_scan_prologue.
4415 (avr_scan_arg_moves): New function.
4416 (avr_saved_regs_unwinder): Ditto.
4417 (avr_frame_unwind_cache): Ditto.
4418 (avr_unwind_pc): Ditto.
4419 (avr_frame_this_id): Ditto.
4420 (avr_frame_prev_register): Ditto.
4421 (avr_frame_p): Ditto.
4422 (avr_frame_base_address ): Ditto.
4423 (avr_unwind_dummy_id): Ditto.
4424 (avr_push_dummy_code): Ditto.
4425 (push_stack_item): Ditto.
4426 (pop_stack_item): Ditto.
4427 (avr_push_dummy_call): Ditto.
4428 (struct stack_item): Define.
4429 (avr_frame_unwind): Declare structure.
4430 (avr_frame_base): Ditto.
4431 (avr_gdbarch_init): Remove calls to
4432 set_gdbarch_deprecated_init_frame_pc,
4433 set_gdbarch_deprecated_target_read_fp,
4434 set_gdbarch_deprecated_dummy_write_sp,
4435 set_gdbarch_deprecated_fp_regnum,
4436 set_gdbarch_deprecated_push_arguments,
4437 set_gdbarch_deprecated_push_return_address,
4438 set_gdbarch_deprecated_pop_frame,
4439 set_gdbarch_deprecated_store_struct_return,
4440 set_gdbarch_deprecated_frame_init_saved_regs,
4441 set_gdbarch_deprecated_init_extra_frame_info,
4442 set_gdbarch_deprecated_frame_chain,
4443 set_gdbarch_deprecated_frame_saved_pc,
4444 set_gdbarch_deprecated_saved_pc_after_call.
4445 Add calls to set_gdbarch_push_dummy_call,
4446 set_gdbarch_push_dummy_code,
4447 frame_unwind_append_predicate,
4448 frame_base_set_default,
4449 set_gdbarch_unwind_dummy_id,
4450 set_gdbarch_unwind_pc.
4451 Wrap a long line.
4452
4453 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4454
4455 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4456 registers for H8/300S.
4457 (h8300_print_registers_info): Ditto.
4458 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4459
4460 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4461
4462 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4463 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4464 (lin_lwp_wait): Likewise. Update comments.
4465 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4466 (pull_pid_from_list, linux_record_stopped_pid): New.
4467
4468 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4469
4470 * ada-lang.c (scan_discrim_bound): Name first argument.
4471 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4472 declared by ALL_BLOCK_SYMBOLS.
4473
4474 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4475
4476 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4477 ("regcache.h"): Include it.
4478 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4479
4480 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4481
4482 * NEWS: Mention gdbserver detach change and "disconnect" command.
4483 * infcmd.c (disconnect_command): New function.
4484 (_initialize_infcmd): Add ``disconnect'' command.
4485 * remote.c (remote_async_detach): Delete.
4486 (remote_detach): Merge remote_async_detach.
4487 (remote_disconnect): New.
4488 (init_remote_ops): Set to_disconnect.
4489 (init_remote_cisco_ops): Likewise.
4490 (init_remote_async_ops): Likewise. Use remote_detach.
4491 * target.c (cleanup_target): Default to_disconnect.
4492 (update_current_target): Inherit to_disconnect.
4493 (target_disconnect, debug_to_disconnect): New functions.
4494 (setup_target_debug): Set to_disconnect.
4495 * target.h (struct target_ops): Add to_disconnect.
4496 (target_disconnect): Add prototype.
4497
4498 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4499
4500 * breakpoint.c (insert_catchpoint): New function.
4501 (insert_breakpoints): Use catch_exceptions to call
4502 insert_catchpoint. Disable catchpoints if they fail to insert.
4503
4504 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4505
4506 * symfile.c (reread_symbols): Clear sym_private.
4507
4508 2003-06-17 Andrew Cagney <cagney@redhat.com>
4509
4510 * trad-frame.h (struct frame_info): Add opaque declaration.
4511 * remote-fileio.h (struct cmd_list_element): Add opaque
4512 declaration.
4513 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4514 comments.
4515
4516 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4517
4518 * remote.c (remote_prepare_to_store): Replace call to
4519 deprecated_read_register_bytes with multiple regcache_raw_read
4520 calls.
4521
4522 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4523
4524 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4525 (nto_find_and_open_solib): Likewise.
4526 (nto_init_solib_absolute_prefix): Likewise.
4527 (_initialize_nto_tdep): Fix indentation.
4528
4529 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4530
4531 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4532
4533 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4534
4535 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4536
4537 2003-06-17 Jim Blandy <jimb@redhat.com>
4538
4539 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4540
4541 2003-06-16 Theodore A. Roth <troth@openavr.org>
4542
4543 * avr-tdep.c (avr_extract_return_value): New function.
4544 (avr_gdbarch_init): Set extract_return_value method.
4545
4546 2003-06-16 Andrew Cagney <cagney@redhat.com>
4547
4548 * frame.h (deprecated_get_next_frame_hack): Declare.
4549 * frame.c (legacy_saved_regs_prev_register): Only require
4550 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4551 there are always saved regs.
4552 (deprecated_generic_get_saved_register): Do not require
4553 DEPRECATED_FRAME_INIT_SAVED_REGS.
4554 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4555 use frame ID unwind instead.
4556 (deprecated_get_next_frame_hack): New function.
4557
4558 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4559
4560 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4561 (h8300_push_dummy_call): ...this function. Some minor optimization.
4562 (h8300_push_return_address): Remove.
4563 (h8300_gdbarch_init): Remove calls to
4564 set_gdbarch_deprecated_dummy_write_sp,
4565 set_gdbarch_deprecated_push_arguments and
4566 set_gdbarch_deprecated_push_return_address.
4567 Add call to set_gdbarch_push_dummy_call.
4568
4569 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4570
4571 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4572 (E_PSEUDO_EXR_REGNUM): Ditto.
4573 (h8300_is_argument_spill): Check for instructions moving argument
4574 registers into safe registers.
4575 (h8300_skip_prologue): Check for stm instruction to push registers
4576 used for register variables onto stack.
4577 (gdb_print_insn_h8300): Remove.
4578 (h8300_examine_prologue): Add a comment.
4579 (h8300_register_name): Take pseudo registers into account.
4580 (h8300s_register_name): Ditto.
4581 (h8300sx_register_name): Ditto.
4582 (h8300_print_register): Ditto.
4583 (h8300_print_registers_info): Define "nice" printing order.
4584 (h8300_saved_pc_after_call): Take pseudo registers into account.
4585 (h8300_register_type): Ditto. Return type used for remote connection
4586 when requesting real CCR or EXR register, return actual type when
4587 requesting pseudo CCR or EXR.
4588 (h8300_pseudo_register_read): New function.
4589 (h8300_pseudo_register_write): Ditto.
4590 (h8300_dbg_reg_to_regnum): Ditto.
4591 (h8300s_dbg_reg_to_regnum): Ditto.
4592 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4593 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4594 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4595 set_gdbarch_print_insn architecture dependent.
4596 Call set_gdbarch_pseudo_register_read and
4597 set_gdbarch_pseudo_register_write.
4598 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4599
4600 2003-06-16 Andrew Cagney <cagney@redhat.com>
4601
4602 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4603 * gdbarch.h, gdbarch.c: Re-generate.
4604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4605 * s390-tdep.c (s390_gdbarch_init): Update.
4606 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4607 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4608 * mips-tdep.c (mips_gdbarch_init): Update.
4609 * mcore-tdep.c (mcore_gdbarch_init): Update.
4610 * cris-tdep.c (cris_gdbarch_init): Update.
4611 * infcall.c (call_function_by_hand): Update.
4612 * ia64-tdep.c (ia64_push_arguments): Update comment.
4613 * frame.c (legacy_get_prev_frame): Do not assume
4614 SAVE_DUMMY_FRAME_TOS_P.
4615 * dummy-frame.c (find_dummy_frame): Update comment.
4616
4617 2003-06-16 Andrew Cagney <cagney@redhat.com>
4618
4619 * regcache.c (do_cooked_read): Do not use register_valid_p.
4620
4621 2003-06-15 Theodore A. Roth <troth@openavr.org>
4622
4623 * avr-tdep.c (avr_register_type): Remove a blank line.
4624 (avr_scan_prologue): Correct some comments.
4625
4626 2003-06-15 Theodore A. Roth <troth@openavr.org>
4627
4628 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4629 prologue types.
4630 Properly scan prologues generated by gcc with the -mcall-prologues
4631 option.
4632 Add code to scan -mcall-prologues for mega devices.
4633
4634 2003-06-15 Theodore A. Roth <troth@openavr.org>
4635
4636 * avr-tdep.c (avr_register_byte): Delete function.
4637 (avr_register_raw_size): Delete function.
4638 (avr_register_virtual_size): Delete function.
4639 (avr_register_virtual_type): Delete function.
4640 (avr_register_type): New function.
4641 (avr_address_to_pointer): Remove unused code.
4642 (avr_read_fp): Need to read FP as two separate bytes due to change to
4643 avr_register_type() usage.
4644 (avr_gdbarch_init): Don't set deprecated_register_size.
4645 Don't set deprecated_register_bytes.
4646 Don't set deprecated_register_byte.
4647 Don't set deprecated_register_raw_size.
4648 Don't set deprecated_max_register_raw_size.
4649 Don't set deprecated_register_virtual_size.
4650 Don't set deprecated_max_register_virtual_size.
4651 Don't set deprecated_register_virtual_type.
4652 Set register_type method.
4653
4654 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4655
4656 * Makefile.in (linux-nat.o): Add rule.
4657 * linux-nat.c: New file.
4658 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4659 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4660 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4661 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4662 * config/arm/linux.mh (NATDEPFILES): Likewise.
4663 * config/i386/linux.mh (NATDEPFILES): Likewise.
4664 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4665 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4666 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4667 * config/mips/linux.mh (NATDEPFILES): Likewise.
4668 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4669 * config/s390/s390.mh (NATDEPFILES): Likewise.
4670 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4671
4672 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4673
4674 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4675 replace out-of-date comment.
4676
4677 2003-06-15 Andrew Cagney <cagney@redhat.com>
4678
4679 * rdi-share/host.h (Fail): Change to a varargs function.
4680 * remote-rdi.c (Fail): Update.
4681
4682 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4683
4684 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4685 (i386_convert_register_p, i386_register_to_value,
4686 i386_register_from_value): Handle types longer than 8 bytes.
4687
4688 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4689
4690 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4691 Move floating-point code to new function in i387-tdep.c.
4692 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4693 New functions containing code moved here from i386-tdep.c.
4694 * i387-tdep.h: Add opaque declaration for `struct type'.
4695 (i387_register_to_value, i387_value_to_register): New prototypes.
4696 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4697 (x86_64_init_abi): Set convert_register_p, register_to_value and
4698 value_to_register here.
4699
4700 2003-06-14 Andrew Cagney <cagney@redhat.com>
4701
4702 * mips-tdep.c (mips_register_to_value): Make static.
4703 (mips_value_to_register): Make static.
4704 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4705 * ia64-tdep.c (ia64_register_raw_size): Make static.
4706 (ia64_register_virtual_size): Make static.
4707 (ia64_register_byte): Make static.
4708 * i387-tdep.c: Include "i387-tdep.h".
4709 (print_387_control_word): Delete function.
4710 (print_387_status_word): Delete function.
4711 (print_387_status_bits): Delete function.
4712 (print_387_control_bits): Delete function.
4713 * Makefile.in (i387-tdep.o): Update dependencies.
4714 * rdi-share/host.h (Fail): Declare.
4715 * remote-rdi.c (Fail): Update to match declaration.
4716
4717 2003-06-14 Andrew Cagney <cagney@redhat.com>
4718
4719 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4720 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4721 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4722 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4723 * README: Delete reference to remote-array.
4724 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4725 (remote-array.o): Delete target.
4726 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4727 * remote-array.c: Delete file.
4728
4729 2003-06-14 Andrew Cagney <cagney@redhat.com>
4730 Mark Kettenis <kettenis@gnu.org>
4731
4732 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4733 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4734 parameter with "frame".
4735 * gdbarch.h, gdbarch.c: Re-generate.
4736 * frame.h (put_frame_register): Declare.
4737 * frame.c (put_frame_register): New function.
4738 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4739 (legacy_register_to_value): Rewrite, use "frame" to get the
4740 register value.
4741 (legacy_value_to_register): Rewrite, use "frame" to find the
4742 register's location before storing.
4743 * arch-utils.h (legacy_convert_register_p): Update.
4744 (legacy_register_to_value, legacy_value_to_register): Update.
4745 * findvar.c (value_from_register): Rewrite, eliminate use of
4746 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4747 "frame" to REGISTER_TO_VALUE.
4748 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4749 lval_reg_frame_relative + lval_register branch of the switch. Do
4750 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4751 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4752 I386_EDI_REGNUM): New defines.
4753 (i386_next_regnum, i386_convert_register_p,
4754 i386_register_to_value, i386_value_to_register): New functions.
4755 (i386_register_convertible, i386_register_convert_to_virtual,
4756 i386_convert_to_raw): Remove functions.
4757 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4758 value_to_register instead of register_convertible,
4759 register_convert_to_virtual and register_convert_to_raw.
4760 * mips-tdep.c (mips_convert_register_p): New function.
4761 (mips_value_to_register): Replace mips_register_convert_from_type.
4762 (mips_register_to_value): Replace mips_register_convert_to_type.
4763 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4764 register_to_value.
4765 * alpha-tdep.c (alpha_convert_register_p): Update.
4766 (alpha_value_to_register): Update, store the register.
4767 (alpha_register_to_value): Update, fetch the register.
4768
4769 2003-06-14 Theodore A. Roth <troth@openavr.org>
4770
4771 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4772 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4773 Don't set deprecated_call_dummy_words.
4774 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4775 Don't set remote_translate_xfer_address.
4776 (avr_io_reg_read_command): Remove commented out debug printf.
4777 Wrap a long line.
4778
4779 2003-06-14 Theodore A. Roth <troth@openavr.org>
4780
4781 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4782 causes gdb to seg fault.
4783
4784 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4785
4786 * sparc-nat.c (fetch_inferior_registers): Correct
4787 a reference to "registers".
4788
4789 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4790
4791 * Makefile.in (exc_request_U_h): Define
4792 (exc_request_S_h): Likewise.
4793 (msg_reply_S_h): Likewise.
4794 (msg_U_h): Likewise.
4795 (notify_S_h): Likewise.
4796 (process_reply_S_h): Likewise.
4797 (gnu-nat.o): Depend on gdb_obstack_h
4798 * gnu-nat.c: Include "gdb_obstack.h".
4799
4800 2003-06-13 Andrew Cagney <cagney@redhat.com>
4801
4802 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4803 * gdbarch.h, gdbarch.c: Re-generate.
4804
4805 2003-06-13 Andrew Cagney <cagney@redhat.com>
4806
4807 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4808 when deprecated REGISTER macros can be deleted.
4809 * gdbarch.h, gdbarch.c: Re-generate.
4810
4811 2003-06-13 Jim Blandy <jimb@redhat.com>
4812
4813 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4814 Linux entry point symbols for _dl_debug_state, too.
4815
4816 2003-06-13 Andrew Cagney <cagney@redhat.com>
4817
4818 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4819 available, do not use the FP register, and always save the TOS.
4820 * dummy-frame.c (dummy_frame_this_id): Do not assert
4821 SAVE_DUMMY_FRAME_TOS.
4822 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4823 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4824 (i386_push_dummy_call): Add 8 to the returned SP.
4825 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4826 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4827 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4828 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4829 (x86_64_push_dummy_call): Return "sp + 16".
4830 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4831 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4832 save_dummy_frame_tos.
4833
4834 2003-06-13 Jim Blandy <jimb@redhat.com>
4835
4836 * frv-tdep.c (frv_use_struct_convention): Delete static
4837 declaration for function deleted in my change of 2003-06-12.
4838
4839 2003-06-13 Theodore A. Roth <troth@openavr.org>
4840
4841 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4842 (avr_pointer_to_address): Shift code addrs left 1 bit.
4843 (avr_convert_from_func_ptr_addr): Delete function since operation is
4844 better handled by avr_address_to_pointer and avr_pointer_to_address.
4845 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4846
4847 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4848
4849 From Kelley Cook <kelleycook@wideopenwest.com>:
4850 * configure.host: Accept i[34567]86 variants.
4851 * configure.tgt: Likewise.
4852 * nlm/configure.in: Likewise.
4853 * nlm/configure: Regenerated.
4854
4855 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4856
4857 * arm-tdep.c (solib-svr4.h): Dont' include it.
4858 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4859 * arm-linux-tdep.c: ... here. Make static.
4860 (arm_linux_init_abi): Register it.
4861 (solib-svr4.h): Include it.
4862 * Makefile.in: Update dependencies.
4863 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4864 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4865
4866 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4867
4868 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4869 indicate registers used for return values.
4870 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4871 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4872 members.
4873 (h8300_init_extra_frame_info): Ditto.
4874 (h8300_frame_locals_address): Removed.
4875 (h8300_frame_args_address): Removed.
4876 (h8300_extract_return_value): Use new regcache structure. Only care
4877 for 16 bit CPUs.
4878 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4879 (h8300_store_return_value): Use new regcache structure. Only care
4880 for 16 bit CPUs.
4881 (h8300h_store_return_value): Same function for 32 bit CPUs.
4882 (h8300_store_struct_return): Removed.
4883 (h8300_extract_struct_value_address): Use new regcache structure.
4884 (h8300h_extract_struct_value_address): Removed.
4885 (h8300_push_dummy_code): New function.
4886 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4887 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4888 set_gdbarch_store_return_value architecture dependent.
4889 Call set_gdbarch_push_dummy_code and
4890 set_gdbarch_extract_struct_value_address.
4891 Remove calls to set_gdbarch_frame_args_address,
4892 set_gdbarch_frame_locals_address,
4893 set_gdbarch_deprecated_store_struct_return,
4894 set_gdbarch_deprecated_extract_return_value,
4895 set_gdbarch_deprecated_extract_struct_value_address,
4896 set_gdbarch_deprecated_call_dummy_words and
4897 set_gdbarch_deprecated_sizeof_call_dummy_words.
4898
4899 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4900
4901 * h8300-tdep.c (h8300_register_byte): Remove.
4902 (h8300h_register_byte): Remove.
4903 (h8300_register_virtual_type): Remove. Substitute by...
4904 (h8300_register_type): New function.
4905 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4906 (h8300h_extract_struct_value_address): Ditto.
4907 (h8300_gdbarch_init): Drop calls to
4908 set_gdbarch_deprecated_register_byte and
4909 set_gdbarch_deprecated_register_virtual_type.
4910 Add call to set_gdbarch_register_type.
4911
4912 2003-06-13 Andrew Cagney <cagney@redhat.com>
4913
4914 * gdbarch.sh: Update comments on registers.
4915 (deprecated_register_byte): Rename register_byte.
4916 (deprecated_register_raw_size): Rename register_raw_size.
4917 (deprecated_register_virtual_size): Rename register_virtual_size.
4918 (deprecated_register_virtual_type): Rename register_virtual_type.
4919 * gdbarch.h, gdbarch.c: Re-generate.
4920 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4921 * vax-tdep.c (vax_gdbarch_init): Update.
4922 * v850-tdep.c (v850_gdbarch_init): Update.
4923 * sparc-tdep.c (sparc_gdbarch_init): Update.
4924 * sh-tdep.c (sh_gdbarch_init): Update.
4925 * s390-tdep.c (s390_gdbarch_init): Update.
4926 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4927 * ns32k-tdep.c: Update.
4928 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4929 * mips-tdep.c (mips_gdbarch_init): Update.
4930 * mcore-tdep.c (mcore_gdbarch_init): Update.
4931 * m68k-tdep.c (m68k_gdbarch_init): Update.
4932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4933 * ia64-tdep.c (ia64_gdbarch_init): Update.
4934 * hppa-tdep.c (hppa_gdbarch_init): Update.
4935 * h8300-tdep.c (h8300_gdbarch_init): Update.
4936 * frv-tdep.c (frv_gdbarch_init): Update.
4937 * cris-tdep.c (cris_gdbarch_init): Update.
4938 * avr-tdep.c (avr_gdbarch_init): Update.
4939 * alpha-tdep.c (alpha_gdbarch_init): Update.
4940 * arm-tdep.c (arm_gdbarch_init): Update.
4941
4942 2003-06-13 Andrew Cagney <cagney@redhat.com>
4943
4944 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4945 mips_o32_use_struct_convention with always_use_struct_convention.
4946
4947 2003-06-12 David Carlton <carlton@kealia.com>
4948
4949 * cp-namespace.c (cp_set_block_scope): Comment out
4950 processing_has_namespace_info branch.
4951
4952 2003-06-12 Jim Blandy <jimb@redhat.com>
4953
4954 Recognize and skip 64-bit PowerPC Linux linkage functions.
4955 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4956 insn_pattern, insns_match_pattern, d_field, ds_field): New
4957 functions, macros, and types for working with PPC instructions.
4958 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4959 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4960 ppc64_skip_trampoline_code): New functions, variables, and macros
4961 for recognizing and skipping linkage functions.
4962 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4963 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4964
4965 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4966 register offsets for both the 32- and 64-bit interfaces.
4967
4968 Actually finish the job started by my change of 2003-05-29.
4969 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4970 other #definition of this.
4971 (ppc_linux_skip_trampoline_code): Remove declaration.
4972 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4973 static.
4974 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4975 method for GDBARCH.
4976
4977 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4978 'long' on ppc64-*-linux*.
4979
4980 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4981 isn't #defined, assume the register doesn't exist: act as if
4982 tdep->ppc_mq_regnum were -1.
4983
4984 * configure.host, configure.tgt: Add entries for
4985 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4986 powerpc/linux.mt.
4987 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4988 New files.
4989
4990 * arch-utils.c (always_use_struct_convention): New function.
4991 * arch-utils.h (always_use_struct_convention): New prototype.
4992 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4993 (alpha_gdbarch_init): Register always_use_struct_convention,
4994 instead of alpha_use_struct_convention.
4995 * cris-tdep.c (cris_use_struct_convention): Delete.
4996 (cris_gdbarch_init): Register always_use_struct_convention,
4997 instead of cris_use_struct_convention.
4998 * frv-tdep.c (frv_use_struct_convention): Delete.
4999 (frv_gdbarch_init): Register always_use_struct_convention,
5000 instead of frv_use_struct_convention.
5001 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5002 (h8300_gdbarch_init): Register always_use_struct_convention,
5003 instead of h8300_use_struct_convention.
5004 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5005 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5006 instead of mips_o32_use_struct_convention.
5007
5008 2003-06-12 Andrew Cagney <cagney@redhat.com>
5009
5010 * wince.c: Include "mips-tdep.h".
5011 * mips-tdep.h (mips_next_pc): Declare.
5012 * mcore-tdep.c: Make more local functions static.
5013 * Makefile.in (wince.o): Update dependencies.
5014
5015 2003-06-12 David Carlton <carlton@kealia.com>
5016
5017 * symtab.c (lookup_symbol_aux_minsyms): Replace
5018 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5019 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5020 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5021 SYMBOL_NATURAL_NAME.
5022
5023 2003-06-12 Andreas Schwab <schwab@suse.de>
5024
5025 * Makefile.in (tuiDisassem.o): Update dependencies.
5026
5027 2003-06-12 David Carlton <carlton@bactrian.org>
5028
5029 * symtab.h: Delete declaration of make_symbol_overload_list.
5030 Add declaration of lookup_partial_symbol.
5031 * symtab.c (remove_params): Move to cp-support.c.
5032 (overload_list_add_symbol, make_symbol_overload_list)
5033 (sym_return_val_size, sym_return_val_index): Ditto.
5034 (lookup_partial_symbol): Make extern.
5035 * cp-support.h: Add declaration of make_symbol_overload_list.
5036 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5037 symtab.h, and block.h.
5038 (remove_params): Move here from symtab.c.
5039 (overload_list_add_symbol, make_symbol_overload_list)
5040 (sym_return_val_size, sym_return_val_index): Ditto.
5041 * valops.c: Include cp-support.h.
5042 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5043 frame_h, and block_h.
5044 (valops.o): Depend on cp_support_h.
5045
5046 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5047
5048 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5049 substitute by NUM_REGS throughout.
5050 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5051 (h8300s_register_name): New function for H8S registers.
5052 (h8300sx_register_name): Ditto for H8SX registers.
5053 (h8300_print_register): Revise register printing, avoid depending
5054 on 32 bit long.
5055 (h8300_register_byte): Only care for H8/300 registers.
5056 (h8300h_register_byte): New function for any other architecture.
5057 (h8300_register_raw_size): Remove.
5058 (h8300_register_virtual_type): Revise to return actually useful
5059 type.
5060 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5061 (h8300h_extract_struct_value_address): New function for any other
5062 architecture.
5063 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5064 set_gdbarch_register_name, set_gdbarch_register_byte,
5065 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5066 Remove calls to set_gdbarch_deprecated_register_size,
5067 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5068 set_gdbarch_deprecated_max_register_raw_size,
5069 set_gdbarch_register_virtual_size and
5070 set_gdbarch_deprecated_max_register_virtual_size entirely.
5071 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5072 set_gdbarch_long_double_bit.
5073
5074 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5075
5076 * doublest.c (convert_doublest_to_floatformat): When dealing
5077 with the implied integer bit, only alter mant_bits if we are
5078 processing a full 32 bits of mantissa.
5079
5080 2003-06-11 David Carlton <carlton@bactrian.org>
5081
5082 * dictionary.h: New.
5083 * dictionary.c: New.
5084 * block.h: Add opaque declaration for struct dictionary.
5085 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5086 'sym' members.
5087 (BLOCK_DICT): New macro.
5088 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5089 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5090 BLOCK_SHOULD_SORT.
5091 (ALL_BLOCK_SYMBOLS): Update definition.
5092 * Makefile.in (SFILES): Add dictionary.c.
5093 (dictionary_h): New.
5094 (COMMON_OBS): Add dictionary.o.
5095 (dictionary.o): New.
5096 (ada-lang.o): Depend on dictionary_h.
5097 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5098 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5099 (mi-cmd-stack.o): Ditto.
5100 (gdbtk-cmds.o): Update dependencies.
5101 (gdbtk-stack.o): Ditto.
5102 * ada-lang.c: Include dictionary.h.
5103 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5104 (fill_in_ada_prototype, debug_print_block): Ditto.
5105 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5106 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5107 'is_sorted'.
5108 * mdebugread.c: Include dictionary.h.
5109 (struct parse_stack): Delete 'maxsyms' member.
5110 (parse_symbol): Update calls to new_block. Delete calls to
5111 shrink_block. Use dictionary methods.
5112 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5113 Update calls to new_symtab. Don't maintain maxsyms data.
5114 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5115 (add_symbol): Just call dict_add_symbol.
5116 (new_symtab): Delete 'maxsyms' argument.
5117 (new_symtab): Update calls to new_block.
5118 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5119 (shrink_block): Delete function.
5120 (fixup_sigtramp): Update call to new_block. Add symbol via
5121 dict_add_symbol.
5122 * jv-lang.c: Include dictionary.h.
5123 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5124 appropriately. Set class_symtab->free_func. Make sure the
5125 blockvector is big enough to hold two blocks.
5126 (add_class_symtab_symbol): Use dictionary methods.
5127 (free_class_block): New function.
5128 (type_from_class): Replace explicit iteration by
5129 ALL_BLOCK_SYMBOLS.
5130 * symtab.h (struct symtab): Replace 'free_ptr' method by
5131 'free_func'.
5132 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5133 sort_symtab_syms.
5134 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5135 sort_symtab_syms.
5136 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5137 Include dictionary.h.
5138 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5139 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5140 sort_symtab_syms.
5141 * objfiles.c: Include dictionary.h.
5142 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5143 * buildsym.c: Include dictionary.h.
5144 (finish_block): Use dictionary methods.
5145 (end_symtab): Set free_func to NULL, not free_ptr.
5146 * tracepoint.c: Include dictionary.h.
5147 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5148 (scope_info): Ditto.
5149 * stack.c: Include dictionary.h.
5150 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5151 (print_block_frame_labels, print_frame_arg_vars)
5152 (print_frame_args): Ditto.
5153 * symmisc.c (free_symtab_block): Use dictionary methods.
5154 (dump_symtab): Ditto.
5155 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5156 Include dictionary.h.
5157 * symfile.h: Delete declarations of sort_block_syms,
5158 sort_symtab_syms.
5159 * symfile.c (sort_block_syms): Delete.
5160 (sort_symtab_syms): Delete.
5161 * symtab.c: Include dictionary.h.
5162 (lookup_block_symbol): Use dictionary iterators.
5163 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5164 (search_symbols, make_symbol_completion_list): Ditto.
5165 (make_symbol_overload_list): Ditto.
5166 * valops.c (value_of_local): Use dict_empty.
5167 Include dictionary.h.
5168
5169 2003-06-11 J. Brobecker <brobecker@gnat.com>
5170
5171 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5172
5173 2003-06-11 David Carlton <carlton@bactrian.org>
5174
5175 * block.h (BLOCK_SHOULD_SORT): Delete.
5176 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5177 blocks.
5178 * ada-lang.c (ada_add_block_symbols): Ditto.
5179 * symfile.c (sort_block_syms): Delete.
5180 (sort_symtab_syms): Ditto.
5181 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5182 declarations.
5183 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5184 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5185 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5186 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5187 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5188 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5189 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5190
5191 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5192
5193 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5194 bits to 128.
5195
5196 2003-06-11 Andrew Cagney <cagney@redhat.com>
5197
5198 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5199 REGISTER_CONVERTIBLE.
5200 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5201 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5202 * gdbarch.h, gdbarch.c: Re-generate.
5203 * arch-utils.h (deprecated_register_convertible_not): Rename
5204 generic_register_convertible_not.
5205 * arch-utils.c (deprecated_register_convertible_not): Rename
5206 generic_register_convertible.
5207 (legacy_convert_register_p, legacy_register_to_value): Update.
5208 * sh-tdep.c (sh64_push_arguments): Update.
5209 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5210 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5211 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5212 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5213 * arch-utils.c (legacy_value_to_register): Update.
5214 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5215 (rs6000_register_convert_to_raw): Make parameter "from" const.
5216 * mips-tdep.c (mips_gdbarch_init): Update.
5217 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5218 * infcmd.c (default_print_registers_info): Update.
5219 * ia64-tdep.c (ia64_gdbarch_init): Update.
5220 (ia64_register_convert_to_raw): Make parameter "from" const.
5221 * i386-tdep.c (i386_gdbarch_init): Update.
5222 (i386_register_convert_to_raw): Update.
5223
5224 2003-06-11 Andrew Cagney <cagney@redhat.com>
5225
5226 * remote-fileio.c: Include "remote-fileio.h".
5227 * Makefile.in (remote-fileio.o): Update dependencies.
5228 (remote_fileio_h): Fix typo.
5229
5230 2003-06-11 Andrew Cagney <cagney@redhat.com>
5231
5232 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5233 (xstormy16_save_dummy_frame_tos): Make static.
5234 (_initialize_xstormy16_tdep): Add declaration.
5235 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5236 * v850-tdep.c: Make local functions static.
5237 (_initialize_v850_tdep): Add declaration.
5238 * sparc-tdep.c: Make local functions static.
5239 (_initialize_sparc_tdep): Add declaration.
5240 * sh-tdep.c: Make local functions static.
5241 (_initialize_sh_tdep): Add declaration.
5242 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5243 * s390-tdep.c: Make local functions static.
5244 (_initialize_s390_tdep): Add declaration.
5245 * dbxread.c (find_stab_function_addr): Make static.
5246 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5247 * ocd.c (_initialize_remote_ocd): Add declaration.
5248 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5249 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5250 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5251 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5252 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5253 * remote-array.c (_initialize_array): Add declaration.
5254 (_initialize_remote_monitors): Add declaration.
5255 * remote-mips.c: Make local functions static.
5256 (_initialize_remote_mips): Add declaration.
5257 * mcore-tdep.c: Make all local functions static.
5258 (_initialize_mcore_tdep): Add declaration.
5259 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5260 * abug-rom.c (_initialize_abug_rom): Add declaration.
5261 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5262 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5263 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5264 * remote-est.c (_initialize_est): Add declaration.
5265 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5266 (m68hc11_call_dummy_address): Make static.
5267 * ia64-tdep.c: Make local functions static.
5268 (_initialize_ia64_tdep): Add declaration.
5269 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5270 * monitor.c (monitor_wait_filter): Make static.
5271 (_initialize_remote_monitors): Add declaration.
5272 * remote-hms.c (_initialize_remote_hms): Add declaration.
5273 * remote-e7000.c (fetch_regs_from_dump): Make static.
5274 (expect_n): Make static.
5275 (_initialize_remote_e7000): Add declaration.
5276 * ser-e7kpc.c: Always include "defs.h".
5277 (_initialize_ser_e7000pc): Add declaration.
5278 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5279 * cris-tdep.c: Make all but one function static.
5280 (_initialize_cris_tdep): Add declaration.
5281 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5282 * solib.c (update_solib_list): Make static.
5283 (_initialize_solib): Add declaration.
5284 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5285 (_initialize_avr_tdep): Add declaration.
5286 * remote-rdi.c (voiddummy): Make static.
5287 (_initialize_remote_rdi): Add declaration.
5288 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5289 * remote-rdp.c (send_rdp): Make static.
5290 (_initialize_remote_rdp): Add declaration.
5291 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5292
5293 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5294
5295 * remote-fileio.c: Make ari happy.
5296
5297 2003-06-10 J. Brobecker <brobecker@gnat.com>
5298
5299 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5300 fetching the trailing bytes of the buffer we are about to write.
5301
5302 2003-06-10 Andrew Cagney <cagney@redhat.com>
5303
5304 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5305 * Makefile.in (remote-fileio.o): Update dependencies.
5306 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5307 include <setjmp.h>, or <sys/types.h> conditional on USG.
5308 (remote_fio_jmp_buf): Delete global variable.
5309
5310 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5311 Martin M. Hunt <hunt@redhat.com>
5312
5313 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5314 (SFILES): Add remote-fileio.c.
5315 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5316 dependencies for building remote.o.
5317 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5318 * remote-fileio.h: New header file defining remote File-I/O interface.
5319 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5320 static storage class.
5321 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5322 'F' packet.
5323 (_initialize_remote): Call initialize_remote_fileio().
5324 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5325 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5326 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5327 (captured_main): Initialize new ui_files.
5328 * ui-file.c: Add read and fgets input functions.
5329 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5330 (null_file_read): New function.
5331 (ui_file_read): New function.
5332 (set_ui_file_read): New function.
5333 (stdio_file_read): New function.
5334 * ui-file.h: New type ui_file_read_ftype.
5335 (set_ui_file_read): Declare.
5336 (ui_file_read): Declare.
5337
5338 2003-06-09 Andrew Cagney <cagney@redhat.com>
5339
5340 * frame.h (deprecated_unwind_get_saved_register): Rename
5341 generic_unwind_get_saved_register, update comments.
5342 * mips-tdep.c (mips_get_saved_register): Update.
5343 * frame.c (deprecated_unwind_get_saved_register): Update.
5344
5345 2003-06-09 Andrew Cagney <cagney@redhat.com>
5346
5347 * vax-tdep.c (vax_frame_locals_address): Delete function.
5348 (vax_gdbarch_init): Do not set frame_locals_address.
5349 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5350 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5351 * s390-tdep.c (s390_frame_args_address): Delete function.
5352 (s390_gdbarch_init): Do not set frame_args_address or
5353 frame_locals_address.
5354 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5355 (ns32k_gdbarch_init): Do not set frame_locals_address.
5356 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5357 (hppa_frame_locals_address): Delete function.
5358 (hppa_gdbarch_init): Do not set frame_args_address, or
5359 frame_locals_address.
5360 * arm-tdep.c (arm_frame_args_address): Delete.
5361 (arm_frame_locals_address): Delete.
5362 (arm_gdbarch_init): Do not set frame_args_address, or
5363 frame_locals_address.
5364
5365 2003-06-09 Andrew Cagney <cagney@redhat.com>
5366
5367 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5368 * gdbarch.h, gdbarch.c: Re-generate.
5369 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5370 * arch-utils.c (frame_num_args_unknown): Delete function.
5371 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5372 (frame_info): Use FRAME_NUM_ARGS_P.
5373 * arm-tdep.c (arm_frame_num_args): Delete function.
5374 (arm_gdbarch_init): Do not set frame_num_args.
5375 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5376 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5377 (hppa_gdbarch_init): Do not set frame_num_args.
5378 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5379 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5380 frame_num_args to default frame_num_args_unknown.
5381 * v850-tdep.c (v850_gdbarch_init): Ditto.
5382 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5383 * sh-tdep.c (sh_gdbarch_init): Ditto.
5384 * s390-tdep.c (s390_gdbarch_init): Ditto.
5385 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5386 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5387 * mips-tdep.c (mips_gdbarch_init): Ditto.
5388 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5389 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5391 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5392 * i386-tdep.c (i386_gdbarch_init): Ditto.
5393 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5394 * frv-tdep.c (frv_gdbarch_init): Ditto.
5395 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5396 * cris-tdep.c (cris_gdbarch_init): Ditto.
5397 * avr-tdep.c (avr_gdbarch_init): Ditto.
5398 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5399
5400 2003-06-09 Andrew Cagney <cagney@redhat.com>
5401
5402 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5403 (print_frame_args): Moved to "stack.c".
5404 * stack.c: Include "gdb_assert.h".
5405 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5406 (print_frame_args): Moved from "printcmd.c".
5407 * frame.h (print_frame_args): Delete declaration.
5408 * Makefile.in (stack.o): Update dependencies.
5409
5410 2003-06-08 Andrew Cagney <cagney@redhat.com>
5411
5412 * frame.c (get_prev_frame): Remove reference to
5413 frame_args_address_correct in comments.
5414 * frame-base.c (default_frame_args_address): Delete code
5415 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5416 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5417 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5418 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5419 (vax_frame_args_address_correct): Delete declaration.
5420
5421 2003-06-08 Andrew Cagney <cagney@redhat.com>
5422
5423 * gdbarch.sh (UNWIND_SP): Add.
5424 * gdbarch.h, gdbarch.c: Re-generate.
5425 * frame.c (frame_sp_unwind): New function.
5426 (get_frame_sp): New function.
5427 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5428 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5429 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5430 value.
5431 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5432 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5433
5434 2003-06-08 Andrew Cagney <cagney@redhat.com>
5435
5436 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5437 REMOTE_BREAKPOINT.
5438 * remote.c: Update.
5439 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5440 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5441 * config/m68k/tm-sun3.h: Update.
5442 * config/m68k/tm-m68klynx.h: Update.
5443 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5444
5445 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5446 trad_frame". Update comments.
5447 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5448 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5449 (trad_frame_register_value, trad_frame_prev_register): Update.
5450
5451 2003-06-08 Andrew Cagney <cagney@redhat.com>
5452
5453 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5454 from GCC's acinclude.m4.
5455 * configure.in: Check for getopt's delcaration.
5456 * aclocal.m4, config.in, configure: Re-generate.
5457 * main.c (error_init): Delete declaration.
5458 * defs.h (error_init): Declare.
5459 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5460 (rs6000_convert_from_func_ptr_addr): Make static.
5461 (_initialize_rs6000_tdep): Add declaration.
5462 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5463 (show_commands, set_verbose, show_history): Delete declaration.
5464 * top.h (set_verbose): Add declaration.
5465 (show_history, set_history, show_commands): Add declaration.
5466 (do_restore_instream_cleanup): Add declaration.
5467 * objc-lang.c (specialcmp): Make static.
5468 (print_object_command): Make static.
5469 (find_objc_msgsend): Make static.
5470 (find_objc_msgcall_submethod_helper): Make static.
5471 (find_objc_msgcall_submethod): Make static.
5472 (_initialize_objc_language): Add declaration.
5473 (find_implementation_from_class): Make static.
5474 (find_implementation): Make static.
5475 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5476 * objc-lang.h (lookup_struct_typedef): Add declaration.
5477 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5478 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5479 (do_restore_user_call_depth): Make static.
5480 (do_restore_instream_cleanup): Delete declaration.
5481 (dont_repeat): Delete declaration.
5482 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5483 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5484 * reggroups.c (_initialize_reggroup): Add declaration.
5485 * cp-support.c (_initialize_cp_support): Add declaration.
5486 * cp-abi.c (_initialize_cp_abi): Add declaration.
5487 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5488 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5489 (_initialize_gnu_v3_abi): Add declaration.
5490 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5491 (_initialize_gnu_v2_abi): Add declaration.
5492 * frame-base.c (_initialize_frame_base): Add declaration.
5493 * doublest.c (floatformat_from_length): Make static.
5494 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5495 * frame.c (create_sentinel_frame): Make static.
5496 (_initialize_frame): Add declaration.
5497 * top.c (do_catch_errors): Make static.
5498 (gdb_rl_operate_and_get_next_completion): Make static.
5499 * typeprint.c: Include "typeprint.h".
5500 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5501 (sentinel_frame_this_id): Make static.
5502 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5503 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5504 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5505 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5506 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5507 * maint.c (maintenance_print_architecture): Make static.
5508 * signals/signals.c (_initialize_signals): Add declaration.
5509 * std-regs.c (_initialize_frame_reg): Add declaration.
5510 * jv-exp.y (push_variable): ISO C definition.
5511 (push_qualified_expression_name): Ditto.
5512 * memattr.c (_initialize_mem): Add declaration.
5513 * remote.c (remote_check_watch_resources): Make static.
5514 (remote_stopped_by_watchpoint): Make static.
5515 (remote_stopped_data_address): Make static.
5516 * d10v-tdep.c (nr_dmap_regs): Make static.
5517 (a0_regnum): Make static.
5518 (d10v_frame_unwind_cache): Make static.
5519 (d10v_frame_p): Make static.
5520 * osabi.c (show_osabi): Make static.
5521 (_initialize_gdb_osabi): Add extern declaration.
5522 * gdbtypes.c (make_qualified_type): Make static.
5523 (safe_parse_type): Make static.
5524 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5525 * macrotab.c (macro_bcache_free): Make static.
5526 * interps.c (interp_set_quiet): Make static.
5527 (interpreter_exec_cmd): Make static.
5528 * stack.h (select_frame_command): New file.
5529 * stack.c: Include "stack.h".
5530 (select_frame_command_wrapper): Delete function.
5531 (select_frame_command): Make global.
5532 * infcall.c: Include "infcall.h".
5533 * linespec.c: Include "linespec.h".
5534 * symfile.c (sections_overlap): Make static.
5535 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5536 * charset.c (_initialize_charset): Add missing prototype.
5537 * regcache.c (init_legacy_regcache_descr): Make static.
5538 (do_regcache_xfree): Make static.
5539 (regcache_xfer_part): Make static.
5540 (_initialize_regcache): Add missing prototype.
5541 * breakpoint.c (parse_breakpoint_sals): Make static.
5542 (breakpoint_sals_to_pc): Make static.
5543 * interps.h (clear_interpreter_hooks): ISO C declaration.
5544 * Makefile.in (stack_h): Define.
5545 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5546 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5547
5548 2003-06-08 Andrew Cagney <cagney@redhat.com>
5549
5550 * Makefile.in (d10v-tdep.o): Update dependencies.
5551 (SFILES): Add trad-frame.c.
5552 (trad_frame_h): Define.
5553 (COMMON_OBS): Add trad-frame.o.
5554 (trad-frame.o): Specify dependencies.
5555 * d10v-tdep.c: Include "trad-frame.h".
5556 (saved_regs_unwinder): Delete function.
5557 (d10v_frame_prev_register): Use trad_frame_prev_register.
5558 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5559 trad_frame", delete "regs" and "prev_sp".
5560 (prologue_find_regs): Use trad-frame.
5561 * trad-frame.h, trad-frame.c: New files.
5562
5563 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5564
5565 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5566
5567 2003-06-07 Adam Fedor <fedor@gnu.org>
5568
5569 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5570 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5571 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5572 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5573 resolve_msgsend_super, resolve_msgsend_super_stret):
5574 Use it.
5575
5576 2003-06-07 Andrew Cagney <cagney@redhat.com>
5577
5578 * symfile.h: Re-indent, clean up comments.
5579
5580 2003-06-07 Andrew Cagney <cagney@redhat.com>
5581
5582 * inferior.h (deprecated_write_sp): Replace
5583 generic_target_write_sp.
5584 * regcache.c (deprecated_write_sp): Replace
5585 generic_target_write_sp.
5586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5587 * vax-tdep.c (vax_gdbarch_init): Update.
5588 * v850-tdep.c (v850_gdbarch_init): Update.
5589 * sparc-tdep.c (sparc_gdbarch_init): Update.
5590 * sh-tdep.c (sh_gdbarch_init): Update.
5591 * s390-tdep.c (s390_gdbarch_init): Update.
5592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5593 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5594 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5595 * mcore-tdep.c (mcore_gdbarch_init): Update.
5596 * m68k-tdep.c (m68k_gdbarch_init): Update.
5597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5598 * ia64-tdep.c (ia64_gdbarch_init): Update.
5599 * h8300-tdep.c (h8300_gdbarch_init): Update.
5600 * frv-tdep.c (frv_gdbarch_init): Update.
5601 * cris-tdep.c (cris_gdbarch_init): Update.
5602 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5603
5604 2003-06-07 Andrew Cagney <cagney@redhat.com>
5605
5606 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5607 Assert that PC_REGNUM is valid.
5608 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5609
5610 2003-06-07 Andrew Cagney <cagney@redhat.com>
5611
5612 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5613 * gdbarch.h, gdbarch.c: Regenerate.
5614 * mn10300-tdep.c: Include "gdb_assert.h".
5615 (mn10300_read_fp): New function.
5616 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5617 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5618 * ia64-tdep.c: Include "gdb_assert.h".
5619 (ia64_read_fp): New function.
5620 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5621 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5622 * regcache.c (generic_target_read_sp): Delete function.
5623 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5624 * inferior.h (generic_target_read_sp): Delete declaration.
5625 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5626 generic_target_read_sp.
5627 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5628 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5629 * sh-tdep.c (sh_gdbarch_init): Ditto.
5630 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5631 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5632
5633 2003-06-07 Andrew Cagney <cagney@redhat.com>
5634
5635 * gdbarch.sh: Comment each field of startup_gdbarch.
5636 * gdbarch.h, gdbarch.c: Re-generate.
5637
5638 2003-06-07 Andrew Cagney <cagney@redhat.com>
5639
5640 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5641 * gdbarch.h, gdbarch.c: Re-generate.
5642 * regcache.c: Update comments on read_pc et.al.
5643 (generic_target_read_pc): Delete function.
5644 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5645 * inferior.h (generic_target_read_pc): Delete declaration.
5646 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5647 generic_target_read_pc.
5648 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5649 * sh-tdep.c (sh_gdbarch_init): Ditto.
5650 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5652
5653 2003-06-07 Andrew Cagney <cagney@redhat.com>
5654
5655 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5656 "index" with "special_local_sect". Use strcmp instead of STREQ.
5657 Append period to coments.
5658
5659 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5660
5661 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5662 (elfstab_offset_sections): Likewise.
5663 * gdb-stabs.h (stab_section_info): Likewise.
5664 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5665 * objfiles.c (objfile_relocate): Likewise.
5666 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5667 * remote.c (get_offsets): Likewise.
5668 (remote_cisco_objfile_relocate): Likewise.
5669 * somread.c (som_symfile_offsets): Likewise.
5670 * symfile.c (alloc_section_addr_info): New function.
5671 (build_section_addr_info_from_section_tab): Use it.
5672 (free_section_addr_info): Adjust.
5673 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5674 (syms_from_objfile): Allocate local_addr dynamically.
5675 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5676 dynamically.
5677 (add_symbol_file_command): Allocate sect_opts dynamically.
5678 (reread_symbols): Avoid use of SECT_OFF_MAX.
5679 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5680 (alloc_section_addr_info): Declare it.
5681 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5682 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5683 dynamically.
5684 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5685
5686 2003-06-06 Andrew Cagney <cagney@redhat.com>
5687
5688 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5689 (d10v_frame_unwind_cache): Do not set "return_pc".
5690
5691 2003-06-06 Michael Snyder <msnyder@redhat.com>
5692
5693 * h8300-tdep.c: Make tidy (long lines).
5694
5695 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5696
5697 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5698 to regcache_collect().
5699
5700 2003-06-05 J. Brobecker <brobecker@gnat.com>
5701
5702 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5703 pc_in_sigtramp multiarch method.
5704 (hppa_hpux_som_init_abi): Use it.
5705 (hppa_hpux_elf_init_abi): Likewise.
5706 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5707 macro has been multiarched.
5708 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5709 macro here, as hppa64 isn't multiarched yet.
5710
5711 2003-06-05 Andrew Cagney <cagney@redhat.com>
5712
5713 * Makefile.in (value_h): Add $(frame_h).
5714 * value.h: Include "frame.h".
5715 (struct value): Replace "frame_addr" with "frame_id".
5716 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5717 * values.c (allocate_value): Use VALUE_FRAME_ID.
5718 (value_copy): Use VALUE_FRAME_ID.
5719 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5720 * valops.c (value_assign): Update. Use frame_find_by_id.
5721
5722 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5723
5724 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5725 in each pass.
5726
5727 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5728
5729 * thread-db.c (check_event): For create/death event breakpoints,
5730 loop through all messages to ensure that we read the message
5731 corresponding to the breakpoint we are at.
5732
5733 2003-06-04 Michael Snyder <msnyder@redhat.com>
5734
5735 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5736
5737 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5738
5739 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5740 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5741 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5742 when handling .eh_frame sections.
5743
5744 2003-06-04 J. Brobecker <brobecker@gnat.com>
5745
5746 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5747 prepare_to_proceed procedure instead of the hppa-specific one.
5748 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5749
5750 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5751
5752 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5753 * config.in: Regenerated.
5754 * configure.in: Add test for syscall function and check for
5755 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5756 * configure: Regenerated.
5757 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5758 <sys/syscall.h>.
5759 (kill_lwp): New function that uses tkill syscall or
5760 uses kill, depending on whether threading model is nptl or not.
5761 All callers of kill() changed to use kill_lwp().
5762 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5763 see if all threads have already exited in the nptl model.
5764 (stop_and_resume_callback): New callback function used by the
5765 lin_lwp_wait thread exit handling code.
5766 (stop_wait_callback): Check for threads already having exited and
5767 delete such threads fromt the lwp list when discovered.
5768 (stop_callback): Don't assert retcode of kill call.
5769
5770 Roland McGrath <roland@redhat.com>
5771 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5772 nptl libthread_db.
5773
5774 2003-06-03 Richard Henderson <rth@redhat.com>
5775
5776 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5777 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5778 (alpha_sigtramp_frame_prev_register): Likewise.
5779 (alpha_heuristic_frame_prev_register): Likewise.
5780 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5781
5782 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5783 alpha-specific register id names.
5784 (alpha_mdebug_frame_unwind_cache): Likewise.
5785 (alpha_mdebug_frame_prev_register): Likewise.
5786
5787 2003-06-03 Richard Henderson <rth@redhat.com>
5788
5789 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5790 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5791 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5792 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5793 unwind routines.
5794 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5795 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5796 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5797
5798 * alpha-linux-tdep.c: Remove unnecessary includes.
5799 * Makefile.in (alpha-linux-tdep.o): Update.
5800
5801 2003-06-03 Richard Henderson <rth@redhat.com>
5802
5803 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5804 (alphabsd_fill_fpreg): Likewise.
5805
5806 2003-06-03 J. Brobecker <brobecker@gnat.com>
5807
5808 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5809 references to struct frame_info fields by calls to the equivalent
5810 accessors. Necessary now that frame_info is opaque.
5811
5812 2003-06-03 J. Brobecker <brobecker@gnat.com>
5813
5814 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5815 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5816 structure, field no longer exists.
5817
5818 2003-06-03 J. Brobecker <brobecker@gnat.com>
5819
5820 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5821 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5822
5823 2003-06-03 J. Brobecker <brobecker@gnat.com>
5824
5825 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5826 references to struct frame_info fields by calls to the equivalent
5827 accessors. Necessary now that frame_info is opaque.
5828
5829 2003-06-03 J. Brobecker <brobecker@gnat.com>
5830
5831 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5832 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5833 structure, field no longer exists.
5834
5835 2003-06-03 Theodore A. Roth <troth@openavr.org>
5836
5837 * remote.c (init_remote_state): Compute sizeof_g_packet by
5838 accumulation of the size of all registers instead of blindly using
5839 DEPRECATED_REGISTER_BYTES.
5840
5841 2003-06-03 Michael Snyder <msnyder@redhat.com>
5842
5843 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5844 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5845 for h8300sx.
5846
5847 2003-06-03 J. Brobecker <brobecker@gnat.com>
5848
5849 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5850 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5851
5852 2003-06-03 Andrew Cagney <cagney@redhat.com>
5853
5854 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5855 (sparc_convert_to_raw): Delete function.
5856 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5857 register_convert_to_virtual.
5858
5859 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5860
5861 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5862 layer if not dealing with a statically-linked threaded program.
5863
5864 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5865
5866 * solib.c (solib_open): Update comment to reflect actual search order.
5867
5868 2003-06-03 Andrew Cagney <cagney@redhat.com>
5869
5870 * frame.c (get_frame_memory_signed): New function.
5871 (get_frame_memory, get_frame_memory_unsigned): New function.
5872 (get_frame_arch): New function.
5873 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5874 (get_frame_memory, get_frame_unsigned_memory): Declare.
5875 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5876 get_frame_memory_unsigned and get_frame_arch.
5877 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5878
5879 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5880
5881 * MAINTAINERS (write after approval): Add myself.
5882
5883 2003-06-03 Jim Blandy <jimb@redhat.com>
5884
5885 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5886 elements of gregset_t are 64 bits each, but access registers
5887 are still 32 bits, so they're packed two per gregset_t
5888 element. Unpack/pack them properly.
5889
5890 2003-06-02 David Carlton <carlton@bactrian.org>
5891
5892 * linespec.c (find_methods): Break out code into
5893 add_matching_methods and add_constructors.
5894 (add_matching_methods): New.
5895 (add_constructors): Ditto.
5896
5897 2003-06-02 Andrew Cagney <cagney@redhat.com>
5898
5899 * sparc-tdep.c (sparc_print_registers): Delete call to
5900 REGISTER_CONVERTIBLE.
5901 (sparc_gdbarch_init): Do not set register_convertible.
5902 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5903 * frv-tdep.c (frv_gdbarch_init): Ditto.
5904 * cris-tdep.c (cris_gdbarch_init): Ditto.
5905
5906 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5907
5908 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5909 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5910 (syms_from_objfile): Ditto.
5911
5912 2003-06-03 Andreas Schwab <schwab@suse.de>
5913
5914 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5915 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5916
5917 2003-06-02 Richard Henderson <rth@redhat.com>
5918
5919 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5920 a member of all_reggroup.
5921
5922 2003-06-02 Richard Henderson <rth@redhat.com>
5923
5924 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5925 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5926 (alpha_lds, alpha_sts): New.
5927 (alpha_convert_register_p): Change from _register_convertible.
5928 (alpha_register_to_value): Change from _convert_to_virtual;
5929 restructure and fail for type sizes other than 4 or 8.
5930 (alpha_value_to_register): Similarly.
5931 (alpha_extract_return_value): Use alpha_sts.
5932 (alpha_store_return_value): Use alpha_lds.
5933 (alpha_gdbarch_init): Update hooks.
5934
5935 2003-06-02 Richard Henderson <rth@redhat.com>
5936
5937 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5938 regnum identifiers.
5939 (alpha_sigtramp_register_address): Likewise.
5940
5941 2003-06-02 Richard Henderson <rth@redhat.com>
5942
5943 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5944 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5945 * alpha-tdep.h: Declare them.
5946
5947 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5948 Remove zerobuf. Don't error on UNIQUE.
5949 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5950 (ALPHA_REGSET_UNIQUE): Provide default.
5951 (supply_gregset): Use alpha_supply_int_regs.
5952 (fill_gregset): Use alpha_fill_int_regs.
5953 (supply_fpregset): Use alpha_supply_fp_regs.
5954 (fill_fpregset): Use alpha_fill_fp_regs.
5955 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5956 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5957 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5958 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5959 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5960 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5961
5962 2003-06-02 Richard Henderson <rth@redhat.com>
5963
5964 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5965
5966 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5967 (alpha_store_return_value): Likewise.
5968
5969 2003-06-02 David Carlton <carlton@math.stanford.edu>
5970
5971 * block.c (contained_in): Add 'const' to arguments.
5972 (block_function): Ditto.
5973 * block.h: Update declarations for block_function and
5974 contained_in.
5975
5976 2003-06-02 David Carlton <carlton@math.stanford.edu>
5977
5978 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5979 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5980 * p-valprint.c (pascal_val_print): Ditto.
5981 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5982
5983 2003-06-02 Richard Henderson <rth@redhat.com>
5984
5985 * alpha-tdep.c (alpha_push_dummy_call): Use
5986 builtin_type_ieee_double_little instead of builtin_type_double.
5987
5988 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5989 sign-extension of 32-bit values.
5990 (alpha_store_return_value): Similarly.
5991
5992 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5993 (alpha_extract_return_value): Likewise.
5994 (alpha_store_return_value): Likewise.
5995
5996 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5997 (alpha_store_return_value): Error on IEEE Quad floats.
5998
5999 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6000 (alpha_extract_struct_value_address): Likewise.
6001 (alpha_store_return_value): Likewise.
6002 (alpha_store_struct_return): Remove.
6003 (alpha_gdbarch_init): Update hook registration to match.
6004
6005 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6006 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6007 macros where appropriate.
6008 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6009 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6010
6011 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6012 for SP, GP; void_func_ptr for PC; non-language-specific types
6013 for all others.
6014 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6015
6016 2003-06-02 Richard Henderson <rth@redhat.com>
6017
6018 * top.h (lim_at_start): Declare.
6019 * main.c (captured_main): Set it.
6020 * top.c (lim_at_start): Define.
6021 (command_loop): Use it instead of &environ.
6022 * event-top.c (command_handler): Likewise.
6023
6024 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6025
6026 * mipsnbsd-tdep.c: Update copyright years.
6027 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6028
6029 2003-06-01 Richard Henderson <rth@redhat.com>
6030
6031 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6032 (alpha-linux-tdep.o): Update dependencies.
6033 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6034 * alpha-mdebug-tdep.c: Remove unneeded includes.
6035
6036 2003-06-01 Richard Henderson <rth@redhat.com>
6037
6038 * alpha-tdep.c (alpha_register_reggroup_p): New.
6039 (alpha_gdbarch_init): Register it.
6040
6041 2003-06-02 Andrew Cagney <cagney@redhat.com>
6042
6043 * dwarfread.c: Eliminate "register"
6044 (decode_die_type): Eliminate assignment within "if".
6045 (struct_type, decode_array_element_type): Ditto.
6046 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6047 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6048 (decode_modified_type, completedieinfo): Ditto.
6049 * block.c: Eliminate "register".
6050 (blockvector_for_pc_sect): Eliminate assignment within "if".
6051 * cp-support.h (struct symbol): Opaque declaration.
6052 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6053
6054 2003-06-01 Richard Henderson <rth@redhat.com>
6055
6056 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6057 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6058
6059 2003-06-01 Adam Fedor <fedor@gnu.org>
6060
6061 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6062 * gdbarch.[ch]: Regenerate.
6063 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6064 (hppa_gdbarch_init): Set it in the gdbarch vector.
6065 * i386-tdep.c (i386_fetch_pointer_argument): New
6066 (i386_gdbarch_init): Set it into gdbarch.
6067 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6068 (rs6000_gdbarch_init): Set it in gdbarch.
6069 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6070 (sparc_gdbarch_init): Set it in gdbarch.
6071
6072 2003-06-01 Andrew Cagney <cagney@redhat.com>
6073
6074 * defs.h (extract_address): Delete declaration.
6075 * findvar.c (extract_address): Delete function.
6076 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6077 extract_address with the inline equivalent,
6078 extract_unsigned_integer.
6079 (xstormy16_extract_struct_value_address): Ditto.
6080 (xstormy16_pointer_to_address): Ditto.
6081 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6082 * v850-tdep.c (v850_push_arguments): Ditto.
6083 (v850_extract_return_value): Ditto.
6084 (v850_extract_struct_value_address): Ditto.
6085 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6086 (sparcnbsd_get_longjmp_target_64): Ditto.
6087 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6088 (get_longjmp_target): Ditto.
6089 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6090 (sh64_extract_struct_value_address): Ditto.
6091 (sh_push_arguments): Ditto.
6092 (sh64_push_arguments): Ditto.
6093 * remote-vxsparc.c (vx_read_register): Ditto.
6094 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6095 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6096 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6097 * mipsv4-nat.c (get_longjmp_target): Ditto.
6098 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6099 * mips-nat.c (get_longjmp_target): Ditto.
6100 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6101 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6102 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6103 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6104 * irix5-nat.c (get_longjmp_target): Ditto.
6105 * irix4-nat.c (get_longjmp_target): Ditto.
6106 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6107 (ia64_push_arguments): Ditto.
6108 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6109 * h8300-tdep.c (h8300_push_arguments): Ditto.
6110 (h8300_store_return_value): Ditto.
6111 (h8300_extract_struct_value_address): Ditto.
6112 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6113 (frv_push_arguments): Ditto.
6114 * avr-tdep.c (avr_pointer_to_address): Ditto.
6115 (avr_push_arguments): Ditto.
6116 * arm-tdep.c (arm_push_dummy_call): Ditto.
6117 (arm_get_longjmp_target): Ditto.
6118 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6119 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6120 (alpha_get_longjmp_target): Ditto.
6121
6122 * solib-irix.c (extract_mips_address): Inline extract_address,
6123 replacing it with extract_signed_integer.
6124 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6125 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6126 (first_link_map_member, open_symbol_file_object): Ditto.
6127 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6128 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6129 (LM_NEXT, LM_NAME): Ditto.
6130
6131 2003-06-01 Richard Henderson <rth@redhat.com>
6132
6133 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6134 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6135 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6136 (alpha_cannot_store_register): Likewise.
6137 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6138 * alpha-nat.c (supply_gregset): Likewise.
6139 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6140
6141 2003-06-01 Andrew Cagney <cagney@redhat.com>
6142
6143 * infcall.c (call_function_by_hand): Update comment on
6144 DEPRECATED_DUMMY_WRITE_SP.
6145
6146 * mips-tdep.c (mips_gdbarch_init): Do not set
6147 deprecated_dummy_write_sp.
6148 (mips_eabi_push_dummy_call): Set the SP register.
6149 (mips_o64_push_dummy_call): Set the SP register.
6150 (mips_o32_push_dummy_call): Set the SP register.
6151 (mips_n32n64_push_dummy_call): Set the SP register.
6152
6153 2003-06-01 Richard Henderson <rth@redhat.com>
6154
6155 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6156 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6157 (supply_gregset): Likewise.
6158 * alpha-tdep.c (alpha_store_return_value): Likewise.
6159 (alpha_get_longjmp_target): Likewise.
6160 (alpha_register_name): Constify array.
6161 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6162 deprecated_register_size, deprecated_register_bytes,
6163 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6164 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6165 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6166
6167 2003-06-01 Richard Henderson <rth@redhat.com>
6168
6169 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6170 from arg_reg_buffer to regcache to avoid double conversion.
6171
6172 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6173
6174 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6175 SP_REGNUM.
6176 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6177 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6178
6179 2003-06-01 Richard Henderson <rth@redhat.com>
6180
6181 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6182 (decode_frame_entry): Set it. Skip FDE augmentation.
6183
6184 2003-06-01 Richard Henderson <rth@redhat.com>
6185
6186 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6187 not overlapping PC_REGNUM.
6188
6189 2003-06-01 Richard Henderson <rth@redhat.com>
6190
6191 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6192 alpha_push_arguments. Don't dump argument register data to
6193 the target stack. Fix float and 128-bit long double semantics.
6194 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6195 (alpha_fix_call_dummy): Remove.
6196 (alpha_call_dummy_words): Remove.
6197 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6198
6199 2003-06-01 Richard Henderson <rth@redhat.com>
6200
6201 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6202
6203 2003-06-01 Andrew Cagney <cagney@redhat.com>
6204
6205 * mips-tdep.c (is_mips16_addr): New function.
6206 (make_mips16_addr, unmake_mips16_addr): New functions.
6207 (pc_is_mips16, mips_fetch_instruction): Use.
6208 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6209 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6210 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6211 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6212 TARGET_MIPS.
6213 * config/mips/tm-mips.h: Update copyright.
6214 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6215 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6216 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6217 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6218 (TM_PRINT_INSN_MACH): Delete.
6219 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6220
6221 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6222 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6223 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6224 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6225 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6226 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6227 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6228 mips*-*-riscos* and mips*-*-sysv* onto mips.
6229 * config/mips/mips64.mt: New file.
6230 * config/mips/mips.mt: New file.
6231 * config/mips/littlemips.mt: Delete file.
6232 * config/mips/decstation.mt: Delete file.
6233 * config/mips/vr4300el.mt: Delete file.
6234 * config/mips/vr5000el.mt: Delete file.
6235 * config/mips/vr5000.mt: Delete file.
6236 * config/mips/vr4100.mt: Delete file.
6237 * config/mips/vr4xxxel.mt: Delete file.
6238 * config/mips/vr4300.mt: Delete file.
6239 * config/mips/vr4xxx.mt: Delete file.
6240 * config/mips/bigmips.mt: Delete file.
6241 * config/mips/bigmips64.mt: Delete file.
6242 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6243 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6244 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6245 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6246 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6247 "tm-bigmips.h".
6248 * config/mips/tm-irix3.h: Ditto.
6249 * config/mips/tm-mipsv4.h: Ditto.
6250 * config/mips/tm-embed.h: Ditto.
6251 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6252 "tm-bigmips64.h".
6253 * config/mips/tm-vr5000el.h: Delete file.
6254 * config/mips/tm-tx39l.h: Delete file.
6255 * config/mips/tm-vr4300el.h: Delete file.
6256 * config/mips/tm-vr4xxxel.h: Delete file.
6257 * config/mips/tm-vr4300.h: Delete file.
6258 * config/mips/tm-vr4100.h: Delete file.
6259 * config/mips/tm-vr4xxx.h: Delete file.
6260 * config/mips/tm-vr5000.h: Delete file.
6261 * config/mips/tm-embedl64.h: Delete file.
6262 * config/mips/tm-embedl.h: Delete file.
6263 * config/mips/tm-embed64.h: Delete file.
6264 * config/mips/tm-bigmips64.h: Delete file.
6265 * config/mips/tm-bigmips.h: Delete file.
6266
6267 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6268
6269 Fix gdb/1216.
6270 * shnbsd-nat.c: Include "sh-tdep.h".
6271
6272 From Richard Henderson <rth@redhat.com>:
6273 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6274
6275 2003-05-31 Andrew Cagney <cagney@redhat.com>
6276
6277 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6278 forward declaration.
6279 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6280 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6281 (mips_find_saved_regs): Use set_reg_offset.
6282 (mips_frame_init_saved_regs): Delete function.
6283 (mips_pop_frame): Call mips_find_saved_regs instead of
6284 DEPRECATED_FRAME_INIT_SAVED_REGS.
6285
6286 2003-05-31 Andrew Cagney <cagney@redhat.com>
6287
6288 * mips-tdep.c (mips_gdbarch_init): Do not set
6289 deprecated_max_register_raw_size, register_virtual_size, and
6290 deprecated_max_register_virtual_size.
6291
6292 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6293
6294 * i386-tdep.c: Include "dwarf2-frame.h".
6295 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6296 * Makefile.in (i386-tdep.o): Update dependencies.
6297
6298 * dwarf2-frame.c, dwarf2-frame.h: New files.
6299 * Makefile.in (SFILES): Add dwarf2-frame.c.
6300 (dwarf2_frame_h): Define.
6301 (COMMON_OBS): Add dwarf2-frame.o.
6302 (dwarf2-frame.o): Add dependencies.
6303
6304 2003-05-31 Andreas Jaeger <aj@suse.de>
6305
6306 * x86-64-linux-nat.c: Fix comment.
6307
6308 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6309
6310 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6311 function signature.
6312
6313 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6314 have a sigcontext_addr handler.
6315 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6316 sigcontext_addr handler.
6317
6318 2003-05-31 Andrew Cagney <cagney@redhat.com>
6319
6320 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6321 (print_fp_register_row): Replace do_fp_register_row.
6322 (mips_print_fp_register): Add "file" and "frame" parameters.
6323 (mips_print_register): Add "file" and "frame" parameters.
6324 (mips_print_registers_info): Replace mips_do_registers_info.
6325 (mips_gdbarch_init): Set print_registers_info instead of
6326 deprecated_do_registers_info.
6327 (mips_read_fp_register_single): Add "frame" parameter.
6328 (mips_read_fp_register_double): Add "frame" parameter.
6329
6330 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6331
6332 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6333 Fixes a bug where GDB would print the wrong register names for
6334 targets without SSE.
6335
6336 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6337 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6338 registers.
6339
6340 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6341 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6342 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6343 TDEP->sc_sp_offset.
6344
6345 From Michal Ludvig <mludvig@suse.cz>:
6346 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6347 and `sc_num_regs'.
6348 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6349 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6350 I386_ST0_REGNUM): Move here from...
6351 * i386-tdep.c: ... here.
6352 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6353 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6354 registers if possible.
6355 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6356 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6357 Remove variables.
6358 (i386bsd_sc_reg_offset): New variable.
6359 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6360 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6361 TDEP->sc_sp_offset.
6362 (i386fbsd_sc_reg_offset): New variable.
6363 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6364 TDEP->sc_num_regs.
6365 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6366 variables.
6367 (i386fbsd4_sc_reg_offset): New variable.
6368 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6369 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6370 TDEP->sc_sp_offset.
6371 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6372 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6373 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6374 Remove variables.
6375 (i386nbsd_sc_reg_offset): New variable.
6376 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6377 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6378 TDEP->sc_sp_offset.
6379 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6380 Remove variables.
6381 (i386obsd_sc_reg_offset): New variable.
6382 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6383 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6384 TDEP->sc_sp_offset.
6385 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6386 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6387 for frame pointer offset in `struct sigcontext'.
6388
6389 2003-05-31 Andrew Cagney <cagney@redhat.com>
6390
6391 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6392 architecture methods call_dummy_words, sizeof_call_dummy_words,
6393 push_return_address, store_struct_return, and fix_call_dummy. Set
6394 push_dummy_call instead of deprecated_push_arguments.
6395 (mips_store_struct_return): Delete function.
6396 (mips_fix_call_dummy): Delete function.
6397 (mips_push_return_address): Delete function.
6398 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6399 RA_REGNUM and T9_REGNUM.
6400 (mips_n32n64_push_dummy_call): Ditto for
6401 mips_n32n64_push_arguments.
6402 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6403 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6404
6405 2003-05-31 Andrew Cagney <cagney@redhat.com>
6406
6407 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6408 "dummy_addr" to "bp_addr".
6409 * infcall.c (call_function_by_hand): Pass "funaddr" to
6410 gdbarch_push_dummy_call.
6411 * gdbarch.h, gdbarch.c: Re-generate.
6412 * i386-tdep.c (i386_push_dummy_call): Update.
6413 * arm-tdep.c (arm_push_dummy_call): Update.
6414 * d10v-tdep.c (d10v_push_dummy_call): Update.
6415
6416 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6417
6418 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6419 variable declarations.
6420 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6421 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6422 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6423 x86_64_init_frame_pc, x86_64_init_frame_pc,
6424 x86_64_function_has_prologue): Remove prototypes.
6425 (X86_64_NUM_GREGS): New define.
6426 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6427 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6428 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6429 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6430 XMM1_REGNUM): Remove defines.
6431 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6432 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6433 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6434 X86_64_XMM1_REGNUM): New defines.
6435 (struct x86_64_register_info): Renamed from `struct
6436 register_info'. Remove `size' member.
6437 (x86_64_register_info_table): Remove variable.
6438 (x86_64_register_info): New variable.
6439 (X86_64_NUM_REGS): New define.
6440 (X86_64_NUM_GREGS): Remove define.
6441 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6442 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6443 Remove variables.
6444 (x86_54_dwarf2_reg_to_regnum): Remove function.
6445 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6446 (x86_64_dwarf_reg_to_regnum): New function.
6447 (x86_64_register_name): Rewrite.
6448 (x86_64_register_raw_size): Remove function.
6449 (x86_64_register_byte_table): Remove variable.
6450 (x86_64_register_byte): Remove function.
6451 (x86_64_register_virtual_type): Remove function.
6452 (x86_64_register_type): New function.
6453 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6454 x86_64_register_convert_to_raw): Remove functions.
6455 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6456 (x86_64_use_struct_convention): Make static. Adjust for renamed
6457 defines.
6458 (x86_64_frame_init_saved_regs): Remove function.
6459 (x86_64_push_arguments): Make static. Change to accept a regcache
6460 as argument.
6461 (x86_64_store_return_value, x86_64_extract_return_value): Make
6462 static. Rewrite based on i386 counterparts.
6463 (x86_64_push_dummy_call): New function.
6464 (X86_64_NUM_SAVED_REGS): New define.
6465 (x86_64_register_number): Remove function.
6466 (x86_64_store_struct_return): Remove function.
6467 (x86_64_frameless_function_invocation,
6468 x86_64_function_has_prologue): Remove functions.
6469 (PROLOG_BUFSIZE): Remove define.
6470 (struct x86_64_frame_cache): New structure.
6471 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6472 x86_64_frame_cache, x86_64_frame_this_id,
6473 x86_64_frame_prev_register, x86_64_frame_p,
6474 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6475 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6476 functions.
6477 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6478 variables.
6479 (x86_64_skip_prologue): Rewrite in terms of
6480 x86_64_analyze_prologue.
6481 (x86_64_frame_base_address): New function.
6482 (x86_64_frame_base): New variable.
6483 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6484 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6485 set deprecated_fp_regnum, deprecated_register_size,
6486 deprecated_register_bytes, register_raw_size, register_byte,
6487 register_virtual_type, register_convertiable,
6488 register_convert_to_virtual, convert_to_raw,
6489 deprecated_get_saved_register, deprecated_target_read_fp,
6490 deprecated_push_arguments, deprecated_push_return_address,
6491 deprecated_pop_frame, deprecated_store_struct_return,
6492 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6493 frameless_function_invocation, deprecated_frame_saved_pc,
6494 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6495 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6496 deprecated_init_frame_pc and virtual_frame_pointer. Call
6497 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6498 and x86_64_frame_p. Call frame_base_set_default to register
6499 x86_64_frame_base.
6500 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6501 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6502 (_initialize_x86_64_tdep): Remove function.
6503 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6504 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6505 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6506 define.
6507 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6508 (x86_64_linux_sigcontext_addr): Rewrite.
6509 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6510 x86_64_linux_frame_saved_pc): Remove functions.
6511 (x86_64_linux_pc_in_sigtramp): Renamed from
6512 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6513 trampoline.
6514 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6515 Remove_functions.
6516 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6517 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6518 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6519 (x86_64_regmap): Rename to regmap.
6520 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6521 x86_64_num_gregs.
6522 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6523 x86_64_regmap.
6524 (x86_64_fxsave_offset): Remove function.
6525 (supply_fpregset): Simply call x86_64_supply_fxsave.
6526 (fill_fpregset): Simply call x86_64_fill_fxsave.
6527 (fetch_inferior_registers, store_inferior_registers): Avoid
6528 asignment in if-statement.
6529 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6530 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6531 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6532 (fetch_core_registers): Remove function.
6533 (linux_elf_core_fns): Remove.
6534 (offsetoff): Don't define.
6535 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6536 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6537 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6538 add core-regset.o.
6539 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6540 protection against multiple includes instead of NM_X86_64_h. Add
6541 various comments. Include "config/nm-linux.h". Don't include
6542 <signal.h>.
6543 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6544 GET_THREAD_SIGNALS): Remove defines.
6545 (x86_64_register_u_addr, kernel_u_size,
6546 lin_thread_get_thread_signals): Remove prototypes.
6547 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6548 [HAVE_LINK_H]: Don't include "solib.h".
6549 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6550 * config/i386/tm-x86-64linux.h: Fix comments.
6551 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6552 x86-64-tdep.o): Update dependencies.
6553
6554 2003-05-30 Andrew Cagney <cagney@redhat.com>
6555
6556 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6557 Change parameter type to a "struct regcache *".
6558
6559 * gdbarch.sh: Regardless of the multi-arch level, always define
6560 the macro when not already defined.
6561 * gdbarch.h, gdbarch.c: Re-generate.
6562
6563 2003-05-30 Richard Henderson <rth@redhat.com>
6564
6565 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6566 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6567 (alpha_mdebug_frame_this_id): Likewise.
6568 (alpha_mdebug_frame_prev_register): Likewise.
6569 (alpha_mdebug_frame_base_address): Likewise.
6570 (alpha_mdebug_frame_locals_address): Likewise.
6571 (alpha_mdebug_frame_args_address): Likewise.
6572 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6573 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6574 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6575 loop increment.
6576 (alpha_heuristic_frame_this_id): Make static.
6577 (alpha_heuristic_frame_prev_register): Likewise.
6578 (alpha_heuristic_frame_base_address): Likewise.
6579 * alpha-tdep.h: Update.
6580
6581 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6582
6583 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6584 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6585 defenitions.
6586 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6587 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6588 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6589 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6590 I386_ST0_REGNUM): New defines.
6591 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6592 codestream_get): Remove define.
6593 (codestream_next_addr, condestream_addr, condestream_buf,
6594 codestream_off, codestream_cnt): Remove variables.
6595 (codestream_fill, codestream_seek, codestream_read): Remove
6596 functions.
6597 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6598 functionality.
6599 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6600 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6601 i386_frame_saved_pc, i386_saved_pc_after_call,
6602 i386_frame_num_args, i386_frame_init_saved_regs,
6603 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6604 i386_push_arguments): Remove functions.
6605 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6606 functionality. Use i386_analyze_prologue instead of
6607 i386_get_frame_setup.
6608 (I386_NUM_SAVED_REGS): New define.
6609 (struct i386_frame_cache): New structure.
6610 (i386_alloc_frame_cache, i386_analyze_struct_return,
6611 i386_skip_probe, i386_analyze_frame_setup,
6612 i386_analyze_register_saves, i386_analyze_prologue,
6613 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6614 i386_frame_prev_register, i386_sigtramp_frame_cache,
6615 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6616 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6617 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6618 New functions.
6619 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6620 New variables.
6621 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6622 I386_EAX_REGNUM and I386_EDX_REGNUM.
6623 (i386_extract_return_value, i386_store_return_value): Use
6624 I386_ST0_REGNUM where appropriate.
6625 (i386_extract_struct_value_address): Rewrite to use extract_address.
6626 (i386_svr4_pc_in_sigtramp): Add comment.
6627 (i386_svr4_sigcontext_addr): Rewrite.
6628 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6629 TDEP->sc_sp_offset.
6630 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6631 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6632 of new defines. Set push_dummy_call, don't set
6633 deprecated_push_arguments, deprecated_push_return_address,
6634 deprecated_pop_frame. Don't set parm_boundary. Don't set
6635 deprecated_frame_chain, deprecated_frame_saved_pc,
6636 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6637 save_dummy_frame_tos, unwind_pc. Call
6638 frame_unwind_append_predicate and frame_base_set_default. Don't
6639 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6640 Don't set frameless_function_invocation. Don't set
6641 deprecated_register_bytes, deprecated_register_size,
6642 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6643 * i386-linux-tdep.c: Fix formatting in some comments.
6644 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6645 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6646 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6647 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6648 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6649 redundant parentheses.
6650 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6651 (i386_linux_sigcontext_addr): Use it. Rewrite.
6652 (find_minsym_and_objfile): Change name of second argument.
6653 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6654 changed. Use frame_pc_unwind instead of
6655 DEPRECATED_SAVED_PC_AFTER_CALL.
6656 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6657 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6658 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6659 unwinder.
6660 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6661 "dummy-frame.h".
6662 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6663 (_initialize_i386_cygwin_tdep): New prototype.
6664 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6665 deprecated_frame_chain_valid.
6666 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6667 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6668 Rely on the SVR4 defaults.
6669 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6670 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6671
6672 2003-05-30 Andrew Cagney <cagney@redhat.com>
6673
6674 * infcall.c (call_function_by_hand): Always call
6675 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6676
6677 2003-05-30 Richard Henderson <rth@redhat.com>
6678
6679 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6680 increment.
6681
6682 2003-05-29 Jim Blandy <jimb@redhat.com>
6683
6684 Use gdbarch methods for solib stuff on PowerPC Linux.
6685 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6686 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6687 show through.
6688 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6689 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6690 giving the same effect as the #definitions above.
6691
6692 2003-05-29 Adam Fedor <fedor@gnu.org>
6693
6694 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6695 (find_implementation_from_class): Replace it with the standard
6696 case i.e. do nothing.
6697
6698 2003-05-29 Richard Henderson <rth@redhat.com>
6699
6700 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6701 (alpha_linux_sigtramp_offset): Use it. Make static.
6702 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6703 update for new frame model.
6704 * alpha-mdebug-tdep.c: New file.
6705 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6706 (alpha_osf1_init_abi): Install it.
6707 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6708 (linked_proc_desc_table): Remove.
6709 (alpha_frame_past_sigtramp_frame): Remove.
6710 (alpha_dynamic_sigtramp_offset): Remove.
6711 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6712 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6713 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6714 (push_sigtramp_desc): Remove.
6715 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6716 (alpha_cannot_store_register): Likewise.
6717 (alpha_sigcontext_addr): Remove.
6718 (alpha_find_saved_regs): Remove.
6719 (alpha_frame_init_saved_regs): Remove.
6720 (alpha_init_frame_pc_first): Remove.
6721 (read_next_frame_reg): Remove.
6722 (alpha_frame_saved_pc): Remove.
6723 (alpha_saved_pc_after_call): Remove.
6724 (temp_proc_desc, temp_saved_regs): Remove.
6725 (alpha_about_to_return): Remove.
6726 (cached_proc_desc): Remove.
6727 (alpha_frame_chain): Remove.
6728 (alpha_print_extra_frame_info): Remove.
6729 (alpha_init_extra_frame_info): Remove.
6730 (alpha_frame_locals_address): Remove.
6731 (alpha_frame_args_address): Remove.
6732 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6733 (alpha_push_dummy_frame): Remove.
6734 (alpha_pop_frame): Remove.
6735 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6736 (alpha_read_insn): New.
6737 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6738 for different insn encodings.
6739 (alpha_in_lenient_prologue): Remove.
6740 (struct alpha_sigtramp_unwind_cache): New.
6741 (alpha_sigtramp_frame_unwind_cache): New.
6742 (alpha_sigtramp_register_address): New.
6743 (alpha_sigtramp_frame_this_id): New.
6744 (alpha_sigtramp_frame_prev_register): New.
6745 (alpha_sigtramp_frame_unwind): New.
6746 (alpha_sigtramp_frame_p): New.
6747 (struct alpha_heuristic_unwind_cache): New.
6748 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6749 don't count nop insns that occur between functions.
6750 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6751 heuristic_proc_desc, but without the mdebug wrapping.
6752 (alpha_heuristic_frame_this_id): New.
6753 (alpha_heuristic_frame_prev_register): New.
6754 (alpha_heuristic_frame_unwind): New.
6755 (alpha_heuristic_frame_p): New.
6756 (alpha_heuristic_frame_base_address): New.
6757 (alpha_heuristic_frame_base): New.
6758 (alpha_unwind_dummy_id): New.
6759 (alpha_unwind_pc): New.
6760 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6761 frame related deprecated initializations; install replacements.
6762 (alpha_dump_tdep): Remove.
6763 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6764 (alpha_read_insn, alpha_after_prologue,
6765 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6766 alpha_heuristic_frame_prev_register,
6767 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6768 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6769 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6770 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6771
6772 2003-05-29 Andrew Cagney <cagney@redhat.com>
6773
6774 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6775 dependant on the availability of ASSERT_FUNCTION.
6776 (ASSERT_FUNCTION): Do not define when there is no function name.
6777
6778 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6779
6780 From Jimi X <jimix@watson.ibm.com>:
6781 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6782
6783 2003-05-28 Jim Blandy <jimb@redhat.com>
6784
6785 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6786 argument to ptrace to int; the system headers should give it the
6787 right type, and pointers don't fit in ints on powerpc64-*-*.
6788
6789 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6790
6791 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6792 DW_TAG_catch_block.
6793
6794 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6795
6796 * stabsread.c (dbx_lookup_type): Make static.
6797 (read_type): Ditto.
6798 (add_undefined_type): Ditto.
6799 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6800 not export.
6801
6802 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6803
6804 * hpread.c (hpread_has_name): Make static.
6805 (hpread_psymtab_to_symtab): Ditto.
6806 (file_exists): Ditto.
6807 (hpread_call_pxdb): Ditto.
6808 (hpread_pxdb_needed): Ditto.
6809 (hpread_quick_traverse): Ditto.
6810 (hpread_get_header): Ditto.
6811 (hpread_get_lntt): Ditto.
6812 (hpread_get_slt): Ditto.
6813 (class_of): Ditto.
6814
6815 2003-05-25 Andreas Schwab <schwab@suse.de>
6816
6817 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6818 stack_align and deprecated_extra_stack_alignment_needed.
6819 (m68k_stack_align): Delete.
6820
6821 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6822 (m68k_register_virtual_size): Likewise.
6823 (altos_skip_prologue): Remove obsolete function.
6824 (isi_frame_num_args): Likewise.
6825 (news_frame_num_args): Likewise.
6826 (m68k_fix_call_dummy): Make static.
6827 (m68k_push_dummy_frame): Likewise.
6828 (m68k_pop_frame): Likewise.
6829 (m68k_skip_prologue): Likewise.
6830 (m68k_frame_init_saved_regs): Likewise.
6831 (m68k_saved_pc_after_call): Likewise.
6832 (m68k_get_longjmp_target): Make multi-arch.
6833 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6834 structure. Register m68k_get_longjmp_target if enabled.
6835 * m68k-tdep.h (struct gdbarch_tdep): Define.
6836 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6837
6838 * Makefile.in (config.status): Also depend on configure.tgt
6839 and configure.host.
6840 (m68klinux-tdep.o): Update dependencies.
6841 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6842 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6843 (M68K_LINUX_JB_PC): Define.
6844 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6845 and take additional parameter.
6846 (m68k_linux_sigtramp_saved_pc): Update.
6847 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6848 m68k_linux_pc_in_sigtramp, in_plt_section,
6849 find_solib_trampoline_target.
6850 * config/m68k/tm-linux.h: Don't include any tm headers.
6851 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6852 (JB_ELEMENT_SIZE): Likewise.
6853 (JB_PC): Likewise.
6854 (GET_LONGJMP_TARGET): Likewise.
6855 (IN_SIGTRAMP): Likewise.
6856 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6857
6858 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6859
6860 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6861 (sparc32_push_arguments): Re-implement by calling
6862 sparc32_do_push_arguments.
6863
6864 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6865
6866 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6867 SPARC_O1_REGNUM): New defines.
6868 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6869 (sparc32_store_return_value): New function.
6870 (sparc_extract_struct_value_address): Rewrite to operate on a
6871 regcache.
6872 (sparc_gdbarch_init): Don't set
6873 deprecated_extract_struct_value_address. Set
6874 extract_struct_value_address instead. Don't set
6875 deprecated_extract_return_value and deprecated_store_return_value
6876 for 32-bit targets. Set extract_return_value and
6877 store_return_value instead.
6878 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6879 DEPRECTAED_EXTRACT_RETURN_VALUE,
6880 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6881 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6882 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6883 (sparc_store_return_value): Remove prototype.
6884 (sparc32_store_return_value): New prototype.
6885 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6886 Adjust prototypes.
6887
6888 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6889
6890 * sparcnbsd-tdep.c: Include "gdb_string.h".
6891
6892 2003-05-23 Andrew Cagney <cagney@redhat.com>
6893
6894 * p-valprint.c (pascal_val_print): Replace extract_address with
6895 the inline equivalent extract_unsigned_integer.
6896 * jv-valprint.c (java_value_print): Ditto.
6897 * ada-valprint.c (ada_val_print_1): Ditto.
6898 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6899
6900 2003-05-23 Theodore A. Roth <troth@openavr.org>
6901
6902 * blockframe.c (frameless_look_for_prologue): Remove unused
6903 after_prologue variable.
6904
6905 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6906
6907 * blockframe.c (get_pc_function_start): Rewrite to avoid
6908 asignments in if-statements.
6909
6910 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6911
6912 Committed by Elena Zannoni <ezannoni@redhat.com>.
6913 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6914 files, don't relocate absolute symbols (and do use mst_abs).
6915
6916 2003-05-23 Andrew Cagney <cagney@redhat.com>
6917
6918 * objc-lang.c: Include "gdb_assert.h".
6919 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6920 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6921 (gdb_check, gdb_check_fatal): Delete functions.
6922 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6923 gdb_assert.
6924 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6925 * Makefile.in (objc-lang.o): Update dependencies.
6926
6927 2003-05-22 Ian Lance Taylor <ian@airs.com>
6928
6929 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6930 with fprintf_filtered, not fprintf_unfiltered.
6931
6932 2003-05-22 Andrew Cagney <cagney@redhat.com>
6933
6934 * stack.c (frame_info): Inline extract_address, replacing it with
6935 extract_unsigned_integer.
6936 * findvar.c (unsigned_pointer_to_address): Ditto.
6937 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6938 * dwarf2expr.c (dwarf2_read_address): Ditto.
6939 * frame.c (frame_pc_unwind): Update comment.
6940 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6941
6942 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6943
6944 * infptrace.c (detach): Call print_sys_errmsg rather than
6945 perror_with_name to issue warning message when errno is non-zero
6946 after calling ptrace detach.
6947
6948 2003-05-21 J. Brobecker <brobecker@gnat.com>
6949
6950 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6951 macro definitions from here...
6952 * hppa-tdep.c: ...to there.
6953
6954 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6955
6956 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6957 register_ptrace_addr(). Fix all callers.
6958
6959 2003-05-21 Andreas Schwab <schwab@suse.de>
6960
6961 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6962 dependencies.
6963 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6964 end.
6965 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6966 (_initialize_m68k_linux_tdep): New function.
6967 (m68k_linux_frame_saved_pc): Make static.
6968 (m68k_linux_extract_return_value): Likewise.
6969 (m68k_linux_store_return_value): Likewise.
6970 (m68k_linux_extract_struct_value_address): Likewise.
6971 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6972 Remove.
6973 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6974 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6975 (DEPRECATED_FRAME_SAVED_PC): Remove.
6976
6977 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6978
6979 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6980 regset numbering rather than our own.
6981
6982 2003-05-19 David Carlton <carlton@bactrian.org>
6983
6984 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6985
6986 2003-05-19 David Carlton <carlton@bactrian.org>
6987
6988 Partial fix for PR c++/827.
6989 * cp-support.h: Include symtab.h.
6990 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6991 * cp-namespace.c: Update contributors.
6992 (cp_lookup_symbol_nonlocal): New.
6993 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6994 (lookup_symbol_file): Ditto.
6995 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6996 * block.h: Declare block_scope, block_using, block_global_block.
6997 * block.c (block_scope): New.
6998 (block_using, block_global_block): Ditto.
6999 * Makefile.in (cp_support_h): Depend on symtab_h.
7000 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7001
7002 2003-05-19 David Carlton <carlton@bactrian.org>
7003
7004 * language.h (struct language_defn): Add 'la_value_of_this'
7005 and 'la_lookup_symbol_nonlocal' members.
7006 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7007 lookup_symbol_static, lookup_symbol_global,
7008 lookup_symbol_aux_block.
7009 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7010 if we should search fields of this and how to do static/global
7011 lookup.
7012 (lookup_symbol_aux_block): Make extern.
7013 (basic_lookup_symbol_nonlocal): New.
7014 (lookup_symbol_static, lookup_symbol_global): Ditto.
7015 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7016 'la_lookup_symbol_nonlocal' members.
7017 * c-lang.c (c_language_defn, cplus_language_defn)
7018 (asm_language_defn, minimal_language_defn): Ditto.
7019 * jv-lang.c (java_language_defn): Ditto.
7020 * language.c (unknown_language_defn, auto_language_defn)
7021 (local_language_defn): Ditto.
7022 * m2-lang.c (m2_language_defn): Ditto.
7023 * objc-lang.c (objc_language_defn): Ditto.
7024 * scm-lang.c (scm_language_defn): Ditto.
7025 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7026 * p-lang.c (pascal_language_defn): Ditto for both.
7027 * Makefile.in (f-lang.o): Depend on value_h.
7028 (p-lang.o): Ditto.
7029
7030 2003-05-19 David Carlton <carlton@bactrian.org>
7031
7032 * block.h: Declare block_static_block.
7033 * block.c (block_static_block): New.
7034 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7035 lookup_symbol_aux_local, calling block_static_block instead.
7036 (lookup_symbol_aux_local): Delete 'static_block' argument.
7037
7038 2003-05-19 David Carlton <carlton@bactrian.org>
7039
7040 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7041
7042 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7043
7044 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7045 register numbers mapping.
7046
7047 2003-05-18 Adam Fedor <fedor@gnu.org>
7048
7049 * symtab.c (completion_list_objc_symbol): New function.
7050 (make_symbol_completion_list): Use it to add ObjC symbols
7051 when looking though the list.
7052 (language_search_unquoted_string): New function.
7053 (make_file_symbol_completion_list): Use it.
7054
7055 2003-05-18 Andreas Schwab <schwab@suse.de>
7056
7057 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7058 dependencies.
7059 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7060 as m68k_linux_extract_return_value.
7061 (DEPRECATED_STORE_RETURN_VALUE): Define as
7062 m68k_linux_store_return_value.
7063 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7064 m68k_linux_extract_struct_value_address.
7065 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7066 get_next_frame, get_frame_base, get_frame_pc.
7067 (m68k_linux_frame_saved_pc): Use get_frame_base.
7068 (m68k_linux_extract_return_value): New function.
7069 (m68k_linux_store_return_value): New function.
7070 (m68k_linux_extract_struct_value_address): New function.
7071 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7072
7073 * c-exp.y (typebase): Remove duplicate occurence of
7074 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7075 of lookup_signed_typename.
7076
7077 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7078
7079 * dwarf2loc.c (find_location_expression): Change type of second
7080 argument to `size_t *'.
7081 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7082 for size variable.
7083
7084 2003-05-18 David Carlton <carlton@bactrian.org>
7085
7086 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7087 'linkage_name'. Add comment.
7088 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7089 'linkage_name'.
7090 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7091 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7092 (lookup_block_symbol): Ditto.
7093
7094 2003-05-16 Andrew Cagney <cagney@redhat.com>
7095
7096 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7097 * gdbarch.h, gdbarch.c: Re-generate.
7098 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7099 * TODO (REGISTER_BYTES): Delete reference.
7100 * alpha-tdep.c (alpha_gdbarch_init): Update.
7101 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7102 * x86-64-tdep.c (x86_64_init_abi): Update.
7103 * vax-tdep.c (vax_gdbarch_init): Update.
7104 * v850-tdep.c (v850_gdbarch_init): Update.
7105 * sparc-tdep.c (sparc_gdbarch_init): Update.
7106 * sh-tdep.c (sh_gdbarch_init): Update.
7107 * s390-tdep.c (s390_gdbarch_init): Update.
7108 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7109 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7110 (ns32k_gdbarch_init_32382): Update.
7111 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7112 * mcore-tdep.c (mcore_gdbarch_init): Update.
7113 * m68k-tdep.c (m68k_gdbarch_init): Update.
7114 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7115 * ia64-tdep.c (ia64_gdbarch_init): Update.
7116 * i386-tdep.c (i386_gdbarch_init): Update.
7117 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7118 * hppa-tdep.c (hppa_gdbarch_init): Update.
7119 * h8300-tdep.c (h8300_gdbarch_init): Update.
7120 * frv-tdep.c (frv_gdbarch_init): Update.
7121 * cris-tdep.c (cris_gdbarch_init): Update.
7122 * avr-tdep.c (avr_gdbarch_init): Update.
7123 * arm-tdep.c (arm_gdbarch_init): Update.
7124 * sparc-tdep.c (sparc_pop_frame): Update.
7125 * rs6000-tdep.c (rs6000_pop_frame): Update.
7126 * remote.c (init_remote_state): Update.
7127 (remote_prepare_to_store): Update.
7128 * remote-vx.c (vx_prepare_to_store): Update.
7129 * remote-sds.c (sds_fetch_registers): Update.
7130 (sds_prepare_to_store): Update.
7131 * remote-array.c: Update.
7132 * regcache.c (init_legacy_regcache_descr): Update.
7133 (init_regcache_descr): Update.
7134 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7135 (mips_o64_extract_return_value): Update.
7136 * irix5-nat.c (fetch_core_registers): Update.
7137 * irix4-nat.c (fetch_core_registers): Update.
7138 * i386-tdep.h: Update.
7139 * hppa-tdep.c (pa_do_registers_info): Update.
7140 (pa_do_strcat_registers_info): Update.
7141 * cris-tdep.c (cris_register_bytes_ok): Update.
7142 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7143 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7144 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7145 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7146 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7147 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7148 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7149 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7150 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7151 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7152 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7153 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7154 (REGISTER_BYTES_OK): Update.
7155 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7156 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7157
7158 2003-05-16 Ian Lance Taylor <ian@airs.com>
7159
7160 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7161 (vax_print_insn, print_insn_arg): Remove static functions.
7162 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7163 print_insn_vax from opcodes library.
7164 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7165
7166 2003-05-15 Andrew Cagney <cagney@redhat.com>
7167
7168 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7169 * target.h (memory_breakpoint_from_pc): Delete declaration.
7170 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7171 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7172 * monitor.c (monitor_insert_breakpoint): Use
7173 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7174 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7175 * gdbarch.h, gdbarch.c: Re-generate.
7176 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7177 (sparc_gdbarch_init): Set breakpoint_from_pc to
7178 sparc_breakpoint_from_pc.
7179 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7180 (BREAKPOINT_FROM_PC): Define.
7181 (sparc_breakpoint_from_pc): Declare.
7182 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7183 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7184 (BREAKPOINT_FROM_PC): Define.
7185 (BREAKPOINT): Delete macro.
7186 * target.h: Update comment.
7187 * s390-tdep.c (s390_gdbarch_init): Update comments.
7188 * remote.c: Update comments.
7189 * remote-mips.c: Update comments.
7190 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7191 * mem-break.c: Update comment.
7192 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7193 (ia64_memory_insert_breakpoint): Update.
7194 * config/sparc/tm-sparc.h: Update comment.
7195 * config/pa/tm-hppa64.h: Update comment.
7196 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7197 (rs6000_breakpoint_from_pc): Update.
7198 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7199 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7200 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7201 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7202 (mips_breakpoint_from_pc): Update.
7203 (mips_dump_tdep): Update.
7204
7205 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7206 * minsyms.c (lookup_minimal_symbol): Inline
7207 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7208
7209 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7210 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7211 * p-lang.c (pascal_printstr): Ditto.
7212 * objc-lang.c (objc_printstr): Ditto.
7213 * m2-lang.c (m2_printstr): Ditto.
7214 * jv-valprint.c (java_print_value_fields): Ditto.
7215 * f-lang.c (f_printstr): Ditto.
7216 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7217 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7218 for repeat_count_threshold.
7219 * Makefile.in (cp-valprint.o): Update dependencies.
7220
7221 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7222
7223 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7224 (examine_prologue): Support looking through leaf functions, knowing
7225 they start with mov r2,r12. Support skipping over indirect stores
7226 of the input registers. Upon hitting a non-nop branch instruction
7227 or predicated instruction, bail out by setting lim_pc to the current
7228 pc value in the loop. At the end, if the lim_pc value is still
7229 beyond our calculated value and we have trust_limit set,
7230 use the lim_pc value.
7231
7232 2003-05-15 Andrew Cagney <cagney@redhat.com>
7233
7234 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7235 generic_find_dummy_frame.
7236 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7237 (deprecated_generic_find_dummy_frame): Update.
7238 (deprecated_read_register_dummy): Update.
7239 * frame.c (deprecated_generic_get_saved_register): Update.
7240
7241 2003-05-15 Theodore A. Roth <troth@openavr.org>
7242
7243 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7244 (avr_gdbarch_init): Set breakpoint_from_pc method.
7245
7246 2003-05-15 Andrew Cagney <cagney@redhat.com>
7247
7248 * regcache.c (build_regcache): Set deprecated_register_valid
7249 directly.
7250 (deprecated_grub_regcache_for_register_valid): Delete function.
7251 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7252 declaration.
7253
7254 2003-05-15 David Carlton <carlton@bactrian.org>
7255
7256 Committed by Elena Zannoni <ezannoni@redhat.com>
7257 * symtab.c (lookup_symbol_aux): Delete calls to
7258 lookup_symbol_aux_minsyms.
7259 (lookup_symbol_aux_minsyms): Comment out function and
7260 prototype. Delete lookup by mangled name.
7261
7262 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7263
7264 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7265 correctly indicate an empty stack and ``stack_allocated'' to the
7266 indicate the number of elements initially allocated.
7267 (dwarf_expr_grow_stack): Simplify method for computing new
7268 stack size. Don't loop infinitely if ``stack_len'' is zero.
7269 (execute_stack_op): Move ``ctx->in_reg'' initialization
7270 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7271 be used in conjuction with DW_OP_piece. Revise error message
7272 accordingly.
7273
7274 2003-05-14 Theodore A. Roth <troth@openavr.org>
7275
7276 * MAINTAINERS: Update my email address.
7277 * avr-tdep.c: Ditto.
7278
7279 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7280
7281 * symtab.h (enum domain_enum): Rename from namespace_enum.
7282 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7283 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7284 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7285 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7286 TYPES_NAMESPACE, METHODS_NAMESPACE.
7287 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7288 (struct symbol, struct partial_symbol): Rename field
7289 'namespace_enum namespace' to 'domain_enum domain'.
7290 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7291 Delete old define kludge for namespace.
7292
7293 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7294 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7295 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7296 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7297 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7298 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7299 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7300 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7301 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7302 occurrences of the above.
7303
7304 2003-05-14 Ian Lance Taylor <ian@airs.com>
7305
7306 * Makefile.in (install-only): Use $(SHELL) when running
7307 mkinstalldirs.
7308
7309 2003-05-13 Ian Lance Taylor <ian@airs.com>
7310
7311 * MAINTAINERS (write after approval): Add myself.
7312
7313 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7314 second and third arguments.
7315 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7316 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7317
7318 2003-05-13 Andrew Cagney <cagney@redhat.com>
7319
7320 * defs.h (store_address): Delete declaration.
7321 findvar.c (store_address): Delete function.
7322 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7323 store_unsigned_integer.
7324 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7325 * v850-tdep.c (v850_push_arguments): Ditto.
7326 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7327 * sh-tdep.c (sh64_get_saved_register): Ditto.
7328 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7329 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7330 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7331 (mips_get_saved_register): Ditto.
7332 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7333 (find_func_descr, ia64_push_arguments): Ditto.
7334 * i386-tdep.c (i386_push_arguments): Ditto.
7335 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7336 * frv-tdep.c (frv_push_arguments): Ditto.
7337 * frame.c (legacy_saved_regs_prev_register): Ditto.
7338 (deprecated_generic_get_saved_register): Ditto.
7339 * findvar.c (unsigned_address_to_pointer): Ditto.
7340 * dwarf2read.c (dwarf2_const_value): Ditto.
7341 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7342 * alpha-tdep.c (alpha_push_arguments): Ditto.
7343
7344 2003-05-12 J. Brobecker <brobecker@gnat.com>
7345
7346 * NEWS: Mention that the hppa-hpux port has been partially
7347 multiarched (32bit ABIT only, so far).
7348
7349 2003-05-11 Andrew Cagney <cagney@redhat.com>
7350
7351 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7352 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7353 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7354 sim/testsuite/sim/arm/misaligned2.ms, and
7355 sim/testsuite/sim/arm/misaligned3.ms.
7356 * disasm.h (struct ui_file): Add opaque struct declaration.
7357 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7358 * frame.h (struct ui_file): Ditto.
7359
7360 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7361
7362 * value.h: Pretty print.
7363
7364 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7365
7366 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7367
7368 2003-05-08 Andrew Cagney <cagney@redhat.com>
7369
7370 * regcache.h (max_register_size): Delete declaration.
7371 * regcache.c (max_register_size): Delete function.
7372 (struct regcache_descr): Delete field "max_register_size".
7373 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7374 registers fit in MAX_REGISTER_SIZE.
7375 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7376 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7377 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7378 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7379 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7380 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7381 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7382 * dve3900-rom.c, hppa-tdep.c: Ditto.
7383
7384 2003-05-08 David Carlton <carlton@math.stanford.edu>
7385
7386 * valops.c (push_word): Fix typo.
7387
7388 2003-05-08 Andrew Cagney <cagney@redhat.com>
7389
7390 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7391 * gdbarch.h: Re-generate.
7392 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7393 (legacy_max_register_raw_size): Delete declaration.
7394 * regcache.c (legacy_max_register_raw_size): Delete function.
7395 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7396 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7397 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7398 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7399 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7400 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7401 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7402 * findvar.c, dwarf2cfi.c: Ditto.
7403
7404 2003-05-08 Andrew Cagney <cagney@redhat.com>
7405
7406 * mips-tdep.c (read_signed_register): New function, moved to here
7407 from "regcache.c".
7408 (read_signed_register_pid): Ditto.
7409 * regcache.c (read_signed_register_pid): Delete function, moved to
7410 "mips-tdep.c".
7411 (read_signed_register): Ditto.
7412 * regcache.h (read_signed_register): Delete declaration.
7413 (read_signed_register_pid): Delete declaration.
7414
7415 2003-05-08 Andrew Cagney <cagney@redhat.com>
7416
7417 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7418 * gdbarch.h: Re-generate.
7419 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7420 (legacy_max_register_virtual_size): Delete declaration.
7421 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7422 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7423 * tracepoint.c (memrange_sortmerge): Ditto.
7424 * sparc-tdep.c (sparc_print_registers): Ditto.
7425 * regcache.c (legacy_max_register_virtual_size): Delete function.
7426
7427 2002-05-08 J. Brobecker <brobecker@gnat.com>
7428
7429 * fork-child.c (escape_bang_in_quoted_argument): New function.
7430 (fork_inferior): Escape '!' characters in quoted arguments
7431 only when needed.
7432
7433 2003-05-08 J. Brobecker <brobecker@gnat.com>
7434
7435 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7436 the language of the CU is not currently supported by GDB.
7437
7438 2003-05-08 J. Brobecker <brobecker@gnat.com>
7439
7440 * defs.h (language): Add language_minimal enum value.
7441 * c-lang.c (minimal_language_defn): New language definition.
7442 (_initialize_c_language): Add the new minimal language to the list
7443 of languages known to GDB.
7444
7445 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7446
7447 * frame.c (get_frame_type): Don't attempt to lazily initialize
7448 frame's unwinder for legacy frames.
7449
7450 2003-05-07 Andrew Cagney <cagney@redhat.com>
7451
7452 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7453 and "regcache" parameters.
7454 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7455
7456 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7457
7458 * dwarf2read.c (dwarf_decode_lines): Only use output of
7459 check_cu_functions() when calling record_line(). Do not update
7460 the current address.
7461
7462 2003-05-07 Andrew Cagney <cagney@redhat.com>
7463
7464 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7465 code.
7466
7467 2003-05-07 Jim Blandy <jimb@redhat.com>
7468
7469 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7470 'maint info symtabs' and 'maint info psymtabs'.
7471 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7472 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7473 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7474 Declarations updated.
7475 * maint.c (maintenance_list_command): Delete.
7476 (_initialize_maint_cmds): Update calls to add_cmd.
7477 * gdbcmd.h (maintenancelistlist): Delete declaration.
7478 * cli/cli-cmds.c (maintenancelistlist): Delete.
7479 (init_cmd_lists): Don't initialize it.
7480 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7481
7482 2003-05-07 Andrew Cagney <cagney@redhat.com>
7483
7484 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7485 "regcache".
7486 (d10v_print_registers_info): Update.
7487 (d10v_dmap_register, d10v_imap_register): Delete functions.
7488 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7489 and "imap_register".
7490 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7491 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7492 * arch-utils.c (generic_remote_translate_xfer_address): Add
7493 "regcache" and "gdbarch" parameters.
7494 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7495 parameter. Change class to multi-arch.
7496 * gdbarch.h, gdbarch.c: Re-generate.
7497 * remote.c (remote_xfer_memory): Use
7498 gdbarch_remote_translate_xfer_address.
7499
7500 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7501
7502 * infrun.c (prev_pc): Move declaration ahead of proceed().
7503 (proceed): Refresh prev_pc value before resuming.
7504 (stop_stepping): Remove code to refresh prev_pc.
7505
7506 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7507
7508 * nto-tdep.c: Removed stray comment.
7509
7510 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7511
7512 * i386-nto-tdep.c: Fix old K&R function definitions.
7513 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7514 Also change add_show_from_set() call to add_setshow_cmd().
7515 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7516
7517 2003-05-05 Andrew Cagney <cagney@redhat.com>
7518
7519 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7520 (fprint_dummy_frames): New function.
7521 (maintenance_print_dummy_frames): New function.
7522 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7523 * frame.c (fprint_frame_id): Make global.
7524 * frame.h (fprint_frame_id): Declare.
7525 * Makefile.in (dummy-frame.o): Update dependencies.
7526
7527 2003-05-05 Andrew Cagney <cagney@redhat.com>
7528
7529 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7530 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7531 SIZEOF_CALL_DUMMY_WORDS.
7532 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7533 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7534 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7535 CALL_DUMMY_BREAKPOINT_OFFSET.
7536 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7537 CALL_DUMMY_START_OFFSET.
7538 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7539 * gdbarch.h, gdbarch.c: Re-generate.
7540 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7541 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7542 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7543 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7544 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7545 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7546 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7547 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7548 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7549 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7550 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7551 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7552 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7553 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7554 * config/sparc/tm-sparc.h: Update.
7555
7556 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7557
7558 * configure.tgt: Add i[3456]86-*-nto*.
7559 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7560 * nto-tdep.c: New file. Neutrino target support routines.
7561 * nto-tdep.h: New file. Neutrino target header.
7562 * config/tm-qnxnto.h: New file.
7563 * config/i386/i386nto.mt: New file.
7564 * config/i386/tm-i386nto.h: New file.
7565
7566 2003-05-04 Andrew Cagney <cagney@redhat.com>
7567
7568 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7569 (load_infrun_state): Ditto.
7570 (struct thread_info): Drop "prev_func_name" field.
7571 * thread.c (load_infrun_state): Update.
7572 (save_infrun_state): Update.
7573 * infrun.c (prev_func_name): Delete variable.
7574 (init_wait_for_inferior): Do not clear prev_func_name.
7575 (stop_stepping, keep_going, context_switch): Do not swap
7576 prev_func_name.
7577 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7578 instead of PC_IN_SIGTRAMP.
7579
7580 2003-05-04 Andrew Cagney <cagney@redhat.com>
7581
7582 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7583 REGISTER_BYTE with register_offset_hack.
7584 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7585 that REGISTER_BYTE is consistent with the regcache.
7586 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7587 * gdbarch.h, gdbarch.c: Regenerate.
7588
7589 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7590
7591 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7592 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7593
7594 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7595
7596 2003-05-03 J. Brobecker <brobecker@gnat.com>
7597
7598 From Thierry Schneider <tpschneider1@yahoo.com>
7599 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7600 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7601 (mi-cmd-symbol.o): Add rule.
7602
7603 2003-05-03 Andrew Cagney <cagney@redhat.com>
7604
7605 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7606 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7607 * gdbarch.h, gdbarch.c: Re-generate.
7608 * d10v-tdep.c (d10v_push_dummy_code): New function.
7609 (d10v_gdbarch_init): Set push_dummy_code.
7610 * infcall.c (legacy_push_dummy_code): New function.
7611 (generic_push_dummy_code): New function.
7612 (push_dummy_code): New function.
7613 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7614 instead of dummy_addr, to push_dummy_call. Move call to
7615 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7616 switch.
7617 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7618
7619 2003-05-03 Andrew Cagney <cagney@redhat.com>
7620
7621 * disasm.h (print_insn): Declare.
7622 * disasm.c (init_gdb_disassemble_info): New function.
7623 (gdb_disassembly): Call init_gdb_disassemble_info.
7624 (gdb_print_insn): New function.
7625 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7626 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7627 * mcore-tdep.c: Include "disasm.h"
7628 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7629 * d10v-tdep.c: Include "disasm.h".
7630 (display_trace): Call gdb_print_insn, instead of print_insn.
7631 (print_insn): Delete function.
7632 * printcmd.c: Include "disasm.h".
7633 (print_insn): Delete function.
7634 (print_formatted): Call gdb_print_insn, instead of print_insn.
7635 * Makefile.in (printcmd.o): Update dependencies.
7636 (mcore-tdep.o, d10v-tdep.o): Ditto.
7637
7638 2003-05-02 Andrew Cagney <cagney@redhat.com>
7639
7640 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7641 PC_REGNUM, re-indent.
7642 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7643 PC_REGNUM isn't set.
7644
7645 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7646 * gdbarch.h, gdbarch.c: Re-generate.
7647 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7648 register_virtual_size, pc_regnum, or register_bytes.
7649 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7650 (d10v_register_type): Use D10V_PC_REGNUM.
7651 (d10v_print_registers_info, d10v_read_pc): Ditto.
7652 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7653 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7654
7655 2003-05-02 David Carlton <carlton@bactrian.org>
7656
7657 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7658 the name with mstrsave.
7659
7660 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7661
7662 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7663 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7664 (host_charset_name, target_charset_name): New vars for use by
7665 set/show commands.
7666 (host_charset_enum, target_charset_enum): New enums for set/show
7667 commands.
7668 (set_charset_sfunc, set_host_charset_sfunc,
7669 set_target_charset_sfunc): New functions.
7670 (set_host_charset, set_target_charset): Make static.
7671 (list_charsets, set_host_charset_command,
7672 set_target_charset_command): Delete functions.
7673 (show_charset_command): Rewrite as....
7674 (show_charset): Hook this up with the set/show command mechanism.
7675 (_initialize_charset): Change names of charsets to match the
7676 set/show enums. Use host_charset_name and target_charset_name.
7677 Use set/show mechanism for charset, host-charset, target-charset
7678 commands. Do not make 'show host-charset' and 'show
7679 target-charset' be aliases of 'show charset'.
7680
7681 * charset.h (set_host_charset, set_target_charset): Don't export,
7682 they are not used outside the file.
7683
7684 2003-05-01 Andrew Cagney <cagney@redhat.com>
7685
7686 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7687 (gdb_disassembly): Make "di" non static, always initialize and
7688 cleanup. Always use dis_asm_read_memory.
7689 (gdb_dis_asm_read_memory): Delete function.
7690
7691 2003-05-01 Andrew Cagney <cagney@redhat.com>
7692
7693 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7694 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7695
7696 2003-04-30 Andrew Cagney <cagney@redhat.com>
7697
7698 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7699 "tm_print_insn_info".
7700 (TARGET_PRINT_INSN_INFO): Delete macro.
7701 (dis_asm_read_memory): Delete function declaration.
7702 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7703 (tm_print_insn_info): Delete variable definition.
7704 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7705 * gdbarch.h, gdbarch.c: Re-generate.
7706 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7707 "deprecated_tm_print_insn_info".
7708 * mcore-tdep.c (mcore_dump_insn): Ditto.
7709 * mips-tdep.c (mips_gdbarch_init): Ditto.
7710 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7711 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7712 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7713 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7714 instead of TARGET_PRINT_INSN_INFO, add comment.
7715 * s390-tdep.c (s390_get_frame_info): Instead of
7716 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7717 (s390_check_function_end, s390_is_sigreturn): Ditto.
7718 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7719 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7720 * disasm.c: Include "gdbcore.h".
7721 (_initialize_disasm): New function, initialize
7722 "deprecated_tm_print_insn_info".
7723 (deprecated_tm_print_insn_info): New variable.
7724 (dis_asm_read_memory): Moved from "corefile.c", made static.
7725 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7726 * Makefile.in (disasm.o): Update dependencies.
7727
7728 2003-04-30 Andrew Cagney <cagney@redhat.com>
7729
7730 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7731
7732 2003-04-29 Adam Fedor <fedor@gnu.org>
7733
7734 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7735 * infcall.c (find_function_addr): Make non-static.
7736 * infcall.h (find_function_addr): Declare.
7737 * Makefile.in (eval.o): Update dependencies.
7738
7739 2003-04-28 Adam Fedor <fedor@gnu.org>
7740
7741 * symtab.c (symbol_find_demangled_name): Check for and demangle
7742 ObjC symbols.
7743 (symbol_init_demangled_name): Init for language_objc as well.
7744
7745 2003-04-28 Andrew Cagney <cagney@redhat.com>
7746
7747 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7748 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7749 * gdbarch.h, gdbarch.c: Re-generate.
7750 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7751 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7752 * inferior.h (deprecated_read_fp): Rename read_fp.
7753 (generic_target_read_fp): Delete declaration.
7754 * regcache.c (generic_target_read_fp): Delete function.
7755 (deprecated_read_fp): Replace read_fp, use
7756 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7757 * d10v-tdep.c (d10v_read_fp): Delete function.
7758 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7759
7760 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7761 deprecated_target_read_fp to generic_target_read_fp.
7762 * sh-tdep.c (sh_gdbarch_init): Ditto.
7763 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7765 * frv-tdep.c (frv_gdbarch_init): Ditto.
7766
7767 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7768 deprecated_fp_regnum.
7769 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7770 * vax-tdep.c (vax_gdbarch_init): Ditto.
7771 * v850-tdep.c (v850_gdbarch_init): Ditto.
7772 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7773 * sh-tdep.c (sh_gdbarch_init): Ditto.
7774 * s390-tdep.c (s390_gdbarch_init): Ditto.
7775 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7776 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7777 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7778 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7779 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7780 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7781 * i386-tdep.c (i386_gdbarch_init): Ditto.
7782 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7783 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7784 * frv-tdep.c (frv_gdbarch_init): Ditto.
7785 * cris-tdep.c (cris_gdbarch_init): Ditto.
7786 * avr-tdep.c (avr_gdbarch_init): Ditto.
7787 * arm-tdep.c (arm_gdbarch_init): Ditto.
7788 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7789
7790 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7791 * v850-tdep.c (v850_gdbarch_init): Ditto.
7792 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7793 * sh-tdep.c (sh_gdbarch_init): Ditto.
7794 * s390-tdep.c (s390_gdbarch_init): Ditto.
7795 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7796 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7797 * mips-tdep.c (mips_gdbarch_init): Ditto.
7798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7799 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7800 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7801 * frv-tdep.c (frv_gdbarch_init): Ditto.
7802 * avr-tdep.c (avr_gdbarch_init): Ditto.
7803 * arm-tdep.c (arm_gdbarch_init): Ditto.
7804
7805 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7806 DEPRECATED_FP_REGNUM.
7807 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7808 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7809 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7810 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7811 (sparc32_register_virtual_type): Ditto.
7812 * sh-tdep.c (sh64_frame_chain): Ditto.
7813 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7814 (sh_nofp_frame_init_saved_regs): Ditto.
7815 (sh64_nofp_frame_init_saved_regs): Ditto.
7816 (sh_fp_frame_init_saved_regs): Ditto.
7817 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7818 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7819 * procfs.c (procfs_fetch_registers): Ditto.
7820 (procfs_store_registers): Ditto.
7821 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7822 (store_inferior_registers, fetch_core_registers): Ditto.
7823 (fetch_kcore_registers, clear_regs): Ditto.
7824 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7825 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7826 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7827 * nlm/i386.c (do_status): Ditto.
7828 * mipsv4-nat.c (supply_gregset): Ditto.
7829 * mips-tdep.c: Ditto for comments.
7830 * mips-nat.c (fetch_inferior_registers): Ditto.
7831 (store_inferior_registers, fetch_core_registers): Ditto.
7832 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7833 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7834 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7835 (i386_do_pop_frame, i386_register_type): Ditto.
7836 * hppa-tdep.c (hppa_frame_chain): Ditto.
7837 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7838 (hppa_pop_frame, hppa_read_fp): Ditto.
7839 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7840 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7841 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7842 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7843 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7844 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7845 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7846 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7847 * blockframe.c: Ditto for comments.
7848 * arch-utils.h: Ditto for comments.
7849 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7850 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7851 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7852 * alpha-tdep.h: Ditto for comments.
7853 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7854 (alpha_cannot_store_register): Ditto.
7855 (alpha_push_dummy_frame): Ditto.
7856 * alpha-nat.c (supply_gregset): Ditto.
7857
7858 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7859 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7860 * config/sparc/tm-sparc.h: Update comment.
7861
7862 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7863 deprecated_read_fp instead of TARGET_READ_FP.
7864 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7865 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7866 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7867 deprecated_read_fp instead of read_fp.
7868 * s390-tdep.c (s390_push_arguments): Ditto.
7869 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7870 * frame.h: Ditto in comments.
7871 * frame.c (legacy_get_prev_frame): Ditto.
7872 * dummy-frame.c (dummy_frame_this_id): Ditto.
7873 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7874
7875 2003-04-28 Andrew Cagney <cagney@redhat.com>
7876
7877 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7878 * gdbarch.h, gdbarch.c: Re-generate.
7879 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7880 * vax-tdep.c (_initialize_vax_tdep): Update.
7881 * v850-tdep.c (_initialize_v850_tdep): Update.
7882 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7883 * s390-tdep.c (_initialize_s390_tdep): Update.
7884 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7885 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7886 * mips-tdep.c (_initialize_mips_tdep): Update.
7887 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7888 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7889 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7890 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7891 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7892 * frv-tdep.c (_initialize_frv_tdep): Update.
7893 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7894 (_initialize_cris_tdep): Update.
7895 * arch-utils.c (legacy_print_insn): Update.
7896 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7897
7898 2003-04-26 Adam Fedor <fedor@gnu.org>
7899
7900 * linespec.c (decode_objc): New function to decode ObjC calls
7901 (decode_line_1): Check for ObjC calls (using decode_objc)
7902 * Makefile (linespec.o): Update dependencies.
7903
7904 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7905
7906 * breakpoint.h (struct breakpoint_ops): New.
7907 (struct breakpoint): Add ops member.
7908
7909 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7910 (mention): Use new breakpoint ops member.
7911 (set_raw_breakpoint): Initialize ops field to NULL.
7912 (print_exception_catchpoint, print_one_exception_catchpoint)
7913 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7914 (gnu_v3_exception_catchpoint_ops): New.
7915 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7916
7917 2003-04-25 Adam Fedor <fedor@gnu.org>
7918
7919 * Makefile.in (COMMON_OBS): Add objc-lang.o
7920
7921 2003-04-25 Andrew Cagney <cagney@redhat.com>
7922
7923 * d10v-tdep.c (print_insn): Delete function.
7924 (display_trace): Use TARGET_PRINT_INSN.
7925 (_initialize_d10v_tdep): Do not set tm_print_insn.
7926 (d10v_gdbarch_init): Set print_insn.
7927
7928 2003-04-25 Andrew Cagney <cagney@redhat.com>
7929
7930 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7931 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7932 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7933 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7934 (nr_dmap_regs, a0_regnum): ... new functions.
7935 (d10v_print_registers_info): Use a0_regnum, use register_size.
7936 (d10v_register_byte): Delete function.
7937 (d10v_register_raw_size): Delete function.
7938 (d10v_register_type): Use a0_regnum.
7939 (d10v_print_registers_info): Use a0_regnum.
7940 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7941 (d10v_gdbarch_init): Do not set register_byte or
7942 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7943 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7944 extract_address.
7945 (trace_command): Use XCALLOC.
7946 (print_insn): Delete reference to tm_print_insn.
7947 (saved_regs_unwinder): Use store_unsigned_integer instead of
7948 store_address.
7949 * frame.h (FRAME_OBSTACK_CALLOC): Define
7950
7951 2003-04-25 David Carlton <carlton@bactrian.org>
7952
7953 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7954
7955 2003-04-24 Adam Fedor <fedor@gnu.org>
7956
7957 * objc-lang.c: Include "valprint.h"
7958 * Makefile.in (objc-lang.o): Update dependencies.
7959
7960 2003-04-24 Adam Fedor <fedor@gnu.org>
7961
7962 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7963 architecture dependant compilation and mark as unimplemented
7964 (until they get put in the gdbarch vector).
7965
7966 2003-04-23 David Carlton <carlton@bactrian.org>
7967
7968 * cp-support.c (cp_find_first_component): Accept 'operator' in
7969 more locations.
7970
7971 2003-04-23 Andrew Cagney <cagney@redhat.com>
7972
7973 * infcall.c (call_function_by_hand): Eliminate redundant
7974 indentation. Move "saved_async" and "old_cleanups" to where they
7975 are needed.
7976
7977 2003-04-23 Andrew Cagney <cagney@redhat.com>
7978
7979 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7980 and "buffer". Move the "name" code to where it is needed.
7981
7982 2003-04-23 Andrew Cagney <cagney@redhat.com>
7983
7984 * infcall.c (call_function_by_hand): Move variables "start_sp",
7985 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7986 code to ON_STACK switch branch.
7987
7988 2003-04-23 Andrew Cagney <cagney@redhat.com>
7989
7990 * infcall.c (call_function_by_hand): Make declaration of "i",
7991 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7992 lint.
7993
7994 2003-04-23 Andrew Cagney <cagney@redhat.com>
7995
7996 * infcall.c (call_function_by_hand): Delete variable
7997 "n_method_args". Localize "param_type"'s declaration to the loop
7998 that it is used. Reinstate code assigning to said variable -
7999 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8000 Rationalize code using "param_type".
8001
8002 2003-04-22 Andrew Cagney <cagney@redhat.com>
8003
8004 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8005 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8006 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8007 to DEPRECATED_PUSH_RETURN_ADDRESS.
8008
8009 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8010
8011 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8012 on the DWARF2 register number prior to fetching a register.
8013
8014 2003-04-22 J. Brobecker <brobecker@gnat.com>
8015
8016 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8017 Update all the tests using SOFT_FLOAT considering the fact that
8018 this macro was always set to 0.
8019 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8020 considering the fact that this macro was always set to 0.
8021 * hppa-tdep.h (hppa_store_return_value): Likewise.
8022 (hppa_extract_return_value): Likewise.
8023
8024 2003-04-22 J. Brobecker <brobecker@gnat.com>
8025
8026 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8027 the hppa-pro target only.
8028
8029 2003-04-21 J. Brobecker <brobecker@gnat.com>
8030
8031 Ongoing multi-arch conversion effort for HP/UX:
8032 * config/pa/tm-hppa.h: Move all macro that are no longer
8033 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8034 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8035
8036 2003-04-21 J. Brobecker <brobecker@gnat.com>
8037
8038 * config/pa/tm-hppa.h: Obsolete a section that was only used
8039 for hppa-pro.
8040
8041 2003-04-21 J. Brobecker <brobecker@gnat.com>
8042
8043 Ongoing multi-arch conversion for HP/UX.
8044 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8045 if already defined (allows hppa64 to stay non-multiarched for now).
8046 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8047
8048 2003-04-21 Andrew Cagney <cagney@redhat.com>
8049
8050 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8051
8052 2003-04-21 Andrew Cagney <cagney@redhat.com>
8053
8054 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8055 "i386_num_mmx_regs".
8056
8057 2003-04-21 Andrew Cagney <cagney@redhat.com>
8058
8059 * infcall.c: New file.
8060 * infcall.h: New file.
8061 * valarith.c: Include "infcall.h".
8062 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8063 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8064 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8065 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8066 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8067 (SFILES): Add "infcall.c"
8068 (COMMON_OBS): Add "infcall.o".
8069 (infcall.o): Specify dependencies.
8070 * value.h (call_function_by_hand): Delete declaration.
8071 * inferior.h (run_stack_dummy): Delete declaration.
8072 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8073 (run_stack_dummy): Move to "infcall.c", merged into
8074 call_function_by_hand.
8075 * valops.c (call_function_by_hand): Moved to "infcall.c".
8076 (find_function_addr, value_arg_coerce): Ditto.
8077 (unwindonsignal_p, coerce_float_to_double): Ditto.
8078 (_initialize_valops): Move "set/show coerce-float-to-double", and
8079 "set/show unwindonsignal" commands to "infcall.c".
8080 * v850-tdep.c, target.h: Update comments.
8081 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8082 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8083 (sh64_init_extra_frame_info): Update comments.
8084 * mn10300-tdep.c: Update comments.
8085 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8086 * config/sparc/tm-sparc.h: Update comments.
8087 * breakpoint.h: Update comments.
8088 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8089 * arm-tdep.c: Update comment.
8090
8091 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8092
8093 * i386-tdep.c (i386_num_register_names): New variable.
8094 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8095 (MM0_REGNUM): Remove redundant parentheses in define.
8096 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8097 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8098 i386_mxcsr_regnum_p): Remove redundant parentheses.
8099 (i386_register_name): Use i386_num_register_names.
8100
8101 * i386-tdep.c (i386_extract_return_value,
8102 i386_store_return_value): Correct check for availability of
8103 floating-point registers.
8104
8105 * i386-tdep.c (i386_frame_num_args): Remove function.
8106 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8107
8108 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8109 mmx_regnum_to_fp_regnum. Adjust all callers.
8110
8111 * i386-tdep.c (i386_get_longjmp_target): Use
8112 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8113 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8114 extract_address.
8115
8116 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8117
8118 * core-regset.c: Update comments to reflect reality. Re-order
8119 includes.
8120 (fetch_core_registers): Use switch instead of if. Remove
8121 redundant prototype.
8122
8123 2003-04-18 Jim Blandy <jimb@redhat.com>
8124
8125 * s390-tdep.c (s390_frame_align): New function.
8126 (s390_gdbarch_init): Register it with the gdbarch object.
8127
8128 2003-04-17 Richard Henderson <rth@redhat.com>
8129
8130 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8131
8132 2003-04-17 Michael Snyder <msnyder@redhat.com>
8133 Karen Bennet <bennet@redhat.com>
8134
8135 Committed by Elena Zannoni <ezannoni@redhat.com>
8136 * gdb_gcore.sh: New script to create a core dump of a process.
8137
8138 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8139
8140 * values.c (value_being_returned): Don't fetch the return
8141 value if the return type is void.
8142
8143 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8144
8145 * thread-db.c: Reindented.
8146
8147 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8148
8149 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8150 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8151 as types.
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8178
8179 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8180 the size of ``long double'' to 16, instead of 8.
8181
8182 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8183
8184 * i386-linux-nat.c: Add some whitespace to make things more
8185 readable.
8186 (fetch_register, store_register, fetch_inferior_registers,
8187 store_inferior_registers): Get rid of assignment in if-statement.
8188 (store_register): Fix typo in error message.
8189
8190 2003-04-16 Andrew Cagney <cagney@redhat.com>
8191
8192 * utils.c (xmmalloc): Always allocate something, matches
8193 libiberty/xmalloc's semantics.
8194 (xmrealloc, xmcalloc): Ditto.
8195
8196 2003-04-16 Andrew Cagney <cagney@redhat.com>
8197
8198 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8199 update comments.
8200 (get_frame_type): Initialize unwind and type when needed.
8201 (get_frame_id, frame_register_unwind): Ditto.
8202
8203 2003-04-16 Andrew Cagney <cagney@redhat.com>
8204
8205 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8206 obsolete.
8207 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8208 * sparcl-stub.c: Obsolete file.
8209 * config/sparc/tm-sparclet.h: Obsolete file.
8210 * sparclet-stub.c: Obsolete file.
8211 * sparclet-rom.c: Obsolete file.
8212 * sparcl-tdep.c: Obsolete file.
8213 * config/sparc/tm-sparclite.h: Obsolete file.
8214 * config/sparc/sparclite.mt: Obsolete file.
8215 * config/sparc/sparclet.mt: Obsolete file.
8216 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8217 sparc86x-*-* obsolete.
8218
8219 2003-04-15 David Carlton <carlton@math.stanford.edu>
8220
8221 * Makefile.in (SFILES): Add cp-namespace.c.
8222 (COMMON_OBS): Add cp-namespace.o.
8223 (block.o): Depend on gdb_obstack_h and cp_support_h.
8224 (buildsym.o): Depend on cp_support_h.
8225 (cp-namespace.o): New.
8226 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8227 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8228 (dwarf2read.o): Depend on cp_support_h.
8229 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8230 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8231 processing_current_namespace.
8232 (read_namespace): Update processing_current_namespace; check for
8233 anonymous namespaces.
8234 (dwarf2_name): New function.
8235 (dwarf2_extension): Ditto.
8236 * cp-support.h: Update copyright, contributors.
8237 Add inclusion guards.
8238 Add opaque declaration for structs obstack, block, symbol.
8239 (struct using_direct): New struct.
8240 Add declarations for cp_find_first_component,
8241 cp_entire_prefix_len, processing_has_namespace_info,
8242 processing_current_namespace, cp_is_anonymous,
8243 cp_add_using_directive, cp_initialize_namespace,
8244 cp_finalize_namespace, cp_set_block_scope,
8245 cp_scan_for_anonymous_namespaces.
8246 * cp-namespace.c: New file.
8247 * cp-support.c: Update copyright.
8248 Include ctype.h, gdb_assert.h, gdbcmd.h.
8249 New variable maint_cplus_cmd_list.
8250 (cp_find_first_component): New function.
8251 (cp_entire_prefix_len, maint_cplus_command)
8252 (first_component_command, _initialize_cp_support): Ditto.
8253 * buildsym.c: Include cp-support.h.
8254 New variable using_list.
8255 (add_symbol_to_list): Check for anonymous namespaces.
8256 (finish_block): Set block's scope.
8257 (start_symtab): Initialize C++ namespace support.
8258 (end_symtab): Finalize C++ namespace support.
8259 * block.h: Add opaque declarations for structs
8260 block_namespace_info, using_direct, and obstack.
8261 Add declarations for block_set_scope and block_set_using.
8262 (struct block): Add 'language_specific' member.
8263 (BLOCK_NAMESPACE): New macro.
8264 * block.c: Include gdb_obstack.h and cp-support.h.
8265 (struct block_namespace_info): New struct.
8266 (block_set_scope): New function.
8267 (block_set_using, block_initialize_namespace): Ditto.
8268
8269 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8270
8271 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8272 (locate_base): Return early if there aren't any link map offsets.
8273 (svr4_solib_create_inferior_hook): Warn if shared library support
8274 is unavailable.
8275
8276 2003-04-14 David Carlton <carlton@math.stanford.edu>
8277
8278 * symtab.c (symbol_set_names): Add prefix when storing Java names
8279 in hash table. Fix for PR java/1039.
8280
8281 2003-04-14 David Carlton <carlton@math.stanford.edu>
8282
8283 * symtab.c (symbol_set_names): Rename 'name' arg to
8284 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8285 * symtab.h: Change 'name' argument in declaration of
8286 symbol_set_names to 'linkage_name'.
8287 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8288
8289 2003-04-14 Andrew Cagney <cagney@redhat.com>
8290
8291 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8292 return the fully sign-extended register value.
8293 (get_frame_pointer): Ditto.
8294 (mips_pop_frame): Initialize "proc_desc" after checking for a
8295 dummy frame.
8296
8297 2003-04-14 Andrew Cagney <cagney@redhat.com>
8298
8299 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8300 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8301 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8302 (mips_push_register): Delete function.
8303 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8304 PUSH_FP_REGNUM.
8305
8306 2003-04-14 Jim Blandy <jimb@redhat.com>
8307
8308 * symmisc.c: #include "gdb_regex.h".
8309 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8310 functions.
8311 * maint.c (maintenance_list_command): New function.
8312 (_initialize_maint_cmds): Register the above as commands.
8313 * symtab.h (maintenance_list_symtabs,
8314 maintenance_list_psymtabs): New declarations.
8315 * cli/cli-cmds.c (maintenancelistlist): New variable.
8316 (init_cmd_lists): Initialize it.
8317 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8318 * gdbcmd.h (maintenancelistlist): New declaration.
8319 * Makefile.in (symmisc.o): Update dependencies.
8320
8321 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8322
8323 * s390-nat.c: Include asm/types.h for addr_t.
8324
8325 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8326
8327 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8328 actually incoming type.
8329
8330 2003-04-13 Andrew Cagney <cagney@redhat.com>
8331
8332 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8333 get_next_frame and get_frame_saved_regs.
8334
8335 2003-04-13 Andrew Cagney <cagney@redhat.com>
8336
8337 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8338 of gdbarch_num_regs.
8339
8340 2003-04-13 Andrew Cagney <cagney@redhat.com>
8341
8342 * frame.h: Mention what replaced what in "struct frame_info".
8343 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8344 deprecated_update_frame_base_hack and
8345 deprecated_update_frame_pc_hack.
8346 * hppa-tdep.c: Ditto.
8347
8348 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8349
8350 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8351 to read_reg and update its comment. Remove regnum member.
8352 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8353 Don't call read_reg when setting in_reg. Call read_reg to get
8354 the frame base if it's in a register. Return the register number
8355 on the stack instead of in the context. Remove extra arguments
8356 to read_reg.
8357 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8358 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8359 the register number on the expression stack.
8360 (needs_frame_read_reg): Remove extra arguments.
8361
8362 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8363
8364 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8365 made non-static.
8366 (execute_stack_op): All callers updated.
8367 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8368 * dwarf2loc.c (find_location_expression): New function.
8369 (dwarf_expr_frame_base): Call it.
8370 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8371 (dwarf2_tracepoint_var_ref): New function, broken out from
8372 locexpr_tracepoint_var_ref.
8373 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8374 Make static.
8375 (loclist_read_variable, loclist_read_needs_frame): New functions.
8376 (loclist_describe_location, loclist_tracepoint_var_ref): New
8377 functions.
8378 (dwarf2_loclist_funcs): New struct location_funcs.
8379 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8380 (struct dwarf2_locexpr_baton): Add comments.
8381 (dwarf2_loclist_funcs): New extern.
8382 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8383 base_address and base_known.
8384 (dwarf_loc_buffer): New variable.
8385 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8386 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8387 (dwarf2_has_info): Initialize dwarf_loc_offset.
8388 (dwarf2_build_psymtabs): Read in .debug_loc.
8389 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8390 DWARF_LOC_SIZE.
8391 (psymtab_to_symtab_1): Likewise. Move base address calculation
8392 here, from...
8393 (dwarf2_get_pc_bounds): ... here. Use the base address from
8394 cu_header.
8395 (dwarf2_symbol_mark_computed): Handle location lists.
8396
8397 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8398
8399 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8400 if the linkage name demangled successfully.
8401
8402 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8403
8404 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8405 disassmbly_flavour): Removed.
8406
8407 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8408
8409 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8410
8411 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8412
8413 2003-04-12 Andrew Cagney <cagney@redhat.com>
8414
8415 * frame.h (struct frame_info): Move definition from here ...
8416 * frame.c (struct frame_info): ... to here.
8417
8418 2003-04-12 Andrew Cagney <cagney@redhat.com>
8419
8420 * gdbthread.h (save_infrun_state): Delete parameter
8421 "prev_func_start".
8422 (struct thread_info): Delete field "prev_func_start".
8423 (load_infrun_state): Ditto.
8424 * thread.c (load_infrun_state, save_infrun_state): Update.
8425 * infrun.c (prev_func_start): Delete variable.
8426 (context_switch, init_wait_for_inferior): Update.
8427 (stop_stepping, keep_going): Update.
8428
8429 2003-04-12 Andrew Cagney <cagney@redhat.com>
8430
8431 * gdbarch.sh: Add missing opaque declarations.
8432 * gdbarch.h: Regnerate.
8433 * symtab.h: Add missing opaque declarations.
8434 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8435 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8436 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8437 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8438 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8439 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8440 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8441 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8442 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8443 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8444 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8445 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8446 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8447
8448 2003-04-11 Andrew Cagney <cagney@redhat.com>
8449
8450 * frame.c (get_frame_id): Return this frame's "id".
8451 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8452 function start.
8453 (legacy_saved_regs_this_id): Replace function body with
8454 internal-error.
8455 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8456 FRAME_OBSTACK_ZALLOC.
8457 (create_new_frame): Mark the frame ID as valid.
8458
8459 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8460
8461 * Makefile.in (libbfd_h): Added missing setting.
8462 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8463 according to the selected ABI.
8464
8465 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8466
8467 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8468
8469 2003-04-11 Andrew Cagney <cagney@redhat.com>
8470
8471 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8472 SAVED_PC_AFTER_CALL.
8473 * gdbarch.h, gdbarch.c: Regenerate.
8474 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8475 * x86-64-tdep.c (x86_64_init_abi): Update.
8476 * vax-tdep.c (vax_gdbarch_init): Update.
8477 * v850-tdep.c (v850_gdbarch_init): Update.
8478 * sparc-tdep.c (sparc_gdbarch_init): Update.
8479 * sh-tdep.c (sh_gdbarch_init): Update.
8480 * s390-tdep.c (s390_gdbarch_init): Update.
8481 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8482 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8483 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8484 * mips-tdep.c (mips_gdbarch_init): Update.
8485 * mcore-tdep.c (mcore_gdbarch_init): Update.
8486 * m68k-tdep.c (m68k_gdbarch_init): Update.
8487 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8488 * ia64-tdep.c (ia64_gdbarch_init): Update.
8489 (ia64_saved_pc_after_call): Update declaration.
8490 * i386ly-tdep.c (i386lynx_init_abi): Update.
8491 * i386-tdep.c (i386_gdbarch_init): Update.
8492 * hppa-tdep.c (hppa_gdbarch_init): Update.
8493 * h8300-tdep.c (h8300_gdbarch_init): Update.
8494 * frv-tdep.c (frv_gdbarch_init): Update.
8495 * cris-tdep.c (cris_gdbarch_init): Update.
8496 * avr-tdep.c (avr_gdbarch_init): Update.
8497 * arm-tdep.c (arm_gdbarch_init): Update.
8498 * alpha-tdep.c (alpha_gdbarch_init): Update.
8499 * ns32knbsd-nat.c (frame_num_args): Update.
8500 * ns32k-tdep.c (umax_frame_num_args): Update.
8501 * mips-tdep.c (mips_init_frame_pc_first): Update.
8502 * infrun.c (step_over_function): Update.
8503 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8504 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8505 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8506 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8507 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8508 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8509 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8510 * arch-utils.c (init_frame_pc_default): Update.
8511 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8512 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8513 declaration.
8514
8515 2003-04-11 Andrew Cagney <cagney@redhat.com>
8516
8517 * i387-tdep.c: Update copyright.
8518 (i387_to_double): Delete function.
8519 (double_to_i387): Delete function.
8520
8521 2003-04-10 Andrew Cagney <cagney@redhat.com>
8522
8523 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8524 frame's function's address. Simplify.
8525 (d10v_frame_unwind_cache): Check that the frame's function is
8526 non-zero.
8527
8528 2003-04-10 Jim Blandy <jimb@redhat.com>
8529
8530 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8531 call to set_gdbarch_deprecated_push_arguments.
8532
8533 2003-04-10 Andrew Cagney <cagney@redhat.com>
8534
8535 * frame.c (fprint_frame_id): New function.
8536 (fprint_frame_type, fprint_frame): New function.
8537 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8538 (create_sentinel_frame, get_frame_id): Ditto.
8539 (frame_id_p, frame_id_eq): Ditto.
8540 (frame_id_inner, create_new_frame): Ditto.
8541 (legacy_get_prev_frame, get_prev_frame): Ditto.
8542 (deprecated_update_frame_pc_hack): Ditto.
8543 (frame_register_unwind): Ditto.
8544 (deprecated_update_frame_base_hack): Ditto.
8545
8546 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8547
8548 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8549 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8550 frame_chain function.
8551 * Makefile.in: Add dependencies due to above change.
8552
8553 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8554
8555 * blockframe.c (legacy_frame_chain_valid): Move call to
8556 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8557 inside_entry_file.
8558
8559 2003-04-09 Andrew Cagney <cagney@redhat.com>
8560
8561 * frame.h (struct frame_id): Replace "pc" and "base" with
8562 "stack_addr" and "code_addr". Update comments.
8563 (frame_id_build): Update parameter names and comment.
8564 (struct frame_info): Replace "id_p" and "id" with "this_id".
8565 * dummy-frame.c (dummy_frame_this_id): Update.
8566 * breakpoint.c (print_one_breakpoint): Update.
8567 * frame.c (get_frame_id): Update.
8568 (get_frame_base, frame_id_build): Update.
8569 (create_sentinel_frame, legacy_get_prev_frame): Update.
8570 (deprecated_update_frame_base_hack): Update.
8571 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8572 (frame_id_inner): Ditto.
8573
8574 2003-04-09 Andrew Cagney <cagney@redhat.com>
8575
8576 * defs.h (gdb_print_host_address): Make "addr" parameter a
8577 pointer constant.
8578 * utils.c (gdb_print_host_address): Update.
8579
8580 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8581
8582 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8583 register number for R0 is 0.
8584
8585 2003-04-09 J. Brobecker <brobecker@gnat.com>
8586
8587 * frame.h (struct gdbarch): Add opaque structure definition
8588 to avoid a compilation warning on LynxOS 4.0.
8589
8590 2003-04-09 Andrew Cagney <cagney@redhat.com>
8591
8592 * frame.h (struct frame_info): Delete field "pc". Replace
8593 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8594 structure.
8595 * frame.c (frame_pc_unwind): Update.
8596 (create_sentinel_frame): Do not set "pc".
8597 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8598 (get_frame_pc): Call frame_pc_unwind.
8599 (deprecated_update_frame_pc_hack): Update.
8600 (create_new_frame): Use "pc" not "->pc".
8601
8602 2003-04-09 Andrew Cagney <cagney@redhat.com>
8603
8604 * frame.c (get_frame_id): Eliminate code updating "frame".
8605 (legacy_get_prev_frame): Ditto.
8606 (get_frame_base): Return id.base directly.
8607 (deprecated_update_frame_base_hack): Update "id.base".
8608 * frame.h (struct frame_info): Delete field "frame".
8609
8610 2003-04-09 Andrew Cagney <cagney@redhat.com>
8611
8612 * NEWS: Mention that the "Sequent family" is obsolete.
8613 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8614 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8615 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8616 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8617 * config/i386/tm-ptx4.h: Obsolete file.
8618 * config/i386/tm-ptx.h: Obsolete file.
8619 * symm-tdep.c: Obsolete file.
8620 * config/i386/symmetry.mt: Obsolete file.
8621 * config/i386/tm-symmetry.h: Obsolete file.
8622 * symm-nat.c: Obsolete file.
8623 * config/i386/nm-symmetry.h: Obsolete file.
8624 * config/i386/xm-symmetry.h: Obsolete file.
8625 * config/i386/symmetry.mh: Obsolete file.
8626 * config/i386/nm-ptx4.h: Obsolete file.
8627 * config/i386/ptx4.mh: Obsolete file.
8628 * config/i386/ptx.mt: Obsolete file.
8629 * config/i386/ptx.mh: Obsolete file.
8630 * config/i386/xm-ptx4.h: Obsolete file.
8631 * config/i386/xm-ptx.h: Obsolete file.
8632
8633 2003-04-09 Andrew Cagney <cagney@redhat.com>
8634
8635 Obsolete mips*-*-mach3*.
8636 * NEWS: Mention that mips*-*-mach3* is obsolete.
8637 * m3-nat.c: Obsolete file.
8638 * config/nm-m3.h: Obsolete file.
8639 * config/mips/tm-mipsm3.h: Obsolete file.
8640 * config/mips/mipsm3.mt: Obsolete file.
8641 * config/mips/mipsm3.mh: Obsolete file.
8642 * config/mips/xm-mipsm3.h: Obsolete file.
8643 * mipsm3-nat.c: Obsolete file.
8644 * configure.host: Obsolete mips-dec-mach3*.
8645 * configure.tgt: Obsolete mips*-*-mach3*.
8646
8647 2003-04-09 Andrew Cagney <cagney@redhat.com>
8648
8649 * doublest.h: Update copyright.
8650 (deprecated_store_floating, deprecated_extract_floating): Rename
8651 store_floating and extract_floating. Update comments.
8652 * doublest.c: Update copyright.
8653 (extract_floating_by_length): Replace extract_floating.
8654 (store_floating_by_length): Replace store_floating.
8655 (deprecated_extract_floating): New function.
8656 (deprecated_store_floating): New function.
8657 (extract_typed_floating): Call extract_floating_by_length.
8658 (store_typed_floating): Call store_floating_by_length.
8659 * x86-64-tdep.c (x86_64_store_return_value): Update.
8660 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8661 (sh64_extract_return_value): Update.
8662 (sh_sh4_register_convert_to_virtual): Update.
8663 (sh_sh64_register_convert_to_virtual): Update.
8664 (sh_sh4_register_convert_to_raw): Update.
8665 (sh_sh64_register_convert_to_raw): Update.
8666 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8667 (rs6000_register_convert_to_raw): Update.
8668 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8669 (ia64_register_convert_to_raw): Update.
8670 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8671 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8672 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8673 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8674 (alpha_register_convert_to_raw): Update.
8675
8676 2003-04-08 Andrew Cagney <cagney@redhat.com>
8677
8678 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8679 * gdbarch.h, gdbarch.c: Re-generate.
8680 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8681 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8682 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8683 conditionally, use frame_pc_unwind as an alternative. Add
8684 comments.
8685 * arch-utils.c (init_frame_pc_default): Only call
8686 SAVED_PC_AFTER_CALL when available.
8687
8688 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8689
8690 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8691 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8692 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8693 (start_remote): Ditto.
8694 (handle_inferior_event): Ditto.
8695 (save_inferior_status): Ditto.
8696 (restore_inferior_status): Ditto.
8697 * infcmd.c (attach_command): Ditto.
8698 * fork-child.c (startup_inferior): Ditto.
8699 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8700 * alpha-tdep.c (heuristic_proc_start): Ditto.
8701 * mips-tdep.c (heuristic_proc_start): Ditto.
8702 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8703 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8704 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8705 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8706 * remote-vx.c (vx_create_inferior): Ditto.
8707
8708 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8709
8710 * infrun.c (stop_soon_quietly): Make it an enum, to better
8711 override the default behavior of handle_inferior_event.
8712 (clear_proceed_status): Update uses of stop_soon_quietly to
8713 reflect that it is now an enum.
8714 (start_remote): Ditto.
8715 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8716 is set to handle the new GNU/Linux kernel behavior for
8717 attach/sigstop. Update uses of stop_soon_quietly.
8718 * inferior.h (enum stop_kind): New enum.
8719 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8720 Reset normal handle_inferior_event behavior, afterwards.
8721 * fork-child.c (startup_inferior): Update.
8722 * alpha-tdep.c (heuristic_proc_start): Update.
8723 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8724 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8725 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8726 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8727 * remote-vx.c (vx_create_inferior): Update.
8728 * mips-tdep.c (heuristic_proc_start): Update.
8729
8730 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8731
8732 * disasm.c (dump_insns): Move variables inside loop, or they will
8733 be freed more than once, causing wild memory corruptions.
8734 (gdb_disassembly): Look for the substring "-thread",
8735 instead of "-threads" in the target name, to make sure to find
8736 the 'multi-thread' target. Also, make sure we do the right thing
8737 with the "core" target.
8738
8739 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8740
8741 * mips-tdep.c (mips_print_fp_register): New function, created from
8742 do_fp_register_row(). Registers are now (also) printed as hex.
8743 Only one register is printed per row.
8744 (mips_print_register, do_fp_register_row): Print floating point
8745 registers with mips_print_fp_register().
8746
8747 2003-04-06 Andrew Cagney <cagney@redhat.com>
8748
8749 * valprint.h (inspect_it): Add extern declaration.
8750 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8751 (selectors_info, classes_info): Ditto.
8752 (find_objc_msgcall): Fix indentation.
8753 (objc_printstr): Delete extern declarations.
8754
8755 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8756
8757 2003-04-06 Andrew Cagney <cagney@redhat.com>
8758
8759 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8760 Update comment.
8761 * frame.c (legacy_saved_regs_this_id): Update.
8762 (legacy_get_prev_frame): Update.
8763 * xstormy16-tdep.c: Update comment.
8764 * sparc-tdep.c (sparc_frame_chain): Update comment.
8765 * blockframe.c (legacy_frame_chain_valid): Update.
8766
8767 2003-04-06 Andrew Cagney <cagney@redhat.com>
8768
8769 * valprint.c (val_print_type_code_int): Delete #ifdef
8770 PRINT_TYPELESS_INTEGER code.
8771
8772 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8773 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8774 multi-arch definition.
8775 * gdbarch.h: Re-generate.
8776
8777 2003-04-05 Andrew Cagney <cagney@redhat.com>
8778
8779 Eliminate FRAME_FIND_SAVED_REGS.
8780 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8781 Change FSR parameter to a pointer.
8782 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8783 Assume FSR parameter is a pointer.
8784 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8785 Make fsr a pointer.
8786 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8787 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8788 saved_regs a pointer.
8789 (hppa_frame_saved_pc): Ditto.
8790 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8791 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8792 pointer.
8793 (restore_pc_queue): Make fsr a pointer.
8794 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8795 (hppa_frame_chain): Make saved_regs a pointer, call
8796 hppa_frame_init_saved_regs.
8797 * sparc-tdep.c: Include "gdb_assert.h".
8798 (sparc_frame_find_saved_regs): Replace internal_error with
8799 gdb_assert.
8800 * remote-vxsparc.c (vx_read_register): Delete reference to
8801 FRAME_FIND_SAVED_REGS.
8802 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8803 * gdbarch.h: Regenerate.
8804 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8805 (deprecated_get_frame_saved_regs): Delete declaration.
8806 (struct frame_saved_regs): Delete definition.
8807 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8808 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8809 (hppa_frame_find_saved_regs): Delete declaration.
8810 (FRAME_FIND_SAVED_REGS): Delete macro.
8811 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8812 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8813 FRAME_FIND_SAVED_REGS in comment.
8814
8815 2003-04-05 Andrew Cagney <cagney@redhat.com>
8816
8817 * frame.c (frame_func_unwind, get_frame_func): New functions.
8818 * frame.h (get_frame_func, frame_func_unwind): Declare.
8819 (struct frame_info): Add field "prev_func" for caching the
8820 previous frame's function address.
8821 * arm-tdep.c (arm_frameless_function_invocation): Combine
8822 get_pc_function_start and get_frame_pc into get_frame_func.
8823 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8824 (sh64_nofp_frame_init_saved_regs): Ditto.
8825 * s390-tdep.c (s390_function_start): Ditto.
8826 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8827 (rs6000_frameless_function_invocation): Ditto.
8828 (rs6000_frame_saved_pc): Ditto.
8829 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8830 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8831 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8832 (i386_frame_init_saved_regs): Ditto.
8833 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8834 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8835 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8836 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8837 * blockframe.c (frameless_look_for_prologue): Ditto.
8838
8839 2003-04-05 Andrew Cagney <cagney@redhat.com>
8840
8841 * frame.c (legacy_get_prev_frame): Link prev to next at the
8842 function start. Update comments.
8843
8844 2003-04-05 Andrew Cagney <cagney@redhat.com>
8845
8846 * frame.c (get_frame_id): Update comment.
8847 (legacy_get_prev_frame): Update comment.
8848 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8849 * gdbarch.h: Regenerate.
8850 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8851 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8852
8853 2003-04-05 Andrew Cagney <cagney@redhat.com>
8854
8855 * stack.c (print_frame_info): Use get_frame_pc.
8856
8857 2003-04-04 Andrew Cagney <cagney@redhat.com>
8858
8859 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8860 the frame's type from the unwinder.
8861 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8862 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8863 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8864 (get_frame_base_address): Use get_frame_type.
8865 (get_frame_locals_address, get_frame_args_address): Ditto.
8866 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8867 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8868 (struct frame_info): Add comment explaining why the frame contains
8869 a "type" field.
8870 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8871 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8872 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8873 NORMAL_FRAME.
8874 * frame-unwind.h: Include "frame.h".
8875 (struct frame_unwind): Add "type" field.
8876 * Makefile.in (frame_unwind_h): Add $(frame_h).
8877
8878 2003-04-04 Andrew Cagney <cagney@redhat.com>
8879
8880 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8881 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8882 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8883 get_frame_base.
8884 (d10v_unwind_dummy_id): Use frame_id_build.
8885 * frame.c (find_frame_sal): Use get_frame_pc.
8886 (create_new_frame): Use deprecated_update_frame_pc_hack and
8887 deprecated_update_frame_base_hack.
8888 (create_sentinel_frame): Add comment about ->pc going away.
8889 (get_prev_frame): Add comment about ->pc going away.
8890 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8891 frame_id_build, deprecated_update_frame_pc_hack and
8892 deprecated_update_frame_base_hack.
8893 (select_frame): Use get_frame_pc.
8894 (legacy_saved_regs_this_id): Use frame_id_build.
8895
8896 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8897
8898 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8899 signed integer case.
8900 (classify_argument): Handle enumerations and references.
8901
8902 2003-04-04 Andrew Cagney <cagney@redhat.com>
8903
8904 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8905 ID to NULL.
8906
8907 2003-04-01 Adam Fedor <fedor@gnu.org>
8908
8909 * gdb/objc-lang.c (selectors_info): Replace calls to
8910 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8911 SYMBOL_NATURAL_NAME.
8912 (classes_info, find_methods): Likewise.
8913
8914 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8915
8916 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8917 ``mach'' to the value determined by bfd_default_set_arch_mach().
8918
8919 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8920
8921 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8922 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8923 (mi-cmd-file.o): Update dependencies.
8924
8925 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8926
8927 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8928 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8929
8930 2003-04-01 Adam Fedor <fedor@gnu.org>
8931
8932 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8933 * language.h (struct language_defn): Add la_demangle.
8934 (language_demangle): Declare.
8935 * language.c (language_demangle): New function.
8936 (unk_lang_demangle): Likewise.
8937 (unknown_language_defn, auto_language_defn, local_language_defn):
8938 Add ukn_lang_demangle.
8939 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8940 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8941 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8942 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8943 * jv-lang.c (java_demangle): New function
8944 (java_language_defn): Use it for la_demangle element.
8945 * objc-lang.c (objc_demangle): Add options argument
8946 (objc_language_defn): Use objc_demangle for la_demangle element.
8947 * maint.c (maintenance_demangle): Replace switch with
8948 call to language_demangle.
8949 * utils.c (fprintf_symbol_filtered): Likewise.
8950
8951 2003-04-01 Andrew Cagney <cagney@redhat.com>
8952
8953 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8954 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8955 PRINT_TYPELESS_INTEGER.
8956 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8957 PUSH_RETURN_ADDRESS.
8958
8959 2003-04-01 Andrew Cagney <cagney@redhat.com>
8960
8961 * Makefile.in (d10v-tdep.o): Update dependencies.
8962 * d10v-tdep.c: Include "frame-base.h".
8963 (d10v_frame_unwind): Make constant.
8964 (d10v_frame_base_address): New function.
8965 (d10v_frame_base): New variable.
8966 (d10v_gdbarch_init): Set frame_base default.
8967 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8968 comment for base.
8969 (d10v_frame_unwind_cache): Set and use "prev_sp".
8970 (d10v_frame_this_id): Use the previous frame's inner most stack
8971 address and this frame's func address for the frame ID. Use
8972 frame_id_build. Don't analyze beyond the current instruction.
8973
8974 2003-04-01 Andrew Cagney <cagney@redhat.com>
8975
8976 * frame.h (get_frame_locals_address, get_frame_args_address):
8977 Refer to the base address, instead of the address of the first
8978 local or parameter.
8979
8980 2003-04-01 Andrew Cagney <cagney@redhat.com>
8981
8982 Add frame debug info addresses:
8983 * frame-base.c: New file.
8984 * frame-base.h: New file.
8985 * frame.h (struct frame_base): Add opaque declaration.
8986 (get_frame_base): Update comment.
8987 (get_frame_base_address): Declare.
8988 (get_frame_locals_address): Declare.
8989 (get_frame_args_address): Declare.
8990 (struct frame_info): Add "base" and "base_cache". Update
8991 comments on the unwinder.
8992 * frame.c: Include "frame-base.h".
8993 (get_frame_locals_address): New function.
8994 (get_frame_base_address): New function.
8995 (get_frame_args_address): New function.
8996 * findvar.c (read_var_value): Use get_frame_locals_address and
8997 get_frame_args_address.
8998 * stack.c (frame_info): Use get_frame_locals_address and
8999 get_frame_args_address.
9000 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9001 moved to "frame-base.c".
9002 * printcmd.c (print_frame_nameless_args): Ditto.
9003 * symtab.h (address_class): Update comments.
9004 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9005 get_frame_base_address.
9006 * dwarf2expr.c (execute_stack_op): Ditto.
9007 * Makefile.in (frame_base_h): Define.
9008 (frame.o): Update dependencies.
9009 (frame-base.o): Add dependencies.
9010 (SFILES): Add frame-base.c.
9011 (COMMON_OBS): Add frame-base.o.
9012
9013 2003-04-01 Andrew Cagney <cagney@redhat.com>
9014
9015 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9016 CALL_DUMMY_LENGTH): Ditto.
9017 * gdbarch.c: Re-generate.
9018 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9019 (CALL_DUMMY_LENGTH): Delete macro.
9020 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9021 * arm-tdep.c (arm_gdbarch_init): Ditto.
9022 * avr-tdep.c (avr_gdbarch_init): Ditto.
9023 * cris-tdep.c (cris_gdbarch_init): Ditto.
9024 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9025 * frv-tdep.c (frv_gdbarch_init): Ditto.
9026 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9027 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9028 * i386-tdep.c (i386_gdbarch_init): Ditto.
9029 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9031 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9032 * mips-tdep.c (mips_gdbarch_init): Ditto.
9033 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9034 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9035 * s390-tdep.c (s390_gdbarch_init): Ditto.
9036 * sh-tdep.c (sh_gdbarch_init): Ditto.
9037 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9038 * v850-tdep.c (v850_gdbarch_init): Ditto.
9039 * vax-tdep.c (vax_gdbarch_init): Ditto.
9040 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9041
9042 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9043
9044 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9045
9046 2003-04-01 Andrew Cagney <cagney@redhat.com>
9047
9048 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9049 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9050 * gdbarch.h, gdbarch.c: Re-generate.
9051 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9052 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9053 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9054 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9055 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9056 * infcmd.c (run_stack_dummy): Simplify assuming
9057 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9058 * infrun.c (handle_inferior_event): Ditto.
9059 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9060 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9061 * arm-tdep.c (arm_gdbarch_init): Ditto.
9062 * avr-tdep.c (avr_gdbarch_init): Ditto.
9063 * cris-tdep.c (cris_gdbarch_init): Ditto.
9064 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9065 * frv-tdep.c (frv_gdbarch_init): Ditto.
9066 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9067 * i386-tdep.c (i386_gdbarch_init): Ditto.
9068 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9069 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9070 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9071 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9072 * mips-tdep.c (mips_gdbarch_init): Ditto.
9073 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9074 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9075 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9076 * s390-tdep.c (s390_gdbarch_init): Ditto.
9077 * sh-tdep.c (sh_gdbarch_init): Ditto.
9078 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9079 * v850-tdep.c (v850_gdbarch_init): Ditto.
9080 * vax-tdep.c (vax_gdbarch_init): Ditto.
9081 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9082
9083 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9084
9085 * symfile.c (symfile_relocate_debug_section): Update call to
9086 bfd_simple_get_relocated_section_contents.
9087
9088 2003-03-31 Andrew Cagney <cagney@redhat.com>
9089
9090 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9091 * gdbarch.h, gdbarch.c: Regenerate.
9092 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9093 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9094 available.
9095 * frame.h (generic_fix_call_dummy): Delete declaration.
9096 * dummy-frame.h: Update comment.
9097 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9098 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9099 fix_call_dummy.
9100 * sh-tdep.c (sh_gdbarch_init): Ditto.
9101 * s390-tdep.c (s390_gdbarch_init): Ditto.
9102 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9103 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9105 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9106 * i386-tdep.c (i386_gdbarch_init): Ditto.
9107 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9108 * frv-tdep.c (frv_gdbarch_init): Ditto.
9109 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9110 * cris-tdep.c (cris_gdbarch_init): Ditto.
9111 * avr-tdep.c (avr_gdbarch_init): Ditto.
9112 * arm-tdep.c (arm_gdbarch_init): Ditto.
9113
9114 2003-03-31 J. Brobecker <brobecker@gnat.com>
9115
9116 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9117 (INIT_FRAME_AP): Likewise.
9118 (EXTRA_FRAME_INFO): Likewise.
9119
9120 2003-03-31 Andrew Cagney <cagney@redhat.com>
9121
9122 * gdbarch.sh: Include "symfile.h".
9123 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9124 * gdbarch.h, gdbarch.c: Re-generate.
9125 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9126 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9127 call_dummy_address, the default is at entry_point_address.
9128 * v850-tdep.c (v850_gdbarch_init): Ditto.
9129 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9130 * sh-tdep.c (sh_gdbarch_init): Ditto.
9131 * s390-tdep.c (s390_gdbarch_init): Ditto.
9132 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9133 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9134 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9135 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9136 * i386-tdep.c (i386_gdbarch_init): Ditto.
9137 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9138 * frv-tdep.c (frv_gdbarch_init): Ditto.
9139 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9140 * cris-tdep.c (cris_gdbarch_init): Ditto.
9141 * arm-tdep.c (arm_gdbarch_init): Ditto.
9142
9143 2003-03-31 Andrew Cagney <cagney@redhat.com>
9144
9145 * gdbarch.sh (CALL_DUMMY_P): Delete.
9146 * gdbarch.h, gdbarch.c: Re-generate.
9147 * inferior.h (CALL_DUMMY_P): Delete macro.
9148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9149 * vax-tdep.c (vax_gdbarch_init): Update.
9150 * v850-tdep.c (v850_gdbarch_init): Update.
9151 * sparc-tdep.c (sparc_gdbarch_init): Update.
9152 * sh-tdep.c (sh_gdbarch_init): Update.
9153 * s390-tdep.c (s390_gdbarch_init): Update.
9154 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9155 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9156 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9157 * mips-tdep.c (mips_gdbarch_init): Update.
9158 * mcore-tdep.c (mcore_gdbarch_init): Update.
9159 * m68k-tdep.c (m68k_gdbarch_init): Update.
9160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9161 * ia64-tdep.c (ia64_gdbarch_init): Update.
9162 * i386-tdep.c (i386_gdbarch_init): Update.
9163 * h8300-tdep.c (h8300_gdbarch_init): Update.
9164 * frv-tdep.c (frv_gdbarch_init): Update.
9165 * d10v-tdep.c (d10v_gdbarch_init): Update.
9166 * cris-tdep.c (cris_gdbarch_init): Update.
9167 * breakpoint.c (deprecated_frame_in_dummy): Update.
9168 * avr-tdep.c (avr_gdbarch_init): Update.
9169 * alpha-tdep.c (alpha_gdbarch_init): Update.
9170 * arm-tdep.c (arm_gdbarch_init): Update.
9171 * dummy-frame.c (dummy_frame_this_id): Update comments.
9172 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9173 * frame.c (legacy_get_prev_frame): Ditto.
9174 * valops.c (call_function_by_hand): Delete function.
9175 (hand_function_call): Rename to call_function_by_hand
9176
9177 2003-03-30 Andrew Cagney <cagney@redhat.com>
9178
9179 2002-11-10 Klee Dienes <kdienes@apple.com>
9180 * value.h (struct value): Update comment.
9181
9182 2003-03-30 Andrew Cagney <cagney@redhat.com>
9183
9184 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9185 D10V_FP_REGNUM.
9186 (d10v_gdbarch_init): Do not set fp_regnum.
9187
9188 * frame.c (get_frame_base): Force ID initialization.
9189 (get_prev_frame): Move computation of the frame ID from here ...
9190 (get_frame_id): ... to here.
9191 (legacy_get_prev_frame): Mark the frame ID as valid.
9192 * frame.h (struct frame_info): Add field "id_p".
9193
9194 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9195
9196 * i386-tdep.c (i386_store_struct_return): Removed.
9197 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9198
9199 2003-03-30 Andrew Cagney <cagney@redhat.com>
9200
9201 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9202 * gdbarch.h, gdbarch.c: Regenerate.
9203 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9204 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9205 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9206 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9207 * i386-tdep.c (i386_gdbarch_init): Ditto.
9208 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9209 * cris-tdep.c (cris_gdbarch_init): Ditto.
9210 * vax-tdep.c (vax_gdbarch_init): Ditto.
9211 * s390-tdep.c (s390_gdbarch_init): Ditto.
9212 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9213 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9214 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9215 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9216 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9217 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9218 * sparc-tdep.c (sparc_gdbarch_init): Update.
9219 * sh-tdep.c (sh_gdbarch_init): Update.
9220 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9221 * mips-tdep.c (mips_gdbarch_init): Update.
9222 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9223 * ia64-tdep.c (ia64_gdbarch_init): Update.
9224 * frv-tdep.c (frv_gdbarch_init): Update.
9225 * avr-tdep.c (avr_gdbarch_init): Update.
9226 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9227 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9228 instead of when push_dummy_call is not available.
9229
9230 2003-03-30 Andrew Cagney <cagney@redhat.com>
9231
9232 * infttrace.c: Include "gdbthread.h".
9233 (parent_attach_all): Fix function signature.
9234 (call_ptrace): Update call.
9235 * Makefile.in (infttrace.o): Update dependencies.
9236
9237 2003-03-30 Andrew Cagney <cagney@redhat.com>
9238
9239 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9240 PUSH_RETURN_ADDRESS.
9241 * gdbarch.h, gdbarch.c: Regenerate.
9242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9243 * x86-64-tdep.c (x86_64_init_abi): Update.
9244 * v850-tdep.c (v850_gdbarch_init): Update.
9245 * sparc-tdep.c (sparc_gdbarch_init): Update.
9246 * sh-tdep.c (sh_gdbarch_init): Update.
9247 * s390-tdep.c (s390_gdbarch_init): Update.
9248 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9249 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9250 * mips-tdep.c (mips_gdbarch_init): Update.
9251 * mcore-tdep.c (mcore_gdbarch_init): Update.
9252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9253 * ia64-tdep.c (ia64_gdbarch_init): Update.
9254 * i386-tdep.c (i386_gdbarch_init): Update.
9255 * h8300-tdep.c (h8300_gdbarch_init): Update.
9256 * frv-tdep.c (frv_gdbarch_init): Update.
9257 * cris-tdep.c (cris_gdbarch_init): Update.
9258 * avr-tdep.c (avr_gdbarch_init): Update.
9259 * arm-tdep.c (arm_gdbarch_init): Update.
9260 * valops.c (hand_function_call): Update.
9261
9262 2003-03-29 Andrew Cagney <cagney@redhat.com>
9263
9264 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9265 sizeof_call_dummy_words.
9266 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9267 define.
9268 * gdbarch.h: Regenerate.
9269
9270 2003-03-29 Andrew Cagney <cagney@redhat.com>
9271
9272 * infttrace.h: New file.
9273 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9274 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9275 (hpread_read_doc_function_type): Detect an initialized type1.
9276 (hpread_quick_traverse): Initialize mod_name_string.
9277 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9278 (som_solib_get_solib_by_pc): Declare.
9279 (so_lib_thread_start_addr): Declare.
9280 (no_shared_libraries): Declare.
9281 * somread.c (init_import_symbols): Make static. Add forward
9282 declaration.
9283 * config/pa/nm-hppah.h: Include "infttrace.h" for
9284 parent_attach_all.
9285 (hppa_insert_hw_watchpoint): Declare.
9286 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9287 * hppah-nat.c: Include "gdb_string.h".
9288 (parent_attach_all): Delete extern declaration, moved to
9289 "infttrace.h".
9290 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9291 int.
9292 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9293 * Makefile.in (infttrace_h): Define.
9294 (hpread.o): Update dependencies.
9295 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9296 * hppa-hpux-tdep.c: Include "gdb_string.h".
9297 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9298 * infrun.c (handle_inferior_event): Always initialize
9299 stepped_after_stopped_by_watchpoint. Add default and remove
9300 fallthrough in switch statement.
9301 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9302 parameter to int.
9303 (hppa_remove_hw_watchpoint): Ditto.
9304
9305 2003-03-29 Andrew Cagney <cagney@redhat.com>
9306
9307 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9308 offset.
9309
9310 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9311
9312 * arm-tdep.c (arm_push_arguments): Delete.
9313 (struct stack_item): New type.
9314 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9315 (arm_store_struct_return): Delte.
9316 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9317 arm_push_arguments or arm_store_struct_return.
9318
9319 2003-03-28 Andrew Cagney <cagney@redhat.com>
9320
9321 * Makefile.in (d10v-tdep.o): Update dependencies.
9322 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9323 * d10v-tdep.c: Include "remote.h".
9324 (target_resume_hook): Delete extern declaration.
9325 (target_wait_loop_hook): Ditto.
9326 (tdisassemble_command): Eliminate assignment in "if" conditional.
9327 (d10v_ts2_register_sim_regno): Eliminate call to
9328 legacy_register_sim_regno.
9329 (d10v_ts3_register_sim_regno): Ditto.
9330
9331 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9332
9333 * thread.c: Reindented.
9334 * lin-lwp.c: Ditto.
9335 * linux-proc.c: Ditto.
9336
9337 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9338
9339 * MAINTAINERS (write after approval): Add myself.
9340
9341 2003-03-27 Theodore A. Roth <troth@openavr.org>
9342
9343 * objc-exp.y: Add missing semi-colons.
9344
9345 2003-03-27 Andrew Cagney <cagney@redhat.com>
9346
9347 * regcache.c (write_sp): Delete function and references.
9348 * inferior.h (write_sp): Delete declaration.
9349 * valops.c (hand_function_call): Replace write_sp with
9350 TARGET_WRITE_SP.
9351 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9352 (sparc_pop_frame): Ditto.
9353
9354 2003-03-27 Andrew Cagney <cagney@redhat.com>
9355
9356 * NEWS: Mention removal of support for hppa*-*-bsd* and
9357 hppa*-*-osf* natives, and hppa*-*-pro* target.
9358 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9359 * config/pa/xm-pa.h: Obsolete file.
9360 * config/pa/xm-hppab.h: Obsolete file.
9361 * config/pa/nm-hppab.h: Obsolete file.
9362 * config/pa/tm-hppab.h: Obsolete file.
9363 * config/pa/tm-hppao.h: Obsolete file.
9364 * config/pa/nm-hppao.h: Obsolete file.
9365 * config/pa/tm-pro.h: Obsolete file.
9366 * config/pa/hppaosf.mt: Obsolete file.
9367 * config/pa/hppaosf.mh: Obsolete file.
9368 * config/pa/hppapro.mt: Obsolete file.
9369 * config/pa/hppabsd.mt: Obsolete file.
9370 * config/pa/hppabsd.mh: Obsolete file.
9371 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9372 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9373 hppa*-*-osf*.
9374
9375 2003-03-27 Andrew Cagney <cagney@redhat.com>
9376
9377 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9378 push_arguments. Don't set push_return_address or write_sp.
9379 (d10v_push_dummy_call): Replace d10v_push_arguments.
9380 (d10v_push_return_address, d10v_write_sp): Delete function,
9381 handled by push_dummy_call.
9382
9383 2003-03-26 Andrew Cagney <cagney@redhat.com>
9384
9385 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9386 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9387 regcache and dummy_addr parameters.
9388 * gdbarch.h, gdbarch.c: Re-generate.
9389 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9390 available; assume it will handle stack alignment and return
9391 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9392 legacy_push_arguments.
9393 (legacy_push_arguments): Rename default_push_arguments.
9394 * value.h (legacy_push_arguments): Rename default_push_arguments.
9395 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9396 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9397 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9398 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9399 * config/i386/tm-symmetry.h: Update.
9400 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9401 * x86-64-tdep.c (x86_64_init_abi): Update.
9402 * v850-tdep.c (v850_gdbarch_init): Update.
9403 * sparc-tdep.c (sparc_gdbarch_init): Update.
9404 * sh-tdep.c (sh_gdbarch_init): Update.
9405 * s390-tdep.c (s390_gdbarch_init): Update.
9406 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9407 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9408 * mips-tdep.c (mips_gdbarch_init): Update.
9409 * mcore-tdep.c (mcore_gdbarch_init): Update.
9410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9411 * ia64-tdep.c (ia64_gdbarch_init): Update.
9412 * i386-tdep.c (i386_gdbarch_init): Update.
9413 * hppa-tdep.c (hppa_gdbarch_init): Update.
9414 * h8300-tdep.c (h8300_gdbarch_init): Update.
9415 * frv-tdep.c (frv_gdbarch_init): Update.
9416 * d10v-tdep.c (d10v_gdbarch_init): Update.
9417 * cris-tdep.c (cris_gdbarch_init): Update.
9418 * avr-tdep.c (avr_gdbarch_init): Update.
9419 * arm-tdep.c (arm_gdbarch_init): Update.
9420 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9421 * alpha-tdep.c (alpha_gdbarch_init): Update.
9422
9423 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * signals/signals.c (do_target_signal_to_host): Correct realtime
9426 signal range test.
9427
9428 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9429
9430 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9431 (struct sal_chain, map_catch_names): Remove.
9432 (catch_exception_command_1): Don't call
9433 handle_gnu_4_16_catch_command.
9434
9435 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9436
9437 From Mark Dettinger <dettinge@de.ibm.com>:
9438 * dwarf2cfi.c (read_2u): Increment pointer by two.
9439
9440 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9441
9442 * signals/signals.c: Fix typos in last change.
9443
9444 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9445
9446 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9447 not already defined. Use __SIGRTMIN if available.
9448 (target_signal_from_host): Remove SIGRTMIN block.
9449 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9450 the signal is within the realtime range.
9451
9452 2003-03-25 Adam Fedor <fedor@gnu.org>
9453
9454 * Makefile.in (infrun.o): Add $(language_h)
9455 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9456 for language specific trampolines.
9457 * language.h (struct language_defn): Add skip_trampoline.
9458 (skip_language_trampoline): Declare.
9459 * language.c (unk_lang_trampoline, skip_language_trampoline):
9460 New functions.
9461 (unknown_language_defn, auto_language_defn, local_language_defn):
9462 Add ukn_lang_trampoline.
9463 * ada-lang.c (ada_language_defn): Add NULL for language
9464 specific skip_trampoline.
9465 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9466 scm-lang.c: Likewise.
9467 * objc-lang.c (objc_skip_trampoline): New function.
9468 (objc_language_defn): Add objc_skip_trampoline.
9469
9470 2003-03-25 Andrew Cagney <cagney@redhat.com>
9471
9472 * frame.c (get_prev_frame): Delay validating a frame's ID -
9473 non-NULL, didn't go backwards - until an attempt to unwind it to
9474 the previous frame.
9475
9476 2003-03-25 Andrew Cagney <cagney@redhat.com>
9477
9478 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9479 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9480 * gdbarch.h, gdbarch.c: Re-generate.
9481 * config/sparc/tm-sparc.h
9482 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9483 * sparc-tdep.c (sparc_gdbarch_init): Set
9484 deprecated_extra_stack_alignment_needed.
9485 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9486 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9487 extra_stack_alignment_needed.
9488 * v850-tdep.c (v850_gdbarch_init): Ditto.
9489 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9490 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9491 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9492 * cris-tdep.c (cris_gdbarch_init): Ditto.
9493 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9494 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9495
9496 2003-03-25 Andrew Cagney <cagney@redhat.com>
9497
9498 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9499 STORE_STRUCT_RETURN.
9500 * gdbarch.h, gdbarch.c: Regenerate.
9501 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9502 (d10v_push_arguments): Set the struct return register.
9503 (d10v_gdbarch_init): Update.
9504 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9505 * x86-64-tdep.c (x86_64_init_abi): Update.
9506 * vax-tdep.c (vax_gdbarch_init): Update.
9507 * v850-tdep.c (v850_gdbarch_init): Update.
9508 * sparc-tdep.c (sparc_gdbarch_init): Update.
9509 * sh-tdep.c (sh_gdbarch_init): Update.
9510 * s390-tdep.c (s390_gdbarch_init): Update.
9511 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9512 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9513 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9514 * mips-tdep.c (mips_gdbarch_init): Update.
9515 * mcore-tdep.c (mcore_gdbarch_init): Update.
9516 * m68k-tdep.c (m68k_gdbarch_init): Update.
9517 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9518 * ia64-tdep.c (ia64_gdbarch_init): Update.
9519 * i386-tdep.c (i386_gdbarch_init): Update.
9520 * hppa-tdep.c (hppa_gdbarch_init): Update.
9521 * h8300-tdep.c (h8300_gdbarch_init): Update.
9522 * frv-tdep.c (frv_gdbarch_init): Update.
9523 * cris-tdep.c (cris_gdbarch_init): Update.
9524 * avr-tdep.c (avr_gdbarch_init): Update.
9525 * arm-tdep.c (arm_gdbarch_init): Update.
9526 * alpha-tdep.c (alpha_gdbarch_init): Update.
9527
9528 2003-03-25 Andrew Cagney <cagney@redhat.com>
9529
9530 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9531 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9532 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9533 * gdbarch.h, gdbarch.c: Regenerate.
9534 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9535 call_dummy_stack_adjust_p.
9536 * vax-tdep.c (vax_gdbarch_init): Ditto.
9537 * v850-tdep.c (v850_gdbarch_init): Ditto.
9538 * sh-tdep.c (sh_gdbarch_init): Ditto.
9539 * s390-tdep.c (s390_gdbarch_init): Ditto.
9540 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9541 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9542 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9543 * mips-tdep.c (mips_gdbarch_init): Ditto.
9544 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9545 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9547 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9548 * i386-tdep.c (i386_gdbarch_init): Ditto.
9549 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9550 * frv-tdep.c (frv_gdbarch_init): Ditto.
9551 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9552 * cris-tdep.c (cris_gdbarch_init): Ditto.
9553 * avr-tdep.c (avr_gdbarch_init): Ditto.
9554 * arm-tdep.c (arm_gdbarch_init): Ditto.
9555 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9556 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9557 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9558 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9559 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9560 call_dummy_stack_adjust_p.
9561 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9562 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9563 * sparc-tdep.c (sparc32_push_arguments): Update.
9564 * valops.c (hand_function_call): Update.
9565
9566 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9567
9568 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9569 set_gdbarch_char_signed.
9570
9571 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9572
9573 PR cli/548
9574 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9575
9576 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9577
9578 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9579 (_initialize_arm_tdep): Don't set tm_print_insn.
9580
9581 2003-03-24 Adam Fedor <fedor@gnu.org>
9582
9583 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9584 * objc-lang.h: Add multiple inclusion protection.
9585 (start_msglist, add_msglist, end_msglist): Additional declarations.
9586
9587 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9588
9589 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9590 value was renamed to ARM_FLOAT_SOFT_FPA.
9591
9592 2003-03-23 Andrew Cagney <cagney@redhat.com>
9593
9594 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9595 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9596 * gdbarch.h, gdbarch.c: Regenerate.
9597 * valops.c (hand_function_call): Update.
9598 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9599 * frame.c (legacy_saved_regs_this_id): Update.
9600 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9601 * dummy-frame.h: Update.
9602 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9603 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9604 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9605 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9606 * config/m68k/tm-sun3.h: Update.
9607 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9608 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9609 * x86-64-tdep.c (x86_64_init_abi): Update.
9610 * vax-tdep.c (vax_gdbarch_init): Update.
9611 * v850-tdep.c (v850_gdbarch_init): Update.
9612 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9613 * sh-tdep.c (sh_gdbarch_init): Update.
9614 * s390-tdep.c (s390_gdbarch_init): Update.
9615 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9616 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9617 (frame_get_saved_regs): Update.
9618 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9619 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9620 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9621 * mips-tdep.c (mips_gdbarch_init): Update.
9622 * mcore-tdep.c (mcore_gdbarch_init): Update.
9623 * m68k-tdep.c (m68k_gdbarch_init): Update.
9624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9625 * ia64-tdep.c (ia64_gdbarch_init): Update.
9626 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9627 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9628 (i386_interix_back_one_frame): Update.
9629 * hppa-tdep.c (hppa_gdbarch_init): Update.
9630 (hppa_init_extra_frame_info): Update.
9631 * h8300-tdep.c (h8300_gdbarch_init): Update.
9632 * frv-tdep.c (frv_gdbarch_init): Update.
9633 * cris-tdep.c (cris_gdbarch_init): Update.
9634 * avr-tdep.c (avr_gdbarch_init): Update.
9635 * arm-tdep.c (arm_gdbarch_init): Update.
9636 * alpha-tdep.c (alpha_gdbarch_init): Update.
9637
9638 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9639
9640 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9641 (arm_get_fp_model): Declare.
9642 * arm-tdep.c (fp_model_strings): New string array.
9643 (arm_fp_model, current_fp_model): New variables.
9644 (arm_get_fp_model): New function.
9645 (arm_set_fp): New function.
9646 (set_fp_model_sfunc): New function.
9647 (show_fp_model): New function.
9648 (_initialize_arm_tdep): Add new command to set/show the FPU.
9649 (arm_extract_return_value): Use arm_get_fp_model.
9650 (arm_store_return_value): Likewise.
9651 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9652 to initialize the floating-point data types.
9653 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9654 model is FPA.
9655
9656 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9657
9658 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9659 the current setting of each value.
9660 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9661 new_set and new_show. Use add_setshow_cmd_full and
9662 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9663 commands and add new version as subcommands of "set/show arm".
9664
9665 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9666
9667 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9668 (set_arm_command, show_arm_command): New functions.
9669 (_initialize_arm_tdep): Add them.
9670 (num_disassembly_options): Renamed from num_flavor_options.
9671 (valid_disassembly_styles): Renamed from valid_flavors.
9672 (disassembly_style): Renamed from disassembly_flavor.
9673 (set_disassembly_style_sfunc): Renamed from
9674 set_disassembly_flavor_sfunc.
9675 (set_disassembly_style): Renamed from set_disassembly_flavor.
9676 (arm_othernames): Updated.
9677 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9678 command. Add "set/show arm disassembly" commands. Deprecate
9679 "othernames" command.
9680
9681 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9682
9683 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9684 (arm-tdep.o): Depend on elf_arm_h.
9685
9686 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9687
9688 * Makefile.in (coff_internal_h): Define.
9689 (arm-tdep.o): Update dependencies.
9690
9691 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9692
9693 * arm-tdep.c (prologue_cache): Delete.
9694 (check_prologue_cache, save_prologue_cache): Delete.
9695 (arm_scan_prologue): Don't check or update the prologue_cache.
9696 (arm_gdb_arch_init): Don't initialize it.
9697 (_initialize_arm_tdep): Likewise.
9698
9699 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9700
9701 * MAINTAINERS (tui): Maintainer of tui code.
9702
9703 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9704
9705 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9706 (i386-cygwin-tdep.o): Add dependencies.
9707 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9708 * i386-cygwin-tdep.c: New file.
9709 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9710 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9711
9712 2003-03-20 Andrew Cagney <cagney@redhat.com>
9713
9714 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9715 (handle_inferior_event): Remove code calling
9716 DYNAMIC_TRAMPOLINE_NEXTPC.
9717
9718 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9719 already has a full path.
9720
9721 * main.c (gdb_main): Return 1.
9722 (captured_main): Call error to report an invalid interpreter.
9723
9724 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9725 * alpha-osf1-tdep.c: Include "gdb_string.h".
9726
9727 2003-03-19 J. Brobecker <brobecker@gnat.com>
9728
9729 Continuing work to convert the hppa targets to multiarch partial.
9730
9731 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9732 method, now that hppa_push_dummy_frame has a conformant prototype.
9733 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9734 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9735 for the switch to multiarch partial.
9736
9737 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9738
9739 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9740 when iss is issNull.
9741
9742 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9743
9744 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9745 NUM_REGS bounds check.
9746
9747 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9748
9749 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9750 * mips-tdep.c (gdb_assert.h): Include.
9751 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9752 (mips_register_name): Handle integer registers explicitly. Add
9753 bounds checking.
9754 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9755 (mips_lsi33k_reg_names): Don't list integer registers; they're
9756 handled by mips_register_name() now.
9757 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9758 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9759 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9760 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9761 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9762
9763 2003-03-18 Andrew Cagney <cagney@redhat.com>
9764
9765 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9766 a void pointer.
9767 * gdbtypes.h (print_scalar_formatted): Update declaration.
9768 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9769
9770 2003-03-18 J. Brobecker <brobecker@gnat.com>
9771
9772 * infrun.c (observer.h): Add #include.
9773 (normal_stop): Add call to observer_notify_normal_stop.
9774 * Makefile.in (infrun.o): Add dependency on observer.h.
9775
9776 2003-03-18 J. Brobecker <brobecker@gnat.com>
9777
9778 Continuing work to convert the hppa targets to multiarch partial.
9779 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9780 parameter. Reformat comment.
9781 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9782 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9783 to match new profile.
9784
9785 2003-03-18 J. Brobecker <brobecker@gnat.com>
9786
9787 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9788 appear to be working in any case.
9789
9790 2003-03-18 J. Brobecker <brobecker@gnat.com>
9791
9792 * observer.c (observer_test_first_observer): New static variable.
9793 (observer_test_second_observer): Likewise.
9794 (observer_test_third_observer): Likewise.
9795 (observer_test_first_notification_function): New static function.
9796 (observer_test_second_notification_function): Likewise.
9797 (observer_test_third_notification_function): Likewise.
9798
9799 2003-03-17 J. Brobecker <brobecker@gnat.com>
9800
9801 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9802 * somsolib.c (gdb_assert.h): Likewise.
9803 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9804 (somsolib.o): Likewise.
9805
9806 2003-03-17 Andrew Cagney <cagney@redhat.com>
9807
9808 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9809 BFD. Simplify setting of di.endian.
9810
9811 2003-03-17 Andrew Cagney <cagney@redhat.com>
9812
9813 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9814 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9815
9816 From Elena Zannoni <ezannoni@redhat.com>
9817 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9818 vector and floating-point parameters.
9819 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9820 convention.
9821 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9822
9823 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9824
9825 * MAINTAINERS: Remove my name from several maintainership roles.
9826
9827 2003-03-17 Andrew Cagney <cagney@redhat.com>
9828
9829 Fix frame off-by-one bug.
9830 * frame-unwind.h (frame_this_id_ftype): Replace
9831 frame_unwind_id_ftype.
9832 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9833 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9834 with "prev_register".
9835 * frame-unwind.c (frame_unwind_find_by_pc): Return
9836 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9837 comment.
9838 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9839 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9840 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9841 (dummy_frame_unwind): Update.
9842 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9843 sentinel_frame_register_unwind.
9844 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9845 (sentinel_frame_unwinder): Update.
9846 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9847 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9848 * frame.c (create_sentinel_frame): Update. Initialize
9849 "prologue_cache" instead of "unwind_cache".
9850 (frame_register_unwind): Call this frame's prev_register with the
9851 next frame and this frame's prologue cache.
9852 (get_prev_frame): Simplify. Always call prev frame's this_id with
9853 this frame and prev frame's prologue cache. Document that this
9854 call is shifted one to the left when compared to the
9855 frame_register_unwind call.
9856 (legacy_saved_regs_prev_register): Replace
9857 frame_saved_regs_register_unwind.
9858 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9859 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9860 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9861 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9862 (d10v_frame_unwind): Update.
9863 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9864 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9865 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9866 "saved_regs" with "this_saved_regs".
9867
9868 2003-03-16 Andrew Cagney <cagney@redhat.com>
9869
9870 * frame.c (frame_pop): Don't call target_store_registers. Fix
9871 problem reported by Mark Kettenis.
9872
9873 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9874
9875 * i386-tdep.c (i386_register_type): Renamed from
9876 i386_register_virtual_type. Adjust function signature.
9877 (i386_gdbarch_init): Set register_type instead of
9878 deprecated_max_register_raw_size,
9879 deprecated_max_register_virtual_size and register_virtual_type.
9880
9881 2003-03-14 Andrew Cagney <cagney@redhat.com>
9882
9883 * frame.c (get_prev_frame): When a legacy frame, always call
9884 legacy_get_prev_frame. Simplify unwind code using assumption that
9885 the unwinder is new.
9886 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9887 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9888 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9889
9890 2003-03-14 Andrew Cagney <cagney@redhat.com>
9891
9892 * frame.c (get_saved_register): Delete function.
9893 * frame.h (get_saved_register): Delete declaration.
9894 * xstormy16-tdep.c: Update comment.
9895 * regcache.h: Update comments.
9896 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9897 get_saved_register and extract_address, use
9898 frame_read_unsigned_register.
9899 (sparc_frame_saved_pc): Ditto.
9900 (sparc_get_saved_register): Instead of get_saved_register, use
9901 frame_register.
9902 (sparc_pop_frame): Ditto.
9903 * findvar.c: Update comments.
9904 (value_of_register): Call frame_register instead of
9905 get_saved_register.
9906 (value_from_register): Ditto.
9907 * config/sparc/tm-sparc.h: Update comment.
9908 * breakpoint.c: Update comment.
9909
9910 2003-03-14 Andrew Cagney <cagney@redhat.com>
9911
9912 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9913 GET_SAVED_REGISTER.
9914 * gdbarch.h, gdbarch.c: Re-generate.
9915 * frame.h: Update comments.
9916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9917 * x86-64-tdep.c (x86_64_init_abi): Update.
9918 * sparc-tdep.c (sparc_gdbarch_init): Update.
9919 * sh-tdep.c (sh_gdbarch_init): Update.
9920 * mips-tdep.c (mips_gdbarch_init): Update.
9921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9922 * cris-tdep.c (cris_gdbarch_init): Update.
9923 * ia64-tdep.c (ia64_gdbarch_init): Update.
9924 * frame.c (frame_register): Update.
9925 (get_saved_register): Update.
9926 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9927
9928 2003-03-13 Andrew Cagney <cagney@redhat.com>
9929
9930 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9931 * gdbarch.h, gdbarch.c: Regenerate.
9932 * valops.c (hand_function_call): Update comment.
9933 * stack.c (return_command): Update comment.
9934 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9935 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9936 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9937 * x86-64-tdep.c (x86_64_init_abi): Update.
9938 * vax-tdep.c (vax_gdbarch_init): Update.
9939 * v850-tdep.c (v850_gdbarch_init): Update.
9940 * sparc-tdep.c (sparc_gdbarch_init): Update.
9941 * sh-tdep.c (sh_gdbarch_init): Update.
9942 * s390-tdep.c (s390_gdbarch_init): Update.
9943 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9944 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9945 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9946 * mips-tdep.c (mips_gdbarch_init): Update.
9947 * mcore-tdep.c (mcore_gdbarch_init): Update.
9948 * m68k-tdep.c (m68k_gdbarch_init): Update.
9949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9950 * ia64-tdep.c (ia64_gdbarch_init): Update.
9951 * i386-tdep.c (i386_gdbarch_init): Update.
9952 * hppa-tdep.c (hppa_gdbarch_init): Update.
9953 * h8300-tdep.c (h8300_gdbarch_init): Update.
9954 * frv-tdep.c (frv_gdbarch_init): Update.
9955 * cris-tdep.c (cris_gdbarch_init): Update.
9956 * avr-tdep.c (avr_gdbarch_init): Update.
9957 * arm-tdep.c (arm_gdbarch_init): Update.
9958 * alpha-tdep.c (alpha_gdbarch_init): Update.
9959
9960 2003-03-13 Andrew Cagney <cagney@redhat.com>
9961
9962 * frame.c (legacy_frame_p): New function.
9963 (get_prev_frame): Use legacy_frame_p.
9964 * frame.h (legacy_frame_p): Declare.
9965
9966 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9967
9968 * MAINTAINERS (write after approval): Alphabetically
9969 listing corrected.
9970
9971 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9972
9973 * MAINTAINERS (write after approval): Add myself.
9974
9975 2003-03-12 Andrew Cagney <cagney@redhat.com>
9976
9977 * frame.c (get_prev_frame): Rename the frame parameter to
9978 "this_frame".
9979 (get_next_frame, legacy_get_prev_frame): Ditto.
9980
9981 2003-03-12 Andrew Cagney <cagney@redhat.com>
9982
9983 * frame.c (get_current_frame): Check target_has_registers before
9984 checking target_has_stack.
9985 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9986 instead of deprecated_selected_frame.
9987 * findvar.c (value_of_register): Pass "frame", not
9988 deprecated_selected_frame, to value_of_builtin_reg.
9989
9990 2003-03-12 Andrew Cagney <cagney@redhat.com>
9991
9992 * regcache.c (regcache_cooked_write_signed): New function.
9993 (regcache_cooked_write_unsigned): New function.
9994 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9995 (regcache_cooked_read_signed): Fix regnum in range assertion.
9996 * regcache.h (regcache_cooked_write_signed): Declare.
9997 (regcache_cooked_write_unsigned): Declare.
9998
9999 2003-03-12 Andrew Cagney <cagney@redhat.com>
10000
10001 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10002 * gdbarch.h, gdbarch.c: Re-generate.
10003 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10004 * x86-64-tdep.h: Update.
10005 * x86-64-tdep.c (x86_64_init_abi): Update.
10006 * v850-tdep.c (v850_gdbarch_init): Update.
10007 * sparc-tdep.c (sparc_gdbarch_init): Update.
10008 * sh-tdep.c (sh_gdbarch_init): Update.
10009 * s390-tdep.c (s390_gdbarch_init): Update.
10010 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10011 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10012 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10013 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10014 * mips-tdep.c (mips_gdbarch_init): Update.
10015 * mcore-tdep.c (mcore_gdbarch_init): Update.
10016 * m68k-tdep.c (m68k_gdbarch_init): Update.
10017 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10018 * ia64-tdep.c (ia64_gdbarch_init): Update.
10019 * i386-tdep.c (i386_gdbarch_init): Update.
10020 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10021 * hppa-tdep.c (hppa_gdbarch_init): Update.
10022 * h8300-tdep.c (h8300_gdbarch_init): Update.
10023 * frv-tdep.c (frv_gdbarch_init): Update.
10024 * cris-tdep.c (cris_gdbarch_init): Update.
10025 * avr-tdep.c (avr_gdbarch_init): Update.
10026 * arm-tdep.c (arm_gdbarch_init): Update.
10027 * alpha-tdep.c (alpha_gdbarch_init): Update.
10028 * sh-tdep.c (sh_init_extra_frame_info): Update.
10029 (sh64_init_extra_frame_info): Update.
10030 * ns32knbsd-nat.c (frame_num_args): Update.
10031 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10032 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10033 (xstormy16_frame_chain_valid): Update.
10034 * vax-tdep.c (vax_saved_pc_after_call): Update.
10035 * v850-tdep.c (v850_frame_chain): Update.
10036 (v850_pop_frame): Update.
10037 (v850_init_extra_frame_info): Update.
10038 * sparc-tdep.c (setup_arbitrary_frame): Update.
10039 * ns32k-tdep.c (umax_frame_num_args): Update.
10040 * s390-tdep.c (s390_pop_frame_regular): Update.
10041 * mn10300-tdep.c (mn10300_frame_chain): Update.
10042 (mn10300_pop_frame_regular): Update.
10043 (mn10300_init_extra_frame_info): Update.
10044 * mips-tdep.c (mips_init_frame_pc_first): Update.
10045 (mips_frame_chain): Update.
10046 (mips_pop_frame): Update.
10047 * mcore-tdep.c (mcore_frame_chain): Update.
10048 (mcore_pop_frame): Update.
10049 (mcore_init_extra_frame_info): Update.
10050 * arch-utils.c (init_frame_pc_default): Update.
10051 * m68k-tdep.c (isi_frame_num_args): Update.
10052 (delta68_frame_num_args): Update.
10053 (news_frame_num_args): Update.
10054 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10055 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10056 (alpha_frame_chain): Update.
10057 (alpha_pop_frame): Update.
10058 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10059 (hppa_init_extra_frame_info): Update.
10060 (hppa_frame_chain): Update.
10061 (hppa_frame_chain_valid): Update.
10062 * cris-tdep.c (cris_init_extra_frame_info): Update.
10063 * avr-tdep.c (avr_init_extra_frame_info): Update.
10064 * arm-tdep.c (arm_frame_chain_valid): Update.
10065 (arm_init_extra_frame_info): Update.
10066 (arm_pop_frame): Update.
10067 * frame.c (frame_pc_unwind): Update.
10068 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10069 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10070 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10071 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10072 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10073 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10074
10075 2003-03-12 Andrew Cagney <cagney@redhat.com>
10076
10077 Eliminate the need for POP_FRAME.
10078 * frame.c (do_frame_unwind_register): New function.
10079 (frame_pop): When no POP_FRAME, pop the frame using register
10080 unwind and a scratch regcache.
10081 (frame_saved_regs_pop): Delete function.
10082 (trad_frame_unwinder): Update.
10083 * d10v-tdep.c (d10v_frame_pop): Delete function.
10084 (d10v_frame_unwind): Update.
10085 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10086 (sentinel_frame_unwinder): Update.
10087 * dummy-frame.c (dummy_frame_pop): Delete function.
10088 (dummy_frame_unwind): Update.
10089 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10090 (struct frame_unwind): Update.
10091
10092 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10093
10094 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10095 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10096 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10097 Do range checks on register number obtained from debugging info.
10098 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10099 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10100 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10101 mapping function.
10102 (do_fp_register_row): Fix typo which caused double type to be
10103 used when attempting to unpack a float.
10104
10105 2003-03-11 J. Brobecker <brobecker@gnat.com>
10106
10107 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10108
10109 2003-03-11 Andrew Cagney <cagney@redhat.com>
10110
10111 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10112 frame. Problem found by Corinna Vinschen.
10113
10114 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10115
10116 * doublest.c (floatformat_from_length): Accept also
10117 the real size of 'long double' type.
10118
10119 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10120
10121 From Klee Dienes <kdienes@apple.com>:
10122 * breakpoint.c (bpstat_copy): Copy the command lines as well
10123 as the old value, to match what is freed in bpstat_clear.
10124
10125 2003-03-10 David Carlton <carlton@math.stanford.edu>
10126
10127 * minsyms.c (add_minsym_to_hash_table): Replace
10128 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10129 (compare_minimal_symbols, compact_minimal_symbols)
10130 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10131 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10132 of DEPRECATED_SYMBOL_MATCHES_NAME.
10133 (lookup_minimal_symbol_solib_trampoline): Ditto.
10134
10135 2003-03-10 Andrew Cagney <cagney@redhat.com>
10136
10137 * regcache.h (regcache_cooked_read_ftype): Define.
10138 (regcache_save, regcache_restore): Add a cooked_read parameter.
10139 * regcache.c (regcache_save, regcache_restore): Update.
10140 (do_cooked_read): New function.
10141 (regcache_cpy): Pass do_cooked_read to regcache_save and
10142 regcache_restore.
10143
10144 2003-03-10 Andrew Cagney <cagney@redhat.com>
10145
10146 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10147 * gdbarch.h, gdbarch.c: Re-generate.
10148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10149 * x86-64-tdep.h: Update.
10150 * x86-64-tdep.c (x86_64_init_abi): Update.
10151 * v850-tdep.c (v850_gdbarch_init): Update.
10152 * sparc-tdep.c (sparc_gdbarch_init): Update.
10153 * sh-tdep.c (sh_gdbarch_init): Update.
10154 * s390-tdep.c (s390_gdbarch_init): Update.
10155 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10156 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10157 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10158 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10159 * mips-tdep.c (mips_gdbarch_init): Update.
10160 * mcore-tdep.c (mcore_gdbarch_init): Update.
10161 * m68k-tdep.c (m68k_gdbarch_init): Update.
10162 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10163 * ia64-tdep.c (ia64_gdbarch_init): Update.
10164 * i386-tdep.c (i386_gdbarch_init): Update.
10165 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10166 * hppa-tdep.c (hppa_gdbarch_init): Update.
10167 * h8300-tdep.c (h8300_gdbarch_init): Update.
10168 * frv-tdep.c (frv_gdbarch_init): Update.
10169 * cris-tdep.c (cris_gdbarch_init): Update.
10170 * avr-tdep.c (avr_gdbarch_init): Update.
10171 * arm-tdep.c (arm_gdbarch_init): Update.
10172 * alpha-tdep.c (alpha_gdbarch_init): Update.
10173 * sh-tdep.c (sh_init_extra_frame_info): Update.
10174 (sh64_init_extra_frame_info): Update.
10175 * ns32knbsd-nat.c (frame_num_args): Update.
10176 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10177 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10178 (xstormy16_frame_chain_valid): Update.
10179 * vax-tdep.c (vax_saved_pc_after_call): Update.
10180 * v850-tdep.c (v850_frame_chain): Update.
10181 (v850_pop_frame): Update.
10182 (v850_init_extra_frame_info): Update.
10183 * sparc-tdep.c (setup_arbitrary_frame): Update.
10184 * ns32k-tdep.c (umax_frame_num_args): Update.
10185 * s390-tdep.c (s390_pop_frame_regular): Update.
10186 * mn10300-tdep.c (mn10300_frame_chain): Update.
10187 (mn10300_pop_frame_regular): Update.
10188 (mn10300_init_extra_frame_info): Update.
10189 * mips-tdep.c (mips_init_frame_pc_first): Update.
10190 (mips_frame_chain): Update.
10191 (mips_pop_frame): Update.
10192 * mcore-tdep.c (mcore_frame_chain): Update.
10193 (mcore_pop_frame): Update.
10194 (mcore_init_extra_frame_info): Update.
10195 * arch-utils.c (init_frame_pc_default): Update.
10196 * m68k-tdep.c (isi_frame_num_args): Update.
10197 (delta68_frame_num_args): Update.
10198 (news_frame_num_args): Update.
10199 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10200 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10201 (alpha_frame_chain): Update.
10202 (alpha_pop_frame): Update.
10203 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10204 (hppa_init_extra_frame_info): Update.
10205 (hppa_frame_chain): Update.
10206 (hppa_frame_chain_valid): Update.
10207 * cris-tdep.c (cris_init_extra_frame_info): Update.
10208 * avr-tdep.c (avr_init_extra_frame_info): Update.
10209 * arm-tdep.c (arm_frame_chain_valid): Update.
10210 (arm_init_extra_frame_info): Update.
10211 (arm_pop_frame): Update.
10212 * frame.c (frame_pc_unwind): Update.
10213 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10214 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10215 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10216 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10217 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10218 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10219
10220 2003-03-10 Andrew Cagney <cagney@redhat.com>
10221
10222 * gdbarch.sh (gdbarch_unwind_pc): New method.
10223 * gdbarch.h, gdbarch.c: Regenerate.
10224 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10225 but use read_pc and FRAME_SAVED_PC as fall backs.
10226 (frame_saved_regs_pc_unwind): Delete function.
10227 (trad_frame_unwinder): Update.
10228 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10229 (struct frame_unwind): Update.
10230 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10231 (dummy_frame_unwind): Update.
10232 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10233 (sentinel_frame_unwinder): Update.
10234 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10235 (d10v_frame_unwind): Update.
10236 (d10v_unwind_pc): New function.
10237 (d10v_gdbarch_init): Set unwind_pc.
10238
10239 2003-03-10 Andrew Cagney <cagney@redhat.com>
10240
10241 * gdbarch.h: Re-generate.
10242
10243 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10244 PC.
10245 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10246 the PC register.
10247
10248 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10249
10250 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10251
10252 2003-03-08 Andrew Cagney <cagney@redhat.com>
10253
10254 * cli-out.c: Update copyright.
10255 (cli_out_data): Define typedef. Use instead of ui_out_data.
10256
10257 2003-03-08 Andrew Cagney <cagney@redhat.com>
10258
10259 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10260 the result.
10261
10262 2003-03-07 Andrew Cagney <cagney@redhat.com>
10263
10264 * gdbarch.sh: Don't generate two macro definitions when an
10265 undefined macro taking no arguments.
10266 * gdbarch.h: Regenerate.
10267
10268 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10269
10270 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10271 (x86_64_unwind_dummy_id): New functions.
10272 (x86_64_init_abi): Register these two new functions.
10273
10274 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10275
10276 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10277 (x86_64_skip_prologue): Move prologue detection to
10278 separate function.
10279 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10280
10281 2003-03-05 Andrew Cagney <cagney@redhat.com>
10282
10283 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10284 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10285 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10286 to use unwind_dummy_id when a dummy frame.
10287 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10288 predicate.
10289 * gdbarch.h, gdbarch.c: Regneerate.
10290
10291 2003-03-05 Andrew Cagney <cagney@redhat.com>
10292
10293 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10294 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10295 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10296 values.
10297
10298 2003-03-05 Andrew Cagney <cagney@redhat.com>
10299
10300 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10301 (struct d10v_unwind_cache): Delete field "frameless". Replace
10302 "next_addr" with "sp_offset". Add "r11_offset".
10303 (d10v_frame_unwind_cache): Update.
10304 (prologue_find_regs): Update. When "mv r11, sp", save the
10305 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10306 RN was saved in r11_offset.
10307
10308 2003-03-05 Andrew Cagney <cagney@redhat.com>
10309
10310 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10311 cached PC value in the next frame.
10312
10313 2003-03-05 Andrew Cagney <cagney@redhat.com>
10314
10315 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10316 "id_unwind_cache" with "id".
10317 (frame_id_unwind): Delete declaration.
10318 * frame.c (frame_id_unwind): Delete function.
10319 (get_prev_frame): Call the frame id unwind method directly. Store
10320 the returned next frame's ID value in NEXT_FRAME. Note that there
10321 is a problem with the wrong unwind ID being called with the wrong
10322 unwind cache.
10323
10324 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10325
10326 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10327
10328 2003-03-05 James Ingham <jingham@apple.com>
10329 Daniel Jacobowitz <drow@mvista.com>
10330
10331 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10332 (auto_cp_abi): New variable.
10333 (current_cp_abi, num_cp_abis): Make static.
10334 (CP_ABI_MAX): Define.
10335 (cp_abis): Turn into an array.
10336 (value_virtual_fn_field): Fix formatting.
10337 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10338 takes a pointer.
10339 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10340 (list_cp_abis, _initialize_cp_abi): New functions.
10341 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10342 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10343 switch_to_cp_abi. Update prototype for register_cp_abi.
10344 * Makefile.in (cp-abi.o): Update dependencies.
10345 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10346 instead of switch_to_cp_abi.
10347 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10348 register_cp_abi.
10349 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10350 register_cp_abi.
10351 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10352
10353 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10354
10355 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10356 * dwarf2loc.c: Include "regcache.h".
10357 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10358 register_size.
10359 * Makefile.in (dwarf2loc.o): Update dependencies.
10360
10361 2003-03-04 Theodore A. Roth <troth@openavr.org>
10362
10363 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10364 number of io registers reported by remote target is not a multiple of
10365 step.
10366
10367 2003-03-04 David Carlton <carlton@math.stanford.edu>
10368
10369 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10370 (lookup_symbol_aux_psymtabs): Update call to
10371 lookup_partial_symbol.
10372 (lookup_transparent_type, find_main_psymtab)
10373 (make_symbol_overload_list): Ditto.
10374
10375 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10376
10377 * MAINTAINERS (Write after approval): Update my email address.
10378
10379 2003-03-03 Andrew Cagney <cagney@redhat.com>
10380
10381 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10382 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10383 predicate. Replace MAX_REGISTER_RAW_SIZE.
10384 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10385 MAX_REGISTER_VIRTUAL_SIZE.
10386 * regcache.c (legacy_max_register_raw_size): New function.
10387 (legacy_max_register_virtual_size): New function.
10388 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10389 (MAX_REGISTER_RAW_SIZE): Define.
10390 (legacy_max_register_raw_size): Declare.
10391 (legacy_max_register_virtual_size): Declare.
10392 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10393 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10394 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10395 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10396 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10397 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10398 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10399 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10400 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10402 * vax-tdep.c (vax_gdbarch_init): Update.
10403 * v850-tdep.c (v850_gdbarch_init): Update.
10404 * sparc-tdep.c (sparc_gdbarch_init): Update.
10405 * sh-tdep.c (sh_gdbarch_init): Update.
10406 * s390-tdep.c (s390_gdbarch_init): Update.
10407 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10408 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10409 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10410 * mips-tdep.c (mips_gdbarch_init): Update.
10411 * mcore-tdep.c (mcore_gdbarch_init): Update.
10412 * m68k-tdep.c (m68k_gdbarch_init): Update.
10413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10414 * ia64-tdep.c (ia64_gdbarch_init): Update.
10415 * i386-tdep.c (i386_gdbarch_init): Update.
10416 * hppa-tdep.c (hppa_gdbarch_init): Update.
10417 * h8300-tdep.c (h8300_gdbarch_init): Update.
10418 * frv-tdep.c (frv_gdbarch_init): Update.
10419 * cris-tdep.c (cris_gdbarch_init): Update.
10420 * avr-tdep.c (avr_gdbarch_init): Update.
10421 * arm-tdep.c (arm_gdbarch_init): Update.
10422 * alpha-tdep.c (alpha_gdbarch_init): Update.
10423 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10424 max_register_raw_size or max_register_virtual_size.
10425
10426 2003-03-03 David Carlton <carlton@math.stanford.edu>
10427
10428 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10429 SYMBOL_MATCHES_NAME, add comment.
10430 (SYMBOL_MATCHES_NATURAL_NAME): New.
10431 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10432 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10433 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10434 * symtab.c (lookup_partial_symbol): Use
10435 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10436 unhelpful comment.
10437 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10438 SYMBOL_MATCHES_NAME.
10439 Fix for PR c++/33.
10440
10441 2003-03-03 David Carlton <carlton@math.stanford.edu>
10442
10443 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10444 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10445 by regexp matching against SYMBOL_NATURAL_NAME.
10446
10447 2003-03-03 David Carlton <carlton@math.stanford.edu>
10448
10449 * linespec.c (find_method): Extract code into collect_methods.
10450 (collect_methods): New.
10451
10452 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10453
10454 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10455 get_frame_base.
10456
10457 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10458 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10459
10460 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10461
10462 * arch-utils.c (generic_register_byte): Fix to use the loop index
10463 and not regnum when summing the size of all registers up to regnum.
10464
10465 2003-03-01 Andrew Cagney <cagney@redhat.com>
10466
10467 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10468 FRAME_INIT_SAVED_REGS.
10469 * gdbarch.h, gdbarch.c: Regenerate.
10470 * stack.c (frame_info): Update.
10471 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10472 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10473 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10474 * ns32k-tdep.c (ns32k_pop_frame): Update.
10475 * mips-tdep.c (mips_pop_frame): Update.
10476 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10477 * ia64-tdep.c (ia64_frame_chain): Update.
10478 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10479 (ia64_frameless_function_invocation): Update.
10480 (ia64_init_extra_frame_info): Update.
10481 (ia64_pop_frame_regular): Update.
10482 * frame.h (struct frame_info): Update comment.
10483 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10484 * frame.c (frame_saved_regs_register_unwind): Update.
10485 (frame_saved_regs_register_unwind): Update.
10486 (deprecated_generic_get_saved_register): Update.
10487 * cris-tdep.c: Update comment.
10488 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10489 Rename macro.
10490 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10491 * x86-64-tdep.c (x86_64_init_abi): Update.
10492 * vax-tdep.c (vax_gdbarch_init): Update.
10493 * v850-tdep.c (v850_gdbarch_init): Update.
10494 * sparc-tdep.c (sparc_gdbarch_init): Update.
10495 * sh-tdep.c (sh_gdbarch_init): Update.
10496 * s390-tdep.c (s390_gdbarch_init): Update.
10497 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10498 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10499 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10500 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10501 * mips-tdep.c (mips_gdbarch_init): Update.
10502 * mcore-tdep.c (mcore_gdbarch_init): Update.
10503 * m68k-tdep.c (m68k_gdbarch_init): Update.
10504 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10505 * ia64-tdep.c (ia64_gdbarch_init): Update.
10506 * i386-tdep.c (i386_gdbarch_init): Update.
10507 * frv-tdep.c (frv_gdbarch_init): Update.
10508 * avr-tdep.c (avr_gdbarch_init): Update.
10509 * arm-tdep.c (arm_gdbarch_init): Update.
10510 * alpha-tdep.c (alpha_gdbarch_init): Update.
10511
10512 2003-03-01 Andrew Cagney <cagney@redhat.com>
10513
10514 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10515 option enum and switch. When no windows, set the interpreter to
10516 INTERP_CONSOLE.
10517
10518 2003-03-01 Andrew Cagney <cagney@redhat.com>
10519
10520 * main.c (captured_main): Replace magic option characters with an
10521 enum.
10522
10523 2003-03-01 Andrew Cagney <cagney@redhat.com>
10524
10525 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10526 INIT_EXTRA_FRAME_INFO.
10527 * gdbarch.h, gdbarch.c: Regenerate.
10528 * arm-tdep.c: Update comments.
10529 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10530 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10531 * frame.h, avr-tdep.c: Ditto.
10532 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10533 (create_new_frame, legacy_get_prev_frame): Ditto.
10534 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10535 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10536 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10537 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10538 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10539 * v850-tdep.c (v850_gdbarch_init): Ditto.
10540 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10541 * sh-tdep.c (sh_gdbarch_init): Ditto.
10542 * s390-tdep.c (s390_gdbarch_init): Ditto.
10543 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10544 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10545 * mips-tdep.c (mips_gdbarch_init): Ditto.
10546 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10547 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10548 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10549 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10550 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10551 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10552 * frv-tdep.c (frv_gdbarch_init): Ditto.
10553 * cris-tdep.c (cris_gdbarch_init): Ditto.
10554 * avr-tdep.c (avr_gdbarch_init): Ditto.
10555 * arm-tdep.c (arm_gdbarch_init): Ditto.
10556 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10557 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10558
10559 2003-03-01 Andrew Cagney <cagney@redhat.com>
10560
10561 * gdbarch.sh (register_type): New function with predicate.
10562 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10563 * gdbarch.h, gdbarch.c: Re-generate.
10564 * arch-utils.c (generic_register_byte): Use generic_register_size.
10565 (generic_register_size): When available, use
10566 gdbarch_register_type.
10567 * regcache.c (init_regcache_descr): When available, initialize the
10568 register type array using gdbarch_register_type. If the
10569 architecture supplies gdbarch_register_type, do not use the legacy
10570 regcache layout.
10571 * d10v-tdep.c (d10v_register_type): Replace
10572 d10v_register_virtual_type.
10573 (d10v_gdbarch_init): Set register_type instead of
10574 register_virtual_type.
10575
10576 2003-03-01 Andrew Cagney <cagney@redhat.com>
10577
10578 * Makefile.in (ax-gdb.o): Update dependencies.
10579 * ax-gdb.c: Include "regcache.h".
10580 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10581 * findvar.c (value_of_register): Ditto.
10582 * infcmd.c (default_print_registers_info): Ditto.
10583
10584 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10585
10586 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10587 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10588
10589 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10590
10591 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10592 of STREQ.
10593
10594 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10595
10596 * Makefile.in (dwarf2loc.o): Update dependencies.
10597 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10598 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10599 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10600 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10601 (locexpr_tracepoint_var_ref): New function.
10602 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10603
10604 2003-02-28 Andrew Cagney <cagney@redhat.com>
10605
10606 * regcache.c (register_size): New function.
10607 * regcache.h (register_size): Declare
10608 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10609 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10610
10611 2003-02-28 David Carlton <carlton@math.stanford.edu>
10612
10613 * linespec.c (decode_compound): Extract code into find_method.
10614 (find_method): New.
10615
10616 2003-02-28 J. Brobecker <brobecker@gnat.com>
10617
10618 * Makefile.in: Add rules to build and link in observer.o.
10619
10620 2003-02-27 J. Brobecker <brobecker@gnat.com>
10621
10622 * observer.c: Minor comments edits.
10623
10624 2003-02-27 J. Brobecker <brobecker@gnat.com>
10625
10626 * observer.h, observer.c: New file.
10627
10628 2003-02-27 Andrew Cagney <cagney@redhat.com>
10629
10630 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10631
10632 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10633
10634 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10635 (M6812_OP_STS_EXT): Likewise.
10636 (m6811_prologue): Use the above to recognize prologue.
10637 (m6812_prologue): Likewise.
10638
10639 2003-02-27 David Carlton <carlton@math.stanford.edu>
10640
10641 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10642 SYMBOL_PRINT_NAME.
10643 (compare_psymbols): Ditto.
10644 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10645
10646 2003-02-27 Michael Snyder <msnyder@redhat.com>
10647
10648 * f-lang.c (build_fortran_types): New function.
10649 (_initialize_f_language): Gdbarch-register built-in fortran types.
10650 * doublest.c (extract_floating): Fix warning text.
10651
10652 2003-02-27 Andrew Cagney <cagney@redhat.com>
10653
10654 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10655 predicate. Replaces PUSH_DUMMY_FRAME.
10656 * gdbarch.h, gdbarch.c: Regnerate.
10657 * valops.c (hand_function_call): Update. Call
10658 generic_push_dummy_frame directly.
10659 * vax-tdep.c (vax_gdbarch_init): Update.
10660 * sparc-tdep.c (sparc_gdbarch_init): Update.
10661 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10662 * m68k-tdep.c (m68k_gdbarch_init): Update.
10663 * hppa-tdep.c (hppa_gdbarch_init): Update.
10664 * alpha-tdep.c (alpha_gdbarch_init): Update.
10665 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10666 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10667 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10668 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10669 push_dummy_frame to generic_push_dummy_frame.
10670 * v850-tdep.c (v850_gdbarch_init): Ditto.
10671 * sh-tdep.c (sh_gdbarch_init): Ditto.
10672 * s390-tdep.c (s390_gdbarch_init): Ditto.
10673 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10674 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10675 * mips-tdep.c (mips_gdbarch_init): Ditto.
10676 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10678 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10679 * i386-tdep.c (i386_gdbarch_init): Ditto.
10680 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10681 * frv-tdep.c (frv_gdbarch_init): Ditto.
10682 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10683 * cris-tdep.c (cris_gdbarch_init): Ditto.
10684 * avr-tdep.c (avr_gdbarch_init): Ditto.
10685 * arm-tdep.c (arm_gdbarch_init): Ditto.
10686
10687 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10688
10689 * mips-tdep.c (show_mips_abi): New function.
10690 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10691 command ``show mips abi''.
10692
10693 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10694
10695 From Elena Zannoni <ezannoni@redhat.com>
10696 * dbxread.c (process_one_symbol): Only record line 0 if one or
10697 more sline entries have been seen for the function.
10698
10699 2003-02-26 Michael Chastain <mec@shout.net>
10700
10701 * configure: Regenerate with autoconf 000227.
10702
10703 2003-02-26 Michael Chastain <mec@shout.net>
10704
10705 Close PR build/660.
10706 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10707 for old libc5/glibc.
10708 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10709
10710 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10711
10712 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10713 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10714
10715 2003-02-26 Michael Chastain <mec@shout.net>
10716
10717 * configure.in: New variable HAVE_UINTPTR_T.
10718 * configure, config.in: Regenerated.
10719
10720 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10721
10722 Fix PR build/1097.
10723 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10724
10725 2003-02-25 Andrew Cagney <cagney@redhat.com>
10726
10727 * frame.c (get_prev_frame): Add comment on check for
10728 inside_entry_func. Only check for inside_entry_file when not a
10729 dummy and not a sentinel. Check that the new frame is not inner
10730 to the old frame.
10731
10732 2003-02-25 Andrew Cagney <cagney@redhat.com>
10733
10734 * frame.c (frame_debug): New variable.
10735 (_initialize_frame): Add "set/show debug frame" command.
10736 (get_prev_frame): When frame_debug, print reason why unwind
10737 failed.
10738
10739 2003-02-25 Michael Chastain <mec@shout.net>
10740
10741 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10742 to avoid uintptr_t definition problems.
10743
10744 2003-02-25 David Carlton <carlton@math.stanford.edu>
10745
10746 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10747 (SYMBOL_LINKAGE_NAME): Ditto.
10748 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10749 SYMBOL_LINKAGE_NAME.
10750 (struct general_symbol_info): Expand comment.
10751 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10752 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10753 (SYMBOL_MATCHES_REGEXP): Ditto.
10754 * symtab.c (symbol_natural_name): New function.
10755 * objfiles.h: Replace all uses of SYMBOL_NAME by
10756 DEPRECATED_SYMBOL_NAME.
10757 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10758 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10759 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10760 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10761 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10762 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10763 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10764 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10765 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10766 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10767 * ada-exp.y: Ditto.
10768 * ada-exp.y: Update copyright.
10769 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10770 * cp-valprint.c: Ditto.
10771
10772 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10773
10774 * infptrace.c (detach): Do not flag error if ptrace detach fails
10775 and errno is set to ESRCH.
10776
10777 2003-02-24 Andrew Cagney <cagney@redhat.com>
10778
10779 * infptrace.c (udot_info): Change type of udot_off to long. Use
10780 paddr when printing udot_off's value.
10781
10782 2003-02-24 David Carlton <carlton@math.stanford.edu>
10783
10784 * symtab.c (make_symbol_overload_list): Only read in partial
10785 symtabs containing a matching partial symbol.
10786
10787 2003-02-24 David Carlton <carlton@math.stanford.edu>
10788
10789 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10790 do the comparison, not strcmp.
10791 * symfile.c (compare_psymbols): Ditto.
10792 * defs.h: Declare strcmp_iw_ordered.
10793 * utils.c (strcmp_iw_ordered): New function.
10794
10795 2003-02-24 Jim Blandy <jimb@redhat.com>
10796
10797 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10798 support, shared libs): Remove my name from here, to better reflect
10799 reality.
10800
10801 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10802
10803 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10804 (target_ops): Add to_have_continuable_watchpoint.
10805 * target.c (update_current_target): Add INHERIT line for
10806 to_have_continuable_watchpoint.
10807 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10808 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10809 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10810 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10811
10812 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10813
10814 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10815 maintainership.
10816
10817 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10818
10819 * solib.c (solib_open): Call target defined search function after
10820 failing with solib-search-path.
10821 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10822 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10823
10824 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10825
10826 * MAINTAINERS: Add myself to Write After section.
10827
10828 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10829
10830 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10831
10832 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10833
10834 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10835 (m68hc11_add_reggroups): New function.
10836 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10837 (m68hc11_gdbarch_init): Install the reggroups.
10838 (_initialize_m68hc11_tdep): Initialize them.
10839
10840 2003-02-21 James E Wilson <wilson@tuliptree.org>
10841
10842 * MAINTAINERS: Update my email address.
10843
10844 2003-02-21 David Carlton <carlton@math.stanford.edu>
10845
10846 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10847
10848 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10849
10850 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10851 * symtab.h: Add opaque declarations of struct axs_value and
10852 struct agent_expr.
10853 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10854 (struct location_funcs): New type.
10855 (struct symbol): Add "loc" to aux_value.
10856 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10857 * dwarf2read.c: Include "dwarf2expr.h".
10858 (dwarf2_symbol_mark_computed): New function.
10859 (read_func_scope): Use it.
10860 (var_decode_location): New function.
10861 (new_symbol): Use it.
10862 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10863
10864 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10865 (dwarf2expr_h, dwarf2loc_h): New variables.
10866 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10867 (dwarf2expr.o, dwarf2loc.o): New rules.
10868 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10869 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10870 LOC_COMPUTED_ARG.
10871 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10872 * m2-exp.y (yylex): Likewise.
10873 * printcmd.c (address_info, print_frame_args): Likewise.
10874 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10875 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10876 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10877 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10878 * symtab.c (lookup_block_symbol): Likewise.
10879
10880 2003-02-20 Adam Fedor <fedor@gnu.org>
10881
10882 * symtab.h: Remove objc_specific struct
10883 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10884 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10885 Have language_objc use cplus_specific struct.
10886
10887 2003-02-20 Tom Tromey <tromey@redhat.com>
10888
10889 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10890 TYPE_NAME, when printing a String value. PR java/1075.
10891
10892 2003-02-20 Adam Fedor <fedor@gnu.org>
10893
10894 * objc-lang.h (find_methods): Remove declaration.
10895 * objc-lang.c (find_methods): Make static.
10896
10897 2003-02-20 Christopher Faylor <cgf@redhat.com>
10898
10899 * win32-nat.c (get_image_name): Check return value from
10900 ReadProcessMemory.
10901 (child_xfer_memory): Ditto.
10902
10903 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10904
10905 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10906 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10907 '${exec_prefix}' (in addition to the expansion thereof) as
10908 relocatable.
10909 * configure: Rebuilt.
10910
10911 2003-02-20 David Carlton <carlton@math.stanford.edu>
10912
10913 * symtab.c (search_symbols): Revert the search_symbols part of my
10914 2002-12-23 patch. Add comment.
10915
10916 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10917
10918 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10919 * dbxread.c (elfstab_build_psymtabs): Don't call
10920 install_minimal_symbols.
10921 (stabsect_build_psymtabs): Likewise.
10922 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10923 earlier.
10924 * somread.c (som_symfile_read): Call install_minimal_symbols
10925 and do_cleanups earlier.
10926 * nlmread.c (nlm_symfile_read): Likewise.
10927 * mdebugread.c (elfmdebug_build_psymtabs): Call
10928 install_minimal_symbols and make appropriate cleanups.
10929
10930 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10931
10932 * solib.c (reload_shared_libraries): New function.
10933 (_initialize_solib): Add callbacks for ``set solib-search-path''
10934 and ``set solib-absolute-prefix''.
10935
10936 2003-02-20 David Carlton <carlton@math.stanford.edu>
10937
10938 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10939 expand comment.
10940 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10941 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10942 * ada-typeprint.c (ada_typedef_print): Ditto.
10943 * ax-gdb.c (gen_var_ref): Ditto.
10944 * breakpoint.c (print_one_breakpoint): Ditto.
10945 * buildsym.c (finish_block): Ditto.
10946 * c-valprint.c (c_val_print): Ditto.
10947 * expprint.c (print_subexp): Ditto.
10948 * findvar.c (locate_var_value): Ditto.
10949 * infcmd.c (jump_command): Ditto.
10950 * linespec.c (decode_line_2, decode_compound): Ditto.
10951 * maint.c (maintenance_translate_address): Ditto.
10952 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10953 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10954 Ditto.
10955 * p-valprint.c (pascal_val_print): Ditto.
10956 * stabsread.c (define_symbol): Ditto.
10957 * stack.c (print_frame, frame_info, print_block_frame_locals)
10958 (print_frame_arg_vars, return_command): Ditto.
10959 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10960 * symmisc.c (print_symbol): Ditto.
10961 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10962 (compare_search_syms, print_symbol_info, print_msymbol_info)
10963 (rbreak_command): Ditto.
10964 * tracepoint.c (tracepoints_info): Ditto.
10965 * typeprint.c (typedef_print): Ditto.
10966 * valops.c (value_of_variable, hand_function_call): Ditto.
10967 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10968 * ada-typeprint.c: Update Copyright.
10969 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10970 * tracepoint.c, cli/cli-cmds.c: Ditto.
10971
10972 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10973
10974 * frame.c (generic_unwind_get_saved_register): Make non-static.
10975 * frame.h (generic_unwind_get_saved_register): Declare.
10976 * mips-tdep.c (read_next_frame_reg): Fetch register from
10977 current regcache when frame is NULL.
10978 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10979 that must be NULL.
10980 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10981 instead of frame_register_unwind().
10982
10983 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10984
10985 * remote-sim.c (gdbsim_insert_breakpoint)
10986 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10987 code.
10988
10989 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10990
10991 * remote.c (_initialize_remote): Add commands "set/show remote
10992 hardware-watchpoint-limit" and "set/show remote
10993 hardware-breakpoint-limit".
10994 (remote_hw_watchpoint_limit): Initialize to -1.
10995 (remote_hw_breakpoint_limit): Ditto.
10996 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10997
10998 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10999
11000 * coff-pe-read.c: New file - support reading of minimal symbols from a
11001 portable executable using the export table.
11002 * coff-pe-read.h: New file.
11003 * coffread.c: Include coff-pe-read.h.
11004 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11005 debugging symbols found.
11006 * Makefile.in (SFILES): Add coff-pe-read.o.
11007 (coff_pe_read_h): Define.
11008 (COMMON_OBS): Add coff-pe-read.o.
11009 (coffread.o): Add coff_pe_read_h dependency.
11010 (coff-pe-read.o): New target.
11011
11012 2003-02-19 David Carlton <carlton@math.stanford.edu>
11013
11014 * Makefile.in (SFILES): Add block.c.
11015 (block_h): New.
11016 (COMMON_OBS): Add block.o.
11017 (block.o): New.
11018 (x86-64-tdep.o): Add $(block_h).
11019 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11020 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11021 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11022 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11023 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11024 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11025 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11026 * value.h: Add opaque declaration for struct block.
11027 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11028 * ada-lang.h: Ditto.
11029 * x86-64-tdep.c: #include "block.h"
11030 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11031 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11032 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11033 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11034 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11035 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11036 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11037 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11038 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11039 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11040 * symtab.c (block_function): Ditto.
11041 (contained_in): Ditto.
11042 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11043 block.h. Add opaque declaration for struct block.
11044 * symtab.h: Move block_function and contained_in declarations to
11045 block.h. Add opaque declarations for struct block, struct
11046 blockvector.
11047 (struct block): Move to block.h.
11048 (struct blockvector): Ditto.
11049 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11050 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11051 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11052 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11053 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11054 Ditto.
11055 * block.c: New file.
11056 * block.h: New file.
11057
11058 2003-02-19 Theodore A. Roth <troth@openavr.org>
11059
11060 * avr-tdep.c (avr_extract_return_value): Remove function.
11061 (avr_store_return_value): Remove function.
11062 (avr_extract_struct_value_address): Remove function.
11063 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11064
11065 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11066
11067 * rs6000-tdep.c: Include "gdb_assert.h".
11068 (registers_e500): Add "acc" and "spefscr".
11069 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11070 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11071 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11072 really is "r0".
11073 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11074
11075 2003-02-18 Keith Seitz <keiths@redhat.com>
11076
11077 * Makefile.in: Add gdbtk-interps.c.
11078
11079 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11080
11081 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11082 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11083
11084 2003-02-18 Andrew Cagney <cagney@redhat.com>
11085
11086 * symtab.h (struct objfile): Add opaque declaration.
11087
11088 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11089
11090 From Jim Ingham <jingham@apple.com>:
11091 * dbxread.c (process_one_symbol): Use last_function_start rather
11092 than function_start_offset to find the real beginning of the
11093 current function. The latter is just the text section offset on
11094 some systems, the former is always the real function start.
11095
11096 2003-02-17 Andrew Cagney <cagney@redhat.com>
11097
11098 * configure.in: Revert ${target} != ${host}.
11099
11100 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11101
11102 * configure.in (Makefile): Use the test ${target} != ${host},
11103 instead of the absence of the "nm.h" file, to determine of the
11104 configuration non-native.
11105 * configure: Regenerate.
11106
11107 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11108
11109 From Brian Ford <ford@vss.fsi.com>
11110
11111 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11112 conditionalize tui_active test.
11113 (lookup_cmd_1): Ditto.
11114
11115 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11116
11117 * configure.in: Add check for _etext.
11118 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11119 available.
11120 * config.in, configure: regenerated.
11121
11122 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11123
11124 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11125
11126 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11127
11128 * main.c (tui_version): Delete variable.
11129 (captured_main): When --tui, set interpreter_p to "tui" instead of
11130 enabling tui_version.
11131 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11132 tui_version.
11133 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11134 * cli/cli-cmds.c (disassemble_command): Ditto.
11135 * defs.h (tui_version): Delete declaration.
11136 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11137 (tui-interp.o): Add rules.
11138 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11139
11140 2003-02-14 Christopher Faylor <cgf@redhat.com>
11141
11142 * win32-nat.c (register_loaded_dll): Correctly set address range for
11143 just-loaded dll.
11144
11145 2003-02-12 Jason Molenda (jmolenda@apple.com)
11146
11147 * symmisc.c (print_objfile_statistics): Include information about
11148 the number of psymtabs and symtabs in each object file.
11149
11150 2003-02-13 Keith R Seitz <keiths@redhat.com>
11151
11152 * main.h (struct captured_main_args): Add interpreter_p.
11153 * main.c (captured_main): Initialize interpreter_p from context.
11154 * gdb.c (main): Set interpreter_p argument.
11155 * Makefile.in (gdb.o): Add dependency for interps.h.
11156
11157 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11158
11159 * event-top.c (cli_command_loop): Delete declaration.
11160 (_initialize_event_loop): Delete function setting event_loop_hook.
11161 * event-top.h (cli_command_loop): Declare. Update copyright.
11162 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11163 * interps.c (current_interp_command_loop): When event_loop_p, call
11164 cli_command_loop.
11165
11166 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11167
11168 * interps.h (interp_command_loop_ftype): Change return type to
11169 void.
11170
11171 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11172
11173 * x86-64-tdep.c (x86_64_extract_return_value)
11174 (x86_64_store_return_value): Use regcache instead of regbuf.
11175 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11176 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11177
11178 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11179
11180 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11181 * aclocal.m4: Regenerate.
11182 * configure: Regenerate.
11183
11184 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11185 TCL_LD_SEARCH_FLAGS.
11186
11187 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11188
11189 * dwarf2cfi.c: Reindented.
11190
11191 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11192
11193 * interps.c (clear_interpreter_hooks): Convert function definition
11194 to ISO C.
11195
11196 2003-02-07 David Carlton <carlton@math.stanford.edu>
11197
11198 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11199
11200 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11201
11202 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11203 (struct type): ...to here.
11204 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11205 field.
11206 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11207 (replace_type): Set length on all type variants for a given type.
11208
11209 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11210
11211 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11212 <sys/stat.h>.
11213 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11214
11215 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11216
11217 * Makefile.in (symm-nat.o): Update dependencies.
11218 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11219 (lynx-nat.o, ia64-linux-nat.): Ditto.
11220 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11221 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11222 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11223
11224 * Makefile.in (inflow_h): Define.
11225 (procfs.o, inflow.o, procfs.o): Update dependencies.
11226 * inftarg.c (child_stop): Delete extern declaration of
11227 inferior_process_group. Include "inflow.h".
11228 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11229 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11230 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11231 (our_process_group, inferior_process_group): Extern declarations.
11232
11233 * procfs.c: Include "gdb_assert.h".
11234
11235 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11236 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11237 * jv-typeprint.c (java_type_print_base): Ditto.
11238 * typeprint.c (typedef_print): Eliminate STREQ.
11239 * cli/cli-script.c (define_command, define_command): Ditto.
11240 * main.c (captured_main): Ditto.
11241 * values.c (lookup_internalvar): Ditto.
11242 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11243 within `if' conditional.
11244 * linespec.c (decode_line_2): Ditto.
11245 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11246 (bfd_openw_with_cleanup): Ditto.
11247
11248 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11249
11250 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11251 legacy_extract_return_value and store_return_value to
11252 legacy_return_value.
11253
11254 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11255
11256 * win32-nat.c (get_relocated_section_addrs): New function. Find
11257 section load addresses for symbol handling in relocated DLLs.
11258 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11259
11260 2003-02-05 Fred Fish <fnf@intrinsity.com>
11261
11262 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11263 '=' and '!='.
11264 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11265 with '&' and '=='.
11266 (angel_RDI_info): Ditto.
11267 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11268 with '&' and '!='.
11269 (threads_continue_all_with_signals): Ditto.
11270
11271 2003-02-05 Jim Ingham <jingham@apple.com>
11272 Keith Seitz <keiths@redhat.com>
11273 Elena Zannoni <ezannoni@redhat.com>
11274 Andrew Cagney <ac131313@redhat.com>
11275
11276 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11277 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11278 (SUBDIR_MI_OBS): Add "mi-interp.o".
11279 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11280 (SFILES): Add "interps.c".
11281 (COMMON_OBS): Add "interps.o".
11282 (interps_h, mi_main_h): Define.
11283 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11284 (mi-main.o, main.o, event-top.o): Update dependencies.
11285 * cli/cli-interp.c: New file.
11286 * interps.h, interps.c: New files.
11287 * top.c: (gdb_init): Don't install the default interpreter, handed
11288 by captured_main.
11289 * main.c: Include "interps.h".
11290 (interpreter_p): Note that it should malloc'ed.
11291 (captured_command_loop): Call current_interp_command_loop.
11292 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11293 xfree and xstrdup when updating interpreter_p. Install the
11294 default interpreter. Add hack to stop mi1's copyright notice
11295 being encoded.
11296 * event-top.h (gdb_setup_readline): Declare.
11297 (gdb_disable_readline): Declare.
11298 * event-top.c: Include "interps.h".
11299 (display_gdb_prompt): Call current_interp_display_prompt_p.
11300 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11301 gdb_stdlog, and gdb_stdtarg.
11302 (_initialize_event_loop): Don't call gdb_setup_readline.
11303 * cli-out.c (cli_out_set_stream): New function.
11304 * cli-out.h (cli_out_set_stream): Declare.
11305
11306 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11307
11308 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11309 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11310 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11311 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11312 config/i386/i386v42mp.mt: Removed.
11313
11314 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11315
11316 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11317 GDB_OSABI_SOLARIS.
11318
11319 2003-02-05 Michael Chastain <mec@shout.net>
11320
11321 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11322 2.12.1 and earlier versions.
11323
11324 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11325
11326 Remove orphaned hosts, targets and files.
11327 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11328 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11329 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11330 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11331 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11332 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11333 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11334 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11335 * config/sparc/tm-sp64sim.h: Delete.
11336 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11337 hosts.
11338 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11339 mips*-dec-mach3* targets.
11340
11341 2003-02-04 Michael Chastain <mec@shout.net>
11342
11343 * NEWS: Fix typo: sepcifying -> specifying.
11344
11345 2003-02-04 Michael Chastain <mec@shout.net>
11346
11347 * dwarfread.c: Add documentation on the state of dwarf-1,
11348 looking towards obsoletion.
11349
11350 2003-02-03 Michael Chastain <mec@shout.net>
11351
11352 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11353 gdb/testsuite/gdb.c++/pr-1023.exp.
11354
11355 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11356
11357 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11358 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11359
11360 * utils.c (init_page_info): Delete reference to MPW in comments.
11361 * main.c (captured_main): Delete #ifdef MPW.
11362
11363 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11364
11365 * NEWS: Note that the m32r-*-elf* is obsolete.
11366 * monitor.c (monitor_expect): Obsolete reference to m32r.
11367 * configure.tgt: Mark m32r-*-elf* as obsolete.
11368 * MAINTAINERS: Mark m32k as obsolete.
11369 * m32r-rom.c: Obsolete file.
11370 * config/m32r/m32r.mt: Obsolete file.
11371 * config/m32r/tm-m32r.h: Obsolete file.
11372 * m32r-stub.c: Obsolete file.
11373 * m32r-tdep.c: Obsolete file.
11374
11375 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11376
11377 * NEWS: Mention that the z8k-zilog-none is obsolete.
11378 * MAINTAINERS: Mark z8k as obsolete.
11379 * configure.tgt: Obsolete the z8k-*-coff* target.
11380 * config/z8k/z8k.mt: Obsolete file.
11381 * config/z8k/tm-z8k.h: Obsolete file.
11382 * z8k-tdep.c: Obsolete file.
11383
11384 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11385
11386 * NEWS: Mention that the mn10200-elf is obsolete.
11387 * configure.tgt: Obsolete mn10200-*-* target.
11388 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11389 mention that the mn10200 is obsolete.
11390 * breakpoint.h: Ditto.
11391 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11392 * config/mn10200/mn10200.mt: Obsolete file.
11393 * config/mn10200/tm-mn10200.h: Obsolete file.
11394 * mn10200-tdep.c: Obsolete file.
11395
11396 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11397
11398 * MAINTAINERS: Mark h8500 as obsolete.
11399 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11400 * findvar.c (value_from_register): Ditto.
11401 * h8500-tdep.c: Mark file as obsolete.
11402 * config/h8500/h8500.mt: Ditto.
11403 * config/h8500/tm-h8500.h: Ditto.
11404 * NEWS: Mention that h8500 is obsolete.
11405
11406 2003-02-04 David Carlton <carlton@math.stanford.edu>
11407
11408 * objfiles.c (allocate_objfile): Always set name. Add comment at
11409 start of function.
11410 * jv-lang.c (get_dynamics_objfile): Add comment.
11411
11412 2003-02-04 David Carlton <carlton@math.stanford.edu>
11413
11414 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11415 * printcmd.c (build_address_symbolic): Replace uses of
11416 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11417 SYMBOL_NAME, and asm_demangle.
11418 Update copyright.
11419
11420 2003-02-04 David Carlton <carlton@math.stanford.edu>
11421
11422 * linespec.c (decode_compound): Extract code into
11423 lookup_prefix_sym.
11424 (lookup_prefix_sym): New function.
11425
11426 2003-02-04 David Carlton <carlton@math.stanford.edu>
11427
11428 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11429 FLOAT_COERCION_BADNESS.
11430 * gdbtypes.c (rank_one_type): Replace all uses of
11431 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11432
11433 2003-02-04 Jim Blandy <jimb@redhat.com>
11434
11435 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11436 section, let dwarf_macinfo_section point to it, not
11437 dwarf_loc_section.
11438
11439 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11440
11441 Pointed out by Anton Blanchard <anton@samba.org>.
11442 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11443 (ppc_linux_at_sigtramp_return_path): Use it.
11444
11445 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11446
11447 * defs.h (streq): Add prototype.
11448 * utils.c (streq): New function.
11449
11450 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11451 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11452 * mdebugread.c (new_symbol): Likewise.
11453 * stabsread.c (define_symbol): Likewise.
11454 * coffread.c (process_coff_symbol): Likewise.
11455 * dwarfread.c (new_symbol): Likewise.
11456
11457 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11458 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11459 here.
11460 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11461 SYMBOL_INIT_DEMANGLED_NAME.
11462 * objfiles.c: Include "hashtab.h".
11463 (allocate_objfile): Call htab_set_functions_ex for the
11464 demangled_names_hash.
11465 (free_objfile): Call htab_delete for the demangled_names_hash.
11466 * objfiles.h (struct htab): Add declaration.
11467 (struct objfile): Add demangled_names_hash.
11468 * symfile.c: Include "hashtab.h".
11469 (reread_symbols): Call htab_delete for the demangled_names_hash.
11470 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11471 SYMBOL_NAME in the bcache.
11472 * symtab.c: Include "hashtab.h". Update comments.
11473 (create_demangled_names_hash, symbol_set_names): New functions.
11474 (symbol_find_demangled_name): New function, broken out from
11475 symbol_init_demangled_names.
11476 (symbol_init_demangled_names): Use it.
11477 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11478 (SYMBOL_SET_NAMES): New macro.
11479 (symbol_set_names): Add prototype.
11480
11481 2003-02-03 Jim Blandy <jimb@redhat.com>
11482
11483 Use a single, consistent representation for an empty minimal
11484 symbol table in an objfile.
11485 * objfiles.c (terminate_minimal_symbol_table): New function.
11486 (allocate_objfile): Call it.
11487 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11488 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11489 non-NULL.
11490 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11491 objfile has minimal symbols, compare minimal_symbol_count to zero,
11492 instead of comparing msymbols with NULL.
11493 * objfiles.c (have_minimal_symbols): Same.
11494 * solib-sunos.c (solib_add_common_symbols): Call
11495 terminate_minimal_symbol_table.
11496 * symfile.c (reread_symbols): Same.
11497
11498 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11499
11500 * s390-tdep.c (s390_address_class_type_flags)
11501 (s390_address_class_type_flags_to_name)
11502 (s390_address_class_name_to_type_flags): New functions.
11503 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11504 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11505
11506 2003-02-03 Michael Snyder <msnyder@redhat.com>
11507
11508 * arm-tdep.c: Fix spell-o in comment.
11509
11510 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11511
11512 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11513 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11514 error messages to contain BFD filename.
11515
11516 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11517
11518 Fix PR gdb/742 gdb/743 gdb/877
11519 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11520 (do_mixed_source_and_assembly): Use
11521 make_cleanup_ui_out_tuple_begin_end and
11522 make_cleanup_ui_out_tuple_begin_end.
11523 (do_mixed_source_and_assembly): Ditto.
11524 * thread.c (do_captured_list_thread_ids): Ditto.
11525 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11526 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11527 ui_out_tuple_end): Delete prototypes.
11528 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11529 ui_out_list_end, ui_out_tuple_end): Delete.
11530
11531 From Kevin Buettner <kevinb@redhat.com>:
11532 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11533 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11534 (do_cleanup_table_end): New functions.
11535 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11536 Use cleanups to invoke_ui_out_tuple_end().
11537 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11538 * cli/cli-setshow.c (cmd_show_list): Use
11539 make_cleanup_ui_out_tuple_begin_end.
11540
11541 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11542
11543 * frame.c (frame_unwind_register): New function.
11544 (frame_unwind_unsigned_register): Use.
11545 (frame_unwind_signed_register): Use.
11546 (frame_read_register): New function.
11547 * frame.h (frame_unwind_register): Declare.
11548 (frame_read_register): Declare.
11549
11550 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11551 and frame_unwind_register instead of read_memory, write_register
11552 and deprecated_write_register_bytes.
11553
11554 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11555
11556 * frame.h: Note that namelen can be negative.
11557 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11558 NAME's length.
11559
11560 * NEWS: Mention that the d10v's `regs' command is deprecated.
11561 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11562 (d10v_print_registers_info): New function.
11563 (show_regs): Call d10v_print_registers_info.
11564 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11565
11566 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11567
11568 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11569 lost in the previous patch.
11570
11571 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11572
11573 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11574 * stack.c (print_frame_info_base): Output complete FRAME tuple
11575 for synthesized frames.
11576
11577 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11578
11579 * mips-nat.c (zerobuf): Delete.
11580 (fetch_inferior_registers): Alloc local zerobuf.
11581 (fetch_core_registers): Alloc local zerobuf.
11582 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11583 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11584 * thread-db.c (thread_db_store_registers): Ditto.
11585 * sh-tdep.c (sh_do_register): Ditto.
11586 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11587 * remote-sim.c (gdbsim_store_register): Ditto.
11588 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11589 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11590 * monitor.c (monitor_supply_register): Ditto.
11591 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11592 * mips-nat.c (fetch_inferior_registers): Ditto.
11593 * m68klinux-nat.c (fetch_register): Ditto.
11594 * lynx-nat.c (fetch_inferior_registers): Ditto.
11595 (fetch_inferior_registers): Ditto.
11596 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11597 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11598 (hpux_thread_store_registers): Ditto.
11599 * hppah-nat.c (fetch_register): Ditto.
11600 * hppab-nat.c (fetch_register): Ditto.
11601 * hppa-tdep.c (pa_register_look_aside): Ditto.
11602 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11603 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11604
11605 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11606
11607 * gdbarch.sh: Explictly specify all method levels. When a
11608 variable with an empty level, provide a non-multi-arch default.
11609 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11610 * gdbarch.h: Re-generate.
11611 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11612 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11613
11614 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11615
11616 * defs.h (host_pointer_to_address): Delete declaration.
11617 (address_to_host_pointer): Delete declaration.
11618 * utils.c (host_pointer_to_address): Delete function.
11619 (address_to_host_pointer): Delete function.
11620 * procfs.c (procfs_address_to_host_pointer): New function.
11621 * procfs.c (proc_set_watchpoint): Use.
11622 (procfs_can_use_hw_breakpoint): Update comments.
11623 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11624 (som_solib_add): Use.
11625 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11626 * hppa-tdep.c (unwind_command): Use.
11627
11628 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11629
11630 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11631 strlen d_name.
11632
11633 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11634 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11635 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11636 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11637 (define_symbol): Update.
11638 * symfile.c (generic_load): Remove references to nindy.
11639 * symtab.c: Remove references to nindy.
11640
11641 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11642
11643 * infcmd.c (print_float_info): Delete code conditional on
11644 FLOAT_INFO.
11645 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11646 * config/m68k/nm-apollo68b.h: Ditto.
11647 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11648 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11649 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11650
11651 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11652
11653 * config/i386/tm-i386os9k.h: Removed.
11654
11655 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11656 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11657 they're identical to i[3456]86-*-sysv* now.
11658 * config/i386/i386v32.mh: Removed.
11659 * config/i386/xm-i386v32.h: Removed.
11660 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11661
11662 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11663
11664 * config/i386/i386dgux.mh: Removed.
11665 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11666
11667 * configure.in: Fix typo.
11668 * configure: Regenerated.
11669
11670 2003-01-31 David Carlton <carlton@math.stanford.edu>
11671
11672 * dwarf2read.c (dwarf2_locate_sections): Set
11673 dwarf_ranges_section.
11674
11675 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11676
11677 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11678 * utils.c: Update comments documenting legitimate uses of PTR.
11679
11680 * utils.c: Re-indent.
11681
11682 * config/djgpp/fnchange.lst: Delete nindy files.
11683 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11684 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11685 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11686 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11687 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11688 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11689 * Makefile.in (init.c): Remove nindy references.
11690 (saber_gdb): Delete rule.
11691 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11692 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11693 and a68v-nat.c.
11694 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11695 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11696 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11697 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11698 nindy-share/stop.h.
11699 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11700 * saber.suppress: Delete file.
11701
11702 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11703
11704 * dbxread.c (stabs_data): New static variable.
11705 (fill_symbuf): Support an in-memory buffer for stabs data.
11706 (stabs_seek): New function.
11707 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11708 (read_ofile_symtab): Use stabs_seek.
11709 (elfstab_build_psymtabs): Take an asection* instead of
11710 an offset and size. Relocate the stabs data if necessary.
11711 Save the section* for dbx_psymtab_to_symtab.
11712 * dwarf2read.c: Add section variables for each debug section.
11713 (dwarf2_locate_sections): Fill them in.
11714 (dwarf2_read_section): Take an asection* argument.
11715 Relocate the section contents if necessary.
11716 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11717 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11718 it to dwarf2_read_section.
11719 (dwarf2_build_frame_info): Update callers.
11720 * elfread.c (elf_symfile_read): Update call to
11721 elfstab_build_psymtabs.
11722 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11723 (DBX_STAB_SECTION): New macro.
11724 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11725 * symfile.c (symfile_dummy_outputs): New function.
11726 (symfile_relocate_debug_section): New function.
11727 * symfile.h (symfile_relocate_debug_section): Add prototype.
11728
11729 2003-01-31 Richard Henderson <rth@redhat.com>
11730
11731 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11732 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11733 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11734 * alpha-tdep.c (alpha_register_name): Add "unique".
11735 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11736 (ALPHA_UNIQUE_REGNUM): New.
11737 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11738
11739 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11740
11741 * README: Remove reference to Ericsson 1800 monitor.
11742 * Makefile.in (remote-es.o): Delete rule.
11743 (ALLDEPFILES): Delete remote-es.c.
11744 * remote-es.c: Delete file.
11745 * config/m68k/es1800.mt: Delete file.
11746 * config/djgpp/fnchange.lst: Update.
11747 * configure.tgt: Delete m68*-ericsson-* target.
11748
11749 2003-01-31 Adam Fedor <fedor@gnu.org>
11750
11751 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11752 Remove duplicate/shadowing variable of same name.
11753
11754 2003-01-30 Jim Blandy <jimb@redhat.com>
11755
11756 * symfile.c (find_separate_debug_file): Assert that the objfile's
11757 directory name we compute ends with a slash, and then assume that
11758 that's so everywhere we use it.
11759
11760 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11761
11762 * valops.c (value_assign): Flush frame cache after stores to memory
11763 also.
11764
11765 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11766
11767 * Makefile.in (mon960-rom.o): Delete rule.
11768 * mon960-rom.c: Delete file.
11769
11770 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11771
11772 * d10v-tdep.c: Include "frame-unwind.h".
11773 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11774 list.
11775 (next_addr, uses_frame): Delete.
11776 (struct d10v_unwind_cache): Define.
11777 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11778 Use info instead of next_addr and uses_frame globals.
11779 (d10v_frame_init_saved_regs): Delete function.
11780 (d10v_init_extra_frame_info): Delete function.
11781 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11782 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11783 init_frame_pc or frame_saved_pc.
11784 (d10v_pop_frame): Delete function.
11785 (do_d10v_pop_frame): Delete function.
11786 (d10v_frame_chain): Delete function.
11787 (d10v_frame_chain_valid): Delete function.
11788 (d10v_frame_pc_unwind): New function.
11789 (d10v_frame_id_unwind): New function.
11790 (saved_regs_unwinder): New function.
11791 (d10v_frame_register_unwind): New function.
11792 (d10v_frame_pop): New function.
11793 (d10v_frame_unwind): New variable.
11794 (d10v_frame_p): New function.
11795 (d10v_frame_saved_pc): Delete function.
11796 * Makefile.in (d10v-tdep.o): Update dependencies.
11797
11798 2003-01-30 J. Brobecker <brobecker@gnat.com>
11799
11800 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11801 causing some regressions due to a change in the default value
11802 for this macro.
11803
11804 2003-01-29 Richard Henderson <rth@redhat.com>
11805 Elena Zannoni <ezannoni@redhat.com>
11806 Daniel Jacobowitz <drow@mvista.com>
11807
11808 Fix PR gdb/961.
11809 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11810 variables.
11811 (RANGES_SECTION): New.
11812 (dwarf_ranges_buffer): New variable.
11813 (struct comp_unit_head): Add member "die".
11814 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11815 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11816 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11817 (dwarf2_locate_sections): Likewise.
11818 (dwarf2_build_psymtabs): Read .debug_ranges.
11819 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11820 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11821 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11822 Look for DW_AT_ranges and return the bounding box.
11823
11824 2003-01-29 Brian Ford <ford@vss.fsi.com>
11825
11826 * win32-nat.c (cygwin_pid): Removed as unused.
11827 (child_attach): Try fall back to Cygwin pid.
11828
11829 2003-01-29 Jim Blandy <jimb@redhat.com>
11830
11831 * objfiles.h (struct objfile): Doc fix.
11832
11833 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11834
11835 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11836 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11837 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11838 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11839 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11840 (FRAME_SAVED_PC): Change to a function with predicate.
11841 * gdbarch.h, gdbarch.c: Re-generate.
11842
11843 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11844
11845 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11846
11847 * complaints.c (complain): Delete function.
11848 * complaints.h (struct deprecated_complaint): Delete definition.
11849 (complain): Delete declaration.
11850
11851 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11852
11853 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11854 dummy frames.
11855
11856 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11857
11858 * sentinel-frame.h, sentinel-frame.c: New files.
11859 * Makefile.in (frame.o): Update dependencies.
11860 (SFILES): Add sentinel-frame.c.
11861 (sentinel_frame_h): Define.
11862 (COMMON_OBS): Add sentinel-frame.o.
11863 (sentinel-frame.o): Specify dependencies.
11864 * frame.c: Include "sentinel-frame.h".
11865 (frame_register_unwind): Rewrite assuming that there is always a a
11866 ->next frame.
11867 (frame_register, generic_unwind_get_saved_register): Ditto.
11868 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11869 (create_sentinel_frame, unwind_to_current_frame): New functions.
11870 (get_current_frame): Rewrite using create_sentinel_frame and
11871 unwind_to_current_frame. When possible, always create a frame.
11872 (create_new_frame): Set next to the sentinel frame.
11873 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11874 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11875 ID cache when necessary.
11876 (frame_saved_regs_id_unwind): Use frame_relative_level.
11877 (deprecated_generic_get_saved_register): Use frame_relative_level,
11878 get_frame_saved_regs, get_frame_pc, get_frame_base and
11879 get_next_frame.
11880 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11881 frame_register.
11882
11883 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11884
11885 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11886
11887 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11888
11889 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11890 (maintenance_set_profile_cmd): Use error () instead of warning ().
11891
11892 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11893
11894 * configure.in: Check that -pg works if using --enable-profiling.
11895 Check for monstartup and _mcleanup regardless of --enable-profiling.
11896 * maint.c: Check for monstartup and _mcleanup before using them.
11897 * config.in: Regenerated.
11898 * configure: Regenerated.
11899
11900 2003-01-24 Nick Clifton <nickc@redhat.com>
11901
11902 * Add sh2e support:
11903
11904 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11905
11906 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11907 (sh2e_show_regs): New.
11908 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11909 * config/sh/tm-sh.h: Added sh2e to comments.
11910
11911 2003-01-23 Jim Blandy <jimb@redhat.com>
11912
11913 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11914 symbols found)" message here; we haven't checked for a separate
11915 debug info file yet, so we don't know yet.
11916 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11917 we've looked everywhere. Also, there's no need to print a special
11918 message when we're loading the separate debug info file: the one
11919 symbol_file_add prints is fine.
11920
11921 2003-01-23 Alexander Larsson <alexl@redhat.com>
11922 Jim Blandy <jimb@redhat.com>
11923
11924 Add support for executables whose debug info has been separated
11925 out into a separate file, leaving only a link behind.
11926 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11927 and separate_debug_objfile_backlink.
11928 (put_objfile_before): New declaration.
11929 * symfile.c: #include "filenames.h".
11930 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11931 debug info in a separate file, read that, too. Save the addrs
11932 argument, so we can use it again to read the separated debug info;
11933 syms_from_objfile modifies the table we pass it.
11934 (reread_symbols): After re-reading an objfile, call
11935 reread_separate_symbols to refresh its separate debug info
11936 objfile, if it has one.
11937 (reread_separate_symbols, find_separate_debug_file,
11938 get_debug_link_info, separate_debug_file_exists): New functions.
11939 (debug_file_directory): New global var.
11940 (_initialize_symfile): Initialize debug_file_directory, and
11941 provide the new `set debug-file-directory' command to let the user
11942 change it.
11943 * objfiles.c (free_objfile): If this objfile has its debug info in
11944 a separate objfile, free that one too. If this is itself a
11945 separate debug info objfile, clear our parent's backlink.
11946 (put_objfile_before): New function.
11947 * utils.c (gnu_debuglink_crc32): New function.
11948 * defs.h (gnu_debuglink_crc32): New declaration.
11949 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11950 * configure.in: Handle --with-separate-debug-dir config option.
11951 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11952 * acconfig.h (DEBUGDIR): New macro.
11953 * configure, aclocal.m4, config.in: Regenerated.
11954
11955 2003-01-22 Jim Blandy <jimb@redhat.com>
11956
11957 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11958 like the old symbol_file_add, but taking new arguments: you can
11959 now pass in either a `struct section_addr_info' list to say where
11960 each section is loaded, or a `struct section_offsets' table. Pass
11961 these new arguments through to syms_from_objfile as appropriate.
11962 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11963 with the appropriate quiescent values for the new arguments.
11964
11965 * symfile.c: #include "gdb_assert.h".
11966 (syms_from_objfile): Add the ability to pass in a section offset
11967 table directly, as an alternative to the section_addr_info table.
11968 Document arguments better.
11969 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11970 * symfile.h (syms_from_objfile): Update declaration.
11971 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11972 syms_from_objfile.
11973 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11974
11975 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11976
11977 Original patch by Tom Tromey <tromey@cygnus.com> and
11978 Jason Molenda <jmolenda@apple.com>.
11979 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11980 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11981 * NEWS: Mention profiling.
11982 * configure.in (--enable-gdbtk): Fix typo.
11983 (--enable-profiling): New. Set PROFILE_CFLAGS.
11984 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11985 Fill in function.
11986 (profiling_state): New variable.
11987 (mcleanup_wrapper): New function.
11988 (_initialize_maint): Remove NOTYET, fix call to
11989 add_setshow_boolean_cmd for "maint set profile".
11990 * configure: Regenerated.
11991
11992 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11993
11994 * Makefile.in (install-gdbtk): Install PNG images too.
11995
11996 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11997
11998 * exec.c (text_start): Delete global variable.
11999 (exec_file_attach): Make text_start local to the function.
12000 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12001 * valops.c (hand_function_call): Delete code that handles
12002 BEFORE_TEXT_END and AFTER_TEXT_END.
12003 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12004 of CALL_DUMMY_LOCATION.
12005 * gdbarch.c: Regenerate.
12006 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12007 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12008 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12009 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12010 (text_end): Delete extern declaration.
12011
12012 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12013
12014 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12015 * blockframe.c (backtrace_below_main): Move to "frame.c".
12016 (frame_chain_valid): Delete check for backtrace_below_main.
12017 (_initialize_blockframe): Delete initialization, move ``set
12018 backtrace-below-main'' command to "frame.c".
12019 (do_flush_frames_sfunc): Delete function.
12020 * frame.c: Include "command.h" and "gdbcmd.h".
12021 (frame_type_from_pc): New function.
12022 (create_new_frame): Use frame_type_from_pc.
12023 (legacy_get_prev_frame): New function.
12024 (get_prev_frame): Rewrite. When an old style frame, call
12025 legacy_get_prev_frame. Otherwize, unwind the PC first.
12026 (_initialize_frame): Add ``set backtrace-below-main'' command.
12027 * Makefile.in (frame.o): Update dependencies.
12028
12029 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12030
12031 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12032 DEPRECATED_REGISTERS_INFO.
12033
12034 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12035
12036 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12037 Maintainers'. Update `Various Maintainers'.
12038
12039 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12040
12041 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12042 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12043 Suppress actual parameters when `-'.
12044 * gdbarch.h, gdbarch.c: Regenerate.
12045
12046 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12047
12048 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12049 code handling dummy frames.
12050
12051 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12052
12053 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12054 (struct frame_unwind): Add field pop.
12055 * frame.h (frame_pop): Declare.
12056 * frame.c (frame_saved_regs_pop): New function.
12057 (trad_frame_unwinder): Add frame_saved_regs_pop.
12058 (frame_pop): New function.
12059 * dummy-frame.c (dummy_frame_pop): New function.
12060 (discard_innermost_dummy): New function.
12061 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12062 (dummy_frame_unwind): Add dummy_frame_pop.
12063 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12064 * valops.c (hand_function_call): Ditto.
12065 * stack.c (return_command): Ditto.
12066
12067 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12068
12069 * cris-tdep.c: Fix function declaration indentation.
12070 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12071 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12072 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12073 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12074 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12075 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12076
12077 2003-01-18 Michael Chastain <mec@shout.net>
12078
12079 * README (Unpacking and Installation -- quick overview):
12080 Warn against ".../gdb-5.3/gdb/configure".
12081
12082 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12083
12084 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12085 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12086 (struct frame_unwind): Declare opaque.
12087 (dummy_frame_p): Declare function.
12088 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12089 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12090 * dummy-frame.c: Include "frame-unwind.h".
12091 (dummy_frame_p): New function.
12092 (dummy_frame_unwind): New variable.
12093 * frame.c: Include "frame-unwind.h".
12094 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12095 to use the new unwind field.
12096 (set_unwind_by_pc): Delete function.
12097 (create_new_frame, get_prev_frame): Set unwind field using
12098 frame_unwind_find_by_pc.
12099 (trad_frame_unwind, trad_frame_unwinder): New variables.
12100 * frame.h (trad_frame_unwind): Declare variable.
12101 (frame_id_unwind_ftype): Delete declaration.
12102 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12103 (struct frame_unwind): Declare opaque.
12104 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12105 register_unwind with a single unwind pointer.
12106 * frame-unwind.h, frame-unwind.c: New files.
12107 * Makefile.in (SFILES): Add frame-unwind.c.
12108 (frame_unwind_h): Define.
12109 (COMMON_OBS): Add frame-unwind.o.
12110 (frame-unwind.o): Specify dependencies.
12111 (frame.o, dummy-frame.o): Update dependencies.
12112
12113 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12114
12115 * ada-valprint.c: Eliminate PTR.
12116 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12117 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12118 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12119 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12120 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12121 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12122 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12123
12124 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12125
12126 * main.c (captured_main): Don't use PTR.
12127 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12128 * gdbtypes.c (lookup_primitive_typename): Ditto.
12129 (lookup_struct_elt_type): Ditto.
12130 * f-valprint.c (info_common_command): Ditto.
12131 (list_all_visible_commons): Ditto.
12132 * jv-typeprint.c (java_type_print_base): Ditto.
12133
12134 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12135 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12136 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12137 i386-interix-nat.c and i386-interix-tdep.c. Rename
12138 m68klinux-nat.c and m68klinux-tdep.c. Rename
12139 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12140 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12141 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12142 * main.c (captured_main): Use xfree, not free.
12143
12144 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12145
12146 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12147 ID back using a parameter.
12148 * frame.c (frame_id_unwind): Update call.
12149 (frame_saved_regs_id_unwind): Update.
12150 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12151 * dummy-frame.h (struct frame_id): Add opaque declaration.
12152 (dummy_frame_id_unwind): Update declaration.
12153
12154 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12155
12156 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12157
12158 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12159
12160 * MAINTAINERS (Stephen P. Smith): Updated email address.
12161
12162 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12163
12164 Fix PR gdb/898
12165 * breakpoint.c (until_break_command): Add new argument. Use it to
12166 decide whether to stop only at the current frame or not.
12167 * breakpoint.h (until_break_command): Update prototype.
12168 * infcmd.c (until_command): Add new argument to until_break_command
12169 call.
12170 (advance_command): New function.
12171 (_initialize_infcmd): Update help string for 'until' command.
12172 Add new 'advance' command.
12173
12174 2003-01-14 David Carlton <carlton@math.stanford.edu>
12175
12176 * linespec.c (decode_line_1): Normalize comments.
12177 (set_flags): Ditto.
12178 (locate_first_half): Ditto.
12179 (decode_compound): Ditto.
12180 (symtab_from_filename): Ditto.
12181 (decode_all_digits): Ditto.
12182 (decode_dollar): Ditto.
12183 (find_methods): Ditto.
12184 (find_toplevel_char): Ditto.
12185
12186 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12187
12188 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12189 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12190 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12191 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12192 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12193 * language.c, language.h, m32r-tdep.c: Update copyright.
12194 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12195 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12196 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12197 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12198 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12199 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12200
12201 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12202
12203 * stabsread.h (process_later, resolve_cfront_continuation):
12204 Obsolete.
12205 Update copyright years.
12206 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12207 Update copyright year.
12208 * dbxread.c(struct cont_elem): Obsolete.
12209 (process_later, process_now): Obsolete functions.
12210 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12211 Update copyright year.
12212 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12213 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12214 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12215 (parse_partial_symbols): Obsolete cfront support.
12216 * stabsread.c
12217 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12218 macros.
12219 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12220 read_cfront_baseclasses, read_cfront_member_functions,
12221 resolve_cfront_continuation,read_cfront_static_fields,
12222 copy_cfront_struct_fields): Obsolete functions.
12223 (define_symbol, read_one_struct_field): Obsolete cfront support.
12224 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12225 Update Copyright year.
12226
12227 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12228
12229 * stack.c (print_frame_info, print_stack_frame_base_stub,
12230 print_stack_frame_base, show_and_print_stack_frame_stub,
12231 show_and_print_stack_frame, print_only_stack_frame_stub,
12232 print_only_stack_frame): Delete functions.
12233 (print_stack_frame_stub): Call print_frame_info instead of
12234 print_frame_info_base.
12235 (print_frame_info_base): Rename to print_frame_info.
12236 (backtrace_command_1): Call print_frame_info, instead of
12237 print_frame_info_base.
12238 (current_frame_command): Call print_stack_frame, instead of
12239 print_only_stack_frame.
12240 (frame_command): Call print_stack_frame, instead of
12241 show_and_print_stack_frame.
12242 (up_command): Ditto.
12243 (down_command): Ditto.
12244 * frame.h (print_only_stack_frame): Delete prototype.
12245 * infrun.c (normal_stop): Call print_stack_frame, instead of
12246 show_and_print_stack_frame.
12247 * thread.c (info_threads_command): Call print_stack_frame, instead
12248 of print_only_stack_frame.
12249
12250 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12251
12252 * README (Graphical interface to GDB): Update URL. Point at
12253 gdb/links/.
12254
12255 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12256 version match.
12257
12258 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12259
12260 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12261 lines.
12262
12263 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12264
12265 * thread-db.c (attach_thread): Prototype.
12266 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12267 thread information (ti), and valid flags (th_valid, ti_valid).
12268 (attach_thread): Move target_pid_to_str call to after the thread
12269 is added to GDB's list. Initialize the cache.
12270 (thread_get_info_callback, thread_db_map_id2thr)
12271 (thread_db_get_info): New functions.
12272 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12273 (thread_db_store_registers, thread_db_thread_alive)
12274 (thread_db_get_thread_local_address): Use them.
12275 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12276 of calling error() for threads in unknown state.
12277
12278 (clear_lwpid_callback): New function.
12279 (thread_db_resume): Use it to clear the cache.
12280
12281 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12282
12283 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12284 (resume_callback): Remove dead code.
12285
12286 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12287
12288 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12289 predicate.
12290 * gdbarch.h, gdbarch.c: Regenerate.
12291 * stack.c (frame_info): Only initialize the saved registers when
12292 FRAME_INIT_SAVED_REGS_P.
12293 * frame.c (frame_saved_regs_register_unwind): Assert
12294 FRAME_INIT_SAVED_REGS_P.
12295 (deprecated_generic_get_saved_register): Ditto.
12296
12297 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12298
12299 * source.c (openp): Squelch warning about "filename".
12300
12301 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12302
12303 * source.c (openp): If the file does not exist don't necessarily
12304 search the path.
12305
12306 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12307
12308 Fix PR gdb/872.
12309 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12310 (integer_types_same_name_p): New function.
12311 (rank_one_type): Use it.
12312 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12313
12314 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12315
12316 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12317 variables.
12318 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12319 * configure.in: Add --with-sysroot.
12320 * configure: Regenerated.
12321 * main.c (gdb_sysroot): New variable.
12322 (captured_main): Initialize gdb_sysroot.
12323 * defs.h (gdb_sysroot): New extern declaration.
12324 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12325
12326 2003-01-12 Michael Chastain <mec@shout.net>
12327
12328 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12329
12330 2003-01-12 Michael Chastain <mec@shout.net>
12331
12332 * top.c (print_gdb_version): Bump copyright year to 2003.
12333
12334 2003-01-12 David Carlton <carlton@bactrian.org>
12335
12336 * linespec.c (symtab_from_filename): Rename variable 's' to
12337 'file_symtab'.
12338
12339 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12340
12341 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12342 dummy frame.
12343 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12344
12345 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12346
12347 * d10v-tdep.c: Include "gdb_assert.h".
12348 (d10v_store_return_value): Rewrite to match current interface.
12349 (d10v_extract_struct_value_address): Ditto.
12350 (d10v_extract_return_value): Ditto.
12351 (d10v_gdbarch_init): Set store_restore_value,
12352 extract_struct_value_address and extract_return_value.
12353
12354 2003-01-12 J. Brobecker <brobecker@gnat.com>
12355
12356 * hpread.c (set_namestring): New procedure replacing the
12357 SET_NAMESTRING macro.
12358 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12359 by calls to set_namestring.
12360
12361 2003-01-11 J. Brobecker <brobecker@gnat.com>
12362
12363 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12364 a compilation warning.
12365 (hpread_process_one_debug_symbol): Likewise.
12366
12367 2003-01-10 David Carlton <carlton@math.stanford.edu>
12368
12369 * linespec.c (decode_line_1): Rename variable 's' to
12370 'file_symtab'.
12371 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12372 (decode_dollar): Ditto.
12373 (decode_variable): Ditto.
12374 (symbol_found): Ditto.
12375
12376 2003-01-09 Michael Chastain <mec@shout.net>
12377
12378 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12379
12380 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12381
12382 * win32-nat.c (set_process_privilege): New function.
12383 (child_attach): Call set_process_privilege() to enable the
12384 SE_DEBUG_NAME user privilege if available in process token.
12385
12386 2003-01-10 J. Brobecker <brobecker@gnat.com>
12387
12388 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12389 compilation error in the previous revision.
12390
12391 2003-01-09 David Carlton <carlton@math.stanford.edu>
12392
12393 * linespec.c: Update copyright.
12394
12395 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12396
12397 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12398 than inferior_ptid.
12399 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12400
12401 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12402
12403 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12404 Update comments.
12405 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12406 (frame_saved_regs_zalloc): Update.
12407 (frame_saved_regs_register_unwind): Update.
12408 (create_new_frame): Update.
12409 (get_prev_frame): Update.
12410 (frame_extra_info_zalloc): Update.
12411 (deprecated_get_frame_saved_regs): Update.
12412 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12413 * cris-tdep.c: Update comment.
12414
12415 * somsolib.h: Fix function indentation.
12416 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12417 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12418 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12419 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12420 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12421
12422 * infrun.c (follow_fork): Use ISO C definition.
12423 * expprint.c (print_subexp): Use xfree instead of free.
12424 * charset.c: Include "gdb_string.h" instead of <string.h>.
12425 (register_iconv_charsets): Use ISO C definition.
12426 (host_charset, target_charset): Ditto.
12427 * Makefile.in (charset.o): Update dependencies.
12428 (mi-cmd-env.o): Update dependencies.
12429
12430 2003-01-08 Andrew Cagney <cagney@redhat.com>
12431
12432 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12433 get_frame_base.
12434
12435 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12436
12437 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12438 build directories. Save edited gdb output in Mbuild.log. If a
12439 build fails, remove any final GDB executable.
12440
12441 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12442
12443 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12444 replacing hex constants with function names and stripping leading
12445 file name directory prefixes.
12446
12447 2003-01-08 Andrew Cagney <cagney@redhat.com>
12448
12449 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12450 get_frame_base.
12451
12452 2003-01-08 David Carlton <carlton@math.stanford.edu>
12453
12454 * linespec.c (decode_line_1): Move code into decode_variable.
12455 (decode_variable): New function.
12456
12457 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12458
12459 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12460
12461 2003-01-08 Andrew Cagney <cagney@redhat.com>
12462
12463 * cris-tdep.c (cris_frame_init_saved_regs): Use
12464 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12465 saved_regs buffer.
12466 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12467 (sh64_nofp_frame_init_saved_regs): Ditto.
12468 (sh_fp_frame_init_saved_regs): Ditto.
12469 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12470 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12471 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12472 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12473
12474 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12475
12476 * minsyms.c (lookup_minimal_symbol): Update comment.
12477 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12478 (lookup_minimal_symbol_solib_trampoline): Likewise.
12479
12480 2003-01-08 Andrew Cagney <cagney@redhat.com>
12481
12482 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12483 frame_relative_level.
12484
12485 * alpha-tdep.c: Use get_frame_extra_info.
12486 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12487 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12488 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12489 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12490
12491 * alpha-tdep.c: Use get_next_frame.
12492 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12493 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12494 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12495 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12496 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12497 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12498 * xstormy16-tdep.c: Ditto.
12499
12500 2003-01-07 Andrew Cagney <cagney@redhat.com>
12501
12502 * alpha-tdep.c: Use get_frame_base.
12503 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12504 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12505 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12506 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12507 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12508 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12509 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12510 * config/sparc/tm-sparc.h: Ditto.
12511
12512 2003-01-07 Andrew Cagney <cagney@redhat.com>
12513
12514 * frame.c (deprecated_get_frame_context): New function.
12515 (deprecated_set_frame_context): New function.
12516 * frame.h (deprecated_get_frame_context): Declare.
12517 (deprecated_set_frame_context): Declare.
12518 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12519 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12520
12521 2003-01-07 Andrew Cagney <cagney@redhat.com>
12522
12523 * frame.c (deprecated_set_frame_next_hack): New function.
12524 (deprecated_set_frame_prev_hack): New function.
12525 * frame.h (deprecated_set_frame_next_hack): Declare.
12526 (deprecated_set_frame_prev_hack): Declare.
12527 * mcore-tdep.c (analyze_dummy_frame): Use
12528 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12529 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12530
12531 2003-01-07 David Carlton <carlton@math.stanford.edu>
12532
12533 * linespec.c (decode_line_1): Move code into decode_dollar.
12534 (decode_dollar): New function.
12535
12536 2003-01-07 Andrew Cagney <cagney@redhat.com>
12537
12538 * arm-tdep.c (arm_init_extra_frame_info): Use
12539 deprecated_update_frame_base_hack.
12540 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12541 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12542 (fix_frame_pointer): Ditto.
12543 (mn10300_analyze_prologue): Ditto.
12544
12545 2003-01-07 Andrew Cagney <cagney@redhat.com>
12546
12547 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12548 extra_info using frame_extra_info_zalloc.
12549 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12550 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12551 (sh64_init_extra_frame_info): Ditto.
12552 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12553 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12554 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12555 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12556 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12557 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12558 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12559 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12560 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12561 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12562 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12563 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12564
12565 * mn10300-tdep.c (analyze_dummy_frame): Use
12566 deprecated_set_frame_extra_info_hack.
12567 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12568
12569 2003-01-07 J. Brobecker <brobecker@gnat.com>
12570
12571 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12572 class is not scText. These do not define "real" procedures.
12573 (parse_partial_symbols): Likewise.
12574
12575 2003-01-06 Michael Snyder <msnyder@redhat.com>
12576
12577 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12578
12579 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12580
12581 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12582 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12583 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12584 deprecated_frame_xmalloc_with_cleanup.
12585 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12586 deprecated_frame_xmalloc.
12587 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12588 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12589
12590 2003-01-06 Andrew Cagney <cagney@redhat.com>
12591
12592 * x86-64-linux-tdep.c: Include "osabi.h".
12593 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12594
12595 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12596
12597 2003-01-06 Andrew Cagney <cagney@redhat.com>
12598
12599 * MAINTAINERS (Target Instruction Set Architectures): Update
12600 arm-elf. Can be built with -Werror, has been multiarched.
12601
12602 * value.h (unpack_long): Make buffer parameter constant.
12603 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12604 * scm-lang.h (scm_parse): Ditto.
12605 * defs.h (extract_typed_address, extract_address): Ditto.
12606 (extract_long_unsigned_integer): Ditto.
12607 * inferior.h (unsigned_pointer_to_address): Ditto.
12608 (signed_pointer_to_address): Ditto.
12609 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12610 * gdbarch.h, gdbarch.c: Regenerate.
12611 * findvar.c (extract_long_unsigned_integer): Update.
12612 (extract_address): Update.
12613 (extract_typed_address): Update.
12614 (unsigned_pointer_to_address): Update.
12615 * values.c (unpack_long): Update.
12616 (unpack_double): Update.
12617 (unpack_pointer): Update.
12618 (unpack_field_as_long): Update.
12619 * d10v-tdep.c (d10v_pointer_to_address): Update.
12620 * avr-tdep.c (avr_pointer_to_address): Update.
12621 * scm-lang.c (scm_unpack): Update.
12622 * findvar.c (signed_pointer_to_address): Update.
12623
12624 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12625
12626 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12627 since it is in i386-tdep.c.
12628
12629 2003-01-06 J. Brobecker <brobecker@gnat.com>
12630
12631 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12632 failure introduced in the previous change.
12633
12634 2003-01-05 Michael Chastain <mec@shout.net>
12635
12636 * README: Remove references to deleted remote-*.c files:
12637 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12638 remote-nrom.c, remote-os9k.c, remote-udi.c.
12639
12640 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12641
12642 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12643 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12644 i386_get_longjmp_target.
12645
12646 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12647
12648 * arm-tdep.c (prologue_cache): Change to a pointer.
12649 (_initialize_arm_tdep): Allocate prologue_cache.
12650 (check_prologue_cache): Update.
12651 (save_prologue_cache): Update.
12652 (arm_gdbarch_init): Update.
12653
12654 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12655
12656 * stabsread.c (update_method_name_from_physname): Call complaint()
12657 instead of error.
12658
12659 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12660
12661 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12662 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12663 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12664
12665 * blockframe.c: Include "gdbcmd.h" and "command.h".
12666 (backtrace_below_main): New variable.
12667 (file_frame_chain_valid, func_frame_chain_valid)
12668 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12669 (generic_func_frame_chain_valid): Remove functions.
12670 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12671 (_initialize_blockframe): New function.
12672 * Makefile.in (blockframe.o): Update dependencies.
12673 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12674 comment. Call frame_chain_valid ().
12675 * frame.h: Remove old prototypes. Add prototype for
12676 frame_chain_valid and update comments to match.
12677 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12678 Remove old comment.
12679 * gdbarch.h: Regenerated.
12680 * gdbarch.c: Regenerated.
12681
12682 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12683 set_gdbarch_frame_chain_valid.
12684 * avr-tdep.c (avr_gdbarch_init): Likewise.
12685 * cris-tdep.c (cris_gdbarch_init): Likewise.
12686 * frv-tdep.c (frv_gdbarch_init): Likewise.
12687 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12688 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12689 (i386_nw_init_abi): Likewise.
12690 (i386_gdbarch_init): Likewise.
12691 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12693 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12694 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12695 * mips-tdep.c (mips_gdbarch_init): Likewise.
12696 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12697 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12698 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12699 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12700 * s390-tdep.c (s390_gdbarch_init): Likewise.
12701 * sh-tdep.c (sh_gdbarch_init): Likewise.
12702 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12703 * v850-tdep.c (v850_gdbarch_init): Likewise.
12704 * vax-tdep.c (vax_gdbarch_init): Likewise.
12705 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12706
12707 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12708 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12709 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12710 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12711 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12712 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12713 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12714 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12715
12716 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12717
12718 * Makefile.in (acconfig_h): Remove incorrect macro.
12719 (config_h): Define.
12720 (osabi.o): Update dependencies.
12721 * configure.tgt: Set gdb_osabi based on target triplet.
12722 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12723 * configure: Regenerated.
12724 * config.in: Regenerated.
12725 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12726 (GDB_OSABI_DEFAULT): Define if not already defined.
12727 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12728 (set_osabi_string): New variables.
12729 (gdbarch_register_osabi): Add new OS ABI to
12730 gdb_osabi_available_names.
12731 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12732 (set_osabi, show_osabi): New functions.
12733 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12734
12735 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12736
12737 * arch-utils.c (gdbarch_info_init): Set osabi to
12738 GDB_OSABI_UNINITIALIZED.
12739 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12740 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12741 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12742 * gdbarch.c: Regenerated.
12743 * gdbarch.h: Regenerated.
12744 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12745 there's no BFD.
12746 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12747 * osabi.h (enum gdb_osabi): Move to defs.h.
12748 (gdbarch_init_osabi): Update prototype.
12749 * defs.h (enum gdb_osabi): Moved here.
12750 * Makefile.in: Update dependencies.
12751
12752 * alpha-tdep.h: Don't include "osabi.h".
12753 (struct gdbarch_tdep): Remove osabi member.
12754 * alpha-tdep.c: Include "osabi.h".
12755 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12756 iterate over arches. Update call to gdbarch_init_osabi.
12757 (alpha_dump_tdep): Don't dump osabi.
12758 * alpha-linux-tdep.c: Include "osabi.h".
12759 * alpha-osf1-tdep.c: Include "osabi.h".
12760 * alphafbsd-tdep.c: Include "osabi.h".
12761 * alphanbsd-tdep.c: Include "osabi.h".
12762
12763 * arm-tdep.h: Don't include "osabi.h".
12764 (struct gdbarch_tdep): Remove osabi member.
12765 * arm-tdep.c: Include "osabi.h".
12766 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12767 iterate over arches. Update call to gdbarch_init_osabi.
12768 (arm_dump_tdep): Don't dump osabi.
12769 * arm-linux-tdep.c: Include "osabi.h".
12770 * armnbsd-tdep.c: Include "osabi.h".
12771
12772 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12773 Update call to gdbarch_init_osabi.
12774
12775 * i386-tdep.h: Don't include "osabi.h".
12776 (struct gdbarch_tdep): Remove osabi member.
12777 * i386-tdep.c: Include "osabi.h".
12778 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12779 iterate over arches. Update call to gdbarch_init_osabi.
12780 (i386_dump_tdep): Don't dump osabi.
12781 * i386-linux-tdep.c: Include "osabi.h".
12782 * i386-sol2-tdep.c: Include "osabi.h".
12783 * i386bsd-tdep.c: Include "osabi.h".
12784 * i386gnu-tdep.c: Include "osabi.h".
12785 * i386ly-tdep.c: Include "osabi.h".
12786 * i386nbsd-tdep.c: Include "osabi.h".
12787 * i386obsd-tdep.c: Include "osabi.h".
12788
12789 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12790 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12791 check osabi when iterating over arches. Update call to
12792 gdbarch_init_osabi.
12793 (mips_dump_tdep): Don't dump osabi.
12794
12795 * ns32k-tdep.h: Don't include "osabi.h".
12796 (struct gdbarch_tdep): Remove.
12797 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12798 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12799 allocate tdep. Update call to gdbarch_init_osabi.
12800 (ns32k_dump_tdep): Remove.
12801 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12802 * ns32knbsd-tdep.c: Include "osabi.h".
12803
12804 * ppc-tdep.h: Don't include "osabi.h".
12805 (struct gdbarch_tdep): Remove osabi member.
12806 * rs6000-tdep.c: Include "osabi.h".
12807 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12808 osabi when iterating over arches. Update call to
12809 gdbarch_init_osabi.
12810 (rs6000_dump_tdep): Don't dump osabi.
12811 * ppc-linux-tdep.c: Include "osabi.h".
12812 * ppcnbsd-tdep.c: Include "osabi.h".
12813
12814 * sh-tdep.h: Don't include "osabi.h".
12815 (struct gdbarch_tdep): Remove osabi member.
12816 * sh-tdep.c: Include "osabi.h".
12817 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12818 iterate over arches. Update call to gdbarch_init_osabi.
12819 (sh_dump_tdep): Don't dump osabi.
12820 * shnbsd-tdep.c: Include "osabi.h".
12821
12822 * sparc-tdep.c: Include "osabi.h".
12823 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12824 iterate over arches. Update call to gdbarch_init_osabi.
12825 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12826 tdep structure.
12827
12828 * vax-tdep.h: Don't include "osabi.h".
12829 (struct gdbarch_tdep): Remove.
12830 * vax-tdep.c: Include "osabi.h".
12831 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12832 iterate over arches. Don't allocate tdep. Update call
12833 to gdbarch_init_osabi.
12834 (vax_dump_tdep): Remove.
12835 (_initialize_vax_tdep): Update call to gdbarch_register.
12836
12837 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12838
12839 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12840 entirely.
12841 (breakpoint_re_set_one): Don't fetch the value for a disabled
12842 watchpoint.
12843
12844 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12845
12846 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12847 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12848 (COERCE_FLOAT_TO_DOUBLE): Remove.
12849 * gdbarch.c: Regenerate.
12850 * gdbarch.h: Regenerate.
12851 * Makefile.in: Remove value_h from gdbarch_h.
12852 * valops.c (coerce_float_to_double): New variable.
12853 (default_coerce_float_to_double): Remove.
12854 (standard_coerce_float_to_double): Remove.
12855 (value_arg_coerce): Use coerce_float_to_double.
12856 (_initialize_valops): Add "set coerce-float-to-double".
12857 * value.h (default_coerce_float_to_double): Remove prototype.
12858 (standard_coerce_float_to_double): Remove prototype.
12859
12860 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12861 prototyped.
12862 * mdebugread.c (parse_symbol): Likewise.
12863 * stabsread.c (define_symbol): Mark all functions as prototyped.
12864
12865 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12866 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12867 set_gdbarch_coerce_float_to_double.
12868 * arm-tdep.c (arm_gdbarch_init): Likewise.
12869 * frv-tdep.c (frv_gdbarch_init): Likewise.
12870 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12871 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12872 * mips-tdep.c (mips_gdbarch_init): Likewise.
12873 (mips_coerce_float_to_double): Remove.
12874 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12875 (rs6000_coerce_float_to_double): Remove.
12876 * s390-tdep.c (s390_gdbarch_init): Likewise.
12877 * sh-tdep.c (sh_gdbarch_init): Likewise.
12878 (sh_coerce_float_to_double): Remove.
12879 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12880 (sparc_coerce_float_to_double): Remove.
12881 * v850-tdep.c (v850_gdbarch_init): Likewise.
12882 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12883 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12884 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12885 (hppa_coerce_float_to_double): Remove prototype.
12886 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12887
12888 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12889
12890 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12891
12892 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12893
12894 Suggested by Stewart Brown <sb24@avaya.com>:
12895 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12896 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12897 (c_type_print_varspec_suffix): Likewise.
12898
12899 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12900
12901 * configure.in: Don't set and AC_SUBST SUBDIRS.
12902 * configure: Regenerated.
12903
12904 * configure.in: Remove code dealing with shared libraries.
12905 * Makefile.in: Remove HLDFLAGS and HLDENV.
12906 * configure: Regenerated.
12907
12908 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12909
12910 * frame.c (deprecated_frame_xmalloc): New function.
12911 (deprecated_set_frame_saved_regs_hack): New function.
12912 (deprecated_set_frame_extra_info_hack): New function.
12913 * frame.h (deprecated_frame_xmalloc): Declare.
12914 (deprecated_set_frame_saved_regs_hack): Declare.
12915 (deprecated_set_frame_extra_info_hack): Declare.
12916
12917 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12918
12919 * configure.in: Move code that provides the --enable-gdbtk option
12920 right after the code that handles the --enable-tui option, and
12921 polish it somewhat.
12922 * configure: Regenerated.
12923
12924 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12925 AC_CHECK_FUNCS and remove the old check for pread64.
12926 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12927 * acconfig.h (_GNU_SOURCE): Add.
12928 (HAVE_PREAD64): Remove.
12929 * configure, aclocal.m4, config.in: Regenerated.
12930
12931 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12932
12933 * alpha-tdep.c: Use get_frame_saved_regs.
12934 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12935 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12936 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12937 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12938 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12939
12940 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12941
12942 * configure.in: Remove all use of the SUBDIRS variable; add
12943 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12944 code providing the --enable-multi-ice option, and move it right in
12945 front of the code that checks whether gdbserver is supported.
12946 Polish that too.
12947 * configure: Regenerated.
12948 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12949 @SUBDIRS@.
12950
12951 2003-01-03 Andrew Cagney <cagney@redhat.com>
12952
12953 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12954 * avr-tdep.c, cris-tdep.c: Ditto.
12955 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12956 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12957
12958 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12959
12960 * configure.in: Remove --enable-netrom option.
12961 * configure: Regenerated.
12962
12963 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12964
12965 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12966 declaration for `struct re_pattern_buffer' instead.
12967 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12968
12969 2003-01-03 J. Brobecker <brobecker@gnat.com>
12970
12971 * mdebugread.c (parse_symbol): Count until the stEnd matching
12972 the structure name.
12973
12974 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12975
12976 * configure.in: Remove --with-cpu option.
12977 subscripts. Remove evil changequotes here.
12978 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12979 * config.in, configure: Regenerated.
12980
12981 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12982 * configure.in: Cleanup section that sources GDB and BFD configure
12983 subscripts. Remove evil changequotes here.
12984 * config.in, configure: Regenerated.
12985
12986 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12987
12988 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12989 frame accessor methods.
12990 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12991 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12992 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12993 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12994 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12995 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12996 * z8k-tdep.c: Ditto.
12997
12998 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12999
13000 * configure.in: Remove UI_OUT configuration code.
13001 * ada-lang.c: Update assuming UI_OUT is always true.
13002 * Makefile.in (UIOUT_CFLAGS): Remove.
13003 * configure: Regenerated.
13004 * TODO: Remove blurb about elimination of -DUI_OUT.
13005
13006 * configure.in: Move code that provides the --enable-gdbcli,
13007 --enable-gdbmi options right before the code that handles the
13008 --enable-tui option. Polish a bit.
13009 * configure: Regenerated.
13010
13011 * configure.in: Rewrite check for GNU regex and the
13012 --without-included regex option, and move it into the "Checks for
13013 library functions" section. This makes us use the system regex
13014 again by default on systems with version 2 of the GNU C library.
13015 This was apparently broken.
13016 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13017 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13018 * config.in, configure: Regenerated.
13019
13020 * configure.in: Move code that provides the --enable-tui option
13021 before the "Checks for libraries" section. Polish the code
13022 somewhat and set need_curses to yes if we build the TUI. Rewrite
13023 code that looks for a library providing termcap functionality to
13024 match more closely what's done in the Readline library, and move
13025 it into to the "Checks for libraries" section.
13026 * configure: Regenerated.
13027 * Makefile.in (TERMCAP): Remove variable.
13028 * config/i386/go32.mh (TERMCAP): Remove variable.
13029
13030 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13031
13032 * MAINTAINERS: Mention gdb_mbuild.sh.
13033 * gdb_mbuild.sh: Rewrite.
13034
13035 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13036
13037 * configure.in: Fix typo in last change.
13038 * config.in, configure: Regenerated.
13039
13040 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13041
13042 * valarith.c (value_binop): Delete obsolete code and comments.
13043 * configure.host: Ditto.
13044 * buildsym.h (make_blockvector): Ditto.
13045 * buildsym.c (make_blockvector): Ditto.
13046 * defs.h (enum language): Ditto.
13047 (chill_demangle): Ditto.
13048 * elfread.c (elf_symtab_read): Ditto.
13049 * dwarfread.c (CHILL_PRODUCER): Ditto.
13050 (set_cu_language): Ditto.
13051 (handle_producer): Ditto.
13052 * expprint.c (print_subexp): Ditto.
13053 * gdbtypes.c (chill_varying_type): Ditto.
13054 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13055 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13056 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13057 (chill_varying_type): Ditto.
13058 * language.h (_LANG_chill): Ditto.
13059 * language.c (binop_result_type, integral_type): Ditto.
13060 (character_type, string_type, structured_type): Ditto.
13061 (lang_bool_type, binop_type_check): Ditto.
13062 * stabsread.h (os9k_stabs): Ditto.
13063 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13064 (define_symbol, read_type, read_struct_fields): Ditto.
13065 (read_array_type, read_enum_type, read_huge_number): Ditto.
13066 (read_range_type, start_stabs): Ditto.
13067 * symfile.c (init_filename_language_table): Ditto.
13068 (add_psymbol_with_dem_name_to_list): Ditto.
13069 * symtab.c (symbol_init_language_specific): Ditto.
13070 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13071 * symtab.h (struct general_symbol_info): Ditto.
13072 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13073 * typeprint.c (typedef_print): Ditto.
13074 * utils.c (fprintf_symbol_filtered): Ditto.
13075 * valops.c (value_cast, search_struct_field, value_slice): Delete
13076 obsolete code.
13077 (varying_to_slice): Delete function.
13078 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13079 (varying_to_slice): Delete declaration.
13080 * MAINTAINERS: Update.
13081
13082 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13083
13084 * configure.in: Reorganize "Checks for library functions section"
13085 a bit. Remove check for `btowc' and `isascii' functions.
13086 * configure: Regenerated.
13087
13088 * acconfig.h (_MSE_INT_H): Remove.
13089 * configure.in: Create "Checks for header files" section, and move
13090 appropriate tests there. Don't check for objlist.h, wchar.h,
13091 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13092 misdetection fix. Also add "Checks for types", "Checks for
13093 compiler characteristics" and "Checks for library functions"
13094 sections.
13095 * config.in, configure: Regenerated.
13096
13097 * configure.in: Create "Checks for programs" section, and move
13098 appropriate tests there.
13099
13100 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13101
13102 * configure.in: Create "Checks for libraries" section, and move
13103 appropriate tests there. Cleanup check for wctype in libw. Use
13104 AC_SEARCH_LIBS to see whether we need libsocket.
13105 * configure: Regenerated.
13106
13107 For older changes see ChangeLog-2002
13108 \f
13109 Local Variables:
13110 mode: change-log
13111 left-margin: 8
13112 fill-column: 74
13113 version-control: never
13114 End:
This page took 0.278296 seconds and 5 git commands to generate.